:root {
  --ink: #1d2733;
  --muted: #4a5868;
  --bg: #f7f8fa;
  --card: #ffffff;
  --navy: #0a2649;
  --steel: #3f6a97;
  --orange: #ce5225;
  --orange-strong: #b94a21;
  --accent: var(--orange-strong);
  --tint: #e8eef5;
  --brand: var(--navy);
  --brand-dark: var(--steel);
  --line: #d6dce3;
  --warn-bg: #fff4d6;
  --warn-ink: #5c4300;
  --error: #a4161a;
  --field-error: #b42318;
  --ok: #1b6e3a;
  --radius: 8px;
  --orange-hover: #963b1a;
  --orange-ink: #8a3517;
  --disabled-bg: #e3e8ee;
  --disabled-ink: #4a5868;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--steel); }
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange-strong);
  outline-offset: 2px;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--card); padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; z-index: 10; }

.draft-banner, .price-note, .prototype-note {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid #e8c766;
  border-radius: var(--radius);
  padding: .6rem 1rem;
}
.draft-banner { border-radius: 0; border-width: 0 0 1px; text-align: center; font-size: .95rem; }

.site-header { background: var(--card); border-bottom: 3px solid var(--orange); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav actions"; align-items: center; gap: .5rem 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.header-inner > .brand { grid-area: brand; }
.header-inner > nav { grid-area: nav; min-width: 0; }
.header-inner .nav-list { justify-content: center; }
.brand { font-weight: 700; font-size: 1.3rem; text-decoration: none; color: var(--navy); display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 48px; width: auto; max-width: 70vw; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .15rem; color: var(--steel); }
.nav-list a:hover { color: var(--navy); }

.breadcrumb { margin: 1rem 0 .25rem; font-size: .95rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "›" / ""; color: var(--orange-strong); padding: 0 .45rem; font-weight: 700; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .15rem; color: var(--steel); text-underline-offset: .2em; overflow-wrap: anywhere; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 600; text-decoration: none; }
.line-page h1 { margin: .25rem 0 .5rem; color: var(--navy); }
.back-home a { display: inline-flex; align-items: center; min-height: 44px; }
.catalog-column h4 a { color: var(--navy); }

section { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.hero { background: linear-gradient(135deg, var(--tint), var(--bg)); padding: 3.5rem 0; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .75rem; line-height: 1.2; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; min-width: 44px; padding: .6rem 1.25rem;
  border: 2px solid var(--navy); border-radius: var(--radius);
  background: var(--navy); color: #fff;
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.button:hover { background: var(--steel); border-color: var(--steel); color: #fff; }
.button:active { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25); }
.button:focus-visible { outline: 3px solid var(--orange-strong); outline-offset: 3px; }
.button-secondary { background: var(--card); color: var(--steel); border-color: var(--steel); }
.button-secondary:hover { background: var(--tint); color: var(--navy); border-color: var(--navy); }
.button-secondary:active { background: var(--tint); color: var(--navy); border-color: var(--navy); box-shadow: inset 0 3px 0 rgba(10, 38, 73, .15); }
.button-accent { background: var(--orange-strong); border-color: var(--orange-strong); color: #fff; }
.button-accent:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.button-accent:active { background: var(--orange-hover); border-color: var(--orange-hover); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .25); }
.button:disabled, .button[aria-disabled="true"] {
  background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-ink);
  box-shadow: none; cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
.partner-fields[hidden] { display: none; }
.field-note { color: var(--muted); font-size: .92rem; margin: 0 0 .75rem; }

.filter { margin: 1.25rem 0; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
select, input, textarea {
  font: inherit; padding: .55rem .7rem; border: 1px solid #7a8797; border-radius: var(--radius);
  background: #fff; color: var(--ink); max-width: 100%;
}
select, input:not([type="radio"]):not([type="checkbox"]) { min-height: 44px; }
select:hover, input:hover, textarea:hover { border-color: var(--steel); }
input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--navy); }
label.inline { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
label.check-row { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 400; cursor: pointer; }
input[type="checkbox"] { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: #0a2649; }
input[type="checkbox"]:focus-visible { outline: 3px solid #b94a21; outline-offset: 2px; }

.line-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 1.25rem 0; }
.line-grid.single-line { grid-template-columns: minmax(0, 1fr); }
.line-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.line-card h3, .line-card h4 { margin: 0; font-size: 1.1rem; }
.line-card ul { padding-left: 1.1rem; margin: 0; }
.line-card .line-cta { margin-top: auto; align-self: stretch; }
.line-card-compact { text-align: center; font-weight: 600; justify-content: center; }
.line-card-compact a { text-decoration: none; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; }
.line-card-compact a:hover { text-decoration: underline; }
.hero-line { color: var(--muted); }
.lines-note { color: var(--muted); font-size: .95rem; }
.partner-line { margin: 0; font-size: .9rem; }
.partner-link { display: inline-flex; align-items: center; min-height: 44px; }
.text-link { text-decoration: underline; }
.catalog { margin-top: 2rem; }
.price-list { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: .75rem; }
.price-row { border-top: 1px solid var(--line); padding-top: .6rem; }
.price-row p { margin: .2rem 0; color: var(--muted); font-size: .9rem; }
.price-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.service-name { font-weight: 600; }
.placeholder {
  background: var(--placeholder-bg, #fde7e9); color: var(--placeholder-ink, #7a1020);
  border: 0; outline: 0; border-radius: 0; padding: 0 .1em;
  text-decoration: underline dashed #c2414f 1px; text-underline-offset: .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.button .placeholder { background: transparent; color: inherit; text-decoration-color: currentColor; padding: 0; }
.team-block { max-width: 65ch; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); list-style: none; padding: 0; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.card h4 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.price { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.meta { font-size: .85rem; color: var(--muted); }
.badge { display: inline-block; font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: var(--tint); color: var(--navy); margin-right: .25rem; }

.plans .card { border-color: var(--brand); margin-top: 1rem; }

.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: .5rem; }

details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
summary:hover { color: var(--navy); }

form { max-width: 40rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .3rem; border: 0; padding: 0; }
fieldset.field { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
legend { font-weight: 600; margin-bottom: .3rem; width: 100%; }
label { font-weight: 600; }
label.inline { font-weight: 400; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; }
.form-status.error, .status-message.error { color: var(--error); }
.form-status.ok { color: var(--ok); }

.site-footer { padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .9rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef2f6; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; min-width: 10rem; }

@media (max-width: 860px) {
  .line-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .nav-list { gap: 0 .6rem; font-size: .95rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .breadcrumb { font-size: 1rem; }
  section { padding: 1.75rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.line-card[id^="line-"] { position: relative; padding-bottom: calc(1.1rem + 44px); }
.line-card[id^="line-"] .partner-line { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .55rem; }



.catalog-column > h4 a, .catalog-column > h2 a {
  display: inline-flex; align-items: center; min-height: 44px;
}

.hero { padding-top: .25rem; }
.hero .breadcrumb { margin: 0 0 1.75rem; }

.line-page .catalog-column > h2 { margin: 0; font-size: 1.1rem; }
.catalog-column a[aria-current="page"] { color: var(--navy); }
.plans .card h5 { margin: 0; font-size: 1.05rem; }

.char-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; }
.char-count.is-met { color: var(--ok); }
#details-hint:not([hidden]) {
  background: var(--tint); color: var(--ink); border-left: 3px solid var(--steel);
  padding: .5rem .75rem; border-radius: 0 4px 4px 0; margin: 0;
}
select[aria-invalid="true"], input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--error); box-shadow: 0 0 0 1px var(--error);
}

.button-ghost { background: transparent; color: var(--steel); border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.button-ghost:hover { background: var(--tint); color: var(--navy); border-color: transparent; }
.button-ghost:active { background: var(--tint); color: var(--navy); border-color: transparent; box-shadow: none; }
.line-page .line-cta { min-width: 15rem; }

.line-card-compact a { text-wrap: balance; }

.line-page a, .site-footer a { min-height: 44px; }
.line-page p a, .site-footer p a { display: inline-flex; align-items: center; }

.nav-list a[aria-current="page"] { color: var(--navy); font-weight: 600; text-decoration-thickness: 2px; }
.nav-list a { min-width: 44px; justify-content: center; }
.hdr-actions { grid-area: actions; display: flex; gap: .5rem; align-items: center; }
.hdr-actions .button { padding: .5rem 1rem; white-space: nowrap; }
.acct-menu { position: relative; }
.acct-menu > summary { list-style: none; cursor: pointer; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.acct-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; list-style: none; margin: 0; padding: .25rem 0;
  background: var(--card); border: 1px solid #7a8797; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(10, 38, 73, .18); }
.acct-menu-list[hidden] { display: none; }
.acct-menu-list a, .acct-menu-list .menu-signout { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 1rem; box-sizing: border-box;
  color: var(--steel); font: inherit; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.acct-menu-list a:hover, .acct-menu-list .menu-signout:hover { background: var(--tint); color: var(--navy); }
.acct-menu-list a[aria-current="page"] { color: var(--navy); box-shadow: inset 4px 0 0 var(--navy); }
.acct-menu-list li:last-child { border-top: 1px solid var(--line); }
.acct-menu-list form { margin: 0; }
@media (max-width: 1180px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav"; }
  .header-inner .nav-list { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .header-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "actions" "nav"; padding-top: .5rem; padding-bottom: 0; }
  .brand { min-height: 44px; }
  .brand-logo { height: 40px; }
  .hdr-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hdr-actions .button { width: 100%; padding: .5rem; font-size: .95rem; box-sizing: border-box; }
  .hdr-actions > :only-child { grid-column: 1 / -1; }
  .acct-menu .acct-btn { width: 100%; }
  .acct-menu-list { left: 0; right: auto; width: calc(200% + .5rem); }
  .site-header nav { position: relative; width: calc(100% + 2.5rem); margin: 0 -1.25rem; }
  .nav-list {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    padding: 0 2.5rem 0 1.25rem; gap: 0 .9rem; white-space: nowrap;
  }
  .site-header nav::after {
    content: ""; position: absolute; right: 0; bottom: 0; width: 2.5rem; height: 44px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--card)); pointer-events: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .draft-banner { font-size: .85rem; padding: .4rem .75rem; }
}
@media (max-width: 340px) { .hdr-actions .button { font-size: .9rem; padding: .5rem .25rem; } }

.price-row .request-this { margin-top: .35rem; padding: .35rem .5rem; margin-left: -.5rem; font-size: .95rem; }

.confirm-panel[hidden], form[hidden] { display: none; }
.confirm-panel { background: var(--tint); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: 1rem 1.25rem; max-width: 40rem; }
.confirm-panel h3 { margin: 0 0 .5rem; color: var(--navy); }
.confirm-panel p { margin: .5rem 0; color: var(--ink); }
.confirm-panel:focus-visible { outline: 3px solid var(--orange-strong); outline-offset: 2px; }

.line-card .plan-request { margin: .35rem 0 0 -.5rem; padding: .35rem .5rem; font-size: .95rem; }
.plans .plan-request { align-self: flex-start; margin-left: -.5rem; padding: .35rem .5rem; }
.plan-fields[hidden], #device-count-field[hidden], [data-plan-note][hidden] { display: none; }
#device_count { max-width: 8rem; }

.field-error { color: var(--error); font-size: .9rem; margin: .3rem 0 0; }
#ticket-form .field-error { color: var(--field-error); }
.required-note { font-size: 14px; color: #4a5568; margin: 0 0 1rem; }
.fallback-page { padding: 2rem 0 3rem; }
.fallback-page .fallback-actions { margin: 1.25rem 0 2rem; }
.field-error[hidden] { display: none; }

.price-section { border-top: 1px solid var(--line); }
.price-section > summary.price-summary {
  min-height: 56px; padding: .5rem .25rem; gap: .6rem; color: var(--navy); list-style: none;
}
.price-section > summary.price-summary::-webkit-details-marker { display: none; }
.price-section > summary.price-summary::before {
  content: ""; flex: none; width: .55rem; height: .55rem; margin-left: .2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s;
}
.price-section[open] > summary.price-summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .price-section > summary.price-summary::before { transition: none; } }

.v6-compact { display: none; }
.v4-full { display: contents; }
.hours-note { margin: 0 0 1rem; }
@media (max-width: 640px) {
  .v4-full { display: none; }
  div.v6-compact, p.v6-compact { display: block; }
  .line-card .who-for { margin: 0; font-weight: 600; color: var(--ink); }
  .line-card .see-all { margin: 0; }
  .line-card .see-all a { display: inline-flex; align-items: center; min-height: 44px; }
  .line-card[id^="line-"] { padding-bottom: 1.1rem; }
  .line-card[id^="line-"] .partner-line { position: static; margin: -.25rem 0 0; font-size: 1rem; }
  .line-card[id^="line-"] .partner-link {
    min-height: 44px; padding: 0 .5rem; margin-left: -.5rem; border-radius: var(--radius);
    color: var(--steel); font-weight: 600; text-decoration: underline; text-underline-offset: .2em;
  }
  .line-card[id^="line-"] .partner-link:hover { background: var(--tint); color: var(--navy); }
}
#faq details > summary {
  min-height: 56px; padding: .5rem .25rem; gap: .6rem; color: var(--navy); list-style: none;
}
#faq details > summary::-webkit-details-marker { display: none; }
#faq details > summary::before {
  content: ""; flex: none; width: .55rem; height: .55rem; margin-left: .2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s;
}
#faq details[open] > summary::before { transform: rotate(45deg); }
details.price-section, #faq details { padding: 0 .75rem; }
details.price-section > :not(summary), #faq details > :not(summary) { margin: .25rem 0 .75rem; }
@media (prefers-reduced-motion: reduce) {
  #faq details > summary::before { transition: none; }
}

.notice { background: var(--tint); border-left: 4px solid var(--steel); border-radius: var(--radius); padding: 1rem 1.25rem; max-width: 40rem; }
.notice h2 { margin: 0 0 .5rem; color: var(--navy); }
.notice p { margin: .5rem 0; color: var(--ink); }
#form-closed:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

.plan-pricing-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.v6-compact li > .plan-pricing-link { display: inline; min-height: 0; padding: .85rem 0; }
.v6-compact li > .plan-pricing-link { white-space: nowrap; }
#plan-pricing { scroll-margin-top: 4rem; }
.plans-grid { margin-top: 1rem; }
.not-found h1 { margin-top: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.line-pricing-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
div.phone-pricing { margin: .25rem 0 0; }
.phone-price-section { margin-top: .25rem; }
.phone-price-list { padding-left: 1.1rem; margin: .25rem 0 .5rem; }
[id^="prices-"] { scroll-margin-top: 4rem; }
@media (max-width: 640px) {
  .phone-prices-tucked .phone-price { display: none; }
  .phone-prices-tucked .phone-tucked { display: none; }
}
.plans-column .card-grid { grid-template-columns: minmax(0, 1fr); }
.plans-column .card { margin-top: .25rem; }

.nav-list a.nav-account { font-weight: 600; }
.account-page form.account-form { max-width: 28rem; }
.account-page h1, .admin-page h1 { color: var(--navy); margin: .25rem 0 .75rem; }
.account-page section, .admin-page section { padding: 1.5rem 0; }
.account-form input:not([type="checkbox"]):not([type="radio"]), .account-form select { font-size: 1rem; width: 100%; box-sizing: border-box; }
.account-form .button { margin-top: .25rem; }
.account-links { list-style: none; padding: 0; margin: 1rem 0 0; }
.account-links a, .account-menu a, .account-lines a, .confirm-account a, .admin-links a {
  display: inline-flex; align-items: center; min-height: 44px;
}
.account-note { max-width: 65ch; color: var(--muted); }
.account-menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; margin: 0 0 .5rem; }
.account-lines { list-style: none; padding: 0; margin: .5rem 0; }
.account-banner { padding: .75rem 1rem; border-radius: var(--radius); max-width: 65ch; }
.status-pending { background: var(--warn-bg); color: var(--warn-ink); }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.pill-ok { background: #e7f3ec; color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-muted { background: var(--tint); color: var(--muted); }
.pill-error { background: #fde7e9; color: var(--error); }
.button-danger { background: var(--card); color: var(--error); border-color: var(--error); }
.button-danger:hover { background: #fde7e9; color: var(--error); border-color: var(--error); }
.button-danger-filled { background: var(--error); border-color: var(--error); color: #fff; }
.button-danger-filled:hover { background: #7f1013; border-color: #7f1013; }
.form-status:focus { outline: none; }
.admin-panel { margin: 1rem 0; max-width: 40rem; }
.admin-panel > summary { padding: 0 .25rem; }
.danger-zone { border-color: var(--error); }
.admin-action form { max-width: 28rem; margin: .5rem 0 1rem; }
.admin-search { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; max-width: none; }
.admin-search .field { margin-bottom: 0; }
.admin-search input[type="search"] { min-width: 16rem; }
@media (min-width: 1024px) {
  .admin-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; }
}
@media (max-width: 640px) {
  .account-table thead { position: absolute; left: -9999px; }
  .account-table, .account-table tbody, .account-table tr, .account-table td { display: block; width: 100%; box-sizing: border-box; }
  .account-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; background: var(--card); }
  .account-table td { border-bottom: 0; padding: .35rem .75rem; }
  .account-table td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
  .admin-search input[type="search"] { min-width: 0; width: 100%; }
}
.account-table td a { display: inline-flex; align-items: center; min-height: 44px; }

dialog.sp-dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem;
  width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; color: var(--ink); background: var(--card); }
dialog.sp-dialog::backdrop { background: rgba(10, 38, 73, .55); }
dialog.sp-dialog h2 { margin-top: 0; font-size: 1.25rem; color: var(--navy); }
dialog.sp-dialog textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; min-height: 5.5rem; padding: .5rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.link-button { background: none; border: 0; padding: 0 .25rem; min-height: 44px; font: inherit; color: var(--steel);
  text-decoration: underline; cursor: pointer; display: inline-flex; align-items: center; }
.link-button:hover { color: var(--navy); }
.danger-link { color: var(--error); }
.row-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .15rem; }
.account-menu form { display: inline; margin: 0; }
.account-menu .form-status:empty { display: none; }
.account-table .field-note { display: block; margin: .25rem 0 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: .5rem 0 1rem; }
fieldset.radio-rows { flex-direction: column; gap: 0; border: 0; padding: 0; margin: 0 0 1rem; }
fieldset.radio-rows .radio-row { display: flex; width: 100%; min-height: 44px; }
.company-field[hidden] { display: none; }
details.password-panel { margin: .25rem 0 1.5rem; max-width: 28rem; }
details.password-panel > summary, details.raw-data > summary, details.admin-panel > summary {
  min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--steel); }
details.raw-data .raw { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem;
  color: var(--muted); overflow-wrap: anywhere; margin: .25rem 0; }
.flash { background: #e7f3ec; color: var(--ok); margin: .5rem 0 1rem; }
.flash:focus { outline: 3px solid var(--orange-strong); outline-offset: 2px; }
.signup-next { margin: 1rem 0; }
.plan-cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1rem 1.25rem; }
.plan-card h3 { margin: 0 0 .5rem; color: var(--navy); }
.plan-card .plan-status { margin: 0 0 .75rem; }
.plan-card .plan-status .field-note { display: block; margin: .25rem 0 0; }
.plan-facts { margin: 0; display: grid; gap: .5rem; }
.plan-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.plan-facts dt { font-weight: 600; color: var(--ink); }
.plan-facts dd { margin: 0; }
.plan-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 0; }
.admin-col > section:first-child { padding-top: 0; }
.account-form input[type="radio"], .account-form input[type="checkbox"] { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin: 0; }
fieldset.radio-rows .radio-row { justify-content: flex-start; align-items: center; gap: .6rem; }
.account-form label.check-row { align-items: flex-start; }
.account-form label.check-row > span { flex: 1; }
.account-form label.check-row input[type="checkbox"] { margin-top: .2rem; }
.account-form input[readonly] { background: var(--disabled-bg); color: var(--disabled-ink); cursor: default; }
@media (max-width: 640px) { .account-table td:empty { display: none; } }
.sp-dialog .dialog-actions .button-danger { background: var(--error); border-color: var(--error); color: #fff; }
.sp-dialog .dialog-actions .button-danger:hover { background: #7d1013; border-color: #7d1013; color: #fff; }

dialog.sp-dialog { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.nowrap { white-space: nowrap; }
.admin-plans { margin-top: 1.5rem; }

.field[hidden], [data-plan-only][hidden] { display: none; }
.admin-requests .row-actions { gap: .75rem; }
.sp-dialog { padding-bottom: 0; }
dialog.sp-dialog { padding-bottom: 0; }
.sp-dialog .dialog-actions { position: sticky; bottom: 0; padding: .75rem 0 1rem; background: var(--card); box-shadow: 0 -1px 0 var(--line); z-index: 1; }
.admin-columns { align-items: start; }
.admin-columns > * > h2:first-child { margin-top: 0; }
.admin-columns > section:first-child { padding-top: 0; }
.admin-col > section:first-child > h2:first-child { margin-top: 0; }

.form-status:empty { display: none; }

.admin-bar { position: sticky; top: 0; z-index: 50; background: #0a2649; color: #fff; font-size: 14px; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 40px; padding-top: 2px; padding-bottom: 2px; }
.admin-bar-label { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-bar-short { display: none; }
.admin-bar-form { margin: 0; }
.admin-bar .admin-bar-signout { min-height: 44px; padding: 0 1rem; font-size: 14px; background: transparent; color: #fff; border: 1px solid #fff; }
.admin-bar .admin-bar-signout:hover { background: #fff; color: #0a2649; border-color: #fff; }
.admin-bar .admin-bar-signout:active { background: #fff; color: #0a2649; box-shadow: none; }
.admin-bar .admin-bar-signout:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .admin-bar-long { display: none; }
  .admin-bar-short { display: inline; }
}

.footer-signin-item { margin: 8px 0 0; }
.footer-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: inherit; text-decoration: underline; }
.footer-signin:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.services-editor .account-note { margin: 0 0 1rem; }
.services-filter { margin: 0 0 .5rem; }
.services-filter select, .services-filter input[type="search"] { font-size: 1rem; }
.services-count { margin: .5rem 0; }
.services-table .row-actions { gap: 0 .75rem; margin: 0; flex-wrap: nowrap; }
.services-table .link-button { min-width: 44px; justify-content: center; }
.services-table td.services-actions { white-space: nowrap; }
.services-flash { padding: .5rem 1rem; }
.services-flash p { margin: .25rem 0; }
.services-flash a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ok); font-weight: 600; }
.service-dialog .field-note { margin: 0; }
.service-dialog textarea { min-height: 4.5rem; }
.service-dialog input[readonly] { background: var(--disabled-bg); color: var(--disabled-ink); cursor: default; }
@media (max-width: 640px) {
  .services-table td.services-actions { white-space: normal; padding-top: 0; }
  .services-table .row-actions { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .services-table tr { display: grid; grid-template-columns: auto auto 1fr auto; gap: .15rem .5rem; padding: .75rem; align-items: baseline; }
  .services-table.account-table td { padding: 0; width: auto; }
  .services-table.account-table td[data-label]:not([data-label=""])::before { content: none; }
  .services-table td[data-label="Name"] { grid-column: 1 / 4; grid-row: 1; font-weight: 600; color: var(--navy); }
  .services-table td[data-label="Status"] { grid-column: 4; grid-row: 1; justify-self: end; }
  .services-table td[data-label="Price"] { grid-column: 1 / -1; grid-row: 2; font-weight: 600; }
  .services-table td[data-label="Code"], .services-table td[data-label="Line"], .services-table td[data-label="Delivery"] { grid-row: 3; color: var(--muted); font-size: .92rem; }
  .services-table.account-table td[data-label="Line"]:not([data-label=""])::before, .services-table.account-table td[data-label="Delivery"]:not([data-label=""])::before { content: "\00b7  "; font-weight: 400; color: var(--muted); }
  .services-table td[data-label="Delivery"] { grid-column: 3 / -1; }
  .services-table td[data-label="In plans"], .services-table td[data-label="Order"] { display: none; }
  .services-table td.services-actions { grid-column: 1 / -1; grid-row: 4; }
}
@media (min-width: 641px) { .services-table td[data-label="Price"] { white-space: nowrap; } }
#service-dialog-desc { margin: 0 0 1rem; }
.error-summary:empty { display: none; }
.error-summary.error { background: #fde7e9; color: var(--error); border-left: 4px solid var(--error); border-radius: var(--radius); padding: .5rem .75rem; margin: .5rem 0 1rem; }
.error-summary a { color: var(--error); font-weight: 600; }
.live-preview { margin: .25rem 0 1rem; padding: .75rem 1rem; background: var(--tint); border-left: 4px solid var(--steel); border-radius: var(--radius); color: var(--ink); }
.live-preview strong { color: var(--navy); }
.live-preview.is-free { background: #fff4e0; border-left-color: #8a4b00; }
.live-preview.is-free strong { color: #6b3a00; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-prefix > input { padding-left: 1.75rem; }

.tkt {
  --fs-xs: .8125rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.375rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --lh-tight: 1.2; --fw-regular: 400; --fw-semibold: 600; --fw-bold: 700;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem;
  --gutter: 1.25rem; --radius-sm: 4px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(10, 38, 73, .06), 0 1px 1px rgba(10, 38, 73, .04);
  --control-border: #7a8797; --placeholder-bg: #fde7e9; --placeholder-ink: #7a1020;
  --focus-color: var(--orange-strong); --focus-width: 3px; --focus-offset: 2px; --target-min: 44px;
  --ok-bg: #e3f1e7; --error-bg: #fdf0f0; --note-internal-bg: #fffaeb;
  --p2-bg: #fbeee8; --sticky-bar-h: 64px;
}
.container.tkt-wide { max-width: 1280px; }
.tkt h1 { color: var(--navy); line-height: var(--lh-tight); }
.tkt h2 { color: var(--navy); font-size: var(--fs-md); margin: 0 0 var(--space-3); line-height: var(--lh-tight); }
.tkt h3 { color: var(--navy); font-size: var(--fs-base); margin: 0 0 var(--space-2); }
.tkt .muted { color: var(--muted); }
.tkt .small { font-size: var(--fs-sm); }
.tkt .toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.tkt .button { white-space: nowrap; }
.tkt .tcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: var(--space-4); min-width: 0; }
.tkt .tcard > :last-child { margin-bottom: 0; }
.tkt :where(a, button, select, input, textarea, summary, [tabindex]):focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.tkt .chip { display: inline-flex; align-items: center; gap: .35em; padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.tkt .chip::before { font-size: .95em; line-height: 1; }
.tkt .state-new { color: var(--navy); background: var(--tint); border-color: var(--steel); } .tkt .state-new::before { content: "○" / ""; }
.tkt .state-assigned { color: var(--navy); background: var(--card); border-color: var(--navy); } .tkt .state-assigned::before { content: "◔" / ""; }
.tkt .state-in_progress { color: #fff; background: var(--steel); } .tkt .state-in_progress::before { content: "◐" / ""; }
.tkt .state-on_hold { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-ink); } .tkt .state-on_hold::before { content: "‖" / ""; }
.tkt .state-resolved { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); } .tkt .state-resolved::before { content: "✓" / ""; }
.tkt .state-closed { color: var(--muted); background: var(--disabled-bg); } .tkt .state-closed::before { content: "●" / ""; }
.tkt .state-canceled { color: var(--muted); background: var(--card); border: 1px dashed var(--control-border); } .tkt .state-canceled::before { content: "✕" / ""; }
.tkt .prio { border-radius: var(--radius-sm); }
.tkt .prio-1 { color: #fff; background: var(--error); } .tkt .prio-1::before { content: "▲▲" / ""; }
.tkt .prio-2 { color: var(--orange-ink); background: var(--p2-bg); border-color: var(--orange-strong); } .tkt .prio-2::before { content: "▲" / ""; }
.tkt .prio-3 { color: var(--navy); background: var(--tint); } .tkt .prio-3::before { content: "■" / ""; }
.tkt .prio-4 { color: var(--muted); background: var(--bg); border-color: var(--control-border); } .tkt .prio-4::before { content: "▽" / ""; }
.tkt .sla { border-radius: var(--radius-sm); }
.tkt .sla-ok { color: var(--ok); background: var(--ok-bg); } .tkt .sla-ok::before { content: "◷" / ""; }
.tkt .sla-risk, .tkt .warn-tag { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-ink); } .tkt .sla-risk::before, .tkt .warn-tag::before { content: "!" / ""; font-weight: 700; }
.tkt .sla-breached { color: #fff; background: var(--error); } .tkt .sla-breached::before { content: "✕" / ""; }
.tkt .sla-paused { color: var(--muted); background: var(--disabled-bg); } .tkt .sla-paused::before { content: "‖" / ""; }
.tkt .sla-met { color: var(--ok); background: var(--card); border-color: var(--ok); } .tkt .sla-met::before { content: "✓" / ""; }
.tkt .sla-none { color: var(--muted); background: var(--card); border: 1px dashed var(--control-border); }
.tkt .mock-tag { color: var(--placeholder-ink); background: var(--placeholder-bg); border-radius: var(--radius-sm); border: 1px solid var(--placeholder-ink);
  font-weight: var(--fw-bold); padding: 0 6px; letter-spacing: .02em; }
.tkt .mock-tag::before { content: "⚠" / ""; }
.tkt .line-tag { color: var(--navy); background: var(--card); border: 1px solid var(--steel); border-radius: var(--radius-sm); }
.tkt .later-tag { color: var(--muted); background: var(--card); border: 1px dashed var(--control-border); border-radius: var(--radius-sm); }
.tkt .pay-captured { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); } .tkt .pay-captured::before { content: "✓" / ""; }
.tkt .pay-open { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-ink); } .tkt .pay-open::before { content: "◷" / ""; }
.tkt .pay-closed { color: var(--muted); background: var(--card); border: 1px dashed var(--control-border); } .tkt .pay-closed::before { content: "✕" / ""; }
.tkt .cst-received { color: var(--navy); background: var(--tint); border-color: var(--steel); } .tkt .cst-received::before { content: "○" / ""; }
.tkt .cst-in_progress { color: #fff; background: var(--steel); } .tkt .cst-in_progress::before { content: "◐" / ""; }
.tkt .cst-waiting_you { color: var(--orange-ink); background: var(--p2-bg); border-color: var(--orange-strong); } .tkt .cst-waiting_you::before { content: "➜" / ""; }
.tkt .cst-waiting_change { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-ink); } .tkt .cst-waiting_change::before { content: "⏸" / ""; }
.tkt .cst-waiting { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-ink); } .tkt .cst-waiting::before { content: "⏸" / ""; }
.tkt .cst-waiting_parts { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-ink); } .tkt .cst-waiting_parts::before { content: "⧗" / ""; }
.tkt .cst-done { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); } .tkt .cst-done::before { content: "✓" / ""; }
.tkt .cst-closed { color: var(--muted); background: var(--disabled-bg); } .tkt .cst-closed::before { content: "●" / ""; }
.tkt .cst-canceled { color: var(--muted); background: var(--card); border: 1px dashed var(--control-border); } .tkt .cst-canceled::before { content: "✕" / ""; }
.tkt .next-step { margin: var(--space-1) 0 0; font-weight: var(--fw-semibold); color: var(--ink); }
.tkt .mock-banner { background: var(--placeholder-bg); color: var(--placeholder-ink); border: 1px solid var(--placeholder-ink); border-radius: var(--radius);
  padding: var(--space-2) var(--space-4); font-weight: var(--fw-semibold); font-size: var(--fs-sm); margin: 0 0 var(--space-4); }
.tkt .field { margin: 0; min-width: 0; }
.tkt .field label, .tkt .field .label { font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--ink); }
.tkt input[type=text], .tkt input[type=search], .tkt input[type=email], .tkt input[type=tel], .tkt input[type=number],
.tkt input[type=datetime-local], .tkt select, .tkt textarea {
  font: inherit; font-size: var(--fs-base); color: var(--ink); background: var(--card); border: 1px solid var(--control-border);
  border-radius: var(--radius); min-height: var(--target-min); padding: .5rem .75rem; width: 100%; box-sizing: border-box; }
.tkt textarea { min-height: 96px; resize: vertical; }
.tkt .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
.tkt .form-grid .span-2 { grid-column: 1 / -1; }
.tkt fieldset.group { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: 0; min-width: 0; }
.tkt fieldset.group legend { font-weight: var(--fw-semibold); color: var(--navy); padding: 0 var(--space-1); }
.tkt .error-summary { border: 2px solid var(--error); border-radius: var(--radius); padding: var(--space-3) var(--space-4); color: var(--error); background: var(--card); }
.tkt .new-form { max-width: 720px; }
.tkt .page-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin: var(--space-2) 0 var(--space-4); }
.tkt .page-head h1 { margin: 0; font-size: var(--fs-xl); }
.tkt .views { display: flex; gap: var(--space-2); overflow-x: auto; padding: 4px 4px var(--space-2); margin: 0 -4px var(--space-3); list-style: none; }
.tkt .views a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: 1px solid var(--control-border); background: var(--card); color: var(--steel); text-decoration: none; font-weight: var(--fw-semibold); white-space: nowrap; }
.tkt .views a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tkt .views .count { font-size: var(--fs-xs); font-weight: var(--fw-regular); }
.tkt .filters { display: grid; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)) auto; gap: var(--space-3); align-items: end; margin-bottom: var(--space-4); }
.tkt .filters .actions { display: flex; gap: var(--space-2); }
.tkt .queue-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.tkt table.queue { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tkt .queue th, .tkt .queue td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tkt .queue thead th { background: var(--bg); color: var(--ink); font-weight: var(--fw-semibold); white-space: nowrap; }
.tkt .queue th a.sort { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: var(--target-min); padding: 0 4px; }
.tkt .queue th[aria-sort="ascending"] a.sort::after { content: "▲" / ""; color: var(--navy); font-size: .75em; }
.tkt .queue th[aria-sort="descending"] a.sort::after { content: "▼" / ""; color: var(--navy); font-size: .75em; }
.tkt .queue tbody tr:hover { background: var(--bg); }
.tkt .queue td:first-child { white-space: nowrap; }
.tkt a.num { font-weight: var(--fw-bold); display: inline-flex; align-items: center; min-height: var(--target-min); white-space: nowrap; margin-right: 4px; }
.tkt .queue .desc { min-width: 22ch; max-width: 32ch; }
.tkt .sub { display: block; color: var(--muted); font-size: var(--fs-xs); }
.tkt .qcards { display: none; list-style: none; margin: 0; padding: 0; }
.tkt .qcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: var(--space-3) var(--space-4); }
.tkt .qcard + .qcard { margin-top: var(--space-3); }
.tkt .qcard .top { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.tkt .qcard p { margin: var(--space-1) 0; }
.tkt .qcard .meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.tkt .qcards.always { display: block; }
.tkt .pager { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-4); flex-wrap: wrap; gap: var(--space-2); }
.tkt .t-head { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: flex-start; justify-content: space-between; margin: var(--space-2) 0 var(--space-4); }
.tkt .t-head .id { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.tkt .t-head .num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: var(--fw-bold); color: var(--navy); font-size: var(--fs-md); }
.tkt .t-head h1 { font-size: var(--fs-xl); max-width: 40ch; margin: 0; overflow-wrap: anywhere; }
.tkt .t-head .opened { margin: var(--space-1) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.tkt .t-grid { display: flex; flex-direction: column; gap: var(--space-4); }
.tkt dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: 0; font-size: var(--fs-sm); }
.tkt dl.kv dt { color: var(--muted); }
.tkt dl.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.tkt .fields-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); margin: 0; }
.tkt .fields-grid .f { font-size: var(--fs-sm); min-width: 0; }
.tkt .fields-grid .f dt { color: var(--muted); }
.tkt .fields-grid .f dd { margin: 0; color: var(--ink); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.tkt .line-panel { border-left: 4px solid var(--steel); margin-top: var(--space-4); }
.tkt .desc-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: var(--space-3) 0 0; }
.tkt .tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--control-border); margin-bottom: var(--space-4); overflow-x: auto; }
.tkt .tabs [role="tab"] { font: inherit; font-weight: var(--fw-semibold); color: var(--steel); background: none; border: 0; border-bottom: 3px solid transparent;
  min-height: var(--target-min); padding: 0 var(--space-4); cursor: pointer; white-space: nowrap; }
