/* ============================================================
   VoxClip marketing site
   Colors, type, spacing per docs/brand.md + design handoff.
   Teal is a rare signal (~10%). Bright teal never as small text
   on white; teal text uses Teal Deep. No em-dashes anywhere.
   ============================================================ */

:root {
  --paper:       #F7F7F5;
  --ink:         #1C2230;
  --teal:        #12B3A6;   /* Signal Teal  */
  --teal-deep:   #0B7A6E;   /* Teal Deep, AA on white */
  --teal-soft:   #E6F7F4;   /* Teal Soft    */
  --gray-100:    #EFEFEC;
  --gray-300:    #D6D8D3;
  --gray-500:    #8A8F98;
  --gray-700:    #4A515E;
  --success:     #1F9D57;
  --error:          #C2453B;   /* Error red (admin)        */
  --success-bg:     #E4F5EA;   /* Success badge background */
  --sidebar-dot:    #3A4252;   /* Sidebar inactive dot     */
  --sidebar-divider:#2A3242;   /* Sidebar divider          */
  --row-divider:    #F2F2EF;   /* Table row divider        */

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --maxw: 1280px;
}

/* The `hidden` attribute must win over inline/class `display`. Without this,
   an element carrying both `hidden` and `display:flex|grid` (the admin gate
   states, the /account sections) stays visible — every state stacks and the
   "Loading…" overlay never clears. An author !important declaration outranks
   inline-normal declarations, so this is the authoritative visibility guard. */
[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page { min-height: 100vh; }

/* Accessible focus rings (teal) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Login page form inputs — teal focus rings */
#login-email:focus-visible,
#login-password:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Admin dashboard — Support lookup input + Content hero fields — teal focus rings */
#support-email:focus-visible,
#hero-headline:focus-visible,
#hero-subheading:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Login page remember checkbox — teal focus ring for hidden checkbox via adjacent sibling */
#login-remember:focus-visible + #remember-box {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, opacity .16s ease;
  line-height: 1;
}
.btn--sm { padding: 11px 20px; font-size: 14px; border-radius: 9px; }

.btn--primary { background: var(--teal); color: var(--ink); }
.btn--primary:hover { background: #10a094; }

.btn--secondary { background: #fff; color: var(--ink); border-color: var(--gray-300); }
.btn--secondary:hover { border-color: var(--gray-500); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--gray-300); }
.btn--outline:hover { border-color: var(--gray-500); }

.btn--outline-dark { background: transparent; color: var(--paper); border-color: var(--gray-700); }
.btn--outline-dark:hover { border-color: var(--gray-500); }

/* ===== Nav ===== */
/* Announcement bar: a calm, occasional banner (content.json settings.toggles
   .announcementBar). Ink text on Teal Soft, no bright teal fill -- text on
   white/near-white needs Teal Deep or Ink for AA, and this stays quiet. */
.announcement-bar {
  background: var(--teal-soft);
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  padding: 10px 16px;
}
.announcement-bar__text {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  border-bottom: 1px solid var(--gray-100);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__logo { display: block; line-height: 0; }
.nav__logo img { height: 34px; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links > a { color: var(--gray-700); text-decoration: none; }
.nav__links > a.btn { color: var(--ink); }
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__menu-toggle,
.nav__mobile-menu { display: none; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 88px 56px 96px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0 0 32px;
  max-width: 480px;
  text-wrap: pretty;
}
.hero__buttons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--teal-deep);
  font-weight: 500;
}
.hero__trust svg { flex: none; }

/* ===== Timeline mock ===== */
.mock {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(28, 34, 48, .09);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gray-300); display: block;
}
.mock__search {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--gray-700);
}
.mock__list {
  display: flex;
  flex-direction: column;
  padding: 8px;
  min-height: 330px;
}
.mock__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  background: transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease, background .6s ease;
}
.mock__row.is-visible { opacity: 1; transform: translateY(0); }
.mock__row.is-flash { background: var(--teal-soft); }
.mock__badge {
  flex: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 3px 8px;
  border-radius: 5px;
  min-width: 44px;
  text-align: center;
}
.mock__badge--clip { background: var(--gray-100); color: var(--gray-700); }
.mock__badge--dict { background: var(--teal-soft); color: var(--teal-deep); }
.mock__text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__meta { font-size: 11.5px; color: var(--gray-700); flex: none; }
.mock__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--paper);
  font-size: 12px;
  color: var(--gray-700);
}
.mock__ok {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); display: block; flex: none;
}
.mock__footer .mono { font-size: 11.5px; }

