:root {
  --bg: #f3f0e8;
  --surface: #fffdf8;
  --surface-soft: #f8f5ee;
  --ink: #1f2b2a;
  --muted: #6d7774;
  --line: #dedbd2;
  --accent: #185e55;
  --accent-2: #d66f45;
  --accent-soft: #dfece8;
  --gold: #be8a32;
  --red: #b95145;
  --blue: #436e88;
  --shadow: 0 18px 50px rgba(39, 47, 45, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 5%, rgba(214, 111, 69, 0.10), transparent 26rem),
    radial-gradient(circle at 12% 92%, rgba(24, 94, 85, 0.08), transparent 28rem),
    var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 22px 22px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.82);
  border-right: 1px solid rgba(222, 219, 210, 0.9);
  backdrop-filter: blur(18px);
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 34px; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 15px; color: white; background: var(--accent);
  font-family: Georgia, serif; font-size: 19px; box-shadow: 0 10px 24px rgba(24, 94, 85, .22);
}
.brand-mark span { font-size: 11px; margin-left: 1px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }

.nav-list { display: grid; gap: 7px; }
.nav-item {
  width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 13px;
  display: flex; align-items: center; gap: 11px; color: var(--muted); background: transparent;
  cursor: pointer; text-align: left; transition: .18s ease;
}
.nav-item:hover { color: var(--ink); background: var(--surface-soft); transform: translateX(2px); }
.nav-item.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.nav-icon { width: 22px; text-align: center; font-size: 19px; font-family: Georgia, serif; }
.nav-badge { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; display: grid; place-items: center; color: white; background: var(--accent-2); border-radius: 99px; font-size: 11px; }
.nav-badge:empty, .nav-badge[data-zero="true"] { display: none; }

.sidebar-foot { margin-top: auto; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(248,245,238,.8); }
.sidebar-foot p { margin: 0 0 10px; font-weight: 700; font-size: 13px; }
.mini-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e1ded5; }
.mini-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), #4f9185); border-radius: inherit; transition: width .3s ease; }
.sidebar-stat { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 10px; }
.text-button { padding: 0; margin-top: 13px; border: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }

.main-content { min-width: 0; }
.topbar {
  min-height: 112px; padding: 27px clamp(24px, 4vw, 58px) 22px;
  display: flex; align-items: center; gap: 18px; border-bottom: 1px solid rgba(222,219,210,.7);
  background: rgba(243, 240, 232, .68); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 8;
}
.topbar h1 { margin: 3px 0 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(22px, 3vw, 32px); font-weight: 600; }
.eyebrow { margin: 0; color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.topbar-actions { margin-left: auto; display: flex; gap: 9px; }
.sync-button { min-height: 40px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sync-button:hover { color: var(--ink); border-color: #bcb8ae; background: white; }
.sync-button i, .cloud-state-card > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #a8aca8; box-shadow: 0 0 0 4px rgba(168,172,168,.14); }
.sync-button[data-state="syncing"] i, .cloud-state-card[data-state="syncing"] > i { background: var(--gold); box-shadow: 0 0 0 4px rgba(190,138,50,.15); animation: sync-pulse 1.1s ease-in-out infinite; }
.sync-button[data-state="synced"] i, .cloud-state-card[data-state="synced"] > i { background: var(--accent); box-shadow: 0 0 0 4px rgba(24,94,85,.14); }
.sync-button[data-state="offline"] i, .cloud-state-card[data-state="offline"] > i { background: var(--blue); box-shadow: 0 0 0 4px rgba(67,110,136,.14); }
.sync-button[data-state="error"] i, .cloud-state-card[data-state="error"] > i { background: var(--red); box-shadow: 0 0 0 4px rgba(185,81,69,.14); }
@keyframes sync-pulse { 50% { opacity: .42; transform: scale(.82); } }
.primary-button, .secondary-button, .ghost-button, .danger-button {
  min-height: 40px; padding: 0 16px; border-radius: 11px; cursor: pointer; font-weight: 700; font-size: 13px; transition: .18s ease;
}
.primary-button { color: white; border: 1px solid var(--accent); background: var(--accent); box-shadow: 0 8px 18px rgba(24,94,85,.15); }
.primary-button:hover { transform: translateY(-1px); background: #104f47; }
.link-button { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.small-button { min-height: 32px; padding-inline: 10px; font-size: 10px; }
.secondary-button { border: 1px solid var(--line); background: var(--surface); }
.secondary-button:hover, .ghost-button:hover { border-color: #bcb8ae; background: white; }
.ghost-button { min-height: 34px; padding: 0 11px; color: var(--accent); border: 1px solid transparent; background: transparent; }
.danger-button { color: var(--red); border: 1px solid rgba(185,81,69,.25); background: rgba(185,81,69,.06); }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; }
.menu-button { display: none; }
.view-root { padding: 28px clamp(24px, 4vw, 58px) 54px; max-width: 1500px; margin: 0 auto; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); gap: 20px; }
.panel { padding: 22px; border: 1px solid rgba(222,219,210,.95); border-radius: var(--radius); background: rgba(255,253,248,.88); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-weight: 600; }
.panel-head h2 { font-size: 21px; }
.panel-head h3 { font-size: 17px; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.energy-card { position: relative; overflow: hidden; min-height: 250px; padding: 28px; color: white; border-radius: 24px; background: var(--accent); box-shadow: 0 20px 45px rgba(24,94,85,.18); }
.energy-card::after { content: ""; position: absolute; right: -75px; bottom: -95px; width: 250px; height: 250px; border: 45px solid rgba(255,255,255,.06); border-radius: 50%; }
.energy-card h2 { position: relative; margin: 12px 0 8px; font-family: Georgia, "Songti SC", serif; font-size: clamp(24px, 4vw, 37px); font-weight: 500; z-index: 1; }
.energy-card > p { position: relative; max-width: 560px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; z-index: 1; }
.energy-picker { position: relative; display: flex; gap: 8px; margin-top: 25px; z-index: 1; }
.energy-option { padding: 9px 15px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.25); border-radius: 99px; background: rgba(255,255,255,.06); cursor: pointer; }
.energy-option.active { color: var(--accent); background: white; border-color: white; font-weight: 800; }
.suggestion { position: relative; margin-top: 19px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); z-index: 1; }
.suggestion small { color: rgba(255,255,255,.6); }
.suggestion strong { display: block; margin-top: 5px; font-size: 14px; }

.focus-card { display: flex; flex-direction: column; min-height: 250px; }
.focus-orbit { width: 126px; height: 126px; margin: 4px auto 18px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent-2) var(--ring), #ece8df 0); position: relative; }
.focus-orbit::before { content: ""; position: absolute; width: 98px; height: 98px; border-radius: inherit; background: var(--surface); }
.focus-orbit div { position: relative; text-align: center; }
.focus-orbit strong { display: block; font-family: Georgia, serif; font-size: 28px; }
.focus-orbit span { color: var(--muted); font-size: 10px; }
.focus-caption { margin: auto 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 20px 0; }
.stat-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.75); }
.stat-card span { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.stat-card small { margin-left: 5px; color: var(--muted); font-family: "Microsoft YaHei", sans-serif; font-size: 10px; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .75fr); gap: 20px; align-items: start; }
.task-list { display: grid; gap: 10px; }
.empty-state { padding: 34px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 15px; background: var(--surface-soft); }
.empty-state .empty-icon { display: block; margin-bottom: 8px; color: var(--accent); font-family: Georgia, serif; font-size: 28px; }
.empty-state strong { display: block; font-size: 14px; }
.empty-state p { margin: 7px auto 0; max-width: 420px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.task-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: .18s ease; }
.task-item:hover { border-color: #c7c2b7; transform: translateY(-1px); }
.task-check { width: 24px; height: 24px; padding: 0; border: 1.5px solid #b9b5ab; border-radius: 8px; background: white; cursor: pointer; }
.task-check:hover { border-color: var(--accent); }
.task-item.done { opacity: .62; }
.task-item.done .task-check { color: white; border-color: var(--accent); background: var(--accent); }
.task-item.done .task-title { text-decoration: line-through; }
.task-main { min-width: 0; }
.task-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tag { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border-radius: 6px; color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.tag.minimum { color: #9f5937; background: #f8e8dc; }
.tag.core { color: var(--accent); background: var(--accent-soft); }
.tag.high { color: var(--red); background: #f6e3df; }
.task-actions { display: flex; align-items: center; gap: 5px; }
.more-button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.more-button:hover { background: var(--surface-soft); }
.inline-actions { display: none; gap: 4px; }
.task-item.expanded .inline-actions { display: flex; }

.mode-guide { display: grid; gap: 13px; }
.mode-row { display: grid; grid-template-columns: 9px minmax(0,1fr); gap: 10px; }
.mode-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--accent); }
.mode-row:nth-child(2) .mode-dot { background: var(--accent-2); }
.mode-row:nth-child(3) .mode-dot { background: var(--gold); }
.mode-row strong { display: block; font-size: 12px; }
.mode-row p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.quote-card { margin-top: 18px; padding: 15px; border-radius: 14px; color: var(--accent); background: var(--accent-soft); font-family: Georgia, "Songti SC", serif; font-size: 13px; line-height: 1.7; }

.page-intro { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-actions { display: flex; gap: 9px; align-items: flex-start; }
.page-intro h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 25px; font-weight: 600; }
.page-intro p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 17px; }
.filter-chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 11px; }
.filter-chip.active { color: white; border-color: var(--accent); background: var(--accent); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(215px, 1fr)); gap: 13px; overflow-x: auto; padding-bottom: 8px; }
.week-schedule-panel { margin-bottom: 0; overflow: hidden; }
.week-schedule-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.week-schedule-head h2 { margin: 2px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 21px; font-weight: 600; }
.week-schedule-head p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.week-navigator { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.week-navigator > .secondary-button { min-width: 40px; padding-inline: 11px; }
.week-date-picker { min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.week-date-picker span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.week-date-picker input { width: 116px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.week-schedule { display: grid; grid-template-columns: repeat(7, minmax(135px,1fr)); gap: 9px; overflow-x: auto; padding-bottom: 5px; }
.schedule-day { min-height: 162px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.schedule-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.schedule-day.past { opacity: .56; }
.schedule-day.rest { background: #eeebe4; }
.schedule-day header { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.schedule-day header strong { display: block; font-size: 11px; }
.schedule-day header span, .schedule-day header small { color: var(--muted); font-size: 8px; }
.schedule-day-tasks { display: grid; gap: 6px; margin-top: 9px; }
.schedule-chip { padding: 7px; overflow: hidden; border-radius: 8px; color: var(--muted); background: white; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.schedule-chip.core { color: var(--accent); background: var(--accent-soft); }
.schedule-chip.minimum { color: #9f5937; background: #f8e8dc; }
.schedule-chip.review-chip { color: var(--blue); background: #e4edf2; }
.schedule-empty { padding: 15px 0; color: #a5aaa7; font-size: 9px; text-align: center; }
.kanban-column { min-height: 430px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: rgba(248,245,238,.78); }
.kanban-column.drag-over { outline: 2px solid var(--accent); outline-offset: -2px; }
.kanban-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 3px 13px; }
.kanban-head strong { font-size: 12px; }
.kanban-count { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; color: var(--muted); background: #e8e4db; font-size: 9px; }
.kanban-tasks { display: grid; gap: 9px; }
.kanban-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 6px 16px rgba(39,47,45,.04); cursor: grab; }
.kanban-card:active { cursor: grabbing; }
.kanban-card h4 { margin: 0; font-size: 12px; line-height: 1.55; }
.kanban-card p { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.kanban-card .card-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 12px; }
.priority-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.priority-mark.p2 { background: var(--gold); }
.priority-mark.p3 { background: var(--red); }

.problem-hero { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 20px; }
.problem-progress-card { min-height: 220px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 22px; overflow: hidden; position: relative; color: white; border-radius: 23px; background: linear-gradient(125deg, #185e55, #174f49); box-shadow: 0 20px 45px rgba(24,94,85,.17); }
.problem-progress-card::after { content: "{ }"; position: absolute; right: 180px; bottom: -43px; color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: 180px; }
.article-progress-card { background: linear-gradient(125deg, #9c5938, #713d2a); box-shadow: 0 20px 45px rgba(140,77,47,.17); }
.article-progress-card::after { content: "≡"; right: 220px; bottom: -70px; font-size: 220px; }
.problem-progress-copy { position: relative; z-index: 1; }
.problem-progress-copy h2 { margin: 10px 0 8px; font-family: Georgia, "Songti SC", serif; font-size: clamp(24px,3vw,34px); font-weight: 500; }
.problem-progress-copy > p:last-child { max-width: 520px; margin: 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.7; }
.problem-big-ring { flex: 0 0 auto; width: 132px; height: 132px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 50%; background: conic-gradient(#e7a07e var(--ring), rgba(255,255,255,.13) 0); }
.problem-big-ring::before { content: ""; position: absolute; width: 102px; height: 102px; border-radius: inherit; background: #185850; }
.article-big-ring { background: conic-gradient(#f0c186 var(--ring), rgba(255,255,255,.13) 0); }
.article-big-ring::before { background: #884b31; }
.problem-big-ring div { position: relative; text-align: center; }
.problem-big-ring strong { display: block; font-family: Georgia, serif; font-size: 28px; }
.problem-big-ring span { color: rgba(255,255,255,.62); font-size: 9px; }
.import-card { display: flex; flex-direction: column; justify-content: center; margin: 0 !important; }
.import-card h3 { margin: 8px 0; font-family: Georgia, "Songti SC", serif; font-size: 18px; }
.import-card p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.import-card .primary-button { align-self: flex-start; }
.problem-toolbar { display: grid; grid-template-columns: minmax(240px,1fr) 150px 110px; gap: 9px; margin-bottom: 14px; }
.problem-toolbar select, .problem-search { min-height: 42px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.article-toolbar { display: grid; grid-template-columns: minmax(230px,1fr) 120px 150px 120px; gap: 9px; margin-bottom: 14px; }
.article-toolbar select { min-height: 42px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: white; }
.problem-toolbar select { padding: 0 10px; color: var(--ink); }
.problem-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); }
.problem-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.problem-filters { align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.visible-count { margin-left: auto; color: var(--muted); font-size: 10px; }
.problem-table-head, .problem-row { display: grid; grid-template-columns: 52px minmax(220px,1fr) 90px 64px 72px 205px; gap: 12px; align-items: center; }
.problem-table-head { padding: 7px 13px 10px; color: var(--muted); font-size: 9px; }
.problem-list { display: grid; }
.problem-row { min-height: 74px; padding: 11px 13px; border-top: 1px solid #ece9e1; }
.problem-row[hidden] { display: none; }
.problem-row:hover { background: var(--surface-soft); }
.problem-number { color: var(--muted); font-family: Georgia, serif; font-size: 13px; }
.problem-title { min-width: 0; }
.problem-title a { display: block; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.problem-title a:hover { color: var(--accent); }
.problem-title small { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.problem-group { color: var(--muted); font-size: 10px; }
.difficulty, .problem-status { width: fit-content; padding: 5px 7px; border-radius: 7px; font-size: 9px; white-space: nowrap; }
.difficulty.easy { color: var(--accent); background: var(--accent-soft); }
.difficulty.medium { color: #9a6716; background: #f6ecd7; }
.difficulty.hard { color: var(--red); background: #f6e3df; }
.problem-status { color: var(--muted); background: #ece9e1; }
.problem-status.doing { color: var(--blue); background: #e3edf2; }
.problem-status.learning { color: var(--blue); background: #e3edf2; }
.problem-status.solved { color: var(--accent); background: var(--accent-soft); }
.problem-status.learned { color: var(--accent); background: var(--accent-soft); }
.problem-status.review { color: #a45632; background: #fae6db; }
.problem-status.mastered { color: white; background: var(--accent); }
.problem-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.open-problem { display: grid; place-items: center; text-decoration: none; }

.article-table-head, .article-row { display: grid; grid-template-columns: 74px minmax(240px,1fr) 105px 58px 72px 205px; gap: 12px; align-items: center; }
.article-table-head { padding: 7px 13px 10px; color: var(--muted); font-size: 9px; }
.article-list { display: grid; }
.article-row { min-height: 74px; padding: 11px 13px; border-top: 1px solid #ece9e1; }
.article-row[hidden] { display: none; }
.article-row:hover { background: var(--surface-soft); }
.series-badge, .core-badge { width: fit-content; padding: 5px 7px; border-radius: 7px; font-size: 9px; white-space: nowrap; }
.series-badge { color: white; background: var(--blue); }
.series-badge.mysql { background: #6c668e; }
.series-badge.redis { background: #a65449; }
.series-badge.网络 { background: var(--blue); }
.series-badge.操作系统 { background: var(--accent); }
.series-badge.cpp { background: #574c85; }
.core-badge.core { color: #975f11; background: #f6e8cc; }
.core-badge.extra { color: var(--muted); background: #ece9e1; }

.knowledge-summary { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 22px; align-items: center; }
.knowledge-ring { width: 154px; height: 154px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) var(--ring), #ebe7dd 0); position: relative; }
.knowledge-ring::before { content: ""; position: absolute; width: 119px; height: 119px; border-radius: inherit; background: var(--surface); }
.knowledge-ring div { position: relative; text-align: center; }
.knowledge-ring strong { display: block; font-family: Georgia, serif; font-size: 32px; }
.knowledge-ring span { color: var(--muted); font-size: 10px; }
.level-legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.legend-step { padding: 10px 8px; border-radius: 10px; text-align: center; background: var(--surface-soft); }
.legend-step i { display: block; width: 9px; height: 9px; margin: 0 auto 6px; border-radius: 50%; background: var(--step-color); }
.legend-step span { color: var(--muted); font-size: 9px; }

.knowledge-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; align-items: start; }
.knowledge-group { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.knowledge-group-head { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.knowledge-group-head h3 { margin: 0; font-size: 14px; }
.knowledge-group-head span { color: var(--muted); font-size: 10px; }
.topic-list { display: grid; }
.topic-row { display: grid; grid-template-columns: minmax(170px,1fr) minmax(150px, .9fr) auto; gap: 15px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #ece9e1; }
.topic-row:last-child { border-bottom: 0; }
.topic-identity { min-width: 0; display: flex; align-items: center; gap: 8px; }
.topic-module { flex: 0 0 auto; padding: 4px 6px; border-radius: 6px; color: var(--accent); background: #e0ece9; font-size: 8px; font-weight: 700; }
.topic-name { min-width: 0; font-size: 12px; }
.level-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.level-segment { height: 7px; border: 0; border-radius: 99px; background: #e5e1d8; cursor: pointer; }
.level-segment.on { background: var(--accent); }
.level-label { min-width: 70px; color: var(--muted); font-size: 10px; text-align: right; }

.review-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 20px; }
.review-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.review-card + .review-card { margin-top: 10px; }
.review-card.due { border-left: 4px solid var(--accent-2); }
.review-card-head { display: flex; justify-content: space-between; gap: 12px; }
.review-card h3 { margin: 0; font-size: 14px; }
.review-card p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.review-date { color: var(--muted); font-size: 9px; white-space: nowrap; }
.review-stage { display: flex; gap: 4px; margin-top: 12px; }
.review-stage i { width: 18px; height: 4px; border-radius: 99px; background: #e4e0d7; }
.review-stage i.on { background: var(--accent); }
.review-actions { display: flex; gap: 7px; margin-top: 14px; }
.memory-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); cursor: pointer; font-size: 10px; }
.memory-button.good { color: var(--accent); border-color: rgba(24,94,85,.25); background: var(--accent-soft); }
.memory-button.bad { color: var(--red); }
.schedule-list { display: grid; gap: 10px; }
.schedule-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.schedule-row:last-child { border: 0; }
.schedule-row span { color: var(--muted); }

.log-form { display: grid; grid-template-columns: 1.2fr .8fr .65fr .7fr auto; gap: 9px; align-items: end; }
.field { display: grid; gap: 7px; }
.field span { color: var(--muted); font-size: 10px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; outline: none; background: white;
}
.field textarea { resize: vertical; line-height: 1.5; }
.check-field { display: flex; align-items: center; gap: 9px; margin: 12px 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.check-field input { width: 16px; height: 16px; accent-color: var(--accent); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24,94,85,.09); }
.log-list { display: grid; gap: 8px; }
.log-row { display: grid; grid-template-columns: 88px minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.log-row:last-child { border: 0; }
.log-date { color: var(--muted); font-size: 10px; }
.log-title { font-size: 12px; }
.log-note { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.log-duration { font-family: Georgia, serif; font-size: 16px; }

.heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 7px; }
.heat-day { aspect-ratio: 1; max-width: 34px; border-radius: 6px; background: #e9e5dc; position: relative; }
.heat-day.l1 { background: #bed7d1; }
.heat-day.l2 { background: #6fa399; }
.heat-day.l3 { background: var(--accent); }
.heat-day.today { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.heat-day:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 4; transform: translateX(-50%); padding: 5px 7px; color: white; background: var(--ink); border-radius: 6px; font-size: 9px; white-space: nowrap; }

.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.analytics-grid .wide { grid-column: 1 / -1; }
.bar-list { display: grid; gap: 15px; }
.bar-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 38px; gap: 11px; align-items: center; }
.bar-row label { color: var(--muted); font-size: 10px; }
.bar-track { height: 9px; border-radius: 99px; background: #e9e5dc; overflow: hidden; }
.bar-track i { display: block; width: var(--width); height: 100%; border-radius: inherit; background: var(--bar-color, var(--accent)); transition: width .3s ease; }
.bar-row strong { font-family: Georgia, serif; font-size: 12px; text-align: right; }
.weekly-chart { height: 205px; display: flex; align-items: end; gap: clamp(12px, 4vw, 38px); padding: 18px 8px 0; border-bottom: 1px solid var(--line); }
.week-bar { flex: 1; max-width: 70px; height: var(--height); min-height: 3px; position: relative; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--accent), #7ba89f); }
.week-bar.current { background: linear-gradient(180deg, var(--accent-2), #e7a487); }
.week-bar span { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); color: var(--muted); font-size: 9px; white-space: nowrap; }
.week-bar strong { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font-family: Georgia, serif; font-size: 11px; }

.modal { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 40px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(31,43,42,.24); }
.compact-modal { width: min(480px, calc(100% - 28px)); }
.planner-modal { width: min(820px, calc(100% - 28px)); }
.range-planner-modal { width: min(920px, calc(100% - 28px)); }
.batch-task-modal { width: min(980px, calc(100% - 28px)); }
.modal::backdrop { background: rgba(31,43,42,.42); backdrop-filter: blur(4px); }
.modal form { padding: 25px; }
.modal-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.modal-head h2 { margin: 4px 0 0; font-family: Georgia, "Songti SC", serif; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.form-hint { color: var(--muted); font-size: 11px; line-height: 1.7; }
.planner-intro { margin: -8px 0 18px; }
.planner-target-row { display: grid; grid-template-columns: minmax(220px,1fr) auto minmax(180px,auto); gap: 10px; align-items: end; margin-bottom: 15px; }
.planner-target-row > strong { min-height: 42px; display: flex; align-items: center; justify-content: flex-end; color: var(--accent); font-size: 11px; }
.planner-days-head, .planner-day-row { display: grid; grid-template-columns: minmax(125px,1fr) 75px 100px 130px; gap: 12px; align-items: center; }
.planner-days-head { padding: 0 12px 8px; color: var(--muted); font-size: 9px; }
.planner-days { display: grid; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.planner-day-row { min-height: 57px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: white; }
.planner-day-row:last-child { border-bottom: 0; }
.planner-day-row strong { display: block; font-size: 11px; }
.planner-day-row small { color: var(--muted); font-size: 9px; }
.planner-day-row input, .planner-day-row select { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.switch { position: relative; width: 38px; height: 22px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { display: block; width: 38px; height: 22px; border-radius: 99px; background: #d8d5cd; transition: .2s ease; }
.switch i::after { content: ""; display: block; width: 16px; height: 16px; margin: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: .2s ease; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.planner-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.planner-preview { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.preview-summary { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.preview-summary strong { font-size: 13px; }
.preview-summary span { color: var(--muted); font-size: 10px; }
.preview-days { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.preview-day { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.preview-day.disabled { opacity: .56; }
.preview-day header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.preview-day header strong { font-size: 10px; }
.preview-day header span { color: var(--muted); font-size: 9px; }
.preview-day p { margin: 5px 0 0; color: var(--ink); font-size: 9px; line-height: 1.45; }
.preview-day .muted-line { color: var(--muted); }
.unscheduled-box { margin-top: 10px; padding: 12px; border-radius: 11px; color: var(--red); background: #f8e8e4; }
.unscheduled-box > strong { font-size: 11px; }
.unscheduled-box p { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0 0; font-size: 9px; }
.unscheduled-box p span { color: #96645d; }
.range-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.range-date-grid { margin-top: 0; }
.range-task-defaults { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.range-week-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.range-week-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.range-week-preview > header { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: white; }
.range-week-preview > header strong { font-size: 10px; }
.range-week-preview > header span { color: var(--accent); font-size: 9px; }
.range-week-preview > div { padding: 5px 12px 9px; }
.range-week-preview p { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 8px; margin: 7px 0 0; }
.range-week-preview p b { color: var(--muted); font-size: 9px; }
.range-week-preview p span { overflow: hidden; color: var(--ink); font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.batch-source-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.batch-filter-grid { display: grid; grid-template-columns: minmax(220px,1fr) 145px 130px 145px; gap: 9px; }
.batch-filter-grid select { min-height: 42px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: white; }
.batch-select-bar { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.batch-select-bar > div { display: flex; gap: 3px; }
.batch-select-bar > span { color: var(--muted); font-size: 10px; }
.batch-select-bar b { color: var(--accent); font-size: 13px; }
.batch-task-list { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: white; }
.batch-task-row { min-height: 56px; display: grid; grid-template-columns: 20px minmax(0,1fr) 48px 68px; gap: 10px; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--line); cursor: pointer; }
.batch-task-row:last-child { border-bottom: 0; }
.batch-task-row:hover { background: var(--surface-soft); }
.batch-task-row.disabled { opacity: .55; cursor: not-allowed; }
.batch-task-row input { width: 15px; height: 15px; accent-color: var(--accent); }
.batch-task-copy { min-width: 0; }
.batch-task-copy strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.batch-task-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.batch-item-time { color: var(--accent); font-family: Georgia, serif; font-size: 11px; text-align: right; }
.batch-item-state { color: var(--muted); font-size: 9px; text-align: right; }
.batch-duration-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.batch-schedule-box { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--surface-soft); }
.batch-preview-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.batch-preview-list span, .batch-preview-list b { padding: 7px 9px; border-radius: 8px; background: var(--surface-soft); font-size: 9px; font-weight: 400; }
.refill-summary { margin: -8px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.refill-summary strong { color: var(--ink); }
.refill-capacity { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.refill-capacity span { font-size: 10px; font-weight: 700; }
.refill-capacity strong { font-family: Georgia, "Songti SC", serif; font-size: 13px; }
.refill-task-list { display: grid; gap: 8px; margin-top: 12px; }
.refill-task { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.refill-task > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-style: normal; font-size: 13px; }
.refill-task strong { display: block; font-size: 11px; line-height: 1.45; }
.refill-task small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.refill-task > b { color: var(--accent); font-family: Georgia, serif; font-size: 11px; }
.refill-hint { margin-top: 14px; }
.cloud-sync-modal { width: min(560px, calc(100% - 28px)); }
.cloud-state-card { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.cloud-state-card > i { margin-top: 4px; }
.cloud-state-card strong { display: block; font-size: 12px; }
.cloud-state-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.cloud-panel { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.cloud-panel .field { margin-top: 12px; }
.cloud-panel code { padding: 2px 5px; border-radius: 5px; color: var(--accent); background: var(--accent-soft); font-size: 9px; }
.cloud-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 9px; }
.cloud-section-head span, .cloud-account-row span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; }
.cloud-section-head h3 { margin: 4px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 600; }
.cloud-section-head b { padding: 5px 7px; border-radius: 7px; color: var(--accent); background: var(--accent-soft); font-size: 8px; }
.cloud-wide-button { width: 100%; margin-top: 13px; justify-content: center; }
.cloud-auth-tabs { display: flex; gap: 7px; margin-bottom: 4px; }
.cloud-auth-tabs .filter-chip { flex: 1; }
.cloud-message { min-height: 18px; margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.cloud-message.error { color: var(--red); }
.cloud-message.success { color: var(--accent); }
.cloud-config-reset { width: 100%; margin-top: 12px; text-align: center; }
.cloud-account-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.cloud-account-row > div:last-child { text-align: right; }
.cloud-account-row strong { display: block; margin-top: 5px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cloud-account-actions { display: flex; gap: 8px; margin-top: 14px; }
.cloud-account-actions button { flex: 1; }
.install-panel { background: var(--surface-soft); }
.toast { position: fixed; right: 25px; bottom: 24px; z-index: 30; padding: 12px 16px; color: white; background: var(--ink); border-radius: 11px; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .sidebar { position: fixed; left: -270px; transition: left .22s ease; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .app-shell { grid-template-columns: 1fr; }
  .menu-button { display: block; }
  .topbar { padding-inline: 22px; }
  .view-root { padding-inline: 22px; }
  .kanban { grid-template-columns: repeat(4, 260px); }
  .problem-list, .problem-table-head { min-width: 890px; }
  .article-list, .article-table-head { min-width: 930px; }
  .panel:has(.problem-list) { overflow-x: auto; }
  .panel:has(.article-list) { overflow-x: auto; }
  .knowledge-groups { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { min-height: 94px; align-items: flex-start; }
  .topbar-actions .secondary-button { display: none; }
  .topbar-actions .sync-button { display: inline-flex; }
  .topbar h1 { font-size: 21px; }
  .page-intro { align-items: flex-start; }
  .hero-grid, .two-column, .review-layout, .analytics-grid { grid-template-columns: 1fr; }
  .problem-hero { grid-template-columns: 1fr; }
  .week-schedule-head { display: grid; }
  .week-navigator { justify-content: flex-start; }
  .problem-progress-card { min-height: 205px; padding: 24px; }
  .problem-big-ring { width: 112px; height: 112px; }
  .problem-big-ring::before { width: 87px; height: 87px; }
  .problem-toolbar { grid-template-columns: 1fr 1fr; }
  .article-toolbar { grid-template-columns: 1fr 1fr; }
  .article-toolbar .problem-search { grid-column: 1 / -1; }
  .problem-search { grid-column: 1 / -1; }
  .problem-list { min-width: 0; }
  .article-list { min-width: 0; }
  .problem-table-head { display: none; }
  .article-table-head { display: none; }
  .panel:has(.problem-list) { overflow: visible; }
  .panel:has(.article-list) { overflow: visible; }
  .problem-row { grid-template-columns: 42px minmax(0,1fr) auto; gap: 8px; padding-block: 15px; }
  .problem-number { grid-column: 1; grid-row: 1 / 3; align-self: start; padding-top: 3px; }
  .problem-title { grid-column: 2; grid-row: 1; }
  .problem-group { grid-column: 3; grid-row: 1; }
  .difficulty { grid-column: 2; grid-row: 2; }
  .problem-status { grid-column: 3; grid-row: 2; }
  .problem-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; margin-top: 5px; }
  .article-row { grid-template-columns: 82px minmax(0,1fr) auto; gap: 8px; padding-block: 15px; }
  .article-row .series-badge { grid-column: 1; grid-row: 1; }
  .article-row .problem-title { grid-column: 2 / -1; grid-row: 1; }
  .article-row .problem-group { grid-column: 1; grid-row: 2; }
  .article-row .core-badge { grid-column: 2; grid-row: 2; }
  .article-row .problem-status { grid-column: 3; grid-row: 2; }
  .article-row .problem-actions { grid-column: 1 / -1; grid-row: 3; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .knowledge-summary { grid-template-columns: 1fr; justify-items: center; }
  .level-legend { width: 100%; }
  .topic-row { grid-template-columns: 1fr auto; }
  .topic-row .level-track { grid-column: 1 / -1; grid-row: 2; }
  .log-form { grid-template-columns: 1fr 1fr; }
  .planner-days-head, .planner-day-row { grid-template-columns: minmax(92px,1fr) 58px 75px 100px; gap: 7px; }
  .planner-target-row { grid-template-columns: 1fr auto; }
  .planner-target-row > strong { grid-column: 1 / -1; justify-content: flex-start; min-height: 20px; }
  .range-task-defaults { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .range-week-list { grid-template-columns: 1fr; }
  .batch-filter-grid { grid-template-columns: 1fr 1fr; }
  .batch-filter-grid .problem-search { grid-column: 1 / -1; }
  .batch-schedule-box { grid-template-columns: 1fr 1fr; }
  .log-form .field:first-child { grid-column: 1 / -1; }
  .log-form button { grid-column: 1 / -1; }
  .analytics-grid .wide { grid-column: auto; }
}

@media (max-width: 520px) {
  .topbar { padding: 17px 14px; }
  .topbar .eyebrow { display: none; }
  .topbar-actions { margin-left: auto; }
  .sync-button { width: 40px; padding: 0; justify-content: center; }
  .sync-button span { display: none; }
  .page-intro { display: grid; }
  .page-actions { width: 100%; }
  .page-actions { flex-wrap: wrap; }
  .page-actions button { flex: 1; }
  .primary-button { padding-inline: 12px; }
  .view-root { padding: 18px 14px 38px; }
  .stats-row { gap: 8px; }
  .stat-card { padding: 14px; }
  .energy-card { padding: 22px; }
  .problem-progress-card { align-items: flex-start; }
  .problem-big-ring { width: 88px; height: 88px; }
  .problem-big-ring::before { width: 68px; height: 68px; }
  .problem-big-ring strong { font-size: 20px; }
  .problem-toolbar { grid-template-columns: 1fr; }
  .article-toolbar { grid-template-columns: 1fr; }
  .problem-search { grid-column: auto; }
  .article-toolbar .problem-search { grid-column: auto; }
  .problem-filters .visible-count { width: 100%; margin-left: 0; }
  .panel { padding: 17px; border-radius: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .planner-days-head { display: none; }
  .planner-day-row { grid-template-columns: minmax(95px,1fr) 42px 68px; gap: 7px; }
  .planner-day-row select { grid-column: 1 / -1; }
  .planner-target-row { grid-template-columns: 1fr; }
  .planner-target-row .secondary-button { width: 100%; }
  .range-task-defaults { grid-template-columns: 1fr; }
  .batch-filter-grid, .batch-duration-row, .batch-schedule-box, .batch-preview-list { grid-template-columns: 1fr; }
  .batch-filter-grid .problem-search { grid-column: auto; }
  .batch-select-bar { align-items: flex-start; display: grid; }
  .batch-task-row { grid-template-columns: 18px minmax(0,1fr) 42px; }
  .batch-item-state { display: none; }
  .planner-rules, .preview-days { grid-template-columns: 1fr; }
  .preview-summary { display: grid; }
  .cloud-account-row { grid-template-columns: 1fr; }
  .cloud-account-row > div:last-child { text-align: left; }
  .cloud-account-actions { display: grid; }
  .topic-row { padding-inline: 13px; }
  .level-label { min-width: 58px; }
  .log-row { grid-template-columns: 70px minmax(0,1fr) auto; }
  .log-row .more-button { display: none; }
}
