:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-muted: #f8f9f7;
  --surface-strong: #edf0eb;
  --ink: #1d2520;
  --ink-soft: #667068;
  --ink-faint: #909990;
  --line: #dfe4de;
  --line-strong: #cbd2cb;
  --brand: #176b4d;
  --brand-strong: #10533b;
  --brand-soft: #e5f2eb;
  --amber: #9a6412;
  --amber-soft: #fff1d2;
  --red: #a33b34;
  --red-soft: #fae9e7;
  --blue: #2e5f91;
  --blue-soft: #e9f0f8;
  --shadow: 0 14px 38px rgba(30, 45, 35, 0.08);
  --sidebar: 236px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(23, 107, 77, 0.18);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 22px 14px 18px;
  background: #202923;
  color: #e9eee9;
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 25px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #d8f0e2;
  color: #174c38;
  border-radius: 7px;
  font-weight: 800;
}
.brand-copy strong { display: block; font-size: 15px; letter-spacing: 0; }
.brand-copy span { display: block; margin-top: 2px; font-size: 11px; color: #9eaaa1; }
.nav-group { display: grid; gap: 3px; }
.nav-label { margin: 18px 10px 8px; font-size: 10px; color: #8f9c92; text-transform: uppercase; }
.nav-item {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b9c4bb;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  cursor: pointer;
  text-align: left;
}
.nav-item:hover { background: #2a352d; color: #fff; }
.nav-item.active { background: #334238; color: #fff; }
.nav-item .nav-count { margin-left: auto; color: #90a097; font-size: 12px; }
.sidebar-foot { margin-top: auto; padding: 14px 5px 0; border-top: 1px solid #334038; }
.storage-note { padding: 5px 7px 12px; color: #8f9c92; font-size: 11px; line-height: 1.55; }

.main-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  height: 66px;
  padding: 0 28px;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.mobile-menu { display: none; }
.page-heading { min-width: 150px; }
.page-heading h1 { margin: 0; font-size: 17px; font-weight: 720; }
.page-heading p { margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; }
.top-search {
  width: min(420px, 42vw);
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: 6px;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  cursor: text;
}
.top-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.top-search kbd { border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: 4px; padding: 1px 5px; color: var(--ink-faint); background: #fff; font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.content { width: min(1240px, 100%); margin: 0 auto; padding: 26px 30px 54px; }

.icon { width: 17px; height: 17px; flex: 0 0 auto; stroke-width: 1.8; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 21px; height: 21px; }
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-muted); }
.btn {
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
}
.btn:hover { background: var(--surface-muted); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-danger { color: var(--red); border-color: #e7c2be; }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-quiet:hover { background: var(--surface-strong); }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 12px; }

.view-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.view-title h2 { margin: 0; font-size: 23px; font-weight: 760; }
.view-title p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.view-actions { display: flex; align-items: center; gap: 8px; }
.eyebrow { margin: 0 0 7px; color: var(--brand); font-size: 11px; font-weight: 750; text-transform: uppercase; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); background: var(--surface); border-radius: 7px; margin-bottom: 22px; overflow: hidden; }
.metric { padding: 17px 19px; border-right: 1px solid var(--line); min-width: 0; }
.metric:last-child { border-right: 0; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }
.metric-value { margin-top: 8px; font-size: 25px; font-weight: 760; }
.metric-note { margin-top: 3px; color: var(--ink-faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.panel-header { min-height: 52px; padding: 0 17px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-header h3 { margin: 0; font-size: 14px; font-weight: 720; }
.panel-header p { margin: 0; color: var(--ink-faint); font-size: 11px; }
.panel-header .panel-actions { margin-left: auto; display: flex; gap: 6px; }
.panel-body { padding: 16px 17px; }
.panel-body.flush { padding: 0; }

.task-list { display: grid; }
.task-row { min-height: 60px; padding: 10px 15px; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid #edf0ec; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #fafbf9; }
.task-check { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #aab4ac; background: #fff; cursor: pointer; display: grid; place-items: center; color: #fff; }
.task-check:hover { border-color: var(--brand); }
.task-check.done { border-color: var(--brand); background: var(--brand); }
.task-main { min-width: 0; }
.task-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 620; }
.task-title.done { color: var(--ink-faint); text-decoration: line-through; }
.task-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--ink-faint); font-size: 11px; }
.task-meta span { display: inline-flex; align-items: center; gap: 4px; }
.task-side { display: flex; align-items: center; gap: 8px; }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; background: #aab3ac; }
.priority-high { background: var(--red); }
.priority-medium { background: #d18a1d; }
.priority-low { background: var(--blue); }

.status, .tag { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; font-size: 10px; line-height: 1; }
.status { padding: 5px 7px; background: var(--surface-strong); color: var(--ink-soft); }
.status-doing { background: var(--blue-soft); color: var(--blue); }
.status-waiting { background: var(--amber-soft); color: var(--amber); }
.status-done { background: var(--brand-soft); color: var(--brand); }
.status-overdue { background: var(--red-soft); color: var(--red); }
.tag { padding: 4px 7px; color: var(--ink-soft); background: #f0f2ef; }

.project-table { width: 100%; border-collapse: collapse; }
.project-table th { height: 38px; padding: 0 14px; color: var(--ink-faint); font-size: 10px; font-weight: 650; text-align: left; background: var(--surface-muted); border-bottom: 1px solid var(--line); }
.project-table td { height: 61px; padding: 8px 14px; border-bottom: 1px solid #edf0ec; font-size: 12px; }
.project-table tbody tr { cursor: pointer; }
.project-table tbody tr:hover { background: #fafbf9; }
.project-table tbody tr:last-child td { border-bottom: 0; }
.project-name { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.project-swatch { width: 9px; height: 28px; border-radius: 3px; flex: 0 0 auto; }
.project-name strong { display: block; font-size: 13px; }
.project-name small { display: block; color: var(--ink-faint); margin-top: 3px; }
.progress { width: 100%; min-width: 90px; height: 5px; background: #e7ebe6; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.progress-cell { display: grid; grid-template-columns: minmax(70px,1fr) 32px; gap: 8px; align-items: center; }
.progress-cell em { color: var(--ink-soft); font-size: 10px; font-style: normal; }

.activity-list { display: grid; gap: 0; }
.activity-item { position: relative; padding: 2px 0 17px 22px; font-size: 12px; line-height: 1.45; }
.activity-item::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; border: 2px solid var(--surface); border-radius: 50%; background: #8ba397; box-shadow: 0 0 0 1px #b9c4bd; }
.activity-item::after { content: ""; position: absolute; left: 8px; top: 17px; bottom: 0; width: 1px; background: var(--line); }
.activity-item:last-child::after { display: none; }
.activity-item time { display: block; color: var(--ink-faint); font-size: 10px; margin-top: 3px; }

.filterbar { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; flex-wrap: wrap; }
.filterbar .spacer { margin-left: auto; }
.field-control { height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 12px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: var(--surface); }
.segment { height: 29px; min-width: 31px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-soft); cursor: pointer; display: inline-grid; place-items: center; }
.segment.active { color: var(--ink); background: var(--surface-strong); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.project-card { min-height: 174px; padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; }
.project-card:hover { border-color: #bcc7be; box-shadow: 0 8px 24px rgba(30,45,35,.06); }
.project-card-top { display: flex; justify-content: space-between; align-items: center; }
.project-card h3 { margin: 14px 0 5px; font-size: 15px; }
.project-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card-bottom { margin-top: auto; padding-top: 16px; }
.project-card-stats { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-faint); font-size: 10px; }

.project-hero { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; margin-bottom: 15px; }
.project-hero-main { display: flex; align-items: flex-start; gap: 15px; }
.project-hero .project-swatch { width: 11px; height: 48px; }
.project-hero h2 { margin: 0; font-size: 22px; }
.project-hero p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.project-hero-actions { margin-left: auto; display: flex; gap: 7px; }
.project-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }
.fact small { display: block; color: var(--ink-faint); font-size: 10px; margin-bottom: 6px; }
.fact strong { font-size: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.tab { min-height: 39px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }

.kanban { display: grid; grid-template-columns: repeat(4,minmax(220px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-column { background: #ecefeb; border: 1px solid var(--line); border-radius: 7px; padding: 10px; min-height: 320px; }
.kanban-title { display: flex; align-items: center; justify-content: space-between; padding: 3px 3px 10px; font-size: 12px; font-weight: 700; }
.kanban-title span { color: var(--ink-faint); font-weight: 500; }
.kanban-cards { display: grid; gap: 8px; }
.kanban-card { padding: 12px; background: #fff; border: 1px solid #dce2dc; border-radius: 6px; cursor: pointer; }
.kanban-card:hover { border-color: #b8c4ba; }
.kanban-card h4 { margin: 0; font-size: 12px; line-height: 1.45; }
.kanban-card .task-meta { margin-top: 9px; justify-content: space-between; }

.inbox-list { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.inbox-row { min-height: 67px; padding: 12px 16px; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #edf0ec; }
.inbox-row:last-child { border-bottom: 0; }
.type-icon { width: 29px; height: 29px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-strong); color: var(--ink-soft); }
.inbox-row h4 { margin: 0; font-size: 13px; }
.inbox-row p { margin: 4px 0 0; color: var(--ink-faint); font-size: 11px; }
.row-actions { display: flex; gap: 5px; }

.notes-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); border: 1px solid var(--line); background: var(--surface); border-radius: 7px; min-height: 600px; overflow: hidden; }
.notes-list { border-right: 1px solid var(--line); background: var(--surface-muted); }
.notes-list-head { padding: 12px; border-bottom: 1px solid var(--line); }
.notes-list-head input { width: 100%; }
.note-item { padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.note-item:hover, .note-item.active { background: #fff; }
.note-item.active { box-shadow: inset 3px 0 var(--brand); }
.note-item strong { display: block; font-size: 12px; }
.note-item p { margin: 5px 0; color: var(--ink-soft); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item small { color: var(--ink-faint); font-size: 10px; }
.note-editor { padding: 27px 30px; }
.note-editor input.note-title { width: 100%; border: 0; outline: 0; padding: 0; font-size: 24px; font-weight: 750; color: var(--ink); }
.note-editor-meta { display: flex; gap: 13px; padding: 10px 0 17px; margin-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--ink-faint); font-size: 11px; }
.note-content { width: 100%; min-height: 390px; border: 0; outline: 0; resize: vertical; color: var(--ink); line-height: 1.75; font-size: 13px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(95px,1fr)); border: 1px solid var(--line); border-radius: 7px; overflow-x: auto; background: var(--surface); }
.calendar-day { min-height: 130px; padding: 9px; border-right: 1px solid var(--line); }
.calendar-day:last-child { border-right: 0; }
.calendar-day h4 { margin: 0 0 9px; color: var(--ink-soft); font-size: 11px; }
.calendar-day.today { background: #f7fbf8; }
.calendar-event { margin-bottom: 6px; padding: 7px; border-left: 3px solid var(--brand); background: var(--surface-strong); border-radius: 3px; font-size: 10px; line-height: 1.35; }
.calendar-event.overdue { border-left-color: var(--red); background: var(--red-soft); }

.empty { min-height: 230px; padding: 35px; display: grid; place-items: center; text-align: center; color: var(--ink-soft); }
.empty .type-icon { width: 42px; height: 42px; margin: 0 auto 12px; }
.empty h3 { margin: 0; color: var(--ink); font-size: 14px; }
.empty p { max-width: 340px; margin: 7px auto 16px; font-size: 12px; line-height: 1.6; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(15, 22, 17, .42); display: grid; place-items: center; padding: 20px; }
.modal { width: min(560px,100%); max-height: min(760px,calc(100vh - 40px)); background: var(--surface); border-radius: 8px; box-shadow: var(--shadow); overflow: auto; }
.modal-head { height: 58px; padding: 0 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head button { margin-left: auto; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); padding: 9px 10px; }
.form-field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.color-options { display: flex; gap: 8px; }
.color-choice { width: 28px; height: 28px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.color-choice.active { box-shadow: 0 0 0 2px var(--ink); }

.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15,22,17,.42); padding-top: 10vh; }
.search-dialog { width: min(670px, calc(100% - 32px)); max-height: 72vh; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.search-input-wrap { height: 58px; padding: 0 17px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.search-input-wrap input { width: 100%; border: 0; outline: 0; font-size: 15px; }
.search-results { max-height: calc(72vh - 58px); overflow: auto; padding: 8px; }
.search-result { padding: 11px 12px; border-radius: 5px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; cursor: pointer; }
.search-result:hover { background: var(--surface-strong); }
.search-result strong { display: block; font-size: 12px; }
.search-result p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 230px; padding: 11px 13px; border-radius: 6px; background: #202923; color: #fff; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-facts { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 236px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .main-shell { margin-left: 0; }
  .topbar { height: 60px; padding: 0 14px; gap: 10px; }
  .mobile-menu { display: inline-grid; }
  .page-heading { min-width: 0; }
  .page-heading p { display: none; }
  .top-search { width: auto; margin-left: auto; border: 0; padding: 0; background: transparent; cursor: pointer; }
  .top-search input, .top-search kbd { display: none; }
  .top-actions .btn span { display: none; }
  .top-actions .btn { width: 36px; padding: 0; }
  .content { padding: 19px 14px 42px; }
  .view-header { align-items: flex-start; }
  .view-title h2 { font-size: 20px; }
  .view-title p { display: none; }
  .view-actions .btn:not(.btn-primary) { display: none; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 14px; }
  .metric-value { font-size: 21px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-table th:nth-child(3), .project-table td:nth-child(3), .project-table th:nth-child(4), .project-table td:nth-child(4) { display: none; }
  .project-hero-main { flex-wrap: wrap; }
  .project-hero-actions { width: 100%; margin-left: 26px; }
  .project-facts { grid-template-columns: repeat(2,1fr); }
  .notes-layout { grid-template-columns: 1fr; min-height: auto; }
  .notes-list { border-right: 0; max-height: 260px; overflow: auto; }
  .note-editor { padding: 22px 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .inbox-row { grid-template-columns: 31px minmax(0,1fr); }
  .inbox-row .row-actions { grid-column: 2; }
  .calendar-grid { min-width: 700px; }
  .tabs { overflow-x: auto; }
}

@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-note { display: none; }
  .task-side .status { display: none; }
  .project-facts { grid-template-columns: 1fr 1fr; gap: 11px; }
  .project-table th:nth-child(2), .project-table td:nth-child(2) { display: none; }
}

/* Fangcun Personal OS */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-muted: #f8f8fc;
  --surface-strong: #eff0f6;
  --ink: #292b3d;
  --ink-soft: #686b7b;
  --ink-faint: #9699a8;
  --line: #e5e6ee;
  --line-strong: #d5d7e2;
  --brand: #6558cf;
  --brand-strong: #5145b8;
  --brand-soft: #eeeafd;
  --amber: #aa6c19;
  --amber-soft: #fff3d7;
  --red: #b64c5b;
  --red-soft: #fcebef;
  --blue: #3974ac;
  --blue-soft: #eaf3fc;
  --green: #327b69;
  --green-soft: #e7f5f0;
  --pink: #aa5d85;
  --pink-soft: #faeaf3;
  --shadow: 0 12px 34px rgba(54, 51, 92, .08);
  --sidebar: 232px;
}

html { background: var(--bg); }
body { background: var(--bg); overflow-x: hidden; }
.app-shell { min-height: 100dvh; }

.sidebar {
  width: var(--sidebar);
  padding: 17px 14px 14px;
  background: #fbfbfe;
  color: var(--ink);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
}
.brand { padding: 0 5px 18px; gap: 10px; }
.brand-mark {
  width: 38px;
  height: 38px;
  color: #fff;
  background: #6558cf;
  border-radius: 8px;
  box-shadow: 0 7px 16px rgba(101, 88, 207, .2);
}
.brand-copy strong { font-size: 15px; }
.brand-copy span { color: #888a9a; font-size: 10px; }
.side-greeting {
  padding: 13px;
  margin-bottom: 16px;
  border: 1px solid #e1def6;
  border-radius: 8px;
  background: #f4f2ff;
}
.side-greeting small { display: block; color: var(--ink-faint); font-size: 10px; }
.side-greeting strong { display: block; margin-top: 9px; font-size: 13px; }
.side-greeting p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; }
.side-section-title { min-height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.side-section-title .icon-btn { width: 25px; height: 25px; border: 0; background: transparent; }
.side-stats { display: grid; gap: 2px; margin-bottom: 13px; }
.side-stats button,
.side-task,
.desktop-nav-item,
.link-button,
.project-mini-list button,
.recent-notes button,
.life-list button,
.learning-progress,
.resource-stats button,
.quick-actions button,
.asset-links button,
.kanban-card-main {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  text-align: left;
}
.side-stats button { height: 32px; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; border-radius: 5px; color: var(--ink-soft); font-size: 11px; }
.side-stats button:hover { background: #f0f0f7; color: var(--ink); }
.side-stats button span { display: flex; align-items: center; gap: 7px; }
.side-stats button b { color: var(--ink); }
.side-task-list { display: grid; margin-bottom: 13px; }
.side-task { min-width: 0; min-height: 31px; padding: 5px 7px; display: grid; grid-template-columns: 7px minmax(0,1fr); align-items: center; gap: 8px; border-radius: 5px; font-size: 11px; }
.side-task:hover { background: #f0f0f7; }
.side-task span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-empty { margin: 5px 8px 12px; color: var(--ink-faint); font-size: 10px; }
.side-reminders { display: grid; gap: 2px; padding: 0 7px; }
.side-reminders > div { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10px; }
.side-reminders span { min-width: 0; display: flex; align-items: center; gap: 6px; }
.side-reminders b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.side-reminders time { flex: 0 0 auto; color: var(--ink-faint); }
.sidebar-foot { margin-top: auto; padding: 10px 0 0; border-color: var(--line); }
.sidebar-foot .nav-item { color: var(--ink-soft); }
.sidebar-foot .nav-item:hover { background: #f0f0f7; color: var(--ink); }

.main-shell { margin-left: var(--sidebar); }
.topbar {
  height: 66px;
  padding: 0 20px;
  gap: 16px;
  background: rgba(255,255,255,.94);
  border-color: var(--line);
}
.desktop-nav { height: 100%; display: flex; align-items: stretch; gap: 1px; }
.desktop-nav-item { position: relative; min-width: 56px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.desktop-nav-item::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: transparent; }
.desktop-nav-item:hover { color: var(--ink); }
.desktop-nav-item.active { color: var(--brand); font-weight: 700; }
.desktop-nav-item.active::after { background: var(--brand); }
.mobile-heading { display: none; }
.top-search { width: min(370px, 33vw); margin-left: auto; background: #fafafe; border-radius: 7px; }
.top-search kbd { font-family: inherit; }
.profile-button { width: 37px; height: 37px; border: 1px solid #c9c3f1; border-radius: 50%; background: #6b5fd3; color: #fff; font-weight: 750; cursor: pointer; }
.content { width: min(1420px, 100%); padding: 18px 22px 48px; }
.mobile-bottom-nav { display: none; }

.focus-hero {
  min-height: 284px;
  padding: 27px 30px 24px;
  margin-bottom: 15px;
  border: 1px solid #e1e3ed;
  border-radius: 8px;
  background-color: #f4f7fb;
  background-image: url("./assets/fangcun-hero.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.focus-heading { width: 58%; }
.focus-heading > span { color: var(--brand); font-size: 10px; font-weight: 700; }
.focus-heading h2 { max-width: 600px; margin: 6px 0 5px; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.focus-heading p { margin: 0; color: #5f6475; font-size: 12px; }
.focus-brief { width: min(720px, 64%); margin-top: 25px; padding: 14px 16px; border: 1px solid rgba(221,221,235,.9); border-radius: 7px; background: rgba(255,255,255,.91); backdrop-filter: blur(8px); }
.focus-label { display: flex; align-items: center; gap: 6px; color: var(--brand); font-size: 10px; font-weight: 750; }
.focus-task { margin-top: 9px; display: flex; align-items: center; gap: 20px; }
.focus-task > div:first-child { min-width: 0; flex: 1; }
.focus-task h3 { margin: 0; font-size: 14px; }
.focus-task p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-meta { margin-top: 9px; display: flex; gap: 14px; color: var(--ink-faint); font-size: 9px; }
.focus-actions { display: flex; gap: 7px; flex: 0 0 auto; }

.workspace-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.workspace-card { min-width: 0; min-height: 230px; padding: 15px 16px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.workspace-card-head { min-height: 38px; display: flex; align-items: center; gap: 8px; }
.workspace-index { color: var(--ink-faint); font-size: 10px; }
.workspace-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; }
.workspace-icon.lavender { color: #6b5fd3; background: #eeeafd; }
.workspace-icon.amber { color: #9b6b20; background: #fff1d5; }
.workspace-icon.blue { color: #3974ac; background: #e8f3fd; }
.workspace-icon.green { color: #327b69; background: #e4f5ef; }
.workspace-icon.pink { color: #a95680; background: #fae8f2; }
.workspace-icon.rose { color: #b45b6a; background: #fcebef; }
.workspace-card-head > div { min-width: 0; }
.workspace-card-head h3 { margin: 0; font-size: 13px; }
.workspace-card-head p { margin: 2px 0 0; color: var(--ink-faint); font-size: 9px; }
.link-button { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--brand); font-size: 9px; white-space: nowrap; }
.link-button:hover { text-decoration: underline; }
.compact-list { margin-top: 13px; display: grid; }
.compact-task { min-height: 36px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 6px; border-bottom: 1px solid #f0f0f5; }
.compact-task:last-child { border-bottom: 0; }
.compact-task-title { min-width: 0; border: 0; background: transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; cursor: pointer; font-size: 10px; }
.task-status-select { height: 25px; max-width: 80px; padding: 0 22px 0 7px; border: 1px solid var(--line); border-radius: 5px; background: #fafafe; color: var(--ink-soft); font-size: 9px; cursor: pointer; }
.workspace-empty { min-height: 115px; display: grid; place-items: center; color: var(--ink-faint); font-size: 10px; text-align: center; }
.project-mini-list { margin-top: 12px; display: grid; gap: 2px; }
.project-mini-list button { min-height: 35px; padding: 3px 2px; display: grid; grid-template-columns: 7px minmax(0,1fr) 31px; align-items: center; gap: 8px; }
.project-mini-list b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.project-mini-list i { height: 3px; margin-top: 5px; display: block; border-radius: 99px; background: #ececf2; overflow: hidden; }
.project-mini-list i span { height: 100%; display: block; background: #7468d4; }
.project-mini-list em { color: var(--ink-faint); font-size: 9px; font-style: normal; text-align: right; }
.resource-stats { margin-top: 17px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid #edf0f4; border-radius: 6px; overflow: hidden; }
.resource-stats button { min-height: 63px; padding: 9px 4px; display: grid; place-items: center; border-right: 1px solid #edf0f4; }
.resource-stats button:last-child { border-right: 0; }
.resource-stats b { color: var(--blue); font-size: 16px; }
.resource-stats span { color: var(--ink-faint); font-size: 8px; }
.card-link { margin: 15px 0 0; }
.learning-progress { width: 100%; min-height: 84px; margin-top: 12px; padding: 11px; display: grid; grid-template-columns: minmax(0,1fr) 40px; gap: 8px; align-items: center; border: 1px solid #edf0f1; border-radius: 6px; }
.learning-progress > span { min-width: 0; }
.learning-progress b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.learning-progress small { display: block; margin-top: 4px; color: var(--ink-faint); font-size: 8px; }
.learning-progress i { grid-column: 1; height: 4px; border-radius: 99px; background: #e7efe9; overflow: hidden; }
.learning-progress i span { display: block; height: 100%; background: #4e9b82; }
.learning-progress em { grid-row: 1 / span 2; grid-column: 2; color: var(--green); font-size: 12px; font-style: normal; text-align: right; }
.learning-stats { margin-top: 12px; display: flex; gap: 15px; color: var(--ink-soft); font-size: 9px; }
.learning-stats span { display: flex; align-items: center; gap: 5px; }
.recent-notes { margin-top: 12px; display: grid; }
.recent-notes button { min-height: 34px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 6px; border-bottom: 1px solid #f0f0f5; }
.recent-notes span { color: var(--pink); }
.recent-notes b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.recent-notes time { color: var(--ink-faint); font-size: 8px; }
.life-list { margin-top: 12px; display: grid; }
.life-list button { min-height: 36px; display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 7px; border-bottom: 1px solid #f0f0f5; }
.life-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.life-list small { color: var(--ink-faint); font-size: 8px; }

.dashboard-bottom-grid { margin-top: 13px; display: grid; grid-template-columns: 1.1fr .85fr .8fr; gap: 13px; }
.quick-workbench,
.assistant-card,
.assets-card { min-height: 150px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bottom-card-title { display: flex; align-items: center; gap: 9px; }
.bottom-card-title > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; color: var(--brand); background: var(--brand-soft); }
.bottom-card-title h3 { margin: 0; font-size: 12px; }
.bottom-card-title p { margin: 2px 0 0; color: var(--ink-faint); font-size: 9px; }
.quick-actions { margin-top: 16px; display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.quick-actions button { min-width: 0; display: grid; justify-items: center; gap: 6px; color: var(--ink-soft); font-size: 9px; }
.quick-actions button span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e7e6f1; border-radius: 7px; background: #fafafe; color: var(--brand); }
.quick-actions button:hover span { border-color: #cfc9f1; background: #f2efff; }
.quick-actions b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.assistant-card { display: flex; align-items: center; gap: 13px; background: #f5f2ff; border-color: #e2dcf8; }
.assistant-mark { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #6b5fd3; color: #fff; font-size: 18px; font-weight: 800; }
.assistant-card h3 { margin: 0; font-size: 12px; }
.assistant-card p { margin: 6px 0 10px; color: var(--ink-soft); font-size: 9px; line-height: 1.55; }
.asset-links { height: 85px; margin-top: 12px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #edf0f4; border-radius: 6px; overflow: hidden; }
.asset-links button { display: grid; place-items: center; padding: 10px 3px; border-right: 1px solid #edf0f4; }
.asset-links button:last-child { border-right: 0; }
.asset-links b { color: var(--brand); font-size: 16px; }
.asset-links span { color: var(--ink-faint); font-size: 8px; }

.quick-create-grid button { min-height: 110px; cursor: pointer; text-align: left; }
.quick-create-grid button strong { display: block; margin-top: 8px; }
.quick-create-grid button span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 11px; }
.quick-create-grid button.full { grid-column: 1 / -1; min-height: 80px; }
.recognize-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; padding: 11px 12px; border-radius: 6px; background: var(--brand-soft); color: var(--ink-soft); font-size: 11px; }
.recognize-summary > span:first-child { display: flex; align-items: center; gap: 7px; color: var(--brand); }
.duplicate-summary { color: var(--red); }
.recognize-list { max-height: 430px; display: grid; gap: 7px; overflow-y: auto; }
.recognize-item { padding: 11px; display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 9px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.recognize-item.is-duplicate { border-color: #efc8cf; background: #fffafb; }
.recognize-item b { display: block; font-size: 12px; }
.recognize-item small { display: block; margin-top: 5px; color: var(--ink-faint); font-size: 9px; }
.recognize-item em { display: block; margin-top: 6px; color: var(--red); font-size: 9px; font-style: normal; }
.recognize-hint { padding: 10px 11px; border-radius: 5px; background: #f6f6fa; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }

.kanban { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.kanban-column { flex: 0 0 min(270px, 76vw); }
.kanban-card { padding: 0; overflow: hidden; }
.kanban-card-main { width: 100%; padding: 12px; }
.kanban-card-main h4 { margin: 0; font-size: 12px; }
.kanban-card-main span { display: block; margin-top: 8px; color: var(--ink-faint); font-size: 10px; }
.kanban-card-foot { min-height: 36px; padding: 5px 10px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .workspace-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-bottom-grid { grid-template-columns: 1fr 1fr; }
  .assets-card { grid-column: 1 / -1; }
  .desktop-nav-item { min-width: 47px; padding: 0 7px; }
  .desktop-nav-item span { display: none; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  body { padding-bottom: env(safe-area-inset-bottom); }
  .sidebar { z-index: 71; width: min(86vw, 320px); padding: 17px 15px; transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 70; border: 0; background: rgba(31, 29, 48, .36); }
  .main-shell { margin-left: 0; min-width: 0; }
  .topbar { height: 58px; padding: 0 12px; gap: 8px; }
  .mobile-menu { display: inline-grid; }
  .desktop-nav { display: none; }
  .mobile-heading { min-width: 0; display: block; }
  .mobile-heading h1 { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .top-search { width: 34px; height: 34px; margin-left: auto; display: grid; place-items: center; }
  .top-search input, .top-search kbd { display: none; }
  .top-actions { gap: 5px; }
  .top-actions .icon-btn { display: none; }
  .profile-button { width: 34px; height: 34px; }
  .content { width: 100%; padding: 12px 12px calc(88px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; height: calc(64px + env(safe-area-inset-bottom)); padding: 5px 10px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); align-items: center; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
  .mobile-bottom-nav button { min-width: 0; height: 50px; border: 0; background: transparent; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--ink-faint); font-size: 9px; cursor: pointer; }
  .mobile-bottom-nav button.active { color: var(--brand); }
  .mobile-bottom-nav .mobile-create { color: var(--brand); }
  .mobile-bottom-nav .mobile-create .icon { width: 29px; height: 29px; padding: 6px; border-radius: 50%; background: var(--brand); color: #fff; }

  .focus-hero { min-height: 0; padding: 175px 15px 15px; margin-bottom: 11px; background-size: auto 170px; background-position: 65% top; background-repeat: no-repeat; background-color: #fff; }
  .focus-heading { width: 100%; }
  .focus-heading h2 { margin-top: 5px; font-size: 20px; }
  .focus-heading p { font-size: 11px; line-height: 1.55; }
  .focus-brief { width: 100%; margin-top: 15px; padding: 12px; background: #f7f5ff; backdrop-filter: none; }
  .focus-task { align-items: stretch; flex-direction: column; gap: 12px; }
  .focus-task p { white-space: normal; line-height: 1.5; }
  .focus-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .focus-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .focus-actions .btn { padding: 0 8px; }

  .workspace-grid,
  .dashboard-bottom-grid { grid-template-columns: 1fr; gap: 11px; }
  .workspace-card { min-height: 0; padding: 14px; }
  .workspace-card-head { align-items: flex-start; }
  .workspace-card-head .link-button { padding-top: 7px; }
  .compact-list,
  .project-mini-list,
  .recent-notes,
  .life-list { margin-top: 11px; }
  .compact-task { min-height: 43px; }
  .compact-task-title { font-size: 11px; }
  .task-status-select { height: 30px; max-width: 92px; font-size: 10px; }
  .resource-stats button { min-height: 58px; }
  .dashboard-bottom-grid { margin-top: 11px; }
  .assets-card { grid-column: auto; }
  .quick-actions { grid-template-columns: repeat(3,1fr); row-gap: 14px; }
  .quick-workbench, .assistant-card, .assets-card { min-height: 0; }

  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: calc(92dvh - env(safe-area-inset-bottom)); border-radius: 8px 8px 0 0; }
  .modal-head { height: 54px; }
  .modal-body { padding: 16px; }
  .modal-foot { position: sticky; bottom: 0; padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); background: #fff; }
  .recognize-summary { align-items: flex-start; flex-direction: column; }
  .quick-create-grid button.full { grid-column: auto; }

  .view-header { margin-bottom: 14px; }
  .view-title h2 { font-size: 18px; }
  .project-hero { padding: 15px; }
  .project-hero-main { flex-wrap: wrap; }
  .project-hero-actions { width: 100%; margin-left: 0; }
  .project-facts { grid-template-columns: repeat(2,1fr); }
  .tabs { overflow-x: auto; }
  .kanban { margin-right: -12px; padding-right: 12px; scroll-snap-type: x proximity; }
  .kanban-column { flex-basis: calc(100vw - 54px); min-width: 0; scroll-snap-align: start; }
  .task-row { grid-template-columns: 25px minmax(0,1fr); padding: 11px 12px; }
  .task-side { grid-column: 2; justify-content: space-between; }
  .task-side .status { display: none; }
  .task-side .task-status-select { display: block; }
  .task-main { min-width: 0; }
  .task-title { line-height: 1.45; }
  .notes-layout { border-radius: 7px; }
  .toast-region { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; }
}

@media (min-width: 821px) {
  .task-row .task-status-select { display: none; }
}

@media (max-width: 390px) {
  .focus-hero { padding-left: 12px; padding-right: 12px; }
  .focus-actions { grid-template-columns: 1fr; }
  .workspace-card-head p { display: none; }
  .workspace-card-head .link-button { font-size: 0; }
  .workspace-card-head .link-button .icon { width: 16px; height: 16px; }
  .resource-stats { grid-template-columns: repeat(2,1fr); }
  .resource-stats button:nth-child(2) { border-right: 0; }
  .resource-stats button:nth-child(-n+2) { border-bottom: 1px solid #edf0f4; }
  .quick-actions { grid-template-columns: repeat(3,1fr); }
  .assistant-card { align-items: flex-start; }
  .assistant-mark { width: 40px; height: 40px; }
}

/* Authentication and cloud bootstrap */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(244, 241, 255, 0.96), rgba(255, 252, 246, 0.98)),
    url("./assets/fangcun-hero.png") center / cover;
}

.auth-card {
  width: min(420px, 100%);
  padding: 38px;
  border: 1px solid rgba(101, 88, 207, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(66, 53, 121, 0.16);
  text-align: center;
}

.auth-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 8px;
  color: #fff;
  background: #6558cf;
  font-size: 26px;
  font-weight: 800;
}

.auth-eyebrow {
  color: #6558cf;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-card h1 { margin: 8px 0 10px; font-size: 28px; }
.auth-card > p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.auth-form { display: grid; gap: 10px; margin-top: 26px; text-align: left; }
.auth-form label { font-size: 13px; font-weight: 750; }
.auth-form input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; }
.auth-form input:focus { outline: 2px solid rgba(101, 88, 207, 0.2); border-color: #6558cf; }
.auth-form .btn { width: 100%; justify-content: center; height: 44px; margin-top: 4px; }
.auth-error { min-height: 18px; color: #b42318; font-size: 12px; }
.auth-loading { padding-block: 54px; }
.loading-line { display: block; width: 160px; height: 3px; margin: 24px auto 0; overflow: hidden; background: #eceaf7; }
.loading-line::after { content: ""; display: block; width: 45%; height: 100%; background: #6558cf; animation: auth-loading 1.1s ease-in-out infinite alternate; }
@keyframes auth-loading { to { transform: translateX(122%); } }

@media (max-width: 520px) {
  .auth-screen { padding: 16px; }
  .auth-card { padding: 28px 22px; }
}