/* ===== Generic section ===== */
.section {
  padding: 88px 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--gray-100);
}
.section__title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.5px;
  margin: 0 0 8px;
}
.section__title--center { text-align: center; margin-bottom: 44px; }
.section__sub { color: var(--gray-700); font-size: 16px; margin: 0 0 44px; text-wrap: pretty; }

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 28px;
}
.card__title { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.card__body { font-size: 14.5px; line-height: 1.6; color: var(--gray-700); margin: 0; }

/* ===== How it works ===== */
.how__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.how__num { font-family: var(--font-mono); font-size: 12px; color: var(--teal-deep); margin-bottom: 14px; }
.kbd {
  font-family: var(--font-mono);
  background: var(--paper);
  border: 1px solid var(--gray-100);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12.5px;
}

/* ===== Privacy strip (full bleed dark) ===== */
.privacy { background: var(--ink); color: var(--paper); padding: 76px 56px; }
.privacy__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.privacy__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.5px;
  margin: 0 0 14px;
}
.privacy__body { font-size: 16px; line-height: 1.65; color: var(--gray-300); margin: 0; text-wrap: pretty; }
.privacy__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.privacy__list li { display: flex; gap: 12px; }
.privacy__dot { color: var(--teal); flex: none; }

/* ===== Free vs paid ===== */
.plans { background: #fff; }
.plans__head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.plans__head .section__title { margin: 0 0 10px; }
.plans__head .section__sub { margin: 0; }
.plans__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
.plan { border-radius: 16px; padding: 32px; display: flex; flex-direction: column; }
.plan--free { background: var(--paper); }
.plan--paid { background: #fff; }
.plan__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.plan__tag { font-size: 13.5px; color: var(--gray-700); margin: 0 0 20px; }
.plan__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
.plan__list li { display: flex; gap: 10px; }
.plan__feature { display: block; min-width: 0; }
.check { color: var(--teal-deep); flex: none; }
.plan__cta { margin-top: auto; padding-top: 26px; }

/* ----- Notify form (paid plan card) ----- */
.notify-form { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.notify-form__row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-form .dash__input { flex: 1 1 180px; padding: 10px 13px; font-size: 14px; }
.notify-form__select { width: 100%; }
.notify-form__status { font-size: 13px; color: var(--gray-700); margin: 0; min-height: 1.4em; }
.notify-form__status--ok { color: var(--teal-deep); }
.notify-form__status--error { color: var(--error); }

/* ===== Testimonials ===== */
.testimonials__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.testimonial {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial__quote { font-size: 15.5px; line-height: 1.6; margin: 0; color: var(--ink); text-wrap: pretty; }
.testimonial__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex: none;
}
.testimonial__name { font-size: 13.5px; color: var(--gray-700); }
.testimonial__name strong { color: var(--ink); font-weight: 600; }

/* ===== FAQ ===== */
.faq { background: #fff; }
.faq__inner { max-width: 760px; margin: 0 auto; }
.faq__inner .section__title { margin: 0 0 36px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--gray-100); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.faq__chev {
  color: var(--gray-500);
  flex: none;
  font-size: 14px;
  transition: transform .18s ease;
}
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0;
  padding: 0 4px 22px;
  max-width: 640px;
  text-wrap: pretty;
}

/* ===== Download footer ===== */
.download { background: var(--ink); color: var(--paper); padding: 80px 56px; text-align: center; }
.download__logo { height: 34px; margin: 0 auto 22px; display: inline-block; }
.download__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.5px;
  margin: 0 0 26px;
}
.download__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.download__legal { font-size: 12.5px; color: var(--gray-500); margin: 36px 0 0; }

/* ============================================================
   Responsive: the reference is desktop-first. Stack gracefully.
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
  .hero__title { font-size: 40px; letter-spacing: -1px; }
  .section { padding: 64px 24px; }
  .privacy { padding: 56px 24px; }
  .privacy__inner { grid-template-columns: 1fr; gap: 28px; }
  .how__grid { grid-template-columns: 1fr; }
  .plans__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .download { padding: 64px 24px; }
}

@media (max-width: 560px) {
  .nav__links { gap: 14px; font-size: 13px; }
  .nav__links a:not(.btn) { display: none; }
  .nav__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 10px;
    padding: 8px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--paper);
    color: var(--gray-700);
    font: 500 13px/1 var(--font-body);
    cursor: pointer;
  }
  .nav__menu-toggle:hover,
  .nav__menu-toggle[aria-expanded="true"] {
    border-color: var(--gray-500);
    color: var(--ink);
  }
  .nav__mobile-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: grid;
    padding: 8px;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 14px 32px rgba(28, 34, 48, .12);
  }
  .nav__mobile-menu[hidden] { display: none; }
  .nav__mobile-menu a {
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
  }
  .nav__mobile-menu a:hover { background: var(--gray-100); color: var(--ink); }
  .hero__title { font-size: 32px; }
  .hero__buttons .btn,
  .download__buttons .btn { flex: 1 1 100%; text-align: center; }
}

/* Signed-out Account entry. The authenticated dashboard retains its own shell. */
.account-entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(18, 179, 166, .08), transparent 34rem),
    var(--paper);
}
.account-entry__card {
  width: min(100%, 440px);
  padding: 36px;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 34, 48, .08);
  text-align: center;
}
.account-entry__logo { display: inline-block; line-height: 0; margin-bottom: 28px; }
.account-entry__logo img { display: block; height: 32px; }
.account-entry__eyebrow {
  margin: 0 0 10px;
  color: var(--teal-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.account-entry__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.4px;
}
.account-entry__body {
  max-width: 360px;
  margin: 12px auto 0;
  color: var(--gray-700);
  font-size: 14.5px;
  line-height: 1.6;
}
.account-entry__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.account-entry__note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-size: 12.5px;
  line-height: 1.55;
}
.account-entry__home {
  display: inline-block;
  margin-top: 18px;
  color: var(--gray-700);
  font-size: 13.5px;
  text-decoration: none;
}
.account-entry__home:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 480px) {
  .account-entry { padding: 20px 14px; }
  .account-entry__card { padding: 30px 22px; }
  .account-entry__actions .btn { width: 100%; }
}

