:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #192e26;
  background: #f7f8f3;
  font-synthesis: none;
  --green: #235842;
  --muted: #53655d;
  --line: #e0e6dd;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ae731c; outline-offset: 4px; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 231px; display: flex; flex-direction: column;
  padding: 30px 19px 23px; background: #142b25; color: #ebf1e9;
}
.brand { display: flex; gap: 12px; align-items: center; margin: 0 8px 46px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; line-height: 1.1; letter-spacing: .13em; }
.brand small { color: #bbcbbf; font-size: 12px; margin-top: 4px; }
.brand-icon { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: #d9ecc1; }
.brand-icon i { display: block; height: 3px; background: #235842; border-radius: 4px; }
.brand-icon i:nth-child(2) { width: 75%; }
.brand-icon i:nth-child(3) { width: 50%; }
nav { display: grid; gap: 6px; }
.nav-link { display: flex; gap: 13px; align-items: center; border-radius: 8px; padding: 11px 13px; font-size: 14px; color: #cfdbd1; }
.nav-link span { font-size: 18px; line-height: 1; }
.nav-link:hover, .nav-link.active { background: #29483d; color: #fff; }
.sidebar-foot { margin-top: auto; padding: 16px 4px 0; border-top: 1px solid #365047; color: #bbcbbf; font-size: 11px; }
.sidebar-foot span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #bbdb98; }
.workspace { margin-left: 231px; }
.topbar { height: 66px; padding: 0 clamp(24px, 4vw, 60px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #fcfdf9; color: var(--muted); font-size: 13px; }
.topbar h1 { font-size: 14px; font-weight: 650; color: #192e26; }
.avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e1ecdb; color: #22513c; font-weight: 700; font-size: 11px; }
main { max-width: 1400px; margin: 0 auto; padding: 39px clamp(24px, 4vw, 60px) 60px; }
.intro, .section-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
h1, h2, h3, p { margin: 0; }
.intro h2 { font-size: clamp(29px, 3.4vw, 43px); line-height: 1.1; letter-spacing: -.055em; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intro p { margin-top: 10px; color: var(--muted); }
.primary, .secondary, .hero-button, .text-button { border: 0; border-radius: 8px; padding: 11px 16px; font-size: 14px; line-height: 1.35; font-weight: 650; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #174330; }
.primary span { margin-right: 4px; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 294px; margin-top: 29px; padding: 34px 38px; display: flex; align-items: center; background: #dcebd2; border: 1px solid #d2e4c6; border-radius: 16px; }
.hero-content { max-width: 52%; }
.hero h2 { font-size: clamp(28px, 3.45vw, 46px); line-height: 1.05; letter-spacing: -.055em; }
.hero p { margin-top: 14px; max-width: 340px; color: #375347; font-size: 14px; line-height: 1.55; }
.hero-button { display: inline-flex; gap: 16px; align-items: center; margin-top: 21px; background: #f7faf0; color: #214a38; }
.hero-button:hover { background: white; }
.hero-art { position: absolute; z-index: -1; width: 400px; height: 278px; right: 3.5%; top: 50%; transform: translateY(-50%); }
.orbit { position: absolute; width: 312px; height: 212px; border: 1px solid #abcba4; border-radius: 50%; left: 48px; top: 30px; transform: rotate(-24deg); }
.sheet { position: absolute; width: 143px; height: 169px; border-radius: 12px; box-shadow: 0 10px 22px #234a3022; }
.back { background: #97bb87; top: 54px; left: 188px; transform: rotate(21deg); }
.middle { background: #2e664c; top: 48px; left: 169px; transform: rotate(8deg); }
.front { top: 44px; left: 117px; transform: rotate(-13deg); background: #fbfcf2; border: 1px solid #c9dabc; overflow: hidden; }
.sheet-title { padding: 14px; height: 57px; background: #bed9a7; }
.sheet-title i, .sheet-body i { display: block; margin: 5px 0; width: 55%; height: 5px; border-radius: 10px; background: #3c6e53; }
.sheet-title i + i { width: 34%; opacity: .55; }
.sheet-body { padding: 12px 14px; }
.sheet-body i { width: 90%; background: #dbe5d5; }
.sheet-body i:last-child { width: 60%; }
.sheet-footer { margin-left: 14px; width: 34px; height: 17px; border-radius: 4px; background: #dfa759; }
.spark { position: absolute; top: 38px; right: 43px; color: #38674d; font-size: 30px; }
.dot { position: absolute; left: 67px; bottom: 64px; width: 9px; height: 9px; border-radius: 50%; background: #bb7c36; }
.courses { margin-top: 32px; scroll-margin-top: 15px; }
.section-header { margin-bottom: 14px; }
.section-header h2 { font-size: 24px; letter-spacing: -.035em; }
.count { padding: 5px 10px; background: #e7eee3; border-radius: 99px; font-size: 12px; font-weight: 650; }
.empty { display: grid; justify-items: center; text-align: center; padding: 29px 16px 23px; border: 1px dashed #c7d4c6; border-radius: 13px; background: #fcfdf9; }
.empty-icon, .detail-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #e6efe1; color: #2c5e47; font-size: 22px; }
.empty h3 { margin-top: 10px; font-size: 16px; }
.empty p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.text-button { margin-top: 4px; color: var(--green); background: transparent; }
.text-button:hover { text-decoration: underline; }
.course-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.course-card { display: block; width: 100%; min-height: 115px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fcfdf9; color: inherit; overflow-wrap: anywhere; }
.course-card:hover { border-color: #88ae96; }
.card-name, .card-meta { display: block; }
.card-name { font-size: 17px; font-weight: 700; }
.card-meta { margin-top: 7px; color: var(--muted); font-size: 13px; }
dialog { width: min(510px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 26px; color: inherit; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 70px #0f2b2540; }
dialog::backdrop { background: #0c211bab; }
.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head h2, #details-title { font-size: 27px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.close { border: 0; border-radius: 7px; background: #edf1ea; width: 34px; height: 34px; color: inherit; font-size: 23px; line-height: 1; }
.close:hover, .secondary:hover { background: #e1e9dd; }
.dialog-description { margin: 6px 0 20px; color: var(--muted); font-size: 14px; }
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 650; }
input, select { display: block; width: 100%; min-height: 43px; padding: 8px 10px; color: inherit; background: white; border: 1px solid #aebdb3; border-radius: 7px; }
.unit { color: var(--muted); font-weight: 400; }
.dialog-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.secondary { color: inherit; background: #edf1ea; }
.error, #load-error { color: #982c26; margin-top: 10px; }
.saved { color: var(--green); font-size: 13px; margin-top: 13px; }
#details-title { margin-top: 8px; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 17px 0 0; }
dl div { background: #f3f6ef; border-radius: 8px; padding: 11px; overflow-wrap: anywhere; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 4px 0 0; font-weight: 650; }
@media (max-width: 1050px) { .hero-art { right: -3%; transform: translateY(-50%) scale(.85); } }
@media (max-width: 820px) { .sidebar { position: static; width: auto; padding: 14px 24px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; } .brand { margin: 0; } nav { display: flex; } .sidebar-foot { display: none; } .workspace { margin-left: 0; } }
@media (max-width: 620px) { .sidebar { padding: 11px 14px; } .nav-link { padding: 8px; font-size: 12px; gap: 4px; } .nav-link span { display: none; } .topbar { height: 49px; padding: 0 16px; } main { padding: 23px 16px 36px; } .intro { align-items: flex-start; flex-wrap: wrap; } .intro p { font-size: 14px; } .hero { padding: 24px; min-height: 0; } .hero-content { max-width: 100%; } .hero-art { display: none; } }
