:root {
  --tb-accent-1: #ff652c;
  --tb-accent-2: #ff8d35;
  --tb-ink: #111317;
  --tb-slate: #2a2f38;
  --tb-muted: #6f7683;
  --tb-surface: rgba(255, 255, 255, 0.7);
  --tb-surface-strong: rgba(255, 255, 255, 0.86);
  --tb-border: rgba(17, 19, 23, 0.12);
  --tb-radius-sm: 12px;
  --tb-radius-md: 18px;
  --tb-radius-lg: 28px;
  --tb-shadow-soft: 0 18px 55px rgba(17, 19, 23, 0.1);
  --tb-shadow: 0 30px 100px rgba(17, 19, 23, 0.14);
  --tb-font-sans: "Space Grotesk", "Trebuchet MS", sans-serif;
  --tb-font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--tb-ink);
  font-family: var(--tb-font-sans);
  line-height: 1.6;
  background: radial-gradient(circle at 8% 8%, #f3f5f9 0%, #edf0f6 42%, #e6ebf1 100%);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: -18% -12% auto auto;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(12px);
  background: radial-gradient(circle, rgba(255, 141, 53, 0.3) 0%, rgba(255, 101, 44, 0.09) 55%, transparent 72%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 19, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 23, 0.035) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at 25% 25%, black 0%, transparent 72%);
  z-index: -3;
  pointer-events: none;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

input,
textarea,
select {
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface-strong);
  color: var(--tb-ink);
  font-family: var(--tb-font-sans);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 101, 44, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 101, 44, 0.14);
}

button,
.btn-primary,
.primary-btn {
  background: linear-gradient(120deg, var(--tb-accent-1), var(--tb-accent-2));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px rgba(255, 101, 44, 0.25);
}

button:hover,
.btn-primary:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 101, 44, 0.3);
}

.btn-secondary,
.ghost {
  background: rgba(255, 255, 255, 0.44);
  color: var(--tb-slate);
  border: 1px solid var(--tb-border);
  box-shadow: none;
}

.card,
.section {
  border-radius: var(--tb-radius-md);
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  box-shadow: var(--tb-shadow-soft);
}

.app-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto;
}

.page-head {
  margin-bottom: 20px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.page-subtitle {
  margin: 0;
  color: var(--tb-muted);
}

.page-hero {
  margin-bottom: 8px;
}

.hero-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-muted);
}

.hero-title {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-lede {
  margin: 0;
  max-width: 70ch;
  color: #374151;
}

.surface-muted {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius-sm);
}

.muted {
  color: var(--tb-muted);
}

.mono {
  font-family: var(--tb-font-mono);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #166534;
}

.action-row {
  display: flex;
  gap: 10px;
}

@media (max-width: 760px) {
  .app-shell {
    width: calc(100% - 20px);
    margin: 12px auto;
  }

  .row-between {
    flex-direction: column;
    align-items: flex-start;
  }
}
