/* ATHRTY V14 | Brand-synced operating interfaces.
   Reference: athrty.co live storefront, 2026-10-13.
   Scope is ATHRTY-owned tools ONLY. Never style .cs-site or the client proposal engine. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');
:root{
  --ath-os-bg:#090d13;
  --ath-os-hero:#070b13;
  --ath-os-panel:#101a28;
  --ath-os-panel-raised:#142234;
  --ath-os-ink:#eef3fb;
  --ath-os-muted:#b5c4d5;
  --ath-os-border:#304055;
  --ath-os-accent:#a3cdf9;
  --ath-os-on-accent:#08111e;
  --ath-os-font:'Inter',Arial,sans-serif;
  --ath-os-display:'Space Grotesk','Inter',sans-serif;
  --ath-os-radius:14px;
  --ath-os-gutter:clamp(18px,4vw,64px);
}
/* Shared ATHRTY shell */
.factory-app,
body.athrty-owner-app{
  color:var(--ath-os-ink);
  background:var(--ath-os-bg);
  font-family:var(--ath-os-font);
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
.factory-app *,
body.athrty-owner-app *{box-sizing:border-box}
.factory-app :is(.factory-hero h1,.factory-form-wrap h2,.factory-workbench-head h1,.factory-preview-bottom h2,.factory-loading h1,.factory-editor-head strong),
body.athrty-owner-app :is(h1,h2,h3){
  font-family:var(--ath-os-display);
  letter-spacing:-.045em;
  overflow-wrap:break-word;
  text-wrap:balance;
}
.factory-app :is(.factory-form,.factory-top,.factory-foot,.factory-workbench-actions,.factory-editor) :is(button,a,input,select,textarea),
body.athrty-owner-app :is(button,a,input,select,textarea){font-family:var(--ath-os-font)}
.factory-app :is(a,button,input,select,textarea):focus-visible,
body.athrty-owner-app :is(a,button,input,select,textarea):focus-visible{
  outline:3px solid var(--ath-os-accent);
  outline-offset:3px;
}
.factory-app :is(.factory-top,.factory-foot),
body.athrty-owner-app .topbar{
  background:#090d14;
  color:var(--ath-os-ink);
  border-color:var(--ath-os-border);
}
.factory-app .factory-logo,
.factory-app .factory-back,
body.athrty-owner-app .identity strong{color:var(--ath-os-ink)}
.factory-app .factory-logo{letter-spacing:.045em}
.factory-app .factory-logo span,
.factory-app .factory-eyebrow,
body.athrty-owner-app .eyebrow{color:var(--ath-os-accent)}
.factory-app .factory-hero h1,
.factory-app .factory-workbench-head h1{color:var(--ath-os-ink);max-width:14ch}
.factory-app .factory-hero-copy>p,
.factory-app .factory-workbench-head p,
.factory-app .factory-workbench-note,
.factory-app .factory-preview-bottom p{color:var(--ath-os-muted)}
.factory-app .factory-highlights span{
  background:#18283b;
  color:#d4e7fb;
  border:1px solid #37506a;
}
.factory-app :is(.factory-form-wrap,.factory-editor,.owner-invite-card){
  background:var(--ath-os-panel);
  border:1px solid var(--ath-os-border);
  border-radius:var(--ath-os-radius);
  box-shadow:none;
  color:var(--ath-os-ink);
}
.factory-app :is(.factory-form-wrap h2,.factory-editor-head strong,.factory-editor-group summary,.factory-workbench-note strong){
  color:var(--ath-os-ink);
}
.factory-app :is(.factory-form label,.fc-editor-field,.factory-form .factory-ack),
.factory-app :is(.factory-editor-head p,.factory-editor-hint){color:var(--ath-os-muted)}
.factory-app :is(.factory-form input:not([type=checkbox]),.factory-form select,.factory-form textarea,.fc-editor-field input,.fc-editor-field textarea,.fc-editor-field select){
  background:#0b1421;
  border:1px solid #3d536a;
  color:var(--ath-os-ink);
  border-radius:12px;
  min-width:0;
}
.factory-app input::placeholder,.factory-app textarea::placeholder{color:#96a9bd;opacity:1}
.factory-app .factory-button,
.factory-app .factory-tool-primary{
  background:var(--ath-os-accent);
  color:var(--ath-os-on-accent)!important;
  border:1px solid var(--ath-os-accent);
  border-radius:14px;
  min-height:46px;
}
.factory-app .factory-button:hover,
.factory-app .factory-tool-primary:hover{background:#d4e9ff;color:var(--ath-os-on-accent)!important}
.factory-app .factory-tool{
  background:#18283b;
  color:var(--ath-os-ink);
  border-color:#3d536a;
  border-radius:12px;
  min-height:44px;
}
.factory-app .factory-tool:hover{background:#243951;color:#fff}
.factory-app .factory-tool-primary{background:var(--ath-os-accent);color:var(--ath-os-on-accent)!important}
.factory-app .factory-foot{border-top:1px solid var(--ath-os-border);color:var(--ath-os-muted)}
.factory-app .factory-preview-bar,
.factory-app .factory-site-stage-bar{background:#15263a;color:#dbeafe}
.factory-app .factory-preview-bottom{background:#15263a;border:1px solid var(--ath-os-border);border-radius:18px}
.factory-app .factory-preview-bottom h2{color:var(--ath-os-ink)}
.factory-app #factory-preview-status,
.factory-app .factory-preview-bottom a{color:var(--ath-os-accent)}
.factory-app .factory-editor-head,.factory-app .factory-editor-group{border-color:var(--ath-os-border)}
.factory-app .factory-workbench{gap:clamp(14px,2vw,28px)}
.factory-app .factory-site-stage{border:1px solid var(--ath-os-border);min-width:0}
.factory-app .factory-error{color:#ffb6bb}
.factory-app .factory-loading h1{color:var(--ath-os-ink)}
.factory-app .factory-loading p{color:var(--ath-os-muted)}
/* Portfolio and ATHRTY owner studio index. No client-owned studio styles touched. */
body.athrty-owner-app{--bg:#090d13;--surface:#101a28;--ink:#eef3fb;--muted:#b5c4d5;--stroke:#304055;--accent:#a3cdf9;--soft:#142234;--radius:14px;--font:var(--ath-os-font)}
body.athrty-owner-app :is(.portfolio,.main){color:var(--ath-os-ink)}
body.athrty-owner-app :is(.portfolio,.main) h1{font-size:clamp(36px,4.4vw,64px)}
body.athrty-owner-app :is(.portfolio,.main) p{color:var(--ath-os-muted)}
body.athrty-owner-app :is(.module,.stat,.access,.records,.review-form,.attention-item){
  background:var(--ath-os-panel);
  border:1px solid var(--ath-os-border);
  color:var(--ath-os-ink);
  border-radius:var(--ath-os-radius);
}
body.athrty-owner-app :is(.module p,.stat span,.stat small,.module-foot small,.section-head p,.lead,.footnote){color:var(--ath-os-muted)}
body.athrty-owner-app :is(.module h3,.stat strong,.section-head h2){color:var(--ath-os-ink)}
body.athrty-owner-app .top-actions a:last-child,
body.athrty-owner-app .link{
  background:var(--ath-os-accent);
  color:var(--ath-os-on-accent);
  border-color:var(--ath-os-accent);
  border-radius:12px;
}
body.athrty-owner-app .mark{background:#263b50;color:#eef3fb;border-radius:12px}
body.athrty-owner-app :is(.toolbar input,.toolbar select,.review-grid input,.review-grid select,.review-grid textarea){
  min-height:44px;
  border:1px solid #425971;
  background:#0b1421;
  color:var(--ath-os-ink);
  border-radius:12px;
}
body.athrty-owner-app .status{background:#20344a;color:#d1e7ff}
body.athrty-owner-app .status.setup{background:#413322;color:#ffdfad}
body.athrty-owner-app .status.unavailable{background:#303641;color:#dae0e9}
body.athrty-owner-app .nav .active{background:#243e57;color:#fff}
body.athrty-owner-app .nav a,
body.athrty-owner-app .nav button{color:var(--ath-os-muted)}
body.athrty-owner-app .nav a:hover,
body.athrty-owner-app .nav button:hover{background:#1b2b3d;color:var(--ath-os-ink)}
/* Responsive: no fixed widths, no horizontal overflow, consistent touch targets. */
.factory-app :is(.factory-hero,.factory-form-wrap,.factory-workbench,.factory-workbench-head,.factory-site-stage),
body.athrty-owner-app :is(.portfolio,.layout,.main,.cards,.module){min-width:0;max-width:100%}
.factory-app :is(button,.factory-button,.factory-tool),
body.athrty-owner-app :is(button,.link,.top-actions a){min-height:44px}
@media(max-width:720px){
 .factory-app .factory-hero{grid-template-columns:minmax(0,1fr)}
 .factory-app .factory-workbench.is-editing{grid-template-columns:minmax(0,1fr)}
 .factory-app .factory-editor{position:static;max-height:none}
 body.athrty-owner-app .top-inner{flex-wrap:wrap;gap:14px}
 body.athrty-owner-app .top-actions{flex-wrap:wrap}
 body.athrty-owner-app .stats,body.athrty-owner-app .cards{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
 .factory-app *,body.athrty-owner-app *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}
/* ATHRTY Sales OS palette bridge. Preserve mechanics and gamification, standardize house style. */
body.athrty-sales-v14{
 --bg:#090d13;--rail:#090d14;--panel:#101a28;--panel2:#142234;--edge:#304055;
 --ink:#eef3fb;--muted:#b5c4d5;--accent:#a3cdf9;--lime:#a3cdf9;
 --soft:#1d3149;--radius:14px;--font:var(--ath-os-font);
 background:var(--ath-os-bg);color:var(--ath-os-ink);font:15px/1.58 var(--ath-os-font);
 -webkit-font-smoothing:antialiased;
}
body.athrty-sales-v14 :is(h1,h2,h3,h4){font-family:var(--ath-os-display);text-wrap:balance;overflow-wrap:break-word;letter-spacing:-.045em}
body.athrty-sales-v14 :is(.bar,.topbar,.rail){background:#090d14;border-color:#304055}
body.athrty-sales-v14 :is(.brand,.logo){font-family:var(--ath-os-display);letter-spacing:.025em}
body.athrty-sales-v14 :is(.brand span,.logo span){letter-spacing:.09em}
body.athrty-sales-v14 :is(.primary,button.primary,a.primary){
 background:#a3cdf9;color:#08111e;border-color:#a3cdf9;border-radius:14px;
}
body.athrty-sales-v14 :is(.primary,button.primary,a.primary):hover{background:#d8ecff;color:#08111e}
body.athrty-sales-v14 :is(button,input,select,textarea){min-height:44px}
body.athrty-sales-v14 :is(button,a,input,select,textarea):focus-visible{outline:3px solid #a3cdf9;outline-offset:3px}
body.athrty-sales-v14 :is(.nav.active,.lesson-item.active){background:#203951;color:#d7ebff}
body.athrty-sales-v14 .player-stat{background:linear-gradient(135deg,#142a43,#0d1828);border-color:#3b5975}
body.athrty-sales-v14 .player-stat :is(strong,span){color:#a3cdf9}
body.athrty-sales-v14 :is(.stat,.panel,.metric,.lesson-panel,.lesson-menu,.intro-stat){background:var(--panel);border-color:var(--edge)}
body.athrty-sales-v14 :is(.join-card,.character-stage){background:#15253a;border-color:#36516d}
body.athrty-sales-v14 .progress{background:#243952}
body.athrty-sales-v14 .progress>div{background:#a3cdf9}
@media(max-width:720px){
 body.athrty-sales-v14 :is(.shell,.main,.wrap,.container,.layout,.workspace,.bar,.topbar){min-width:0;max-width:100%}
 body.athrty-sales-v14 :is(.bar,.topbar){flex-wrap:wrap;gap:12px}
 body.athrty-sales-v14 :is(.bar nav,.topbar nav){max-width:100%;overflow-x:auto}
}

/* ATHRTY-owned specialist hubs retain their layouts while inheriting the official brand character. */
body.athrty-hub-v14{
 --athrty-brand-background:var(--ath-os-bg);
 --athrty-brand-panel:var(--ath-os-panel);
 --athrty-brand-ink:var(--ath-os-ink);
 --athrty-brand-border:var(--ath-os-border);
 color:var(--ath-os-ink);
 background:var(--ath-os-bg);
 font-family:var(--ath-os-font);
 -webkit-font-smoothing:antialiased;
}
body.athrty-hub-v14 :is(h1,h2,h3){font-family:var(--ath-os-display);letter-spacing:-.045em;text-wrap:balance;overflow-wrap:break-word}
body.athrty-hub-v14 :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--ath-os-accent);outline-offset:3px}
body.athrty-hub-v14 :is(button,[role="button"],input,select,textarea){min-height:44px}
body.athrty-hub-v14 :is(button,[role="button"]){border-radius:12px}
body.athrty-hub-v14 :is(header .logo,header .brand,header .mark){font-family:var(--ath-os-display);letter-spacing:.03em}
@media(max-width:720px){body.athrty-hub-v14 :is(main,.shell,.intro,.hero){min-width:0;max-width:100%}body.athrty-hub-v14 :is(header,header nav){max-width:100%;flex-wrap:wrap}}