/* ===========================================================================
   Hub — shared styles, restyled after "Beatrice" / "Matilda":
   a persistent dark-green sidebar with a single toggle "seal", warm cream
   content area, Fraunces for headings, Inter for body text, JetBrains Mono
   for numbers. Component classes (widget, btn, modal, cal-grid, etc.) are
   named to match Beatrice's own system so the whole app shares one language.
=========================================================================== */
:root{
  --bg:#F6F8F6;
  --panel:#FFFFFF;
  --ink:#182420;
  --ink-soft:#67766E;
  --ink-faint:#9AA89F;
  --brand:#1F5B3E;
  --brand-dark:#0F2B1F;
  --brand-tint:#E3EFE7;
  --accent:#2F7A50;
  --line:#E1E6E1;
  --line-strong:#CBD6CC;
  --success:#3F7A5C;
  --success-tint:#E4F0E9;
  --warn:#B5822A;
  --warn-tint:#FBF1DD;
  --danger:#AF3226;
  --danger-tint:#FBE7E3;
  --slot:#3D6E92;
  --slot-tint:#E4EDF4;
  --radius:12px;
  --radius-sm:8px;
  --shadow:0 1px 2px rgba(15,43,31,0.07), 0 8px 24px -12px rgba(15,43,31,0.18);
  --sidebar-w:250px;
  --sidebar-w-collapsed:64px;
}
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{font-family:'Fraunces',serif;}
button{font-family:inherit;}
input,select,textarea{font-family:inherit;}
a{color:inherit; text-decoration:none;}
::selection{background:var(--brand-tint);}

/* ---------------- Shell layout ---------------- */
.app-shell{display:flex; min-height:100vh;}
.main-col{flex:1; min-width:0; display:flex; flex-direction:column;}

