/* ============ Bytebard Workspace Lite — cleaned stylesheet ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  color-scheme: light;
  --background: #f7f7f8; --surface: #ffffff; --sidebar: #f1f1f3;
  --border: #e4e4e7; --border-strong: #d4d4d8;
  --text: #18181b;
  --muted: #52525b;
  --primary: #18181b; --primary-text: #ffffff;
  --hover: rgba(0,0,0,0.05); --active: rgba(0,0,0,0.08);
  --ring: #2563eb;
  --c-blue: #2563eb; --c-green: #16a34a; --c-purple: #9333ea; --c-orange: #ea580c;
  --p-high: #dc2626; --p-medium: #d97706; --p-low: #16a34a;
  --shadow: 0 1px 2px rgba(0,0,0,0.04); --shadow-lg: 0 12px 32px rgba(0,0,0,0.14);
}
[data-theme="dark"] {
  color-scheme: dark;
  --background: #0e1013; --surface: #16181c; --sidebar: #121418;
  --border: #26292e; --border-strong: #34383e;
  --text: #f4f4f5; --muted: #9b9ba3;
  --primary: #f4f4f5; --primary-text: #18181b;
  --hover: rgba(255,255,255,0.06); --active: rgba(255,255,255,0.1);
  --c-blue: #60a5fa; --c-green: #4ade80; --c-purple: #c084fc; --c-orange: #fb923c;
  --p-high: #f87171; --p-medium: #fbbf24; --p-low: #4ade80;
  --shadow: 0 1px 2px rgba(0,0,0,0.4); --shadow-lg: 0 12px 32px rgba(0,0,0,0.55);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background); color: var(--text);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
button, input, select, textarea { touch-action: manipulation; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
mark { background: rgba(250,204,21,0.4); color: inherit; border-radius: 3px; padding: 0 1px; }
[data-theme="dark"] mark { background: rgba(250,204,21,0.25); }

#app { display: flex; height: 100vh; height: 100dvh; }
#app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#workspace { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 48px; }
.page { max-width: 1240px; margin: 0 auto; animation: viewIn 0.16s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { color: var(--muted); margin-top: 3px; }
.greet-ico { display: inline-flex; vertical-align: -4px; margin-left: 8px; }

#sidebar { width: 264px; flex: none; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--border); }
.sidebar-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.logo-badge { width: 30px; height: 30px; border-radius: 8px; flex: none; background: var(--primary); color: var(--primary-text); display: flex; align-items: center; justify-content: center; }
.sidebar-title { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.nav-group { margin-bottom: 14px; }
.nav-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 10px 4px; }
.nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); text-align: left; margin-bottom: 1px; }
.nav-btn .nav-ico { color: var(--muted); display: flex; }
.nav-btn:hover { background: var(--hover); }
.nav-btn.active { background: var(--active); }
.nav-btn.active .nav-ico { color: var(--text); }
.sidebar-foot { border-top: 1px solid var(--border); padding: 10px; }
#overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 40; display: none; }

#header { height: 60px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--border); background: var(--background); }
#menu-btn { display: none; }
.header-title { display: none; align-items: center; }
.header-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); color: var(--primary-text); display: none; align-items: center; justify-content: center; flex: none; }
.header-search { position: relative; flex: 1; max-width: 520px; }
.header-search .hs-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.header-search input { width: 100%; height: 36px; padding: 0 56px 0 34px; background: var(--hover); border: 1px solid transparent; border-radius: 8px; }
.header-search input:focus { outline: none; border-color: var(--ring); background: var(--surface); }
.hs-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; font-family: inherit; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; background: var(--surface); pointer-events: none; }
#save-state { font-size: 12px; color: var(--muted); opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
#save-state.show { opacity: 1; }

.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; font-weight: 500; font-size: 14px; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: var(--surface); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--hover); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger { background: var(--p-high); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-danger-outline { background: transparent; border-color: var(--p-high); color: var(--p-high); }
.btn-danger-outline:hover { background: var(--hover); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; }
.link-btn { font-size: 12.5px; color: var(--muted); font-weight: 500; border-radius: 6px; }
.link-btn:hover { color: var(--text); text-decoration: underline; }

.input, .textarea, .select { width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ring); }
.textarea { resize: vertical; min-height: 90px; }
textarea[data-autosize] { resize: none; overflow: hidden; }
.label { display: block; font-size: 13px; font-weight: 500; margin: 14px 0 6px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.search-box { position: relative; flex: 1; min-width: 160px; max-width: 320px; }
.search-box .sb-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search-box input { padding-left: 34px; background: var(--surface); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-title { font-weight: 600; font-size: 14px; }
.card-body { padding: 8px; }
.card-body.pad { padding: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1101px) { .stats-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.stat-card { padding: 16px; }
.stat-card-clickable { cursor: pointer; text-align: left; transition: transform 0.1s, box-shadow 0.1s; }
.stat-card-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card-clickable:active { transform: translateY(0); }
.stat-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stat-num.blue { color: var(--c-blue); } .stat-num.green { color: var(--c-green); }
.stat-num.purple { color: var(--c-purple); } .stat-num.orange { color: var(--c-orange); }
.stat-label { font-weight: 600; margin-top: 2px; }
.stat-sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.grid-3 > .card { min-width: 0; }

.row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; }
.item-row { cursor: pointer; }
.item-row:hover { background: var(--hover); }
.row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.row-title.done { text-decoration: line-through; color: var(--muted); }
.row-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.row-meta.overdue { color: var(--p-high); font-weight: 500; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-sub { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.row-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.12s; margin-left: 8px; }
.item-row:hover .row-actions, .row:hover .row-actions { opacity: 1; }
.checkbox { width: 18px; height: 18px; flex: none; border-radius: 5px; border: 1.5px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.checkbox:hover { border-color: var(--ring); }
.checkbox.checked { background: var(--c-blue); border-color: var(--c-blue); }
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.prio .dot { width: 7px; height: 7px; border-radius: 50%; }
.prio.high { color: var(--p-high); } .prio.high .dot { background: var(--p-high); }
.prio.medium { color: var(--p-medium); } .prio.medium .dot { background: var(--p-medium); }
.prio.low { color: var(--p-low); } .prio.low .dot { background: var(--p-low); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--hover); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chip { display: inline-block; font-size: 11.5px; background: var(--hover); border-radius: 99px; padding: 2px 8px; color: var(--muted); margin-right: 4px; }
.chip-btn { cursor: pointer; }
.chip-btn:hover { color: var(--text); background: var(--active); }
.chip-btn.active { background: var(--primary); color: var(--primary-text); }
.tag-filter { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.tag-filter strong { color: var(--text); font-weight: 600; }
.task-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.task-tags .chip { font-size: 11px; padding: 1px 6px; }
.quick-add { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 2px 12px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 10px; color: var(--muted); }
.quick-add input { flex: 1; height: 40px; border: none; background: transparent; color: var(--text); }
.quick-add input::placeholder { color: var(--muted); }
.quick-add input:focus { outline: none; }
.quick-add:focus-within { border-color: var(--ring); border-style: solid; }

[data-item-type] { cursor: pointer; transition: background-color 0.08s, outline-color 0.08s; }
[data-item-type].selected { outline: 2px solid var(--ring); outline-offset: -2px; background: var(--active); }
[data-item-type]:hover:not(.selected) { background: var(--hover); }

.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.note-card { padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 96px; position: relative; }
.note-card:hover { border-color: var(--border-strong); }
.note-title { font-weight: 600; padding-right: 56px; }
.note-snippet { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; overflow-wrap: break-word; white-space: pre-line; }
.note-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.note-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 2px; opacity: 0; }
.note-card:hover .note-actions { opacity: 1; }
.pinned-ico { color: var(--c-orange); display: inline-flex; }

.vn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; align-items: start; }
.vn-card { border-radius: 10px; padding: 14px; min-height: 140px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; border: 1px solid transparent; position: relative; }
.vn-title { font-weight: 600; }
.vn-content { font-size: 13.5px; white-space: normal; word-break: break-word; overflow-wrap: break-word; flex: 1; }
.vn-foot { font-size: 12px; opacity: 0.65; display: flex; align-items: center; gap: 6px; }
.vn-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; opacity: 0; }
.vn-card:hover .vn-actions { opacity: 1; }
.vn-actions .icon-btn { color: inherit; }
.vn-actions .icon-btn:hover { background: rgba(0,0,0,0.08); }
.vn-yellow { background: #fef9c3; color: #713f12; }
.vn-green  { background: #dcfce7; color: #14532d; }
.vn-blue   { background: #dbeafe; color: #1e3a8a; }
.vn-purple { background: #f3e8ff; color: #581c87; }
.vn-pink   { background: #fce7f3; color: #831843; }
[data-theme="dark"] .vn-yellow { background: rgba(250,204,21,0.14); color: #fde047; }
[data-theme="dark"] .vn-green  { background: rgba(74,222,128,0.13); color: #86efac; }
[data-theme="dark"] .vn-blue   { background: rgba(96,165,250,0.14); color: #93c5fd; }
[data-theme="dark"] .vn-purple { background: rgba(192,132,252,0.14); color: #d8b4fe; }
[data-theme="dark"] .vn-pink   { background: rgba(244,114,182,0.14); color: #f9a8d4; }
.swatches { display: flex; gap: 8px; margin-top: 6px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; }
.swatch.active { border-color: var(--ring); }
.sw-yellow { background: #fde047; } .sw-green { background: #86efac; } .sw-blue { background: #93c5fd; }
.sw-purple { background: #d8b4fe; } .sw-pink { background: #f9a8d4; }

.bm-list { display: flex; flex-direction: column; gap: 8px; }
.bm-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.bm-tile { width: 36px; height: 36px; border-radius: 9px; flex: none; background: var(--hover); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--c-blue); }
.bm-main { flex: 1; min-width: 0; }
.bm-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-url { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-desc { margin-top: 4px; font-size: 12.5px; color: var(--muted); overflow-wrap: break-word; }
.bm-desc p { margin: 0 0 4px; }

.cal-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; min-width: 0; }
.cal-wrap > .card { min-width: 0; max-width: 100%; }
.cal-grid-card { min-height: 560px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
.cal-title { font-weight: 600; }
.cal-title-btn { background: none; border: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.12s; }
.cal-title-btn:hover { background: var(--hover); color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 12px 12px; gap: 4px; }
.cal-dow { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 0; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-cell { height: 78px; min-height: 0; border-radius: 8px; border: 1px solid transparent; padding: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
.cal-cell:hover { background: var(--hover); }
.cal-cell.other { opacity: 0.35; }
.cal-cell.today .cal-num { background: var(--primary); color: var(--primary-text); border-radius: 50%; }
.cal-cell.selected { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.cal-cell.selected:hover { background: var(--primary); opacity: 0.9; }
.cal-cell.selected .cal-num { background: var(--primary-text); color: var(--primary); }
.cal-cell.selected .cal-more { color: var(--primary-text); opacity: 0.8; }
.cal-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.cal-num { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 500; }
.cal-more { font-size: 10px; font-weight: 600; color: var(--muted); }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; max-width: 100%; overflow: hidden; }
.cal-dots .d { width: 6px; height: 6px; border-radius: 50%; }
.d.ev { background: var(--c-blue); } .d.tk { background: var(--c-green); }
.cal-detail-panel { min-height: 200px; display: flex; flex-direction: column; }
.cal-panel-head { flex-wrap: wrap; gap: 8px; }
.cal-panel-head .card-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-detail-body { height: 320px; overflow-y: auto; }
.cal-add-label { display: inline; }
.cal-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 4px 0; }
.cal-picker-year { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; min-width: 80px; text-align: center; }
.cal-picker-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.cal-picker-month { padding: 12px 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 500; cursor: pointer; transition: all 0.12s; }
.cal-picker-month:hover { border-color: var(--ring); background: var(--hover); }
.cal-picker-month.active { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.cal-picker-quick { display: flex; justify-content: center; padding-top: 8px; border-top: 1px solid var(--border); }
.hint-touch { display: none; }

.qc-input { margin: 8px; width: calc(100% - 16px); }
.qc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 8px; text-align: left; }
.qc-row:hover { background: var(--hover); }
.qc-ico { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.qc-ico.green { background: rgba(22,163,74,0.12); color: var(--c-green); }
.qc-ico.blue { background: rgba(37,99,235,0.12); color: var(--c-blue); }
.qc-ico.purple { background: rgba(147,51,234,0.12); color: var(--c-purple); }
.qc-ico.orange { background: rgba(234,88,12,0.12); color: var(--c-orange); }
.qc-name { font-weight: 500; font-size: 13.5px; }
.qc-sub { color: var(--muted); font-size: 12px; }
.mini-tile { width: 32px; height: 32px; border-radius: 8px; background: var(--hover); flex: none; display: flex; align-items: center; justify-content: center; }
.mini-vn { border-radius: 8px; padding: 10px; min-height: 92px; display: flex; flex-direction: column; cursor: pointer; font-size: 12.5px; }
.mini-vn .vn-foot { margin-top: auto; }
.mini-vn .rich-content { flex: 1; min-height: 0; overflow: hidden; font-size: 12.5px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }

.empty { text-align: center; color: var(--muted); padding: 36px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .icon { opacity: 0.5; }
.empty-sm { text-align: center; color: var(--muted); padding: 18px 12px; font-size: 13px; }
.section-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 10px 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; max-width: 860px; }
.theme-row { display: flex; gap: 8px; }
.theme-opt { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.theme-opt.active { border-color: var(--ring); background: var(--hover); }
.data-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.data-row:last-child { border-bottom: none; }
.data-main { flex: 1; min-width: 0; }
.data-title { font-weight: 500; }
.data-sub { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.warn-box { display: flex; gap: 10px; background: var(--hover); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(540px, 100%); max-height: 86vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); animation: popIn 0.16s ease; scrollbar-width: thin; }
@keyframes popIn { from { opacity: 0; transform: scale(0.97) translateY(4px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-title { font-weight: 600; font-size: 15px; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.modal-foot .spacer { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; }
.shortcut-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.shortcut-row:last-child { border-bottom: none; }
.kbd { font-family: inherit; font-size: 11.5px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 2px 7px; background: var(--hover); white-space: nowrap; }

.editor-toolbar { display: flex; gap: 4px; margin-bottom: 6px; padding: 4px; background: var(--hover); border-radius: 6px; width: fit-content; flex-wrap: wrap; }
.editor-toolbar .icon-btn { color: var(--muted); }
.editor-toolbar .icon-btn:hover { color: var(--text); background: var(--surface); }
.editor-toolbar .toolbar-seg { width: 1px; height: 18px; background: var(--border); margin: 0 4px; align-self: center; }
.editor-wysiwyg { min-height: 200px; max-height: 500px; overflow-y: auto; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; line-height: 1.6; color: var(--text); outline: none; transition: border-color 0.12s; }
.editor-wysiwyg:focus { border-color: var(--ring); }
.editor-wysiwyg:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.editor-wysiwyg-sm { min-height: 100px; max-height: 200px; }
.editor-wysiwyg h3 { font-size: 16px; font-weight: 600; margin: 14px 0 6px; }
.editor-wysiwyg p { margin: 6px 0; }
.editor-wysiwyg ul, .editor-wysiwyg ol { margin: 6px 0; padding-left: 22px; }
.editor-wysiwyg li { margin-bottom: 2px; }
.editor-wysiwyg strong, .editor-wysiwyg b { font-weight: 600; }
.editor-wysiwyg em, .editor-wysiwyg i { font-style: italic; }
.editor-wysiwyg u { text-decoration: underline; }
.editor-wysiwyg del, .editor-wysiwyg strike, .editor-wysiwyg s { text-decoration: line-through; opacity: 0.7; }
.editor-wysiwyg .md-img { max-width: 100%; height: auto; border-radius: 6px; margin: 4px 0; display: block; }
.editor-wysiwyg hr { border: none; border-top: 1px solid var(--border-strong); margin: 16px 0; }
.wiki-link { background: rgba(37,99,235,0.1); color: var(--c-blue); border: none; border-radius: 4px; padding: 1px 5px; font: inherit; cursor: pointer; text-decoration: none; display: inline; }
[data-theme="dark"] .wiki-link { background: rgba(96,165,250,0.15); color: var(--c-blue); }
.wiki-link:hover { text-decoration: underline; }
.editor-wysiwyg .wiki-link, .rich-content .wiki-link { background: rgba(37,99,235,0.1); color: var(--c-blue); }
.rich-content { font-size: inherit; }
.rich-content p { margin: 0 0 8px; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { margin: 12px 0 6px; font-weight: 600; color: var(--text); }
.rich-content h3 { font-size: 1.05em; }
.rich-content ul, .rich-content ol { margin: 6px 0 8px; padding-left: 22px; }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li { margin: 2px 0; }
.rich-content strong, .rich-content b { font-weight: 600; }
.rich-content em, .rich-content i { font-style: italic; }
.rich-content u { text-decoration: underline; }
.rich-content del, .rich-content s, .rich-content strike { text-decoration: line-through; opacity: 0.75; }
.rich-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 6px 0; display: block; }
.rich-content hr { border: none; border-top: 1px solid var(--border-strong); margin: 12px 0; }
.rich-content blockquote { border-left: 3px solid var(--border-strong); padding-left: 10px; margin: 8px 0; color: var(--muted); }
.rich-content a { color: var(--c-blue); text-decoration: underline; }

.drag-handle { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); opacity: 0; cursor: grab; padding: 2px; transition: opacity 0.12s; }
.drag-handle:active { cursor: grabbing; }
.note-card:hover .drag-handle, .vn-card:hover .drag-handle { opacity: 0.6; }
.drag-handle:hover { opacity: 1 !important; color: var(--text); }
[data-drag-type].dragging { opacity: 0.4; }
.note-drag-area, .vn-drag-area { position: absolute; top: 8px; left: 8px; display: flex; gap: 2px; align-items: center; z-index: 2; }
.reorder-btn { display: none; }
.task-reorder { display: none; gap: 2px; align-items: center; margin-left: 4px; }
.task-row-wrap { display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: 8px; }
.task-row-wrap:hover { background: var(--hover); }
.task-row-wrap .row { flex: 1; min-width: 0; padding: 7px 8px; }
.task-row-wrap .row:hover { background: transparent; }

#context-root { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
#context-root:empty { display: none; }
.context-menu { pointer-events: auto; position: absolute; min-width: 220px; max-width: min(300px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px; animation: ctxIn 0.1s ease; scrollbar-width: thin; }
@keyframes ctxIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.ctx-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; text-align: left; color: var(--text); }
.ctx-item:hover { background: var(--hover); }
.ctx-icon { display: flex; color: var(--muted); flex: none; }
.ctx-label { flex: 1; }
.ctx-shortcut { color: var(--muted); font-size: 11.5px; font-family: inherit; }
.ctx-sep { height: 1px; background: var(--border); margin: 4px 8px; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--primary); color: var(--primary-text); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 200; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#app-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted); flex-shrink: 0; }
.footer-copy { flex: 1; }
.footer-social { display: flex; gap: 4px; align-items: center; }
.footer-social .icon-btn { color: var(--muted); }
.footer-social .icon-btn:hover { color: var(--text); background: var(--hover); }
#mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--border); grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.mnav-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 6px 2px; border-radius: 8px; }
.mnav-btn .nav-ico { display: flex; }
.mnav-btn.active { color: var(--text); }

html[data-density="compact"] body { font-size: 13px; }
html[data-density="compact"] #header { height: 52px; }
html[data-density="compact"] #workspace { padding: 16px 20px 40px; }
html[data-density="compact"] .row { padding: 5px 8px; }
html[data-density="compact"] .nav-btn { padding: 5px 10px; }
html[data-density="compact"] .card-head { padding: 10px 14px; }
html[data-density="compact"] .card-body { padding: 4px; }
html[data-density="compact"] .card-body.pad { padding: 12px; }
html[data-density="compact"] .note-card { min-height: 76px; padding: 10px 12px; }
html[data-density="compact"] .vn-card { min-height: 110px; padding: 10px; }
html[data-density="compact"] .stat-card { padding: 12px; }
html[data-density="compact"] .stat-num { font-size: 18px; }
html[data-density="compact"] .cal-cell { height: 62px; }
html[data-density="compact"] .bm-card { padding: 8px 12px; }
html[data-density="compact"] .ctx-item { padding: 6px 10px; }
html[data-density="compact"] .cal-picker-month { padding: 8px 6px; }

@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .cal-grid-card { min-height: 0; }
  .cal-detail-body { height: 240px; }
  .cal-cell { height: 54px; padding: 4px; gap: 3px; }
  .cal-num { width: 20px; height: 20px; font-size: 11.5px; }
  .cal-dow { font-size: 10px; letter-spacing: 0.02em; }
  .cal-grid { gap: 3px; padding: 0 8px 8px; }
  .cal-head { padding: 10px 12px; }
  .cal-more { font-size: 9px; }
}
@media (max-width: 860px) {
  #sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: var(--shadow-lg); }
  body.sidebar-open #sidebar { transform: translateX(0); }
  body.sidebar-open #overlay { display: block; }
  #menu-btn { display: inline-flex; }
  #mobile-nav { display: grid; }
  #workspace { padding: 18px 14px 84px; }
  #header { padding: 0 10px; gap: 6px; height: 56px; }
  #capture-btn .cap-label { display: none; }
  #capture-btn { padding: 0 10px; }
  .header-title { display: inline-flex; }
  .header-title-text { display: none; }
  .header-logo { display: inline-flex; }
  .header-search { max-width: none; }
  .header-search input { padding: 0 12px 0 34px; }
  .hs-kbd { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn.sm { width: 34px; height: 34px; }
  .checkbox { width: 22px; height: 22px; border-radius: 6px; }
  .nav-btn { padding: 10px; }
  .row { padding: 12px 10px; }
  .btn { height: 40px; }
  .link-btn { padding: 6px 8px; }
  .mnav-btn { padding: 9px 2px 7px; }
  .qc-row { padding: 14px 12px; }
  .row-actions { display: none; }
  .reorder-btn { display: inline-flex; }
  .task-reorder { display: flex; }
  .drag-handle { display: none; }
  .note-actions { opacity: 1; }
  .vn-actions { opacity: 1; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; border-left: none; border-right: none; border-bottom: none; animation: sheetIn 0.22s ease; }
  .modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--border-strong); margin: 10px auto -6px; }
  .hint-desktop { display: none; }
  .hint-touch { display: inline; }
}
@keyframes sheetIn { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  #app-footer { flex-direction: column; gap: 8px; text-align: center; padding: 12px 16px; }
  .editor-toolbar { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .modal-body { padding: 14px 16px; }
  .modal-head { padding: 14px 16px; }
  .modal-foot { padding: 12px 16px; }
}
@media (max-width: 480px) {
  #workspace { padding: 14px 10px 84px; }
  .page-head { margin-bottom: 14px; }
  .page-title { font-size: 19px; }
  .page-sub { font-size: 12.5px; }
  .vn-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .notes-grid { grid-template-columns: 1fr; }
  .editor-wysiwyg { min-height: 160px; }
}
@media (max-width: 400px) {
  .stat-card { padding: 12px; }
  .stat-num { font-size: 18px; }
  .cal-add-label { display: none; }
  .cal-cell { height: 46px; }
  .cal-dots .d { width: 5px; height: 5px; }
  .seg button { padding: 5px 8px; font-size: 12px; }
}

.folder-drop-zone.drop-target {
  background: var(--active);
  outline: 2px dashed var(--ring);
  outline-offset: -2px;
}
.folder-option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border-radius: 8px; text-align: left; font-size: 14px;
}
.folder-option:hover { background: var(--hover); }
.folder-list-modal { display: flex; flex-direction: column; gap: 4px; }
.nav-count {
  font-size: 11px; color: var(--muted); background: var(--hover);
  padding: 2px 6px; border-radius: 99px; margin-left: auto;
}
[data-item-type].drop-target {
  outline: 2px dashed var(--ring);
  outline-offset: -2px;
  background: var(--active);
}
[data-item-type].dragging {
  opacity: 0.4;
  cursor: grabbing;
}
.folder-item-row .row-actions { opacity: 1; }

.week-chart { display: flex; gap: 8px; align-items: stretch; }
.week-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.week-barwrap { height: 92px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.week-bar { width: min(100%, 34px); min-height: 4px; background: var(--c-orange); opacity: 0.55; border-radius: 6px 2px 2px 2px; }
.week-bar.today { opacity: 1; }
.week-col:hover .week-bar { opacity: 1; }
.week-day { font-size: 10.5px; color: var(--muted); }

#auth-slot { margin-bottom: 6px; }
#auth-slot:empty { margin-bottom: 0; }
.user-badge { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--hover); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--c-purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.user-email { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--c-purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.overview-col {
  padding: 8px 16px;
  border-right: 1px solid var(--border);
}
.overview-col:last-child {
  border-right: none;
}
.overview-col .section-label {
  padding: 4px 10px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.overview-col .section-label.red { color: var(--p-high); }
.overview-col .section-label.blue { color: var(--c-blue); }
.overview-col .section-label.green { color: var(--c-green); }
@media (max-width: 760px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-col { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .overview-col:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .overview-col { padding: 10px 12px; }
  .overview-col .row { padding: 8px 6px; }
  .overview-col .mini-tile { width: 28px; height: 28px; }
  .overview-col .section-label { padding: 2px 8px 6px; font-size: 11px; }
}

.nav-group-head { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.nav-toggle { color: var(--muted); font-size: 12.5px; }
.nav-toggle:hover { color: var(--text); }
.folder-head { display: flex; align-items: center; gap: 10px; }
.folder-tile { color: var(--c-blue); background: rgba(37,99,235,0.12); }
[data-theme="dark"] .folder-tile { background: rgba(96,165,250,0.16); }

.progress-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: var(--c-blue); transition: width 0.25s ease; }
.dash-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .dash-bottom { grid-template-columns: 1fr; } }
.nav-group-head .link-btn { display: inline-flex; align-items: center; gap: 5px; }

@media (min-width: 861px) and (max-width: 1100px) {
  #sidebar { width: 64px; }
  .sidebar-head { justify-content: center; padding: 14px 6px; }
  .sidebar-title { display: none; }
  .sidebar-nav { padding: 4px 8px 12px; }
  .nav-label, .nav-toggle { display: none; }
  .nav-btn { font-size: 0; justify-content: center; gap: 0; padding: 10px 0; }
  .nav-btn > span:not(.nav-ico) { display: none; }
  .nav-group-head { justify-content: center; padding-right: 0; }
  .nav-group-head .link-btn { display: flex; justify-content: center; font-size: 0; padding: 8px 0; }
  .nav-group-head .link-btn .va-label { display: none; }
  .sidebar-foot { padding: 8px 6px; }
  .sidebar-foot .nav-btn { font-size: 0; justify-content: center; gap: 0; padding: 10px 0; }
  .sidebar-foot .nav-btn > span:not(.nav-ico) { display: none; }
  .user-badge { justify-content: center; padding: 6px 4px; gap: 0; }
  .user-email, .user-badge .icon-btn { display: none; }
}
@media (max-width: 400px) {
  .stats-grid { gap: 8px; }
  .toolbar { gap: 8px; }
  .toolbar .search-box { max-width: none; flex: 1 1 100%; }
  .page-head .btn { padding: 0 10px; }
  .seg { flex-wrap: wrap; }
  .progress-row { padding: 10px 12px 0; }
}

.preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--background);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), visibility .8s;
}
.preloader.done {
  opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.05);
  transition: opacity .8s ease, visibility .8s, transform 1.2s cubic-bezier(.4,0,.2,1);
}
.pre-inner {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  animation: preFadeIn .8s cubic-bezier(.22,1,.36,1) both;
}
.pre-mark {
  position: relative; display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--primary); color: var(--primary-text);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08) inset;
  animation: preFloat 3s ease-in-out infinite;
}
.pre-mark::before {
  content: ""; position: absolute; inset: -8px; border-radius: 24px;
  background: var(--primary); opacity: .18; filter: blur(16px); z-index: -1;
  animation: prePulseGlow 2s ease-in-out infinite alternate;
}
.pre-mark .icon { filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.pre-bar {
  width: 160px; height: 4px; border-radius: 999px;
  background: var(--border); overflow: hidden; position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}
.pre-bar-track {
  position: absolute; top: 0; left: 0; height: 100%; width: 50%; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: preSlide 1.5s cubic-bezier(.4,0,.2,1) infinite;
}
.pre-label {
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: .72rem; color: var(--muted);
}
@keyframes preFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes preFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes prePulseGlow { from { opacity: .12; transform: scale(.95); } to { opacity: .28; transform: scale(1.05); } }
@keyframes preSlide { 0% { left: -50%; } 100% { left: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .pre-mark, .pre-mark::before, .pre-bar-track, .pre-inner { animation: none !important; transition: none !important; }
}

/* ============ Font Awesome Sizing Corrections ============ */
/* THIS WAS THE MISSING LINE! It controls the icon inside the preloader box */
.pre-mark .fa-solid { 
  font-size: 28px; /* Bumped up from 28px to make it stand out more */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); 
}

