:root{
  --bg:#f5f8f6; --panel:#ffffff; --ink:#16251d; --muted:#65746c; --line:#dfe8e2;
  --primary:#0d4b3a; --primary2:#1f7a53; --soft:#eaf5ef; --danger:#dc4c4c; --warning:#c58412; --ok:#1d8e59; --info:#3a82c7;
  --shadow:0 20px 50px rgba(13,75,58,.08); --radius:22px;
}
*{box-sizing:border-box} body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;background:linear-gradient(140deg,#edf8f0,#f7faf8 45%,#fff);color:var(--ink)}
button,input,select,textarea{font:inherit} button{border:0;border-radius:999px;padding:10px 15px;font-weight:800;cursor:pointer;background:#e7eee9;color:var(--ink)} button:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(13,75,58,.12)} button.primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff} button.danger{background:#ffe5e5;color:#991b1b} button.ghost{background:transparent;border:1px solid var(--line)}
input,select,textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px 13px;outline:none} textarea{min-height:80px} input:focus,select:focus,textarea:focus{border-color:#5aa07d;box-shadow:0 0 0 4px rgba(31,122,83,.10)}
label{font-size:12px;font-weight:900;color:#405047;display:block;margin-bottom:6px}.grid{display:grid;gap:14px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.app{min-height:100vh;display:grid;grid-template-columns:290px 1fr}.sidebar{background:linear-gradient(180deg,#093827,#0d4b3a);color:#eaf5ef;padding:22px 18px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;gap:12px;align-items:center;margin-bottom:24px}.logo{width:46px;height:46px;border-radius:16px;background:rgba(255,255,255,.12);display:grid;place-items:center;font-weight:1000;border:1px solid rgba(255,255,255,.12)}.brand h1{font-size:18px;margin:0}.brand p{margin:3px 0 0;color:#b8d6c9;font-size:12px}.nav-section{margin-top:18px;color:#96bdad;font-size:11px;text-transform:uppercase;font-weight:900;letter-spacing:.08em}.nav{display:grid;gap:7px}.nav button{border-radius:14px;background:transparent;color:#d9eee5;text-align:left;display:flex;gap:10px;align-items:center;padding:11px 12px}.nav button.active,.nav button:hover{background:rgba(255,255,255,.13);box-shadow:none;transform:none}.main{min-width:0}.topbar{height:74px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.8);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:10}.topbar h2{margin:0;font-size:18px}.topbar small{color:var(--muted)}.top-actions{display:flex;gap:8px;align-items:center}.content{padding:24px;display:grid;gap:20px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:18px 20px;background:linear-gradient(180deg,#fff,#f9fcfa)}.panel-head h3{margin:0}.panel-body{padding:20px}.hero{background:radial-gradient(circle at top left,#2a9b6d,#0d4b3a 55%,#06271d);color:#fff;border:0}.hero .panel-body{display:grid;grid-template-columns:1.3fr .7fr;gap:24px;align-items:center}.hero h2{font-size:42px;line-height:.96;letter-spacing:-.05em;margin:0}.hero p{color:#cce9dc;line-height:1.55}.metric{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px}.metric span{display:block;color:var(--muted);font-size:12px;font-weight:800}.metric strong{display:block;margin-top:6px;font-size:28px;letter-spacing:-.04em}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px}.pill.ok{background:#e7f8ee;color:#136c43}.pill.warn{background:#fff4db;color:#855c00}.pill.bad{background:#ffe8e8;color:#9d1c1c}.pill.info{background:#eaf3ff;color:#235f9c}.notice{padding:14px;border-radius:16px;background:#fff7df;border:1px solid #f1d992;color:#6c5209;line-height:1.5}.success{background:#e8f8ee;border-color:#b7e7ca;color:#135f3e}.error{background:#ffeaea;border-color:#f0baba;color:#8e1d1d}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:12px;border-bottom:1px solid #edf2ee;text-align:left;white-space:nowrap}th{background:#f7fbf8;color:#536159;font-size:11px;text-transform:uppercase;letter-spacing:.06em}tr:last-child td{border-bottom:0}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(980px,100%);display:grid;grid-template-columns:1.1fr .9fr;background:#fff;border:1px solid var(--line);border-radius:32px;box-shadow:0 30px 90px rgba(13,75,58,.16);overflow:hidden}.login-left{background:radial-gradient(circle at 10% 0,#33a572,#0d4b3a 55%,#061f18);color:#fff;padding:48px}.login-left h1{font-size:52px;letter-spacing:-.06em;line-height:.95;margin:0}.login-left p{color:#d2eee3;line-height:1.6}.login-right{padding:38px;display:grid;align-content:center;gap:16px}.status{font-size:13px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card{border:1px solid var(--line);border-radius:18px;padding:16px;background:#fff}.card h4{margin:0 0 8px}.card p{color:var(--muted);font-size:13px;line-height:1.45}.actions{display:flex;gap:8px;flex-wrap:wrap}.hidden{display:none!important}.mobile-menu{display:none}
@media(max-width:900px){.app{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:290px;z-index:50;transform:translateX(-105%);transition:.2s}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-flex}.topbar{padding:0 14px}.content{padding:14px}.grid-2,.grid-3,.grid-4,.cards,.hero .panel-body,.login-card{grid-template-columns:1fr}.hero h2{font-size:34px}.login-left{padding:32px}.login-left h1{font-size:40px}}
.toast{position:fixed;right:18px;bottom:18px;z-index:9999;max-width:460px;box-shadow:0 18px 40px rgba(13,75,58,.18)}
.metric.dark{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.18)}
.metric.dark span,.metric.dark small{color:#d2eee3}.metric small{display:block;color:var(--muted);font-size:12px;margin-top:5px;line-height:1.35}
.list-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #edf2ee}.list-row:last-child{border-bottom:0}.list-row span{color:var(--muted);font-size:13px;text-align:right}
.formula-line{padding:10px;border:1px solid var(--line);border-radius:16px;background:#fbfdfb;margin-bottom:10px}
pre{white-space:pre-wrap;background:#0b251b;color:#d9eee5;border-radius:14px;padding:14px;overflow:auto}.card button{margin-top:8px}.card h4{font-size:15px}.panel + .panel{margin-top:0}
@media(max-width:900px){.grid-4{grid-template-columns:1fr}.list-row{display:block}.list-row span{display:block;text-align:left;margin-top:4px}.top-actions{gap:4px}.top-actions button{padding:8px 10px}.content{padding-bottom:70px}}
.feature-hidden{display:none!important}
.mission-command{background:radial-gradient(circle at 8% 0,#2a9b6d,#0d4b3a 56%,#06271d);color:#fff;border:0}.mission-command .panel-body{display:grid;grid-template-columns:1.4fr .6fr;gap:26px;align-items:center;padding:30px}.mission-command h2{font-size:42px;letter-spacing:-.05em;margin:6px 0 8px}.mission-command p{color:#cce9dc;line-height:1.55;margin:0 0 18px}.eyebrow{font-size:11px;font-weight:1000;letter-spacing:.12em;color:#a8dfc7}
.health-gauge{--score:0;width:178px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin:auto;background:conic-gradient(#7fe0ae calc(var(--score)*1%),rgba(255,255,255,.14) 0);position:relative;box-shadow:0 18px 45px rgba(0,0,0,.16)}.health-gauge:before{content:"";position:absolute;inset:13px;border-radius:50%;background:#0b3f2f}.health-gauge>div{position:relative;z-index:1;text-align:center;display:grid;gap:1px}.health-gauge strong{font-size:38px;letter-spacing:-.05em}.health-gauge span{font-weight:900}.health-gauge small{color:#cce9dc}.health-gauge.warn{background:conic-gradient(#f0b84b calc(var(--score)*1%),rgba(255,255,255,.14) 0)}.health-gauge.bad{background:conic-gradient(#f27b7b calc(var(--score)*1%),rgba(255,255,255,.14) 0)}.health-gauge.info{background:conic-gradient(#6bb7ff calc(var(--score)*1%),rgba(255,255,255,.14) 0)}.health-gauge.not-started{background:rgba(255,255,255,.14)}
.health-driver-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.health-driver{border:1px solid var(--line);border-radius:18px;padding:14px;background:#fbfdfb}.health-driver>div:first-child{display:flex;justify-content:space-between;gap:12px}.health-driver span,.health-driver small{color:var(--muted);font-size:12px}.health-driver small{display:block;margin-top:8px}.driver-track{height:8px;background:#e7eee9;border-radius:999px;overflow:hidden;margin-top:10px}.driver-track i{display:block;height:100%;background:linear-gradient(90deg,var(--primary2),#53b984);border-radius:999px}
.demo-path,.pilot-roadmap{display:grid;gap:12px}.demo-step,.pilot-roadmap article{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow)}.demo-step>span,.pilot-roadmap article>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--primary);font-weight:1000}.demo-step h3,.pilot-roadmap h3{margin:0 0 4px;font-size:15px}.demo-step p,.pilot-roadmap p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.pilot-roadmap article>b{color:var(--primary);font-size:13px;white-space:nowrap}
@media(max-width:900px){.mission-command .panel-body,.health-driver-grid{grid-template-columns:1fr}.mission-command h2{font-size:34px}.health-gauge{width:158px}.demo-step,.pilot-roadmap article{grid-template-columns:auto 1fr}.demo-step button,.pilot-roadmap article>b{grid-column:2}}

/* =========================================================
   Alpha 0.7.1 — Figma / Ivory Command OS interface
   Preserves the Alpha 0.7 backend and replaces the stripped
   shell with the approved prototype visual and mobile system.
   ========================================================= */
:root{
  --bg:#f7f1e7;--panel:#fffdf8;--ink:#182131;--muted:#6f6b63;--line:#e2d5c4;
  --primary:#162033;--primary2:#31486e;--soft:#f4e3d6;--danger:#d85e50;
  --warning:#d9902f;--ok:#2f7f70;--info:#4d698f;
  --shadow:0 14px 34px rgba(54,42,31,.08);--radius:20px;
}
html,body,#app{min-height:100%;width:100%}
body{background:radial-gradient(circle at 0 0,rgba(215,133,79,.16),transparent 30%),radial-gradient(circle at 92% 0,rgba(77,105,143,.14),transparent 24%),linear-gradient(180deg,#f7f1e7 0,#fdfaf5 44%,#f4eadf 100%);font-size:13px}
body.nav-open{overflow:hidden}
img,svg,canvas{max-width:100%}
input[type="checkbox"],input[type="radio"]{width:auto;min-height:0;accent-color:#31486e}
button{border-radius:12px;min-height:38px;padding:8px 12px;font-size:12px;background:#f4e8dc;color:var(--ink);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
button:hover{box-shadow:0 10px 24px rgba(54,42,31,.10)}
button.primary{background:linear-gradient(145deg,#162033,#31486e 64%,#bc6c3f);box-shadow:0 12px 26px rgba(22,32,51,.18)}
button.ghost{background:#fffdf8;border-color:#dfd1bf}
button.danger{background:#ffe2dc;color:#a83b32}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(215,133,79,.24);outline-offset:2px}
input,select,textarea{background:#fffdf8;border-color:#dfd1bf;color:#182131;border-radius:12px;padding:10px 11px;font-size:12.5px;min-height:42px}
input:focus,select:focus,textarea:focus{border-color:#d7854f;box-shadow:0 0 0 4px rgba(215,133,79,.12)}
label{font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:#6d5e50;margin-bottom:6px}

.app{height:100vh;height:100dvh;min-height:0;overflow:hidden;grid-template-columns:112px minmax(0,1fr);align-items:stretch;background:linear-gradient(90deg,#162033 0 112px,transparent 112px)}
.sidebar{height:100dvh;min-height:0;max-height:100dvh;position:relative;top:auto;padding:0;overflow:hidden;background:#162033;border-right:1px solid rgba(255,255,255,.08);box-shadow:12px 0 34px rgba(22,32,51,.16);color:#f8efe4;display:flex;flex-direction:column;z-index:100}
.brand{flex:0 0 auto;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:14px 9px 12px;margin:0;border-bottom:1px solid rgba(255,255,255,.10)}
.logo{width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,#31486e,#bc6c3f);border-color:rgba(255,255,255,.14);box-shadow:0 12px 28px rgba(0,0,0,.18);font-size:14px}
.brand h1{font-size:11px;line-height:1.1}.brand p{font-size:8.5px;line-height:1.3;color:#cdb8a4;max-width:96px}
.sidebar>.nav-section,.sidebar>.nav{flex:0 0 auto}
.sidebar>.nav{padding:0 8px}.sidebar>.nav-section{margin:13px 0 5px;text-align:center;color:#a68e78;font-size:8px;letter-spacing:.13em}
.sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent}
.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:999px}
.nav{gap:2px}.nav button{width:100%;min-width:0;display:grid;grid-template-columns:1fr;justify-items:center;gap:4px;border-radius:15px;padding:7px 4px;background:transparent;color:#e9dccf;text-align:center;box-shadow:none}
.nav button:hover,.nav button.active{background:rgba(255,255,255,.11);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 12px 24px rgba(0,0,0,.12)}
.nav-icon{width:34px;height:34px;border-radius:13px;background:rgba(255,255,255,.07);display:grid;place-items:center;font-size:14px}
.nav button.active .nav-icon{background:#f4e3d6;color:#162033}
.nav-copy{min-width:0;display:block}.nav-copy b{display:block;max-width:98px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.5px;line-height:1.1}.nav-copy small,.nav-chevron{display:none}
.side-footer{margin-top:12px;padding:10px 8px;border-top:1px solid rgba(255,255,255,.1);display:grid;gap:8px}
.sync-pill{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;text-align:center;color:#cdb8a4;font-size:8.5px}.sync-dot,.mobile-status i{width:8px;height:8px;border-radius:50%;display:inline-block;background:#d85e50;box-shadow:0 0 0 4px rgba(216,94,80,.12)}.sync-dot.online,.mobile-status i.online{background:#42bd84;box-shadow:0 0 0 4px rgba(66,189,132,.13)}
.side-signout{min-height:30px;padding:6px;background:rgba(255,255,255,.08);color:#f8efe4;border:1px solid rgba(255,255,255,.1);font-size:9px}
.sidebar-scrim,.mobile-topbar,.mobile-context,.bottom-nav{display:none}

.main{height:100dvh;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-behavior:smooth}
.main::-webkit-scrollbar{width:10px}.main::-webkit-scrollbar-thumb{background:rgba(22,32,51,.18);border:2px solid transparent;background-clip:content-box;border-radius:999px}
.topbar{height:auto;min-height:68px;padding:11px 18px;background:rgba(247,241,231,.9);border-color:rgba(226,213,196,.75);box-shadow:0 12px 34px rgba(54,42,31,.06);z-index:40}
.page-heading{min-width:0}.page-heading .eyebrow{display:block;color:#9b5b37;font-size:9.5px;letter-spacing:.13em;margin-bottom:2px}.page-heading h2{font-size:19px;color:#182131;letter-spacing:-.035em}.page-heading small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:520px;font-size:11px}
.top-actions{gap:7px}.top-select{width:auto;min-width:190px;max-width:260px;background:#fffdf8;border-color:#dfd1bf}.avatar{width:38px;height:38px;padding:0;border-radius:50%;background:linear-gradient(145deg,#162033,#31486e 62%,#bc6c3f);color:#fff;box-shadow:0 10px 22px rgba(22,32,51,.17)}
.content{padding:18px;gap:16px;max-width:1680px;margin:0 auto;width:100%}
.panel{background:rgba(255,253,248,.93);border-color:rgba(226,213,196,.9);border-radius:22px;box-shadow:var(--shadow)}
.panel-head{padding:15px 17px;background:linear-gradient(180deg,#fffdf8,#fbf3e9);border-color:#e7dac9}.panel-head h3{font-size:16px;letter-spacing:-.025em;color:#182131}.panel-head p{margin:3px 0 0;color:var(--muted);font-size:11.5px;line-height:1.4}.panel-body{padding:17px}
.metric{background:#fffdf8;border-color:#e2d5c4;border-radius:18px;padding:14px;min-height:106px;box-shadow:var(--shadow)}.metric strong{font-size:23px;color:#162033}.metric span{font-size:10.5px;letter-spacing:.05em;text-transform:uppercase}.metric small{font-size:11px}
.cards{gap:10px}.card{background:#fffdf8;border-color:#e2d5c4;border-radius:18px;padding:14px}.card p{font-size:12px}.card button{margin-top:6px}
.pill{font-size:10.5px;padding:5px 8px}.pill.ok{background:#e4f3ef;color:#246c61}.pill.warn{background:#fff1cf;color:#8a5a10}.pill.bad{background:#ffe2dc;color:#a83b32}.pill.info{background:#e8eef7;color:#344f77}
.notice{border-radius:14px;background:#fff1cf;border-color:#ead298;color:#765118;font-size:12px}.notice.success,.success{background:#e4f3ef;border-color:#bcded5;color:#246c61}.notice.error,.error{background:#ffe2dc;border-color:#efb8ae;color:#a83b32}
.table-wrap{background:#fffdf8;border-color:#dfd1bf;border-radius:16px;max-width:100%}table{width:max-content;min-width:100%}th{background:#f4e9db;color:#53483d;font-size:10px}td{border-color:#eee2d3;font-size:12px}tbody tr:hover td{background:#fff6eb}td small{display:block;color:var(--muted);margin-top:3px}
.formula-line,.health-driver,.demo-step,.pilot-roadmap article{background:#fffaf3;border-color:#e2d5c4}
.health-driver-grid{gap:9px}.health-driver{border-radius:15px;padding:12px}.driver-track{background:#efe2d3}.driver-track i{background:linear-gradient(90deg,#bc6c3f,#dca06d)}
.hero{background:radial-gradient(circle at 18% 8%,rgba(215,133,79,.18),transparent 30%),linear-gradient(135deg,#162033,#243552);border:1px solid rgba(255,255,255,.08);border-radius:28px}
.login-wrap{background:radial-gradient(circle at 12% 10%,rgba(215,133,79,.22),transparent 34%),radial-gradient(circle at 90% 80%,rgba(77,105,143,.22),transparent 30%),linear-gradient(135deg,#162033,#263854 52%,#efe4d6 52.2%,#f7f1e7)}
.login-card{background:rgba(255,253,248,.94);border-color:#e2d5c4;box-shadow:0 28px 80px rgba(22,32,51,.23)}.login-left{background:radial-gradient(circle at 15% 0,rgba(215,133,79,.28),transparent 34%),linear-gradient(145deg,#162033,#31486e);padding:46px}.login-left p{color:#d8d5d0}.login-right{background:#fffdf8}

/* Mission Control from the approved prototype */
.figma-mission.mission-command{display:grid;gap:16px;background:transparent;color:#182131;border:0}
.figma-mission.mission-command p{color:var(--muted);margin:0}
.figma-command-header{display:grid;grid-template-columns:1.45fr .55fr;gap:16px;align-items:stretch}
.figma-brief-paper{position:relative;overflow:hidden;background:linear-gradient(135deg,#fffdf8,#f7eadb 65%,#fff7ed);border:1px solid #dfd1bf;border-radius:30px;padding:24px;box-shadow:0 26px 76px rgba(54,42,31,.10)}
.figma-brief-paper:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 88% 15%,rgba(22,32,51,.1),transparent 28%),linear-gradient(rgba(22,32,51,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(22,32,51,.025) 1px,transparent 1px);background-size:auto,30px 30px,30px 30px;pointer-events:none}.figma-brief-paper>*{position:relative;z-index:1}
.figma-overline{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.figma-overline span{border:1px solid #dfd1bf;background:#fffaf3;color:#7f5137;border-radius:999px;padding:6px 9px;font-size:9.5px;font-weight:1000;text-transform:uppercase;letter-spacing:.07em}
.figma-brief-paper h1{margin:0;max-width:850px;color:#162033;font-size:clamp(36px,4.7vw,66px);line-height:.92;letter-spacing:-.072em}.figma-brief-paper>p{max-width:800px;margin-top:13px!important;font-size:13.5px;line-height:1.65}.figma-hero-actions{margin-top:18px}
.figma-brief-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:22px;border-top:1px solid #dfd1bf;padding-top:14px}.figma-brief-strip div{min-width:0;border-right:1px solid #e5d8c8;padding-right:8px}.figma-brief-strip div:last-child{border-right:0}.figma-brief-strip span,.figma-brief-strip small{display:block;color:#786e63;font-size:9.5px}.figma-brief-strip span{font-weight:1000;text-transform:uppercase;letter-spacing:.06em}.figma-brief-strip b{display:block;color:#162033;font-size:18px;letter-spacing:-.04em;margin:5px 0;overflow:hidden;text-overflow:ellipsis}
.figma-health-sheet{border-radius:30px;background:linear-gradient(180deg,#162033,#243552);color:#fff;box-shadow:0 26px 76px rgba(22,32,51,.18);padding:20px;display:grid;gap:14px;border:1px solid rgba(255,255,255,.08)}
.figma-health-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.figma-health-head span{display:block;color:#dec6af;font-size:9.5px;font-weight:1000;text-transform:uppercase;letter-spacing:.1em}.figma-health-head b{font-size:15px}.figma-health-head button{min-height:32px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#fff;font-size:10px}
.figma-health-ring{--score:0;width:154px;height:154px;border-radius:50%;margin:auto;background:conic-gradient(#d7854f 0 calc(var(--score)*1%),rgba(255,255,255,.12) calc(var(--score)*1%) 100%);display:grid;place-items:center;box-shadow:0 0 0 8px rgba(255,255,255,.04),0 20px 44px rgba(0,0,0,.22)}.figma-health-ring.ok{background:conic-gradient(#42bd84 0 calc(var(--score)*1%),rgba(255,255,255,.12) calc(var(--score)*1%) 100%)}.figma-health-ring.warn{background:conic-gradient(#e2a547 0 calc(var(--score)*1%),rgba(255,255,255,.12) calc(var(--score)*1%) 100%)}.figma-health-ring.bad{background:conic-gradient(#e67162 0 calc(var(--score)*1%),rgba(255,255,255,.12) calc(var(--score)*1%) 100%)}.figma-health-ring.not-started{background:rgba(255,255,255,.12)}.figma-health-ring>div{width:112px;height:112px;border-radius:50%;background:#162033;display:grid;place-items:center;text-align:center;border:1px solid rgba(255,255,255,.08)}.figma-health-ring strong{font-size:42px;letter-spacing:-.06em}.figma-health-ring small{display:block;color:#d6c0aa;font-weight:1000}
.figma-health-list{display:grid;gap:7px}.figma-health-list>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid rgba(255,255,255,.1);padding-top:8px;font-size:11px}.figma-health-list span{color:#d6c0aa}
.figma-board-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.figma-sheet{background:rgba(255,253,248,.94)}.figma-sheet .panel-head{align-items:flex-start}.figma-priority-list{display:grid;gap:8px}.figma-priority{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;width:100%;min-height:0;background:#fffaf3;border:1px solid #e8ddce;border-radius:15px;padding:10px;text-align:left;color:#182131;box-shadow:none}.figma-priority:hover{transform:none;border-color:#d7c3ad}.figma-priority b{font-size:12.5px}.figma-priority small{display:block;color:#6f6b63;font-size:11px;line-height:1.35;margin-top:2px}.figma-priority em{font-style:normal;border-radius:999px;padding:5px 8px;font-size:9.5px;font-weight:1000;text-transform:uppercase;letter-spacing:.05em;background:#e8eef7;color:#344f77}.figma-priority em.warn{background:#fff1cf;color:#8a5a10}.figma-priority em.bad{background:#ffe2dc;color:#a83b32}.figma-priority em.ok{background:#e4f3ef;color:#246c61}.figma-rank{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#e8eef7;color:#31486e;font-weight:1000}.figma-rank.warn{background:#fff1cf;color:#8a5a10}.figma-rank.bad{background:#ffe2dc;color:#a83b32}.figma-rank.ok{background:#e4f3ef;color:#246c61}
.figma-ledger{display:grid;gap:0}.figma-ledger>div{display:grid;grid-template-columns:95px 1fr;gap:10px;padding:10px 0;border-bottom:1px dashed #e2d5c4}.figma-ledger>div:last-child{border-bottom:0}.figma-ledger span{color:#8d5434;font-size:10.5px;font-weight:1000;text-transform:uppercase;letter-spacing:.05em}.figma-ledger b{font-size:12px;text-align:right}
.figma-kpi-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.figma-kpi-rail button{min-width:0;min-height:112px;background:#fffdf8;border:1px solid #e2d5c4;border-radius:18px;padding:12px;text-align:left;box-shadow:var(--shadow)}.figma-kpi-rail button>span{width:32px;height:32px;border-radius:11px;background:#f1e2d2;color:#8d5434;display:grid;place-items:center;margin-bottom:8px;font-size:15px}.figma-kpi-rail small{display:block;color:#827363;font-size:9.5px;font-weight:1000;text-transform:uppercase;letter-spacing:.06em}.figma-kpi-rail b{display:block;color:#162033;font-size:20px;letter-spacing:-.04em;margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.figma-kpi-rail em{display:block;color:#6f6b63;font-size:10.5px;font-style:normal}

@media(max-width:1280px){
  .figma-command-header,.figma-board-grid{grid-template-columns:1fr}.figma-brief-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.figma-kpi-rail{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.top-actions>.pill{display:none}.top-select{min-width:160px;max-width:210px}
}

@media(max-width:900px){
  html,body,#app{width:100%;max-width:100%;overflow-x:hidden}
  body{font-size:13px}.app{display:block;height:100vh;height:100dvh;min-height:0;overflow:hidden;background:var(--bg)}
  .sidebar{position:fixed;inset:0 auto 0 0;width:min(88vw,340px);height:100vh;height:100dvh;max-height:100dvh;padding-top:env(safe-area-inset-top);transform:translateX(-105%);transition:transform .22s ease;z-index:120;box-shadow:22px 0 70px rgba(22,32,51,.28)}.sidebar.open{transform:translateX(0)}
  .brand{flex-direction:row;align-items:center;text-align:left;padding:12px 14px}.brand h1{font-size:15px}.brand p{font-size:9.5px;max-width:none}.sidebar>.nav-section{text-align:left;margin:14px 14px 5px}.sidebar>.nav{padding:0 10px}.nav button{grid-template-columns:34px minmax(0,1fr) auto;justify-items:stretch;text-align:left;gap:10px;padding:8px 10px}.nav-copy{min-width:0}.nav-copy b{max-width:none;font-size:12px}.nav-copy small{display:block;color:#bca996;font-size:10px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-chevron{display:block;align-self:center;color:#a68e78}.side-footer{margin-top:12px;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}.sync-pill{justify-content:flex-start;font-size:10px}.side-signout{font-size:11px;min-height:40px}
  .sidebar-scrim{display:block;position:fixed;inset:0;z-index:115;border:0;border-radius:0;padding:0;min-height:0;background:rgba(22,32,51,.45);backdrop-filter:blur(4px);opacity:0;visibility:hidden;pointer-events:none;transition:.2s}.sidebar-scrim.open{opacity:1;visibility:visible;pointer-events:auto}
  .main{height:100vh;height:100dvh;min-width:0;overflow-y:auto;overflow-x:hidden;padding:0}.topbar{display:none}.mobile-topbar{display:flex;position:sticky;top:0;z-index:90;height:calc(58px + env(safe-area-inset-top));padding:calc(8px + env(safe-area-inset-top)) 11px 8px;align-items:center;justify-content:space-between;background:rgba(247,241,231,.97);backdrop-filter:blur(16px);border-bottom:1px solid #dfd1bf;box-shadow:0 8px 26px rgba(54,42,31,.06)}
  .mobile-topbar .icon-btn{display:grid;flex:0 0 40px;width:40px;height:40px;place-items:center;padding:0;background:#fffdf8;border:1px solid #dfd1bf;border-radius:13px;font-size:17px;touch-action:manipulation}.mobile-menu{display:grid}
  .mobile-brand{min-width:0;display:flex;align-items:center;gap:8px;padding:0 4px}.mobile-brand>span{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#162033,#31486e 64%,#bc6c3f);color:#fff;font-size:11px;font-weight:1000}.mobile-brand div{min-width:0}.mobile-brand b,.mobile-brand small{display:block;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-brand b{font-size:12.5px}.mobile-brand small{font-size:9.5px;color:var(--muted);margin-top:1px}
  .mobile-context{display:grid;grid-template-columns:minmax(0,1fr) auto;position:sticky;top:calc(58px + env(safe-area-inset-top));z-index:89;gap:8px;align-items:center;padding:8px 11px;background:rgba(253,250,245,.96);border-bottom:1px solid #eadfce}.mobile-context .top-select{min-width:0;width:100%;height:38px;min-height:38px;padding:7px 30px 7px 9px;font-size:11px}.mobile-status{min-width:0;max-width:42vw;display:flex;align-items:center;gap:6px;color:#6f6b63;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-status i{width:7px;height:7px;flex:0 0 auto}
  .content{min-width:0;max-width:100%;padding:12px 11px calc(92px + env(safe-area-inset-bottom));gap:12px}.content>*{min-width:0;max-width:100%}.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:9px;right:9px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:95;background:rgba(255,253,248,.97);border:1px solid #dfd1bf;box-shadow:0 18px 55px rgba(22,32,51,.18);border-radius:21px;padding:5px;backdrop-filter:blur(18px)}.bottom-nav button{min-width:0;min-height:52px;border:0;background:transparent;border-radius:16px;padding:6px 2px;display:grid;gap:2px;place-items:center;color:#756b60;box-shadow:none;touch-action:manipulation}.bottom-nav button span{font-size:17px}.bottom-nav button b{font-size:9px;overflow:hidden;text-overflow:ellipsis;max-width:100%}.bottom-nav button.active{background:#f4e3d6;color:#8d5434}
  .grid,.grid-2,.grid-3,.grid-4,.cards,.hero .panel-body,.form-grid{grid-template-columns:minmax(0,1fr)}.grid>*,.grid-2>*,.grid-3>*,.grid-4>*,.cards>*,form>*{min-width:0;max-width:100%}.grid [style*="grid-column:span"],form [style*="grid-column:span"]{grid-column:1/-1!important}.panel{min-width:0;max-width:100%;border-radius:19px}.panel-head{min-width:0;padding:13px 14px;align-items:flex-start;flex-wrap:wrap}.panel-head>div{min-width:0}.panel-head h3,.panel-head p{overflow-wrap:anywhere}.panel-head>button,.panel-head>.pill{flex:0 0 auto}.panel-body{min-width:0;max-width:100%;padding:14px}.actions{gap:7px}.actions button{flex:1 1 140px;min-height:44px}.table-wrap{margin:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}table{max-width:none}th,td{padding:10px}.list-row{display:block}.list-row span{display:block;text-align:left;margin-top:4px}.notice,pre{max-width:100%;overflow-wrap:anywhere}.toast{left:11px;right:11px;bottom:calc(82px + env(safe-area-inset-bottom));max-width:none}
  input,select,textarea{max-width:100%;font-size:16px}.login-wrap{padding:10px}.login-card{grid-template-columns:1fr;border-radius:24px;max-height:calc(100dvh - 20px);overflow:auto}.login-left{padding:26px}.login-left h1{font-size:36px}.login-right{padding:22px}.login-right button{min-height:44px}
  .figma-mission.mission-command{gap:12px}.figma-command-header{display:flex;flex-direction:column;gap:12px}.figma-health-sheet{order:-1;grid-template-columns:108px minmax(0,1fr);align-items:center;border-radius:24px;padding:15px}.figma-health-head{grid-column:1/-1}.figma-health-ring{width:104px;height:104px;margin:0}.figma-health-ring>div{width:76px;height:76px}.figma-health-ring strong{font-size:29px}.figma-health-list{min-width:0}.figma-health-list>div{font-size:10.5px}.figma-brief-paper{padding:18px;border-radius:24px}.figma-overline span{font-size:8.5px;padding:5px 7px}.figma-brief-paper h1{font-size:38px}.figma-brief-paper>p{font-size:12.5px}.figma-brief-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.figma-brief-strip div{border-right:0;border-bottom:1px dashed #dfd1bf;padding:8px}.figma-brief-strip div:last-child{grid-column:1/-1;border-bottom:0}.figma-priority{grid-template-columns:28px minmax(0,1fr)}.figma-priority em{grid-column:2;width:max-content;max-width:100%}.figma-ledger>div{grid-template-columns:1fr}.figma-ledger b{text-align:left;overflow-wrap:anywhere}.figma-kpi-rail{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;padding:2px 1px 8px}.figma-kpi-rail button{flex:0 0 min(78vw,280px);min-height:92px;scroll-snap-align:start}.health-driver-grid{grid-template-columns:1fr}
}

@media(max-width:420px){
  .mobile-brand b,.mobile-brand small{max-width:34vw}.mobile-status{max-width:38vw;font-size:8.8px}.figma-brief-paper h1{font-size:33px}.figma-overline span:nth-child(n+3){display:none}.content{padding-left:9px;padding-right:9px}.panel-head h3{font-size:15px}.figma-health-sheet{grid-template-columns:94px minmax(0,1fr)}.figma-health-ring{width:90px;height:90px}.figma-health-ring>div{width:66px;height:66px}.figma-health-ring strong{font-size:25px}
}

@media(max-width:340px){
  .mobile-brand>span{display:none}.figma-brief-strip{grid-template-columns:1fr}.figma-brief-strip div:last-child{grid-column:auto}.bottom-nav button b{font-size:8px}.actions button{flex-basis:100%}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.app,.main{height:auto!important;overflow:visible!important}.sidebar,.topbar,.mobile-topbar,.mobile-context,.bottom-nav,.sidebar-scrim{display:none!important}.content{padding:0!important}.panel,.figma-brief-paper,.figma-health-sheet{box-shadow:none!important}}

/* =========================================================
   Alpha 0.7.4 — Selectable interface themes
   Ivory Command remains the default. Terracotta Agro is a
   warmer, sharper field-operations alternative.
   ========================================================= */
.theme-select{width:auto;min-width:142px;max-width:170px;min-height:38px;height:38px;padding:7px 30px 7px 10px;font-size:11px;font-weight:850;background:#fffaf3;border-color:#dfd1bf}
.side-theme{display:grid;gap:5px;margin:0}.side-theme span{color:#cdb8a4;font-size:8px;font-weight:900;letter-spacing:.1em;text-align:center;text-transform:uppercase}.side-theme select{min-height:34px;height:34px;padding:6px 25px 6px 8px;border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.09);color:#f8efe4;font-size:10px}.side-theme option{color:#182131;background:#fffdf8}
.theme-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.theme-card{display:grid;grid-template-columns:148px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:var(--shadow)}.theme-card.selected{box-shadow:inset 0 0 0 2px var(--primary2),var(--shadow)}.theme-card h3{margin:4px 0;font-size:18px}.theme-card p{margin:0 0 4px;color:var(--muted)}.theme-card small{color:var(--muted)}.theme-card button:disabled{cursor:default;opacity:.72;transform:none;box-shadow:none}.theme-preview{height:92px;position:relative;overflow:hidden;border-radius:14px;background:#f7f1e7;border:1px solid rgba(0,0,0,.08)}.theme-preview span{position:absolute;inset:0 auto 0 0;width:28px;background:#162033}.theme-preview i,.theme-preview b,.theme-preview em{position:absolute;display:block;border-radius:5px}.theme-preview i{left:38px;right:10px;top:10px;height:16px;background:#fffdf8}.theme-preview b{left:38px;width:45%;top:34px;bottom:10px;background:#fffdf8}.theme-preview em{right:10px;width:28%;top:34px;bottom:10px;background:#31486e}.theme-preview.terracotta{background:#f1dfc7}.theme-preview.terracotta span{background:#5b2c1e}.theme-preview.terracotta i,.theme-preview.terracotta b{background:#fff8ec}.theme-preview.terracotta em{background:#b85e35}
.theme-preview.forest{background:#e9f4ed}.theme-preview.forest span{background:#123f32}.theme-preview.forest i,.theme-preview.forest b{background:#fbfffc}.theme-preview.forest em{background:#27825d}.theme-preview.midnight{background:#101722}.theme-preview.midnight span{background:#080d14}.theme-preview.midnight i,.theme-preview.midnight b{background:#202b39}.theme-preview.midnight em{background:#26c3aa}

/* Readability baseline shared by every theme. */
body{font-size:14px;line-height:1.45}.figma-brief-paper h1{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(32px,3.7vw,54px);line-height:.98;letter-spacing:-.052em}.nav-copy b{max-width:96px;min-height:2.3em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;line-height:1.15;font-size:10.5px;overflow:hidden}.card p,.metric small,.panel-head p,.figma-priority small{font-size:12px}label{font-size:11.5px}td{font-size:13px}th{font-size:11px}

html[data-theme="terracotta"]{
  --bg:#f1dfc7;--panel:#fff8ec;--ink:#30221c;--muted:#786357;--line:#d9bea4;
  --primary:#8b3f24;--primary2:#b85e35;--soft:#f1c7a7;--danger:#b84939;
  --warning:#b97916;--ok:#537552;--info:#6d7186;
  --shadow:0 10px 0 rgba(112,58,33,.045),0 18px 38px rgba(86,45,27,.09);--radius:14px;
}
html[data-theme="terracotta"] body{background-color:#f1dfc7;background-image:linear-gradient(rgba(112,58,33,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(112,58,33,.025) 1px,transparent 1px),radial-gradient(circle at 100% 0,rgba(184,94,53,.24),transparent 32%),linear-gradient(155deg,#f1dfc7,#fbf2e3 52%,#e8c8aa);background-size:32px 32px,32px 32px,auto,auto;color:#30221c}
html[data-theme="terracotta"] button{border-radius:8px;background:#ecd2ba;color:#3b291f}
html[data-theme="terracotta"] button.primary{background:linear-gradient(135deg,#79351f,#a9512f 58%,#cf8150);box-shadow:0 9px 0 rgba(83,35,20,.14),0 16px 28px rgba(112,58,33,.16)}
html[data-theme="terracotta"] button.ghost{background:#fff8ec;border-color:#d5b596}
html[data-theme="terracotta"] input,html[data-theme="terracotta"] select,html[data-theme="terracotta"] textarea{background:#fffaf2;border-color:#d4b394;color:#30221c;border-radius:8px}
html[data-theme="terracotta"] input:focus,html[data-theme="terracotta"] select:focus,html[data-theme="terracotta"] textarea:focus{border-color:#b85e35;box-shadow:0 0 0 4px rgba(184,94,53,.14)}
html[data-theme="terracotta"] label{color:#75513e}
html[data-theme="terracotta"] .app{background:linear-gradient(90deg,#5b2c1e 0 112px,transparent 112px)}
html[data-theme="terracotta"] .sidebar{background:linear-gradient(180deg,#4b251b,#6f3421 58%,#44251c);border-color:rgba(255,224,194,.15);box-shadow:12px 0 34px rgba(75,37,27,.22)}
html[data-theme="terracotta"] .brand{border-color:rgba(255,224,194,.15)}
html[data-theme="terracotta"] .brand p,html[data-theme="terracotta"] .sync-pill,html[data-theme="terracotta"] .side-theme span{color:#e5b992}
html[data-theme="terracotta"] .logo{border-radius:8px;background:linear-gradient(145deg,#9a4829,#d48b55);box-shadow:0 9px 0 rgba(32,14,9,.2)}
html[data-theme="terracotta"] .sidebar>.nav-section{color:#d09a70}
html[data-theme="terracotta"] .nav button{border-radius:8px;background:transparent;color:#fff0df}
html[data-theme="terracotta"] .nav button:hover,html[data-theme="terracotta"] .nav button.active{background:rgba(255,224,194,.13);box-shadow:inset 3px 0 0 #e7a46d}
html[data-theme="terracotta"] .nav-icon{border-radius:7px;background:rgba(255,224,194,.09)}
html[data-theme="terracotta"] .nav button.active .nav-icon{background:#f1c7a7;color:#5b2c1e}
html[data-theme="terracotta"] .side-theme select,html[data-theme="terracotta"] .side-signout{border-color:rgba(255,224,194,.18);background:rgba(255,224,194,.09);color:#fff2e6}
html[data-theme="terracotta"] .topbar{background:rgba(241,223,199,.94);border-color:#d5b596;box-shadow:0 8px 0 rgba(112,58,33,.035)}
html[data-theme="terracotta"] .page-heading h2,html[data-theme="terracotta"] .panel-head h3,html[data-theme="terracotta"] .hero h2,html[data-theme="terracotta"] .figma-brief-paper h1{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#4a291d;font-weight:850;letter-spacing:-.035em}
html[data-theme="terracotta"] .page-heading .eyebrow,html[data-theme="terracotta"] .eyebrow{color:#a84e2c}
html[data-theme="terracotta"] .theme-select{background:#fff8ec;border-color:#d5b596}
html[data-theme="terracotta"] .avatar{border-radius:8px;background:linear-gradient(145deg,#79351f,#c66e43);box-shadow:0 8px 0 rgba(86,37,21,.16)}
html[data-theme="terracotta"] .panel,html[data-theme="terracotta"] .metric,html[data-theme="terracotta"] .card{background:rgba(255,248,236,.96);border-color:#d9bea4;border-radius:14px}
html[data-theme="terracotta"] .metric.dark{background:rgba(69,29,17,.3);border-color:rgba(255,235,214,.2);color:#fff8ef}
html[data-theme="terracotta"] .panel-head{background:linear-gradient(180deg,#fff8ec,#f4dfc8);border-color:#d9bea4}
html[data-theme="terracotta"] .metric strong{color:#6b321f}
html[data-theme="terracotta"] .hero{background:radial-gradient(circle at 82% 0,rgba(231,164,109,.3),transparent 31%),linear-gradient(135deg,#71341f,#9f4a29 58%,#c97545);border-color:rgba(255,235,214,.18);border-radius:18px;box-shadow:0 12px 0 rgba(86,37,21,.08),0 24px 44px rgba(86,37,21,.16)}
html[data-theme="terracotta"] .hero h2{color:#fff4e8}
html[data-theme="terracotta"] .hero p,html[data-theme="terracotta"] .metric.dark span,html[data-theme="terracotta"] .metric.dark small{color:#f4d6bd}
html[data-theme="terracotta"] .table-wrap{background:#fff8ec;border-color:#d4b394;border-radius:10px}
html[data-theme="terracotta"] th{background:#eacdb2;color:#684633}
html[data-theme="terracotta"] td{border-color:#ead7c4}html[data-theme="terracotta"] tbody tr:hover td{background:#fff0df}
html[data-theme="terracotta"] .formula-line,html[data-theme="terracotta"] .health-driver,html[data-theme="terracotta"] .demo-step,html[data-theme="terracotta"] .pilot-roadmap article{background:#fff4e7;border-color:#d9bea4;border-radius:10px}
html[data-theme="terracotta"] .driver-track{background:#e7cdb5}html[data-theme="terracotta"] .driver-track i{background:linear-gradient(90deg,#8b3f24,#dc9158)}
html[data-theme="terracotta"] .login-wrap{background:radial-gradient(circle at 10% 10%,rgba(231,164,109,.34),transparent 32%),linear-gradient(135deg,#5b2c1e,#8f4528 52%,#e6c3a3 52.2%,#f1dfc7)}
html[data-theme="terracotta"] .login-card{background:#fff8ec;border-color:#d9bea4;border-radius:18px;box-shadow:0 18px 0 rgba(74,31,18,.07),0 34px 80px rgba(74,31,18,.24)}
html[data-theme="terracotta"] .login-left{background:radial-gradient(circle at 12% 0,rgba(239,179,127,.28),transparent 34%),linear-gradient(145deg,#5b2c1e,#984829)}
html[data-theme="terracotta"] .login-right{background:#fff8ec}
html[data-theme="terracotta"] .figma-mission.mission-command{color:#30221c}
html[data-theme="terracotta"] .figma-brief-paper{background:linear-gradient(145deg,#fff8ec,#f2d7bc 72%,#e9bd95);border-color:#d2ad8d;border-radius:18px;box-shadow:0 12px 0 rgba(112,58,33,.055),0 24px 48px rgba(86,45,27,.11)}
html[data-theme="terracotta"] .figma-brief-paper:after{background:linear-gradient(115deg,transparent 0 72%,rgba(139,63,36,.08) 72%),linear-gradient(rgba(112,58,33,.035) 1px,transparent 1px);background-size:auto,28px 28px}
html[data-theme="terracotta"] .figma-overline span{background:#fff3e5;border-color:#d2ad8d;color:#8b3f24;border-radius:5px}
html[data-theme="terracotta"] .figma-brief-strip{border-color:#cfaa89}html[data-theme="terracotta"] .figma-brief-strip div{border-color:#d6b596}html[data-theme="terracotta"] .figma-brief-strip b{color:#5b2c1e}
html[data-theme="terracotta"] .figma-health-sheet{background:linear-gradient(180deg,#4b2d22,#6b3825);border-color:rgba(255,224,194,.16);border-radius:18px;box-shadow:0 12px 0 rgba(66,29,18,.1),0 24px 48px rgba(66,29,18,.2)}
html[data-theme="terracotta"] .figma-health-ring{background:conic-gradient(#e7a46d 0 calc(var(--score)*1%),rgba(255,235,214,.13) calc(var(--score)*1%) 100%)}
html[data-theme="terracotta"] .figma-health-ring>div{background:#4b2d22;border-color:rgba(255,235,214,.12)}
html[data-theme="terracotta"] .figma-health-head span,html[data-theme="terracotta"] .figma-health-list span,html[data-theme="terracotta"] .figma-health-ring small{color:#e7b98f}
html[data-theme="terracotta"] .figma-sheet{background:rgba(255,248,236,.96)}
html[data-theme="terracotta"] .figma-priority{background:#fff2e4;border-color:#dfc2a7;border-radius:8px;color:#30221c}
html[data-theme="terracotta"] .figma-rank,html[data-theme="terracotta"] .figma-priority em{border-radius:5px}
html[data-theme="terracotta"] .figma-ledger span{color:#984829}
html[data-theme="terracotta"] .figma-kpi-rail button{background:#fff8ec;border-color:#d9bea4;border-radius:10px;box-shadow:var(--shadow)}
html[data-theme="terracotta"] .figma-kpi-rail button>span{border-radius:6px;background:#efd1b5;color:#8b3f24}
html[data-theme="terracotta"] .figma-kpi-rail b{color:#5b2c1e}
html[data-theme="terracotta"] .health-gauge:before{background:#5b2c1e}
html[data-theme="terracotta"] .theme-card{border-radius:12px;background:#fff8ec}

html[data-theme="forest"]{
  --bg:#e7f2ea;--panel:#fbfffc;--ink:#153328;--muted:#5a7167;--line:#c9ddd1;
  --primary:#174f3d;--primary2:#27825d;--soft:#d9eee2;--danger:#c64e48;
  --warning:#b57b18;--ok:#27825d;--info:#3f7490;
  --shadow:0 16px 38px rgba(18,63,50,.09);--radius:18px;
}
html[data-theme="forest"] body{background:radial-gradient(circle at 92% 0,rgba(39,130,93,.16),transparent 28%),linear-gradient(145deg,#e2f0e6,#f8fbf8 52%,#dcebe2);color:#153328}
html[data-theme="forest"] button{background:#dcebe2;color:#17372b;border-radius:10px}html[data-theme="forest"] button.primary{background:linear-gradient(135deg,#123f32,#27825d);box-shadow:0 10px 24px rgba(18,63,50,.18)}html[data-theme="forest"] button.ghost{background:#fbfffc;border-color:#bfd5c8}
html[data-theme="forest"] input,html[data-theme="forest"] select,html[data-theme="forest"] textarea{background:#fbfffc;border-color:#bfd5c8;color:#153328;border-radius:10px}html[data-theme="forest"] input:focus,html[data-theme="forest"] select:focus,html[data-theme="forest"] textarea:focus{border-color:#27825d;box-shadow:0 0 0 4px rgba(39,130,93,.12)}
html[data-theme="forest"] .app{background:linear-gradient(90deg,#123f32 0 112px,transparent 112px)}html[data-theme="forest"] .sidebar{background:linear-gradient(180deg,#0e3429,#174f3d 62%,#0b2a21);box-shadow:12px 0 34px rgba(18,63,50,.2)}
html[data-theme="forest"] .logo,html[data-theme="forest"] .avatar{background:linear-gradient(145deg,#1d684d,#39a877);border-radius:12px}html[data-theme="forest"] .brand p,html[data-theme="forest"] .sync-pill,html[data-theme="forest"] .side-theme span{color:#9fd2b7}html[data-theme="forest"] .sidebar>.nav-section{color:#8fc4aa}
html[data-theme="forest"] .nav button{background:transparent;color:#e9f7ef;border-radius:11px}html[data-theme="forest"] .nav button:hover,html[data-theme="forest"] .nav button.active{background:rgba(223,246,232,.12);box-shadow:inset 3px 0 0 #66d09b}html[data-theme="forest"] .nav button.active .nav-icon{background:#d9eee2;color:#174f3d}
html[data-theme="forest"] .side-theme select,html[data-theme="forest"] .side-signout{background:rgba(223,246,232,.09);border-color:rgba(223,246,232,.16);color:#eefaf3}
html[data-theme="forest"] .topbar,html[data-theme="forest"] .mobile-topbar{background:rgba(231,242,234,.96);border-color:#c3d8ca}html[data-theme="forest"] .theme-select{background:#fbfffc;border-color:#bfd5c8}
html[data-theme="forest"] .panel,html[data-theme="forest"] .metric,html[data-theme="forest"] .card{background:rgba(251,255,252,.96);border-color:#c9ddd1}html[data-theme="forest"] .panel-head{background:linear-gradient(180deg,#fbfffc,#edf7f0);border-color:#c9ddd1}html[data-theme="forest"] .metric strong{color:#174f3d}
html[data-theme="forest"] .hero{background:radial-gradient(circle at 82% 0,rgba(102,208,155,.22),transparent 31%),linear-gradient(135deg,#0e3429,#174f3d 58%,#246f53);border-color:rgba(223,246,232,.13)}html[data-theme="forest"] .hero p,html[data-theme="forest"] .metric.dark span,html[data-theme="forest"] .metric.dark small{color:#bfe1cf}
html[data-theme="forest"] .table-wrap{background:#fbfffc;border-color:#bfd5c8}html[data-theme="forest"] th{background:#dfeee4;color:#365b49}html[data-theme="forest"] td{border-color:#dce9e0}html[data-theme="forest"] tbody tr:hover td{background:#eff8f2}
html[data-theme="forest"] .figma-brief-paper{background:linear-gradient(145deg,#fbfffc,#e4f1e8 72%,#d5eadc);border-color:#bfd5c8}html[data-theme="forest"] .figma-overline span{background:#f5fbf7;border-color:#bfd5c8;color:#246b50}html[data-theme="forest"] .figma-brief-strip b,html[data-theme="forest"] .figma-kpi-rail b{color:#174f3d}
html[data-theme="forest"] .figma-health-sheet{background:linear-gradient(180deg,#0e3429,#174f3d);box-shadow:0 24px 55px rgba(18,63,50,.2)}html[data-theme="forest"] .figma-health-ring>div{background:#123f32}html[data-theme="forest"] .figma-health-head span,html[data-theme="forest"] .figma-health-list span,html[data-theme="forest"] .figma-health-ring small{color:#a9d5bd}
html[data-theme="forest"] .figma-sheet,html[data-theme="forest"] .figma-priority,html[data-theme="forest"] .figma-kpi-rail button{background:#fbfffc;border-color:#c9ddd1}html[data-theme="forest"] .figma-kpi-rail button>span{background:#d9eee2;color:#246b50}html[data-theme="forest"] .figma-ledger span{color:#277557}
html[data-theme="forest"] .mobile-context,html[data-theme="forest"] .bottom-nav{background:rgba(248,252,249,.97);border-color:#c3d8ca}html[data-theme="forest"] .bottom-nav button.active{background:#d9eee2;color:#246b50}

html[data-theme="midnight"]{
  color-scheme:dark;--bg:#0f151e;--panel:#18212d;--ink:#edf5f2;--muted:#9db0aa;--line:#2b3946;
  --primary:#1b8f7c;--primary2:#26c3aa;--soft:#1e3936;--danger:#ed766e;
  --warning:#e5ad4c;--ok:#43c894;--info:#6aa9e9;
  --shadow:0 18px 46px rgba(0,0,0,.28);--radius:16px;
}
html[data-theme="midnight"] body{background:radial-gradient(circle at 90% 0,rgba(38,195,170,.12),transparent 28%),linear-gradient(145deg,#0b1017,#111a25 56%,#0d131c);color:#edf5f2}
html[data-theme="midnight"] button{background:#263340;color:#e7f0ed;border-radius:9px}html[data-theme="midnight"] button.primary{background:linear-gradient(135deg,#14715f,#26c3aa);color:#07110f;box-shadow:0 10px 28px rgba(38,195,170,.16)}html[data-theme="midnight"] button.ghost{background:#18212d;border-color:#344552;color:#dce8e4}html[data-theme="midnight"] button.danger{background:#48272b;color:#ffbbb5}
html[data-theme="midnight"] input,html[data-theme="midnight"] select,html[data-theme="midnight"] textarea{background:#121a24;border-color:#334452;color:#edf5f2;border-radius:9px}html[data-theme="midnight"] input:focus,html[data-theme="midnight"] select:focus,html[data-theme="midnight"] textarea:focus{border-color:#26c3aa;box-shadow:0 0 0 4px rgba(38,195,170,.13)}html[data-theme="midnight"] label{color:#aebdb8}
html[data-theme="midnight"] .app{background:linear-gradient(90deg,#080d14 0 112px,transparent 112px)}html[data-theme="midnight"] .sidebar{background:linear-gradient(180deg,#080d14,#0d151f 68%,#070b11);border-color:#25313d;box-shadow:12px 0 34px rgba(0,0,0,.34)}
html[data-theme="midnight"] .logo,html[data-theme="midnight"] .avatar{background:linear-gradient(145deg,#1a8674,#26c3aa);color:#06110f;border-radius:10px}html[data-theme="midnight"] .brand p,html[data-theme="midnight"] .sync-pill,html[data-theme="midnight"] .side-theme span{color:#82a59c}html[data-theme="midnight"] .sidebar>.nav-section{color:#6f938a}
html[data-theme="midnight"] .nav button{background:transparent;color:#d8e6e1;border-radius:10px}html[data-theme="midnight"] .nav button:hover,html[data-theme="midnight"] .nav button.active{background:rgba(38,195,170,.1);box-shadow:inset 3px 0 0 #26c3aa}html[data-theme="midnight"] .nav button.active .nav-icon{background:#26c3aa;color:#07110f}
html[data-theme="midnight"] .side-theme select,html[data-theme="midnight"] .side-signout{background:#111a24;border-color:#2c3a47;color:#dbe8e4}html[data-theme="midnight"] .side-theme option{background:#18212d;color:#edf5f2}
html[data-theme="midnight"] .topbar,html[data-theme="midnight"] .mobile-topbar{background:rgba(15,21,30,.95);border-color:#2b3946;box-shadow:0 10px 28px rgba(0,0,0,.2)}html[data-theme="midnight"] .page-heading h2,html[data-theme="midnight"] .panel-head h3{color:#edf5f2}html[data-theme="midnight"] .page-heading .eyebrow,html[data-theme="midnight"] .eyebrow{color:#59d2bd}html[data-theme="midnight"] .theme-select{background:#18212d;border-color:#334452;color:#edf5f2}
html[data-theme="midnight"] .panel,html[data-theme="midnight"] .metric,html[data-theme="midnight"] .card{background:rgba(24,33,45,.97);border-color:#2b3946}html[data-theme="midnight"] .panel-head{background:linear-gradient(180deg,#1b2633,#151e29);border-color:#2b3946}html[data-theme="midnight"] .metric strong{color:#f2f8f6}html[data-theme="midnight"] .metric span,html[data-theme="midnight"] .metric small,html[data-theme="midnight"] .card p,html[data-theme="midnight"] .status{color:#9db0aa}
html[data-theme="midnight"] .hero{background:radial-gradient(circle at 82% 0,rgba(38,195,170,.18),transparent 31%),linear-gradient(135deg,#0b1119,#14212c 58%,#17342f);border-color:#2c4645}html[data-theme="midnight"] .hero h2{color:#f1f8f5}html[data-theme="midnight"] .hero p,html[data-theme="midnight"] .metric.dark span,html[data-theme="midnight"] .metric.dark small{color:#a9c8bf}
html[data-theme="midnight"] .table-wrap{background:#141d27;border-color:#2b3946}html[data-theme="midnight"] th{background:#202c38;color:#b7c7c2}html[data-theme="midnight"] td{border-color:#263440}html[data-theme="midnight"] tbody tr:hover td{background:#1b2933}
html[data-theme="midnight"] .formula-line,html[data-theme="midnight"] .health-driver,html[data-theme="midnight"] .demo-step,html[data-theme="midnight"] .pilot-roadmap article{background:#151f2a;border-color:#2b3946}html[data-theme="midnight"] .driver-track{background:#26343f}html[data-theme="midnight"] .driver-track i{background:linear-gradient(90deg,#1b8f7c,#44d4bb)}
html[data-theme="midnight"] .figma-mission.mission-command{color:#edf5f2}html[data-theme="midnight"] .figma-brief-paper{background:linear-gradient(145deg,#18212d,#14212c 72%,#17342f);border-color:#30424e;box-shadow:0 24px 60px rgba(0,0,0,.28)}html[data-theme="midnight"] .figma-brief-paper:after{background:linear-gradient(rgba(103,210,189,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(103,210,189,.025) 1px,transparent 1px);background-size:30px 30px}html[data-theme="midnight"] .figma-brief-paper h1,html[data-theme="midnight"] .figma-brief-strip b,html[data-theme="midnight"] .figma-kpi-rail b{color:#edf5f2}html[data-theme="midnight"] .figma-overline span{background:#1c2a35;border-color:#344955;color:#65d1bc}
html[data-theme="midnight"] .figma-brief-strip{border-color:#30404c}html[data-theme="midnight"] .figma-brief-strip div{border-color:#2c3b47}html[data-theme="midnight"] .figma-brief-strip span,html[data-theme="midnight"] .figma-brief-strip small{color:#9db0aa}
html[data-theme="midnight"] .figma-health-sheet{background:linear-gradient(180deg,#08100f,#10231f);border-color:#21443d;box-shadow:0 24px 60px rgba(0,0,0,.34)}html[data-theme="midnight"] .figma-health-ring>div,html[data-theme="midnight"] .health-gauge:before{background:#0d1b19}html[data-theme="midnight"] .figma-health-head span,html[data-theme="midnight"] .figma-health-list span,html[data-theme="midnight"] .figma-health-ring small{color:#85b6aa}
html[data-theme="midnight"] .figma-sheet,html[data-theme="midnight"] .figma-priority,html[data-theme="midnight"] .figma-kpi-rail button{background:#18212d;border-color:#2b3946;color:#edf5f2}html[data-theme="midnight"] .figma-priority small,html[data-theme="midnight"] .figma-kpi-rail small,html[data-theme="midnight"] .figma-kpi-rail em{color:#9db0aa}html[data-theme="midnight"] .figma-kpi-rail button>span{background:#1e3936;color:#55d3bd}html[data-theme="midnight"] .figma-ledger>div{border-color:#2c3b47}html[data-theme="midnight"] .figma-ledger span{color:#59d2bd}
html[data-theme="midnight"] .notice{background:#3b321d;border-color:#68572d;color:#f0d99b}html[data-theme="midnight"] .notice.success,html[data-theme="midnight"] .success{background:#17372b;border-color:#285d47;color:#8bddb5}html[data-theme="midnight"] .notice.error,html[data-theme="midnight"] .error{background:#3e2528;border-color:#704147;color:#ffaaa4}
html[data-theme="midnight"] .mobile-context,html[data-theme="midnight"] .bottom-nav{background:rgba(18,26,36,.97);border-color:#2b3946}html[data-theme="midnight"] .mobile-status,html[data-theme="midnight"] .bottom-nav button{color:#9db0aa}html[data-theme="midnight"] .bottom-nav button.active{background:#1e3936;color:#59d2bd}

.treatment-product-lines{grid-column:1/-1;display:grid;gap:12px}
.treatment-product-line{padding:14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--panel) 86%,var(--soft));min-width:0}
.treatment-product-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.treatment-product-head strong{font-size:14px;color:var(--primary)}
.treatment-product-line .notice{margin:0;align-self:end;min-height:46px}
.treatment-product-line button:disabled{opacity:.45;cursor:not-allowed}
html[data-theme="midnight"] .treatment-product-line{background:#151f2a;border-color:#2b3946}

.batch-merge-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.batch-merge-choice{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 88%,var(--soft));cursor:pointer}
.batch-merge-choice:hover{border-color:var(--primary2)}
.batch-merge-choice:has(input:checked){border-color:var(--primary2);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary2) 16%,transparent)}
.batch-merge-choice input{width:18px;height:18px;margin-top:1px;flex:0 0 auto}
.batch-merge-choice span{display:grid;gap:3px;min-width:0}.batch-merge-choice b{color:var(--ink)}.batch-merge-choice small{color:var(--muted);line-height:1.35}
html[data-theme="midnight"] .batch-merge-choice{background:#151f2a;border-color:#2b3946}

@media(max-width:1280px){.theme-select{min-width:118px;max-width:130px}.top-actions{gap:5px}}
@media(max-width:900px){
  .theme-gallery{grid-template-columns:1fr}.theme-card{grid-template-columns:110px minmax(0,1fr);gap:12px}.theme-card button{grid-column:1/-1}.theme-preview{height:78px}
  .nav-copy b{display:block;min-height:0;max-width:none;white-space:nowrap;font-size:12px;line-height:1.2;text-align:left;text-overflow:ellipsis}
  .figma-brief-paper h1{font-size:clamp(30px,8.8vw,40px);line-height:1}
  html[data-theme="terracotta"] .sidebar{box-shadow:22px 0 70px rgba(75,37,27,.34)}
  html[data-theme="terracotta"] .mobile-topbar{background:rgba(241,223,199,.98);border-color:#d5b596;box-shadow:0 8px 22px rgba(86,45,27,.08)}
  html[data-theme="terracotta"] .mobile-topbar .icon-btn{background:#fff8ec;border-color:#d4b394;border-radius:8px}
  html[data-theme="terracotta"] .mobile-brand>span{border-radius:7px;background:linear-gradient(145deg,#79351f,#c66e43)}
  html[data-theme="terracotta"] .mobile-context{background:rgba(251,242,227,.98);border-color:#dec4aa}
  html[data-theme="terracotta"] .bottom-nav{background:rgba(255,248,236,.98);border-color:#d4b394;border-radius:12px;box-shadow:0 12px 0 rgba(86,45,27,.07),0 22px 45px rgba(86,45,27,.18)}
  html[data-theme="terracotta"] .bottom-nav button{border-radius:8px}html[data-theme="terracotta"] .bottom-nav button.active{background:#efd1b5;color:#7d3a22}
  html[data-theme="forest"] .sidebar{box-shadow:22px 0 70px rgba(18,63,50,.3)}html[data-theme="forest"] .mobile-topbar .icon-btn{background:#fbfffc;border-color:#bfd5c8}
  html[data-theme="midnight"] .sidebar{box-shadow:22px 0 70px rgba(0,0,0,.52)}html[data-theme="midnight"] .mobile-topbar .icon-btn{background:#18212d;border-color:#334452;color:#edf5f2}html[data-theme="midnight"] .mobile-brand>span{background:linear-gradient(145deg,#1a8674,#26c3aa);color:#07110f}
}

/* Account registration and first-company setup */
.account-form{display:grid;gap:14px}.account-form label{display:block;margin-bottom:6px}.account-form small{display:block;margin-top:6px;color:var(--muted)}.account-form button{width:100%}.login-right .status{overflow-wrap:anywhere}

/* Batch summary field selection */
.batch-report-options{margin-top:8px;padding-top:18px;border-top:1px solid var(--border,#cbd5d1)}
.batch-report-options h4{font-size:18px;margin:0 0 8px}.batch-report-options p{font-size:14px;line-height:1.5}
.batch-report-option-group{min-width:0;margin:16px 0;padding:14px;border:1px solid var(--border,#cbd5d1);border-radius:10px}
.batch-report-option-group legend{font-size:15px;font-weight:700;padding:0 6px}
.batch-report-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}
label.batch-report-check{display:flex;align-items:flex-start;gap:10px;margin:0;padding:10px 0;min-height:44px;font-size:14px;font-weight:500;text-transform:none;letter-spacing:normal;color:inherit;cursor:pointer}
.batch-report-check input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;min-height:18px;appearance:auto}
@media(max-width:640px){.batch-report-checks{grid-template-columns:1fr}}

/* Compact guidance directly below the Daily Records feed input. */
.daily-feed-standard{margin-top:8px;color:var(--ink);font-size:12px;line-height:1.55;overflow-wrap:anywhere;font-weight:400}.daily-feed-chart-label{margin-top:8px}#daily-feed-standard-choice select{font-size:12px;padding:8px 10px}.daily-feed-retry{margin-top:6px;font-size:12px;padding:6px 10px}

#daily-date-rule{display:block;margin-top:8px;font-size:13px;line-height:1.5;color:var(--ink)}#daily-date-retry button{margin-top:6px;font-size:13px}

/* Reference-inspired public account pages; scoped independently of dashboard themes. */
html .pt-entry{--ink:#17221d;--muted:#66716b;--line:#dbe5de;--primary:#267151;--primary2:#267151;color-scheme:light;min-height:100vh;min-height:100dvh;background:#fff;color:#17221d;font:400 1rem/1.55 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;display:flex;flex-direction:column}
html .pt-entry-header{border-bottom:1px solid #edf0ee;background:#fff}
html .pt-entry-header-inner{width:min(1320px,100%);margin:auto;padding:22px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px}
html .pt-entry-brand{display:flex;align-items:center;gap:11px;white-space:nowrap;font-size:1.15rem;font-weight:800;letter-spacing:-.04em;color:#18221c}
html .pt-entry-brand>span>span{color:#267151}
html .pt-entry-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid #afcfbc;border-radius:50%;background:#f2faf5;color:#267151;font-size:.875rem;letter-spacing:-.05em;box-shadow:inset 0 0 0 4px #fff}
html .pt-entry-header-note{padding:9px 22px;border:1px solid #e6ece8;border-radius:30px;background:#f8faf9;font-size:.875rem;color:#5a6960}
html .pt-entry-nav{display:flex;align-items:center;gap:22px}
html .pt-entry button{font-family:inherit;font-size:1rem;font-weight:600;line-height:1.4;letter-spacing:0;text-transform:none;min-height:44px;transform:none;box-shadow:none;transition:background .15s,color .15s}
html .pt-entry .pt-entry-primary{border:1px solid #267151;border-radius:999px;background:#267151;color:#fff;padding:12px 28px}
html .pt-entry .pt-entry-primary:hover{background:#1d5a40;border-color:#1d5a40}
html .pt-entry .pt-entry-link{padding:3px 0;background:transparent;border:0;border-radius:0;color:#267151;text-align:inherit;text-decoration:none}
html .pt-entry .pt-entry-link:hover{text-decoration:underline;text-underline-offset:4px}
html .pt-entry .pt-entry-nav .pt-entry-link{color:#46544b}
html .pt-entry [aria-current="page"].pt-entry-link{color:#1e5c41;font-weight:700}
html .pt-entry button:focus-visible,html .pt-entry summary:focus-visible{outline:3px solid #67ac85;outline-offset:4px}
html .pt-entry button:disabled{opacity:.55;cursor:wait}
html .pt-entry-main{width:min(1280px,100%);padding:60px 40px 48px;margin:auto;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(340px,.9fr);gap:70px;align-items:center;flex:1}
html .pt-entry-eyebrow{display:inline-block;border-radius:999px;padding:7px 16px;border:1px solid #c6dcce;background:#eef6f1;color:#236344;font-size:.875rem;font-weight:500}
html .pt-entry h1{margin:24px 0 20px;color:#17221d;font-size:clamp(2.35rem,3.7vw,3.65rem);line-height:1.12;letter-spacing:-.048em;font-weight:750}
html .pt-entry h1 span{color:#267151}
html .pt-entry-intro{max-width:540px;color:#66716b;font-size:1.075rem;line-height:1.75;margin:0}
html .pt-entry-visual{display:flex;align-items:center;gap:24px;margin-top:28px}
html .pt-entry-photo{width:238px;flex:0 0 238px;aspect-ratio:1;border-radius:50%;padding:12px;background:#eaf2ed;box-shadow:0 15px 45px rgba(27,81,54,.06)}
html .pt-entry-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;border:1px solid #c6dcce}
html .pt-entry-benefits{padding:0;margin:0;list-style:none;display:grid;gap:20px}
html .pt-entry-benefits li{display:flex;gap:10px;align-items:flex-start}
html .pt-entry-benefits li>span{color:#267151;font-size:.875rem;border:1px solid #9bbfaa;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;flex:0 0 19px;margin-top:3px;line-height:1}
html .pt-entry-benefits strong{display:block;font-size:.9375rem;font-weight:600;line-height:1.45;color:#263d30}
html .pt-entry-benefits small{display:block;font-size:.875rem;color:#69766e;line-height:1.5;margin-top:3px}
html .pt-entry-account{min-width:0}
html .pt-entry-form-card{padding:34px;border:1px solid #dce7df;border-radius:24px;background:#fff;box-shadow:0 22px 70px rgba(30,79,50,.07)}
html .pt-entry-form-kicker{font-size:.75rem;letter-spacing:.13em;color:#267151;font-weight:700}
html .pt-entry h2{font-size:1.9rem;line-height:1.2;letter-spacing:-.035em;color:#17221d;margin:10px 0}
html .pt-entry-form-intro{margin:0 0 27px;font-size:1rem;line-height:1.55;color:#66716b}
html .pt-entry .account-form{gap:18px}
html .pt-entry .account-form label{font-size:.875rem;font-weight:600;letter-spacing:0;text-transform:none;color:#2f4236;margin-bottom:8px;line-height:1.45}
html .pt-entry .account-form input,html .pt-entry .account-form select{background:#fbfdfb;border:1px solid #cedcd2;color:#17221d;border-radius:10px;padding:13px 14px;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.4;min-height:50px;max-width:100%;box-shadow:none}
html .pt-entry .account-form input::placeholder{color:#88938c;opacity:1}
html .pt-entry .account-form input:focus,html .pt-entry .account-form select:focus{outline:0;border-color:#267151;box-shadow:0 0 0 3px #e2f0e7}
html .pt-entry .account-form small{font-size:.875rem;color:#69766e}
html .pt-entry .account-form>.pt-entry-primary{margin-top:5px;min-height:52px}
html .pt-entry-status{padding:12px 14px;margin-top:18px;font-size:.875rem;line-height:1.6;color:#304f3d;background:#eff6f1;border:1px solid #d9e9dd;border-radius:10px;overflow-wrap:anywhere}
html .pt-entry-status:empty{display:none}
html .pt-entry-switch{margin:19px 0 0;color:#66716b;font-size:.875rem;text-align:center}
html .pt-entry-switch .pt-entry-link{font-size:.875rem}
html .pt-entry-help{border-top:1px solid #e8eee9;margin-top:16px;padding-top:12px;text-align:center}
html .pt-entry-help .pt-entry-link{font-size:.875rem}
html .pt-entry-help summary{display:inline-block;cursor:pointer;color:#748078;font-size:.8125rem;padding:7px;list-style:none}
html .pt-entry-help summary::after{content:' +';font-weight:700}
html .pt-entry-help details[open] summary::after{content:' −'}
html .pt-entry-help details p{margin:6px 0;font-size:.875rem;color:#66716b}
html .pt-entry-account-note{margin:18px 14px 0;text-align:center;font-size:.875rem;color:#78837c;line-height:1.5}
html .pt-entry-footer{width:min(1280px,100%);padding:18px 40px;margin:auto;display:flex;justify-content:space-between;gap:20px;border-top:1px solid #edf0ee;color:#7c8780;font-size:.8125rem}
@media(min-width:1500px){html .pt-entry-main{gap:110px;padding-top:72px;padding-bottom:72px}html .pt-entry-photo{width:270px;flex-basis:270px}}
@media(max-width:1100px){html .pt-entry-main{gap:32px;padding:40px 28px;grid-template-columns:minmax(0,1fr) minmax(330px,.9fr)}html .pt-entry-header-inner{padding:18px 28px}html .pt-entry-visual{gap:18px;flex-wrap:wrap}html .pt-entry-photo{width:210px;flex-basis:210px}html .pt-entry-benefits{gap:12px}html .pt-entry-header-note{display:none}}
@media(max-width:800px){html .pt-entry-main{grid-template-columns:minmax(0,1fr);max-width:540px;gap:26px;padding:30px 22px}html .pt-entry-header-inner{padding:14px 20px;gap:12px}html .pt-entry-brand{font-size:1rem;gap:8px}html .pt-entry-mark{width:34px;height:34px;font-size:.75rem}html .pt-entry-nav{gap:16px}html .pt-entry-nav button{font-size:.875rem}html .pt-entry-nav .pt-entry-primary{padding:10px 17px}html .pt-entry-story{text-align:center}html .pt-entry h1{font-size:2.125rem;line-height:1.16;margin:16px 0 12px}html .pt-entry-intro{font-size:1rem;line-height:1.6}html .pt-entry-visual{display:none}html .pt-entry-form-card{padding:27px 24px;border-radius:20px}html .pt-entry h2{font-size:1.75rem}html .pt-entry-footer{padding:18px 22px}html .pt-entry-account-note{margin-bottom:8px}}
@media(max-width:420px){html .pt-entry-header-inner{padding:12px 16px}html .pt-entry-brand{font-size:.875rem;gap:6px}html .pt-entry-mark{display:none}html .pt-entry-nav{gap:12px}html .pt-entry-nav .pt-entry-primary{padding:10px 14px}html .pt-entry-main{padding:24px 16px;gap:22px}html .pt-entry h1{font-size:1.85rem}html .pt-entry-form-card{padding:24px 20px}html .pt-entry-footer{padding:16px;flex-wrap:wrap;gap:4px 16px}}

html .pt-entry-forgot{text-align:right;margin-top:-8px;margin-bottom:-8px}html .pt-entry .pt-entry-forgot button{width:auto;font-size:.875rem;min-height:36px}html .pt-entry #retry-reset-check{margin-top:12px}html .pt-entry-header-inner{flex-wrap:wrap}

/* Owner-defined access editor */
.role-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,1fr);gap:2rem;align-items:start}
#role-editor{margin-top:1.25rem}.role-permissions{border:1px solid var(--border,#cbd9d2);border-radius:12px;padding:1rem;display:grid;gap:.65rem;min-width:0}
.role-permissions legend{font-weight:700;padding:0 .5rem}.role-permission{display:flex!important;gap:.8rem;align-items:flex-start;padding:.75rem;border:1px solid var(--border,#cbd9d2);border-radius:10px;cursor:pointer;text-transform:none!important;letter-spacing:normal!important}
.role-permission input{width:1.15rem!important;min-width:1.15rem;height:1.15rem!important;margin:.15rem 0 0;accent-color:#146348}.role-permission span{display:grid;gap:.25rem}.role-permission b{font-size:1rem}.role-permission small{font-size:.9rem;font-weight:400;line-height:1.5;opacity:.85}
@media(max-width:800px){.role-layout{grid-template-columns:minmax(0,1fr)}.role-permission{padding:.65rem}}
.access-tabs{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1.5rem}
.access-tabs button[aria-pressed="true"]{background:var(--primary,#146348);color:#fff}
.access-editor-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.access-member-form{max-width:850px!important;grid-template-columns:minmax(0,1fr)!important}
.access-preview{padding:1.1rem;border:1px solid var(--border,#cbd9d2);border-radius:12px;background:var(--surface,#fff)}
.access-preview h4{margin:0 0 .8rem;font-size:1rem}.access-preview small{display:block;margin-top:.6rem;line-height:1.5}
.access-functions{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0 0 1rem;padding:0}
.access-functions li{padding:.5rem .75rem;border:1px solid var(--border,#cbd9d2);border-radius:8px;font-size:1rem;line-height:1.4}
.access-save-actions{display:flex;gap:.75rem;flex-wrap:wrap}.access-save-status{margin:.5rem 0;line-height:1.5;overflow-wrap:anywhere}
#role-form{margin-top:1rem;grid-template-columns:minmax(0,1fr)}#access-editor .primary{color:#fff!important}
#access-editor small{font-size:.9rem}#access-editor input[readonly]{opacity:.85}

/* Keep diagnostic text readable on narrow screens in every theme. */
.access-error-details{margin:16px 0;padding:12px 16px;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere;line-height:1.5}
.access-error-details summary{cursor:pointer;font-weight:700}
.access-error-details p{margin:10px 0}
