/* DACOS Omni Setup Hub: mockup styles. Tokens: light (Bone) default, dark (DAC Blue) via [data-theme=dark]. */
:root {
  --bg: #F7F5F1; --surface: #FFFFFF; --surface2: #F0EDE7; --deep: #ECE8E1; --line: #E2DDD4; --hair: rgba(15,17,21,.08);
  --text: #0F1115; --text2: #4B5563; --text3: #6B7280; --muted: #8A8F98; --accent: #A8762E; --accent-soft: rgba(168,118,46,.10); --accent-line: rgba(168,118,46,.35);
  --red: #E73739; --red-soft: rgba(231,55,57,.08); --red-line: rgba(231,55,57,.35); --green: #1F9D5F; --green-soft: rgba(31,157,95,.12);
  --shadow: 0 10px 30px rgba(15,17,21,.06); --shadow-lg: 0 24px 60px rgba(15,17,21,.14);
  --font: 'Instrument Sans', system-ui, -apple-system, sans-serif; --display: 'Archivo', var(--font); --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 12px; --r-lg: 18px; --gap: 16px;
}
[data-theme="dark"] {
  --bg: #0a0e1a; --surface: #111726; --surface2: #141c2e; --deep: #0d1220; --line: #1e2740; --hair: rgba(255,255,255,.06);
  --text: #f3f6fb; --text2: #aab2c6; --text3: #8a9097; --muted: #6f7890; --accent: #F9DBA5; --accent-soft: rgba(249,219,165,.10); --accent-line: rgba(249,219,165,.30);
  --red-soft: rgba(231,55,57,.10); --green: #34C77B; --green-soft: rgba(52,199,123,.14);
  --shadow: 0 10px 30px rgba(5,7,15,.5); --shadow-lg: 0 24px 60px rgba(3,5,12,.7);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: var(--text); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; line-height: 1.12; }
h1 { font-size: 34px; font-weight: 700; } h2 { font-size: 20px; font-weight: 600; } h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.only-mobile { display: none !important; }
@media (max-width: 768px) { .only-mobile { display: initial !important; } .only-desktop { display: none !important; } .tabbar.only-mobile, .m-home.only-mobile { display: flex !important; } .icon-btn.only-mobile { display: inline-flex !important; } }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--text2); } .small { font-size: 13px; } .center { text-align: center; } .right { margin-left: auto; } .red { color: var(--red); } .green { color: var(--green); } .gold { color: var(--accent); }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.eyebrow.red { color: var(--red); } .eyebrow.muted { color: var(--text3); }
.lead { font-size: 16px; color: var(--text2); line-height: 1.6; }
.lnk { font-weight: 600; color: var(--text); font-size: 14px; } .lnk:hover { color: var(--red); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.col { flex-direction: column; align-items: stretch; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; } .row-between.wrap { flex-wrap: wrap; align-items: flex-end; }
.row-between > div > b, .row-between > div > span { display: block; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.hr { height: 1px; background: var(--hair); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform .12s ease, background .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); } .btn.off { opacity: .35; pointer-events: none; } .btn.grow { flex: 1; } .btn.is-on { border-color: var(--green); color: var(--green); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; font-family: var(--display); box-shadow: 0 8px 20px rgba(15,17,21,.16); }
.btn-ghost { background: transparent; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; } .btn-lg { height: 52px; font-size: 16px; } .btn-xl { height: 64px; font-size: 19px; font-weight: 700; border-radius: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text2); background: var(--surface); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; } .chip.red { color: var(--red); border-color: var(--red-line); background: var(--red-soft); font-weight: 600; } .chip.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: 5px; padding: 4px 7px; }
.tag.red { background: var(--red); color: #fff; } .tag.green { background: var(--green); color: #fff; } .tag.gold { background: var(--accent); color: #fff; } [data-theme="dark"] .tag.gold { color: #0a0e1a; }
.tag.goldline { color: var(--accent); border: 1px solid var(--accent-line); } .tag.line { color: var(--text3); border: 1px solid var(--line); }
.bar { height: 4px; border-radius: 999px; background: var(--deep); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--red); border-radius: 999px; } .bar.gold i { background: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg > * { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 7px 11px; color: var(--text3); display: inline-flex; align-items: center; } .seg > .on { background: var(--surface2); color: var(--text); }
.seg.dark { border-color: #1e2740; background: transparent; } .seg.dark > * { color: #8a9097; } .seg.dark > .on { background: #141c2e; color: #f3f6fb; }
.seg.mini > * { padding: 5px 9px; font-size: 10.5px; }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--text2); background: var(--surface); }
.badge-red { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--red); border: 1px solid var(--red-line); background: var(--red-soft); border-radius: 6px; padding: 4px 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 12px; font-weight: 700; }
.avatar.big { width: 72px; height: 72px; font-size: 24px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text3); }
.pill.on { background: var(--red-soft); border-color: var(--red-line); color: var(--text); font-weight: 600; }
.toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; flex-shrink: 0; } .toggle i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: var(--red); } .toggle.on i { left: 21px; background: #fff; }
kbd { font-family: var(--mono); font-size: 10px; color: var(--text3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.callout { border: 1px solid var(--red-line); background: var(--red-soft); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 500; }
.callout .eyebrow { flex-shrink: 0; padding-top: 2px; } .callout.big { flex-direction: column; gap: 6px; padding: 14px 16px; }
.placeholder { background: var(--deep); border: 1px dashed var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text3); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.chip-dark { position: absolute; left: 12px; top: 12px; background: rgba(10,14,26,.8); color: #fff; border-radius: 6px; padding: 5px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.dot-red { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; } .dot-red.big { width: 42px; height: 42px; }
.on-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 4px; }
.maxw { max-width: 760px; }
label { display: flex; flex-direction: column; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--accent); }
label > span { display: flex; justify-content: space-between; align-items: center; }
label input, .row > input, .dacy-input input { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--deep); font-family: var(--font); font-size: 15px; letter-spacing: 0; outline: none; width: 100%; }
label input:focus, .dacy-input input:focus { border-color: var(--red); }
label.chk { flex-direction: row; align-items: flex-start; gap: 10px; font-family: var(--font); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--text2); text-transform: none; }
label.chk input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--red); }