/* ============================================================
   Reduced motion: no timeline animation, no chevron spin.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock__row {
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    transition: none !important;
  }
  .faq__chev { transition: none; }
  .btn { transition: none; }
}


/* ===== Download flow: caption + after-click install steps ===== */
.dl-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--gray-700);
}
.download .dl-note { color: var(--gray-300); }

.dl-steps {
  margin-top: 16px;
  max-width: 560px;
  text-align: left;
  background: var(--teal-soft);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
.download .dl-steps {
  margin-left: auto;
  margin-right: auto;
  background: var(--ink);
  color: var(--paper);
}
.dl-steps__title { font-weight: 600; margin: 0 0 8px; }
.dl-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ============================================================
   Account page (/account.html)
   Calm, plain: plan + billing + devices only, never timeline
   content. Reuses the site's color tokens and .btn styles.
   ============================================================ */
.dash {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  min-height: 60vh;
}

.dash__panel { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.dash__loading {
  padding: 48px 0;
  color: var(--gray-700);
  font-size: 15px;
}

.dash__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.4px;
  margin: 0 0 6px;
}

.dash__subtitle {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 36px 0 4px;
}

.dash__muted { color: var(--gray-700); font-size: 14.5px; margin: 0 0 20px; }
.dash__devices-hint { margin: 0 0 16px; font-size: 13.5px; }

/* ----- Signed-out / error states ----- */
.dash__signedout .btn,
.dash__error .btn { margin-top: 8px; }

/* ----- Plan summary ----- */
.dash__plan {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
}
.dash__plan-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: var(--gray-100);
  border-radius: 8px;
  padding: 5px 12px;
}
.dash__plan-badge[data-kind="active"],
.dash__plan-badge[data-kind="trialing"] {
  background: var(--teal-soft);
  color: var(--teal-deep);
}
.dash__plan-badge[data-kind="past_due"] { background: #FBEAEA; color: #9A2E2E; }
.dash__plan-badge[data-kind="canceled"] { background: var(--gray-100); color: var(--gray-700); }

.dash__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-100);
  width: 100%;
}

/* ----- Devices ----- */
.dash__devices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.dash__device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.dash__device:last-child { border-bottom: none; }
.dash__device-name { font-size: 14.5px; color: var(--ink); }

/* ----- Footer ----- */
.dash__footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash__footer-link {
  color: var(--teal-deep);
  font-size: 13.5px;
  text-decoration: none;
}
.dash__footer-link:hover { text-decoration: underline; }
.dash__footer .download__legal { margin: 0; color: var(--gray-500); }

@media (max-width: 560px) {
  .dash { padding: 40px 20px 72px; }
  .dash__footer { padding: 0 20px 40px; }
}

/* ============================================================
   Admin page (/admin.html)
   Overview tiles + a single-user lookup and support actions.
   Reuses .dash's tokens/layout; a bit wider so the tile grid can
   breathe before it wraps. Staff-only surface, still light + dark
   + AA + keyboard, same as every other page.
   ============================================================ */
.dash--admin { max-width: 880px; }

/* Visible to screen readers only — the lookup input has a placeholder
   standing in for sighted users, but placeholders are not labels. */
.dash__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 32px;
  width: 100%;
}
.dash__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--gray-100);
}
.dash__tile-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.3px;
  color: var(--ink);
}
.dash__tile-label { font-size: 13px; color: var(--gray-700); }

/* ----- Lookup form ----- */
.dash__lookup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 24px;
  width: 100%;
}
.dash__input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-body);
}
.dash__input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 10px;
}

.dash__lookup-result { width: 100%; padding-top: 4px; }
.dash__lookup-plan {
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 12px;
  color: var(--ink);
}
.dash__action-status { margin: 12px 0 0; min-height: 1.2em; }