.tkt .tabs [role="tab"][aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tkt .composer .mode { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: 0 0 var(--space-3); border: 0; padding: 0; }
.tkt .composer .mode legend { font-weight: var(--fw-semibold); font-size: var(--fs-sm); margin-bottom: var(--space-2); padding: 0; }
.tkt .composer .mode label { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); padding: 0 var(--space-4);
  border: 1px solid var(--control-border); border-radius: var(--radius); background: var(--card); cursor: pointer; font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.tkt .composer .mode label.is-internal { background: var(--note-internal-bg); }
.tkt .composer .mode input { width: 18px; height: 18px; accent-color: var(--navy); }
.tkt .composer.internal textarea { background: var(--note-internal-bg); }
.tkt .composer .hint { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--space-2); }
.tkt .composer .row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-3); }
.tkt .stream { list-style: none; margin: 0; padding: 0; }
.tkt .entry { padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tkt .entry + .entry { margin-top: var(--space-3); }
.tkt .entry[hidden] { display: none; }
.tkt .entry .who { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--fs-sm); }
.tkt .entry .when { color: var(--muted); font-size: var(--fs-xs); }
.tkt .entry p { margin: var(--space-2) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tkt .entry.internal { background: var(--note-internal-bg); border-left: 4px solid var(--warn-ink); }
.tkt .entry.public { border-left: 4px solid var(--steel); }
.tkt .entry.system { background: var(--bg); border-style: dashed; font-size: var(--fs-sm); }
.tkt .vis { font-size: var(--fs-xs); font-weight: var(--fw-semibold); border-radius: var(--radius-sm); padding: 0 6px; border: 1px solid; }
.tkt .vis-internal { color: var(--warn-ink); background: var(--warn-bg); }
.tkt .vis-public { color: var(--steel); background: var(--card); }
.tkt .cust-card summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--target-min); }
.tkt .cust-card summary::-webkit-details-marker { display: none; }
.tkt .cust-card summary .chev { color: var(--orange-strong); font-weight: var(--fw-bold); transition: transform .15s; }
.tkt .cust-card[open] summary .chev { transform: rotate(90deg); }
.tkt .cust-card .name { font-weight: var(--fw-bold); color: var(--navy); font-size: var(--fs-md); }
.tkt .contact a { display: inline-flex; align-items: center; min-height: var(--target-min); overflow-wrap: anywhere; }
.tkt .pref { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--ok); }
.tkt .related { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.tkt .related li { display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tkt .related li:first-child { border-top: 0; }
.tkt .related a { display: inline-flex; align-items: center; min-height: var(--target-min); font-weight: var(--fw-semibold); }
.tkt .sla-meter { list-style: none; margin: 0; padding: 0; }
.tkt .sla-meter li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: var(--space-1) 0; flex-wrap: wrap; }
.tkt .sticky-bar { display: none; }
.tkt .pay-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; font-size: var(--fs-sm); }
.tkt .pay-list li { border-top: 1px solid var(--line); padding: var(--space-2) 0; }
.tkt .c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.tkt .c-grid .wide { grid-column: span 2; }
.tkt .addr { font-style: normal; }
.tkt .history { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tkt .history th, .tkt .history td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--line); }
.tkt .history th { color: var(--muted); font-weight: var(--fw-semibold); }
.tkt .my-tickets .qcard .num { font-weight: var(--fw-bold); color: var(--navy); }
.tkt .my-tickets details summary { cursor: pointer; min-height: var(--target-min); display: inline-flex; align-items: center; color: var(--steel); font-weight: var(--fw-semibold); }
.tkt .t-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.tkt .t-side, .tkt .t-main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.tkt .t-side > *, .tkt .t-main > * { min-width: 0; width: 100%; margin-top: 0; }
@media (min-width: 861px) { .tkt .t-grid { grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-5); } }
@media (min-width: 1101px) { .tkt .t-grid { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 1100px) {
  .tkt .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tkt .filters .search { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .tkt .c-grid { grid-template-columns: minmax(0, 1fr); } .tkt .c-grid .wide { grid-column: auto; }
  .tkt .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .tkt.tkt-detail { padding-bottom: calc(var(--sticky-bar-h) + var(--space-6)); }
  .tkt .filters { grid-template-columns: 1fr 1fr; }
  .tkt .filters .actions { grid-column: 1 / -1; }
  .tkt .queue-wrap { display: none; }
  .tkt .qcards { display: block; }
  .tkt .fields-grid { grid-template-columns: 1fr 1fr; }
  .tkt .t-head .actions { display: none; }
  .tkt .sticky-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: var(--space-2); padding: 10px var(--gutter);
    background: var(--card); border-top: 1px solid var(--control-border); box-shadow: 0 -4px 12px rgba(10, 38, 73, .10); }
  .tkt .sticky-bar .button { flex: 1 1 0; padding-left: var(--space-2); padding-right: var(--space-2); }
}
@media (max-width: 360px) { .tkt .fields-grid, .tkt .filters { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tkt .cust-card summary .chev { transition: none; } }
.tkt .c-filters { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) auto; }
.tkt .card-head { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.tkt .card-head h2 { margin: 0; }
.tkt .row-actions { white-space: nowrap; text-align: right; }
.tkt .row-actions .button { margin-left: var(--space-1); }
.tkt .notice { background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn-ink); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.tkt .dup-box { background: var(--warn-bg); border: 1px solid var(--warn-ink); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: var(--space-3) 0; }
.tkt .dup-box ul { margin: var(--space-1) 0 var(--space-3); }
.tkt .dup-box a { display: inline-flex; align-items: center; min-height: var(--target-min); }
.tkt .c-activity { list-style: none; margin: 0; padding: 0; }
.tkt .c-activity > li { border-top: 1px solid var(--line); padding: var(--space-2) 0; }
.tkt .c-activity ul { margin: var(--space-1) 0 0; padding-left: var(--space-4); }
.tkt .c-grid .c-activity, .tkt .c-grid table.history { width: 100%; }
.tkt .picker .picked { margin: 0 0 var(--space-2); font-weight: var(--fw-semibold); }
.tkt .picker-list { list-style: none; margin: var(--space-1) 0 0; padding: 0; background: var(--card); border: 1px solid var(--control-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-1); max-height: 18rem; overflow-y: auto; }
.tkt .picker-list li { padding: var(--space-2) var(--space-3); min-height: var(--target-min); cursor: pointer; border-bottom: 1px solid var(--line); }
.tkt .picker-list li[aria-selected="true"], .tkt .picker-list li:hover { background: var(--bg); outline: 2px solid var(--navy); outline-offset: -2px; }
.tkt .edit-forms { display: flex; flex-direction: column; gap: var(--space-5); }
.tkt .tkt-dialog fieldset.group + fieldset.group { margin-top: var(--space-3); }
.tkt .pay-card .pay-buttons { width: 100%; max-width: 480px; margin: var(--space-4) 0 var(--space-2); min-height: 48px; }
.tkt .pay-card .pay-fallback { width: 100%; max-width: 480px; min-height: var(--target-min); }
@media (max-width: 860px) { .tkt .c-filters { grid-template-columns: 1fr 1fr; } .tkt .c-filters .search, .tkt .c-filters .actions { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tkt .pay-card .pay-buttons, .tkt .pay-card .pay-fallback { max-width: none; } .tkt .row-actions { white-space: normal; text-align: left; } }
.tkt .error-summary { border: 2px solid var(--danger, #a4262c); border-radius: var(--radius); background: #fde7e9;
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.tkt .error-summary h2 { font-size: var(--fs-md, 1.1rem); margin: 0 0 var(--space-2); color: #7a1020; }
.tkt .error-summary a { color: #7a1020; font-weight: var(--fw-semibold); }
.tkt .c-field-error { color: #7a1020; font-weight: var(--fw-semibold); margin: 0; }
.tkt .field.has-error input, .tkt .field.has-error select, .tkt .field.has-error textarea { border: 2px solid #a4262c; }
.tkt .radio-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.tkt .radio-row, .tkt .check-row { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.tkt .radio-row input, .tkt .check-row input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.tkt .signin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); margin: var(--space-2) 0; }
.tkt .signin-card h4 { margin: 0 0 var(--space-2); }
.tkt ul.plain { list-style: none; padding: 0; margin: 0; }
.tkt .contacts > li, .tkt .sites > li, .tkt .devices > li { border-top: 1px solid var(--line); padding: var(--space-3) 0; }
.tkt .c-tabs { min-width: 0; max-width: 100%; }
.tkt .c-tabs [role="tablist"] { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.tkt .c-tabs [role="tab"] { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 0 var(--space-4); background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; color: var(--steel); cursor: pointer; }
.tkt .c-tabs [role="tab"]:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: calc(-1 * var(--focus-width)); }
.tkt .c-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--navy); color: var(--navy); font-weight: var(--fw-semibold); }
.tkt .archived-banner, .tkt .archived-request, .tkt .differences { margin-bottom: var(--space-4); }
.tkt .mono { font-family: var(--font-mono, ui-monospace, monospace); }
.tkt .dup-box ul { padding-left: 0; list-style: none; }
.tkt .lifecycle { margin-top: var(--space-4); }

.skip-link, .tkt a.tap { min-height: 44px; display: inline-flex; align-items: center; }
.tkt [data-when-status][hidden] { display: none; }
.tkt .merge-steps { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); list-style: none; padding: 0; margin: 0 0 var(--space-4); counter-reset: mstep; }
.tkt .merge-steps li { counter-increment: mstep; color: var(--muted); }
.tkt .merge-steps li::before { content: counter(mstep) ". "; }
.tkt .merge-steps li[aria-current="step"] { color: var(--ink, inherit); font-weight: 700; }
.tkt .merge-steps li.done { color: inherit; }
.tkt .merge-pick { min-height: 44px; }
.tkt .merge-table { width: 100%; border-collapse: collapse; }
.tkt .merge-table caption { text-align: left; font-weight: 700; padding-bottom: var(--space-2); }
.tkt .merge-table th, .tkt .merge-table td { text-align: left; vertical-align: top; padding: var(--space-2); border-bottom: 1px solid var(--line, #ddd); }
.tkt .merge-table .radio-row { min-height: 44px; display: flex; align-items: flex-start; gap: var(--space-2); overflow-wrap: break-word; min-width: 0; }
@media (max-width: 600px) {
  .tkt .merge-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tkt .merge-table, .tkt .merge-table tbody, .tkt .merge-table tr, .tkt .merge-table th, .tkt .merge-table td { display: block; width: 100%; }
  .tkt .merge-table caption { display: block; }
  .tkt .merge-table tr { border-bottom: 1px solid var(--line); padding: var(--space-2) 0; }
  .tkt .merge-table th, .tkt .merge-table td { border: 0; padding: var(--space-1) 0; }
  .tkt .merge-table .radio-row { overflow-wrap: anywhere; }
  .tkt .merge-table .merge-side { display: block; font-size: .875rem; color: var(--muted); }
}
@media (min-width: 601px) { .tkt .merge-side { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.tkt .merge-results li { margin: var(--space-1) 0; }

.biz-only[hidden], .dc-only[hidden] { display: none !important; }

.tkt fieldset.roles { border: 0; padding: 0; margin: 0; min-width: 0; }
.tkt fieldset.roles legend { font-weight: var(--fw-semibold); padding: 0; margin-bottom: var(--space-1); }
.tkt .role-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tkt label.role-box { min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--control-border); border-radius: var(--radius, 6px); background: #fff; }
.tkt label.role-box:has(input:checked) { border: 2px solid var(--navy); background: var(--tint, #eef3f8); }
.tkt label.role-box[hidden] { display: none; }
.tkt .phone-type { color: var(--muted); }
.tkt .tabs { gap: 0; }
.tkt .tabs [role="tab"] { min-width: 44px; padding: 0 12px; }
.tkt .tabs[data-filter-tabs] [role="tab"] { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) { .tkt .tabs[data-filter-tabs] [role="tab"] { font-size: .84375rem; } }
.tkt .tabs[data-more] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
[data-csrf-scope="admin"] .breadcrumb a { min-width: 44px; justify-content: center; }
.tkt .inv-invoiced { color: var(--navy); background: #e8eff7; border-color: var(--steel); }
.tkt .inv-invoiced::before { content: "✉" / ""; }
.tkt .pay-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tkt .dup-actions, .tkt .inv-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.tkt .inv-void { color: #3d4650; background: #eceef0; border-color: #8a939c; }
.tkt .void-h { font-size: 1rem; margin: var(--space-3) 0 var(--space-1); }
.tkt .paid-note { margin-top: var(--space-2); }
.tkt .reason-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.tkt .reason-list .check-row { display: flex; align-items: center; height: 44px; min-height: 44px; margin: 0; padding-block: 0; }
.when-reason[hidden] { display: none !important; }
.inv-no { white-space: nowrap; }
.tkt .billing-q a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 599px) {
  .tkt .pay-card .pay-buttons, .tkt .pay-card .pay-fallback {
    width: calc(100vw - 32px); max-width: none; margin-left: calc(16px - 1.25rem - 1px - var(--space-4)); }
}
.tkt .no-primary { margin: var(--space-3) 0; }
.tkt .no-primary-add { margin: var(--space-3) 0 0; }
.tkt .no-primary-add .button { min-height: 44px; }

.tkt .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: var(--space-4); min-width: 0; }
.tkt .card h2 { margin-bottom: var(--space-3); }
.tkt .card-link { display: inline-flex; align-items: center; min-height: var(--target-min); font-weight: var(--fw-semibold); }
.tkt .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tkt .sub { display: block; font-size: var(--fs-xs); color: var(--muted); }
.tkt .t-side, .tkt .t-main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
@media (min-width: 861px) { .tkt.portal .t-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3); margin: var(--space-2) 0 var(--space-3); }
.acct-head p { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.acct-head .toolbar .button { padding: .5rem 1rem; }
.acct-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--control-border); margin-bottom: var(--space-4); }
.acct-tabs a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); padding: 0 var(--space-4);
  font-weight: var(--fw-semibold); color: var(--steel); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.acct-tabs a:hover { color: var(--navy); background: var(--tint); }
.acct-tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.acct-tabs .count { font-weight: var(--fw-regular); font-size: var(--fs-sm); }
@media (max-width: 600px) { .acct-tabs a { flex: 1 1 0; justify-content: center; } .acct-head .toolbar { width: 100%; } .acct-head .toolbar .button { flex: 1 1 0; } }

.cs-received { color: var(--navy); background: var(--tint); border-color: var(--steel); }
.cs-received::before { content: "○" / ""; }
.cs-scheduled { color: var(--navy); background: var(--card); border-color: var(--navy); }
.cs-scheduled::before { content: "◷" / ""; }
.cs-progress { color: #fff; background: var(--steel); }
.cs-progress::before { content: "◐" / ""; }
.cs-waiting { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-ink); }
.cs-waiting::before { content: "!" / ""; font-weight: 700; }
.cs-closed { color: var(--muted); background: var(--disabled-bg); }
.cs-closed::before { content: "●" / ""; }

.bs-draft { color: var(--muted); background: var(--card); border: 1px dashed var(--control-border); }
.bs-draft::before { content: "✎" / ""; }
.bs-sent { color: var(--steel); background: var(--card); border-color: var(--steel); }
.bs-sent::before { content: "➜" / ""; }
.bs-paid { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); }
.bs-paid::before { content: "✓" / ""; }
.bs-overdue { color: var(--error); background: var(--error-bg); border-color: var(--error); }
.bs-overdue::before { content: "!" / ""; font-weight: 700; }
.bs-void { color: var(--muted); background: var(--disabled-bg); text-decoration: line-through; }
.bs-void::before { content: "⊘" / ""; }
.qs-accepted { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); }
.qs-accepted::before { content: "✓" / ""; }
.qs-declined { color: var(--muted); background: var(--disabled-bg); }
.qs-declined::before { content: "✕" / ""; }
.qs-expired { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-ink); }
.qs-expired::before { content: "⌛" / ""; }
.dup-flag { margin-bottom: var(--space-4); }

.status-note { border-left: 4px solid var(--steel); background: var(--card); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); box-shadow: var(--shadow-1); }
.status-note p { margin: 0; }
.status-note.warn { border-left-color: var(--warn-ink); background: var(--warn-bg); }

.my-list .latest { color: var(--muted); font-size: var(--fs-sm); max-width: 44ch; }
.my-list .svc { display: block; font-size: var(--fs-xs); color: var(--muted); }
.missing-link { margin-top: var(--space-4); font-size: var(--fs-sm); }
.missing-link a { display: inline-flex; align-items: center; min-height: var(--target-min); font-weight: var(--fw-semibold); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--space-4); border-left: 2px solid var(--control-border); }
.timeline > li { position: relative; }
.timeline > li + li { margin-top: var(--space-3); }
.timeline > li::before { content: ""; position: absolute; left: calc(-1 * var(--space-4) - 7px); top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--steel); }
.timeline > li.sys::before { border-color: var(--control-border); background: var(--bg); }
.timeline > li.you::before { background: var(--steel); }
.entry.you { border-left: 4px solid var(--navy); background: var(--tint); }
.entry.you .when { color: var(--ink); }

.bill-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.bill-summary .tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: var(--space-3) var(--space-4); }
.bill-summary .tile .k { display: block; font-size: var(--fs-sm); color: var(--muted); }
.bill-summary .tile .v { display: block; font-size: var(--fs-lg, 1.5rem); font-weight: var(--fw-bold); color: var(--navy); }
.bill-summary .tile .n { font-size: var(--fs-sm); color: var(--ink); }
.bill-summary .tile.over { border-left: 4px solid var(--error); }
.bill-summary .tile.open { border-left: 4px solid var(--steel); }
.bill-summary .tile.paid { border-left: 4px solid var(--ok); }
.bill-section + .bill-section { margin-top: var(--space-5); }
.bill-section > h2 { margin-bottom: var(--space-3); }
.amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.queue td.amt, .queue th.amt { text-align: right; }
.pay-off { border: 1px solid var(--control-border); border-left: 4px solid var(--steel); background: var(--card); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); }
.pay-off p { margin: 0; }
.pay-off p + p { margin-top: var(--space-1); }
.legal-flag { border: 1px dashed var(--placeholder-ink); background: var(--card); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-top: var(--space-5); font-size: var(--fs-sm); }
.legal-flag p { margin: 0; } .legal-flag p + p { margin-top: var(--space-2); }