/* ---------- header / tabbar / fab ---------- */
.hdr { position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; gap: 24px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--hair); }
.hdr-brand { display: flex; align-items: center; gap: 12px; } .logo { height: 20px; width: auto; }
.pill-mono { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--text3); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.hdr-nav { display: flex; gap: 24px; } .hdr-nav a { font-size: 14px; font-weight: 500; color: var(--text2); padding: 4px 0; border-bottom: 2px solid transparent; } .hdr-nav a.is-active { color: var(--text); font-weight: 600; border-color: var(--red); }
.search { margin-left: auto; width: 300px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--text3); font-size: 13.5px; text-align: left; } .search span { flex: 1; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 66px; background: var(--surface); border-top: 1px solid var(--hair); display: flex; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text3); width: 64px; } .tabbar .is-active { color: var(--red); }
.tabbar .tab-dacy { color: #fff; } .tabbar .tab-dacy svg { width: 44px; height: 44px; padding: 10px; background: var(--red); border-radius: 50%; margin-top: -22px; box-shadow: 0 8px 20px rgba(15,17,21,.22); }
.fab-wrap { position: fixed; right: 28px; bottom: 28px; z-index: 30; display: flex; align-items: center; gap: 12px; }
.fab-label { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.fab { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(15,17,21,.22); } .fab svg { width: 24px; height: 24px; } .fab.small { width: 46px; height: 46px; box-shadow: none; }
body.no-chrome .fab-wrap, body.no-chrome .tabbar { display: none !important; }

/* ---------- page ---------- */
.page { max-width: 1360px; margin: 0 auto; padding: 32px 32px 120px; display: flex; flex-direction: column; gap: 26px; }
.page > .row-between.wrap > div > h1 { margin-top: 6px; }

/* ---------- entrance ---------- */
.entrance { min-height: 100vh; background: #0a0e1a; color: #f3f6fb; display: flex; flex-direction: column; }
.entrance-hdr { height: 72px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; } .entrance-hdr > div { display: flex; align-items: center; gap: 16px; }
.entrance-hdr .pill-mono { color: #8a9097; border-color: #1e2740; }
.entrance-body { flex: 1; display: flex; align-items: center; gap: 48px; padding: 0 48px; }
.entrance-stage { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; }
.entrance-stage::before { content: ""; position: absolute; left: -48px; right: 0; top: 58%; height: 2px; background: linear-gradient(90deg, rgba(231,55,57,0), #E73739 40%, rgba(231,55,57,0)); opacity: .35; }
.logo3d { width: min(760px, 100%); aspect-ratio: 16 / 9; position: relative; display: flex; align-items: center; justify-content: center; touch-action: none; }
.logo3d canvas { display: block; width: 100% !important; height: 100% !important; }
.plate { width: min(640px, 100%); height: auto; overflow: visible; }
.plate .seat { fill: #141c2e; stroke: #2a3654; stroke-width: 1.5; }
.plate .mag { fill: #E73739; transform-box: fill-box; transform-origin: center; animation: magPulse 3.2s ease-in-out infinite; }
.plate .m2 { animation-delay: .2s; } .plate .m3 { animation-delay: .4s; } .plate .m4 { animation-delay: .6s; }
@keyframes magPulse { 0%, 15% { opacity: .35; transform: scale(.8); } 40%, 80% { opacity: 1; transform: scale(1.3); } 100% { opacity: .35; transform: scale(.8); } }
.plate .model { animation: dock 3.2s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes dock { 0% { transform: translateY(-90px); opacity: 0; } 40% { transform: translateY(0); opacity: 1; } 82% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-90px); opacity: 0; } }
.plate .pin { animation: pinDrop 3.2s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes pinDrop { 0% { transform: translateY(-46px); } 40% { transform: translateY(0); } 82% { transform: translateY(0); } 100% { transform: translateY(-46px); } }
.plate .zero { animation: zeroIn 3.2s ease-in-out infinite; } @keyframes zeroIn { 0%, 38% { opacity: 0; } 48%, 80% { opacity: 1; } 100% { opacity: 0; } }
.plate .halo { opacity: 0; filter: blur(28px); animation: halo 3.2s ease-in-out infinite; } @keyframes halo { 0%, 35% { opacity: 0; } 50%, 78% { opacity: .6; } 100% { opacity: 0; } }
.entrance-copy { text-align: center; max-width: 640px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.entrance-copy h1 { font-size: 46px; letter-spacing: -.03em; line-height: 1.04; } .entrance-copy p { color: #aab2c6; font-size: 16px; }
.login { width: 440px; flex-shrink: 0; background: #111726; border-color: #1e2740; padding: 30px; gap: 16px; box-shadow: 0 30px 80px rgba(5,7,15,.6); color: #f3f6fb; }
.login h2 { font-size: 24px; font-weight: 700; } .login label { color: #F9DBA5; } .login input { background: #0d1220; border-color: #1e2740; color: #f3f6fb; }
.login .lnk { color: #aab2c6; font-size: 12.5px; letter-spacing: 0; text-transform: none; font-family: var(--font); font-weight: 500; }
.login .btn-ghost { border-color: #1e2740; color: #f3f6fb; background: transparent; height: 38px; border-radius: 999px; font-size: 13.5px; }
.login .chk { color: #aab2c6; } .login .hr { background: rgba(255,255,255,.06); } .login .muted { color: #aab2c6; }
.entrance-foot { height: 60px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #6f7890; }

/* ---------- onboarding ---------- */
.onboard { min-height: 100vh; display: flex; flex-direction: column; }
.onboard-hdr { height: 72px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hair); background: var(--surface); }
.steps-ind { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; } .steps-ind li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text3); }
.steps-ind li i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-style: normal; font-size: 11px; font-weight: 600; }
.steps-ind li.on { color: var(--text); font-weight: 600; } .steps-ind li.on i { background: var(--red); border-color: var(--red); color: #fff; } .steps-ind li.done i { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.onboard-body { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 40px 48px; max-width: 1360px; margin: 0 auto; width: 100%; }
.onboard-body h1 { margin: 8px 0 10px; font-size: 38px; }
.form { margin-top: 22px; gap: 16px; padding: 28px; }
.onboard-side { display: flex; flex-direction: column; gap: 18px; padding-top: 86px; }
.onboard-side .card h3 { font-size: 20px; } .onboard-side .card .small { font-size: 13.5px; line-height: 1.5; }
.kit-row { display: flex; align-items: center; gap: 14px; background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: 14px; } .kit-row.ok { border-color: var(--green); }
.kit-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; } .kit-row > div { flex: 1; display: flex; flex-direction: column; gap: 3px; } .kit-row .mono { font-size: 10.5px; color: var(--text3); }
.ok-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--green); }
.qgrid { margin-top: 20px; } .qgrid .card h3 { font-size: 16px; }
.opts { gap: 10px; } .opts.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--deep); font-size: 14px; }
.opt .mono { font-size: 10px; color: var(--text3); letter-spacing: .1em; } .opt.on { background: var(--red-soft); border-color: var(--red-line); }
.path-card { border-color: var(--red-line); gap: 16px; } .path-card h2 { font-size: 24px; line-height: 1.15; }
.path-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .path-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.path-list li i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-style: normal; font-size: 10px; font-weight: 600; flex-shrink: 0; }

/* ---------- home ---------- */
.hero-row { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.hero { flex-direction: row; gap: 28px; padding: 28px 30px; border-radius: 22px; box-shadow: var(--shadow); }
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; } .hero-copy h1 { font-size: 34px; letter-spacing: -.02em; } .hero-copy p { max-width: 520px; }
.hero-img { width: 360px; flex-shrink: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--deep); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; } .hero-img .bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; background: rgba(15,17,21,.2); }
.config { border-radius: 22px; box-shadow: var(--shadow); } .config .row-between > div > b { font-size: 15px; } .config .row-between .mono { font-size: 10px; color: var(--text3); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; } .kv div { display: flex; flex-direction: column; gap: 3px; }
.kv dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text3); } .kv dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.config .foot { margin-top: auto; border-top: 1px solid var(--hair); padding-top: 12px; }
.tiles .tile { gap: 10px; text-align: left; align-items: flex-start; } .tiles .tile svg { color: var(--text2); width: 24px; height: 24px; } .tiles .tile .red svg { color: var(--red); } .tiles .tile b { font-family: var(--display); font-size: 16px; }
.news { display: flex; flex-direction: column; gap: 10px; }
.news-row { flex-direction: row; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 14px; } .news-row > span:nth-child(2) { flex: 1; font-size: 14px; }
.m-home { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px 100px; } .m-home h1 { font-size: 30px; }
.m-resume { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--red-line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.m-resume img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; } .m-resume > div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .m-resume .mono { font-size: 10px; color: var(--red); } .m-resume b { font-size: 15px; }
.m-proc { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; } .m-proc .mono { color: var(--red); font-weight: 600; } .m-proc > div { flex: 1; display: flex; flex-direction: column; } .m-proc b { font-size: 16px; font-family: var(--display); }

/* ---------- courses ---------- */
.path { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; } .path-hdr { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .12s; } .lcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); } .lcard.is-current { border-color: var(--red-line); }
.lcard-img { position: relative; height: 140px; background: var(--deep); } .lcard-img img { width: 100%; height: 100%; object-fit: cover; }
.lcard-img .tag { position: absolute; left: 10px; top: 10px; } .lcard-img .dur { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: #fff; background: rgba(10,14,26,.85); border-radius: 5px; padding: 4px 7px; text-transform: uppercase; letter-spacing: .08em; }
.lcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; } .lcard-body .mono { font-size: 10px; color: var(--text3); } .lcard-body b { font-size: 14.5px; line-height: 1.3; } .lcard-body .bar { margin-top: auto; height: 3px; }

/* ---------- lesson ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text3); } .crumbs b { color: var(--text); }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.lesson-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; } .lesson-main h1 { font-size: 30px; }
.lesson-side { display: flex; flex-direction: column; gap: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #0d1220; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.video video, .video iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.video.novideo img { width: 100%; height: 100%; object-fit: cover; opacity: .55; } .novideo-txt { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; color: #fff; } .novideo-txt b { font-size: 18px; font-family: var(--display); }
.video-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .video-meta .mono { color: var(--text3); }
.vbar { flex: 1; min-width: 200px; position: relative; height: 5px; border-radius: 999px; background: var(--deep); } .vbar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 999px; } .vbar b { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--text3); }
.chapters { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 4px; } .chapters .eyebrow { flex-shrink: 0; padding-right: 6px; }
.chapter { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text2); white-space: nowrap; } .chapter b { font-family: var(--mono); font-weight: 500; color: var(--text3); margin-right: 4px; } .chapter.is-active { background: var(--red-soft); border-color: var(--red-line); color: var(--text); font-weight: 600; } .chapter.is-active b { color: var(--red); }
.transcript { gap: 10px; } .tr-body { display: flex; flex-direction: column; gap: 8px; } .transcript.collapsed .tr-body { display: none; }
.tr-line { display: flex; gap: 14px; text-align: left; font-size: 14px; line-height: 1.55; color: var(--text2); padding: 4px 6px; border-radius: 8px; } .tr-line .mono { flex-shrink: 0; width: 44px; padding-top: 2px; color: var(--text3); } .tr-line.is-active { color: var(--text); background: var(--red-soft); } .tr-line.is-active .mono { color: var(--red); }
.points ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.guide-hdr { padding-top: 8px; } .guide-hdr h2 { font-size: 22px; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 18px; scroll-margin-top: 90px; } .step.is-done { border-color: var(--green); }
.step-img { width: 320px; height: 200px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--deep); display: flex; } .step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; } .step-body h3 { font-size: 19px; } .step-body p { font-size: 14px; line-height: 1.55; } .step-body > .row:last-child { margin-top: auto; }
.step .lnk.mono { font-size: 10px; color: var(--text3); letter-spacing: .1em; }
.file { display: flex; flex-direction: column; gap: 8px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .file .mono { font-size: 10px; color: var(--text3); } .file.primary .mono { color: var(--red); } .file b { font-size: 14px; } .file .btn { width: 100%; }
.dacy-card .row b { font-family: var(--display); font-size: 15px; } .dacy-card .chip { align-self: flex-start; height: auto; padding: 8px 12px; font-size: 12.5px; text-align: left; white-space: normal; }
.next { flex-direction: column; padding: 0; overflow: hidden; gap: 0; } .next img { width: 100%; height: 110px; object-fit: cover; } .next > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; } .next b { font-size: 14px; }

/* ---------- bench ---------- */
body.bench-mode { background: var(--bg); }
.bench { min-height: 100vh; display: flex; flex-direction: column; }
.bench-hdr { height: 60px; padding: 0 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--hair); background: var(--surface); flex-shrink: 0; } .bench-hdr b { font-size: 14px; } .bench-hdr .muted { font-size: 13px; }
.bench-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 24px; padding: 20px 24px 14px; min-height: 0; }
.bench-stage { position: relative; background: var(--deep); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; min-height: 420px; } .bench-stage img { width: 100%; height: 100%; object-fit: contain; }
.placeholder.big { width: 100%; height: 100%; border-radius: 0; border: 0; font-size: 13px; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(10,14,26,.8); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); } .nav-arrow.left { left: 14px; } .nav-arrow.right { right: 14px; } .nav-arrow.off { opacity: .3; pointer-events: none; }
.bench-side { display: flex; flex-direction: column; gap: 16px; } .bench-side h1 { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; } .bench-side .lead { color: var(--text); font-size: 15.5px; }
.bench-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; } .bench-actions .btn-xl { box-shadow: 0 12px 28px rgba(15,17,21,.18); }
.bench-foot { padding: 0 24px 16px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.thumbs { display: grid; gap: 10px; } .thumb { position: relative; height: 68px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--deep); opacity: .75; } .thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb .ph { display: block; width: 100%; height: 100%; background: var(--surface2); }
.thumb.on { border-color: var(--red); opacity: 1; } .thumb.done { border-color: var(--green); opacity: 1; }
.thumb .mono { position: absolute; left: 6px; top: 6px; font-size: 9.5px; color: #fff; background: rgba(10,14,26,.85); border-radius: 4px; padding: 2px 5px; } .thumb.on .mono { background: var(--red); }

/* ---------- matrix ---------- */
.matrix-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; align-items: start; } .matrix-grid > div { display: flex; flex-direction: column; gap: 18px; }
.combos { gap: 14px; } .combo { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: left; } .combo.on { border: 2px solid var(--red); padding: 9px; }
.combo img { width: 100%; height: 118px; object-fit: contain; background: var(--deep); border-radius: 10px; } .combo b { font-family: var(--display); font-size: 15px; } .combo > span { width: 100%; }
.frame-icon { width: 100%; height: 118px; background: var(--deep); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.rules .card b { font-size: 14px; } .detail { gap: 14px; position: sticky; top: 90px; } .detail-img { width: 100%; height: 250px; object-fit: contain; background: var(--deep); border-radius: 14px; border: 1px solid var(--line); }
.frame-big { width: 100%; height: 250px; background: var(--deep); border-radius: 14px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.detail h2 { font-size: 26px; } .detail p { font-size: 14.5px; line-height: 1.55; } .detail .chip { height: 30px; font-size: 12.5px; text-align: left; white-space: normal; padding: 6px 12px; height: auto; }

/* ---------- downloads ---------- */
.banner { flex-direction: row; align-items: center; gap: 16px; background: var(--accent-soft); border-color: var(--accent-line); border-radius: 14px; padding: 14px 20px; } .banner > span:nth-child(2) { flex: 1; font-size: 14px; }
.offsets .off { gap: 4px; padding: 14px 18px; position: relative; border-radius: 14px; } .offsets .off b { font-size: 13px; } .offsets .off.on { background: var(--red-soft); border-color: var(--red-line); } .offsets .off .tag { position: absolute; top: -9px; right: 14px; }
.dl { padding: 0; overflow: hidden; gap: 0; } .dl.primary { border-color: var(--accent-line); } .dl img { width: 100%; height: 140px; object-fit: cover; background: var(--deep); } .dl-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; } .dl-body .mono { font-size: 10px; } .dl-body b { font-family: var(--display); font-size: 15.5px; } .dl-body .btn { margin-top: auto; }
.center-msg { align-items: center; text-align: center; padding-top: 80px; gap: 16px; } .center-msg h1 { font-size: 24px; max-width: 420px; }

/* ---------- account ---------- */
.account { flex-direction: row; gap: 32px; align-items: flex-start; }
.acc-nav { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; } .acc-nav .eyebrow { padding: 0 12px 12px; }
.acc-nav a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text2); } .acc-nav a.on { background: var(--red-soft); border: 1px solid var(--red-line); color: var(--text); font-weight: 600; }
.cert { margin-top: 22px; gap: 8px; padding: 16px; } .cert b { font-size: 13.5px; }
.acc-main { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; } .acc-main .grid2 { align-items: start; } .col { display: flex; flex-direction: column; gap: 20px; }
.profile { flex-direction: row; align-items: center; gap: 22px; } .profile .grid4 { flex: 1; gap: 14px; } .profile label { color: var(--text3); font-size: 10px; } .profile input { height: 42px; }
.kvcards { gap: 12px; } .kvcards > div { background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; } .kvcards > div.ok { border-color: var(--green); } .kvcards .span2 { grid-column: span 2; }
.kvcards .mono { font-size: 10px; color: var(--text3); } .kvcards .mono.green { color: var(--green); } .kvcards b { font-size: 14px; }
.line { padding: 10px 0; border-top: 1px solid var(--hair); } .line > div { display: flex; flex-direction: column; gap: 2px; }
.acc-main .row-between > div > .mono { font-size: 10.5px; }