/* ---------------- Sidebar (Beatrice-style) ---------------- */
.sidebar{
  width:var(--sidebar-w); flex-shrink:0; background:var(--brand-dark); color:#EAF2ED;
  display:flex; flex-direction:column; transition:width .2s ease;
  position:sticky; top:0; height:100vh; z-index:20;
}
.sidebar.collapsed{width:var(--sidebar-w-collapsed);}
.sidebar.collapsed .side-label, .sidebar.collapsed .side-section-title, .sidebar.collapsed .sync-text{display:none;}
.sidebar.collapsed .side-link, .sidebar.collapsed .side-quicknote{justify-content:center; padding-left:6px; padding-right:6px;}
.sidebar-top{display:flex; align-items:center; padding:16px 14px; border-bottom:1px solid rgba(255,255,255,0.1); flex-shrink:0;}
.seal{
  height:34px; width:auto; min-width:34px; border-radius:17px; padding:0 18px; box-sizing:border-box;
  background:radial-gradient(circle at 32% 28%, #2E8158, var(--brand) 70%);
  display:flex; align-items:center; justify-content:center; font-family:Georgia,'Times New Roman',serif; font-weight:700; font-size:16px;
  color:#fff; flex-shrink:0; box-shadow: inset 0 -2px 3px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.3);
  border:1px solid rgba(255,255,255,0.15); cursor:pointer; white-space:nowrap; overflow:hidden;
  transition: width .18s ease, padding .18s ease; letter-spacing:.3px; max-width:100%;
}
.seal:hover{filter:brightness(1.08);}
.sidebar.collapsed .seal{width:34px; min-width:34px; padding:0;}

.side-section{padding:10px 10px; flex-shrink:0;}
.side-section-title{
  font-size:10.5px; text-transform:uppercase; letter-spacing:.09em; color:#8FB09E; padding:6px 10px 4px;
  font-weight:600;
}
.side-link{
  display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; cursor:pointer;
  font-size:14px; color:#DCEAE1; white-space:nowrap; overflow:hidden;
}
.side-link:hover{background:rgba(255,255,255,0.07);}
.side-link.active{background:var(--brand); color:#fff;}
.icn{display:inline-flex; align-items:center; justify-content:center; width:1em; height:1em; font-size:16px; flex-shrink:0; vertical-align:-0.15em;}
.icn svg{width:1em; height:1em; display:block;}
.side-link .icn{width:16px; text-align:center; flex-shrink:0; opacity:.9; display:inline-flex;}
.side-link .icn svg{width:1em; height:1em;}
.side-link.home-btn{
  background:#fff; color:var(--brand-dark); border-radius:12px; padding:10px; margin-bottom:2px; font-weight:600;
}
.side-link.home-btn:hover{background:#fff; opacity:.92;}
.side-link.home-btn.active{background:#fff; color:var(--brand-dark);}
.sidebar-bottom{margin-top:auto; padding:12px 10px; border-top:1px solid rgba(255,255,255,0.1); flex-shrink:0;}
.sync-row{display:flex; align-items:center; gap:8px; padding:7px 10px; font-size:12.5px; color:#9FC2AC;}
.sidebar.collapsed .sync-row{justify-content:center; padding-left:0; padding-right:0;}
.sync-dot{width:7px; height:7px; border-radius:50%; background:#5FAE83; flex-shrink:0; box-shadow:0 0 0 3px rgba(95,174,131,0.18);}
.sync-dot.state-offline,.sync-dot.state-error{background:#D97B6C; box-shadow:0 0 0 3px rgba(217,123,108,0.18);}
.sync-dot.state-syncing,.sync-dot.state-reconnecting{background:#E0B45B; box-shadow:0 0 0 3px rgba(224,180,91,0.18);}
.sync-dot.state-local,.sync-dot.state-signed-out{background:#8FA79A; box-shadow:0 0 0 3px rgba(143,167,154,0.18);}

/* ---------------- Topbar & content ---------------- */
.topbar{
  display:flex; align-items:center; gap:14px; padding:16px 26px; background:var(--panel);
  border-bottom:1px solid var(--line); flex-wrap:wrap;
}
.topbar-title{font-family:'Fraunces',serif; font-size:21px; font-weight:600; margin:0;}
.topbar-sub{font-size:12.5px; color:var(--ink-soft); margin-top:3px;}
.topbar-spacer{flex:1;}

.content{padding:26px; max-width:1180px; margin:0 auto; width:100%;}

/* ---------------- Buttons ---------------- */
.btn{
  padding:8px 15px; border-radius:8px; border:1px solid var(--line-strong); background:#fff; color:var(--ink);
  font-size:13.5px; font-weight:500; cursor:pointer; display:inline-flex; align-items:center; gap:6px;
}
.btn:hover{border-color:var(--brand); color:var(--brand);}
.btn.primary{background:var(--brand); border-color:var(--brand); color:#fff;}
.btn.primary:hover{background:var(--brand-dark); color:#fff;}
.btn.danger{color:var(--danger); border-color:var(--danger-tint);}
.btn.danger:hover{background:var(--danger-tint); border-color:var(--danger);}
.btn.small{padding:5px 10px; font-size:12.5px;}
.icon-btn{
  width:30px; height:30px; border-radius:7px; border:1px solid var(--line); background:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; color:var(--ink-soft); font-size:14px;
}
.icon-btn:hover{border-color:var(--brand); color:var(--brand);}

/* ---------------- Forms ---------------- */
.form-row{margin-bottom:14px;}
.form-row label{display:block; font-size:12px; font-weight:600; color:var(--ink-soft); margin-bottom:5px; text-transform:uppercase; letter-spacing:.04em;}
.form-row input, .form-row select, .form-row textarea{
  width:100%; padding:9px 11px; border:1px solid var(--line-strong); border-radius:8px; font-size:14px; background:#fff; font-family:inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{outline:none; border-color:var(--brand);}
.form-row textarea{resize:vertical; min-height:60px;}
.row-2{display:flex; gap:10px;}
.row-2 .form-row{flex:1;}
.toggle-row{display:flex; align-items:center; gap:7px; font-size:13px; font-weight:400; color:var(--ink); margin-bottom:12px;}
.toggle-row label{margin:0; text-transform:none; font-weight:500; color:var(--ink); font-size:13px;}
.toggle-row input{width:auto;}

/* ---------------- Chips / swatches ---------------- */
.chip-row{display:flex; gap:8px; flex-wrap:wrap;}
.chip{
  padding:6px 12px; border-radius:999px; border:1px solid var(--line-strong); background:#fff;
  font-size:12.5px; font-weight:600; cursor:pointer; color:var(--ink-soft); display:flex; align-items:center; gap:6px;
}
.chip.active{background:var(--brand); color:#fff; border-color:var(--brand);}
.chip-dot{width:8px; height:8px; border-radius:50%;}
.color-swatches{display:flex; gap:7px; flex-wrap:wrap;}
.swatch{width:24px; height:24px; border-radius:50%; cursor:pointer; border:2px solid transparent; box-shadow:0 0 0 1px var(--line-strong);}
.swatch.sel{border-color:var(--ink);}
.icon-picker{display:flex; gap:7px; flex-wrap:wrap;}
.icon-opt{width:34px; height:34px; border-radius:9px; border:1.5px solid var(--line-strong); background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--ink-soft); font-size:16px;}
.icon-opt:hover{border-color:var(--brand); color:var(--brand);}
.icon-opt.sel{border-color:var(--brand); background:var(--brand-tint); color:var(--brand);}

/* ---------------- Modal ---------------- */
.modal-overlay{position:fixed; inset:0; background:rgba(15,43,31,0.4); display:none; align-items:center; justify-content:center; z-index:200; padding:20px;}
.modal-overlay.open{display:flex;}
.modal{background:var(--panel); border-radius:14px; padding:24px; width:100%; max-width:440px; max-height:88vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.25);}
.modal h3{margin:0 0 16px; font-size:18px;}
.modal-actions{display:flex; justify-content:flex-end; gap:8px; margin-top:18px; align-items:center;}

/* ---------------- Cards / widgets ---------------- */
.card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow);}
.widget-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:18px; align-items:start;}
.widget{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:10px; min-height:180px; min-width:0; max-width:100%; overflow:hidden;}
.widget-head{display:flex; align-items:center; margin-bottom:2px; gap:8px; min-width:0;}
.widget-title-link{font-family:'Fraunces',serif; font-size:15.5px; font-weight:600; display:flex; align-items:center; gap:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.widget-title-link:hover{color:var(--brand); text-decoration:underline;}
.widget-arrow{opacity:.5; font-size:12px; flex-shrink:0;}
.widget-body{flex:1; min-width:0;}
.empty-note{color:var(--ink-faint); font-size:13px; padding:10px 0; text-align:center;}

/* ---------------- Page header (acts like Beatrice's topbar, per page) ---------------- */
.page{max-width:1180px; margin:0 auto; width:100%;}
.page-header{display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; gap:12px; flex-wrap:wrap;}
.page-title{font-family:'Fraunces',serif; font-size:23px; font-weight:600; margin:0;}
.page-subtitle{color:var(--ink-soft); font-size:13px; margin-top:5px;}

/* ---------------- Stat cards ---------------- */
.summary-row{display:flex; gap:16px; margin:18px 0; flex-wrap:wrap;}
.stat-card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:14px 18px; min-width:150px;}
.stat-num{font-family:'JetBrains Mono',monospace; font-size:22px; font-weight:600;}
.stat-label{font-size:12px; color:var(--ink-soft); margin-top:2px;}

/* ---------------- Progress bar ---------------- */
.progress-track{height:7px; background:var(--bg); border-radius:999px; overflow:hidden; border:1px solid var(--line);}
.progress-fill{height:100%; background:var(--brand); border-radius:999px; transition:width .25s ease;}

/* ---------------- Tabs / status ---------------- */
.tabs{display:flex; gap:6px; border-bottom:1px solid var(--line); margin:0 0 20px;}
.tab{padding:9px 4px; margin-right:18px; font-size:13.5px; font-weight:600; color:var(--ink-soft); cursor:pointer; border-bottom:2px solid transparent;}
.tab.active{color:var(--brand); border-bottom-color:var(--brand);}
.status-pill{font-size:10.5px; padding:2px 8px; border-radius:20px; font-weight:600; white-space:nowrap; background:var(--bg); color:var(--ink-soft);}

/* ---------------- Calendar month grid ---------------- */
.month-nav{display:flex; align-items:center; gap:14px; margin-bottom:16px; flex-wrap:wrap;}
.month-nav h2, .cal-month-label{margin:0; font-size:19px; font-family:'Fraunces',serif; font-weight:600; white-space:nowrap;}
.cal-nav{display:flex; gap:6px; flex-wrap:nowrap; flex-shrink:0;}
.cal-nav button{width:32px; height:32px; border-radius:8px; border:1px solid var(--line-strong); background:#fff; cursor:pointer; font-size:15px; flex-shrink:0;}
.cal-nav button:hover{border-color:var(--brand); color:var(--brand);}
.cal-nav .btn.small{width:auto; flex-shrink:0;}
.view-toggle{display:flex; gap:4px; background:var(--bg); border:1px solid var(--line); border-radius:9px; padding:3px; flex-shrink:0;}
.view-toggle button{border:none; background:none; padding:6px 12px; border-radius:7px; font-size:12.5px; font-weight:700; cursor:pointer; color:var(--ink-soft);}
.view-toggle button.active{background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.08);}
.cal-grid-head{display:grid; grid-template-columns:repeat(7,1fr); gap:8px; margin-bottom:6px;}
.cal-grid-head div, .cal-dow{text-align:center; font-size:11px; font-weight:700; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.05em;}
.cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:8px;}
.cal-cell{background:var(--panel); border:1px solid var(--line); border-radius:9px; min-height:92px; padding:7px; cursor:pointer; display:flex; flex-direction:column; gap:3px; position:relative;}
.cal-cell.other-month{opacity:.4;}
.cal-cell.today{border-color:var(--brand); box-shadow:0 0 0 1px var(--brand);}
.cal-cell.selected{box-shadow:0 0 0 2px var(--brand) inset;}
.cal-date-num, .cal-daynum{font-size:12.5px; font-weight:600; color:var(--ink-soft);}
.cal-pill{font-size:10.5px; font-weight:700; color:#fff; border-radius:5px; padding:2px 5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:pointer;}
.cal-more{font-size:10px; color:var(--ink-soft); font-weight:700;}
.cal-2week .cal-cell{min-height:120px;}
.add-cat-row{display:flex; gap:6px; align-items:center; margin-top:10px;}
.add-cat-row input[type=text]{width:130px; padding:6px 9px; border:1px solid var(--line-strong); border-radius:7px; font-size:12.5px;}

.day-detail{margin-top:20px;}
.day-detail h3{font-size:15px; font-family:'Fraunces',serif;}
.event-row{display:flex; align-items:center; gap:10px; padding:11px; border:1px solid var(--line); border-radius:10px; margin-bottom:8px; cursor:pointer; background:var(--panel);}
.event-row:hover{border-color:var(--brand); box-shadow:var(--shadow);}
.event-color-bar{width:4px; align-self:stretch; border-radius:3px;}
.share-badge{font-size:10.5px; color:var(--ink-soft); background:var(--bg); border-radius:999px; padding:2px 8px;}

/* ---------------- Habits ---------------- */
.habit-card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; display:flex; flex-direction:column; gap:11px; box-shadow:var(--shadow);}
.habit-top{display:flex; align-items:center; gap:10px;}
.habit-icon{font-size:20px;}
.habit-title{font-family:'Fraunces',serif; font-weight:600; font-size:14.5px; flex:1;}
.habit-badge{font-size:10.5px; font-weight:700; color:var(--ink-soft); background:var(--bg); border-radius:999px; padding:3px 9px;}
.habit-actions{display:flex; gap:4px;}
.habit-stats{display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--ink-soft);}
.heatmap{display:flex; gap:4px;}
.heat-dot{width:16px; height:16px; border-radius:5px; background:var(--bg); border:1px solid var(--line);}
.heat-dot.on{border-color:transparent;}
.habit-toggle-btn{align-self:flex-start; padding:8px 14px; border-radius:9px; border:none; font-weight:700; font-size:12.5px; cursor:pointer;}

/* ---------------- To-Dos ---------------- */
.todo-columns{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
@media (max-width:760px){.todo-columns{grid-template-columns:1fr;}}
.todo-col{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; min-height:340px; box-shadow:var(--shadow);}
.todo-col-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:4px;}
.todo-col-title{font-family:'Fraunces',serif; font-weight:600; font-size:15px;}
.todo-col-sub{font-size:11.5px; color:var(--ink-soft); margin-bottom:14px;}
.todo-list{display:flex; flex-direction:column; gap:6px; min-height:60px;}
.todo-list.drop-hint{background:var(--brand-tint); border-radius:10px;}
.todo-row{display:flex; align-items:center; gap:8px; background:var(--bg); border:1px solid var(--line); border-radius:9px; padding:9px 10px; cursor:grab;}
.todo-row.dragging{opacity:.5;}
.todo-row input[type=checkbox]{width:16px; height:16px; flex-shrink:0; accent-color:var(--brand);}
.todo-row .t-title{flex:1; font-size:13.5px;}
.todo-row .t-title.done{text-decoration:line-through; color:var(--ink-faint);}
.todo-row .row-actions{display:flex; gap:2px; opacity:0; transition:opacity .15s;}
.todo-row:hover .row-actions{opacity:1;}
.add-row{display:flex; gap:8px; margin-top:12px;}
.add-row input{flex:1; padding:9px 11px; border:1px solid var(--line-strong); border-radius:8px; font-size:13.5px; font-family:inherit;}

/* ---------------- Day View timeline ---------------- */
.timeline-wrap{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);}
.timeline-scroll{max-height:640px; overflow-y:auto; position:relative;}
.timeline{position:relative; margin:0 16px;}
.hour-row{position:relative; height:56px; border-top:1px solid var(--line);}
.hour-row::after{content:""; position:absolute; top:28px; left:56px; right:0; border-top:1px solid #EEF2EE;}
.hour-label{position:absolute; top:-8px; left:0; width:48px; font-size:10.5px; color:var(--ink-soft); text-align:right;}
.events-layer{position:absolute; top:0; left:60px; right:0; height:100%;}
.now-line{position:absolute; left:60px; right:0; height:2px; background:var(--danger); z-index:5; pointer-events:none;}
.now-line::before{content:""; position:absolute; left:-5px; top:-4px; width:10px; height:10px; border-radius:50%; background:var(--danger);}
.dv-block{position:absolute; left:4px; right:4px; border-radius:9px; padding:5px 9px; color:#fff; font-size:11.5px; overflow:hidden; cursor:grab; box-shadow:0 1px 2px rgba(0,0,0,.12); user-select:none;}
.dv-block.dragging{cursor:grabbing; opacity:.9; box-shadow:0 6px 16px rgba(0,0,0,.3); z-index:20;}
.dv-block .dv-title{font-weight:700; font-size:12.5px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:4px;}
.dv-block .dv-time{font-size:10.5px; opacity:.9;}
.dv-block.completed{opacity:.55;}

/* ---------------- Countdown ---------------- */
.cd-card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; display:flex; flex-direction:column; gap:10px; position:relative; overflow:hidden; box-shadow:var(--shadow);}
.cd-card::before{content:""; position:absolute; top:0; left:0; right:0; height:4px; background:var(--cd-color, var(--brand));}
.cd-title{font-family:'Fraunces',serif; font-weight:600; font-size:15px;}
.cd-date{font-size:11.5px; color:var(--ink-soft);}
.cd-remaining{font-family:'JetBrains Mono',monospace; font-size:24px; font-weight:600;}
.cd-remaining.past{color:var(--ink-faint); font-size:15px; font-family:'Inter',sans-serif;}
.cd-actions{display:flex; gap:4px; position:absolute; top:12px; right:10px;}

/* ---------------- Settings ---------------- */
.settings-section{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-bottom:18px; box-shadow:var(--shadow);}
.settings-section h2{font-size:15px; margin:0 0 4px 0; font-family:'Fraunces',serif;}
.settings-section .section-sub{font-size:12.5px; color:var(--ink-soft); margin-bottom:16px;}
.friend-row{display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line);}
.friend-row:last-child{border-bottom:none;}
.friend-name{font-weight:600; font-size:13.5px;}
.friend-email{font-size:11.5px; color:var(--ink-soft);}
.integration-card{display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:10px; margin-bottom:10px;}
.integration-icon{width:38px; height:38px; border-radius:10px; background:var(--brand-tint); display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--brand); font-family:'Fraunces',serif;}
.integration-body{flex:1;}
.integration-body .name{font-weight:600; font-size:13.5px; font-family:'Fraunces',serif;}
.integration-body .desc{font-size:11.5px; color:var(--ink-soft);}
.coming-soon{font-size:10.5px; font-weight:700; color:var(--ink-soft); background:var(--bg); padding:4px 10px; border-radius:999px;}
code.inline{background:var(--bg); padding:1px 5px; border-radius:4px; font-size:12px; font-family:'JetBrains Mono',monospace;}

/* ---------------- Toast ---------------- */
#toast{
  position:fixed; bottom:20px; left:50%; transform:translateX(-50%) translateY(10px);
  background:var(--brand-dark); color:#fff; padding:10px 16px; border-radius:9px; font-size:13px;
  opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; z-index:300;
}
#toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

::-webkit-scrollbar{width:8px; height:8px;}
::-webkit-scrollbar-thumb{background:var(--line-strong); border-radius:4px;}

/* ---------------- Auth gate (login / sign up / guest) ---------------- */
.auth-shell{
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;
  background:radial-gradient(circle at 30% 20%, #1F5B3E 0%, #0F2B1F 65%);
}
.auth-card{
  width:100%; max-width:400px; background:var(--panel); border-radius:18px; padding:32px 28px;
  box-shadow:0 24px 60px rgba(0,0,0,0.35); text-align:center;
}
.auth-title{font-family:'Fraunces',serif; font-size:44px; font-weight:700; color:var(--brand-dark); line-height:1;}
.auth-sub{font-size:13.5px; color:var(--ink-soft); margin-top:8px; margin-bottom:24px;}
.auth-tabs{
  display:flex; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:4px; margin-bottom:22px; gap:4px;
}
.auth-tab{
  flex:1; border:none; background:transparent; padding:9px 0; border-radius:7px; font-size:13.5px; font-weight:600;
  color:var(--ink-soft); cursor:pointer; font-family:inherit;
}
.auth-tab.active{background:#fff; color:var(--brand-dark); box-shadow:0 1px 3px rgba(15,43,31,0.15);}
.auth-card .form-row{text-align:left;}
.auth-status{min-height:16px; font-size:12.5px; color:var(--danger); margin-top:10px;}
.auth-divider{font-size:11px; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.08em; margin:18px 0; position:relative;}
.auth-divider::before,.auth-divider::after{content:""; position:absolute; top:50%; width:38%; height:1px; background:var(--line);}
.auth-divider::before{left:0;}
.auth-divider::after{right:0;}
.auth-note{font-size:11.5px; color:var(--ink-soft); margin-top:16px; line-height:1.5;}

@media (max-width:640px){
  :root{--sidebar-w:84vw;}
  .content, .page{padding:18px 14px 50px;}
}