.inv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-5); align-items: start; }
.inv-grid .card + .card { margin-top: 0; }
.inv-grid > div { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.inv-amount { font-size: 2rem; font-weight: var(--fw-bold); color: var(--navy); margin: 0; font-variant-numeric: tabular-nums; }
.inv-due { margin: var(--space-1) 0 var(--space-3); }
.lines { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.lines th, .lines td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.lines th { color: var(--muted); font-weight: var(--fw-semibold); }
.lines .amt { text-align: right; }
.lines tfoot th, .lines tfoot td { border-bottom: 0; font-weight: var(--fw-bold); color: var(--ink); font-size: var(--fs-base); }
.pay-box h2 { margin-bottom: var(--space-2); }
.pay-box .test-mode { margin: 0 0 var(--space-3); }
.pp-standin { display: flex; flex-direction: column; gap: var(--space-2); border: 2px dashed var(--control-border); border-radius: var(--radius); padding: var(--space-2); }
.pp-standin .pp { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; border-radius: 4px; font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.pp-standin .pp-gold { background: #ffc439; color: #111; }
.pp-standin .pp-black { background: #2c2e2f; color: #fff; }
.pp-standin .cap { font-size: var(--fs-xs); color: var(--muted); margin: 0; text-align: center; }
.pay-box .billing-line { margin: var(--space-3) 0 0; font-size: var(--fs-sm); }
.receipt-ok { border-left: 4px solid var(--ok); background: var(--ok-bg); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); }
.receipt-ok p { margin: 0; color: var(--ink); } .receipt-ok strong { color: var(--ok); }
@media (max-width: 860px) { .inv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .bill-summary { grid-template-columns: minmax(0, 1fr); } .inv-amount { font-size: 1.75rem; } }

.narrow { max-width: 560px; }
.locked-field input[readonly] { background: var(--disabled-bg); color: var(--ink); border-style: dashed; }
.prefill-note { border-left: 4px solid var(--steel); background: var(--tint); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); }
.prefill-note p { margin: 0; color: var(--ink); }
.req-form { max-width: 640px; }
.req-form .field + .field, .req-form .field + fieldset, .req-form fieldset + .field { margin-top: var(--space-4); }
.req-form fieldset { border: 0; padding: 0; margin: var(--space-4) 0 0; }
.req-form legend { font-weight: var(--fw-semibold); font-size: var(--fs-sm); padding: 0; margin-bottom: var(--space-1); }
.req-form label.inline { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); margin-right: var(--space-4); font-weight: var(--fw-regular); font-size: var(--fs-base); }
.req-form input[type=radio] { width: 18px; height: 18px; accent-color: var(--navy); }
.req-form input[type=email], .req-form input[type=tel], .auth input[type=email] { font: inherit; font-size: var(--fs-base); color: var(--ink); background: var(--card);
  border: 1px solid var(--control-border); border-radius: var(--radius); min-height: var(--target-min); padding: .5rem .75rem; width: 100%; }
.price-hint { font-size: var(--fs-sm); color: var(--ink); margin: 0; }
.see-prices { display: none; }
.see-prices summary { display: inline-flex; align-items: center; min-height: var(--target-min); color: var(--steel); font-weight: var(--fw-semibold); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 600px) { .price-hint.wide { display: none; } .see-prices { display: block; } .req-form .button-accent { width: 100%; } }

.bill-filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) auto; gap: var(--space-3); align-items: end; margin-bottom: var(--space-4); }
.bill-filters .actions { display: flex; gap: var(--space-2); }
.role-note { border: 1px solid var(--control-border); border-left: 4px solid var(--navy); background: var(--card); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); margin: 0 0 var(--space-4); }
.role-note p { margin: 0; } .role-note p + p { margin-top: var(--space-1); }
.rec-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--control-border); margin-bottom: var(--space-4); overflow-x: auto; }
.rec-tabs a { display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 var(--space-4); font-weight: var(--fw-semibold); color: var(--steel); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.rec-tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.switch-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); }
.switch-row p { margin: 0; max-width: 60ch; font-size: var(--fs-sm); }
.linked { list-style: none; margin: 0; padding: 0; }
.linked > li { border-top: 1px solid var(--line); padding: var(--space-2) 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; justify-content: space-between; }
.linked > li:first-child { border-top: 0; }
.linked a { display: inline-flex; align-items: center; min-height: var(--target-min); font-weight: var(--fw-semibold); }
@media (max-width: 1100px) { .bill-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bill-filters .search, .bill-filters .actions { grid-column: 1 / -1; } }
@media (max-width: 360px) { .bill-filters { grid-template-columns: 1fr; } }

