:root { --guide-header-height:72px; scroll-padding-top:calc(var(--guide-header-height) + 20px); font-family:'Avenir Next','PingFang SC','Microsoft YaHei',sans-serif; color:var(--text); background:var(--bg); font-synthesis:none; color-scheme:inherit; }
* { box-sizing:border-box; } body { margin:0; } button,a { -webkit-tap-highlight-color:transparent; } button { font:inherit; cursor:pointer; } button:disabled { cursor:default; opacity:.45; } [hidden] { display:none!important; } :focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.guide-header { position:sticky; top:0; z-index:2; background:var(--bg); height:72px; padding:0 34px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:28px; }
.brand { color:var(--text); font:600 14px monospace; letter-spacing:2px; text-decoration:none; display:flex; align-items:center; gap:5px; }
.brand::before { content:''; width:10px; height:10px; margin-right:7px; background:var(--accent); transform:rotate(45deg); }.brand span{color:var(--accent);}.guide-edition { font-size:12px; color:var(--muted); }.guide-header > button { flex-shrink:0; white-space:nowrap; font-size:12px; margin-left:0; border:0; background:none; color:var(--muted); padding:10px; }
.guide-shell { max-width:1600px; margin:auto; display:grid; grid-template-columns:245px minmax(0,1fr); min-height:calc(100svh - 72px); }
.guide-sidebar { border-right:1px solid var(--line); padding:34px 24px; background:var(--sidebar); }.eyebrow { font:10px monospace; letter-spacing:2px; color:var(--accent); }.guide-sidebar h1 { font-size:27px; font-weight:500; letter-spacing:-.5px; line-height:1.45; margin:18px 0 10px; }.guide-sidebar>p { color:var(--muted); font-size:12px; line-height:1.8; }
#steps { display:grid; gap:4px; margin:28px -10px; }#steps button { display:flex; align-items:center; gap:12px; text-align:left; padding:11px 10px; background:transparent; border:1px solid transparent; border-radius:4px; font-size:12px; color:var(--muted); }#steps button>span:first-child{font:11px monospace;color:var(--muted);min-width:17px;}#steps button[aria-current="step"] { background:var(--soft-accent); color:var(--text); }#steps button[aria-current="step"]>span:first-child { color:var(--text); }#steps button.visited:not([aria-current="step"]) { color:var(--text); }#steps button.visited:not([aria-current="step"])>span:first-child{color:var(--accent);}#steps button:hover:not([aria-current="step"]) { background:var(--hover); }.sidebar-note { border-top:1px solid var(--line); padding-top:18px; }
.guide-content { min-width:0; padding:30px 34px 22px; }.guide-topline { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; }#step-number { font-family:monospace; }progress { appearance:none; display:block; width:100%; height:3px; border:0; margin:14px 0 28px; background:var(--raised); }progress::-webkit-progress-bar { background:var(--raised); }progress::-webkit-progress-value { background:var(--accent); }progress::-moz-progress-bar { background:var(--accent); }
.step-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }.step-heading h2 { font-size:clamp(22px,2.3vw,34px); line-height:1.35; letter-spacing:-.6px; margin:10px 0; font-weight:500; }.step-heading p { font-size:13px; color:var(--muted); line-height:1.7; margin:0; }.step-heading>button { flex-shrink:0; }
.guide-playback { display:flex; flex-direction:column; align-items:stretch; gap:8px; flex-shrink:0; }.guide-playback label { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:11px; }.guide-playback :is(select, .ui-select) { font:inherit; color:var(--accent); background:var(--sidebar); border:1px solid var(--line); border-radius:3px; padding:6px; min-height:32px; }
.lesson { display:grid; grid-template-columns:minmax(0,2.3fr) minmax(215px,1fr); gap:24px; align-items:start; }.screen { margin:0; min-width:0; }.screen>button { display:block; width:100%; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--panel); overflow:hidden; box-shadow:0 9px 28px var(--shadow); }.screen img { display:block; width:100%; height:auto; }.screen figcaption { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:10px; line-height:1.6; margin:10px 2px; }
.instructions h3 { font-size:13px; font-weight:500; margin:0 0 16px; }.instructions ol { margin:0; padding:0; list-style:none; counter-reset:action; display:grid; gap:17px; }.instructions li { counter-increment:action; position:relative; padding-left:25px; font-size:12px; line-height:1.9; color:var(--text); }.instructions li::before { content:counter(action); position:absolute; left:0; top:3px; color:var(--accent); font:12px monospace; }.expected { margin-top:24px; padding:16px; background:var(--soft-accent); border-left:2px solid var(--accent); }.expected span { font-size:10px; color:var(--muted); }.expected p { font-size:12px; line-height:1.8; margin:7px 0 0; color:var(--text); }
.guide-tip { display:flex; gap:20px; margin-top:24px; border-top:1px solid var(--line); padding:18px 0; }.guide-tip>span { color:var(--accent); font-size:11px; flex-shrink:0; padding-top:3px; }.guide-tip p { margin:0; font-size:12px; line-height:1.85; color:var(--muted); }.guide-controls { display:flex; align-items:center; gap:12px; margin-left:auto; padding:0; flex-shrink:0; }
.guide-controls button { min-height:36px; padding:8px 14px; white-space:nowrap; }
#step-title { scroll-margin-top:calc(var(--guide-header-height) + 20px); }.guide-controls>span { color:var(--muted); font-size:11px; }.guide-controls>.primary { margin-left:auto; }.primary,.secondary { border-radius:4px; padding:11px 16px; min-height:42px; font-size:12px; }.primary { border:1px solid var(--accent); background:var(--accent); color:var(--text); }.primary:hover { background:var(--accent-hover); }.secondary { border:1px solid var(--line); background:transparent; color:var(--accent); }.secondary:hover { background:var(--hover); }.completion-note { margin:12px 0 0; font-size:12px; color:var(--accent); }
#image-dialog { width:calc(100vw - 30px); max-width:1500px; max-height:calc(100svh - 30px); padding:0; border:1px solid var(--line); background:var(--bg); border-radius:7px; }#image-dialog::backdrop { background:var(--backdrop); backdrop-filter:blur(4px); }#image-dialog header { position:sticky; top:0; background:var(--bg); display:flex; justify-content:space-between; padding:12px 16px; gap:12px; align-items:center; font-size:12px; }#image-dialog button { border:0; padding:8px; background:none; color:var(--accent); }.image-scroll { max-height:calc(100svh - 110px); overflow:auto; }.image-scroll img { display:block; width:100%; height:auto; }#image-dialog.original .image-scroll img { width:1440px; max-width:none; }
@media(max-width:1150px) { .guide-edition{display:none;}.guide-controls>span{display:none;} .lesson { grid-template-columns:1fr; }.instructions { display:grid; grid-template-columns:1fr 1fr; gap:12px 24px; }.instructions h3 { grid-column:1/-1; margin:0; }.expected { margin:0; align-self:start; }.guide-sidebar { padding:26px 20px; }.guide-shell{grid-template-columns:220px minmax(0,1fr);}.guide-content{padding:26px;} }
@media(max-width:700px) { :root{--guide-header-height:112px;}.guide-header{height:112px;padding:8px 14px;gap:4px 10px;flex-wrap:wrap;}.guide-header>.brand{flex-shrink:0;}.guide-header>button{margin-left:auto;padding:8px 0;}.guide-header>.guide-controls{order:3;flex-basis:100%;margin:0;justify-content:space-between;}.guide-edition{display:none;}.guide-shell{display:block;}.guide-sidebar{padding:22px 18px 0;border-right:0;border-bottom:1px solid var(--line);}.guide-sidebar h1{font-size:23px;margin:10px 0;}.guide-sidebar h1 br{display:none;}.guide-sidebar>p{margin:0;}.guide-sidebar .sidebar-note{display:none;}#steps{display:flex;overflow-x:auto;gap:5px;margin:16px -18px 0;padding:0 18px 12px;}#steps button{flex-shrink:0;gap:7px;font-size:11px;padding:9px;} .guide-content{padding:22px 18px;}.guide-topline{font-size:10px;}.step-heading{align-items:flex-start;gap:10px;margin-bottom:18px;}.step-heading h2{font-size:24px;}.step-heading p{font-size:12px;}#autoplay{padding:8px;font-size:11px;min-height:36px;}.instructions{display:block;}.instructions h3{margin-bottom:14px;}.instructions ol{gap:11px;}.expected{margin-top:18px;}.guide-tip{display:block;margin-top:20px;padding:16px 0;}.guide-tip p{margin-top:8px;}.guide-controls{gap:8px;}.guide-controls>span{display:none;}.guide-controls button{padding:8px 12px;font-size:12px;}.lesson{gap:18px;}progress{margin-bottom:22px;} }
@media(prefers-reduced-motion:no-preference) { .screen img{animation:appear .2s ease-out;}@keyframes appear{from{opacity:.7;}to{opacity:1;}} }

.guide-header { background:var(--panel); backdrop-filter:blur(18px); }
.guide-content { background:radial-gradient(ellipse at 80% 0,var(--bg),transparent 70%); }
.primary { box-shadow:0 4px 18px var(--shadow); border-color:var(--accent); }.primary,.secondary,#steps button { border-radius:7px; }
.screen>button { border-radius:12px; }.expected { border-radius:0 9px 9px 0; }

.primary { color:var(--on-accent); box-shadow:0 0 20px var(--shadow); }
.primary,.secondary,#steps button,.screen>button,#image-dialog { border-radius:3px; }
.guide-sidebar { background:linear-gradient(160deg,var(--sidebar),var(--bg)); }
.guide-content { background:radial-gradient(ellipse at 100% 0,var(--bg),transparent 65%); }
.guide-sidebar h1,.step-heading h2 { font-weight:500; letter-spacing:-1px; }
#steps button[aria-current="step"] { background:var(--soft-accent); border-color:var(--accent-border); border-left-color:var(--accent-border); }
@media(max-width:700px) { .step-heading{flex-direction:column;}.guide-playback{flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px;} }

.brand { gap:9px; letter-spacing:0; flex-shrink:0; }.brand::before { display:none; }.brand strong { width:48px; height:25px; font-size:0; background:var(--text); -webkit-mask:url('../brand/retick-type.svg') center/contain no-repeat; mask:url('../brand/retick-type.svg') center/contain no-repeat; }.brand span { color:var(--accent); font-size:9px; letter-spacing:1px; }.brand img { object-fit:contain; }
@media(max-width:700px) { .brand img { width:30px; height:30px; }.brand strong { width:44px; height:23px; }.guide-header .brand { gap:7px; } }
