:root{font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color-scheme:light;--page:#f5f7f2;--paper:rgba(255,254,250,.97);--ink:#26372d;--muted:#516154;--accent:#376e50;--on-accent:#fff;--tint:#e9f0e6;--line:#dce2d8;--image:none;--cover:none;--shadow:0 8px 26px #253d2410}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a{touch-action:manipulation}button{border:0;background:transparent;transition:background-color 120ms,opacity 100ms,border-color 120ms}button:active{opacity:.72}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}button:disabled{opacity:.4;cursor:default}h1,h2,h3,p{margin:0}h1{font-size:22px;line-height:1.3;letter-spacing:-.035em}h2{font-size:19px;line-height:1.4;letter-spacing:-.02em}h3{font-size:15px;line-height:1.45}small,.small{font-size:12px;color:var(--muted);line-height:1.6}.svg{width:21px;height:21px;display:block;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.muted{color:var(--muted)}.grow{flex:1;min-width:0}.number{font-variant-numeric:tabular-nums}.icon-btn{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:12px;color:var(--ink)}.icon-btn .svg{width:21px;height:21px}.primary,.secondary{min-height:48px;padding:12px 18px;border-radius:13px;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.primary{background:var(--accent);color:var(--on-accent)}.secondary{background:var(--tint);color:var(--ink)}.full{width:100%}.row{display:flex;align-items:center;gap:10px}.spread{display:flex;align-items:center;justify-content:space-between;gap:10px}.kicker{font-size:11px;letter-spacing:.04em;color:var(--muted)}.chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;background:var(--tint);font-size:11px;white-space:nowrap;color:var(--accent)}
#app{height:100dvh;max-width:540px;margin:auto;position:relative;display:flex;flex-direction:column;background:var(--page);overflow:hidden}#head{flex-shrink:0;position:relative;background:var(--paper);padding:8px 14px 10px;z-index:2}.topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}.top-actions{display:flex;gap:2px}.context{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;min-height:30px}.context button{min-height:44px;padding:4px 6px;margin-right:-6px;display:flex;align-items:center;gap:5px}.context .svg{width:15px;height:15px}.search-box{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:0 10px;margin-top:8px}.search-box input{width:100%;min-width:0;min-height:44px;border:0;outline:none;background:transparent;font-size:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 10px}.section-head h2{font-size:16px}.section-head button{font-size:12px;color:var(--muted);min-height:44px;margin:-8px 0;padding:6px 0 6px 8px;display:flex;align-items:center;gap:4px}.section-head .svg{width:15px;height:15px}.subtabs{display:flex;gap:8px;padding:8px 0 0;overflow-x:auto;scrollbar-width:none}.subtabs button{min-height:44px;padding:8px 13px;flex-shrink:0;border-radius:12px;display:flex;align-items:center;gap:8px;background:var(--tint);font-size:13px;color:var(--muted)}.subtabs button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}
#content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 24px;scrollbar-width:thin;scroll-padding:12px 0 20px}.panel{background:var(--paper);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.hero{padding:18px;position:relative;overflow:hidden;min-height:158px}.hero h2{font-size:24px;margin:10px 0 5px;max-width:65%;line-height:1.25}.hero p{font-size:12px;color:var(--muted);margin:6px 0 0;position:relative}.hero .hero-link{position:relative;display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:12px;font-weight:600;margin-top:5px;color:var(--accent)}.hero .hero-link .svg{width:15px;height:15px}.hero-art{position:absolute;right:0;top:0;width:34%;height:100%;object-fit:cover;object-position:70% 65%;mask-image:linear-gradient(90deg,transparent,black 36%);opacity:.85}.hero :is(.chip,h2){position:relative}.hero-meta{display:flex;gap:12px;align-items:center;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);position:relative}.hero-meta b{font-size:16px;color:var(--ink);font-weight:600}.hero .primary{position:relative;margin-top:14px;min-height:44px;padding:8px 16px;font-size:13px}.exercise-list{padding:0 12px}.exercise-row{display:flex;gap:12px;align-items:center;min-height:78px;width:100%;padding:12px 0;text-align:left;border-bottom:1px solid var(--line)}.exercise-row:last-child{border-bottom:0}.exercise-row .thumb{display:grid;place-items:center;flex-shrink:0;width:46px;height:50px;background:#fffefa;border-radius:10px;overflow:hidden}.exercise-row .thumb img{width:100%;height:100%;object-fit:contain}.exercise-row strong{font-size:14px;display:block;font-weight:600}.exercise-row .small{display:block;margin-top:4px}.exercise-row>.svg{width:16px;height:16px;color:var(--muted)}.panel-note{font-size:12px;color:var(--muted);margin:12px 1px}.quote{font-size:13px;color:var(--muted);padding:20px 0 2px;text-align:center}.stats{display:grid;grid-template-columns:repeat(3,1fr);padding:15px 4px}.stats>div{text-align:center}.stats>div+div{border-left:1px solid var(--line)}.stats b{display:block;font-size:24px;line-height:1.25;font-weight:650;font-variant-numeric:tabular-nums}.stats span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.stats .unit{display:inline;font-size:12px;font-weight:400;margin-left:3px}.lesson-list{padding:0 14px}.lesson-row{display:flex;width:100%;min-height:96px;align-items:center;gap:12px;text-align:left;padding:14px 0;border-bottom:1px solid var(--line)}.lesson-row:last-child{border-bottom:0}.time{min-width:47px;align-self:flex-start;padding-top:2px}.time b{display:block;font-size:18px;font-weight:650;letter-spacing:-.03em}.time small{font-size:11px}.lesson-row strong{display:block;font-size:15px}.lesson-row .small{display:block;margin-top:3px}.badge{font-size:11px;background:var(--tint);color:var(--accent);padding:5px 8px;border-radius:6px;white-space:nowrap}.next-lesson .next-person{font-size:12px;color:var(--muted)}.next-lesson h2{max-width:none;font-size:21px;margin:8px 0}.next-lesson .start-time{font-size:30px;font-weight:650;line-height:1.2;letter-spacing:-.04em}.next-lesson .row{margin-top:12px}.next-lesson .primary{margin:0 0 0 auto}.avatar{width:34px;height:34px;border-radius:11px;background:var(--tint);color:var(--accent);display:grid;place-items:center;font-size:13px;flex-shrink:0}.feedback-list{padding:0 14px}.feedback-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-height:76px;padding:12px 0;border-bottom:1px solid var(--line)}.feedback-row:last-child{border-bottom:0}.feedback-row strong{display:block;font-size:14px}.feedback-row small{display:block;margin-top:3px}.feedback-row>.svg{width:15px;height:15px}.empty{padding:28px 18px;text-align:center;color:var(--muted);background:var(--paper);border-radius:16px;font-size:13px}
#taskbar{flex-shrink:0;display:none;padding:10px 14px;background:var(--paper);border-top:1px solid var(--line);gap:8px}#taskbar :is(.primary,.secondary){flex:1}#taskbar:has(button){display:flex}#nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:5px 8px 8px;background:var(--paper);border-top:1px solid var(--line);flex-shrink:0;min-height:68px}#nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:52px;border-radius:12px;font-size:11px;color:var(--muted)}#nav button[aria-current=page]{color:var(--accent);background:var(--tint)}#nav button .svg{width:21px;height:21px}
.record-head{margin-bottom:14px}.record-head .spread{align-items:flex-start}.record-head h2{font-size:19px;margin:5px 0 8px}.record-head p{font-size:12px;color:var(--muted)}.record-stats{margin-bottom:16px}.record-stats b{font-size:22px}.record-card{padding:14px 12px;margin-bottom:12px}.record-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.record-title .exercise-image{width:62px;height:55px;background:#fffefa;border-radius:10px;object-fit:contain;flex-shrink:0}.record-title h3{font-size:14px}.record-title .small{display:block;margin-top:3px}.record-table-head,.set-line{display:grid;grid-template-columns:32px minmax(48px,1fr) 40px 40px 44px 44px;gap:5px;align-items:center;text-align:center}.record-table-head{font-size:11px;color:var(--muted);padding:0 0 8px;border-bottom:1px solid var(--line)}.set-line{min-height:54px;font-variant-numeric:tabular-nums;border-bottom:1px solid var(--line);font-size:14px}.set-line:last-child{border-bottom:0}.set-line small{display:block;font-size:11px;line-height:1.3}.set-line .rm-value{font-size:13px}.set-line button{width:44px;height:44px;border-radius:10px;display:grid;place-items:center}.set-line button .svg{width:17px;height:17px}.set-line button[aria-pressed=true]{color:var(--accent);background:var(--tint)}.set-line .unfilled{color:var(--muted);font-size:12px}.record-footer{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:11px;color:var(--muted)}.record-footer button{min-height:44px;color:var(--accent);font-size:12px;display:flex;align-items:center;gap:5px}.note-block{padding:16px}.note-block label{display:block;font-size:12px;color:var(--muted)}.note-block textarea{width:100%;min-height:72px;padding:10px;margin-top:8px;background:var(--page);border:1px solid var(--line);border-radius:10px;resize:vertical}.record-title button{min-width:44px;min-height:44px;color:var(--muted)}
dialog{width:calc(100% - 24px);max-width:480px;max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:22px;padding:18px;background:var(--paper);color:var(--ink);box-shadow:0 20px 80px #0003;overflow:auto}dialog::backdrop{background:#16251dcc;backdrop-filter:blur(3px)}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.sheet-head h2{font-size:18px}.sheet-head .icon-btn{margin:-8px -8px -8px 0}.sheet-image{width:100%;height:auto;background:#fffefa;border-radius:12px;margin:8px 0 14px}.sheet-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:block;font-size:13px}.field span{display:block;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--page);font-size:16px}.field textarea{min-height:120px;resize:vertical}.sheet-actions{display:flex;gap:8px;margin-top:20px}.sheet-actions button{flex:1}.help{font-size:12px;color:var(--muted);margin:14px 0}.detail-rows{display:grid;gap:12px;margin:14px 0;font-size:13px}.date-choice{min-height:48px;width:100%;text-align:left;padding:12px;border-radius:10px;border:1px solid var(--line);margin:4px 0}.date-choice[aria-pressed=true]{background:var(--tint);color:var(--accent)}.skin-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.skin-list button{min-height:48px;text-align:left;border:1px solid var(--line);padding:10px;border-radius:10px;font-size:13px}.skin-list button[aria-pressed=true]{background:var(--tint);border-color:var(--accent)}#toast{position:fixed;bottom:92px;left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);padding:10px 14px;background:var(--ink);color:var(--page);font-size:12px;border-radius:12px;z-index:10;pointer-events:none;box-shadow:var(--shadow)}
/* A · Compact plan-first list */
body[data-variant=a] #head h1{font-size:20px}body[data-variant=a] .hero{background:var(--tint);box-shadow:none;min-height:152px}body[data-variant=a] .hero h2{font-size:22px}body[data-variant=a] .hero-art{width:36%;opacity:.65}body[data-variant=a] .hero-meta{border-color:color-mix(in srgb,var(--accent) 18%,transparent)}body[data-variant=a] .panel{box-shadow:none}body[data-variant=a] .next-lesson{min-height:148px}body[data-variant=a] .next-lesson h2{font-size:20px}body[data-variant=a] .exercise-row{min-height:74px}body[data-variant=a] .section-head{margin-top:18px}
/* B · Dark editorial discovery */
body[data-variant=b]{color-scheme:dark;--page:#191c1a;--paper:#242824;--ink:#f5f8f3;--muted:#b9c3b7;--accent:#c2dcad;--on-accent:#1e2c1a;--tint:#343e31;--line:#3c443a;--shadow:none}body[data-variant=b] #head{padding:14px 16px 12px;background:var(--page)}body[data-variant=b] #head h1{font-size:28px;line-height:1.3}body[data-variant=b] #head .context{margin-top:6px}body[data-variant=b] .subtabs button{border-radius:13px;background:#30352f;color:var(--muted)}body[data-variant=b] .subtabs button[aria-pressed=true]{background:#f5f8f3;color:#1e271b}body[data-variant=b] .hero{padding:0;min-height:0;flex:0 0 91%;border-radius:19px;background:var(--paper)}body[data-variant=b] .hero-art{position:static;display:block;width:100%;height:200px;object-fit:cover;object-position:50% 70%;mask-image:none;opacity:1}body[data-variant=b] .hero-content{padding:16px}body[data-variant=b] .hero h2{max-width:none;font-size:21px;margin:0 0 6px}body[data-variant=b] .hero .chip{position:absolute;top:16px;left:16px;background:#d2bf96;color:#30291b}body[data-variant=b] .hero-meta{margin-top:12px;padding-top:12px}body[data-variant=b] .hero .primary{margin-top:12px;min-height:44px}body[data-variant=b] .cover-rail{display:flex;gap:12px;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:2px}body[data-variant=b] .cover-rail>.hero{scroll-snap-align:start}body[data-variant=b] .section-head h2{font-size:19px}body[data-variant=b] .exercise-list{background:transparent;padding:0}body[data-variant=b] .exercise-row{background:var(--paper);padding:12px;margin-bottom:8px;border:0;border-radius:13px}body[data-variant=b] .next-lesson .start-time{font-size:30px}body[data-variant=b] .stats{margin:16px 0}body[data-variant=b] .record-card{border-radius:16px}body[data-variant=b] #nav button[aria-current=page]{background:transparent}body[data-variant=b] .next-lesson .row{margin-top:0}body[data-variant=b] .record-head h2{font-size:24px}
/* C · Existing scenic identity with clear reading surfaces */
body[data-variant=c] #app{background-image:var(--image);background-size:cover;background-position:center}body[data-variant=c] #head{background:linear-gradient(180deg,rgba(255,254,250,.97),rgba(255,254,250,.9));padding-bottom:9px}body[data-variant=c] #content{padding-top:12px}body[data-variant=c] .hero{background:linear-gradient(100deg,var(--paper) 48%,color-mix(in srgb,var(--paper) 45%,transparent));min-height:170px}body[data-variant=c] .hero-art{width:43%;opacity:.8;mask-image:linear-gradient(90deg,transparent,black 65%)}body[data-variant=c] .hero-meta{margin-top:15px}body[data-variant=c] .section-head{background:var(--paper);margin:14px 0 8px;border-radius:12px;padding:7px 12px;min-height:46px}body[data-variant=c] .exercise-row{min-height:82px}body[data-variant=c] .next-lesson{background:var(--paper)}body[data-variant=c] .next-lesson h2{font-size:22px}body[data-variant=c] .stats{margin-top:12px}body[data-variant=c] .record-stats{margin-top:0}body[data-variant=c] .record-head{background:var(--paper);padding:16px;border-radius:16px}body[data-variant=c] .panel-note{background:var(--paper);padding:12px;border-radius:12px}
/* D · Quiet, airy layout; same theme and familiar controls */
body[data-variant=d]{--page:#f8faf5;--paper:#fffefa;--line:#e4e9df;--shadow:none}body[data-variant=d] #app{background:radial-gradient(ellipse at 90% 0%,color-mix(in srgb,var(--accent) 18%,var(--page)),transparent 55%),var(--page)}body[data-variant=d] #head{background:transparent;padding:18px 20px 6px}body[data-variant=d] #head h1{font-size:25px;line-height:1.4}body[data-variant=d] .context{margin-top:6px}body[data-variant=d] #content{padding:12px 20px 28px}body[data-variant=d] .hero{background:transparent;padding:8px 0 20px;min-height:0;border-radius:0;overflow:visible}body[data-variant=d] .hero h2{font-size:28px;max-width:82%;margin:14px 0 10px;font-weight:600}body[data-variant=d] .hero-art{display:none}body[data-variant=d] .hero-meta{padding-top:14px;margin-top:18px}body[data-variant=d] .section-head{margin-top:25px}body[data-variant=d] .exercise-list{padding:0;background:transparent}body[data-variant=d] .exercise-row{min-height:90px;gap:14px}body[data-variant=d] .exercise-row .thumb{width:52px;height:54px;background:transparent}body[data-variant=d] .exercise-row strong{font-size:15px}body[data-variant=d] .exercise-row .small{margin-top:5px}body[data-variant=d] .hero .hero-link{margin-top:4px}body[data-variant=d] .next-lesson{padding:10px 0 20px;background:transparent}body[data-variant=d] .next-lesson h2{font-size:24px;margin:14px 0}body[data-variant=d] .next-lesson .start-time{font-size:34px}body[data-variant=d] .stats{background:transparent;border-block:1px solid var(--line);border-radius:0;padding:20px 0}body[data-variant=d] .lesson-list,body[data-variant=d] .feedback-list{background:transparent;padding:0}body[data-variant=d] .record-head{padding:6px 0 10px}body[data-variant=d] .record-head h2{font-size:25px;font-weight:600}body[data-variant=d] .record-card{padding:18px 0;background:transparent;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:8px}body[data-variant=d] .record-title{margin-bottom:18px}body[data-variant=d] .set-line{min-height:60px}body[data-variant=d] .record-stats{padding:18px 0;margin-bottom:12px}
@media(max-width:359px){#head{padding-left:12px;padding-right:12px}#content{padding-left:12px;padding-right:12px}.record-card{padding-left:9px;padding-right:9px}.record-table-head,.set-line{grid-template-columns:26px minmax(40px,1fr) 36px 36px 44px 44px;gap:3px}.hero h2{font-size:21px}.hero-meta{gap:8px}.subtabs button{padding-left:10px;padding-right:10px}body[data-variant=d] #content{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){button,a{transition:none}*{scroll-behavior:auto!important}}

body[data-view=record] #head [data-action=search]{display:none}

/* The existing sample interaction and theme variables stay shared. */
body[data-profile]{--page:#f5f6f0;--paper:#fffefa;--line:#dfe5d9;--shadow:0 4px 20px #243c2810}
body[data-profile] #app{background:var(--page);background-image:none}
body[data-profile] #head{padding:14px 16px 10px;background:linear-gradient(105deg,#fffefa 55%,#f1f5e9);border-bottom:0}
body[data-profile] h1{font-size:25px;line-height:1.3;letter-spacing:-.04em;font-weight:650}
body[data-profile] .top-actions{gap:6px}
body[data-profile] #head .icon-btn{border:1px solid var(--line);background:#fffefa90;border-radius:50%;width:44px;height:44px}
body[data-profile] .context{margin-top:5px;min-height:44px}
body[data-profile] .context-owner{display:flex;align-items:center;gap:7px;font-size:12px}
body[data-profile] .owner-mark{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;font-size:11px;color:var(--accent);background:var(--tint)}
body[data-profile] .context button{font-size:12px;min-height:44px;margin:0;padding:7px 8px;border-radius:10px}
body[data-profile] #content{padding:10px 16px 20px;background:var(--page)}
body[data-profile] .panel{box-shadow:none;border-radius:18px}
body[data-profile] .section-head{background:transparent;border-radius:0;padding:0 2px;min-height:44px;margin:17px 0 9px}
body[data-profile] .section-head h2{font-size:17px;letter-spacing:-.02em;font-weight:650}
body[data-profile] .section-head button{font-size:12px;min-height:44px;padding:6px 0 6px 8px}
body[data-profile] .hero{padding:0;position:relative;isolation:isolate}
body[data-profile] .hero-art{mask-image:none;opacity:1;display:block;position:absolute;right:0;top:0;width:100%;height:100%;object-fit:cover;object-position:50% 66%;z-index:-2}
body[data-profile] .hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#142b20eb 0%,#173724b8 48%,#203b252b 100%);z-index:-1}
body[data-profile] .hero-content{padding:18px 20px;position:relative;min-height:188px;color:#fffefa}
body[data-profile] .cover-eyebrow{display:flex;align-items:center;justify-content:space-between;gap:10px}
body[data-profile] .cover-eyebrow .chip{background:#fffefa24;color:#fffefa;padding:4px 8px;font-size:11px;border:1px solid #fffefa47;border-radius:6px}
body[data-profile] .cover-number{font-size:12px;letter-spacing:.12em;color:#fffefa;opacity:.8;font-variant-numeric:tabular-nums}
body[data-profile] .hero h2{font-size:27px;font-weight:600;line-height:1.2;letter-spacing:-.035em;color:#fffefa;max-width:85%;margin:20px 0 6px}
body[data-profile] .hero p{font-size:12px;color:#f2f6e9;margin:7px 0 0}
body[data-profile] .hero p span{padding:0 7px;opacity:.6}
body[data-profile] .hero .hero-link{color:#fffefa;font-size:12px;min-height:44px;padding:0;margin:10px 0 0;gap:12px}
body[data-profile] .hero-link>span{display:grid;place-items:center;width:28px;height:28px;background:#fffefa26;border-radius:50%}
body[data-profile] .exercise-list{padding:0 14px;background:var(--paper)}
body[data-profile] .exercise-row{min-height:90px;gap:12px;padding:14px 0}
body[data-profile] .exercise-row strong{font-size:15px;line-height:23px;font-weight:600}
body[data-profile] .exercise-row .small{font-size:12px;margin-top:3px}
body[data-profile] .exercise-order{display:block;font-size:11px;line-height:16px;color:var(--accent);font-variant-numeric:tabular-nums;margin-bottom:2px}
body[data-profile] .exercise-order>span{color:var(--muted);margin-left:5px;font-size:11px}
body[data-profile] .row-arrow{width:22px;height:30px;display:grid;place-items:center;flex-shrink:0;color:var(--muted)}
body[data-profile] .row-arrow .svg{width:16px;height:16px}
body[data-profile] .thumb{width:74px;height:62px;border:1px solid var(--line);position:relative;background:#fffefa;border-radius:12px;overflow:hidden}
body[data-profile] .thumb img{display:block;position:static;transform:none;width:100%;height:100%;object-fit:contain}
body[data-profile] .stats{border-radius:14px;padding:15px 0;margin-top:12px;background:#fffefa;box-shadow:none}
body[data-profile] .stats b{font-size:23px;font-weight:600;letter-spacing:-.025em}
body[data-profile] .stats span{font-size:11px;margin-top:3px}
body[data-profile] .lesson-list{padding:0 14px;background:var(--paper)}
body[data-profile] .lesson-row{min-height:93px;gap:12px;padding:14px 0}
body[data-profile] .lesson-row .time{padding:2px 11px 0 0;border-right:1px solid var(--line);min-width:62px}
body[data-profile] .lesson-row .time b{font-size:18px;line-height:25px;letter-spacing:-.03em}
body[data-profile] .lesson-row strong{font-size:14px;font-weight:600;line-height:22px}
body[data-profile] .lesson-row .small{font-size:12px}
body[data-profile] .badge{border-radius:5px;background:var(--tint);font-size:11px;padding:4px 7px}
body[data-profile] .course-main{display:flex;align-items:center;gap:14px;margin-top:17px}
body[data-profile] .course-time{font-size:32px;font-weight:600;line-height:1.1;letter-spacing:-.04em;flex-shrink:0}
body[data-profile] .course-time small{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:#eaf1e7;line-height:20px;margin-top:5px}
body[data-profile] .course-info{min-width:0}
body[data-profile] .course-info>span{font-size:12px;color:#eaf1e7}
body[data-profile] .course-info h2{font-size:20px;margin:6px 0 0;line-height:1.25;max-width:none;letter-spacing:-.025em}
body[data-profile] .course-order{font-size:11px;color:#f2f5eb}
body[data-profile] .course-enter{min-height:44px;background:#fffefa;color:#21482e;display:flex;gap:18px;font-size:13px;border-radius:10px;margin:18px 0 0;padding:9px 14px}
body[data-profile] .course-enter .svg{width:16px;height:16px}
body[data-profile] .next-lesson .hero-content{min-height:198px}
body[data-profile] .feedback-list{padding:0 14px}
body[data-profile] #taskbar{padding:10px 16px 8px;border-top:1px solid var(--line);box-shadow:0 -5px 20px #263b2007;background:#fffefa}
body[data-profile] #taskbar .primary{min-height:48px;border-radius:14px;box-shadow:0 4px 10px color-mix(in srgb,var(--accent) 12%,transparent)}
body[data-profile] #taskbar .secondary{background:var(--accent);color:#fffefa;min-height:48px;border-radius:14px}
body[data-profile] #nav{padding:3px 10px 8px;border:0;min-height:65px;background:#fffefa}
body[data-profile] #nav button{font-size:11px;gap:4px;min-height:52px;border-radius:0;background:transparent}
body[data-profile] #nav button[aria-current=page]{background:transparent;color:var(--accent);font-weight:600}
body[data-profile] #nav button[aria-current=page] .svg{background:var(--tint);box-shadow:0 0 0 5px var(--tint);border-radius:5px}
body[data-profile] .record-overview{padding:16px 16px 0;border-radius:16px;overflow:hidden;background:#fffefa;margin-bottom:16px;border:1px solid var(--line)}
body[data-profile] .record-overview .record-head{background:transparent;border-radius:0;padding:0;margin:0}
body[data-profile] .record-head .kicker{display:none}
body[data-profile] .record-head h2{font-size:23px;line-height:1.3;margin:0 0 7px;font-weight:600;letter-spacing:-.03em}
body[data-profile] .record-head p{font-size:12px;color:var(--muted)}
body[data-profile] .record-overview .stats{padding:13px 0 14px;margin:12px -16px 0;border-top:1px solid var(--line);border-radius:0;background:var(--tint)}
body[data-profile] .record-overview .stats b{font-size:20px;line-height:26px}
body[data-profile] .record-overview .stats span{margin-top:0}
body[data-profile] .record-card{padding:15px 12px 8px;border:1px solid var(--line);border-radius:16px;margin-bottom:14px;background:#fffefa}
body[data-profile] .record-title{margin-bottom:15px;gap:11px}
body[data-profile] .record-title .record-figure{padding:0;border-radius:12px;border:1px solid var(--line);background:#fffefa;min-width:70px;min-height:62px;overflow:hidden;display:grid;place-items:center}
body[data-profile] .record-title img{width:70px;height:60px;background:#fffefa;border-radius:0}
body[data-profile] .record-title h3{font-size:15px;line-height:23px}
body[data-profile] .record-title .small{font-size:11px;line-height:18px;margin-top:3px}
body[data-profile] .record-table-head{font-size:11px;line-height:20px;padding-bottom:7px}
body[data-profile] .set-line{min-height:56px;border-bottom:1px solid #e8ece3;font-size:15px}
body[data-profile] .set-line .rm-value{display:grid;place-items:center;min-height:28px;border-radius:7px;background:var(--tint);font-size:13px;color:var(--accent)}
body[data-profile] .set-line .rm-value.unfilled{background:#f0f2ed;color:var(--muted)}
body[data-profile] .set-line button{background:transparent}
body[data-profile] .set-line button[aria-pressed=true]{background:var(--tint)}
body[data-profile] .record-footer{margin-top:5px}
body[data-profile] .record-footer>span{font-size:11px}
body[data-profile] .record-footer button{font-size:12px}
body[data-profile] .note-block{border:1px solid var(--line);border-radius:16px}
body[data-profile] .note-block textarea{background:var(--page);font-size:16px}
/* C1 · Image as the focal point, a calm continuous workspace below. */
body[data-profile=c1] #head{background:linear-gradient(95deg,#fffefa 65%,#fffefaad),var(--image);background-size:cover;background-position:50% 27%}
body[data-profile=c1] .hero{box-shadow:0 8px 18px #253d2518;border-radius:20px}
body[data-profile=c1] .exercise-list{border:1px solid var(--line)}
body[data-profile=c1] .lesson-list{border:1px solid var(--line)}
body[data-profile=c1] .record-overview{background:linear-gradient(90deg,#fffefa 53%,#fffefae6),var(--image);background-size:cover;background-position:75% 35%}
/* C2 · A divided image cover and typography establish hierarchy. */
body[data-profile=c2]{--page:#f8faf6;--line:#e2e7dc}
body[data-profile=c2] #head{background:#fffefa;padding:16px 18px 8px}
body[data-profile=c2] #head h1{font-size:24px}
body[data-profile=c2] #head .icon-btn{border-color:transparent;background:var(--tint)}
body[data-profile=c2] #content{padding:12px 18px 22px;background:#fffefa}
body[data-profile=c2] .plan-cover{background:var(--tint);border-radius:15px;min-height:166px}
body[data-profile=c2] .hero:after{display:none}
body[data-profile=c2] .plan-cover .hero-art{width:34%;object-position:55% 65%;z-index:0}
body[data-profile=c2] .hero-content{color:var(--ink);padding:17px 18px;min-height:166px;z-index:1}
body[data-profile=c2] .cover-eyebrow{max-width:60%}
body[data-profile=c2] .cover-number{display:none}
body[data-profile=c2] .cover-eyebrow .chip{border:0;background:transparent;color:var(--accent);padding:0;font-size:12px;min-height:20px}
body[data-profile=c2] .hero h2{font-size:25px;color:var(--ink);margin:16px 0 8px;max-width:62%}
body[data-profile=c2] .hero p{color:var(--muted);max-width:62%}
body[data-profile=c2] .hero .hero-link{color:var(--accent);margin-top:9px;font-size:12px;gap:6px}
body[data-profile=c2] .hero-link>span{background:transparent;width:22px}
body[data-profile=c2] .exercise-list{padding:0;background:transparent;border-radius:0}
body[data-profile=c2] .exercise-row{padding:16px 0;min-height:97px}
body[data-profile=c2] .thumb{border-color:transparent;background:var(--tint);border-radius:13px}
body[data-profile=c2] .exercise-order>span{display:none}
body[data-profile=c2] .row-arrow{width:26px;border:1px solid var(--line);border-radius:50%;height:26px}
body[data-profile=c2] .next-lesson{background:var(--tint);border-radius:15px}
body[data-profile=c2] .next-lesson .hero-art{display:none}
body[data-profile=c2] .next-lesson .hero-content{min-height:185px}
body[data-profile=c2] .next-lesson .cover-eyebrow{max-width:none}
body[data-profile=c2] .course-order{color:var(--muted)}
body[data-profile=c2] .course-time{font-size:36px;line-height:1.15}
body[data-profile=c2] .course-time small,body[data-profile=c2] .course-info>span{color:var(--muted)}
body[data-profile=c2] .course-info h2{font-size:20px;color:var(--ink);max-width:none;margin-top:6px}
body[data-profile=c2] .course-enter{background:var(--accent);color:#fffefa;width:100%;margin-top:16px}
body[data-profile=c2] .stats{background:transparent;border-bottom:1px solid var(--line);border-radius:0;padding:18px 0}
body[data-profile=c2] .lesson-list,body[data-profile=c2] .feedback-list{padding:0;border-radius:0}
body[data-profile=c2] .record-overview{padding:5px 0 0;border:0;border-radius:0;margin-bottom:18px}
body[data-profile=c2] .record-overview .stats{margin:14px 0 0;background:transparent;border-top:0;padding:4px 0 16px}
body[data-profile=c2] .record-card{padding:12px 0 7px;border:0;border-top:1px solid var(--line);border-radius:0;margin-bottom:12px}
body[data-profile=c2] .record-title .record-figure{border:0;background:var(--tint)}
body[data-profile=c2] .note-block{padding:14px 0;border:0;border-top:1px solid var(--line);border-radius:0}
/* BC · B's deep header with C's light reading surface. */
body[data-profile=bc] #head{background:#213d30;color:#fffefa;padding:13px 16px 22px}
body[data-profile=bc] #head h1{color:#fffefa;font-size:27px;font-weight:600}
body[data-profile=bc] #head .icon-btn{background:#ffffff0e;color:#fffefa;border-color:#ffffff38}
body[data-profile=bc] .context{color:#edf4e7;margin-top:2px}
body[data-profile=bc] .owner-mark{color:#fffefa;background:#ffffff20}
body[data-profile=bc] .subtabs{padding-top:9px;gap:7px}
body[data-profile=bc] .subtabs button{min-height:44px;border-radius:11px;color:#e3edde;background:#ffffff12;font-size:12px;padding:8px 12px;gap:7px}
body[data-profile=bc] .subtabs button[aria-pressed=true]{background:#fffefa;color:#213d30}
body[data-profile=bc] .subtabs .svg{width:18px;height:18px}
body[data-profile=bc] .context button{color:#edf4e7}
body[data-profile=bc] .search-box{color:#213d30;background:#fffefa}
body[data-profile=bc] #content{position:relative;z-index:3;margin-top:-12px;border-radius:20px 20px 0 0;padding-top:17px;background:#f5f6f0}
body[data-profile=bc] .hero{border-radius:17px}
body[data-profile=bc] .plan-cover .hero-content{min-height:164px;padding:17px 18px}
body[data-profile=bc] .plan-cover h2{margin-top:15px;font-size:24px}
body[data-profile=bc] .hero:after{background:linear-gradient(90deg,#183b2cf5,#183b2cc4 53%,#183b2c0a)}
body[data-profile=bc] .next-lesson .hero-content{min-height:190px;padding:16px 18px}
body[data-profile=bc] .course-info h2{font-size:19px}
body[data-profile=bc] .course-time{font-size:30px}
body[data-profile=bc] .exercise-list,body[data-profile=bc] .lesson-list{border:1px solid var(--line)}
body[data-profile=bc] .record-overview{background:#fffefa;border:0}
body[data-profile=bc] .record-overview .stats{background:var(--tint)}
body[data-profile=bc][data-view=record] #head{padding-bottom:22px}
@media(max-width:359px){body[data-profile] #head{padding-left:12px;padding-right:12px}body[data-profile] #content{padding-left:12px;padding-right:12px}body[data-profile] .hero-content{padding-left:16px;padding-right:16px}body[data-profile] .exercise-list{padding:0 12px}body[data-profile] .exercise-row{gap:9px}body[data-profile] .exercise-row strong{font-size:14px}body[data-profile] .thumb{width:53px;height:60px}body[data-profile] .course-main{gap:10px}body[data-profile] .course-time{font-size:29px}body[data-profile] .course-info h2{font-size:18px}}

/* S04: scenery is a user-selected background, independent of record structure. */
body[data-profile] #head h1{font-size:23px;white-space:nowrap}
body[data-profile] .top-actions{align-items:center;gap:5px}
.display-switch{display:inline-flex;align-items:center;border:1px solid var(--line);padding:2px;border-radius:12px;background:#fffefa;flex-shrink:0}
.display-switch button{min-width:44px;min-height:44px;font-size:12px;padding:6px;border-radius:9px;color:var(--muted)}
.display-switch button[aria-pressed=true]{color:var(--on-accent);background:var(--accent);font-weight:600}
body[data-profile] #head .icon-btn{flex-shrink:0}
body[data-profile][data-display=scenic] #app{background-image:linear-gradient(#fffefa10,#fffefa05),var(--image);background-size:cover;background-position:center}
body[data-profile][data-display=scenic] #head{background:rgba(255,254,250,.87);backdrop-filter:blur(10px)}
body[data-profile][data-display=scenic] #content{background:transparent;padding-top:16px}
body[data-profile][data-display=scenic] .panel,body[data-profile][data-display=scenic] .record-overview{background:rgba(255,254,250,.95);border-color:#ffffff99;box-shadow:0 5px 22px #18332210}
body[data-profile][data-display=scenic] .section-head{background:rgba(255,254,250,.94);padding:3px 12px;border-radius:12px;margin-top:16px}
body[data-profile][data-display=scenic] .section-head button{padding-right:0}
body[data-profile][data-display=scenic] .plan-cover,body[data-profile][data-display=scenic] .next-lesson{background:transparent}
body[data-profile][data-display=scenic] .hero-content{min-height:210px}
body[data-profile][data-display=scenic] .exercise-list,body[data-profile][data-display=scenic] .lesson-list{margin-bottom:18px}
body[data-profile][data-display=scenic] #taskbar,body[data-profile][data-display=scenic] #nav{background:rgba(255,254,250,.93);backdrop-filter:blur(10px)}
body[data-profile=bc][data-display=scenic] #head{background:linear-gradient(90deg,#163f2de8,#163f2dd9),var(--image);background-size:cover;background-position:center 22%;backdrop-filter:none}
body[data-profile=bc] #head .display-switch{border-color:#fffefa47;background:#ffffff0c}
body[data-profile=bc] #head .display-switch button{color:#f2f6e9}
body[data-profile=bc] #head .display-switch button[aria-pressed=true]{background:#fffefa;color:#213d30}
body[data-profile=bc][data-display=scenic] #content{margin-top:-12px;border-radius:20px 20px 0 0;background:linear-gradient(#ffffff12,#ffffff02)}
body[data-profile=bc][data-display=scenic] .record-overview{background:rgba(255,254,250,.95)}
body[data-profile][data-display=minimal] #app{background:var(--page);background-image:none}
body[data-profile][data-display=minimal] #head{background:#fffefa}
body[data-profile=bc][data-display=minimal] #head{background:#213d30}
body[data-profile][data-display=minimal] #content{background:var(--page)}
body[data-profile][data-display=minimal] .record-overview{background:#fffefa}
body[data-profile][data-display=minimal] .hero-art{display:none}
body[data-profile=c1][data-display=minimal] .hero{background:var(--tint)}
body[data-profile=c1][data-display=minimal] .hero:after{display:none}
body[data-profile=c1][data-display=minimal] .hero-content,body[data-profile=c1][data-display=minimal] .hero h2,body[data-profile=c1][data-display=minimal] .hero p,body[data-profile=c1][data-display=minimal] .hero .hero-link{color:var(--ink)}
body[data-profile=c1][data-display=minimal] .hero .chip{color:var(--accent);background:#fffefa;border-color:var(--line)}
body[data-profile=c1][data-display=minimal] .course-info>span,body[data-profile=c1][data-display=minimal] .course-time small,body[data-profile=c1][data-display=minimal] .course-order,body[data-profile=c1][data-display=minimal] .cover-number{color:var(--muted)}
body[data-profile] .record-overview{margin-bottom:18px}
body[data-profile] .record-overview{padding-top:13px}
body[data-profile] .record-overview .record-head h2{font-size:21px;margin-bottom:5px}
body[data-profile] .record-overview .stats{padding-top:9px;padding-bottom:9px;margin-top:9px}
.record-method-summary{font-size:11px;color:var(--muted);margin:0 -16px;padding:8px 16px 10px;border-top:1px solid var(--line);background:#fffefa85}
body[data-profile] .method-tools{padding:8px;margin-bottom:18px;border-radius:16px}
.method-tools>.spread{display:none}
.method-tools h3{font-size:14px}.method-tools .small{font-size:11px}
.method-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.method-buttons button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;background:var(--tint);border:1px solid var(--line);border-radius:10px;font-size:12px;color:var(--accent)}
.method-buttons .svg{width:17px;height:17px}
.group-title{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}
.group-title>div{flex:1;min-width:0}.group-title h3{font-size:15px;line-height:1.5;margin:9px 0 4px}
.group-title>button{min-width:44px;min-height:44px;display:grid;place-items:center;color:var(--accent);border:1px solid var(--line);border-radius:10px}
.method-tag{display:inline-flex;padding:4px 8px;border-radius:7px;background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:600}
.combo-round{border:1px solid var(--line);border-radius:12px;margin:12px 0;overflow:hidden;background:#fffefa88}
.round-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--tint);padding:9px 10px;font-size:12px}
.round-heading span{font-size:11px;color:var(--muted)}
.combo-exercise{padding:0 7px 4px}.combo-exercise+.combo-exercise{border-top:1px solid var(--line)}
.combo-exercise-name{min-height:44px;display:flex;align-items:center;gap:7px;width:100%;text-align:left;font-size:13px}
.combo-exercise-name>.svg{width:15px;height:15px;margin-left:auto;color:var(--muted)}
.method-letter{font-size:11px;min-width:24px;min-height:24px;display:grid;place-items:center;background:var(--tint);color:var(--accent);border-radius:5px}
.group-footer,.drop-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:4px}
.group-footer button,.drop-actions button{min-height:44px;display:flex;align-items:center;gap:5px;color:var(--accent);font-size:12px}
.group-footer .svg,.drop-actions .svg{width:17px;height:17px}
.drop-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:11px 2px 5px;border-top:1px solid var(--line);font-size:12px;color:var(--accent)}
.drop-heading span{font-size:11px;color:var(--muted)}
body[data-profile] .set-line .set-marker{font-size:12px}
.missing-row{padding:12px 2px;color:var(--muted);font-size:12px}.missing-row button{display:block;min-height:44px;color:var(--accent)}
.combo-options{display:grid;gap:8px}.combo-options label{min-height:52px;display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;padding:4px 10px 4px 0;font-size:14px}.combo-options input{width:44px;height:44px;margin:0 5px;accent-color:var(--accent)}
.form-error{font-size:13px;color:var(--ink);margin-top:10px}
body[data-profile] .record-table-head,body[data-profile] .set-line{grid-template-columns:34px minmax(35px,1fr) 34px 34px 44px 44px;gap:4px}
@media(max-width:375px){body[data-profile] #head h1{font-size:21px}body[data-profile] .top-actions{gap:3px}.display-switch{padding:1px}body[data-profile] #head{padding-left:12px;padding-right:12px}body[data-profile] .record-card{padding-left:9px;padding-right:9px}.combo-exercise{padding-left:4px;padding-right:4px}}

/* User-selected minimal appearance: solid dark surfaces, photo covers, pale-green actions. */
body[data-display=minimal]{color-scheme:dark;--page:#181e19;--paper:#242c25;--ink:#f2f5ec;--muted:#bec9b8;--accent:#c6dfad;--on-accent:#20331f;--tint:#303a2e;--line:#455141;--shadow:none}
body[data-profile][data-display=minimal] #app,body[data-profile][data-display=minimal] #head,body[data-profile][data-display=minimal] #content{background:var(--page);color:var(--ink)}
body[data-profile][data-display=minimal] #head h1{color:var(--ink)}
body[data-profile][data-display=minimal] #head .icon-btn{color:var(--ink);border-color:transparent;background:transparent}
body[data-profile][data-display=minimal] .context,body[data-profile][data-display=minimal] .context button{color:var(--muted)}
body[data-profile][data-display=minimal] .owner-mark{background:var(--tint);color:var(--accent)}
body[data-profile][data-display=minimal] .panel,body[data-profile][data-display=minimal] .record-overview,body[data-profile][data-display=minimal] .combo-round{background:var(--paper);border-color:transparent;box-shadow:none}
body[data-profile][data-display=minimal] #head .display-switch{background:var(--paper);border-color:var(--line)}
body[data-profile][data-display=minimal] #head .display-switch button{color:var(--muted)}
body[data-profile][data-display=minimal] #head .display-switch button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}
body[data-profile][data-display=minimal] .subtabs button{background:var(--tint);color:var(--muted)}
body[data-profile][data-display=minimal] .subtabs button[aria-pressed=true]{background:var(--ink);color:var(--page)}
body[data-profile][data-display=minimal] .hero{display:flex;flex-direction:column;background:var(--paper);border-radius:17px;overflow:hidden}
body[data-profile][data-display=minimal] .hero:after{display:none}
body[data-profile][data-display=minimal] .hero .hero-art{display:block;position:static;transform:none;width:100%;height:190px;object-fit:cover;object-position:center 67%;z-index:auto;opacity:1;mask-image:none}
body[data-profile][data-display=minimal] .hero .hero-content{position:static;min-height:140px;padding:16px 16px 18px;color:var(--ink)}
body[data-profile][data-display=minimal] .hero .cover-eyebrow{position:absolute;top:12px;left:12px;right:12px}
body[data-profile][data-display=minimal] .hero .cover-eyebrow .chip{background:#17201ac9;color:#f2f5ec;border-color:#ffffff40}
body[data-profile][data-display=minimal] .hero .cover-number{display:none}
body[data-profile][data-display=minimal] .hero h2{font-size:22px;max-width:none;margin:0 0 5px;color:var(--ink)}
body[data-profile][data-display=minimal] .hero p{color:var(--muted);margin-top:5px}
body[data-profile][data-display=minimal] .hero .hero-link{background:var(--accent);color:var(--on-accent);min-height:44px;padding:9px 14px;border-radius:10px;margin-top:14px;gap:8px}
body[data-profile][data-display=minimal] .hero-link>span{background:transparent;width:18px;height:20px}
body[data-profile][data-display=minimal] .next-lesson .hero-art{height:120px}
body[data-profile][data-display=minimal] .course-main{margin-top:0}
body[data-profile][data-display=minimal] .course-time{color:var(--ink)}
body[data-profile][data-display=minimal] .course-time small,body[data-profile][data-display=minimal] .course-info>span{color:var(--muted)}
body[data-profile][data-display=minimal] .course-info h2{font-size:19px;margin:6px 0 0;color:var(--ink)}
body[data-profile][data-display=minimal] .course-enter{background:var(--accent);color:var(--on-accent)}
body[data-profile][data-display=minimal] .stats,body[data-profile][data-display=minimal] .record-overview .stats,body[data-profile][data-display=minimal] .record-method-summary{background:var(--paper)}
body[data-profile][data-display=minimal] .set-line{border-bottom-color:var(--line)}
body[data-profile][data-display=minimal] .set-line .rm-value.unfilled{background:var(--page);color:var(--muted)}
body[data-profile][data-display=minimal] #taskbar,body[data-profile][data-display=minimal] #nav{background:var(--paper);color:var(--ink);box-shadow:none}
body[data-profile][data-display=minimal] #taskbar .primary,body[data-profile][data-display=minimal] #taskbar .secondary{background:var(--accent);color:var(--on-accent);box-shadow:none}
body[data-profile][data-display=minimal] #nav button{color:var(--muted)}
body[data-profile][data-display=minimal] #nav button[aria-current=page]{color:var(--accent)}
body[data-profile][data-display=minimal] .round-heading,body[data-profile][data-display=minimal] .method-buttons button{background:var(--tint)}
body[data-profile][data-display=minimal] .thumb,body[data-profile][data-display=minimal] .record-title .record-figure{background:#fffefa;border-color:transparent}