/* ---------- DACY ---------- */
#dacy-backdrop { position: fixed; inset: 0; background: rgba(5,7,15,.5); z-index: 40; display: none; } #dacy-backdrop.open { display: block; }
#dacy { position: fixed; top: 0; right: 0; bottom: 0; width: 470px; max-width: 100vw; background: var(--surface); border-left: 1px solid var(--line); z-index: 41; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
#dacy.open { transform: translateX(0); }
.dacy-hdr { padding: 18px 22px; border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 13px; } .dacy-hdr > div { flex: 1; display: flex; flex-direction: column; gap: 3px; } .dacy-hdr b { font-family: var(--display); font-size: 17px; }
.dacy-body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.msg { align-self: flex-start; max-width: 380px; background: var(--deep); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.msg.me { align-self: flex-end; background: var(--red); color: #fff; border-color: var(--red); border-radius: 14px 14px 4px 14px; } .msg .chip { height: auto; padding: 7px 12px; font-size: 12.5px; text-align: left; white-space: normal; }
.sugg { margin-top: auto; } .sugg .chip { height: auto; padding: 8px 12px; text-align: left; white-space: normal; }
.dacy-input { padding: 16px 22px 20px; border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 10px; } .dacy-input input { flex: 1; }

/* ---------- search ---------- */
#search { position: fixed; inset: 0; z-index: 50; background: rgba(5,7,15,.55); display: none; padding: 12vh 16px 0; } #search.open { display: flex; justify-content: center; align-items: flex-start; }
.search-box { width: 640px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.search-box > .row { flex-wrap: nowrap; color: var(--text3); } .search-box input { flex: 1; height: 44px; border: 0; background: transparent; font-size: 16px; outline: none; }
.hits { display: flex; flex-direction: column; gap: 4px; } .hits a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; } .hits a:hover { background: var(--deep); } .hits img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; } .hits > a > div { flex: 1; display: flex; flex-direction: column; } .hits .mono { font-size: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-row { grid-template-columns: 1fr; } .lesson-grid { grid-template-columns: 1fr; } .matrix-grid { grid-template-columns: 1fr; } .detail { position: static; }
  .bench-body { grid-template-columns: 1fr; } .bench-stage { min-height: 300px; }
  .onboard-body { grid-template-columns: 1fr; } .onboard-side { padding-top: 0; }
  .entrance-body { flex-direction: column; padding: 20px 24px 40px; } .login { width: 100%; }
  .hdr .search { width: 200px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .hdr { height: 60px; padding: 0 16px; gap: 12px; } .hdr-nav, .hdr .search, .hdr .seg, .hdr .badge-red, .hdr > .icon-btn:not(.only-mobile) { display: none; } .hdr .avatar { margin-left: auto; }
  .page { padding: 20px 16px 110px; gap: 20px; } h1 { font-size: 26px; }
  .grid2, .grid3, .grid4, .grid5 { grid-template-columns: 1fr; } .row-between.wrap { align-items: flex-start; flex-direction: column; }
  .lcard-img { height: 120px; }
  .hero { flex-direction: column; padding: 18px; } .hero-img { width: 100%; height: 200px; }
  .video { border-radius: 12px; } .step { flex-direction: column; } .step-img { width: 100%; height: auto; aspect-ratio: 16/10; }
  .lesson-side .file .btn, .lesson-side .card:first-child { display: none; } /* no downloads on the phone */
  .bench-hdr { height: 54px; padding: 0 12px; gap: 8px; flex-wrap: nowrap; overflow: hidden; } .bench-hdr b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; } .bench-hdr > .mono.right, .bench-hdr .tag { display: none; } .bench-hdr .pill { padding: 0 9px; flex-shrink: 0; }
  .bench-body { padding: 12px; gap: 14px; } .bench-stage { min-height: 220px; aspect-ratio: 4/3; } .bench-side h1 { font-size: 24px; } .bench-side .lead { font-size: 15px; }
  .bench-foot { padding: 0 12px 14px; } .thumb { height: 44px; } .thumb .mono { display: none; }
  .onboard-hdr { padding: 0 16px; } .steps-ind { gap: 12px; } .steps-ind li { font-size: 0; } .onboard-body { padding: 24px 16px 60px; gap: 24px; }
  .entrance-hdr { padding: 0 16px; } .entrance-copy h1 { font-size: 30px; } .entrance-foot { padding: 0 16px; flex-direction: column; justify-content: center; gap: 4px; height: auto; padding-bottom: 20px; }
  .account { flex-direction: column; } .profile { flex-direction: column; align-items: flex-start; }
  #dacy { width: 100vw; }
  .banner { flex-direction: column; align-items: flex-start; } .banner .right { margin-left: 0; }
}

/* ---------- v3: welcome, pills, tabs, DACY page, downloads, community ---------- */
.entrance.is-welcome .entrance-body { justify-content: center; }
.welcome-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.welcome-links { justify-content: center; gap: 18px; } .welcome-links a, .welcome-links .lnk { color: #aab2c6; font-size: 13.5px; font-weight: 500; } .welcome-links .lnk:hover, .welcome-links a:hover { color: #ff4b4d; }
.entrance-hdr .avatar { width: 32px; height: 32px; font-size: 11px; }
.hdr-nav .nav-dacy { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-v, .pill-s, .pill-l { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.pill-v { background: var(--red); color: #fff; } .pill-s { background: var(--deep); color: var(--text); border: 1px solid var(--line); } .pill-l { color: var(--text3); border: 1px solid var(--line); }
.lcard-body .pills { margin-top: 2px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; align-self: flex-start; }
.tab { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text2); } .tab.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(15,17,21,.12); }
.dl-search { flex-direction: row; align-items: center; gap: 10px; width: 320px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 12px; color: var(--text3); }
.dl-search input { height: 100%; border: 0; background: transparent; padding: 0; font-family: var(--font); font-size: 14px; letter-spacing: 0; outline: none; }
.offset-pick { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; } .offset-pick h2 { font-size: 20px; margin-top: 4px; }
.offsets .off { text-align: left; cursor: pointer; } .offsets .off.on { background: var(--red-soft); border-color: var(--red-line); }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: inline-block; position: relative; } .radio.on { border-color: var(--red); } .radio.on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); }
.dacy-mini { display: flex; align-items: center; gap: 8px; } .dacy-mini input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--deep); font-family: var(--font); font-size: 14px; outline: none; }
.dacy-page { padding-top: 24px; } .dacy-col { max-width: 860px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 18px; min-height: calc(100vh - 220px); }
.dacy-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; } .dacy-top h1 { font-size: 34px; margin-top: 6px; }
.dacy-thread { flex: 1; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-height: 320px; max-height: 60vh; overflow-y: auto; }
.dacy-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 520px; } .dacy-empty h2 { font-size: 24px; }
.dacy-thread .msg { max-width: 640px; } .dacy-thread .msg.me { max-width: 520px; } .msg-head { display: flex; align-items: center; gap: 8px; } .msg-head b { font-family: var(--display); }
.dacy-sugg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sugg { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text); } .sugg:hover { border-color: var(--red-line); } .sugg.ghost { color: var(--text3); justify-content: center; }
.dacy-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 18px; box-shadow: var(--shadow); } .dacy-bar input { flex: 1; height: 44px; border: 0; background: transparent; font-family: var(--font); font-size: 16px; outline: none; }
.cm-grid { align-items: start; } .cm-col { gap: 14px; } .cm-col h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.thread { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--hair); } .thread b { font-size: 14.5px; line-height: 1.3; } .thread p { line-height: 1.5; }
.cases { gap: 10px; } .case { margin: 0; display: flex; flex-direction: column; gap: 6px; } .case img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); } .case figcaption { display: flex; flex-direction: column; gap: 2px; } .case b { font-size: 13px; line-height: 1.3; } .case .mono { font-size: 9.5px; }
.event { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--hair); } .event b { font-size: 15px; } .event .btn { align-self: flex-start; }
@media (max-width: 1100px) { .dacy-sugg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .dacy-sugg { grid-template-columns: 1fr; } .dacy-thread { max-height: none; min-height: 200px; padding: 16px; } .dacy-col { min-height: 0; } .dacy-top h1 { font-size: 28px; }
  .dl-search { width: 100%; } .tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } .tab { flex: 0 0 auto; white-space: nowrap; padding: 0 12px; font-size: 13px; }
  .welcome-links { gap: 12px; }
}
@media (max-width: 1180px) and (min-width: 769px) {
  .hdr { gap: 14px; padding: 0 20px; } .hdr-nav { gap: 14px; } .hdr-nav a { font-size: 13px; }
  .hdr .search { width: 40px; padding: 0; justify-content: center; } .hdr .search span, .hdr .search kbd { display: none; }
  .hdr .pill-mono { display: none; }
}