.welcome { margin: var(--space-1) 0 var(--space-2); color: var(--muted); font-size: var(--fs-sm); }
.comment-box textarea { width: 100%; }
.comment-box .posting-as { margin: var(--space-2) 0 0; }
.comment-box .form-actions { margin-top: var(--space-3); }
.comment-signin { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.comment-signin p { margin: 0; font-weight: var(--fw-semibold); }
.acct-sum { margin-top: var(--space-2); }
.confirm-panel h3 { margin-bottom: var(--space-2); }
.confirm-panel p { margin: 0; }
.button:has(.placeholder) { white-space: normal; text-align: center; }
.tkt .placeholder { overflow-wrap: anywhere; }
@media (max-width: 420px) { .pay-box dl.kv { grid-template-columns: minmax(0, 1fr); gap: 0 0; } .pay-box dl.kv dd { margin-bottom: var(--space-2); } }
.queue td.nd { white-space: nowrap; }
.pick { border: 0; margin: 0; padding: 0; }
.pick-list { list-style: none; margin: var(--space-3) 0; padding: 0; display: grid; gap: var(--space-2); }
.pick-row { display: flex; width: 100%; min-height: var(--target-min); padding: var(--space-2) var(--space-3); align-items: flex-start; box-sizing: border-box; }
.pick-row input { margin-top: 4px; }
.pick-main { min-width: 0; overflow-wrap: anywhere; }

.sum-cards { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.sum-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 88px; padding: var(--space-3) var(--space-4);
  background: var(--card); border: 1px solid var(--control-border); border-radius: var(--radius); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.sum-card .n { order: -1; font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--navy); line-height: var(--lh-tight); }
.sum-card .l { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sum-card .go { font-size: var(--fs-xs); color: var(--steel); }
.sum-card:hover { background: var(--tint); border-color: var(--navy); }
.sum-card:hover .l { text-decoration: underline; }
.sum-card:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.sum-card.attention { border-left: 4px solid var(--warn-ink); }
.sum-card.attention .n::before { content: "! " / ""; color: var(--warn-ink); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.filter-chips .lbl { font-size: var(--fs-sm); color: var(--muted); }
.fchip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); padding: 0 var(--space-3) 0 var(--space-4);
  border-radius: var(--radius-pill); background: var(--tint); border: 1px solid var(--navy); color: var(--navy); font-weight: var(--fw-semibold); text-decoration: none; }
.fchip .x { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8em; }
.fchip:hover { background: var(--card); }
.fchip-clear { display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 var(--space-2); }
.assign-text { margin: 0; }
.toast-fixed { position: fixed; right: var(--space-4); bottom: var(--space-4); max-width: 360px; z-index: 20; }
@media (max-width: 600px) {
  .sum-cards { grid-template-columns: 1fr 1fr; }
  .toast-fixed { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); max-width: none; }
}