@media (max-width: 720px) {
  .dash__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dash__grid { grid-template-columns: 1fr; }
  .dash__lookup-form { flex-direction: column; align-items: stretch; }
}

/* Light/dark logo swap for the account page header (index.html doesn't need
   this — it has no dark theme). Light variant shows by default. */
.dash-page .dash__logo-dark { display: none; }

/* Dark mode: scoped to the account page only (the marketing page has no
   global dark theme). Reuses the same tokens, inverted. */
@media (prefers-color-scheme: dark) {
  body.dash-page {
    background: #14171F;
    color: #EDEFEF;
  }
  .dash-page .nav { border-bottom-color: #262B36; }
  .dash-page .dash__logo-light { display: none; }
  .dash-page .dash__logo-dark { display: block; }
  .dash-page .nav__links > a:not(.btn) { color: #A9AFBC; }
  .dash-page .nav__links > a:not(.btn):hover { color: #EDEFEF; }

  .dash-page .dash__title { color: #EDEFEF; }
  .dash-page .dash__muted { color: #A9AFBC; }
  .dash-page .dash__loading { color: #A9AFBC; }
  .dash-page .dash__device-name { color: #EDEFEF; }

  .dash-page .dash__plan-badge { background: #232833; color: #EDEFEF; }
  .dash-page .dash__plan-badge[data-kind="active"],
  .dash-page .dash__plan-badge[data-kind="trialing"] { background: #113B37; color: #4FD8C8; }
  .dash-page .dash__plan-badge[data-kind="past_due"] { background: #3A2222; color: #F0A3A3; }
  .dash-page .dash__plan-badge[data-kind="canceled"] { background: #232833; color: #A9AFBC; }

  .dash-page .dash__actions { border-bottom-color: #262B36; }
  .dash-page .dash__device { border-bottom-color: #262B36; }

  .dash-page .btn--primary { background: var(--teal); color: #0A0D12; }
  .dash-page .btn--primary:hover { background: #14C4B6; }
  .dash-page .btn--outline {
    background: transparent;
    color: #EDEFEF;
    border-color: #3A404D;
  }
  .dash-page .btn--outline:hover { border-color: #5A6272; }

  .dash-page .dash__footer-link { color: #4FD8C8; }
  .dash-page .dash__footer .download__legal { color: #6B7280; }

  /* ----- Admin page ----- */
  .dash-page .dash__tile { background: #1B2029; }
  .dash-page .dash__tile-value { color: #EDEFEF; }
  .dash-page .dash__tile-label { color: #A9AFBC; }
  .dash-page .dash__input {
    background: #1B2029;
    color: #EDEFEF;
    border-color: #3A404D;
  }
  .dash-page .dash__input::placeholder { color: #6B7280; }
  .dash-page .dash__lookup-plan { color: #EDEFEF; }

  .dash-page a:focus-visible,
  .dash-page button:focus-visible { outline-color: var(--teal); }
}

/* ============================================================
   SEO/GEO marketing pages
   (pricing, download, security, features, faq, learn, legal, 404).
   Additive; reuses the tokens and rhythm above. Light-only, the
   same hands as the rest of the site. No em-dashes anywhere.
   ============================================================ */

/* Quiet "Sign in" nav link sits after the Download button. */
.nav__signin { color: var(--gray-700) !important; }
.nav__signin:hover { color: var(--gray-700) !important; }

/* Page hero: interior pages lead with an H1 and a quotable answer block. */
.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px 56px 40px;
}
.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--teal-deep);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -1.2px;
  margin: 0 0 22px;
  max-width: 820px;
}

/* The answer block: the first rendered paragraph, written to survive being
   quoted alone (GEO). Slightly larger than body, ink not gray. */
.answer {
  font-size: 19px;
  line-height: 1.62;
  color: var(--gray-700);
  max-width: 720px;
  margin: 0;
  text-wrap: pretty;
}
.page-hero__cta { margin: 30px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Prose: body copy under section headings, and legal / article bodies. */
.prose { max-width: 720px; }
.prose > p { font-size: 16px; line-height: 1.7; color: var(--gray-700); margin: 0 0 18px; text-wrap: pretty; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 10px;
  letter-spacing: -.3px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 34px 0 10px;
}
.prose h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { font-size: 16px; line-height: 1.7; color: var(--gray-700); margin: 0 0 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration: none; }

/* Callout: the teal-soft "one rule" band. */
.callout {
  background: var(--teal-soft);
  border-radius: 14px;
  padding: 26px 30px;
  max-width: 760px;
}
.callout p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.section > .callout { margin-top: 8px; }

/* Small pill / tag. */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
}
.pill--teal { background: var(--teal-soft); color: var(--teal-deep); }

/* Two-column grid (feature/security detail cards). */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Pricing: reuses .plan / .plan--free / .plan--paid; adds the price line. */
.plan__price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.plan__price small { font-size: 15px; font-weight: 500; color: var(--gray-700); }
.plan__note { font-size: 13px; color: var(--gray-700); margin: 4px 0 20px; }

/* Requirements / meta line (download). */
.meta-line { font-size: 14px; color: var(--gray-700); margin: 14px 0 0; }
.meta-line .mono { font-size: 13px; }

/* In-text links (Release notes, cross-links) keep an underline so they are not
   distinguished by colour alone (WCAG link-in-text-block). */
.dl-note a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.dl-note a:hover { text-decoration: none; }

/* Breadcrumb (articles). */
.breadcrumb { font-size: 13px; color: var(--gray-700); margin: 0 0 18px; }
.breadcrumb a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { text-decoration: none; }

/* Article layout. */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.article__title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.article__related {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--gray-700);
}
.article__related a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.article__related a:hover { text-decoration: none; }

/* Learn hub cards. */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.learn-card { display: block; text-decoration: none; color: inherit; transition: border-color .16s ease; }
.learn-card:hover { border-color: var(--gray-300); }
.learn-card__title { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.learn-card__desc { font-size: 14px; line-height: 1.55; color: var(--gray-700); margin: 0; }

/* Native <details> FAQ (/faq) — collapsible, but readable with JS disabled. */
.qa { max-width: 760px; margin: 0 auto; }
.qa__item { border-bottom: 1px solid var(--gray-100); }
.qa__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.qa__item > summary::-webkit-details-marker { display: none; }
.qa__item > summary::after {
  content: "\25BE";
  color: var(--gray-500);
  flex: none;
  transition: transform .18s ease;
}
.qa__item[open] > summary::after { transform: rotate(180deg); }
.qa__item > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.qa__answer {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0;
  padding: 0 4px 22px;
  max-width: 680px;
  text-wrap: pretty;
}
.qa__answer a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.qa__answer a:hover { text-decoration: none; }

/* Site footer (every page): the full map, so legal is one click from anywhere. */
.site-footer { background: var(--paper); border-top: 1px solid var(--gray-100); }
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 56px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.site-footer__head {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--ink);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { color: var(--gray-700); text-decoration: none; font-size: 14px; }
.site-footer__col a:hover { color: var(--teal-deep); }
.site-footer__base { max-width: var(--maxw); margin: 0 auto; padding: 0 56px 40px; }
.site-footer__line { font-size: 13.5px; color: var(--gray-700); margin: 0 0 6px; max-width: 660px; text-wrap: pretty; }
.site-footer__copy { font-size: 12.5px; color: var(--gray-700); margin: 0; }

@media (max-width: 900px) {
  .page-hero { padding: 48px 24px 32px; }
  .page-hero__title { font-size: 34px; letter-spacing: -.8px; }
  .grid-2, .learn-grid { grid-template-columns: 1fr; }
  .article { padding: 40px 24px 24px; }
  .article__title { font-size: 30px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; padding: 40px 24px 20px; gap: 28px; }
  .site-footer__base { padding: 0 24px 32px; }
}
@media (max-width: 560px) {
  .page-hero__title { font-size: 29px; }
  .site-footer__inner { grid-template-columns: 1fr; }
}


/* --- tickets (lane D) --- */
/* Support section on the account page (account.html #support, driven by
   tickets.js). Reuses the dashboard's tokens (--ink/--paper/--gray-*,
   .dash__input, .btn) and the light/dark scoping convention already used
   by .dash__plan-badge above (`.dash-page` + prefers-color-scheme). Status
   chips deliberately stay out of Signal Teal (see docs/brand.md's ~10%
   ceiling) — new/in_progress/closed use neutral grays, waiting_on_user
   uses the Warning tone, resolved reuses --success/--success-bg. */

.tix-state { margin: 0; }
.tix-subhead {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.tix-muted { color: var(--gray-500); font-size: 13.5px; margin: 0; }

/* ----- List ----- */
.tix-list { list-style: none; margin: 0; padding: 0; }
/* .tix-row is a real <button> nested in a plain <li> (native Enter/Space
   activation, keeps the <ul>'s implicit list/listitem ARIA structure
   intact — a role="button" <li> broke it) so it needs a full button
   reset on top of the row layout. */
.tix-row {
  display: grid;
  grid-template-columns: 68px 1fr auto 110px;
  align-items: center;
  gap: 14px;
  padding: 13px 8px;
  border-radius: 8px;
  width: 100%;
  margin: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.tix-row:last-child { border-bottom: none; }
.tix-row:hover { background: var(--gray-100); }
.tix-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.tix-row__no { font-size: 12.5px; color: var(--gray-500); }
.tix-row__subject {
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tix-row__date { font-size: 12.5px; color: var(--gray-500); text-align: right; }

/* ----- Status chips (no teal; see file header note) ----- */
.tix-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--gray-100);
  color: var(--ink);
}
.tix-chip[data-status="in_progress"] { background: var(--gray-300); color: var(--ink); }
.tix-chip[data-status="waiting_on_user"] { background: #FBF3DA; color: #8A6100; }
.tix-chip[data-status="resolved"] { background: var(--success-bg); color: var(--success); }
.tix-chip[data-status="closed"] { background: var(--gray-100); color: var(--gray-500); }

/* The one sanctioned teal element in this section: a small Plus badge in
   the ticket-detail header, shown only when the ticket's owner is a
   Plus member. Same soft-teal treatment as .dash__plan-badge's
   active/trialing state above. */
.tix-plus-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
}

/* ----- Form (new ticket + reply) ----- */
.tix-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.tix-field { display: flex; flex-direction: column; gap: 6px; }
/* .dash__input carries `flex: 1 1 260px` for its original horizontal flex
   row (the admin lookup form); inside this vertical .tix-field column
   that flex-basis is read on the cross axis and blows the control up to
   fill the column's height. Reset it here so it just sizes to content. */
.tix-field .dash__input { flex: none; width: 100%; box-sizing: border-box; }
.tix-field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.tix-optional { font-weight: 400; color: var(--gray-500); }
.tix-field-row { display: flex; gap: 16px; }
.tix-field-row .tix-field { flex: 1 1 0; }
.tix-textarea { resize: vertical; min-height: 96px; font-family: var(--font-body); }
.tix-field__error {
  font-size: 12.5px;
  color: var(--error);
  margin: 0;
  min-height: 1.3em;
}
.tix-field input[type="file"] { font-size: 13px; color: var(--gray-700); }

.tix-filelist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tix-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  background: var(--gray-100);
  border-radius: 8px;
  padding: 6px 10px;
}
.tix-file__remove {
  background: none;
  border: none;
  color: var(--teal-deep);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}
.tix-file__remove:hover { text-decoration: underline; }

/* ----- Detail / thread ----- */
.tix-detail-subject { font-size: 15px; font-weight: 500; color: var(--ink); }
.tix-thread { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 18px; }
.tix-msg {
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 12px 14px;
  max-width: 640px;
}
.tix-msg--user { background: #fff; }
.tix-msg--admin { background: var(--gray-100); border-color: var(--gray-100); }
.tix-msg__head { font-size: 12px; color: var(--gray-500); margin: 0 0 6px; }
.tix-msg__body { font-size: 14px; line-height: 1.55; color: var(--ink); margin: 0; white-space: pre-wrap; }
.tix-msg__attachments { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tix-msg__attachments a { color: var(--teal-deep); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.tix-msg__attachments a:hover { text-decoration: none; }

.tix-reply { margin-top: 4px; }

/* ----- Confirmation ----- */
.tix-confirm { text-align: center; padding: 20px 8px 8px; }
.tix-confirm__no {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.tix-confirm__msg { font-size: 14.5px; color: var(--ink); max-width: 440px; margin: 0 auto 10px; }
.tix-confirm__sla { font-size: 13px; color: var(--gray-500); max-width: 440px; margin: 0 auto 20px; }

@media (max-width: 720px) {
  .tix-row { grid-template-columns: 1fr; row-gap: 6px; }
  .tix-row__date { text-align: left; }
  .tix-field-row { flex-direction: column; gap: 16px; }
}

@media (prefers-color-scheme: dark) {
  .dash-page .tix-subhead { color: #EDEFEF; }
  .dash-page .tix-muted { color: #A9AFBC; }
  .dash-page .tix-row { border-bottom-color: #262B36; }
  .dash-page .tix-row:hover { background: #1B1F29; }
  .dash-page .tix-row__no,
  .dash-page .tix-row__date { color: #6A7180; }
  .dash-page .tix-row__subject { color: #EDEFEF; }

  .dash-page .tix-chip { background: #232833; color: #EDEFEF; }
  .dash-page .tix-chip[data-status="in_progress"] { background: #2E3542; color: #EDEFEF; }
  .dash-page .tix-chip[data-status="waiting_on_user"] { background: #3A2E12; color: #E8C173; }
  .dash-page .tix-chip[data-status="resolved"] { background: #143024; color: #6FCB94; }
  .dash-page .tix-chip[data-status="closed"] { background: #232833; color: #8A8F98; }
  .dash-page .tix-plus-badge { background: #113B37; color: #4FD8C8; }

  .dash-page .tix-field label { color: #EDEFEF; }
  .dash-page .tix-field input[type="file"] { color: #A9AFBC; }
  .dash-page .tix-file { background: #232833; color: #EDEFEF; }

  .dash-page .tix-detail-subject { color: #EDEFEF; }
  .dash-page .tix-msg { border-color: #262B36; }
  .dash-page .tix-msg--user { background: #1B1F29; }
  .dash-page .tix-msg--admin { background: #232833; border-color: #232833; }
  .dash-page .tix-msg__head { color: #6A7180; }
  .dash-page .tix-msg__body { color: #EDEFEF; }

  .dash-page .tix-confirm__no,
  .dash-page .tix-confirm__msg { color: #EDEFEF; }
  .dash-page .tix-confirm__sla { color: #A9AFBC; }
}

/* --- admin tickets (lane E) --- */
/* SCOPING CONVENTION (read before editing): lane D's Support section
   (account.html) and this admin Tickets view (admin.html) both landed on a
   bare `.tix-` class prefix independently, and several base class names
   collided with different intended styling (.tix-row, .tix-chip,
   .tix-detail-subject, .tix-thread, .tix-muted) -- a plain "keep both
   blocks" merge would have let whichever block sits later in this file
   silently win the cascade on BOTH pages. Fixed by scoping: every selector
   below is qualified under this view's actual DOM root, `#tickets-view`
   (the <section id="tickets-view"> in admin.html), or under
   `#tickets-nav-btn` for the two sidebar-nav rules that render outside
   that section. Class NAMES are unchanged from admin.tickets.js's
   className strings -- only these CSS selectors gained a scoping
   ancestor. If you add a new `.tix-*` class here, scope it the same way;
   if you touch lane D's block above, its `.tix-*` classes are unscoped by
   convention (Support is the only feature using them) and should stay
   that way unless a third feature needs the same prefix, in which case
   scope BOTH sides rather than picking a winner. Teal is used here only
   because it already marks the ACTIVE nav row elsewhere in this exact
   sidebar (admin.js paintSidebar) -- everywhere else in this block
   (status/priority chips) intentionally avoids teal per the brand's "rare
   signal" rule; the Plus chip is the one badge allowed to use it. */
#tickets-nav-btn {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 9px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  border: none; width: 100%; font-family: inherit; text-align: left;
  color: #8A8F98; background: transparent;
}
#tickets-nav-btn:hover { color: #F7F7F5; }
#tickets-nav-btn .tix-nav-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #3A4252; display: block; }
#tickets-nav-btn .tix-nav-label { flex: 1; }
#tickets-nav-btn.tix-nav--active { color: #F7F7F5; background: rgba(18, 179, 166, .16); }
#tickets-nav-btn.tix-nav--active .tix-nav-dot { background: var(--teal); }

/* Queue */
#tickets-view .tix-queue, #tickets-view .tix-detail { display: flex; flex-direction: column; gap: 20px; }
#tickets-view .tix-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; padding: 14px 16px;
}
#tickets-view .tix-select {
  border: 1px solid var(--gray-300); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--ink);
}
#tickets-view .tix-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-700); cursor: pointer; }
#tickets-view .tix-search { display: flex; gap: 8px; margin-left: auto; }
#tickets-view .tix-search input[type="search"] {
  border: 1px solid var(--gray-300); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; min-width: 220px; font-family: inherit;
}

#tickets-view .tix-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; }
#tickets-view .tix-table { width: 100%; border-collapse: collapse; min-width: 920px; }
#tickets-view .tix-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .4px; padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100); white-space: nowrap;
}
#tickets-view .tix-row { cursor: pointer; }
#tickets-view .tix-row:hover { background: #FAFAF8; }
#tickets-view .tix-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
#tickets-view .tix-td { padding: 12px 14px; border-bottom: 1px solid var(--row-divider); font-size: 13.5px; color: var(--ink); vertical-align: top; }
#tickets-view .tix-td--mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--gray-700); white-space: nowrap; }
#tickets-view .tix-row-link {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
#tickets-view .tix-row-link:hover { color: var(--teal-deep); text-decoration: underline; }
#tickets-view .tix-td--subject { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tickets-view .tix-td--category, #tickets-view .tix-td--date { color: var(--gray-700); white-space: nowrap; }
#tickets-view .tix-requester-name { font-weight: 500; }
#tickets-view .tix-requester-email { font-size: 12px; color: var(--gray-500); }

#tickets-view .tix-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
#tickets-view .tix-chip--plus { background: var(--teal-soft); color: var(--teal-deep); }
#tickets-view .tix-chip--status-new { background: var(--gray-100); color: var(--ink); font-weight: 700; }
#tickets-view .tix-chip--status-in_progress { background: var(--gray-100); color: var(--gray-700); }
#tickets-view .tix-chip--status-waiting_on_user { background: var(--gray-100); color: var(--gray-700); font-style: italic; }
#tickets-view .tix-chip--status-resolved { background: var(--success-bg); color: var(--success); }
#tickets-view .tix-chip--status-closed { background: var(--gray-100); color: var(--gray-500); }
#tickets-view .tix-chip--priority-low { background: var(--gray-100); color: var(--gray-500); }
#tickets-view .tix-chip--priority-normal { background: var(--gray-100); color: var(--gray-700); }
#tickets-view .tix-chip--priority-high { background: #fff; color: var(--error); border: 1px solid var(--error); }
#tickets-view .tix-chip--priority-urgent { background: var(--error); color: #fff; }

#tickets-view .tix-pagination { display: flex; align-items: center; gap: 12px; }
#tickets-view .tix-pagination__label { font-size: 12.5px; color: var(--gray-500); margin-right: auto; }

#tickets-view .tix-muted { font-size: 13.5px; color: var(--gray-500); margin: 0; }
#tickets-view .tix-error { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; padding: 18px; }
#tickets-view .tix-error p { margin: 0; color: var(--gray-700); font-size: 13.5px; }

/* Detail */
#tickets-view .tix-detail-header { background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
#tickets-view .tix-detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#tickets-view .tix-detail-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#tickets-view .tix-detail-no { font-family: var(--font-mono); font-size: 12.5px; color: var(--gray-500); }
#tickets-view .tix-detail-subject { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.3px; }
#tickets-view .tix-detail-who { font-size: 13px; color: var(--gray-700); margin: 0; }
#tickets-view .tix-detail-controls { display: flex; gap: 8px; }

#tickets-view .tix-thread { display: flex; flex-direction: column; gap: 10px; }
#tickets-view .tix-message { background: #fff; border: 1px solid var(--gray-100); border-radius: 12px; padding: 14px 16px; }
#tickets-view .tix-message--internal { background: #FBF8EF; border-color: #EDE6CE; }
#tickets-view .tix-message-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
#tickets-view .tix-message-who { font-size: 12.5px; font-weight: 600; color: var(--ink); }
#tickets-view .tix-message-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: #8A7A3D; background: #F2E9CB; padding: 2px 7px; border-radius: 5px;
}
#tickets-view .tix-message-when { font-size: 11.5px; color: var(--gray-500); margin-left: auto; }
#tickets-view .tix-message-body { font-size: 13.5px; color: var(--ink); line-height: 1.55; margin: 0; white-space: pre-wrap; }
#tickets-view .tix-attachments { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
#tickets-view .tix-attachment { font-size: 12.5px; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
#tickets-view .tix-attachment--noref { color: var(--gray-500); text-decoration: none; cursor: default; }

#tickets-view .tix-reply { background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
#tickets-view .tix-reply-mode { display: flex; gap: 6px; }
#tickets-view .tix-mode-btn {
  border: 1px solid var(--gray-300); background: #fff; color: var(--gray-700);
  font-size: 12.5px; font-weight: 500; padding: 7px 13px; border-radius: 8px;
  cursor: pointer; font-family: inherit;
}
#tickets-view .tix-mode-btn--active { background: var(--ink); color: #F7F7F5; border-color: var(--ink); }
#tickets-view .tix-reply-textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--gray-100); border-radius: 9px;
  padding: 11px 13px; font-family: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--paper); resize: vertical; line-height: 1.5;
}
#tickets-view .tix-reply-send-row { display: flex; justify-content: flex-end; }
#tickets-view .tix-inline-error { font-size: 12.5px; color: var(--error); margin: 0; }

#tickets-view .tix-section-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 0 0 10px; }
#tickets-view .tix-events { background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; padding: 16px 18px; }
#tickets-view .tix-event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#tickets-view .tix-event { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--row-divider); flex-wrap: wrap; }
#tickets-view .tix-event:last-child { border-bottom: none; }
#tickets-view .tix-event-when { color: var(--gray-500); font-family: var(--font-mono); font-size: 11.5px; flex: none; width: 150px; }
#tickets-view .tix-event-actor { color: var(--gray-700); font-weight: 500; flex: none; }
#tickets-view .tix-event-what { color: var(--ink); }

#tickets-view .tix-delete { border-top: 1px solid var(--gray-100); padding-top: 16px; margin-top: 4px; }
#tickets-view .tix-delete-toggle { background: none; border: none; color: var(--error); font-size: 12.5px; cursor: pointer; padding: 0; font-family: inherit; }
#tickets-view .tix-delete-copy { font-size: 12.5px; color: var(--gray-700); max-width: 480px; margin: 10px 0; }
#tickets-view .tix-delete-label { display: block; font-size: 12px; color: var(--gray-700); margin-bottom: 14px; }
#tickets-view .tix-delete-input {
  display: block; margin-top: 6px; border: 1px solid var(--gray-300); border-radius: 8px;
  padding: 8px 11px; font-size: 13px; font-family: var(--font-mono); width: 180px;
}
#tickets-view .tix-delete-confirm { background: var(--error); color: #fff; border: none; }
#tickets-view .tix-delete-confirm:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }

@media (max-width: 900px) {
  #tickets-view .tix-search { margin-left: 0; width: 100%; }
  #tickets-view .tix-search input[type="search"] { flex: 1; min-width: 0; }
  #tickets-view .tix-detail-top { flex-direction: column; }
  #tickets-view .tix-event-when { width: auto; }
}
