:root{--bg:#f6f8fc;--card:#fff;--line:#e5e7eb;--text:#0f172a;--muted:#64748b;--sidebar:#0f172a;--accent:#4f46e5;--accent2:#4338ca;--soft:#eef2ff;--green:#15803d;--greenbg:#ecfdf5;--amber:#b45309;--amberbg:#fffbeb;--red:#b91c1c;--redbg:#fef2f2}
*{box-sizing:border-box}
body{margin:0;font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}
.hidden{display:none!important}
:focus-visible{outline:2px solid #6366f1;outline-offset:2px}

/* boot loading */
.boot-loading{position:fixed;inset:0;display:grid;place-items:center;gap:12px;background:var(--bg);z-index:50}
.boot-mark{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:900;font-size:18px}
.boot-spinner{width:26px;height:26px;border-radius:50%;border:3px solid #c7d2fe;border-top-color:var(--accent);animation:spin .8s linear infinite}
.boot-loading p{color:var(--muted);margin:0;font-weight:600}
@keyframes spin{to{transform:rotate(360deg)}}

.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#eef2ff 0%,#f8fafc 45%,#eff6ff 100%)}
.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px;box-shadow:0 24px 60px #0f172a14}
.brand-mark{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:900;font-size:18px;box-shadow:0 10px 24px #4f46e533}
.brand-mark.small{width:36px;height:36px;border-radius:10px;font-size:13px;box-shadow:none}
.login-brand{display:flex;gap:7px;align-items:baseline;margin:14px 0 28px}
.login-brand b{font-size:18px}
.login-brand span{color:var(--muted)}
.login-card h1{margin:0 0 6px;font-size:28px}
.login-card>p{margin:0 0 22px;color:var(--muted)}
label{display:grid;gap:7px;font-weight:650;color:#334155}
.req{color:var(--red);font-weight:800}
input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:10px 11px;color:var(--text);outline:none}
textarea{resize:vertical;font-family:inherit}
input:focus,select:focus,textarea:focus{border-color:#818cf8;box-shadow:0 0 0 3px #818cf822}
.login-card form{display:grid;gap:15px}
.primary,.ghost{border:0;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer;transition:background .15s,opacity .15s}
.primary{background:var(--accent);color:#fff}
.primary:hover{background:var(--accent2)}
.primary.danger{background:var(--red)}
.primary.danger:hover{background:#991b1b}
.primary:disabled,.ghost:disabled{opacity:.6;cursor:not-allowed}
.ghost{background:#f1f5f9;color:#334155}
.ghost:hover{background:#e2e8f0}
.full{width:100%}
.error{padding:10px 12px;border-radius:10px;background:var(--redbg);color:var(--red);font-weight:650}
.success-note{padding:10px 12px;border-radius:10px;background:var(--greenbg);color:var(--green);font-weight:650}
.setup-note{display:block;margin-top:18px;padding:12px;background:#f8fafc;border-radius:10px;color:var(--muted)}
.login-foot{margin-top:14px;text-align:center}
.link-btn{border:0;background:none;color:var(--accent);font-weight:700;cursor:pointer;padding:4px}
.link-btn:hover{text-decoration:underline}
.forgot-note{margin-top:10px;padding:11px 12px;border-radius:10px;background:#f8fafc;color:var(--muted);text-align:left;font-size:13px}
.boot-error{margin-top:16px;padding:12px;border-radius:10px;background:var(--redbg);color:var(--red);text-align:center;display:grid;gap:10px}
.boot-error p{margin:0}

/* app shell */
.app{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}
.nav-backdrop{display:none}
.sidebar{position:sticky;top:0;height:100vh;background:var(--sidebar);color:#e2e8f0;padding:18px 14px;display:flex;flex-direction:column;z-index:30}
.brand{display:flex;align-items:center;gap:10px;padding:2px 6px 22px;position:relative}
.brand b,.brand small{display:block}
.brand small{color:#94a3b8;margin-top:2px}
.close-nav{display:none;position:absolute;right:0;top:0;border:0;background:transparent;color:#94a3b8;font-size:16px;cursor:pointer;padding:6px}
.sidebar nav{display:grid;gap:5px}
.nav{border:0;background:transparent;color:#cbd5e1;text-align:left;padding:10px 11px;border-radius:10px;display:flex;align-items:center;gap:10px;cursor:pointer}
.nav:hover,.nav.active{background:#1e293b;color:#fff}
.nav span{width:18px;text-align:center}
.rule-chip{margin-top:20px;padding:10px 11px;border:1px solid #334155;border-radius:10px;color:#94a3b8;font-size:11px;cursor:pointer;display:grid;gap:2px}
.rule-chip:hover{border-color:#475569;color:#cbd5e1}
.rule-chip-label{text-transform:uppercase;letter-spacing:.08em;font-size:9px;font-weight:800}
.rule-chip-value{font-weight:700;color:#e2e8f0}
.sidebar-footer{margin-top:auto;border-top:1px solid #1e293b;padding:13px 6px 2px;display:flex;align-items:center;gap:8px}
.avatar{width:30px;height:30px;border-radius:50%;background:#1e293b;color:#cbd5e1;display:grid;place-items:center;font-weight:800;font-size:12px;flex:none}
.sidebar-footer div{min-width:0;flex:1}
.sidebar-footer b,.sidebar-footer small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-footer small{color:#94a3b8}
.sidebar-footer button{border:0;background:transparent;color:#cbd5e1;font-size:20px;cursor:pointer}
.main{min-width:0}
.topbar{height:76px;padding:16px 26px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;justify-content:space-between;position:sticky;top:0;z-index:5}
.topbar h1{margin:0;font-size:21px}
.topbar p{margin:3px 0 0;color:var(--muted);font-size:12px}
.private-pill{font-size:11px;font-weight:800;color:#475569;background:#f1f5f9;padding:6px 9px;border-radius:999px;white-space:nowrap}
.hamburger{display:none;border:0;background:#f1f5f9;border-radius:10px;width:38px;height:38px;flex:none;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.hamburger span{width:18px;height:2px;background:#334155;border-radius:2px}
.page{display:none;padding:26px;max-width:1500px;margin:0 auto}
.page.active{display:block}
.eyebrow{text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.13em;color:#6366f1}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}

/* dashboard: header */
.dash-head{padding:4px 2px 22px}
.dash-head h2{font-size:28px;line-height:1.15;margin:8px 0 6px;color:var(--text)}
.dash-head p{margin:0;color:var(--muted);font-size:14px}
.dash-head p b{color:var(--text)}

/* dashboard: quick actions */
.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.qa-tile{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 16px;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.qa-tile:hover{transform:translateY(-2px);box-shadow:0 10px 24px #0f172a14;border-color:#c7d2fe}
.qa-tile .qa-icon{flex:none;width:38px;height:38px;border-radius:11px;background:#eef2ff;color:var(--accent);display:grid;place-items:center;font-size:16px;font-weight:800}
.qa-tile .qa-text{display:grid;gap:1px;min-width:0}
.qa-tile .qa-text b{font-size:13px;color:var(--text)}
.qa-tile .qa-text small{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qa-tile.qa-primary{background:linear-gradient(135deg,#4f46e5,#6366f1);border-color:transparent;box-shadow:0 10px 24px #4f46e533}
.qa-tile.qa-primary .qa-icon{background:#ffffff2a;color:#fff}
.qa-tile.qa-primary .qa-text b{color:#fff}
.qa-tile.qa-primary .qa-text small{color:#e0e7ff}
.qa-tile.qa-primary:hover{box-shadow:0 14px 30px #4f46e550}

/* dashboard: clickable stat cards */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.stat-card{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.stat-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #0f172a14;border-color:#c7d2fe}
.stat-card:hover .stat-arrow{transform:translateX(2px);color:var(--accent)}
.stat-card .stat-icon{flex:none;width:34px;height:34px;border-radius:10px;background:#f1f5f9;color:#475569;display:grid;place-items:center;font-size:14px;font-weight:800}
.stat-card .stat-text{display:grid;gap:4px;flex:1;min-width:0}
.stat-card .stat-text span{color:var(--muted);font-size:12px}
.stat-card .stat-text b{font-size:26px;color:var(--text)}
.stat-card .stat-arrow{color:#cbd5e1;font-weight:800;transition:transform .12s ease,color .12s ease}

/* dashboard: lower info strip */
.dash-lower{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 18px}
.requirement-strip{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.dash-lower .muted.small{margin:0}
.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 6px 20px #0f172a08}
.panel-head,.section-head,.line-head,.invoice-bottom,.form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.panel-head h2,.panel-head h3,.section-head h2{margin:3px 0 0}
.section-head{margin-bottom:16px}
.inline-link{border:0;background:none;color:var(--accent);font-weight:700;cursor:pointer;padding:0;text-decoration:underline}
.form{display:grid;gap:14px}
.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.full{grid-column:1/-1}
fieldset{border:1px solid var(--line);border-radius:12px;padding:14px}
legend{padding:0 7px;font-weight:800}
.check{display:flex;align-items:center;gap:8px;font-weight:550}
.check input{width:auto}
.checks-row{display:flex;gap:18px;flex-wrap:wrap}
.muted{color:var(--muted)}
.muted.small{font-size:12px}
.requirement-list{display:grid}
.requirement-list>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #eef2f7}
.requirement-list>div:last-child{border-bottom:0}
.requirement-list b{font-size:12px}
.requirement-list span{color:var(--muted);text-align:right}
.requirement-list.detailed>div{display:grid;grid-template-columns:150px 1fr}
.requirement-list.detailed span{text-align:left}
.pipeline{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.pipeline span:not(.arrow){background:#f1f5f9;border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-weight:700;font-size:13px}
.pipeline .arrow{color:var(--muted);font-weight:800}
.chip{padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:700}
.chip-muted{background:#f1f5f9;color:#94a3b8}

.result{margin-top:16px;padding:16px;border-radius:14px;border:1px solid}
.result.covered{background:var(--greenbg);border-color:#bbf7d0}
.result.review{background:var(--amberbg);border-color:#fde68a}
.result.not-covered{background:#f8fafc;border-color:#cbd5e1}
.result h3{margin:0 0 5px}
.result p{margin:5px 0}
.result .status-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.03em;margin-bottom:8px}
.result.covered .status-badge{background:#bbf7d0;color:#065f46}
.result.review .status-badge{background:#fde68a;color:#78350f}
.result.not-covered .status-badge{background:#e2e8f0;color:#334155}

.cards-list{display:grid;gap:12px}
.company-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px}
.company-top{display:flex;justify-content:space-between;gap:12px}
.company-card h3{margin:0}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.branches{margin-top:13px;padding-top:12px;border-top:1px solid #eef2f7}
.branch-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;color:#475569}
.branch-actions{margin-top:10px;display:flex;gap:8px}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:auto}
.data-table{width:100%;border-collapse:collapse;min-width:760px}
.data-table th,.data-table td{text-align:left;padding:12px 14px;border-bottom:1px solid #eef2f7;vertical-align:top}
.data-table th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;background:#f8fafc}
.data-table tbody tr:hover{background:#f8fafc}
.data-table tbody tr:last-child td{border-bottom:0}
.status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}
.status.draft{background:#f1f5f9;color:#475569}
.status.issued{background:var(--greenbg);color:var(--green)}
.status.credited{background:var(--amberbg);color:var(--amber)}
.correction-tag{display:block;margin-top:4px;font-size:11px;color:var(--accent);font-weight:700;cursor:pointer}
.correction-tag:hover{text-decoration:underline}
.text-link{color:var(--accent);font-weight:700;text-decoration:none;cursor:pointer}
.text-link:hover{text-decoration:underline}
.action-btn{border:0;background:#eef2ff;color:#4338ca;border-radius:8px;padding:7px 9px;font-weight:700;cursor:pointer;margin-right:5px;white-space:nowrap}
.action-btn:hover{background:#e0e7ff}
.line-editor{border:1px solid var(--line);border-radius:12px;padding:14px}
.line-head{margin-bottom:10px}
.invoice-line-labels{display:grid;grid-template-columns:minmax(220px,1fr) 100px 130px 110px 36px;gap:8px;padding:0 2px 6px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:800}
.invoice-line{display:grid;grid-template-columns:minmax(220px,1fr) 100px 130px 110px 36px;gap:8px;align-items:center;margin-bottom:8px}
.invoice-line .line-amount{text-align:right;font-weight:800}
.remove-line{border:0;background:#fef2f2;color:#b91c1c;width:34px;height:34px;border-radius:8px;cursor:pointer}
.invoice-bottom{align-items:end;margin-top:10px}
.invoice-bottom label{max-width:240px}
.total-block{display:grid;gap:4px;min-width:200px}
.total-row{display:flex;justify-content:space-between;gap:16px;color:var(--muted)}
.total-row.grand{color:var(--text);font-size:19px;font-weight:900}
.source-invoice-chip{background:#eef2ff;color:#3730a3;border-radius:10px;padding:10px 12px;font-weight:700;margin:6px 0 14px}
.empty{padding:28px;text-align:center;color:var(--muted)}
.loading-row{padding:28px;text-align:center;color:var(--muted)}

/* modals */
.modal-backdrop{position:fixed;inset:0;background:#0f172acc;display:grid;place-items:center;z-index:100;padding:18px}
.modal-panel{background:#fff;border-radius:18px;max-width:640px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 30px 80px #0f172a40}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}
.modal-head h2{margin:0;font-size:19px}
.icon-btn{border:0;background:#f1f5f9;color:#334155;width:32px;height:32px;border-radius:9px;cursor:pointer;font-size:14px}
.icon-btn:hover{background:#e2e8f0}
.modal-body{padding:22px}
.confirm-panel{padding:26px;max-width:440px}
.confirm-panel h2{margin:0 0 10px;font-size:18px}
.confirm-panel p{color:var(--muted);margin:0 0 18px}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
.detail-grid .full{grid-column:1/-1}
.detail-field span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:800;margin-bottom:3px}
.detail-field b{font-size:14px}
.detail-lines{width:100%;border-collapse:collapse;margin:10px 0 18px}
.detail-lines th,.detail-lines td{text-align:left;padding:8px 6px;border-bottom:1px solid #eef2f7;font-size:13px}
.detail-lines td.num,.detail-lines th.num{text-align:right}
.verify-block{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:16px 0}
.verify-block img{width:120px;height:120px;border-radius:10px;background:#fff;border:1px solid var(--line)}
.verify-meta{flex:1;min-width:180px;display:grid;gap:6px}
.verify-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#eef2ff;color:#3730a3;padding:3px 8px;border-radius:6px;font-size:12px;word-break:break-all}
.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.correction-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.correction-choice button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:14px;text-align:left;cursor:pointer;display:grid;gap:4px}
.correction-choice button:hover{border-color:var(--accent);background:#f5f3ff}
.correction-choice b{font-size:13px}
.correction-choice span{color:var(--muted);font-size:12px}
.corrections-list{margin-top:14px;display:grid;gap:8px}
.corrections-list a{color:var(--accent);font-weight:700;text-decoration:none;cursor:pointer}
.corrections-list a:hover{text-decoration:underline}

.toast-host{position:fixed;right:18px;bottom:18px;z-index:1000;display:grid;gap:8px;max-width:360px}
.toast{padding:11px 14px;border-radius:10px;background:#0f172a;color:#fff;box-shadow:0 12px 30px #0f172a2a;font-weight:700}
.toast.success{background:#166534}
.toast.error{background:#991b1b}
.branch-inline-form{margin-top:12px;padding:12px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;display:grid;grid-template-columns:1fr 130px 1.4fr auto auto;gap:8px}
.btn-spinner{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid #ffffff66;border-top-color:#fff;animation:spin .7s linear infinite;margin-right:7px;vertical-align:-2px}

@media(max-width:1000px){
  .two-col{grid-template-columns:1fr}
  .quick-actions{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .detail-grid{grid-template-columns:1fr}
  .correction-choice{grid-template-columns:1fr}
}
@media(max-width:900px){
  .app{display:block}
  .hamburger{display:inline-flex}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:264px;transform:translateX(-100%);transition:transform .22s ease;box-shadow:0 0 0 transparent}
  .sidebar.open{transform:translateX(0);box-shadow:20px 0 60px #0f172a55}
  .close-nav{display:block}
  .nav-backdrop{display:none;position:fixed;inset:0;background:#0f172a66;z-index:25}
  .nav-backdrop.open{display:block}
  .rule-chip,.brand{display:grid}
  .brand{display:flex}
  .topbar{padding:13px 16px}
  .page{padding:16px}
  .dash-head h2{font-size:23px}
  .quick-actions{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
  .grid-form{grid-template-columns:1fr}
  .full{grid-column:auto}
  .invoice-line,.invoice-line-labels{grid-template-columns:1fr 64px 90px}
  .invoice-line .line-amount{grid-column:1/3;text-align:left}
  .invoice-line .remove-line{grid-column:3}
  .invoice-line-labels span:nth-child(4),.invoice-line-labels span:nth-child(5){display:none}
  .requirement-list.detailed>div{grid-template-columns:1fr}
  .requirement-list span{text-align:left}
  .section-head{align-items:flex-end}
  .branch-inline-form{grid-template-columns:1fr}
  .toast-host{left:16px;right:16px;bottom:16px;max-width:none}
  .verify-block{flex-direction:column;align-items:flex-start}
}

/* ===== v0.6 modern workspace refresh ===== */
:root{
  --bg:#f5f8f6;
  --card:#ffffff;
  --line:#e3ebe6;
  --text:#14211b;
  --muted:#66756d;
  --sidebar:#ffffff;
  --accent:#0a9f68;
  --accent2:#087c53;
  --soft:#eaf7f0;
  --green:#0a8b5c;
  --greenbg:#eaf8f1;
}
body{background:var(--bg);color:var(--text)}
.primary{background:var(--accent);box-shadow:none}
.primary:hover{background:var(--accent2)}
.ghost{background:#eef4f0;color:#2d4035}
.ghost:hover{background:#e4eee8}
input,select,textarea{border-color:#d8e3dc;border-radius:12px;padding:11px 12px}
input:focus,select:focus,textarea:focus{border-color:#65ba93;box-shadow:0 0 0 3px #0a9f681a}
.eyebrow{color:#0a8f5f}

/* login */
.login-screen{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(420px,.88fr);
  padding:0;
  background:#f7faf8;
}
.login-hero{
  position:relative;
  overflow:hidden;
  min-height:100vh;
  background:
    radial-gradient(circle at 82% 18%,#9ee3bd55 0 18%,transparent 19%),
    radial-gradient(circle at 18% 78%,#ffffff18 0 12%,transparent 13%),
    linear-gradient(145deg,#0b7754 0%,#0a9362 48%,#17a96f 100%);
  color:#fff;
}
.login-hero:before,
.login-hero:after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:#ffffff0d;
}
.login-hero:before{width:440px;height:440px;right:-170px;bottom:-160px}
.login-hero:after{width:220px;height:220px;left:-80px;top:34%}
.login-hero-inner{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:46px clamp(36px,6vw,88px);
}
.login-hero-brand{display:flex;align-items:center;gap:12px}
.login-hero-brand .brand-mark{background:#fff;color:#0b8e60;box-shadow:none}
.login-hero-brand b,.login-hero-brand span{display:block}
.login-hero-brand b{font-size:19px}
.login-hero-brand span{font-size:12px;color:#dff7ea;margin-top:2px}
.login-hero-copy{margin:auto 0;max-width:660px}
.login-kicker{
  display:inline-flex;
  align-items:center;
  border:1px solid #ffffff35;
  background:#ffffff16;
  border-radius:999px;
  padding:8px 12px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.login-hero-copy h1{
  margin:22px 0 16px;
  max-width:650px;
  font-size:clamp(42px,6vw,76px);
  line-height:.98;
  letter-spacing:-.055em;
}
.login-hero-copy p{
  max-width:600px;
  color:#e3f6eb;
  font-size:17px;
  line-height:1.65;
  margin:0;
}
.login-benefits{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}
.login-benefits span{
  border:1px solid #ffffff38;
  background:#ffffff12;
  border-radius:999px;
  padding:8px 11px;
  font-size:12px;
  font-weight:700;
}
.login-hero-foot{display:grid;gap:3px;color:#e0f5e8}
.login-hero-foot span{font-weight:800}
.login-hero-foot small{opacity:.85}
.login-panel{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:42px clamp(28px,5vw,76px);
  background:#fbfdfc;
}
.login-card{
  width:min(470px,100%);
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:0;
}
.login-panel-brand{display:none;align-items:center;gap:10px;margin-bottom:34px}
.login-panel-brand b,.login-panel-brand span{display:block}
.login-panel-brand span{color:var(--muted);font-size:12px}
.login-panel-kicker{
  display:block;
  color:#0a8f5f;
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:10px;
}
.login-card h2{font-size:34px;letter-spacing:-.035em;margin:0 0 8px}
.login-card>p{margin:0 0 28px;color:var(--muted);font-size:14px}
.login-card form{display:grid;gap:17px}
.login-card label{font-size:12px}
.login-card input{min-height:48px;background:#fff}
.login-submit{min-height:49px;border-radius:12px;margin-top:3px}
.login-foot{text-align:left;margin-top:16px}
.login-security-note{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:#728078;
}
.login-security-note span{
  width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;background:#e8f7ef;color:#0a8f5f;font-weight:900;
}

/* app shell */
.app{grid-template-columns:268px minmax(0,1fr)}
.sidebar{
  background:#fff;
  color:#27372f;
  border-right:1px solid var(--line);
  padding:22px 16px;
  box-shadow:none;
}
.brand{padding:0 8px 26px}
.brand b{color:#14211b}
.brand small{color:#7b8a82}
.brand-mark.small{background:var(--accent);color:#fff}
.sidebar nav{gap:4px}
.nav{
  position:relative;
  color:#526159;
  padding:10px 10px;
  border-radius:12px;
  gap:10px;
  font-weight:700;
  min-height:43px;
}
.nav:hover{background:#f0f5f2;color:#1b2a22}
.nav.active{background:#eaf7f0;color:#087c53}
.nav-icon{
  width:28px!important;
  height:28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#f0f5f2;
  color:#65756c;
  font-size:9px;
  font-weight:900;
  letter-spacing:.03em;
}
.nav.active .nav-icon{background:#cfeede;color:#087c53}
.nav-label{flex:1;min-width:0}
.nav-new{
  font-size:8px;
  letter-spacing:.08em;
  color:#087c53;
  background:#dff5e9;
  border-radius:999px;
  padding:3px 6px;
}
.nav-featured:not(.active){color:#1f4f38}
.rule-chip{
  border:0;
  background:#f5f8f6;
  color:#68776f;
  border-radius:14px;
  padding:12px;
}
.rule-chip:hover{background:#edf5f0;color:#2b4939}
.rule-chip-value{color:#203b2c}
.rule-chip-sub{font-size:10px;color:#819087}
.sidebar-footer{border-top:1px solid var(--line)}
.avatar{background:#e8f5ed;color:#087c53}
.sidebar-footer small{color:#86948c}
.sidebar-footer button{color:#708077}
.main{background:var(--bg)}
.topbar{
  height:78px;
  padding:15px 30px;
  background:#ffffffeb;
  backdrop-filter:blur(16px);
  border-bottom:1px solid #e8efeb;
}
.topbar h1{font-size:20px;letter-spacing:-.02em}
.private-pill{background:#eef6f1;color:#4d6558}
.page{padding:30px 34px 46px;max-width:1440px}

/* overview */
.overview-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin:4px 0 24px;
  padding:12px 2px 8px;
}
.overview-copy{max-width:760px}
.overview-kicker{
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#0b9060;
}
.overview-copy h2{
  margin:9px 0 10px;
  font-size:clamp(31px,4vw,48px);
  line-height:1.04;
  letter-spacing:-.045em;
}
.overview-copy p{margin:0;color:var(--muted);font-size:15px;max-width:700px}
.overview-actions{display:flex;gap:10px;flex-wrap:wrap}
.overview-actions button{min-height:44px}
.featured-module{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(240px,.45fr);
  gap:30px;
  background:linear-gradient(135deg,#0b704f 0%,#0c9462 62%,#14a66d 100%);
  color:#fff;
  border-radius:24px;
  padding:30px;
  box-shadow:0 18px 50px #0b704f1f;
  margin-bottom:20px;
  overflow:hidden;
  position:relative;
}
.featured-module:after{
  content:"";
  position:absolute;
  width:260px;height:260px;border-radius:50%;
  right:-100px;top:-120px;background:#ffffff0c;
}
.featured-module-copy{position:relative;z-index:1}
.module-badge-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.module-badge{
  display:inline-flex;
  border-radius:999px;
  padding:6px 9px;
  background:#ffffff18;
  border:1px solid #ffffff2c;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
}
.module-version{font-size:11px;color:#ccebdd}
.featured-module h3{font-size:31px;margin:13px 0 8px;letter-spacing:-.035em}
.featured-module p{max-width:760px;color:#dff5e9;margin:0;line-height:1.6}
.module-points{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.module-points span,.bir-module-tags span{
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
}
.module-points span{background:#ffffff13;border:1px solid #ffffff25}
.module-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:19px}
.featured-module .primary{background:#fff;color:#087c53}
.featured-module .primary:hover{background:#edf8f2}
.featured-module .ghost{background:#ffffff12;color:#fff;border:1px solid #ffffff25}
.featured-module .ghost:hover{background:#ffffff20}
.module-deadline{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:20px 24px;
  border-left:1px solid #ffffff24;
  position:relative;
  z-index:1;
}
.module-deadline small{color:#ccebdd;font-weight:700}
.module-deadline strong{font-size:38px;line-height:1;margin:12px 0 2px}
.module-deadline>span{font-size:22px;font-weight:800}
.module-deadline p{font-size:11px;margin-top:12px}
.overview-stats{margin:0 0 20px}
.stat-card{
  border-color:#e2eae5;
  border-radius:16px;
  padding:18px 19px;
  box-shadow:none;
}
.stat-card:hover{border-color:#b9dcca;box-shadow:0 10px 28px #193a2a0d}
.stat-card .stat-text b{font-size:29px;letter-spacing:-.04em}
.stat-card .stat-arrow{color:#a5b5ac}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.overview-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
}
.overview-card h3{font-size:20px;margin:5px 0 17px}
.tool-links{display:grid}
.tool-links button{
  border:0;
  border-top:1px solid #edf2ef;
  background:transparent;
  text-align:left;
  display:grid;
  grid-template-columns:1fr auto;
  padding:14px 2px;
  cursor:pointer;
  color:var(--text);
}
.tool-links button:first-child{border-top:0}
.tool-links b,.tool-links small{grid-column:1}
.tool-links small{color:var(--muted);margin-top:2px}
.tool-links button>span{grid-column:2;grid-row:1/3;align-self:center;color:#86a092}
.overview-note-list{display:grid;gap:14px;margin-bottom:17px}
.overview-note-list div{display:grid;gap:3px}
.overview-note-list span{color:var(--muted);font-size:12px}

/* BIR module */
.bir-module-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  align-items:stretch;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
  margin-bottom:26px;
}
.bir-module-hero h2{
  font-size:36px;
  margin:12px 0 9px;
  letter-spacing:-.04em;
}
.bir-module-hero>div:first-child>p{color:var(--muted);max-width:780px;margin:0}
.bir-module-hero .module-badge{background:#e9f7ef;border-color:#ccebdc;color:#087c53}
.bir-module-hero .module-version{color:#77867e}
.bir-module-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.bir-module-tags span{background:#f0f6f2;color:#3b5c49}
.bir-deadline-card{
  background:linear-gradient(145deg,#edf9f2,#f7fbf8);
  border:1px solid #d7ecdf;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px;
}
.bir-deadline-card small{color:#6d8075;font-weight:800}
.bir-deadline-card b{font-size:22px;margin:7px 0;color:#0b704f}
.bir-deadline-card span{font-size:11px;color:#7e8e85}
.module-section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin:28px 2px 14px;
}
.module-section-title h3{font-size:22px;margin:4px 0 0}
.module-section-title>p{max-width:560px;margin:0;color:var(--muted);font-size:12px;text-align:right}
.module-settings-title{margin-top:30px}
.rule-version-panel{background:#fbfdfc}
.panel{border-color:#e1e9e4;box-shadow:none}
.table-wrap{border-color:#e1e9e4}
.data-table th{background:#f7faf8}

/* responsive */
@media(max-width:1050px){
  .login-screen{grid-template-columns:1fr}
  .login-hero{min-height:auto}
  .login-hero-inner{min-height:auto;padding:32px 26px}
  .login-hero-copy{margin:50px 0 46px}
  .login-hero-copy h1{font-size:48px}
  .login-panel{min-height:auto;padding:38px 26px 54px}
  .login-panel-brand{display:flex}
  .featured-module{grid-template-columns:1fr}
  .module-deadline{border-left:0;border-top:1px solid #ffffff24;padding-left:0}
  .bir-module-hero{grid-template-columns:1fr}
}
@media(max-width:900px){
  .sidebar{width:278px;border-right:0}
  .page{padding:20px 16px 36px}
  .overview-hero{align-items:flex-start;flex-direction:column}
  .overview-actions{width:100%}
  .overview-actions button{flex:1}
  .overview-grid{grid-template-columns:1fr}
  .module-section-title{align-items:flex-start;flex-direction:column}
  .module-section-title>p{text-align:left}
}
@media(max-width:640px){
  .login-hero-copy h1{font-size:39px}
  .login-hero-copy p{font-size:15px}
  .login-benefits{display:grid}
  .login-benefits span{width:max-content}
  .featured-module{padding:23px 20px;border-radius:20px}
  .featured-module h3{font-size:27px}
  .bir-module-hero{padding:22px 18px;border-radius:20px}
  .bir-module-hero h2{font-size:30px}
  .overview-copy h2{font-size:34px}
  .overview-stats{grid-template-columns:1fr 1fr}
}

/* human accountant hero visual */
.login-accountant-model{
  position:absolute;
  right:clamp(24px,4vw,62px);
  bottom:0;
  width:clamp(190px,27vw,285px);
  max-height:54vh;
  object-fit:cover;
  object-position:center top;
  border-radius:28px 28px 0 0;
  box-shadow:0 28px 70px #063d2b55;
  border:1px solid #ffffff25;
  z-index:-1;
  opacity:.98;
}
.login-hero-copy{max-width:min(650px,64%)}
.login-hero-foot{position:relative;z-index:2}
@media(max-width:1180px){
  .login-accountant-model{opacity:.34;right:18px}
  .login-hero-copy{max-width:82%}
}
@media(max-width:1050px){
  .login-accountant-model{
    width:200px;
    max-height:310px;
    opacity:.28;
    border-radius:24px 24px 0 0;
  }
  .login-hero-copy{max-width:75%}
}
@media(max-width:640px){
  .login-accountant-model{display:none}
  .login-hero-copy{max-width:100%}
}

.login-hero-brand,.login-hero-copy,.login-hero-foot{position:relative;z-index:2}
.login-accountant-model{z-index:1}
@media(max-width:1180px){.login-accountant-model{opacity:.58}}
@media(max-width:1050px){.login-accountant-model{opacity:.36}}

/* sidebar alignment fix */
.sidebar .nav{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  column-gap:10px;
  width:100%;
  text-align:left;
}
.sidebar .nav .nav-icon{
  width:28px!important;
  min-width:28px;
  text-align:center;
}
.sidebar .nav .nav-label{
  width:auto!important;
  min-width:0;
  text-align:left!important;
  justify-self:stretch;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sidebar .nav .nav-new{
  width:auto!important;
  text-align:center!important;
  justify-self:end;
}

/* keep BIR 2026 unmistakable on the dashboard */
.featured-module-first{margin-top:4px;margin-bottom:18px}
.module-badge-new{
  background:#ffffff!important;
  color:#087c53!important;
  border-color:#ffffff!important;
  box-shadow:0 6px 16px #063d2b20;
}
.overview-hero-after-feature{
  margin-top:8px;
  padding-top:4px;
}

/* v0.7 dashboard architecture */
.client-scope{
  padding:0 6px 18px;
  display:grid;
  gap:6px;
}
.client-scope label{
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:#8a9890;
}
.client-scope select{
  min-height:40px;
  background:#f7faf8;
  border:1px solid #e1e9e4;
  color:#25362d;
  font-weight:700;
  padding:8px 10px;
  border-radius:11px;
}
.topbar-title{min-width:210px}
.global-search-wrap{
  position:relative;
  width:min(520px,42vw);
  margin-left:auto;
}
.global-search-wrap input{
  min-height:42px;
  border-radius:12px;
  background:#f7faf8;
  padding-left:14px;
}
.global-search-results{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:70;
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  box-shadow:0 18px 48px #1737271c;
  padding:8px;
  max-height:420px;
  overflow:auto;
}
.search-group-label{
  display:block;
  padding:8px 9px 4px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  color:#8a9890;
  text-transform:uppercase;
}
.search-result{
  border:0;
  background:transparent;
  width:100%;
  text-align:left;
  display:grid;
  gap:2px;
  padding:10px;
  border-radius:10px;
  cursor:pointer;
  color:var(--text);
}
.search-result:hover{background:#f0f7f3}
.search-result small{color:var(--muted)}
.search-empty{padding:16px;color:var(--muted);font-size:12px}

.dashboard-widget-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:18px;
}
.dashboard-widget{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:21px;
  min-height:250px;
}
.widget-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:17px;
}
.widget-head h3{font-size:19px;margin:4px 0 0;letter-spacing:-.02em}
.widget-status{
  flex:none;
  font-size:8px;
  font-weight:900;
  letter-spacing:.09em;
  padding:5px 7px;
  border-radius:999px;
}
.widget-status.pending{background:#fff5df;color:#a16207}
.widget-status.live{background:#e9f8f0;color:#087c53}
.deadline-feature{
  display:grid;
  gap:4px;
  padding:14px 15px;
  border:1px solid #d8eadf;
  background:#f4faf6;
  border-radius:14px;
  margin-bottom:12px;
}
.deadline-feature span{font-size:11px;font-weight:800;color:#416050}
.deadline-feature b{font-size:20px;color:#0b704f}
.deadline-feature small{color:#73837a}
.widget-empty{
  padding:16px;
  border:1px dashed #d9e3dd;
  border-radius:13px;
  color:#75847c;
  font-size:12px;
  line-height:1.55;
  background:#fafcfb;
}
.widget-empty.compact{padding:11px 12px;margin-top:14px}
.widget-foot{margin-top:13px;color:#809087;font-size:11px}
.snapshot-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.snapshot-grid>div{
  background:#f7faf8;
  border:1px solid #e3ebe6;
  border-radius:14px;
  padding:14px;
  display:grid;
  gap:5px;
}
.snapshot-grid span{font-size:11px;color:var(--muted)}
.snapshot-grid b{font-size:22px;letter-spacing:-.035em}
.activity-list{display:grid}
.activity-item{
  display:grid;
  grid-template-columns:10px 1fr;
  gap:10px;
  padding:11px 0;
  border-top:1px solid #edf2ef;
}
.activity-item:first-child{border-top:0;padding-top:0}
.activity-dot{
  width:8px;height:8px;border-radius:50%;
  background:#8bd3ae;
  margin-top:5px;
}
.activity-item div{display:grid;gap:2px;min-width:0}
.activity-item b{font-size:12px}
.activity-item small{
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media(max-width:1100px){
  .global-search-wrap{width:min(380px,36vw)}
}
@media(max-width:900px){
  .topbar{flex-wrap:wrap;height:auto}
  .topbar-title{min-width:0;flex:1}
  .global-search-wrap{order:3;width:100%;margin-left:52px}
  .dashboard-widget-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .global-search-wrap{margin-left:0}
  .top-actions{display:none}
  .snapshot-grid{grid-template-columns:1fr}
}

/* v0.8 accountant-Ducky brand + live review widgets */
.brand-mark-logo{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  padding:3px!important;
  background:#fff!important;
  border-radius:14px!important;
}
.brand-mark-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.login-hero-brand .brand-mark-logo{width:56px;height:56px}
.login-panel-brand .brand-mark-logo,
.sidebar .brand-mark-logo{width:42px!important;height:42px!important}
.boot-mark-logo{
  width:62px!important;
  height:62px!important;
  border-radius:18px!important;
  padding:4px!important;
  background:#fff!important;
  overflow:hidden;
  box-shadow:0 14px 34px #1737271a;
}
.boot-mark-logo img{width:100%;height:100%;object-fit:contain;display:block}

.deadline-row,
.exception-row{
  display:grid;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-top:1px solid #edf2ef;
}
.deadline-row:first-child,
.exception-row:first-child{border-top:0;padding-top:0}
.deadline-row{grid-template-columns:minmax(0,1fr) auto}
.deadline-row-main,
.exception-row-main{display:grid;gap:3px;min-width:0}
.deadline-row-main b,
.exception-row-main b{font-size:12px}
.deadline-row-main small,
.exception-row-main small{
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.deadline-row-side{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.deadline-date{font-size:11px;font-weight:800;color:#506258}
.deadline-status{
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 6px;
  border-radius:999px;
}
.deadline-status.upcoming{background:#eef6f1;color:#527061}
.deadline-status.soon{background:#fff4d8;color:#996000}
.deadline-status.overdue{background:#ffebeb;color:#b33737}
.deadline-action,
.exception-action{
  border:0;
  border-radius:9px;
  padding:7px 9px;
  background:#edf7f1;
  color:#087c53;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.deadline-action:hover,
.exception-action:hover{background:#dff1e7}
.widget-disclaimer{
  margin:12px 0 0;
  padding-top:10px;
  border-top:1px solid #edf2ef;
  color:#7a8980;
  font-size:10px;
  line-height:1.5;
}
.exception-row{grid-template-columns:9px minmax(0,1fr) auto}
.exception-marker{
  width:8px;height:8px;border-radius:50%;
  background:#e0ab39;
}
.exception-marker.info{background:#65a8d9}
.exception-marker.warning{background:#e0ab39}
.exception-marker.critical{background:#d95c5c}
.widget-status.warning-live{background:#fff3d4;color:#9a6300}

@media(max-width:640px){
  .deadline-row{grid-template-columns:1fr}
  .deadline-row-side{justify-content:flex-start}
  .exception-row{grid-template-columns:9px minmax(0,1fr)}
  .exception-action{grid-column:2;justify-self:start}
}

/* accountant Ducky is now the login mascot; old human hero image retired */
.login-accountant-model{display:none!important}

/* v0.6 backend widget integration states */
.deadline-status.acknowledged{background:#e8f7ef;color:#087c53}
.deadline-row.acknowledged{opacity:.72}
.exception-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.exception-action.dismiss{
  background:#f3f5f4;
  color:#6a786f;
}
.exception-action.dismiss:hover{background:#e9eeeb}
.exception-detail{
  color:#64746b;
  font-size:11px;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
}
.exception-row.severity-critical{background:linear-gradient(90deg,#fff4f4 0,transparent 42%);border-radius:10px;padding-left:6px;padding-right:4px}
.exception-row.severity-warning{background:linear-gradient(90deg,#fffaf0 0,transparent 42%);border-radius:10px;padding-left:6px;padding-right:4px}
.exception-row.severity-info{background:linear-gradient(90deg,#f2f8fc 0,transparent 42%);border-radius:10px;padding-left:6px;padding-right:4px}
.success-empty{background:#f3faf6;border-color:#cfe9da;color:#46705a}
@media(max-width:640px){
  .exception-actions{grid-column:2;justify-content:flex-start}
}

/* Module registry navigation + planned feature states */
.sidebar nav{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  align-content:start;
  padding-right:3px;
  scrollbar-width:thin;
  scrollbar-color:#d8e4dd transparent;
}
.nav-group-label{
  display:block;
  padding:15px 10px 6px;
  color:#98a59e;
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.nav-group-label:first-child{padding-top:2px}
.nav-soon,.nav-live{
  width:auto!important;
  justify-self:end;
  text-align:center!important;
  border-radius:999px;
  padding:3px 6px;
  font-size:7px;
  font-weight:900;
  letter-spacing:.06em;
}
.nav-soon{background:#f1f3f2;color:#8a968f}
.nav-live{background:#e6f6ed;color:#087c53}
.nav-planned{color:#64736b}
.nav-planned:hover{color:#34473d}
.nav-planned.active{background:#f3f6f4;color:#42544a}
.nav-planned.active .nav-icon{background:#e4ebe7;color:#56675e}

.module-state-pill{
  flex:none;
  border-radius:999px;
  padding:6px 9px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  white-space:nowrap;
}
.module-state-pill.live{background:#e8f7ef;color:#087c53}
.module-state-pill.planned{background:#eef1ef;color:#6f7e75}

.planned-feature-card{
  max-width:820px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:28px;
  box-shadow:0 10px 35px #1737270a;
}
.planned-feature-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.planned-feature-head h2{
  margin:5px 0 0;
  font-size:28px;
  letter-spacing:-.035em;
}
.planned-feature-description{
  margin:22px 0 10px;
  max-width:680px;
  font-size:16px;
  line-height:1.65;
  color:#33473d;
}
.planned-feature-note{
  margin-top:22px;
  padding:14px 16px;
  border:1px solid #e4ebe7;
  border-radius:13px;
  background:#f8faf9;
  color:#64736b;
  font-size:12px;
}
.module-live-list{padding:20px}

.module-registry-list{
  display:grid;
  margin-top:16px;
  border-top:1px solid #edf2ef;
}
.module-registry-list>div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid #edf2ef;
}
.module-registry-list b{font-size:12px;color:#304239}
.module-registry-status{
  flex:none;
  border-radius:999px;
  padding:4px 7px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.04em;
}
.module-registry-status.active{background:#daf3e5;color:#087c53}
.module-registry-status.foundation{background:#edf7f1;color:#39745a}
.module-registry-status.planned{background:#f0f2f1;color:#7d8a83}

@media(max-width:640px){
  .planned-feature-card{padding:20px}
  .planned-feature-head{align-items:flex-start}
  .planned-feature-head h2{font-size:23px}
}

/* Financial Reports v0.7 */
.report-controls{
  display:grid;
  grid-template-columns:minmax(220px,1.3fr) repeat(3,minmax(150px,.8fr)) auto;
  gap:12px;
  align-items:end;
  margin-bottom:18px;
}
.report-controls label{
  display:grid;
  gap:6px;
  color:#66776e;
  font-size:10px;
  font-weight:800;
}
.report-controls select,
.report-controls input{
  min-height:42px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  padding:8px 10px;
  color:var(--text);
}
.report-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.report-card{min-width:0}
.report-card-wide{grid-column:1/-1}
.report-balance-state,
.report-net-income{
  flex:none;
  border-radius:999px;
  padding:5px 8px;
  background:#eef2ef;
  color:#64736b;
  font-size:8px;
  font-weight:900;
  letter-spacing:.05em;
}
.report-balance-state.ok{background:#e8f7ef;color:#087c53}
.report-balance-state.bad{background:#ffebeb;color:#b33737}
.report-table .num{text-align:right;font-variant-numeric:tabular-nums}
.report-table tfoot td{
  border-top:2px solid #dfe8e2;
  font-weight:900;
  background:#fafcfb;
}
.report-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:14px;
}
.report-summary>div{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid #e5ece8;
  border-radius:12px;
  background:#fafcfb;
}
.report-summary span{font-size:10px;color:var(--muted)}
.report-summary b{font-size:17px;letter-spacing:-.02em}
.balance-sheet-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.balance-section{
  border:1px solid #e4ebe7;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.balance-section-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 13px;
  background:#f6faf7;
  border-bottom:1px solid #e4ebe7;
}
.balance-section-head b{font-size:12px}
.balance-section-head strong{font-size:12px;color:#087c53}
.balance-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 13px;
  border-bottom:1px solid #edf2ef;
  font-size:11px;
}
.balance-line:last-child{border-bottom:0}
.balance-line span{color:#5d6d64;min-width:0}
.balance-line b{white-space:nowrap}
.balance-empty{padding:14px;color:var(--muted);font-size:11px}
.report-disclaimer{
  margin-top:14px;
  color:#7b8a82;
  font-size:10px;
  line-height:1.5;
}
.planned-inline-note{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px dashed #dbe4df;
  border-radius:12px;
  color:#6d7c74;
  background:#fafcfb;
  font-size:11px;
}
.planned-inline-note b{color:#42544a}
@media(max-width:1050px){
  .report-controls{grid-template-columns:1fr 1fr}
  .report-controls button{justify-self:start}
  .report-grid{grid-template-columns:1fr}
  .report-card-wide{grid-column:auto}
  .balance-sheet-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .report-controls{grid-template-columns:1fr}
  .report-summary{grid-template-columns:1fr}
}

/* v1.1 brand + restored accountant model */
.brand-full{
  display:flex!important;
  align-items:center;
  padding:0!important;
  background:transparent!important;
}
.brand-full>img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.login-hero-brand.brand-full{
  width:min(360px,72%);
  margin-bottom:24px;
}
.login-panel-brand.brand-full-small{
  width:220px;
  margin-bottom:18px;
}
.sidebar-brand-full{
  min-height:58px;
  padding:0 4px 14px!important;
  position:relative;
}
.sidebar-brand-full>img{
  width:215px;
  max-width:calc(100% - 30px);
}
.sidebar-brand-full .close-nav{
  margin-left:auto;
  flex:none;
}
.login-accountant-model{
  display:block!important;
  position:absolute!important;
  right:clamp(20px,4vw,56px)!important;
  bottom:0!important;
  width:clamp(260px,34vw,390px)!important;
  height:min(68vh,610px)!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center top!important;
  border-radius:30px 30px 0 0!important;
  box-shadow:0 28px 70px #063d2b55!important;
  border:1px solid #ffffff30!important;
  opacity:1!important;
  z-index:1!important;
}
.login-hero-brand,.login-hero-copy,.login-hero-foot{position:relative;z-index:2}
.login-hero-copy{max-width:min(610px,58%)!important}
@media(max-width:1180px){
  .login-accountant-model{width:300px!important;opacity:.82!important}
  .login-hero-copy{max-width:62%!important}
}
@media(max-width:1050px){
  .login-accountant-model{width:235px!important;height:430px!important;opacity:.62!important}
  .login-hero-copy{max-width:70%!important}
}
@media(max-width:640px){
  .login-accountant-model{display:none!important}
  .login-hero-copy{max-width:100%!important}
  .login-hero-brand.brand-full{width:min(300px,86%)}
}

/* v1.2 login — align with approved split-screen mockup */
.login-screen{
  grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr)!important;
  background:#f7f9f8!important;
}
.login-hero{
  min-height:100vh!important;
  background:#f5f7f6!important;
  color:#172536!important;
  overflow:hidden!important;
}
.login-hero:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  width:auto!important;height:auto!important;
  border-radius:0!important;
  background:
    radial-gradient(circle at 14% 18%,#ffffff 0 18%,transparent 43%),
    linear-gradient(90deg,#fafbfa 0%,#f7f8f7 42%,#eef2ef 100%)!important;
  z-index:0!important;
}
.login-hero:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  width:auto!important;height:auto!important;
  border-radius:0!important;
  background:linear-gradient(90deg,#f8faf9 0%,#f8faf9ee 34%,#f8faf970 52%,transparent 70%)!important;
  z-index:1!important;
  pointer-events:none!important;
}
.login-hero-inner{
  min-height:100vh!important;
  padding:48px clamp(38px,5.2vw,76px) 38px!important;
  z-index:2!important;
}
.login-hero-brand.brand-full{
  width:min(350px,43%)!important;
  margin:0!important;
  z-index:4!important;
}
.login-hero-brand.brand-full>img{width:100%!important}
.login-accountant-model{
  display:block!important;
  position:absolute!important;
  right:-1px!important;
  bottom:0!important;
  width:56%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center top!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  opacity:1!important;
  z-index:1!important;
}
.login-hero-copy{
  margin:auto 0!important;
  width:46%!important;
  max-width:470px!important;
  position:relative!important;
  z-index:4!important;
}
.login-hero-copy h1{
  margin:0 0 20px!important;
  font-size:clamp(42px,4.35vw,68px)!important;
  line-height:1.01!important;
  letter-spacing:-.045em!important;
  color:#172536!important;
}
.login-hero-copy h1 em{
  display:block;
  color:#07945e;
  font-style:normal;
}
.login-hero-copy>p{
  max-width:410px!important;
  color:#475569!important;
  font-size:16px!important;
  line-height:1.5!important;
}
.login-benefits{
  display:grid!important;
  gap:20px!important;
  margin-top:28px!important;
}
.login-benefit{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:center!important;
}
.login-benefit .benefit-icon{
  width:46px!important;
  height:46px!important;
  padding:0!important;
  border:2px solid #0a9f68!important;
  border-radius:13px!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:#0a8f5f!important;
  font-size:10px!important;
  font-weight:900!important;
}
.login-benefit div{display:grid;gap:3px}
.login-benefit b{font-size:14px;color:#172536}
.login-benefit small{font-size:11px;line-height:1.4;color:#5e6b78}
.login-hero-foot{
  position:relative!important;
  z-index:4!important;
  color:#172536!important;
}
.login-script-tagline{
  display:block;
  max-width:280px;
  font-size:22px!important;
  line-height:1.05;
  font-style:italic;
  font-weight:700!important;
  color:#152535!important;
}
.login-panel{
  min-height:100vh!important;
  background:#f7f9f8!important;
  padding:56px clamp(34px,5vw,78px)!important;
}
.login-card{
  width:min(500px,100%)!important;
  background:#fff!important;
  border:1px solid #e7ece9!important;
  border-radius:22px!important;
  box-shadow:0 20px 55px #17372712!important;
  padding:42px 36px!important;
}
.login-panel-brand.brand-full-small{display:none!important}
.login-panel-kicker{margin-bottom:14px!important}
.login-card h2{font-size:32px!important;margin-bottom:8px!important}
.login-card>p{font-size:14px!important;margin-bottom:30px!important}
.login-card input{
  min-height:56px!important;
  background:#fff!important;
  border-radius:13px!important;
}
.login-submit{
  min-height:54px!important;
  border-radius:13px!important;
  font-size:15px!important;
}
.login-security-note{margin-top:28px!important}

@media(max-width:1180px){
  .login-accountant-model{width:53%!important;opacity:1!important}
  .login-hero-copy{width:50%!important;max-width:440px!important}
  .login-hero-brand.brand-full{width:min(320px,46%)!important}
}
@media(max-width:1050px){
  .login-screen{grid-template-columns:1fr!important}
  .login-hero{min-height:720px!important}
  .login-hero-inner{min-height:720px!important}
  .login-accountant-model{width:50%!important;height:100%!important;opacity:1!important}
  .login-hero-copy{width:52%!important;max-width:480px!important}
  .login-panel{min-height:auto!important;padding:48px 24px!important}
}
@media(max-width:700px){
  .login-hero{min-height:auto!important}
  .login-hero-inner{min-height:auto!important;padding:32px 24px 38px!important}
  .login-accountant-model{display:none!important}
  .login-hero-copy{width:100%!important;max-width:100%!important;margin:54px 0 42px!important}
  .login-hero-brand.brand-full{width:min(300px,78%)!important}
  .login-hero-copy h1{font-size:44px!important}
  .login-hero-foot{margin-top:8px}
  .login-card{padding:30px 22px!important}
}


/* v1.3 active accounting modules (v0.8-v0.14 backend) */
.section-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
.module-controls{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr));
  gap:12px;
  align-items:end;
  margin-bottom:18px;
}
.module-controls label,
.compact-form label{
  display:grid;
  gap:6px;
  color:#66776e;
  font-size:10px;
  font-weight:800;
}
.module-controls input,
.module-controls select,
.compact-form input,
.compact-form select,
.compact-form textarea{
  width:100%;
  min-height:42px;
}
.tax-controls{grid-template-columns:repeat(5,minmax(135px,1fr)) auto}
.bank-controls{grid-template-columns:minmax(180px,1.1fr) repeat(2,minmax(130px,.75fr)) auto minmax(180px,1fr) auto}
.metric-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:0 0 18px;
}
.tax-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.metric-grid>.panel{padding:18px}
.metric-grid h3{
  margin:6px 0 4px;
  font-size:23px;
  letter-spacing:-.025em;
}
.module-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:18px;
}
.compact-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0 0 16px;
  padding:14px;
  border:1px solid #e5ece8;
  border-radius:14px;
  background:#fafcfb;
}
.compact-form .full{grid-column:1/-1}
.bill-line-labels,
.bill-line{
  display:grid;
  grid-template-columns:minmax(170px,1.35fr) 80px 120px minmax(190px,1.2fr) 110px 38px;
  gap:8px;
  align-items:center;
}
.bill-line-labels{
  padding:0 2px 7px;
  color:#7b8a82;
  font-size:9px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.bill-line{margin-bottom:8px}
.bill-line input,
.bill-line select{min-width:0}
.payroll-line-card{
  display:grid;
  gap:12px;
  padding:14px;
  margin-bottom:12px;
  border:1px solid #e3ebe6;
  border-radius:14px;
  background:#fafcfb;
}
.payroll-line-head{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto;
  align-items:center;
  gap:10px;
}
.payroll-net{
  font-size:12px;
  font-weight:900;
  color:#087c53;
  white-space:nowrap;
}
.payroll-amount-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(125px,1fr));
  gap:9px;
}
.payroll-amount-grid label{
  display:grid;
  gap:5px;
  color:#6f7d75;
  font-size:9px;
  font-weight:800;
}
.payroll-amount-grid input{min-width:0}
.table-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.primary.small,.ghost.small{
  padding:7px 9px;
  min-height:0;
  font-size:10px;
  border-radius:9px;
}
.file-action{
  display:flex!important;
  min-height:42px;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border:1px dashed #cbd8d1;
  border-radius:11px;
  background:#fafcfb;
  color:#5d6d64!important;
  cursor:pointer;
}
.file-action input{display:none}
.table-summary{
  padding:10px 12px;
  border-bottom:1px solid #e6ece8;
  color:#65756c;
  font-size:10px;
  font-weight:800;
  background:#fafcfb;
}
.template-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;
  gap:14px;
  align-items:center;
  padding:13px 0;
  border-bottom:1px solid #edf2ef;
}
.template-card:last-child{border-bottom:0}
.template-card>div:first-child{display:grid;gap:3px}
.template-item-preview{
  display:grid;
  gap:3px;
  color:#697970;
  font-size:10px;
}
.compact-cards{display:block}
.task-status-select{
  min-width:120px;
  min-height:34px;
  padding:6px 8px;
}
.subtable-title{
  margin:16px 0 8px;
  color:#33473d;
  font-size:12px;
}
.status.recorded,.status.matched,.status.done{background:#e8f7ef;color:#087c53}
.status.paid{background:#e7f1ff;color:#235f9d}
.status.inactive,.status.ignored{background:#f0f2f1;color:#77847d}
.status.unmatched,.status.pending{background:#fff4d8;color:#916400}
.status.in_progress{background:#edf2ff;color:#405ca8}

@media(max-width:1180px){
  .tax-controls,.bank-controls{grid-template-columns:repeat(3,minmax(150px,1fr))}
  .tax-metric-grid{grid-template-columns:1fr 1fr}
  .payroll-amount-grid{grid-template-columns:repeat(2,minmax(125px,1fr))}
}
@media(max-width:900px){
  .module-two-col{grid-template-columns:1fr}
  .metric-grid{grid-template-columns:1fr}
  .tax-metric-grid{grid-template-columns:1fr}
  .bill-line-labels{display:none}
  .bill-line{
    grid-template-columns:1fr 85px 110px;
    padding:12px;
    border:1px solid #e5ece8;
    border-radius:12px;
    background:#fafcfb;
  }
  .bill-line .bill-account{grid-column:1/3}
  .bill-line .line-amount{justify-self:end}
  .template-card{grid-template-columns:1fr}
  .template-card button{justify-self:start}
}
@media(max-width:640px){
  .section-actions{justify-content:flex-start}
  .module-controls,.tax-controls,.bank-controls{grid-template-columns:1fr}
  .compact-form{grid-template-columns:1fr}
  .compact-form .full{grid-column:auto}
  .payroll-line-head{grid-template-columns:1fr}
  .payroll-amount-grid{grid-template-columns:1fr 1fr}
  .bill-line{grid-template-columns:1fr 1fr}
  .bill-line .bill-desc,.bill-line .bill-account{grid-column:1/-1}
}


/* === ToolDucky Accounting login design — owner-provided 2026-09-20 === */
#loginScreen {
  --td-navy:#10253f;--td-green:#04965c;--td-green-deep:#057a4c;--td-ink-soft:#526174;--td-line:#dde5e8;--td-surface:#f7f9f9;
  margin:0;min-width:320px;font-family:"DM Sans",sans-serif;color:var(--td-navy);
}
#loginScreen,#loginScreen *{box-sizing:border-box}
#loginScreen.td-login-page{min-height:100vh;background:#f8faf9}
#loginScreen.hidden{display:none!important}
#loginScreen .td-login-grid{width:100%;min-height:100vh;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(400px,.82fr)}
#loginScreen .td-login-hero{position:relative;isolation:isolate;overflow:hidden;min-height:100vh;background:#f8faf9}
#loginScreen .td-login-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 16% 78%,rgba(4,150,92,.07),transparent 21%)}
#loginScreen .td-login-hero__inner{position:relative;width:100%;max-width:900px;min-height:100vh;margin:0 auto;padding:34px clamp(28px,5vw,72px);display:flex;flex-direction:column}
#loginScreen .td-login-hero__brand{position:relative;z-index:2;display:inline-flex;flex-direction:column;width:fit-content;line-height:1}
#loginScreen .td-login-hero__logo{display:block;width:clamp(190px,24vw,285px);height:auto;max-height:96px;object-fit:contain;object-position:left center}
#loginScreen .td-login-hero__content{position:relative;z-index:2;width:44%;min-width:310px;margin-top:clamp(58px,12vh,128px)}
#loginScreen .td-login-hero__title{max-width:460px;margin:0;color:#10253f;font-size:clamp(31px,3.25vw,48px);font-weight:700;letter-spacing:-.052em;line-height:1.08}
#loginScreen .td-login-hero__title-emphasis{color:#04965c}
#loginScreen .td-login-hero__description{max-width:390px;margin:22px 0 0;color:#526174;font-size:15px;line-height:1.58}
#loginScreen .td-login-hero__features{display:grid;gap:15px;margin:31px 0 0}
#loginScreen .td-login-hero__feature{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}
#loginScreen .td-login-hero__feature-icon{width:32px;height:32px;display:grid;place-items:center;color:#04965c;background:#fff;border:1px solid #b9dfcd;border-radius:9px;box-shadow:0 4px 12px rgba(16,37,63,.05);font-size:10px;font-weight:800}
#loginScreen .td-login-hero__feature-title{display:block;color:#10253f;font-size:14px;font-weight:700;line-height:1.25}
#loginScreen .td-login-hero__feature-copy{display:block;margin-top:3px;color:#637184;font-size:12px;line-height:1.4}
#loginScreen .td-login-hero__image-wrap{position:absolute;z-index:1;top:0;right:0;width:58%;height:100%;overflow:hidden;pointer-events:none}
#loginScreen .td-login-hero__image-wrap:before{content:"";position:absolute;top:0;bottom:0;left:0;width:7%;z-index:1;background:linear-gradient(90deg,#f8faf9 0%,rgba(248,250,249,.34) 42%,rgba(248,250,249,0) 100%)}
#loginScreen .td-login-hero__image-wrap:after{content:"";position:absolute;inset:auto 0 0;z-index:1;height:18%;background:linear-gradient(to top,rgba(248,250,249,.68),transparent)}
#loginScreen .td-login-hero__image{width:100%;height:100%;object-fit:cover;object-position:56% center;filter:saturate(.88) brightness(1.05)}
#loginScreen .td-login-hero__footer-note{position:relative;z-index:2;width:44%;min-width:310px;margin-top:auto;padding-top:36px;color:#748191;font-size:11px;line-height:1.4}
#loginScreen .td-login-form-area{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:34px;background:#fff}
#loginScreen .td-login-form-slot{width:100%;max-width:430px;padding:clamp(28px,4vw,44px);background:#fff;border:1px solid #e7ecee;border-radius:16px;box-shadow:0 18px 46px rgba(16,37,63,.09)}
#loginScreen .td-login-form-slot__eyebrow{display:inline-flex;align-items:center;gap:7px;margin:0 0 18px;color:#04965c;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#loginScreen .td-login-form-slot__eyebrow:before{width:7px;height:7px;content:"";border-radius:999px;background:#04965c}
#loginScreen .td-login-form-slot__title{margin:0;color:#10253f;font-size:28px;font-weight:700;letter-spacing:-.04em;line-height:1.12}
#loginScreen .td-login-form-slot__copy{margin:10px 0 26px;color:#667587;font-size:14px;line-height:1.55}
#loginScreen .td-auth-form{display:grid;gap:14px}
#loginScreen .td-auth-label{display:grid;gap:7px;color:#34485d;font-size:12px;font-weight:600}
#loginScreen .td-auth-input-wrap{position:relative}
#loginScreen .td-auth-input{width:100%;height:46px;padding:0 13px;color:#10253f;background:#fff;border:1px solid #dde5e8;border-radius:9px;font:inherit;outline:none;transition:.18s}
#loginScreen .td-auth-input:focus{border-color:#49ad81;box-shadow:0 0 0 3px rgba(4,150,92,.10)}
#loginScreen .td-password-input{padding-right:66px}
#loginScreen .td-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#526174;font:inherit;font-size:11px;font-weight:700;cursor:pointer;padding:7px}
#loginScreen .td-auth-options{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:-1px}
#loginScreen .td-auth-checks{display:flex;gap:14px;flex-wrap:wrap}
#loginScreen .td-check{display:inline-flex;align-items:center;gap:7px;color:#526174;font-size:11px;cursor:pointer}
#loginScreen .td-check input{width:15px;height:15px;accent-color:#04965c;margin:0}
#loginScreen .td-auth-link{border:0;background:transparent;color:#04965c;font:inherit;font-size:11px;font-weight:700;padding:0;cursor:pointer}
#loginScreen .td-auth-submit{width:100%;height:46px;border:0;border-radius:9px;background:#04965c;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 8px 18px rgba(4,150,92,.16)}
#loginScreen .td-auth-submit:hover{background:#057a4c}
#loginScreen .td-auth-submit:disabled{opacity:.65;cursor:wait}
#loginScreen .td-auth-error,#loginScreen .td-auth-success{padding:10px 11px;border-radius:8px;font-size:11px;line-height:1.45}
#loginScreen .td-auth-error{background:#fff0f0;color:#a83b3b;border:1px solid #f0cccc}
#loginScreen .td-auth-success{background:#edf8f1;color:#39624f;border:1px solid #cfe8da}
#loginScreen .td-auth-divider{display:flex;align-items:center;gap:10px;margin:4px 0;color:#8a96a2;font-size:10px;text-transform:uppercase;letter-spacing:.07em}
#loginScreen .td-auth-divider:before,#loginScreen .td-auth-divider:after{content:"";height:1px;background:#e6ecee;flex:1}
#loginScreen .td-google-btn,#loginScreen .td-signup-btn{height:44px;border-radius:9px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
#loginScreen .td-google-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;color:#34485d;border:1px solid #dde5e8}
#loginScreen .td-google-btn[disabled]{cursor:not-allowed;color:#8b96a2;background:#f7f9f9}
#loginScreen .td-google-mark{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;font-weight:800;color:#4285f4}
#loginScreen .td-google-note{margin:7px 0 0;color:#84909c;font-size:9.5px;line-height:1.35;text-align:center}
#loginScreen .td-signup-row{display:flex;align-items:center;justify-content:center;gap:6px;color:#748191;font-size:11px;margin-top:2px}
#loginScreen .td-signup-btn{width:auto;height:auto;padding:0;border:0;background:transparent;color:#04965c}
#loginScreen .td-auth-panel{margin-top:14px;padding:14px;border:1px solid #dde5e8;border-radius:10px;background:#fbfdfc}
#loginScreen .td-auth-panel.hidden,#loginScreen .hidden{display:none!important}
#loginScreen .td-auth-panel h3{margin:0 0 5px;font-size:14px;color:#10253f}
#loginScreen .td-auth-panel p{margin:0 0 12px;color:#667587;font-size:11px;line-height:1.5}
#loginScreen .td-auth-panel form{display:grid;gap:10px}
#loginScreen .td-auth-panel .td-auth-submit{height:40px;font-size:12px}
#loginScreen .td-form-actions{display:flex;gap:8px}
#loginScreen .td-form-actions .td-auth-submit{flex:1}
#loginScreen .td-secondary-btn{height:40px;border:1px solid #dde5e8;border-radius:8px;background:#fff;color:#526174;font:inherit;font-size:11px;font-weight:700;cursor:pointer;padding:0 12px}
#loginScreen .td-login-form-slot__support{margin:18px 0 0;color:#84909c;font-size:10px;line-height:1.5;text-align:center}
#loginScreen .td-login-security{margin:14px 0 0;display:flex;justify-content:center;gap:6px;color:#84909c;font-size:10px;line-height:1.45;text-align:center}
@media(max-width:1023px){
  #loginScreen .td-login-grid{grid-template-columns:1fr}
  #loginScreen .td-login-hero{min-height:680px}
  #loginScreen .td-login-hero__inner{max-width:none}
  #loginScreen .td-login-hero__content,#loginScreen .td-login-hero__footer-note{width:50%}
  #loginScreen .td-login-hero__image-wrap{width:56%}
  #loginScreen .td-login-form-area{min-height:auto}
}
@media(max-width:767px){
  #loginScreen .td-login-grid{display:block}
  #loginScreen .td-login-hero{min-height:auto}
  #loginScreen .td-login-hero__inner{min-height:auto;padding:30px 24px 34px}
  #loginScreen .td-login-hero__content{width:100%;min-width:0;max-width:500px;margin-top:44px}
  #loginScreen .td-login-hero__image-wrap{position:relative;top:auto;right:auto;width:calc(100% + 48px);height:330px;margin:30px -24px -34px}
  #loginScreen .td-login-hero__image-wrap:before{top:0;right:0;bottom:auto;left:0;width:auto;height:12%;background:linear-gradient(to bottom,#f8faf9 0%,rgba(248,250,249,.42) 42%,rgba(248,250,249,0) 100%)}
  #loginScreen .td-login-hero__image{object-position:center 30%}
  #loginScreen .td-login-hero__footer-note{display:none}
  #loginScreen .td-login-form-area{min-height:auto;padding:28px 20px 42px}
  #loginScreen .td-login-form-slot{max-width:540px}
}

/* v1.4 differentiation layer */
.document-upload-panel{margin-bottom:18px}
.wide-control{grid-column:span 2}
.whitelabel-preview{
  --preview-accent:#0a8f5f;
  display:grid;
  gap:16px;
  min-height:300px;
  padding:24px;
  border:1px solid #e4ebe7;
  border-radius:16px;
  background:linear-gradient(145deg,#fbfdfc,#f3f7f5);
}
.whitelabel-preview>span{color:var(--preview-accent);font-size:18px;font-weight:900}
.preview-sheet{
  min-height:160px;
  padding:20px;
  border-left:4px solid var(--preview-accent);
  border-radius:10px;
  background:#fff;
  box-shadow:0 10px 26px #1637260d;
}
.preview-sheet b{font-size:18px}
.preview-sheet p{color:#7a8981;font-size:11px}
.whitelabel-preview>small{color:#718078;line-height:1.5}
.warning-note{margin-bottom:18px;border-color:#ead8a3;background:#fffaf0;color:#765b13}
@media(max-width:700px){.wide-control{grid-column:auto}}

/* Preserve native model sharpness: do not upscale the portrait beyond its source. */
#loginScreen .td-login-hero__image-wrap{display:flex;align-items:flex-end;justify-content:flex-end;padding-right:clamp(14px,3vw,42px)}
#loginScreen .td-login-hero__image{
  width:auto!important;
  height:min(72vh,580px)!important;
  max-width:100%;
  object-fit:contain!important;
  object-position:right bottom!important;
  filter:none!important;
}
@media(max-width:1023px){
  #loginScreen .td-login-hero__image{height:min(64vh,580px)!important}
}
@media(max-width:767px){
  #loginScreen .td-login-hero__image-wrap{padding-right:0;justify-content:center}
  #loginScreen .td-login-hero__image{height:330px!important;width:auto!important;max-width:100%}
}

/* Restore the original large hero-model scale, now using the upscaled portrait asset. */
#loginScreen .td-login-hero__image-wrap{display:block!important;padding-right:0!important}
#loginScreen .td-login-hero__image{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:56% center!important;
  filter:none!important;
}
@media(max-width:1023px){
  #loginScreen .td-login-hero__image{width:100%!important;height:100%!important}
}
@media(max-width:767px){
  #loginScreen .td-login-hero__image-wrap{display:block!important;padding-right:0!important}
  #loginScreen .td-login-hero__image{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center 30%!important}
}

/* v1.7 Team & Access / RBAC */
.settings-team-panel{grid-column:1/-1}
.team-self-summary{display:grid;gap:8px;padding:4px 0}
.role-pill{display:inline-flex;width:max-content;align-items:center;padding:5px 9px;border-radius:999px;background:#edf7f2;color:#087c53;font-size:10px;font-weight:900}
.team-account-type{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px 0 18px;border-bottom:1px solid #e7eee9}
.team-account-type>div:first-child{max-width:620px}
.team-account-controls{display:flex;gap:8px;align-items:center}
.team-account-controls select{min-width:170px}
.team-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:16px 0}
.team-section{padding:18px 0 0;border-top:1px solid #edf2ef;margin-top:12px}
.team-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.team-section-title{font-size:13px;font-weight:900;color:#304239}
.team-member-list{display:grid;gap:8px}
.team-member-row{display:grid;grid-template-columns:minmax(200px,1.4fr) minmax(140px,.85fr) minmax(170px,1.2fr) auto auto;gap:12px;align-items:center;padding:12px;border:1px solid #e5ece8;border-radius:13px;background:#fff}
.team-member-row.inactive{opacity:.68;background:#fafbfa}
.team-member-ident{display:flex;align-items:center;gap:10px;min-width:0}
.team-member-ident>div{display:grid;gap:2px;min-width:0}
.team-member-ident small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eef5f1;color:#087c53;font-size:12px;font-weight:900;flex:0 0 auto}
.team-role-cell{display:grid;gap:4px}
.warning-text{color:#a16a00;font-size:9px;font-weight:800}
.team-scope-cell{font-size:10px;color:#617269;line-height:1.45}
.team-editor{margin:14px 0;padding:16px;border:1px solid #cfe0d7;border-radius:15px;background:#f8fbf9}
.team-editor h4{margin:0 0 12px;font-size:14px;color:#263b31}
.team-company-access{display:grid;gap:9px;padding:12px;border:1px solid #e1ebe5;border-radius:12px;background:#fff}
.team-company-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px;max-height:190px;overflow:auto}
.team-company-access .check,.permission-item{display:flex!important;align-items:center;gap:7px;font-size:10px!important;font-weight:700!important;color:#53665c!important}
.team-company-access input[type=checkbox],.permission-item input{width:auto;min-height:0}
.team-form-label{font-size:10px;font-weight:900;color:#53665c;text-transform:uppercase;letter-spacing:.04em}
.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:12px;border:1px solid #e1ebe5;border-radius:12px;background:#fff}
.custom-role-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.custom-role-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e5ece8;border-radius:12px;background:#fff}
.custom-role-card>div{display:grid;gap:3px}
.team-credential-box{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:center;padding:14px;margin-bottom:14px;border:1px solid #b9dfcd;border-radius:13px;background:#f2fbf6}
.team-credential-box>div{grid-column:1/-1}
.team-temp-password{padding:8px 10px;border-radius:9px;background:#163429;color:#fff;font-size:12px;letter-spacing:.04em}
.status.active{background:#e8f7ef;color:#087c53}

@media(max-width:1100px){
  .team-member-row{grid-template-columns:1.2fr .8fr 1fr}
  .team-member-row>.status,.team-member-row>.table-actions{grid-column:auto}
  .team-company-checks,.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .team-account-type{align-items:stretch;flex-direction:column}
  .team-account-controls{align-items:stretch;flex-direction:column}
  .team-account-controls select{width:100%}
  .team-member-row{grid-template-columns:1fr}
  .team-company-checks,.permission-grid,.custom-role-list{grid-template-columns:1fr}
  .team-credential-box{grid-template-columns:1fr}
}


/* ===== Public Accounting Product Site ===== */
#loginScreen{background:#fff;color:#10253f}
#loginScreen .td-public-shell{width:min(1180px,calc(100% - 48px));margin:0 auto}
#loginScreen .td-public-nav{position:sticky;top:0;z-index:35;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid #e6ece9}
#loginScreen .td-public-nav__inner{width:min(1180px,calc(100% - 48px));height:72px;margin:0 auto;display:flex;align-items:center;gap:28px}
#loginScreen .td-public-nav__brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#10253f;font-weight:800;font-size:16px}
#loginScreen .td-public-nav__brand img{width:116px;height:38px;object-fit:contain;object-position:left center}
#loginScreen .td-public-nav__brand span{padding-left:9px;border-left:1px solid #d9e3df;color:#506274;font-weight:700}
#loginScreen .td-public-nav__links{display:flex;align-items:center;justify-content:center;gap:28px;margin-left:auto}
#loginScreen .td-public-nav__links a,#loginScreen .td-public-footer a{color:#536575;text-decoration:none;font-weight:650}
#loginScreen .td-public-nav__links a:hover,#loginScreen .td-public-footer a:hover{color:#048a58}
#loginScreen .td-public-nav__cta{margin-left:8px;padding:10px 15px;border-radius:10px;background:#07965e;color:#fff;text-decoration:none;font-weight:750;box-shadow:0 8px 20px rgba(7,150,94,.18)}
#loginScreen .td-public-nav__cta:hover{background:#067f51}

#loginScreen .td-public-proof{padding:92px 0 82px;background:#fff}
#loginScreen .td-public-kicker{margin:0 0 14px;color:#078a57;text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:800}
#loginScreen .td-public-proof h2,#loginScreen .td-public-section h2,#loginScreen .td-public-final-cta h2{margin:0;color:#10253f;font-size:clamp(32px,4.2vw,54px);line-height:1.06;letter-spacing:-.045em}
#loginScreen .td-public-lead{max-width:760px;margin:22px 0 38px;color:#5c6c7d;font-size:18px;line-height:1.65}
#loginScreen .td-public-proof-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
#loginScreen .td-public-proof-grid article{position:relative;padding:24px 22px;border:1px solid #e0e9e5;border-radius:18px;background:#fbfdfc;box-shadow:0 8px 26px rgba(16,37,63,.04)}
#loginScreen .td-public-proof-grid article:before{content:"";display:block;width:34px;height:4px;border-radius:999px;background:#07965e;margin-bottom:18px}
#loginScreen .td-public-proof-grid b{display:block;margin-bottom:8px;color:#10253f;font-size:16px}
#loginScreen .td-public-proof-grid span{display:block;color:#667789;line-height:1.55}

#loginScreen .td-public-section{padding:96px 0;background:#fff}
#loginScreen .td-public-section--soft{background:#f5f9f7}
#loginScreen .td-public-section--dark{background:#0e2338;color:#e7f0ed}
#loginScreen .td-public-section-head{max-width:760px;margin-bottom:42px}
#loginScreen .td-public-section-head--center{margin-left:auto;margin-right:auto;text-align:center}
#loginScreen .td-public-section-head>span{display:block;margin-bottom:12px;color:#07965e;text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:800}
#loginScreen .td-public-section-head p{margin:18px 0 0;color:#657588;font-size:17px;line-height:1.65}
#loginScreen .td-public-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
#loginScreen .td-public-feature-card{position:relative;min-height:340px;padding:25px;border:1px solid #dde8e3;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(16,37,63,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
#loginScreen .td-public-feature-card:hover{transform:translateY(-4px);border-color:#a8d7c4;box-shadow:0 18px 38px rgba(16,37,63,.095)}
#loginScreen .td-public-feature-icon{width:43px;height:43px;display:grid;place-items:center;margin-bottom:22px;border-radius:13px;background:#eaf7f1;border:1px solid #c9e8d9;color:#078a57;font-weight:850;font-size:12px}
#loginScreen .td-public-feature-card h3{margin:0 0 10px;color:#10253f;font-size:19px;letter-spacing:-.02em}
#loginScreen .td-public-feature-card p{margin:0 0 18px;color:#68798a;line-height:1.58}
#loginScreen .td-public-feature-card ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
#loginScreen .td-public-feature-card li{position:relative;padding-left:18px;color:#425569;font-size:13px}
#loginScreen .td-public-feature-card li:before{content:"✓";position:absolute;left:0;color:#07965e;font-weight:900}

#loginScreen .td-public-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:14px;align-items:center;margin:48px 0}
#loginScreen .td-public-flow article{min-height:205px;padding:24px;border:1px solid #e0e8e5;border-radius:20px;background:#fff;box-shadow:0 9px 26px rgba(16,37,63,.05)}
#loginScreen .td-public-flow em{display:inline-grid;width:34px;height:34px;place-items:center;margin-bottom:25px;border-radius:999px;background:#07965e;color:#fff;font-style:normal;font-size:11px;font-weight:800}
#loginScreen .td-public-flow b,#loginScreen .td-public-flow span{display:block}
#loginScreen .td-public-flow b{margin-bottom:8px;color:#10253f;font-size:16px}
#loginScreen .td-public-flow span{color:#6b7a8a;line-height:1.55}
#loginScreen .td-public-flow-arrow{color:#63b492;font-size:25px;font-weight:800}
#loginScreen .td-public-outcome-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#loginScreen .td-public-outcome-grid article{padding:23px;border-radius:18px;background:#10253f;color:#fff}
#loginScreen .td-public-outcome-grid span{display:block;margin-bottom:7px;color:#8eb7a7;text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:800}
#loginScreen .td-public-outcome-grid b{display:block;color:#c6d2dc;font-size:13px;text-decoration:line-through;text-decoration-color:#7890a4;margin-bottom:12px}
#loginScreen .td-public-outcome-grid strong{display:block;color:#fff;font-size:16px;line-height:1.45}

#loginScreen .td-public-section--dark h2{color:#fff;font-size:clamp(30px,3.6vw,47px)}
#loginScreen .td-public-section--dark p{color:#aec0cb;font-size:16px;line-height:1.65}
#loginScreen .td-public-kicker--light{color:#73d4ae}
#loginScreen .td-public-split{display:grid;grid-template-columns:1fr 1fr;gap:24px}
#loginScreen .td-public-split>div{padding:38px;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:rgba(255,255,255,.035)}
#loginScreen .td-public-checks{display:grid;gap:10px;margin-top:24px}
#loginScreen .td-public-checks span{color:#dce8e3;font-weight:650}

#loginScreen .td-public-compare{overflow:hidden;border:1px solid #dce7e2;border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(16,37,63,.05)}
#loginScreen .td-public-compare>div{display:grid;grid-template-columns:180px 1fr;gap:28px;padding:18px 22px;border-bottom:1px solid #edf2f0}
#loginScreen .td-public-compare>div:last-child{border-bottom:0}
#loginScreen .td-public-compare span{color:#6d7d8c;font-weight:700}
#loginScreen .td-public-compare b{color:#21384d}
#loginScreen .td-public-compare__head{background:#10253f}
#loginScreen .td-public-compare__head span,#loginScreen .td-public-compare__head b{color:#fff}

#loginScreen .td-public-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
#loginScreen .td-public-trust-grid article{padding:24px;border-left:3px solid #07965e;background:#f8fbfa;border-radius:0 15px 15px 0}
#loginScreen .td-public-trust-grid b,#loginScreen .td-public-trust-grid span{display:block}
#loginScreen .td-public-trust-grid b{margin-bottom:8px;color:#10253f}
#loginScreen .td-public-trust-grid span{color:#667789;line-height:1.55}

#loginScreen .td-public-faq{background:#fbfcfc}
#loginScreen .td-public-faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#loginScreen .td-public-faq details{padding:18px 20px;border:1px solid #dfe8e4;border-radius:15px;background:#fff}
#loginScreen .td-public-faq summary{cursor:pointer;color:#183249;font-weight:750;font-size:15px}
#loginScreen .td-public-faq details p{margin:13px 0 2px;color:#657789;line-height:1.6}

#loginScreen .td-public-final-cta{padding:78px 0;background:linear-gradient(135deg,#07965e 0%,#075f46 100%);color:#fff}
#loginScreen .td-public-final-cta h2{color:#fff;max-width:700px}
#loginScreen .td-public-final-cta p{max-width:720px;margin:16px 0 0;color:#d4eee3;font-size:16px;line-height:1.6}
#loginScreen .td-public-final-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:40px}
#loginScreen .td-public-final-cta__actions{display:flex;gap:10px;flex:none;flex-wrap:wrap}
#loginScreen .td-public-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:10px;text-decoration:none;font-weight:800;cursor:pointer}
#loginScreen .td-public-btn--white{border:1px solid #fff;background:#fff;color:#075f46}
#loginScreen .td-public-btn--outline{border:1px solid rgba(255,255,255,.7);background:transparent;color:#fff}

#loginScreen .td-public-footer{padding:54px 0 22px;background:#081827;color:#c2cfd7}
#loginScreen .td-public-footer__inner{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}
#loginScreen .td-public-footer__inner>div{display:grid;align-content:start;gap:9px}
#loginScreen .td-public-footer img{width:150px;height:auto;filter:brightness(0) invert(1);opacity:.96}
#loginScreen .td-public-footer p{margin:4px 0 0;color:#8094a2}
#loginScreen .td-public-footer b{color:#fff;margin-bottom:4px}
#loginScreen .td-public-footer button{padding:0;border:0;background:none;color:#c2cfd7;text-align:left;font:inherit;font-weight:650;cursor:pointer}
#loginScreen .td-public-footer button:hover{color:#73d4ae}
#loginScreen .td-public-footer__legal{width:min(1180px,calc(100% - 48px));margin:40px auto 0!important;padding-top:20px;border-top:1px solid rgba(255,255,255,.08);font-size:11px;text-align:center}

@media(max-width:1100px){
  #loginScreen .td-public-feature-grid{grid-template-columns:repeat(2,1fr)}
  #loginScreen .td-public-proof-grid,#loginScreen .td-public-trust-grid{grid-template-columns:repeat(2,1fr)}
  #loginScreen .td-public-flow{grid-template-columns:1fr 1fr}
  #loginScreen .td-public-flow-arrow{display:none}
}
@media(max-width:760px){
  #loginScreen .td-public-shell,#loginScreen .td-public-nav__inner,#loginScreen .td-public-footer__legal{width:min(100% - 32px,1180px)}
  #loginScreen .td-public-nav__inner{height:62px}
  #loginScreen .td-public-nav__links{display:none}
  #loginScreen .td-public-nav__brand img{width:98px}
  #loginScreen .td-public-nav__brand span{display:none}
  #loginScreen .td-public-nav__cta{margin-left:auto;padding:9px 11px;font-size:12px}
  #loginScreen .td-public-proof,#loginScreen .td-public-section{padding:70px 0}
  #loginScreen .td-public-proof-grid,#loginScreen .td-public-feature-grid,#loginScreen .td-public-outcome-grid,#loginScreen .td-public-split,#loginScreen .td-public-trust-grid,#loginScreen .td-public-faq-grid,#loginScreen .td-public-flow{grid-template-columns:1fr}
  #loginScreen .td-public-feature-card{min-height:0}
  #loginScreen .td-public-compare>div{grid-template-columns:1fr;gap:6px}
  #loginScreen .td-public-final-cta__inner{display:grid}
  #loginScreen .td-public-final-cta__actions{width:100%}
  #loginScreen .td-public-final-cta__actions>*{flex:1}
  #loginScreen .td-public-footer__inner{grid-template-columns:1fr 1fr}
  #loginScreen .td-public-footer__inner>div:first-child{grid-column:1/-1}
}


/* Public trial + pricing */
#loginScreen .td-signup-row--trial{display:grid;gap:8px;margin-top:10px}
#loginScreen .td-signup-btn--trial{width:100%;height:auto;min-height:58px!important;padding:10px 18px!important;border:1px solid #078a57!important;border-radius:11px!important;background:#07965e!important;color:#fff!important;box-shadow:0 10px 24px rgba(7,150,94,.22);display:grid;place-items:center;gap:1px}
#loginScreen .td-signup-btn--trial:hover{background:#067f51!important}
#loginScreen .td-signup-btn--trial strong{font-size:16px}
#loginScreen .td-signup-btn--trial span{font-size:11px;font-weight:650;color:#d8f2e7}
#loginScreen .td-signup-row--trial small{color:#82909d;font-size:10px;text-align:center}
#loginScreen button.td-public-nav__cta{border:0;cursor:pointer;font:inherit}
#loginScreen .td-public-pricing{background:#f5f9f7}
#loginScreen .td-pricing-toggle{width:max-content;max-width:100%;margin:0 auto 30px;padding:5px;display:flex;gap:4px;border:1px solid #d8e5df;border-radius:12px;background:#fff}
#loginScreen .td-pricing-toggle button{border:0;border-radius:8px;background:transparent;color:#617283;padding:9px 15px;font:inherit;font-weight:750;cursor:pointer}
#loginScreen .td-pricing-toggle button.active{background:#10253f;color:#fff}
#loginScreen .td-pricing-toggle small{font-size:9px;margin-left:4px;color:#07965e}
#loginScreen .td-pricing-toggle button.active small{color:#89d8b8}
#loginScreen .td-pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:920px;margin:0 auto}
#loginScreen .td-pricing-card{position:relative;padding:34px;border:1px solid #dce7e2;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(16,37,63,.06)}
#loginScreen .td-pricing-card--featured{border:2px solid #07965e;box-shadow:0 18px 44px rgba(7,150,94,.12)}
#loginScreen .td-pricing-badge{display:inline-flex;margin-bottom:20px;padding:6px 9px;border-radius:999px;background:#e8f7f0;color:#078a57;text-transform:uppercase;letter-spacing:.07em;font-size:9px;font-weight:850}
#loginScreen .td-pricing-badge--dark{background:#edf1f5;color:#3c5266}
#loginScreen .td-pricing-card h3{margin:0;color:#10253f;font-size:25px;letter-spacing:-.03em}
#loginScreen .td-pricing-intro{min-height:46px;margin:9px 0 22px;color:#68798a;line-height:1.5}
#loginScreen .td-pricing-price{display:flex;align-items:flex-start;gap:3px;color:#10253f}
#loginScreen .td-pricing-price>span{font-size:20px;font-weight:800;margin-top:6px}
#loginScreen .td-pricing-price strong{font-size:46px;line-height:1;font-weight:800;letter-spacing:-.05em}
#loginScreen .td-pricing-price em{align-self:flex-end;margin:0 0 5px 4px;color:#7a8997;font-size:12px;font-style:normal}
#loginScreen .td-pricing-trial{margin:10px 0 18px;color:#078a57;font-size:12px;font-weight:750}
#loginScreen .td-pricing-cta{width:100%;min-height:48px;border:0;border-radius:10px;background:#07965e;color:#fff;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 9px 22px rgba(7,150,94,.18)}
#loginScreen .td-pricing-cta:hover{background:#067f51}
#loginScreen .td-pricing-cta--dark{background:#10253f;box-shadow:none}
#loginScreen .td-pricing-cta--dark:hover{background:#1a344d}
#loginScreen .td-pricing-card ul{margin:26px 0 0;padding:24px 0 0;border-top:1px solid #edf2f0;list-style:none;display:grid;gap:11px}
#loginScreen .td-pricing-card li{position:relative;padding-left:21px;color:#425569;font-size:13px}
#loginScreen .td-pricing-card li:before{content:"✓";position:absolute;left:0;color:#07965e;font-weight:900}
#loginScreen .td-pricing-note{max-width:820px;margin:22px auto 0;color:#7b8997;font-size:11px;line-height:1.55;text-align:center}
@media(max-width:760px){
 #loginScreen .td-pricing-grid{grid-template-columns:1fr}
 #loginScreen .td-pricing-card{padding:26px}
 #loginScreen .td-pricing-price strong{font-size:40px}
 #loginScreen .td-pricing-toggle{width:100%}
 #loginScreen .td-pricing-toggle button{flex:1;padding:9px 8px}
}


/* Public header now sits above the login hero. Keep the first screen at viewport height. */
@media(min-width:1024px){
  #loginScreen .td-login-grid,
  #loginScreen .td-login-hero,
  #loginScreen .td-login-hero__inner,
  #loginScreen .td-login-form-area{min-height:calc(100vh - 72px)}
}
#loginScreen #pricing{scroll-margin-top:84px}
@media(max-width:760px){
  #loginScreen #pricing{scroll-margin-top:72px}
}

/* Dedicated public pricing route + always-visible pricing nav */

#loginScreen .td-public-nav__pricing{
  color:#10253f;text-decoration:none;font-weight:750;padding:9px 12px;border-radius:9px;
  white-space:nowrap
}
#loginScreen .td-public-nav__pricing:hover,
#loginScreen .td-public-nav__pricing.active{color:#078a57;background:#eef8f3}
#loginScreen.td-pricing-route > .td-login-grid,
#loginScreen.td-pricing-route > section:not(#pricing){display:none!important}
#loginScreen.td-pricing-route #pricing{padding-top:64px}
@media(max-width:760px){
  #loginScreen .td-public-nav__inner{gap:10px}
  #loginScreen .td-public-nav__pricing{margin-left:auto;padding:8px 9px;font-size:12px}
  #loginScreen .td-public-nav__cta{margin-left:0}
  #loginScreen.td-pricing-route #pricing{padding-top:44px}
}