.inv-search { margin: var(--space-3) 0; max-width: 36rem; }



.lp-header { background: var(--card); border-bottom: 3px solid var(--orange); }
.lp-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.lp-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; min-width: 0; }
.lp-brand img { display: block; height: 40px; width: auto; }
.lp-name-tag { font-size: .8125rem; white-space: nowrap; }
.lp-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .25rem; margin: 0; padding: 0; }
.lp-nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem;
  color: var(--steel); font-weight: 600; text-underline-offset: .2em; border-radius: var(--radius); }
.lp-nav a:not(.button):hover { color: var(--navy); background: var(--tint); }
.lp-nav .button { margin-left: .25rem; white-space: nowrap; }

.lp-hero { padding-bottom: 2.25rem; }
.lp-hero h1 { max-width: 22ch; text-wrap: balance; }
.lp-hero .who-for { font-weight: 600; color: var(--ink); margin: .25rem 0 0; }
.lp-hero .hero-actions { margin-top: 1.25rem; }
.lp-hero-prices { max-width: 28rem; margin: 1rem 0 0; }
.lp-biz-only { background: var(--card); border-left: 4px solid var(--steel); border-radius: var(--radius);
  padding: .6rem .9rem; margin: 1rem 0 0; max-width: 40rem; color: var(--ink); }

