/* SchoolPlan — учебный веб-проект. Без внешних библиотек и платных сервисов. */
:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-synthesis: none; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--accent); }
[hidden] { display: none !important; }
svg { display: block; flex-shrink: 0; }
:root, body[data-theme="light"] { --bg: #f7f8fd; --surface: #fff; --surface-alt: #f6f7fc; --text: #20243b; --text-soft: #4e536e; --muted: #8589a0; --line: #e9ebf3; --shadow: 0 12px 32px rgba(29, 38, 83, .045); --shadow-high: 0 20px 54px rgba(35, 29, 94, .13); --hero-ink: #fff; --positive: #17a77c; --positive-soft: #e7f8f1; --warning: #d88535; --warning-soft: #fff2de; --negative: #e15867; --negative-soft: #fff0f1; --input: #fff; --skeleton: #eff0f9; }
body[data-theme="dark"] { color-scheme: dark; --bg: #111827; --surface: #1b2639; --surface-alt: #243149; --text: #f3f5fd; --text-soft: #c2cbdb; --muted: #95a1b7; --line: #34415a; --shadow: 0 10px 40px rgba(0,0,0,.12); --shadow-high: 0 18px 50px rgba(0,0,0,.28); --hero-ink: #fff; --positive: #56d5ac; --positive-soft: #1d463f; --warning: #f3ba75; --warning-soft: #4a382c; --negative: #ff9ba8; --negative-soft: #523139; --input: #202d43; --skeleton: #2c3b55; }
body[data-accent="violet"] { --accent: #795be7; --accent-strong: #6242d3; --accent-end: #9c86f8; --accent-soft: #f0edff; --focus: rgba(121,91,231,.38); }
body[data-accent="blue"] { --accent: #377ee8; --accent-strong: #2565c0; --accent-end: #59b8ef; --accent-soft: #eaf3ff; --focus: rgba(55,126,232,.38); }
body[data-accent="mint"] { --accent: #168d82; --accent-strong: #11776f; --accent-end: #49c9ab; --accent-soft: #e6f8f3; --focus: rgba(24,160,143,.36); }
body[data-accent="pink"] { --accent: #c25c9c; --accent-strong: #a94886; --accent-end: #f58da3; --accent-soft: #fff0f6; --focus: rgba(194,92,156,.36); }
body[data-accent="orange"] { --accent: #d97430; --accent-strong: #bc5f23; --accent-end: #efb75b; --accent-soft: #fff2e4; --focus: rgba(217,116,48,.35); }
body[data-theme="dark"] { --accent-soft: #302d4b; }
body[data-theme="dark"][data-accent="blue"] { --accent-soft: #233d5c; }
body[data-theme="dark"][data-accent="mint"] { --accent-soft: #1d4445; }
body[data-theme="dark"][data-accent="pink"] { --accent-soft: #4d3049; }
body[data-theme="dark"][data-accent="orange"] { --accent-soft: #523a2c; }
.app-shell { display: grid; grid-template-columns: 254px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 28px 15px 18px; background: var(--surface); border-right: 1px solid var(--line); z-index: 20; overflow: auto; }
.brand { display:flex; align-items:center; gap:11px; margin: 0 8px 40px; }
.brand-mark { display:flex; width:42px; height:42px; justify-content:center; align-items:center; border-radius:13px; background: linear-gradient(140deg,var(--accent),var(--accent-end)); color:#fff; box-shadow: 0 8px 17px var(--focus); }
.brand-mark svg { width:25px; height:25px; }
.brand-words { display:flex; flex-direction:column; line-height:1.25; }
.brand-words strong { font-size:19px; letter-spacing:-.8px; font-weight:800; }
.brand-words small { color:var(--muted); font-size:10px; font-weight:550; white-space:nowrap; margin-top:4px; }
.sidebar-section-label { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:1.3px; padding:0 15px; margin-bottom:10px; }
.second-label { margin-top:33px; }
.sidebar-nav { display:grid; gap:5px; }
.nav-link { width:100%; border:0; background:transparent; color:var(--text-soft); display:flex; align-items:center; gap:13px; font-weight:600; font-size:13px; padding:12px 14px; text-align:left; border-radius:11px; transition: .16s ease; }
.nav-link > span:first-child { display:flex; color:var(--muted); }
.nav-link svg { width:19px; height:19px; }
.nav-link:hover { background:var(--surface-alt); }
.nav-link.is-active { background:var(--accent-soft); color:var(--accent); font-weight:750; }
.nav-link.is-active > span:first-child { color:var(--accent); }
.sidebar-spacer { flex:1; min-height:20px; }
.sidebar-tip { display:grid; gap:8px; padding:18px 16px; border-radius:16px; background:var(--accent-soft); color:var(--text-soft); margin:12px 4px 20px; font-size:11px; line-height:1.5; }
.sidebar-tip strong { color:var(--accent); font-size:12px; }
.tip-icon { color:var(--accent); }
.tip-icon svg { width:19px; height:19px; }
.sidebar-footer { display:flex; align-items:center; gap:8px; padding:0 6px; color:var(--muted); font-size:10px; }
.sidebar-footer svg { width:15px; height:15px; }
.workspace { min-width:0; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; height:77px; padding:0 38px; background:var(--surface); border-bottom:1px solid var(--line); }
.topbar-left, .topbar-right { display:flex; align-items:center; gap:18px; }
.topbar-right { gap:13px; }
.breadcrumbs { display:flex; gap:10px; color:var(--muted); font-size:12px; align-items:center; }
.breadcrumbs strong { color:var(--text); font-weight:750; }
.breadcrumbs > span { color:#bdc0cf; }
.today-chip { padding:8px 14px; background:var(--surface-alt); border:1px solid var(--line); border-radius:30px; color:var(--text-soft); font-size:11px; font-weight:600; white-space:nowrap; }
.icon-button { display:inline-flex; justify-content:center; align-items:center; border:1px solid var(--line); background:var(--surface); width:37px; height:37px; color:var(--text-soft); border-radius:11px; transition:.16s; }
.icon-button:hover { border-color:var(--accent); color:var(--accent); }
.icon-button svg { width:19px; height:19px; }
.menu-toggle { display:none; }
.profile-button { width:36px; height:36px; border:0; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-weight:800; font-size:15px; }
.content { max-width:1480px; margin:0 auto; padding:34px 42px 16px; }
.page { display:none; }
.page.is-visible { display:block; animation: rise .18s ease-out both; }
@keyframes rise { from { opacity:.6; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
.page-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:24px; }
.page-title { font-size:27px; line-height:1.2; font-weight:800; margin:0 0 7px; letter-spacing:-1.1px; }
.page-subtitle { color:var(--muted); margin:0; font-size:13px; }
h1,h2,h3,h4,p { overflow-wrap:anywhere; }
h2,h3 { letter-spacing:-.4px; }
.btn { border:1px solid transparent; border-radius:11px; padding:10px 16px; font-weight:750; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; transition:transform .16s, background .16s, border-color .16s; text-decoration:none; white-space:normal; text-align:center; }
.btn svg { width:16px; height:16px; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background:var(--accent); color:#fff; box-shadow: 0 5px 12px var(--focus); }
.btn-primary:hover:not(:disabled) { background:var(--accent-strong); }
.btn-outline { background:var(--surface); border-color:var(--line); color:var(--text); }
.btn-outline:hover:not(:disabled) { border-color:var(--accent); color:var(--accent); }
.btn-ghost { background:transparent; color:var(--text-soft); }
.btn-ghost:hover:not(:disabled) { background:var(--surface-alt); }
.btn-danger { background:var(--negative-soft); color:var(--negative); }
.btn-sm { padding:7px 11px; min-height:32px; font-size:11px; border-radius:9px; }
.btn-icon { width:35px; height:35px; padding:7px; }
.btn-icon svg { width:17px; height:17px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:17px; box-shadow:var(--shadow); }
.card-pad { padding:23px; }
.card-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:18px; }
.card-heading h2 { font-size:16px; font-weight:800; margin:0; }
.card-heading a, .text-link { color:var(--accent); border:0; background:transparent; font-size:12px; font-weight:750; text-decoration:none; padding:3px 0; }
.text-link:hover { text-decoration:underline; }
.overview-hero { min-height:219px; padding:32px 36px; margin-bottom:20px; border-radius:20px; color:#fff; background: linear-gradient(112deg,var(--accent-strong), var(--accent) 50%,var(--accent-end)); position:relative; overflow:hidden; display:flex; justify-content:space-between; gap:16px; align-items:center; }
.overview-hero::before, .overview-hero::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.18); border-radius:50%; pointer-events:none; }
.overview-hero::before { width:340px; height:340px; right:-85px; top:-132px; }
.overview-hero::after { width:240px; height:240px; right:80px; bottom:-188px; }
.hero-copy { position:relative; z-index:1; max-width:600px; }
.hero-kicker { display:inline-flex; background:rgba(255,255,255,.18); padding:5px 12px; border-radius:24px; letter-spacing:.7px; font-size:10px; font-weight:800; text-transform:uppercase; margin-bottom:17px; }
.hero-copy h1 { font-size:clamp(25px,3vw,36px); line-height:1.16; margin:0 0 12px; font-weight:850; letter-spacing:-1.3px; }
.hero-copy p { margin:0 0 19px; font-size:13px; color:rgba(255,255,255,.88); }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
.hero-button { border:0; background:#fff; color:var(--accent-strong); border-radius:10px; font-size:12px; font-weight:800; padding:10px 15px; display:inline-flex; align-items:center; gap:7px; }
.hero-button svg { width:15px; height:15px; }
.hero-button.secondary { color:#fff; border:1px solid rgba(255,255,255,.44); background:rgba(255,255,255,.11); }
.hero-art { flex:none; position:relative; z-index:1; width:178px; height:148px; margin-right:40px; }
.art-sheet { position:absolute; inset:10px 27px 0 5px; background:#fff; border-radius:17px; box-shadow:0 17px 35px rgba(25,20,76,.19); transform:rotate(-7deg); padding:17px 15px; }
.art-sheet::before { content:""; display:block; width:45px; height:7px; border-radius:9px; background:#dad0fc; margin-bottom:18px; }
.art-line { display:flex; gap:9px; align-items:center; margin:11px 0; }
.art-line::before { content:"✓"; width:15px; height:15px; border-radius:5px; background:#ebf8ef; color:#2ebf8d; font-size:10px; line-height:15px; text-align:center; }
.art-line::after { content:""; width:72px; height:6px; border-radius:9px; background:#e8e9f3; }
.art-line:nth-child(3)::after { width:49px; }
.art-circle { position:absolute; width:56px; height:56px; border-radius:17px; right:0; top:0; background:#fcd67e; display:flex; align-items:center; justify-content:center; font-size:26px; transform:rotate(12deg); box-shadow:0 12px 25px rgba(39,28,90,.16); }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0 0 20px; }
.metric-card { padding:19px 20px; display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:116px; }
.metric-label { color:var(--muted); font-size:11px; font-weight:600; margin:0 0 6px; }
.metric-value { font-size:29px; line-height:1.15; font-weight:850; letter-spacing:-1.2px; margin:0; font-variant-numeric:tabular-nums; }
.metric-note { color:var(--muted); font-size:10px; margin-top:6px; }
.metric-icon { display:flex; justify-content:center; align-items:center; width:43px; height:43px; border-radius:14px; flex:none; background:var(--accent-soft); color:var(--accent); }
.metric-icon svg { width:22px; height:22px; }
.metric-icon.green { background:var(--positive-soft); color:var(--positive); }
.metric-icon.amber { background:var(--warning-soft); color:var(--warning); }
.metric-icon.pink { background:var(--negative-soft); color:var(--negative); }
.overview-columns { display:grid; grid-template-columns:minmax(0,1.28fr) minmax(280px,.9fr); gap:20px; }
.panel-stack { display:grid; gap:20px; align-content:start; }
.empty-state { text-align:center; padding:24px 12px 28px; color:var(--muted); }
.empty-emoji { font-size:27px; margin-bottom:6px; }
.empty-state h3 { margin:6px 0 5px; font-size:14px; color:var(--text); }
.empty-state p { font-size:12px; margin:0 0 16px; }
.task-list, .lesson-list, .event-list { display:grid; }
.task-row, .lesson-row, .event-row { display:flex; align-items:center; gap:13px; min-width:0; padding:13px 0; border-top:1px solid var(--line); }
.task-row:first-child, .lesson-row:first-child, .event-row:first-child { border-top:0; padding-top:3px; }
.task-check { appearance:none; border:1.8px solid var(--line); background:var(--surface); display:flex; align-items:center; justify-content:center; border-radius:8px; width:24px; height:24px; padding:0; flex:none; color:#fff; }
.task-check:hover { border-color:var(--accent); }
.task-check.is-done { background:var(--positive); border-color:var(--positive); }
.task-check svg { width:15px; height:15px; }
.row-main { min-width:0; flex:1; }
.row-title { font-size:12.5px; font-weight:750; margin:0 0 4px; color:var(--text); overflow-wrap:anywhere; }
.row-title.is-done { text-decoration:line-through; color:var(--muted); }
.row-meta { display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:10.5px; }
.row-end { flex:none; display:flex; align-items:center; gap:6px; }
.row-actions { display:flex; align-items:center; gap:5px; }
.row-actions button { width:28px; height:28px; background:transparent; border:0; color:var(--muted); border-radius:8px; display:grid; place-items:center; }
.row-actions button:hover { background:var(--surface-alt); color:var(--accent); }
.row-actions button.delete:hover { color:var(--negative); }
.row-actions svg { width:15px; height:15px; }
.pill { display:inline-flex; align-items:center; gap:4px; border-radius:18px; padding:4px 8px; font-size:10px; line-height:1.35; font-weight:750; white-space:nowrap; }
.pill-purple { background:var(--accent-soft); color:var(--accent); }
.pill-green { background:var(--positive-soft); color:var(--positive); }
.pill-red { background:var(--negative-soft); color:var(--negative); }
.pill-amber { background:var(--warning-soft); color:var(--warning); }
.pill-neutral { background:var(--surface-alt); color:var(--muted); }
.lesson-time { flex:none; color:var(--muted); font-size:11px; font-weight:750; width:44px; }
.lesson-number { display:flex; align-items:center; justify-content:center; width:33px; height:33px; border-radius:11px; background:var(--accent-soft); color:var(--accent); font-size:12px; font-weight:800; flex:none; }
.lesson-subject { font-weight:750; color:var(--text); font-size:12px; }
.event-marker { flex:none; width:37px; height:37px; display:grid; place-items:center; border-radius:12px; background:var(--warning-soft); color:var(--warning); }
.event-marker svg { width:19px; height:19px; }
.progress-track { height:9px; border-radius:12px; background:var(--surface-alt); overflow:hidden; }
.progress-fill { height:100%; border-radius:12px; background:linear-gradient(90deg,var(--accent),var(--accent-end)); transition:width .2s; }
.progress-header { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:15px 0 10px; }
.progress-header strong { font-size:25px; font-weight:850; letter-spacing:-1px; }
.progress-header span { font-size:11px; color:var(--muted); }
.progress-caption { color:var(--muted); font-size:11px; margin:11px 0 0; }
.demo-banner { margin: 0 0 19px; padding:11px 14px; display:flex; align-items:center; flex-wrap:wrap; gap:10px; background:var(--accent-soft); border:1px solid var(--focus); border-radius:12px; color:var(--text-soft); font-size:11px; }
.demo-banner svg { width:17px; height:17px; flex:none; color:var(--accent); }
.demo-banner span { flex:1; }
.demo-banner button { border:0; background:transparent; color:var(--accent); font-size:11px; font-weight:800; text-decoration:underline; }
.day-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.day-tab { border:1px solid var(--line); color:var(--text-soft); background:var(--surface); border-radius:11px; padding:10px 13px; font-size:12px; font-weight:750; min-width:79px; }
.day-tab:hover { border-color:var(--accent); }
.day-tab.is-active { color:#fff; border-color:var(--accent); background:var(--accent); }
.schedule-day-layout { display:grid; grid-template-columns: minmax(0,1fr) 275px; align-items:start; gap:19px; }
.schedule-lesson { display:grid; grid-template-columns:42px 7px minmax(0,1fr) auto; gap:14px; align-items:center; padding:15px 0; border-top:1px solid var(--line); }
.schedule-lesson:first-child { border:0; padding-top:0; }
.schedule-step { border-radius:12px; background:var(--surface-alt); padding:8px 0; font-size:12px; font-weight:800; text-align:center; color:var(--muted); }
.lesson-bar { height:41px; width:4px; border-radius:8px; background:var(--accent); }
.schedule-lesson h3 { font-size:13px; margin:0 0 4px; }
.schedule-lesson p { color:var(--muted); margin:0; font-size:11px; }
.note-card { display:grid; gap:14px; }
.note-card h3 { font-size:15px; margin:0; }
.note-card p { color:var(--muted); font-size:12px; margin:0; }
.note-card .note-illustration { display:grid; place-items:center; border-radius:14px; height:140px; background:var(--accent-soft); color:var(--accent); }
.note-illustration svg { width:64px; height:64px; stroke-width:1.2; }
.task-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.search-wrap { position:relative; flex:1; min-width:205px; }
.search-wrap svg { position:absolute; width:18px; height:18px; left:13px; top:50%; transform:translateY(-50%); color:var(--muted); }
.search-wrap input { padding-left:39px; width:100%; }
.field, .search-wrap input { border:1px solid var(--line); border-radius:11px; background:var(--input); color:var(--text); padding:11px 12px; min-height:42px; outline:none; }
.field:focus, .search-wrap input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--focus); outline:0; }
.field::placeholder, .search-wrap input::placeholder { color:var(--muted); }
textarea.field { resize:vertical; min-height:88px; }
select.field { cursor:pointer; }
.task-tools .field { min-width:146px; }
.task-full-row { display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:13px; align-items:center; padding:18px 0; border-top:1px solid var(--line); }
.task-full-row:first-child { border:0; padding-top:0; }
.task-notes { margin:8px 0 0; font-size:11px; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.task-count { color:var(--muted); font-size:11px; margin:0 0 13px; }
.event-section { margin-top:20px; }
.calendar-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(230px,.7fr); gap:19px; align-items:start; }
.calendar-header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:23px; }
.calendar-header h2 { margin:0; font-size:19px; font-weight:800; text-transform:capitalize; }
.calendar-header-actions { display:flex; align-items:center; gap:8px; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.calendar-weekday { text-align:center; color:var(--muted); font-size:10px; font-weight:800; padding:8px 0 13px; }
.calendar-day { min-width:0; height:91px; text-align:left; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:11px; padding:8px; position:relative; display:flex; flex-direction:column; gap:3px; overflow:hidden; }
.calendar-day:hover { border-color:var(--accent); background:var(--surface-alt); }
.calendar-day.is-outside { opacity:.40; }
.calendar-day.is-selected { border:2px solid var(--accent); background:var(--accent-soft); padding:7px; }
.calendar-day.is-today .day-number { background:var(--accent); color:#fff; border-radius:50%; }
.day-number { display:grid; place-items:center; width:23px; height:23px; font-size:11px; font-weight:750; }
.calendar-event-dot { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border-radius:5px; padding:2px 4px; font-size:9px; line-height:1.3; font-weight:650; background:var(--warning-soft); color:var(--warning); }
.calendar-event-dot.is-task { background:var(--accent-soft); color:var(--accent); }
.calendar-more { color:var(--muted); font-size:9px; }
.calendar-legend { display:flex; gap:16px; color:var(--muted); font-size:10px; margin-top:17px; }
.legend-bullet { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; background:var(--warning); }
.legend-bullet.task { background:var(--accent); }
.selected-date-title { font-size:15px; font-weight:800; text-transform:capitalize; margin:0 0 18px; }
.day-agenda { display:grid; gap:10px; }
.agenda-item { border-radius:11px; border:1px solid var(--line); padding:12px; display:grid; gap:5px; }
.agenda-item strong { font-size:12px; }
.agenda-item small { color:var(--muted); }
.agenda-top { display:flex; gap:8px; justify-content:space-between; align-items:flex-start; }
.agenda-top .row-actions { flex:none; }
.focus-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(260px,.8fr); gap:20px; }
.focus-center { padding:33px 18px; text-align:center; }
.timer-modes { display:inline-flex; gap:6px; background:var(--surface-alt); border-radius:13px; padding:5px; margin-bottom:28px; max-width:100%; flex-wrap:wrap; justify-content:center; }
.timer-mode { border:0; background:transparent; padding:8px 15px; border-radius:10px; color:var(--muted); font-size:12px; font-weight:750; }
.timer-mode.is-active { background:var(--surface); color:var(--accent); box-shadow:0 2px 9px rgba(30,25,75,.09); }
.timer-ring { width:min(274px,78vw); height:min(274px,78vw); margin:0 auto 24px; border-radius:50%; background:conic-gradient(var(--accent) var(--progress,0%),var(--surface-alt) 0); padding:13px; }
.timer-ring-inner { height:100%; width:100%; background:var(--surface); border-radius:50%; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.timer-hint { color:var(--muted); font-size:11px; font-weight:750; letter-spacing:.5px; text-transform:uppercase; }
.timer-time { font-size:clamp(46px,6vw,65px); line-height:1.2; font-weight:850; font-variant-numeric:tabular-nums; letter-spacing:-2px; margin:8px 0; }
.timer-caption { color:var(--muted); font-size:11px; margin-top:0; }
.timer-buttons { display:flex; justify-content:center; gap:9px; flex-wrap:wrap; margin:0 0 10px; }
.focus-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:17px; }
.focus-stat { background:var(--surface-alt); padding:14px; border-radius:12px; }
.focus-stat b { font-size:23px; display:block; font-variant-numeric:tabular-nums; }
.focus-stat span { color:var(--muted); font-size:10px; }
.tip-list { display:grid; gap:13px; margin:15px 0 0; }
.tip-item { display:flex; gap:10px; align-items:flex-start; font-size:12px; color:var(--text-soft); }
.tip-item svg { width:18px; height:18px; color:var(--accent); margin-top:1px; }
.badge-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.achievement-card { padding:24px 19px; text-align:center; min-height:220px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:9px; }
.achievement-card.is-locked { opacity:.66; }
.achievement-emblem { width:65px; height:65px; display:grid; place-items:center; font-size:31px; background:var(--accent-soft); border-radius:21px; }
.achievement-card.is-locked .achievement-emblem { filter:grayscale(1); }
.achievement-card h3 { font-size:14px; line-height:1.3; margin:5px 0 0; }
.achievement-card p { color:var(--muted); font-size:11px; margin:0; }
.achievement-state { margin-top:auto; padding-top:5px; color:var(--positive); font-weight:800; font-size:11px; }
.achievement-card.is-locked .achievement-state { color:var(--muted); }
.achievement-progress { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; padding:17px 20px; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.setting-section h2 { font-size:16px; margin:0 0 15px; }
.setting-section p { color:var(--muted); font-size:11px; margin:0 0 17px; }
.setting-label { display:block; color:var(--text-soft); font-size:11px; font-weight:750; margin-bottom:7px; }
.setting-control { margin-bottom:14px; }
.setting-control .field { width:100%; }
.theme-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.theme-option { border:2px solid var(--line); background:var(--surface); border-radius:13px; padding:11px; color:var(--text); text-align:left; }
.theme-option.is-selected { border-color:var(--accent); }
.theme-preview { height:83px; padding:12px; border-radius:9px; margin-bottom:9px; display:grid; align-content:start; gap:9px; }
.theme-preview.light { background:#f4f0ff; }
.theme-preview.dark { background:#171e31; }
.theme-preview .preview-line { width:70%; height:9px; border-radius:9px; background:#9b80ef; }
.theme-preview.dark .preview-line { background:#5ab8fa; }
.theme-preview .preview-cards { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.theme-preview .preview-cards span { background:white; height:34px; border-radius:6px; }
.theme-preview.dark .preview-cards span { background:#33415b; }
.theme-name { font-size:12px; font-weight:800; }
.theme-option small { color:var(--muted); font-size:10px; display:block; margin-top:2px; }
.accent-options { display:flex; flex-wrap:wrap; gap:12px; }
.accent-option { width:35px; height:35px; border-radius:50%; border:3px solid var(--surface); box-shadow:0 0 0 1px var(--line); display:grid; place-items:center; color:#fff; }
.accent-option.is-selected { box-shadow:0 0 0 3px var(--text); }
.accent-option svg { width:17px; height:17px; }
.accent-option[data-accent-select="violet"] { background:#795be7; }
.accent-option[data-accent-select="blue"] { background:#377ee8; }
.accent-option[data-accent-select="mint"] { background:#168d82; }
.accent-option[data-accent-select="pink"] { background:#c25c9c; }
.accent-option[data-accent-select="orange"] { background:#d97430; }
.data-actions { display:grid; gap:12px; }
.data-action-row { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:13px; }
.data-action-row:first-child { border-top:0; padding-top:0; }
.data-action-row strong { display:block; font-size:12px; }
.data-action-row small { display:block; max-width:300px; color:var(--muted); font-size:10.5px; margin-top:2px; }
.site-footer { display:flex; align-items:center; gap:8px; justify-content:center; color:var(--muted); margin-top:40px; padding:23px 0; font-size:10px; border-top:1px solid var(--line); text-align:center; }
.site-footer span { color:var(--accent); }
.editor-dialog { border:1px solid var(--line); border-radius:19px; padding:0; width:min(500px,calc(100vw - 28px)); max-height:min(88vh,780px); overflow:auto; background:var(--surface); color:var(--text); box-shadow:var(--shadow-high); }
.editor-dialog::backdrop { background:rgba(15,20,45,.52); backdrop-filter:blur(4px); }
.editor-form { padding:25px; }
.dialog-header { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:22px; }
.dialog-overline { color:var(--accent); letter-spacing:1px; font-size:10px; font-weight:850; }
.dialog-header h2 { font-size:22px; margin:4px 0 0; }
.form-fields { display:grid; gap:15px; }
.form-item { display:grid; gap:6px; }
.form-item label { font-size:11.5px; font-weight:750; color:var(--text-soft); }
.form-item .field { width:100%; }
.form-two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field-help { font-size:10px; color:var(--muted); }
.dialog-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:24px; }
.toast { position:fixed; right:26px; bottom:24px; z-index:60; max-width:min(360px,calc(100vw - 30px)); border:1px solid var(--line); border-left:4px solid var(--accent); background:var(--surface); box-shadow:var(--shadow-high); color:var(--text); border-radius:11px; padding:13px 16px; font-size:12px; font-weight:650; opacity:0; pointer-events:none; transform:translateY(12px); transition:opacity .2s,transform .2s; }
.toast.is-visible { opacity:1; transform:translateY(0); }
.mobile-backdrop { position:fixed; inset:0; background:rgba(11,15,35,.5); z-index:19; }
@media (max-width:1240px) { .content { padding:30px 26px 14px; } .topbar { padding:0 26px; } .hero-art { margin-right:7px; } .stats-grid { gap:10px; } .metric-card { padding:17px 14px; } .metric-icon { width:37px; height:37px; } }
@media (max-width:1040px) { .app-shell { grid-template-columns:1fr; } .sidebar { position:fixed; width:270px; transform:translateX(-100%); transition:transform .2s; box-shadow:var(--shadow-high); } .sidebar-open .sidebar { transform:translateX(0); } .menu-toggle { display:inline-flex; } .overview-columns { grid-template-columns:minmax(0,1fr) minmax(250px,.8fr); } }
@media (max-width:780px) { .content { padding:22px 16px 12px; } .topbar { padding:0 16px; height:68px; } .topbar-left { gap:10px; } .topbar-right { gap:8px; } .today-chip { display:none; } .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .overview-columns,.schedule-day-layout,.focus-layout,.calendar-layout { grid-template-columns:1fr; } .badge-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .settings-grid { grid-template-columns:1fr; } .overview-hero { padding:29px 25px; min-height:210px; } .hero-art { width:120px; margin:0; } .art-sheet { inset:19px 15px 8px 0; padding:12px 10px; } .art-sheet::before { margin-bottom:13px; } .art-line { margin:8px 0; } .art-line::after { width:40px; } .art-circle { width:44px; height:44px; font-size:20px; } .calendar-day { height:78px; padding:5px; } .calendar-day.is-selected { padding:4px; } .calendar-grid { gap:4px; } }
@media (max-width:520px) { .content { padding:20px 12px 10px; } .topbar { padding:0 12px; } .breadcrumbs { font-size:11px; gap:6px; } .topbar-right { gap:6px; } .icon-button { width:34px; height:34px; } .page-title-row { flex-direction:column; margin-bottom:18px; align-items:stretch; gap:12px; } .page-title { font-size:24px; } .page-title-row > .btn { width:100%; } .overview-hero { min-height:190px; padding:24px 20px; } .hero-copy h1 { font-size:26px; } .hero-copy p { font-size:11px; } .hero-art { display:none; } .metric-card { padding:15px 13px; min-height:110px; } .metric-value { font-size:25px; } .metric-icon { width:34px; height:34px; } .metric-icon svg { width:18px; height:18px; } .card-pad { padding:18px 15px; } .card-heading h2 { font-size:15px; } .day-tab { min-width:0; flex:1 0 25%; padding:9px 8px; font-size:11px; } .schedule-lesson { grid-template-columns:33px 4px minmax(0,1fr) auto; gap:9px; } .task-full-row { gap:8px; } .row-actions { gap:0; } .task-tools { flex-direction:column; align-items:stretch; } .search-wrap { width:100%; } .calendar-day { height:62px; border-radius:8px; padding:3px; } .calendar-day.is-selected { padding:2px; } .day-number { width:20px; height:20px; font-size:10px; } .calendar-event-dot { font-size:0; width:6px; height:6px; padding:0; border-radius:50%; } .calendar-more { font-size:8px; } .calendar-grid { gap:3px; } .calendar-header { flex-wrap:wrap; } .calendar-header h2 { font-size:17px; } .calendar-header-actions { gap:4px; } .site-footer { line-height:1.5; } .badge-grid { gap:9px; } .achievement-card { padding:18px 11px; min-height:214px; } .achievement-card h3 { font-size:12px; } .achievement-card p { font-size:10px; } .achievement-emblem { width:55px; height:55px; font-size:26px; } .theme-options { gap:7px; } .theme-option { padding:7px; } .form-two { grid-template-columns:1fr; } .editor-form { padding:18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }