/* Ama AI customer app - local stylesheet (no web fonts, no CDN). */
/* v2.3 brand (Founder-approved 10 Nov 2026, t456u; dev 16 Nov 2026, cosmetic only): Ama Blue #0A1F4D, Gold #D4AF37,
   Tech Cyan #00C6FF, Midnight #0B0B0F, Platinum #E6E8EF. Montserrat is used only if the device has it installed: the CSP
   has no font-src, so no font file is downloaded (system-ui fallback). */
:root{--ink:#0B0B0F;--muted:#4A5063;--line:#D5D9E4;--bg:#F3F4F8;--brand:#0A1F4D;--gold:#D4AF37;--cyan:#00C6FF;--platinum:#E6E8EF;--warn:#8a5300;--bad:#a00;--ok:#1f6f3a}
*{box-sizing:border-box}
body{margin:0;font:16px/1.5 Montserrat,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--brand)}
a:focus,button:focus,input:focus,select:focus,textarea:focus,summary:focus{outline:3px solid var(--brand);outline-offset:3px;
 box-shadow:0 0 0 3px var(--gold)}
.skip{position:absolute;left:-999px}.skip:focus{left:1em;top:1em;background:#fff;padding:.5em;z-index:9}
header{background:#fff;border-bottom:1px solid var(--line)}
header .in{max-width:960px;margin:auto;padding:.6em 1em;display:flex;flex-wrap:wrap;gap:.4em 1.2em;align-items:center}
header .brand{font-weight:700;color:var(--brand);text-decoration:none;margin-right:auto}
nav a{text-decoration:none;padding:.2em .1em}nav a[aria-current=page]{font-weight:700;border-bottom:2px solid var(--brand)}
main{max-width:960px;margin:auto;padding:1em}
.card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:1em 1.2em;margin:1em 0}
label{display:block;margin:.7em 0 .2em;font-weight:600}
input[type=text],input[type=email],input[type=password],input[type=number],select,textarea{width:100%;max-width:36em;
 padding:.55em;border:1px solid #8c8c99;border-radius:6px;font:inherit}
textarea{min-height:5em}
button{font:inherit;padding:.5em 1em;border-radius:6px;border:1px solid var(--brand);background:var(--brand);color:#fff;
 cursor:pointer;margin:.6em .4em .2em 0}
button.secondary{background:#fff;color:var(--brand)}button.danger{background:var(--bad);border-color:var(--bad)}
.inline{display:inline}
.notice{border-left:4px solid var(--brand);background:#E9EBF2;padding:.6em 1em}
.warn{border-left:4px solid var(--warn);background:#fff6e5;padding:.6em 1em}
.err{border-left:4px solid var(--bad);background:#fdecec;padding:.6em 1em}
.ok{border-left:4px solid var(--ok);background:#eaf6ee;padding:.6em 1em}
.answer{white-space:pre-wrap}
.muted{color:var(--muted);font-size:.9em}
table{border-collapse:collapse;width:100%;font-size:.95em}th,td{text-align:left;padding:.4em;border-bottom:1px solid var(--line);
 vertical-align:top}
meter{width:100%;max-width:36em;height:1.2em}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14em,1fr));gap:1em}
/* v1.6 M6: footer, terms text, small screens, larger touch targets */
footer{border-top:1px solid var(--line);background:#fff;margin-top:2em}
footer .in{max-width:960px;margin:auto;padding:.6em 1em}
pre.terms{white-space:pre-wrap;font:inherit}
nav a{display:inline-block;min-height:44px;line-height:44px}
@media (max-width:640px){main{padding:.6em}.card{padding:.8em}
 table{display:block;overflow-x:auto}button{min-height:44px}
 input[type=text],input[type=email],input[type=password],input[type=number],select,textarea{font-size:16px}}
/* v1.7: header/nav no longer wraps into a jumble - brand | links (wrap as a group) | user + sign out */
header .in{flex-wrap:wrap;gap:.2em 1em}
header .brand{margin-right:0;white-space:nowrap}
nav{display:flex;flex-wrap:wrap;gap:0 .9em;flex:1 1 auto;min-width:0}
nav a{white-space:nowrap}
.who{display:flex;flex-wrap:wrap;align-items:center;gap:0 .6em;margin-left:auto}
.who button{margin:0}
@media (max-width:640px){nav{order:3;flex-basis:100%;flex-wrap:wrap;gap:0 1em}.who{margin-left:auto}}
table.prices td,table.prices th{white-space:nowrap}
@media print{header,nav,form,footer,.noprint{display:none}body{background:#fff}.card{border:0}}
/* v1.8: rendered Terms (safe Markdown), drafting placeholders clearly marked */
.terms h2{font-size:1.25em;margin:.4em 0 .6em}.terms h3{font-size:1.1em}
.terms ol,.terms ul{padding-left:1.6em}.terms li{margin:.35em 0}
blockquote.draft-note{margin:.6em 0;border-left:4px solid var(--warn);background:#fff6e5;padding:.2em 1em}
.placeholder{background:#fff3c4;border:1px dashed var(--warn);border-radius:4px;padding:0 .25em;font-style:italic}
/* v1.9: narrow screens (down to 320px) - every link visible, no hidden sideways scroll strip, no page overflow */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.table-wrap{overflow-x:auto;max-width:100%;position:relative}
.table-wrap>table{display:table}
p.seats{margin:.6em 0 .3em}
caption{text-align:left;caption-side:top;padding:.3em 0}
main{overflow-wrap:break-word}
main code,.answer,pre.terms{overflow-wrap:anywhere;word-break:break-word}
select{max-width:100%;text-overflow:ellipsis}
input[type=file]{max-width:100%}
@media (max-width:640px){
 nav{flex-wrap:wrap;overflow:visible;gap:0 .9em;row-gap:0}
 nav a{min-height:40px;line-height:40px;padding:0 .15em}
 .who{flex-wrap:wrap;max-width:100%;min-width:0}.who .muted{overflow-wrap:anywhere}
 table{display:table}
 header .in{padding:.4em .6em}}
@media (max-width:360px){main{padding:.5em}.card{padding:.7em}nav{gap:0 .7em}}
/* v2.0: /app/billing invoices at 320 px - a card never grows past the screen; the table scrolls inside
   .table-wrap and, below 640 px (v2.1; 480 px in v2.0), table.stack rows become stacked "label: value" blocks (no sideways scrolling) */
.card{min-width:0;max-width:100%}
.card .table-wrap{width:100%}
/* v2.1: the stacked layout now applies up to 640 px (was 480): at ~532 px the payment reference column was cut off
   inside the card's sideways scroll strip */
@media (max-width:640px){
 table.stack,table.stack tbody,table.stack tr,table.stack td{display:block;width:100%}
 table.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 table.stack tr{border-bottom:1px solid var(--line);padding:.4em 0}
 table.stack td{border:0;padding:.15em 0;overflow-wrap:anywhere}
 table.stack td::before{content:attr(data-label) ": ";font-weight:600}}
/* v2.2: /app Ask form - the textarea is a block, so the Ask button always sits below it, left-aligned with it
   (at desktop widths it used to sit beside the box on the text baseline, ~12 px below the box's bottom edge) */
textarea{display:block}
form.ask button{display:block;margin:.6em 0 .2em}
/* v2.2: the /app/team members and pending-invitation tables use the same stacked "label: value" layout as the
   billing invoices below 640 px (table.stack above); an empty action cell (your own row) is not shown there */
@media (max-width:640px){
 table.stack td:empty{display:none}
 table.stack td .inline{display:inline-block;margin-right:.4em}
 table.stack td select{width:auto;max-width:100%}}
/* v2.3 brand: Ama Blue header with a gold rule, the official mark beside the "Ama AI" name (decorative img, alt=""),
   Platinum nav links, gold underline for the current page; Ama Blue headings and buttons */
header{background:var(--brand);border-bottom:3px solid var(--gold);color:#fff}
header .brand{color:#fff;display:inline-flex;align-items:center;gap:.5em;min-height:44px}
header .brand img{display:block;width:32px;height:32px;border-radius:7px}
header nav a{color:var(--platinum)}header nav a:hover{color:#fff}
header nav a[aria-current=page]{color:#fff;border-bottom-color:var(--gold)}
header .muted{color:var(--platinum)}
header button.secondary{background:transparent;color:#fff;border-color:var(--platinum)}
header button.secondary:hover{background:#fff;color:var(--brand)}
h1,h2{color:var(--brand)}
button:hover{background:var(--ink);border-color:var(--ink)}button.secondary:hover{background:var(--platinum);color:var(--brand)}
button.danger:hover{background:#7a0000;border-color:#7a0000}
footer{border-top:3px solid var(--gold)}