.lp-section { padding: 2.25rem 0; }
.lp-section h2 { margin: 0 0 1rem; line-height: 1.2; font-size: clamp(1.375rem, 3vw, 1.75rem); color: var(--navy); }
.lp-section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-intro { max-width: 65ch; margin: 0 0 1.25rem; }

.lp-benefits { list-style: none; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; }
.lp-benefits > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10, 38, 73, .08); padding: 1rem 1.1rem; }
.lp-section-alt .lp-benefits > li { background: var(--bg); }
.lp-benefits h3 { margin: 0 0 .35rem; font-size: 1.125rem; line-height: 1.35; color: var(--navy); }
.lp-benefits p { margin: 0; }
@media (min-width: 641px) { .lp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lp-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lp-price-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0; max-width: 46rem; }
.lp-price-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.lp-price-list li:last-child { border-bottom: 0; }
.lp-prices-phone { display: none; }
.lp-prices-phone .lp-price-list { margin: .25rem 0 .5rem; }
.lp-price-unpriced { margin: 0 0 1rem; max-width: 46rem; }
.lp-hero-see-prices { display: none; }
@media (max-width: 640px) {
  .lp-prices-inline { display: none; }
  details.lp-prices-phone { display: block; }
  .lp-hero-price { display: none; }
  details.lp-hero-see-prices { display: block; }
}

