/* technix.guru site styles. Source of truth: the approved design canvas + StyleGuide artboard.
   Tokens are CSS variables; components are plain classes. Page-specific CSS goes in
   static/css/<area>.css (see docs/AGENTS.md), never inline styles. */

:root {
  --ink: #15181D;
  --body: #3D424A;
  --muted: #565C66;
  --ground: #F5F5F2;
  --surface: #FFFFFF;
  --line: #DADCD6;
  --line-soft: #ECEDE8;
  --field: #B9BDB5;
  --chip: #EEF0EA;
  --blue: #1D4ED8;
  --blue-dark: #1E3A8A;
  --blue-soft: #EEF3FF;
  --blue-line: #C8D6FB;
  --mark: #D6E2FF;
  --green: #13703A;
  --green-ink: #0F5A2F;
  --green-soft: #E6F2EA;
  --amber: #8A4B00;
  --amber-soft: #FBEEDD;
  --footer-text: #C9CCC4;
  --footer-dim: #A9ADA4;
  --footer-line: #343941;
  --accent-on-dark: #8FA9FF;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

.js .nojs-only { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.body-text { color: var(--body); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; }

/* ---------- layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.page { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 220px), 100%), 1fr)); gap: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 320px; max-width: 420px; }
.section { display: flex; flex-direction: column; gap: 20px; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1.12; }
.h1-display { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.02em; line-height: 1.08; }
.h2 { font-size: 28px; }
.h3 { font-size: 19px; }
.lead { font-size: 17px; color: var(--body); max-width: 760px; }
.pn { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.prose { color: var(--body); max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 24px; color: var(--ink); margin-top: 1.6em; }
.prose h3 { font-size: 19px; color: var(--ink); margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose code { font-family: var(--mono); font-size: 0.95em; background: var(--chip); padding: 1px 4px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--chip); color: var(--ink); }
.btn-ghost { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0 8px; font-weight: 400; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: var(--r-md); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card-sm { padding: 18px; }
.card-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.card-link:hover { border-color: var(--ink); color: var(--ink); }
.panel-dark { background: var(--ink); color: #fff; border-radius: 14px; padding: 40px; }
.panel-dark .muted { color: var(--footer-text); }
.callout { background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 10px; padding: 24px; }
.note { background: var(--chip); border-radius: var(--r-md); padding: 16px 20px; font-size: 14px; color: var(--body); }
.note-warn { background: var(--amber-soft); color: var(--amber); border-left: 3px solid var(--amber); }
.note-warn a { color: var(--amber); font-weight: 600; }

/* ---------- badges / status ---------- */
.badge { white-space: nowrap; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 4px; font-size: 14px; font-weight: 500; background: var(--chip); color: var(--ink); }
.badge-ok { background: var(--green-soft); color: var(--green-ink); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.chip { white-space: nowrap; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px; background: var(--chip); color: var(--ink); font-family: var(--mono); font-size: 14px; text-decoration: none; }
.chip:hover { background: var(--line); color: var(--ink); }
.pill { white-space: nowrap; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--field); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; }
.pill[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.stock { font-weight: 600; white-space: nowrap; }
.stock-in_stock { color: var(--green); }
.stock-backorder { color: var(--amber); }
.stock-out_of_stock, .stock-discontinued, .stock-por { color: var(--muted); }
.price { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
mark.hl { background: var(--mark); color: inherit; }

/* ---------- tables ---------- */
.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { white-space: nowrap; text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 14px 12px; }
.table td { padding: 14px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .num { text-align: right; }
.table-wide { min-width: 780px; }
.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.spec th { text-align: left; width: 42%; padding: 12px 16px; font-weight: 500; color: var(--muted); }
.spec td { padding: 12px 16px; }
.spec tr + tr { border-top: 1px solid var(--line-soft); }

/* Standards like 1000BASE-T must not break at the hyphen. */
.table-products .c-std { white-space: nowrap; }

/* Desktop: the combined spec line is only for the stacked mobile layout. */
.table-products .c-summary { display: none; }

/* Product tables become stacked cards on narrow screens (columns: c-pn, c-meta…, c-stock,
   c-price, c-action). Part number + price on top, specs as one muted line, stock + button below. */
@media (max-width: 720px) {
  .table-products { min-width: 0; }
  .table-products thead { display: none; }
  .table-products tbody { display: block; }
  .table-products tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; padding: 16px; border-top: 1px solid var(--line-soft); align-items: center; }
  .table-products tr:first-child { border-top: 0; }
  .table-products td { display: block; padding: 0 !important; border: 0; text-align: left; }
  .table-products .c-pn { grid-column: 1; grid-row: 1; }
  .table-products .c-price { grid-column: 2; grid-row: 1; text-align: right; }
  .table-products .c-meta { display: none; }
  .table-products .c-summary { display: block; grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
  .table-products .c-stock { grid-column: 1; }
  .table-products .c-action { grid-column: 2; justify-self: end; }
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .muted { font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 15px var(--sans); }
.textarea { padding: 12px; resize: vertical; min-height: 96px; }
.input-mono { font-family: var(--mono); font-weight: 500; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #B42318; }
.error-text { color: #B42318; font-size: 14px; font-weight: 500; }
.form-errors { border: 1px solid #F1B5AE; background: #FDF0EE; color: #8C1D12; border-radius: var(--r-md); padding: 14px 18px; }
.fieldset { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.fieldset > legend { padding: 0 6px; font-weight: 600; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 32px; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--field); border-radius: 10px; background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--blue); background: var(--blue-soft); }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: var(--surface); font-size: 20px; color: var(--ink); cursor: pointer; }
.qty input { width: 52px; height: 44px; border: 0; text-align: center; font: 600 16px var(--mono); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.turnstile-slot { min-height: 65px; }

/* ---------- search ---------- */
.search { display: flex; position: relative; }
.search .input { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; font-family: var(--mono); }
.search .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.search-xl .input { min-height: 56px; border: 2px solid var(--ink); border-right: 0; font-size: 18px; font-weight: 500; padding: 0 18px; border-radius: var(--r-md) 0 0 var(--r-md); }
.search-xl .btn { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--surface); border: 1px solid var(--field); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(21, 24, 29, 0.14); z-index: 20; overflow: hidden; }
.suggest:empty { display: none; }
.suggest-head { padding: 10px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.suggest-item { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.suggest-item + .suggest-item { border-top: 1px solid var(--line-soft); }
.suggest-item:hover, .suggest-item[aria-selected="true"] { background: var(--blue-soft); color: var(--ink); }
.suggest-foot { display: block; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #E9EAE6; font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #E9EAE6; text-decoration: none; font-family: var(--mono); }
.topbar-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-word { display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.site-header .search { flex: 1 1 340px; min-width: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; cursor: pointer; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { color: var(--blue); }
.menu[open] > summary svg { transform: rotate(180deg); }
.menu-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: -16px; width: max-content; max-width: min(560px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(21,24,29,.12); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.menu-panel a { padding: 5px 0; display: block; }
.menu-all { font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 10px !important; }
.menu-cols { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.menu-head { margin: 0 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: var(--chip); color: var(--ink); text-decoration: none; font-weight: 600; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--field); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); font-size: 14px; line-height: 1.6; }
.site-footer .container { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer a, .site-footer .linklike { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.footer-cols nav, .footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-head { color: #fff; font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; padding-top: 28px; border-top: 1px solid var(--footer-line); }
.paymarks { display: flex; flex-wrap: wrap; gap: 8px; }
.paymark { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 50px; height: 34px; padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 13px; font-weight: 600; }
.paymark img { display: block; }
.info-tiles .paymarks { margin-top: 8px; gap: 6px; }
.info-tiles .paymark { flex-direction: row; gap: 4px; min-width: 44px; height: 30px; padding: 0 8px; border-radius: 6px; background: #fff; }
.info-tiles .paymark img { max-height: 18px; width: auto; }
.info-tiles .paymark-text img { width: 16px; height: 16px; }
.footer-logo { color: #fff; }
.footer-intro { max-width: 280px; }
.footer-company { display: flex; flex-direction: column; gap: 2px; }
.footer-fine { font-size: 13px; color: var(--footer-dim); max-width: 920px; }
.footer-cols .linklike { align-self: flex-start; text-align: left; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- content lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.ticks li { position: relative; padding-left: 26px; color: var(--body); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.ticks-row { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; max-width: none; font-size: 15px; }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--body); }
.steps-list li::marker { font-family: var(--mono); color: var(--blue); }
.two-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px 40px; }

/* ---------- misc ---------- */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq > div { margin-top: 10px; color: var(--body); }
.photo-ph { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--muted); font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; }
.steps .n { font-family: var(--mono); color: var(--accent-on-dark); }
.toast a { color: #fff; font-weight: 600; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: 15px; }
.htmx-request .htmx-hide-on-request { opacity: .5; }

@media (max-width: 900px) {
  .filters-side { order: 2; max-width: none; }
}

@media (max-width: 640px) {
  .topbar-facts span + span { display: none; }
  .hide-sm { display: none; }
  .cap-sm { text-transform: capitalize; }
  .logo-word { font-size: 18px; }
  .site-header .bar > .logo { flex: 0 1 auto; }
  .nav { gap: 14px; font-size: 14px; }
  .site-header .bar { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .site-header .search { order: 3; flex-basis: 100%; }
  .nav { order: 4; flex-basis: 100%; flex-wrap: nowrap; gap: 18px; padding-bottom: 2px; }
  .nav a, .menu > summary { white-space: nowrap; padding: 8px 0; }
  .menu { position: static; }
  .site-header .bar { position: relative; }
  .menu-panel { left: 16px; right: 16px; top: 100%; width: auto; max-width: none; }
  .menu-cols { gap: 8px 28px; }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-actions .btn-outline { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .page { padding-top: 20px; padding-bottom: 48px; }
  .panel-dark { padding: 28px 20px; }
  .card { padding: 18px; }
  .fieldset { padding: 18px; }
}

/* ---------- logo ---------- */
.logo-mark { display: block; flex: none; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- paypal ---------- */
.paypal-label { display: inline-flex; align-items: center; gap: 8px; }
.paypal-label img { display: block; flex: none; }
.paypal-pay { margin: 16px 0; }

/* ---------- shipping options ---------- */
.ship-choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ship-choice legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.choice-tight { padding: 10px 12px; }
.ship-row { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; }
.ship-name { font-weight: 600; }
.ship-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.ship-meta > .mono { white-space: nowrap; margin-left: auto; }

/* ---------- coupons and price notes ---------- */
.coupon-form { display: flex; flex-direction: column; gap: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; font-family: var(--mono); }
.coupon-applied { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 0; padding: 4px 4px 4px 12px; border-radius: var(--r-sm); background: var(--blue-soft); font-size: 15px; }
.coupon-applied .linklike, .coupon-error .linklike { color: var(--blue); min-height: 44px; padding: 0 8px; flex: none; }
.coupon-error { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; }
.coupon-error .linklike { padding: 0; font-size: 14px; }
.discount { color: var(--green); }
.price-note { color: var(--green); font-weight: 600; }

/* ---------- accounts ---------- */
.account-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.account-link:hover { background: var(--chip); color: var(--ink); }
.account-narrow { max-width: 560px; }
.account-email { overflow-wrap: anywhere; }
.account-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.account-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 4px 24px; border-bottom: 1px solid var(--line); font-weight: 500; }
.account-tabs a { flex: none; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: var(--blue); }
.account-tabs a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.account-actions form { margin: 0; }
.account-table td:first-child { white-space: nowrap; }
.account-actions .small { padding: 0 4px; }
.account-form { max-width: 820px; }
.account-hint { margin-bottom: 12px; }
.account-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 15px; color: var(--body); }
.account-bar form { margin: 0; display: inline; }
.account-bar .linklike { color: var(--blue); }

.fieldset > legend .opt { font-weight: 400; font-size: 15px; color: var(--muted); }

@media (max-width: 640px) {
  .account-link { min-height: 40px; padding: 0 10px; }
  /* Orders and quotes as stacked cards: number + total, date + status, then the actions. */
  .account-table thead { display: none; }
  .account-table tbody { display: block; }
  .account-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; padding: 16px; border-top: 1px solid var(--line-soft); }
  .account-table tr:first-child { border-top: 0; }
  .account-table td { display: block; padding: 0 !important; border: 0; }
  .account-table .c-id { grid-column: 1; grid-row: 1; }
  .account-table .c-total { grid-column: 2; grid-row: 1; text-align: right; }
  .account-table .c-date { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 14px; }
  .account-table .c-status { grid-column: 2; grid-row: 2; text-align: right; font-size: 14px; }
  .account-table .c-actions { display: flex; grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
  .account-table .c-actions .btn-ghost { padding-left: 0; }
}
/* Long addresses in headings: break anywhere rather than at hyphens, in a calmer size. */
.h1 .account-email { display: block; font-family: var(--mono); font-size: 0.7em; font-weight: 600; overflow-wrap: anywhere; hyphens: none; margin-top: 4px; }

/* Visible keyboard entry and asynchronous request feedback. */
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 18px; background: var(--surface); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
#main:focus { outline: none; }
.request-status:empty { display: none; }
.request-status, .request-error { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.request-error { border-color: var(--blue); }
.request-error button { margin-left: 12px; }