.logo-badge .fa-solid { font-size: 15px; }
.header-logo .fa-solid { font-size: 13px; }

.viewer-meta { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.viewer-meta span { color: var(--muted); }
.viewer-meta strong { font-weight: 600; }
.vn-grid { align-items: start; }   /* Part F: independent heights */
.vn-card { height: auto; }
.chip.st-green { background: rgba(22,163,74,.14); color: var(--c-green); }
.chip.st-blue { background: rgba(37,99,235,.14); color: var(--c-blue); }
.chip.st-muted { background: var(--hover); color: var(--muted); }


/* ============ Read-Only Viewer Meta ============ */
.viewer-meta { 
    display: flex; 
    justify-content: space-between; 
    gap: 12px; 
    padding: 8px 0; 
    border-bottom: 1px solid var(--border); 
    font-size: 13px; 
}
.viewer-meta span { color: var(--muted); }
.viewer-meta strong { font-weight: 600; color: var(--text); }

/* ============ Auth card ============ */
.auth-card { padding: 28px 26px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.auth-brand { display: flex; align-items: center; gap: 8px; justify-content: center; }
.auth-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: var(--primary-text); display: flex; align-items: center; justify-content: center; }
.auth-name { font-weight: 700; font-size: 16px; }
.auth-chip { font-size: 10px; letter-spacing: .08em; border: 1px solid var(--border-strong); border-radius: 99px; padding: 2px 8px; color: var(--muted); }
.auth-title { text-align: center; font-size: 20px; font-weight: 700; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-top: -6px; }
.auth-label { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; display: block; }
.auth-field { position: relative; }
.auth-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.auth-input { width: 100%; height: 42px; padding: 0 40px 0 34px; background: var(--hover); border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14px; }
.auth-input:focus { outline: none; border-color: var(--ring); }
.auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.auth-row { display: flex; align-items: center; justify-content: space-between; }
.auth-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-submit { width: 100%; height: 44px; border-radius: 10px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); }


/* ============ Install guide + Auth card (extend.js) ============ */
.guide-steps { margin: 4px 0 8px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.guide-steps strong { color: var(--text); }
.auth-card { padding: 28px 26px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.auth-brand { display: flex; align-items: center; gap: 8px; justify-content: center; }
.auth-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: var(--primary-text); display: flex; align-items: center; justify-content: center; }
.auth-name { font-weight: 700; font-size: 16px; }
.auth-chip { font-size: 10px; letter-spacing: .08em; border: 1px solid var(--border-strong); border-radius: 99px; padding: 2px 8px; color: var(--muted); }
.auth-title { text-align: center; font-size: 20px; font-weight: 700; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-top: -6px; }
.auth-label { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; display: block; }
.auth-field { position: relative; }
.auth-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.auth-input { width: 100%; height: 42px; padding: 0 40px 0 34px; background: var(--hover); border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14px; }
.auth-input:focus { outline: none; border-color: var(--ring); }
.auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.auth-row { display: flex; align-items: center; justify-content: space-between; }
.auth-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-submit { width: 100%; height: 44px; border-radius: 10px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); }

.guide-steps { margin: 4px 0 8px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.guide-steps strong { color: var(--text); }
