:root {
  --bg: #f7f1e8;
  --card: #fffefb;
  --card2: #f6ede1;
  --line: #eadfce;
  --line2: #d9c8b1;
  --ink: #3e332a;
  --ink2: #6d5c4d;
  --mut: #807060;
  --acc: #a97b56;
  --acc2: #c69d78;
  --accsoft: #f0e1cd;
  --sage: #8fa583;
  --r: 28px;
  --r2: 18px;
  --sh: 0 2px 4px rgba(93, 70, 47, .025), 0 10px 28px rgba(93, 70, 47, .065);
  --spring: cubic-bezier(.22, .8, .25, 1);
  --sidebar: 224px;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-size: 16px; line-height: 1.6; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--acc); outline-offset: 4px;
}
::selection { background: var(--accsoft); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
#sky { background: linear-gradient(165deg, #fcf6ec 0%, #f7f1e8 48%, #f1e6d5 100%); }
#sky b:nth-child(1), #sky b:nth-child(2) { display: block; }
#sky .sun { display: block; width: 700px; height: 700px; right: -185px; top: -200px; opacity: .3; }
#grain { opacity: .1; }
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.skip-link { position: fixed; top: -70px; left: 24px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--card); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); height: 100dvh; z-index: 40; background: linear-gradient(175deg, rgba(252,247,239,.94), rgba(240,225,205,.92)); backdrop-filter: blur(16px); border-right: 1px solid rgba(217,200,177,.6); display: flex; flex-direction: column; padding: 30px 16px 18px; }
.sidebar .brand { padding: 0 10px 30px; color: var(--ink); text-decoration: none; gap: 10px; flex-shrink: 0; }
.brand img { width: 37px; height: 37px; border-radius: 14px; }
.brand b { font-size: 27px; letter-spacing: -.06em; line-height: 1.1; display: block; }
.brand small { display: block; font-size: 12px; letter-spacing: .015em; margin-top: 6px; font-weight: 500; color: var(--ink2); }
.tabs { flex: 1; min-height: 0; display: block; background: none; border: 0; border-radius: 0; padding: 0 2px; overflow-y: auto; }
.nav-group + .nav-group { margin-top: 25px; }
.nav-label { font-size: 12px; font-weight: 500; color: var(--mut); padding: 0 12px 8px; }
.navbtn { width: 100%; min-height: 43px; padding: 10px 12px; gap: 12px; border-radius: 99px; font-size: 14px; color: var(--ink2); line-height: 1.4; text-align: left; margin: 2px 0; }
.navbtn .ui-icon { width: 18px; height: 18px; opacity: .85; }
.navbtn:hover { background: rgba(255, 254, 251, .65); }
.navbtn.on { background: linear-gradient(140deg, #fffefb, #fcf3e6); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(217,200,177,.6), 0 4px 12px rgba(93,70,47,.09); }
.navbtn.on .ui-icon { opacity: 1; }
.nav-key { margin-left: auto; font-size: 12px; opacity: .55; font-variant-numeric: tabular-nums; }
.navbtn:active { transform: none; }
.sidebar-bottom { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line2); flex-shrink: 0; }
.sidebar-status { display: flex; align-items: center; gap: 10px; padding: 19px 8px 14px; }
.sidebar-status > div:last-child { min-width: 0; }
.status-icon { background: #e4e7d9; color: #617458; width: 34px; height: 36px; display: grid; place-items: center; border-radius: 13px; flex-shrink: 0; }
#schoolLabel { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.35; }
.navfoot { font-size: 12px; white-space: normal; text-align: left; margin: 3px 0 0; display: block; line-height: 1.5; }
.sidebar-about { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px 0; font-size: 12px; color: var(--mut); text-decoration: none; }
.sidebar-about:hover { color: var(--ink); }
.workspace { margin-left: var(--sidebar); min-height: 100vh; }
.workspace-top { min-height: 76px; padding: 12px 38px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); background: rgba(252, 247, 239, .76); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 14px; color: var(--mut); font-size: 14px; min-width: 0; }
.breadcrumb b { font-weight: 500; color: var(--ink); }
.crumb-divider { color: var(--line2); }
.workspace-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-button { width: 40px; height: 40px; border: 1px solid transparent; background: transparent; color: var(--ink2); border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.icon-button:hover { background: var(--accsoft); border-color: var(--line2); }
.menu-button { display: none; }
.nav-shade { display: none; }
main { max-width: 1300px; padding: 36px 38px 40px; margin: 0 auto; min-width: 0; }
main:focus { outline: none; }
main > *, .grid > *, .notes > *, .inline > *, .row > *, .spread > *, .tleft, .tright { min-width: 0; }
.head { margin-bottom: 26px; }
.head h1 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; letter-spacing: -.04em; line-height: 1.2; margin-top: 6px; }
.head p { font-size: 16px; color: var(--mut); margin-top: 10px; }
.eyebrow { font-size: 12px; letter-spacing: .13em; font-weight: 500; line-height: 1.5; }
.mini { font-size: 14px; line-height: 1.55; }
h3 { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.today-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.date-stamp { background: var(--card); border: 1px solid var(--line2); border-radius: 22px; width: 74px; padding: 8px 14px; flex-shrink: 0; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.date-stamp span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--acc); }
.date-stamp b { display: block; font-family: var(--f-d); font-size: 30px; font-weight: 500; line-height: 1.2; }
.date-stamp small { font-size: 12px; color: var(--mut); }
.date-stamp:hover { background: var(--card2); }
.card { padding: 24px; border-radius: var(--r); box-shadow: var(--sh); }
.grid { gap: 22px; }
.sep { margin: 18px 0; background: var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 42px; border-radius: 99px; background: var(--card); font-size: 14px; line-height: 1.5; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.btn:hover { background: var(--card2); box-shadow: 0 3px 8px rgba(62, 51, 42, .06); transform: translateY(-1px); }
.btn.p { background: linear-gradient(145deg, #c69d78, #a97b56); border-color: #a97b56; color: #35251b; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 5px 13px rgba(169,123,86,.18); font-weight: 600; }
.btn.p:hover { background: linear-gradient(145deg, #d1ac87, #b88a62); border-color: #a97b56; box-shadow: 0 7px 18px rgba(169,123,86,.23); }
.btn.p:after { display: none; }
.btn.gh { background: transparent; color: var(--ink2); border-color: transparent; box-shadow: none; }
.btn.gh:hover { background: rgba(240,225,205,.75); }
.btn.s { padding: 7px 12px; font-size: 14px; min-height: 36px; }
.btn.big { width: 100%; padding: 13px 20px; font-size: 16px; }
.btn.good { background: #e0e8da; color: #4f6647; border-color: #b6c8ac; }
.btn.bad { background: #f2d6d2; color: #8d4a44; border-color: #d7ada7; }
.btn .ui-icon { width: 17px; height: 17px; }
.rip { display: none; }
input, select, textarea { font-size: 16px; padding: 11px 13px; border-radius: 16px; background-color: var(--card); min-width: 0; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(169, 123, 86, .12); outline: none; }
input::placeholder, textarea::placeholder { color: #968674; opacity: 1; }
label.fl { font-size: 14px; color: var(--ink2); gap: 7px; }
.inline { gap: 12px; }
select { padding-right: 34px; }
.hero { background: linear-gradient(125deg, #fffefb 8%, #fcf4e8 64%, #f5e6d1); padding: 0; border: 1px solid var(--line); box-shadow: var(--sh); overflow: hidden; }
.heroRow { display: grid; grid-template-columns: minmax(240px, .95fr) minmax(260px, 1.15fr); gap: 0; flex-wrap: initial; }
.clockCol { padding: 28px 30px; border: 0; gap: 9px; width: auto; background: transparent; }
.clock { font-size: clamp(40px, 4.3vw, 62px); font-weight: 400; letter-spacing: -.045em; line-height: 1.2; white-space: nowrap; }
.clock small { font-family: var(--f-b); font-size: 14px; font-weight: 400; letter-spacing: .01em; margin-left: 9px; }
.datetxt { font-size: 14px; color: var(--ink2); font-weight: 400; }
.nowCol { min-width: 0; margin: 12px; padding: 24px; border-radius: 24px; background: radial-gradient(ellipse at 100% 0%, rgba(241,215,183,.65), transparent 80%), linear-gradient(140deg, #f8eedf, #f0e1cd); color: var(--ink); border: 1px solid rgba(217,200,177,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.nowCol .eyebrow { color: #806047; margin-bottom: 8px; }
.nowCol .big { font-size: 26px; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
.nowCol .mini { color: var(--ink2); font-size: 14px; margin-top: 5px; }
.nowCol .bar { background: #e5d3ba; height: 6px; margin-top: 16px; }
.nowCol .bar i { background: linear-gradient(90deg, var(--acc2), var(--acc)); }
.bar i:after { animation: none; display: none; }
#dialR:not(:empty) { padding: 18px 26px 22px; border-top: 1px solid var(--line2); background: var(--card); }
#dialR > .eyebrow { margin-top: 0 !important; }
.pip { font-size: 14px; border-radius: 99px; }
.pip.on { background: var(--accsoft); color: var(--ink); border-color: var(--acc2); box-shadow: none; }
.rotline { font-size: 14px; max-width: none; }
.tgrid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); gap: 22px; margin-top: 24px; align-items: start; }
.tleft, .tright { display: flex; flex-direction: column; gap: 22px; }
.tleft > #aiR:empty { display: none; }
.task-card { overflow: hidden; }
.ring { width: 44px; height: 44px; order: 2; }
.ring circle { stroke-width: 4; }
.item { background: #fffdf9; border: 1px solid var(--line); border-radius: 18px; padding: 13px 14px; gap: 12px; align-items: flex-start; }
.item + .item { margin-top: 8px; }
.item:last-child { border-bottom: 1px solid var(--line); }
.item:hover { background: #fdf7ee; border-color: var(--line2); }
.item > div[style*="flex:1"] { min-width: 0; }
.item .n { font-size: 16px; font-weight: 400; overflow-wrap: anywhere; line-height: 1.5; }
.item .sub { font-size: 13px; line-height: 1.5; margin-top: 3px; overflow-wrap: anywhere; }
.item .t { min-width: 60px; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .btn.gh { padding: 4px 8px; min-width: 30px; min-height: 32px; opacity: .65; }
.item:hover .btn.gh, .item:focus-within .btn.gh { opacity: 1; }
.chk { appearance: none; width: 22px; height: 22px; min-width: 22px; padding: 0; border-radius: 8px; margin-top: 3px; }
.tag { font-size: 12px; padding: 4px 8px; }
.quick-compose { margin: 20px -24px -24px; padding: 22px 24px 24px; border-top: 1px solid var(--line); background: #fbf7f0; }
.compose-heading { margin-bottom: 15px; }
.schedule-card { padding: 24px 22px; }
.schedule-card .eyebrow { margin-bottom: 4px; }
.schedule-card .tag { font-size: 12px; max-width: 100%; white-space: normal; }
#dayR .item { position: relative; padding: 14px 10px 14px 18px; margin-left: 0; gap: 9px; }
#dayR .swatch { width: 5px; min-height: 0; position: absolute; left: 7px; top: 18px; bottom: 18px; }
#dayR .item .n { font-size: 14px; font-weight: 500; }
#dayR .item .sub { font-size: 12px; }
#dayR .item .tag { font-size: 12px; padding: 2px 5px; align-self: flex-start; }
#dayR .item.past { opacity: .62; }
#dayR .item.now { border: 1px solid #bccbae; border-radius: 18px; background: linear-gradient(140deg, #f3f6ec, #e8efdf); padding: 14px 10px 14px 18px; margin-inline: 0; box-shadow: 0 4px 12px rgba(143,165,131,.09); }
#dayR .item.now .swatch { left: 7px; }
.orderstrip { display: block; margin: 0; padding: 20px 22px; background: rgba(255,254,251,.64); border-color: var(--line); border-radius: var(--r); }
.orderstrip h3 { font-size: 20px; }
.orderstrip > .spread { margin-bottom: 14px; }
.orderline { gap: 8px; }
.ochip.sm { border-color: var(--line); background: rgba(255,254,251,.55); padding: 6px 8px; border-radius: 99px; font-size: 12px; gap: 6px; overflow-wrap: anywhere; }
.ochip.sm .num { width: 20px; height: 20px; font-size: 12px; flex-shrink: 0; border-radius: 50%; color: var(--ink); }
.warnline { font-size: 14px; }
.empty { background: #fbf8f2; border: 1px dashed var(--line2); padding: 24px 18px; font-size: 14px; line-height: 1.6; color: var(--mut); }
.empty b { display: block; font-family: var(--f-d); font-size: 22px; color: var(--ink2); font-weight: 400; margin-bottom: 6px; }
.empty span { display: block; }
.empty-tasks { padding: 32px 24px; background: #f3f5ee; border-color: #d4ddca; }
.solar { border: 1px solid var(--line2); background: linear-gradient(135deg, #fff8ed, #f0e1cd); }
.solar .big { font-family: var(--f-d); font-size: 24px; font-weight: 400; }
.solarOut { font-size: 16px; line-height: 1.8; background: rgba(255,254,251,.65); border-color: rgba(169,123,86,.16); padding: 18px; }
.solarhead { background: linear-gradient(135deg, #fffaf2, #f2e5d3); }
.clockbig { font-size: 46px; font-weight: 400; }
#solarPageR { max-width: 1000px; }
#solarPageR > .row:first-child { justify-content: flex-end; }
#solarPageR > .card { margin-bottom: 22px !important; }
#solarPageR .chips { gap: 9px; }
#solarPageR .chip { text-align: left; }
#solarReply .item { padding: 20px 0; }
#solarReply .sub { font-size: 16px; }
.locknote, .helpbox { font-size: 14px; line-height: 1.7; padding: 16px 18px; }
.sample { font-size: 12px; }
.tgl { outline-offset: 4px; }
.notes { grid-template-columns: 270px minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line2); border-radius: 30px; overflow: hidden; min-height: 65vh; }
.notes-sidebar { padding: 22px 18px; background: linear-gradient(150deg, #f8efe2, #f0e3d0); border-right: 1px solid var(--line); }
.notes-sidebar > .btn { margin-bottom: 14px !important; }
.nlist { gap: 5px; max-height: 60vh; padding: 2px; }
.nbtn { border: 1px solid transparent; background: transparent; padding: 15px 13px; border-radius: 18px; }
.nbtn:hover { transform: none; background: rgba(255,254,251,.6); }
.nbtn.on { background: linear-gradient(125deg, #fffaf3, #f4e4ce); border-color: var(--acc2); box-shadow: 0 2px 8px rgba(62,51,42,.035); }
.nbtn b { font-family: var(--f-b); font-size: 16px; font-weight: 500; }
.nbtn span { font-size: 13px; }
.nbtn i { width: 3px; top: 12px; bottom: 12px; border-radius: 3px; }
#noteEditR { min-width: 0; }
#noteEditR > .card { padding: 30px; border: 0; border-radius: 0; box-shadow: none; min-height: 65vh; }
.ntitle { font-size: clamp(25px, 2.7vw, 38px); font-weight: 400; border-radius: 0; line-height: 1.3; }
.nmeta { gap: 10px; padding: 15px 0 18px; border-bottom: 1px solid rgba(109,92,77,.14); font-size: 13px; }
.nmeta .btn, .nmeta select { font-size: 14px !important; }
.sw { width: 26px; height: 26px; border-radius: 50%; }
#nBody { font-size: 16px; line-height: 1.95; min-height: 46vh; padding-top: 6px; }
#board { border-radius: 28px; background: #ece1d0; box-shadow: inset 0 1px 4px rgba(62,51,42,.04); min-height: 650px; }
#board:before { background-size: 23px 23px; opacity: .7; background-image: radial-gradient(#bba78e .9px, transparent .9px); }
.boardbar { background: var(--card); padding: 12px 16px; border: 1px solid var(--line); border-radius: 20px; }
.pin { border-radius: 20px; padding: 22px 16px 12px; border-color: rgba(109,92,77,.16); box-shadow: 2px 7px 12px rgba(109,92,77,.12); }
.pin input.ptitle { font-size: 18px; }
.pin textarea { font-size: 14px; }
.pin .tack { width: 14px; height: 14px; top: -6px; margin-left: -7px; background: radial-gradient(circle at 34% 30%, #fff9f0, #b58a63 62%, #805939); box-shadow: 0 3px 6px rgba(93,70,47,.24); }
.ptools button { font-size: 14px; min-height: 30px; min-width: 30px; }
.cal { gap: 7px; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.dow { font-size: 12px; padding: 10px 0; background: transparent; }
.day { border-radius: 18px; min-height: 112px; padding: 11px; border: 1px solid var(--line); gap: 7px; background: var(--card); }
.day:hover { transform: none; box-shadow: inset 0 0 0 1px var(--acc2); background: var(--card2); }
.day .num { font-size: 14px; min-height: 24px; }
.day.today { box-shadow: inset 0 0 0 2px var(--acc); }
.day.sel { background: linear-gradient(145deg, #fff5e8, #f2dfc4); box-shadow: inset 0 0 0 2px var(--acc); }
.day.out { opacity: 1; background: #f8f4ed; color: var(--mut); }
.day.out .num { opacity: .6; }
.pill { font-size: 12px; padding: 3px 6px; border-radius: 9px; }
.chip { font-size: 14px; padding: 8px 13px; border-radius: 99px; }
.chip:hover { transform: none; box-shadow: none; background: var(--card2); }
.chip.on { background: linear-gradient(140deg, #f6e8d6, #e9d2b6); border-color: var(--acc2); color: #60452f; box-shadow: inset 0 1px 0 rgba(255,255,255,.65); }
.chips { gap: 8px; }
#monthChipsR { gap: 3px; }
#monthChipsR .chip { font-size: 14px; padding: 6px 10px; border-color: transparent; background: transparent; }
#monthChipsR .chip.on { background: var(--accsoft); color: #60452f; border-color: var(--acc2); }
.cards-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.cards-layout > div:first-child { background: var(--card2); border: 1px solid var(--line); border-radius: 26px; padding: 20px; }
.deckcard { padding: 24px 20px; background: var(--card); border-radius: 22px; margin-bottom: 10px; }
.deckcard b { font-size: 22px; font-weight: 400; }
.deckcard i { width: 4px; }
.deckcard:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(62,51,42,.06); }
.study { max-width: 760px; padding-top: 15px; }
.fcard { height: 380px; }
.face { padding: 40px 34px; font-size: 30px; font-weight: 400; border: 1px solid var(--line2); box-shadow: 0 6px 0 var(--line), 0 18px 40px rgba(62,51,42,.04); border-radius: 30px; }
.face.back { background: #edf1e7; }
.face .hint { font-size: 12px; bottom: 20px; }
.studybar { margin-top: 26px; flex-wrap: wrap; }
.sprog { height: 4px; margin-bottom: 24px; }
.gsumbig { border-radius: 28px; padding: 28px; background: linear-gradient(140deg, #fff8ee, #f0e1cd); color: var(--ink); box-shadow: var(--sh); }
.gsumbig .mini, .gsumbig .eyebrow { color: var(--ink2); }
.gnum { font-size: 58px; font-weight: 400; }
.gcount { border-radius: 22px; padding: 18px 8px; }
.gcount b { font-size: 30px; font-weight: 400; }
.gcount span { font-size: 12px; }
.gradehd, .graderow { padding: 16px 22px; }
.gradehd { font-size: 12px; letter-spacing: .08em; }
.gc-n b { font-size: 16px; }
.gc-n em, .gc-t, .gc-q, .gpill { font-size: 14px; }
.gbarrow { opacity: .45; }
.appgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.apptile { padding: 24px 14px 20px; border-radius: 24px; gap: 13px; }
.apptile:hover { box-shadow: 0 8px 20px rgba(62,51,42,.06); }
.appic { width: 45px; height: 45px; border-radius: 17px; font-size: 16px; }
.appname { font-size: 14px; }
.appurl { font-size: 12px; }
.appdel { min-width: 28px; min-height: 28px; font-size: 14px; }
.apptile:focus-within .appdel { opacity: 1; }
.barprev { padding: 38px 22px; border: 1px dashed var(--line2); background-image: radial-gradient(var(--line2) .8px, transparent .8px); background-size: 18px 18px; }
.barprevin { max-width: 600px; margin: 0 auto; padding: 16px 20px; }
.dragrow { padding: 15px 16px; background: var(--card); }
#stabsR { padding: 7px; background: #eee4d7; border-radius: 24px; gap: 4px; display: inline-flex; max-width: 100%; }
#stabsR .chip { background: transparent; border-color: transparent; }
#stabsR .chip.on { background: var(--card); color: var(--ink); border-color: var(--line2); box-shadow: 0 2px 4px rgba(62,51,42,.04); }
#setupPaneR { max-width: 1100px; margin-top: 10px; padding: 28px; }
.crow { padding: 13px 12px; border-radius: 18px; gap: 10px; }
.cfields { gap: 9px; }
.ord { color: var(--ink); font-size: 14px; width: 30px; height: 32px; }
.arrows button { font-size: 12px; min-width: 28px; min-height: 21px; }
.pname { font-size: 14px; }
details { padding: 16px 18px; border-radius: 18px; }
summary:before { content: '+'; font-size: 19px; }
details[open] summary:before { content: '−'; transform: none; }
.filedrop { padding: 26px 20px; font-size: 16px; background: var(--card2); border-radius: 22px; }
.dbtn { font-size: 14px; min-height: 38px; }
.gate { background: linear-gradient(155deg, #fbf4e9, #f3e7d5 65%, #e9d8bf); align-items: flex-start; padding: max(40px, 7vh) 24px; }
.gate .sun { width: 600px; height: 600px; top: -220px; right: -160px; opacity: .32; }
.gate .spark { display: block; opacity: .25; }
.gate .gorb { display: block; }
.gate:after { opacity: .08; }
.gatewrap { max-width: 1020px; align-items: flex-start; margin: auto; gap: 28px; }
.gate .box { max-width: 540px; padding: 42px; border: 1px solid var(--line2); border-radius: 32px; box-shadow: 0 22px 60px rgba(103,74,48,.13); }
.mark { animation: float 7s ease-in-out infinite; width: 58px; height: 58px; margin-bottom: 28px; border-radius: 15px; background: transparent; }
.gate h2 { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -.035em; margin: 8px 0 16px; }
.gate .mini { font-size: 16px; }
.gate .msg { font-size: 14px; margin: 10px 0; }
.welcome-local { background: var(--card2); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin-top: 25px; }
.welcome-local b { font-weight: 500; }
.welcome-local p { margin: 6px 0 0; color: var(--ink2); font-size: 14px; }
.gside { padding: 26px; border-radius: 28px; background: rgba(255,252,246,.76); width: 340px; box-shadow: none; top: 0; }
.gside h3 { font-size: 26px; font-weight: 400; margin: 5px 0 12px; }
.gside .mini { font-size: 14px; }
.prevrow { font-size: 14px; padding: 12px 10px; background: rgba(255,254,251,.7); }
.prevrow .num { font-size: 12px; width: 25px; height: 25px; color: var(--ink); }
.prevrow .t2 { font-size: 12px; }
.opt b { font-size: 18px; }
.dots { gap: 8px; margin-bottom: 26px; }
.dots i { height: 4px; }
.keysbox { padding: 28px; border-radius: 26px; }
.keysgrid { gap: 13px; margin-top: 20px; }
.keyscrim { background: rgba(62,51,42,.35); }
.keyrow { font-size: 16px; }
.tipfoot { margin: 0 auto; max-width: 1300px; padding: 0 38px 28px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; text-align: left; opacity: 1; line-height: 1.6; }
.linkbtn { color: var(--ink2); }
.toast { font-size: 14px; max-width: calc(100vw - 32px); width: max-content; animation: toast-in .2s ease both; border: 1px solid rgba(255,254,251,.15); box-shadow: 0 10px 30px rgba(62,51,42,.2); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.rise { animation-duration: .35s; }
@media (max-width: 1180px) {
  :root { --sidebar: 204px; }
  .sidebar { padding: 26px 12px 16px; }
  .workspace-top { padding-inline: 26px; }
  main { padding: 28px 26px 36px; }
  .tipfoot { padding-inline: 26px; }
  .tgrid { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 16px; }
  .tleft, .tright { gap: 16px; }
  .card { padding: 20px; }
  .quick-compose { margin: 20px -20px -20px; padding: 20px; }
  .heroRow { grid-template-columns: minmax(215px, 1fr) minmax(240px, 1.1fr); }
  .clockCol, .nowCol { padding: 24px; }
  .clock { font-size: 44px; }
  .notes { grid-template-columns: 235px minmax(0, 1fr); }
  #noteEditR > .card { padding: 24px; }
  .cards-layout { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .sidebar { padding-top: 20px; }
  .sidebar .brand { padding-bottom: 20px; }
  .nav-group + .nav-group { margin-top: 16px; }
  .navbtn { min-height: 40px; padding-block: 8px; }
  .sidebar-bottom { margin-top: 12px; padding-top: 10px; }
  .sidebar-status { padding-block: 12px; }
}
@media (min-width: 901px) and (max-width: 1050px) {
  .tgrid { grid-template-columns: 1fr; }
  .tright { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: start; }
  .g2 { grid-template-columns: 1fr; }
  .notes, .cards-layout { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --sidebar: 254px; }
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .22s, visibility .22s; z-index: 70; padding: 26px 16px 18px; box-shadow: 16px 0 50px rgba(62,51,42,.12); }
  .nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .nav-open .nav-shade { display: block; position: fixed; inset: 0; background: rgba(62,51,42,.3); border: 0; width: 100%; height: 100%; z-index: 65; backdrop-filter: blur(3px); }
  body.nav-open { overflow: hidden; }
  .workspace { margin-left: 0; }
  .workspace-top { padding: 12px 24px; min-height: 68px; gap: 12px; }
  .menu-button { display: inline-grid; }
  .sidebar .tabs { order: initial; width: auto; overflow-y: auto; }
  .navbtn { font-size: 14px; padding: 10px 12px; }
  .navfoot { display: block; }
  main { padding: 28px 24px 36px; }
  .tgrid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr); }
  .clockCol { width: auto; border: 0; }
  .heroRow { grid-template-columns: 1fr 1fr; }
  .notes { grid-template-columns: 230px minmax(0, 1fr); }
  .cards-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .gside { display: none; }
}
@media (max-width: 700px) {
  .workspace-top { padding: 10px 16px; }
  .workspace-actions { gap: 4px; }
  .breadcrumb { gap: 8px; }
  .breadcrumb > span { display: none; }
  .top-bar-button { padding: 7px 10px !important; }
  main { padding: 24px 16px 32px; }
  .head { margin-bottom: 22px; }
  .head h1 { font-size: 34px; }
  .head p { font-size: 16px; }
  .today-heading { align-items: flex-start; }
  .date-stamp { width: 64px; padding-inline: 10px; }
  .heroRow { grid-template-columns: 1fr; }
  .clockCol { padding: 24px; gap: 9px; }
  .clock { font-size: 52px; }
  .nowCol { padding: 22px; margin: 0 12px 12px; }
  .nowCol .big { font-size: 26px; }
  .tgrid { grid-template-columns: minmax(0, 1fr); margin-top: 20px; gap: 20px; }
  .tleft, .tright { gap: 20px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .card, #setupPaneR { padding: 20px; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .notes-sidebar { border-right: 0; border-bottom: 1px solid var(--line2); padding: 18px; }
  .nlist { max-height: 250px; }
  #noteEditR > .card { padding: 22px; min-height: 50vh; }
  .ntitle { font-size: 30px; }
  .cards-layout { grid-template-columns: minmax(0, 1fr); }
  #deckListR { max-height: 310px; overflow-y: auto; }
  .fcard { height: 310px; }
  .face { font-size: 25px; padding: 32px 24px; }
  .studybar .btn { min-width: 120px; }
  .cal { margin-inline: -8px; gap: 4px; }
  .day { min-height: 88px; padding: 7px 4px; gap: 4px; border-radius: 12px; }
  .day .num { font-size: 14px; }
  .day .pill { max-width: 100%; font-size: 12px; padding: 2px 3px; }
  .dow { font-size: 12px; letter-spacing: 0; }
  #yearR { margin-top: 7px; }
  .appgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .apptile { padding: 22px 12px; }
  .appdel { opacity: 1; }
  .gc-n b { font-size: 14px; }
  .gradehd, .graderow { padding: 15px 14px; }
  .gspread { gap: 6px; }
  .cfields { grid-template-columns: 1fr; }
  .crow { flex-wrap: wrap; }
  .crow .cfields { min-width: 160px; }
  .pname { width: 100%; }
  .barprev { padding: 28px 12px; }
  .barprevin { padding: 13px; flex-wrap: wrap; }
  .bpnote { white-space: normal; }
  .gate { padding: 22px 16px; }
  .gate .box { padding: 28px 24px; }
  .gate h2 { font-size: 32px; }
  .gate .sun { opacity: .18; }
  .mark { margin-bottom: 22px; }
  .tipfoot { padding: 0 16px 24px; flex-direction: column; gap: 6px; }
  .pin .ptools { opacity: 1; }
  .boardbar { gap: 8px; padding: 12px; }
  #board { min-height: 560px; }
  .toast { bottom: 16px; }
  .keyrow { font-size: 14px; }
}
@media (max-width: 380px) {
  .workspace-top { gap: 6px; padding-inline: 10px; }
  .workspace-actions { gap: 0; }
  .top-bar-button { font-size: 12px !important; }
  .head h1 { font-size: 29px; }
  .head p { font-size: 14px; }
  .date-stamp { width: 54px; }
  .card, #setupPaneR { padding: 16px; }
  .quick-compose { margin-inline: -16px; margin-bottom: -16px; padding: 18px 16px; }
  .clock { font-size: 46px; }
  .today-heading { gap: 12px; }
}
@media (hover: none) { .pin .ptools, .appdel { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.gcard { padding: 0; }
.gtable { overflow-x: auto; }
.gradehd, .graderow { grid-template-columns: minmax(150px, 2.1fr) minmax(96px, 1.1fr) repeat(var(--qn, 3), 36px) 104px; }
@media (max-width: 1080px) { .gradehd .gc-t, .graderow .gc-t, .gradehd .gc-q, .graderow .gc-q { display: none; } .gradehd, .graderow { grid-template-columns: minmax(0, 1fr) 104px; } }

@media (max-width: 1180px) {
  #dayR .item { flex-wrap: wrap; column-gap: 9px; }
  #dayR .item > .t { min-width: 54px; }
  #dayR .item > div[style*="flex:1"] { flex-basis: 115px !important; }
  #dayR .item > .tag { margin-left: 63px; }
}
@media (max-width: 700px) {
  #sky .sun { width: 420px; height: 420px; top: -135px; right: -160px; opacity: .22; }
  .gate .spark { opacity: .16; }
}