/* ---------- v4: DACY widget, modal, community extras, start list, matrix hq ---------- */
.dacy-widget { position: fixed; right: 28px; bottom: 96px; width: 400px; max-width: calc(100vw - 32px); height: min(640px, calc(100vh - 130px)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); z-index: 45; display: flex; flex-direction: column; overflow: hidden; transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none; transition: transform .18s ease, opacity .18s ease; }
.dacy-widget.open { transform: none; opacity: 1; pointer-events: auto; }
.dw-hdr { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hair); } .dw-hdr > div { flex: 1; display: flex; flex-direction: column; } .dw-hdr b { font-family: var(--display); font-size: 16px; }
.dw-ctx { padding: 8px 16px; font-size: 10px; color: var(--text3); background: var(--deep); border-bottom: 1px solid var(--hair); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .dw-thread .msg { max-width: 92%; font-size: 13.5px; padding: 12px 14px; } .dw-thread .msg.me { align-self: flex-end; }
.dw-sugg { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; } .dw-sugg .chip { flex: 0 0 auto; height: 30px; font-size: 12px; padding: 0 10px; }
.dw-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--hair); } .dw-input input { flex: 1; height: 42px; border: 0; background: transparent; font-family: var(--font); font-size: 14.5px; outline: none; }
.dw-foot { padding: 0 16px 10px; font-size: 11px; }
.fab-wrap .fab-label.hide { display: none; }
body.dacy-open .fab { background: var(--text); }
.modal-back { position: fixed; inset: 0; background: rgba(5,7,15,.55); z-index: 60; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; z-index: 61; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
.modal h2 { font-size: 22px; margin-top: 4px; } .modal textarea, .modal select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--deep); font-family: var(--font); font-size: 14.5px; letter-spacing: 0; color: var(--text); outline: none; width: 100%; } .modal input[type="file"] { padding: 10px 0; height: auto; background: transparent; border: 0; }
.modal .dot-red.big { align-self: center; }
.social { display: flex; gap: 8px; flex-wrap: wrap; } .social .chip { height: 38px; font-weight: 600; }
.cm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fb-ph { flex-direction: row; align-items: flex-start; gap: 12px; } .fb-ph > div { display: flex; flex-direction: column; gap: 2px; } .fb-ph b { color: var(--text3); font-weight: 500; }
.start-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .start-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; }
.start-list li i { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-style: normal; font-size: 11px; font-weight: 600; flex-shrink: 0; } .start-list li .mono { margin-left: auto; }
.combo img, .detail-img { background: var(--surface2); }
@media (max-width: 768px) {
  .fab-wrap { display: none !important; }
  .dacy-widget { right: 0; bottom: 0; left: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; border: 0; z-index: 70; }
  .cm-grid { grid-template-columns: 1fr; }
}

/* ---------- v5: welcome note, watched state, avatar photo, experience form ---------- */
.welcome-note { display: flex; align-items: flex-start; gap: 18px; padding: 4px 2px 2px; }
.wn-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow); flex-shrink: 0; background: var(--deep); }
.wn-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 4px; } .wn-body > .mono { font-size: 10px; }
.wn-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 88px; }
.wn-bubble { display: none; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 11px 16px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.wn-bubble.shown { display: block; } .wn-bubble + .wn-bubble { border-radius: 16px; }
.wn-bubble.typing { display: inline-flex; gap: 5px; align-items: center; height: 44px; }
.wn-bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); animation: wn-dot 1s infinite ease-in-out; } .wn-bubble.typing i:nth-child(2) { animation-delay: .15s; } .wn-bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wn-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.welcome-note.compact { gap: 12px; padding: 0; } .welcome-note.compact .wn-photo { width: 56px; height: 56px; } .welcome-note.compact .wn-bubble { font-size: 14px; padding: 9px 13px; } .welcome-note.compact .wn-bubbles { min-height: 0; }
:root { --veil: rgba(240, 232, 218, .68); } [data-theme="dark"] { --veil: rgba(10, 14, 26, .62); }
.lcard.is-done .lcard-img::after { content: ''; position: absolute; inset: 0; background: var(--veil); pointer-events: none; }
.lcard.is-done .lcard-img img { filter: saturate(.55); } .lcard.is-done .lcard-img .tag { z-index: 1; }
.lcard.is-done .lcard-body b { color: var(--text2); font-weight: 500; } .lcard.is-done .pills { opacity: .6; } .lcard.is-done .bar i { background: var(--accent); }
.lcard.is-done:hover .lcard-img::after { opacity: .35; }
.tag.done { background: #EFE3CC; color: #6B4A16; } [data-theme="dark"] .tag.done { background: var(--accent); color: #0a0e1a; }
.avatar { overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.nform { width: 680px; gap: 18px; padding: 28px; } .nform-hdr { align-items: flex-start; } .nform-hdr h2 { font-size: 24px; margin: 6px 0; }
.nform .q { display: flex; flex-direction: column; gap: 8px; } .nform .q[hidden] { display: none; }
.q-title { font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--text); letter-spacing: 0; } .q-title .req, .nform-foot .req { color: var(--red); font-style: normal; font-weight: 700; }
.q-desc { font-size: 12.5px; color: var(--text3); margin-top: -4px; }
.nform input[type="text"], .nform select, .nform textarea { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--surface); font-family: var(--font); font-size: 15px; color: var(--text); outline: none; width: 100%; } .nform textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.nform input:focus, .nform select:focus, .nform textarea:focus { border-color: var(--text); }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; } .q-chips .chip { height: 36px; } .q-chips .chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.stars { display: flex; align-items: center; gap: 4px; } .stars button { color: var(--line); display: inline-flex; padding: 2px; transition: transform .1s; } .stars button:hover { transform: scale(1.12); } .stars button.on { color: #E0A93B; } .stars .mono { margin-left: 10px; font-size: 10.5px; }
.drop { flex-direction: row; align-items: center; justify-content: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; background: var(--deep); color: var(--text2); font-family: var(--font); font-size: 13px; font-weight: 400; letter-spacing: 0; cursor: pointer; } .drop b { color: var(--text); font-size: 14px; } .drop:hover { border-color: var(--text3); }
.previews { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } .previews:empty { display: none; }
.previews figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); } .previews img { width: 100%; height: 100%; object-fit: cover; }
.previews button { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(10,14,26,.8); color: #fff; display: inline-flex; align-items: center; justify-content: center; } .previews button svg { width: 12px; height: 12px; }
.nform .q.err .q-title { color: var(--red); } .nform .q.err input, .nform .q.err select, .nform .q.err textarea, .nform .q.err .drop { border-color: var(--red); }
.form-err { color: var(--red); font-size: 13.5px; font-weight: 600; } .form-err[hidden] { display: none; }
.nform .q.flat { gap: 0; } .nform-foot { position: sticky; bottom: -28px; background: var(--surface); padding: 14px 0 4px; border-top: 1px solid var(--hair); margin-top: 4px; }
@media (max-width: 768px) { .nform { padding: 20px; } .nform .grid2 { grid-template-columns: 1fr; } .previews { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wn-bubble { font-size: 14.5px; } }
@media (prefers-reduced-motion: reduce) { .wn-bubble.typing i { animation: none; } }
/* bench mode: the same DACY opens from the header, so the bubble never covers the thumbnails */
.dacy-pill { color: var(--red); border-color: var(--red-line); background: var(--red-soft); font-weight: 600; } .dacy-pill svg { width: 14px; height: 14px; }
body.bench-mode .dacy-widget { top: 70px; bottom: auto; right: 16px; height: min(600px, calc(100vh - 190px)); transform-origin: top right; }
.profile .avatar-edit .btn { white-space: nowrap; }
@media (max-width: 768px) { body.bench-mode .dacy-widget { top: 0; right: 0; height: 100%; } .dacy-pill span { display: none; } }
.nform label.btn { flex-direction: row; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text); cursor: pointer; }
/* community: real feedback wall */
.fb-wall { display: flex; flex-direction: column; gap: 16px; } .fb-wall h2 { display: flex; align-items: center; gap: 8px; } .fb-wall h2 svg { color: var(--red); }
.fb-grid { columns: 3 300px; column-gap: 16px; } .fb-wall > .btn { align-self: center; }
.fb-card { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.fb-card.featured { border-color: var(--accent-line); }
.fb-card header { display: flex; align-items: center; gap: 12px; } .fb-card header .avatar { width: 44px; height: 44px; flex-shrink: 0; background: var(--deep); color: var(--text2); border: 1px solid var(--line); } .fb-card header > div { display: flex; flex-direction: column; min-width: 0; } .fb-card header b { font-family: var(--display); font-size: 15px; } .fb-card header .mono { font-size: 9.5px; margin-top: 2px; }
.fb-stars { display: flex; gap: 1px; } .fb-stars i { color: var(--line); display: inline-flex; } .fb-stars i.on { color: #E0A93B; } .fb-stars svg { width: 15px; height: 15px; }
.fb-text { font-size: 14.5px; line-height: 1.6; color: var(--text); } .fb-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.fb-card .lnk { align-self: flex-start; } .fb-card .chip { height: 26px; padding: 0 9px; font-size: 9.5px; }
.fb-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .fb-cases img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cm-col h2 { display: flex; align-items: center; gap: 8px; }
.fb-orig { font-size: 9.5px; }
.chk span { flex: 1; } .chk .lnk { font-size: inherit; text-decoration: underline; }