.lp-steps { list-style: none; counter-reset: lpstep; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; }
.lp-steps li { counter-increment: lpstep; position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.5rem; }
.lp-steps li::before { content: counter(lpstep); position: absolute; left: 1rem; top: .95rem; width: 1.75rem; height: 1.75rem;
  border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (min-width: 861px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lp-cta { background: var(--tint); }
.lp-cta p { max-width: 46rem; }
.lp-fallback { margin: .75rem 0 0; }

.lp-form-type { margin: 0 0 1rem; }
.lp-form-type strong { color: var(--navy); }

@media (max-width: 600px) {
  .lp-section { padding: 1.75rem 0; }
  .lp-nav { width: 100%; }
  .lp-nav ul { justify-content: flex-start; }
  .lp-nav li:has(> .button) { margin-left: auto; }
}
@media (max-width: 360px) {
  .lp-nav a:not(.button) { padding: 0 .4rem; }
  .lp-nav .button { padding: .6rem .8rem; }
}

.lp-eyebrow { margin: 0 0 .35rem; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); }

.pcc-block { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10, 38, 73, .08); padding: 1.25rem 1.25rem 1.1rem; margin: 1.25rem 0 1.5rem; max-width: 46rem; }
.pcc-block h2 { margin: 0 0 .5rem; font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.2; color: var(--navy); }
.pcc-block .pcc-note { background: var(--tint); border-radius: var(--radius); padding: .6rem .8rem; color: var(--ink); }
.pcc-block .button { margin-top: .25rem; }
.pcc-price-phone { display: none; }
@media (max-width: 640px) { .pcc-price-inline { display: none; } details.pcc-price-phone { display: block; margin: 0 0 .75rem; } }

.lp-hub-cards { list-style: none; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; }
.lp-hub-cards > li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10, 38, 73, .08); padding: 1.1rem 1.25rem; }
.lp-hub-cards h2 { margin: 0 0 .4rem; font-size: 1.375rem; line-height: 1.25; color: var(--navy); }
.lp-hub-cards p { margin: 0 0 .75rem; }
.lp-hub-cards p:last-child { margin: 0; }
@media (min-width: 641px) { .lp-hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lp-scope-note { background: var(--card); border-left: 4px solid var(--steel); border-radius: var(--radius); padding: .6rem .9rem; margin: 0 0 1rem; max-width: 46rem; color: var(--ink); }
.pcc-price-first { margin: .25rem 0 .5rem; color: var(--ink); }
.quick-form { display: grid; gap: var(--space-2); margin: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-2); }
.quick-grid label { display: block; font-size: var(--fs-xs); color: var(--muted); }
.quick-grid select, .quick-grid input[type="text"] { min-height: var(--target-min); width: 100%; }
.quick-reason { grid-column: 1 / -1; }
.quick-form .button { justify-self: start; min-height: var(--target-min); }
.quick-row > summary { cursor: pointer; min-height: var(--target-min); display: flex; align-items: center; }
.quick-tr > td { padding-top: 0; border-top: 0; }
.quick-row[open] { padding: var(--space-2) 0 var(--space-3); }
.qcard .quick-row { margin-top: var(--space-2); }
.a-order .order-items { width: 100%; border-collapse: collapse; }
.a-order .order-items th, .a-order .order-items td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.a-order .order-add, .a-order .order-accept { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.a-order .order-add label, .a-order .order-accept label { font-size: var(--fs-xs); color: var(--muted); }
.a-order .order-add input, .a-order .order-add select, .a-order .order-accept input, .a-order .order-accept select { min-height: var(--target-min); width: 100%; }
.a-order .order-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.a-order .inline-form { display: inline; margin: 0; }
.a-order .inline-form .button { min-height: var(--target-min); }

.work-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.work-act { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.work-act .button, .work-reassign .button { min-height: var(--target-min); }
.work-act input[type="text"] { min-height: var(--target-min); min-width: 12rem; }
.work-reassign { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.work-reassign label { font-size: var(--fs-xs); color: var(--muted); }
.work-reassign select, .work-reassign input { min-height: var(--target-min); width: 100%; }
.timer-chip { font-variant-numeric: tabular-nums; margin-left: var(--space-2); }
.my-timer { margin: 0 0 var(--space-3); font-weight: 600; }
.a-time .time-entries { width: 100%; border-collapse: collapse; }
.a-time .time-entries th, .a-time .time-entries td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tkt .order-draft { color: var(--muted); background: var(--disabled-bg); }
.tkt .order-draft::before { content: "✎" / ""; }
.tkt .order-quoted { color: var(--navy); background: #e8eff7; border-color: var(--steel); }
.tkt .order-quoted::before { content: "✉" / ""; }
.tkt .order-accepted { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); }
.tkt .order-accepted::before { content: "✓" / ""; }
.tkt .order-canceled { color: var(--muted); background: var(--disabled-bg); }
.tkt .order-canceled::before { content: "✕" / ""; }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: var(--space-3) var(--space-4); }
.toast p { margin: 0; }
.toast-error { border-left-color: var(--error); }
.toast:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 600px) {
  .tkt.tkt-detail .toast-fixed { bottom: calc(var(--sticky-bar-h) + var(--space-3)); z-index: 30; }
}
.tkt .paused-tag { color: var(--muted); background: var(--disabled-bg); }
.tkt .paused-tag::before { content: "‖" / ""; }
.tkt .timer-chip { color: var(--ok); background: var(--ok-bg); border-color: var(--ok); }
.tkt .timer-chip::before { content: "●" / ""; }
.work-act label { flex-basis: 100%; }

.work-reassign-box { margin-top: var(--space-3); }
.work-reassign-box > summary { cursor: pointer; min-height: var(--target-min); display: flex; align-items: center; font-weight: 600; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 3rem; }
.pw-toggle { position: absolute; top: 0; right: 0; bottom: 0; width: var(--target-min); min-width: 44px; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--navy); }
.pw-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.pw-toggle[aria-pressed="true"] { color: var(--navy); }
.tkt .in-status { display: block; margin-top: 2px; color: var(--muted); }
.a-time .time-entries tr.now td { font-weight: 600; }
.pay-card .table-scroll { margin-bottom: 12px; }
.site-notice { background: var(--tint); border-bottom: 1px solid var(--line); color: var(--ink); }
.site-notice p { margin: 0; padding: 0.75rem 0; }
.site-notice-outage { background: var(--warn-bg); border-bottom-color: var(--warn-ink); }
.tool-cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.tool-card a { display: block; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink); }
.tool-card a:hover, .tool-card a:focus-visible { border-color: var(--steel); }
.tool-card strong { display: block; margin-bottom: 0.25rem; }
.site-status-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.site-status-form .choice { display: block; margin: 0.25rem 0; }
.site-status-form textarea { width: 100%; }
.tools-toast { margin: 0 0 1rem; }
.copy-link-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.copy-link-row input { flex: 1 1 16rem; min-width: 0; }
.notice.staff-signin { margin-bottom: 1.25rem; }
.notice.staff-signin p:last-child { margin-bottom: 0; }
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.attach-card h2 { display: flex; align-items: center; gap: 6px; }
.att-count { font-size: var(--fs-xs); font-weight: var(--fw-semibold); background: var(--tint); color: var(--navy); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.att-drop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 44px; padding: 8px 12px; border: 1.5px dashed var(--control-border); border-radius: 8px; background: var(--bg); color: var(--muted); font-size: var(--fs-sm); cursor: pointer; }
.att-drop:hover, .att-drop:focus-visible, .att-drop.is-over { border-color: var(--steel); background: var(--tint); color: var(--navy); }
.att-drop.is-over { border-style: solid; }
.att-drop u { color: var(--steel); }
.att-drop-s { margin-left: auto; font-size: var(--fs-xs); }
.att-newvis { display: inline-flex; align-items: center; gap: 5px; margin: 8px 0 0; padding: 2px 10px 2px 8px; min-height: 28px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: var(--fs-xs); cursor: pointer; }
.att-newvis.is-internal { background: #fff4d6; border-color: #d9b44a; color: #5c4300; }
.att-status { margin: 6px 0 0; min-height: 1.2em; font-size: var(--fs-sm); color: var(--muted); }
.att-list { list-style: none; margin: 4px 0 0; padding: 0; }
.att { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto auto auto; align-items: center; column-gap: 6px; min-height: 34px; padding: 2px 0; border-top: 1px solid var(--line); }
.att:first-child { border-top: 0; }
.att-ic { display: inline-flex; color: var(--muted); }
.att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink); text-decoration: none; }
.att-name:hover, .att-name:focus-visible { text-decoration: underline; }
.att-meta { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.att-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.att-btn:hover, .att-btn:focus-visible { background: var(--tint); color: var(--navy); }
.att-btn.is-internal { color: #8a5a00; }
.att-rm:hover, .att-rm:focus-visible { color: var(--error); }
.att.is-up .att-bar { grid-column: 2 / -1; grid-row: 2; height: 3px; margin: 2px 0 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.att-bar i { display: block; height: 100%; width: 0; background: var(--steel); transition: width .15s linear; }
.att.is-bad .att-meta { color: var(--error); white-space: normal; }
.kind-image .att-ic { color: #2f7d55; }
.kind-pdf .att-ic { color: #b3261e; }
.kind-doc .att-ic { color: #2e5b9a; }
.kind-sheet .att-ic { color: #1f7a4d; }
.kind-archive .att-ic { color: #8a5a00; }
.kind-video .att-ic { color: #6b3fa0; }
.kind-audio .att-ic { color: #0f7b8a; }
@media (max-width: 600px) {
  .att { grid-template-columns: 20px minmax(0, 1fr) auto auto auto; min-height: 44px; row-gap: 0; }
  .att .att-meta { grid-column: 2 / -1; grid-row: 2; white-space: normal; }
  .att-btn { width: 36px; height: 36px; }
  .att-drop-s { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .att-bar i { transition: none; } }
.fill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fill-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--steel); font-size: var(--fs-sm); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fill-btn:hover, .fill-btn:focus-visible { background: var(--tint); border-color: var(--steel); color: var(--navy); }
input.is-locked { background: var(--tint); color: var(--navy); cursor: not-allowed; }
.row-edit { margin: 0 0 .4rem; }
.row-edit summary { display: inline-block; cursor: pointer; list-style: none; }
.row-edit summary::-webkit-details-marker { display: none; }
.order-edit, .order-reissue { display: grid; gap: .35rem; margin-top: .5rem; max-width: 22rem; }
.order-reissue { margin-top: 1rem; }
.inv-history { padding-left: 1.1rem; display: grid; gap: .6rem; }
.inv-history .sub { display: block; }
.att-viewer { padding: 0; border: 1px solid var(--line, #cfd6e2); border-radius: 8px; width: min(96vw, 1100px); max-height: 94vh; background: var(--card, #fff); color: inherit; overflow: hidden; }
.att-viewer[open] { display: flex; flex-direction: column; }
.att-viewer::backdrop { background: rgba(10, 20, 40, .65); }
.att-viewer-bar { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid var(--line, #cfd6e2); }
.att-viewer-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.att-viewer-scroll { overflow: auto; max-height: calc(94vh - 3.5rem); padding: .5rem; -webkit-overflow-scrolling: touch; text-align: center; }
.att-viewer-img { display: inline-block; max-width: none; height: auto; }
.att-viewer-img.is-fit { max-width: 100%; max-height: calc(94vh - 5rem); object-fit: contain; }
.att-viewer-fail { padding: 1rem; }

.tkt .page-tabs .tab-panel.stack { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.tkt .page-tabs .tab-panel[hidden] { display: none; }
.tkt .page-tabs [role="tab"] .tab-count { display: inline-block; min-width: 1.4em; margin-left: .3em; padding: 0 .4em; border-radius: 999px; background: var(--tint, #e8eef7); color: var(--navy); font-size: .8em; line-height: 1.5; text-align: center; }
.tkt .page-tabs [role="tab"][data-error] { color: #8a1020; }
.tkt .page-tabs [role="tab"][data-error]::after { content: "!"; margin-left: .35em; font-weight: 700; }
.tkt form .page-tabs { margin-bottom: var(--space-4); }

.hdr-toggle { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 1.25rem; padding: 0; border: 0; border-radius: 0 0 .6rem .6rem; background: var(--orange-strong); color: #fff; cursor: pointer; opacity: .9; }
.hdr-toggle:hover, .hdr-toggle:focus-visible { opacity: 1; }
.hdr-toggle:focus-visible { outline: 3px solid var(--focus-color, #1b5fc1); outline-offset: 2px; }
.hdr-toggle::before { content: ""; position: absolute; inset: -.5rem -.75rem -.9rem; }
.hdr-toggle svg { transition: transform .15s ease; }
.hdr-collapsed .hdr-toggle svg { transform: rotate(180deg); }
.hdr-collapsed .site-header { display: none; }
@media print { .hdr-toggle { display: none; } }
