/* Vivid Studio · hand-drawn notebook style */
:root {
  --paper: #FBF6EA;
  --paper-2: #F4ECD8;
  --card: #FFFDF8;
  --ink: #2B2622;
  --ink-2: #4A433D;
  --muted: #8A8077;
  --faint: #B3A99E;
  --line: #E4D9C4;
  --yellow: #F6C945;
  --yellow-soft: #FCEBB0;
  --green: #4F9A6A;
  --green-deep: #3D7F55;
  --green-soft: #DDEFD9;
  --coral: #EE8A6B;
  --coral-soft: #FADBCF;
  --sky: #7FB6DD;
  --sky-soft: #D9ECF7;
  --lilac: #A98BC9;
  --lilac-soft: #ECE2F5;
  --bad: #D2553F;
  --wob: 14px 20px 12px 22px / 20px 12px 22px 14px;
  --wob-lg: 26px 34px 22px 38px / 34px 22px 38px 26px;
  --wob-pill: 40px 34px 44px 30px / 30px 44px 34px 40px;
  --pop: 3px 4px 0 var(--ink);
  --pop-lg: 5px 6px 0 var(--ink);
  --hand: "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  --script: "Caveat", "ZCOOL KuaiLe", cursive;
  --font: "PingFang SC", -apple-system, system-ui, "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --side-w: 236px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
html { background: var(--paper); }
body {
  font: 14px/1.65 var(--font); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* paper texture lives on .main (not body) so mix-blend-mode illustrations can blend with it */
.main { background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; }
::selection { background: var(--yellow-soft); }
.hint { color: var(--muted); font-size: 12px; }
.err { color: var(--bad); font-size: 13px; }
.art { mix-blend-mode: multiply; user-select: none; -webkit-user-drag: none; }

/* image fade-in */
img.fade { opacity: 0; filter: blur(6px); transform: scale(.985); transition: opacity .5s var(--ease), filter .6s var(--ease), transform .6s var(--ease); }
img.fade.loaded { opacity: 1; filter: none; transform: none; }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px) rotate(var(--r0, 0deg)); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .45s var(--ease) backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(.4deg); } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes ansIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes nowPulse { 50% { transform: scale(1.12) rotate(6deg); box-shadow: 0 0 0 6px rgba(246, 201, 69, .3); } }

/* ------------------------------------------------ buttons */
.btn, .btn-y, .btn-o {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border: 2px solid var(--ink); border-radius: var(--wob-pill);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: var(--pop); transition: transform .18s var(--spring), box-shadow .18s var(--ease), background .2s;
}
.btn { background: var(--green); color: #fff; }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-o { background: var(--card); color: var(--ink); }
.btn:hover, .btn-y:hover, .btn-o:hover { transform: translate(-1px, -2px) rotate(-.8deg); box-shadow: 5px 6px 0 var(--ink); }
.btn:active, .btn-y:active, .btn-o:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); transition-duration: .06s; }
.btn:disabled, .btn-y:disabled { background: #D9D1C3; color: #8A8077; transform: none; box-shadow: 2px 2px 0 #B3A99E; border-color: #B3A99E; cursor: default; }
.btn svg, .btn-y svg, .btn-o svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--spring); }
.btn:hover svg, .btn-y:hover svg { transform: translateX(3px); }
.btn.sm, .btn-y.sm, .btn-o.sm { height: 38px; padding: 0 18px; font-size: 14px; }
.x { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--muted); flex: none; transition: background .2s, color .2s, transform .3s var(--spring); }
.x:hover { background: var(--paper-2); color: var(--ink); transform: rotate(90deg); }

/* ================================================ LANDING */
body.is-landing .sidebar { display: none; }
body.is-landing .main { margin-left: 0; }
.lp { overflow-x: clip; }
.lp-nav { position: sticky; top: 0; z-index: 30; transition: background .3s, box-shadow .3s; }
.lp-nav.scrolled { background: rgba(251, 246, 234, .88); backdrop-filter: blur(10px); box-shadow: 0 2px 0 var(--line); }
.lp-nav .inner { max-width: 1200px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 28px; }
.lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-logo img { width: 42px; height: 42px; mix-blend-mode: multiply; transition: transform .4s var(--spring); }
.lp-logo:hover img { transform: rotate(-10deg) scale(1.08); }
.lp-logo b { font: 400 26px/1.05 var(--hand); letter-spacing: 1px; }
.lp-logo small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 2px; margin-top: 2px; }
.lp-links { display: flex; gap: 6px; margin-left: auto; }
.lp-links a { position: relative; z-index: 0; padding: 6px 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.lp-links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 9px; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c15-3 30-3 48-1s34 1 48-2' fill='none' stroke='%23F6C945' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.lp-links a:hover { color: var(--ink); }
.lp-links a:hover::after { transform: scaleX(1); }

.hero { max-width: 1200px; margin: 0 auto; padding: 30px 28px 44px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero .kicker { font: 600 28px/1 var(--script); color: var(--green-deep); transform: rotate(-3deg); display: inline-block; margin-bottom: 16px; }
.hero h1 { margin: 0; font: 400 clamp(40px, 5.2vw, 64px)/1.25 var(--hand); letter-spacing: 1px; }
.hero h1 .line { display: block; }
.hero h1 .mark { position: relative; z-index: 0; white-space: nowrap; }
.hero h1 .mark svg { position: absolute; left: -3%; bottom: -.04em; width: 106%; height: .42em; z-index: -1; overflow: visible; }
.hero h1 .mark path { fill: none; stroke: var(--yellow); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.1s .55s var(--ease) forwards; }
.hero .bang { display: inline-block; color: var(--coral); animation: bang 3s 1.6s var(--spring) infinite; transform-origin: bottom center; }
@keyframes bang { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(14deg) scale(1.15); } 92% { transform: rotate(-8deg); } }
.hero .lead { font-size: 16.5px; color: var(--ink-2); margin: 22px 0 28px; max-width: 30em; line-height: 1.85; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .hero-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero .hero-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero-art { position: relative; }
.hero-art .art { width: 100%; height: auto; animation: floaty 7s ease-in-out infinite; }
.sticky-note { position: absolute; right: -4px; top: 0; width: 150px; padding: 16px 16px 14px; background: #FFF8D6; border: 2px solid var(--ink); border-radius: 4px 10px 6px 12px; box-shadow: var(--pop); transform: rotate(6deg); font: 400 18px/1.75 var(--hand); animation: noteSway 5s ease-in-out infinite; }
.sticky-note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 56px; height: 20px; margin-left: -28px; background: rgba(127, 182, 221, .55); border: 1.5px solid rgba(43, 38, 34, .35); transform: rotate(-4deg); }
.sticky-note div::before { content: "✓ "; color: var(--green); }
@keyframes noteSway { 50% { transform: rotate(3.5deg) translateY(-3px); } }
.doodle { position: absolute; pointer-events: none; overflow: visible; }
.doodle path, .doodle circle { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.doodle.star path { fill: var(--yellow); }
.doodle.spin { animation: twinkle 3.2s ease-in-out infinite; }
.doodle.drift { animation: drift 9s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.75) rotate(20deg); opacity: .7; } }
@keyframes drift { 50% { transform: translateX(14px); } }
.hand-note { position: absolute; font: 600 25px/1.15 var(--script); color: var(--ink-2); transform: rotate(-6deg); white-space: nowrap; }

.stats { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.stats .row { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-radius: var(--wob-lg); background: var(--card); box-shadow: var(--pop-lg); overflow: hidden; }
.stats a { display: flex; align-items: center; gap: 16px; padding: 16px 24px; text-decoration: none; transition: background .25s; }
.stats a + a { border-left: 2px dashed var(--line); }
.stats a:hover { background: var(--paper); }
.stats a:hover img { transform: rotate(-6deg) scale(1.08); }
.stats img { width: 80px; height: 80px; object-fit: contain; transition: transform .4s var(--spring); }
.stats b { display: block; font: 400 34px/1.1 var(--hand); }
.stats b em { font-style: normal; }
.stats b small { font-size: 15px; margin-left: 4px; color: var(--muted); }
.stats span { color: var(--muted); font-size: 13px; }

.sec { max-width: 1200px; margin: 0 auto; padding: 110px 28px 0; scroll-margin-top: 40px; }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head .eyebrow { font: 600 25px/1 var(--script); color: var(--coral); display: inline-block; transform: rotate(-2deg); }
.sec-head h2 { margin: 8px 0 10px; font: 400 clamp(30px, 3.6vw, 44px)/1.3 var(--hand); }
.sec-head p { margin: 0; color: var(--muted); font-size: 15.5px; }


.kinds-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.kinds-tabs button { border: 2px solid var(--ink); background: var(--card); height: 46px; padding: 0 24px; border-radius: var(--wob-pill); font: 400 19px/1 var(--hand); transition: transform .25s var(--spring), background .2s, box-shadow .2s; box-shadow: 2px 3px 0 var(--ink); }
.kinds-tabs button:hover { transform: translateY(-2px) rotate(-1deg); }
.kinds-tabs button.on { background: var(--yellow); box-shadow: var(--pop); transform: rotate(-1.5deg); }
.kind-panel { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: center; background: var(--card); border: 2px solid var(--ink); border-radius: var(--wob-lg); box-shadow: var(--pop-lg); padding: 30px 34px; min-height: 430px; }
.kind-panel .intro { animation: popIn .45s var(--spring) backwards; }
.kind-panel .intro img { width: 210px; height: 210px; object-fit: contain; margin: -10px auto 4px; animation: floaty 6s ease-in-out infinite; }
.kind-panel .intro h3 { margin: 0 0 8px; font: 400 28px/1.3 var(--hand); }
.kind-panel .intro p { margin: 0 0 12px; color: var(--ink-2); }
.kind-panel .intro ul { margin: 0 0 20px; padding: 0; list-style: none; }
.kind-panel .intro li { padding-left: 24px; position: relative; margin: 6px 0; color: var(--ink-2); font-size: 13.5px; }
.kind-panel .intro li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8.5' fill='none' stroke='%234F9A6A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini { background: var(--card); border: 2px solid var(--ink); border-radius: var(--wob); overflow: hidden; text-decoration: none; transition: transform .3s var(--spring), box-shadow .3s; box-shadow: 2px 3px 0 var(--ink); animation: popIn .5s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.mini:nth-child(odd):hover { transform: translateY(-4px) rotate(-1.2deg); box-shadow: var(--pop-lg); }
.mini:nth-child(even):hover { transform: translateY(-4px) rotate(1.2deg); box-shadow: var(--pop-lg); }
.mini .ph { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid var(--ink); }
.mini .ph img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.mini span { display: block; padding: 7px 10px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: center; position: relative; }
.step:nth-child(2) { --d: .12s; } .step:nth-child(3) { --d: .24s; } .step:nth-child(4) { --d: .36s; }
.step .pic { width: 170px; height: 170px; margin: 0 auto 6px; position: relative; }
.step .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--spring); }
.step:hover .pic img { transform: rotate(-5deg) scale(1.07); }
.step .no { position: absolute; left: 4px; top: 6px; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 48% 52% 45% 55%; background: var(--yellow); display: grid; place-items: center; font: 400 21px/1 var(--hand); box-shadow: 2px 2px 0 var(--ink); }
.step h3 { margin: 0 0 6px; font: 400 21px/1.3 var(--hand); }
.step p { margin: 0 auto; color: var(--ink-2); font-size: 13.5px; max-width: 17em; }
.step + .step::before { content: ""; position: absolute; left: -40px; top: 66px; width: 58px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M3 20c12-12 30-14 46-5M42 8l8 7-10 4' fill='none' stroke='%238A8077' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='5 5'/%3E%3C/svg%3E") no-repeat center / contain; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--wob-lg); padding: 26px 24px 24px; box-shadow: var(--pop); }
.why-card.in { transition: transform .35s var(--spring), box-shadow .3s, opacity .7s; transition-delay: 0s; }
.why-card.in:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--pop-lg); }
.why-card:nth-child(1) { background: #FFF9E2; } .why-card:nth-child(2) { background: #EEF6EA; --d: .1s; } .why-card:nth-child(3) { background: #EEF5FB; --d: .2s; }
.why-card .ico { width: 56px; height: 56px; border: 2px solid var(--ink); border-radius: 46% 54% 50% 50%; display: grid; place-items: center; background: #fff; margin-bottom: 14px; box-shadow: 2px 2px 0 var(--ink); }
.why-card .ico svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { margin: 0 0 8px; font: 400 22px/1.3 var(--hand); }
.why-card p { margin: 0; color: var(--ink-2); font-size: 13.8px; }

.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--card); border: 2px solid var(--ink); border-radius: var(--wob); box-shadow: 2px 3px 0 var(--ink); transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--pop); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 22px; font: 400 18px/1.4 var(--hand); display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 400 28px/1 var(--hand); transition: transform .35s var(--spring); color: var(--coral); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding: 0 22px 18px; color: var(--ink-2); font-size: 14px; }
.faq details[open] .ans { animation: ansIn .4s var(--ease); }

.final { max-width: 1100px; margin: 120px auto 0; padding: 0 28px; }
.final .box { display: grid; grid-template-columns: 250px 1fr auto; gap: 28px; align-items: center; background: var(--yellow-soft); border: 2px solid var(--ink); border-radius: var(--wob-lg); padding: 22px 40px 22px 20px; box-shadow: var(--pop-lg); }
.final img { width: 230px; height: 230px; object-fit: contain; margin: -24px 0 -22px; }
.final h2 { margin: 0 0 6px; font: 400 34px/1.3 var(--hand); }
.final p { margin: 0; color: var(--ink-2); }
.lp-foot { max-width: 1200px; margin: 0 auto; padding: 50px 28px 40px; display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.lp-foot b { font: 400 20px/1 var(--hand); color: var(--ink); }
.lp-foot .r { margin-left: auto; }


/* versus */
.versus { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: stretch; gap: 10px; }
.vs-card { position: relative; border: 2px solid var(--ink); border-radius: var(--wob-lg); padding: 26px 26px 22px; box-shadow: var(--pop-lg); display: flex; flex-direction: column; }
.vs-card.free { background: #F1ECE3; --r0: -3deg; --r1: -1.2deg; transform-origin: center; }
.vs-card.free.in { transform: rotate(-1.2deg); }
.vs-card.ours { background: #FFF6D5; --d: .15s; }
.vs-card.ours.in { transform: rotate(.8deg); }
.vs-title { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.vs-title h3 { margin: 0; font: 400 24px/1.3 var(--hand); }
.vs-title p { margin: 0; color: var(--muted); font-size: 13px; }
.vs-ico { width: 48px; height: 48px; flex: none; border: 2px solid var(--ink); border-radius: 46% 54% 50% 50%; display: grid; place-items: center; font: 400 26px/1 var(--hand); background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.ours .vs-ico { background: var(--green); }
.ours .vs-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vs-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vs-card li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink-2); }
.vs-card li::before { position: absolute; left: 0; top: -1px; font: 400 19px/1.3 var(--hand); }
.free li::before { content: "✗"; color: #B3A99E; }
.free li { color: var(--muted); }
.ours li::before { content: "✓"; color: var(--green); }
.ours li { color: var(--ink); }
.vs-mid { display: grid; place-items: center; }
.vs-mid span { width: 62px; height: 62px; border: 2px solid var(--ink); border-radius: 50% 46% 54% 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font: 400 24px/1 var(--hand); box-shadow: var(--pop); transform: rotate(-8deg); }
.dice, .trace { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 2px dashed rgba(43, 38, 34, .15); font: 600 21px/1.2 var(--script); color: var(--muted); }
.dice svg { width: 52px; height: 52px; animation: roll 2.6s var(--spring) infinite; }
.dice path { fill: #fff; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.dice circle { fill: var(--ink); }
@keyframes roll { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-24deg) translateY(-6px); } 88% { transform: rotate(18deg); } }
.trace svg { width: 130px; height: 64px; flex: none; }
.trace .ghost rect { fill: none; stroke: #8A8077; stroke-width: 2; stroke-dasharray: 4 3.5; }
.trace .ink path { stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; clip-path: inset(100% 0 0 0); }
.vs-card.ours.in .trace .ink path { animation: fillUp .9s var(--ease) forwards; }
.vs-card.ours.in .trace .ink path:nth-child(2) { animation-delay: .25s; } .vs-card.ours.in .trace .ink path:nth-child(3) { animation-delay: .5s; } .vs-card.ours.in .trace .ink path:nth-child(4) { animation-delay: .75s; }
@keyframes fillUp { to { clip-path: inset(0 0 0 0); } }
.ours .trace { color: var(--green-deep); }
@media (max-width: 1100px) { .versus { grid-template-columns: 1fr; } .vs-mid { padding: 4px 0; } }
.lp-foot img { margin-right: -8px; }

/* ================================================ APP SHELL */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); padding: 18px 16px; background: #F7F0E0; border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 18px; text-decoration: none; }
.brand img { mix-blend-mode: multiply; transition: transform .4s var(--spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.1); }
.brand b { display: block; font: 400 24px/1.05 var(--hand); letter-spacing: 1px; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 2px; margin-top: 3px; }
.new-task { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 2px solid var(--ink); border-radius: var(--wob-pill); background: var(--yellow); color: var(--ink); font-weight: 600; margin-bottom: 12px; box-shadow: var(--pop); transition: transform .18s var(--spring), box-shadow .18s; }
.new-task:hover { transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 5px 6px 0 var(--ink); }
.new-task:active { transform: translate(2px, 3px); box-shadow: none; }
.new-task svg, .nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: var(--wob); text-decoration: none; color: var(--ink-2); font-weight: 500; border: 2px solid transparent; transition: background .2s, border-color .2s, transform .25s var(--spring), box-shadow .2s; }
.nav a:hover { background: rgba(255, 253, 248, .75); transform: translateX(3px); }
.nav a.on { background: var(--card); border-color: var(--ink); color: var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.side-foot { border-top: 2px dashed var(--line); padding: 12px 6px 0; }
.model { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; word-break: break-all; }
.model i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.model i.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(79, 154, 106, .12); } }
.main { margin-left: var(--side-w); min-height: 100vh; }

/* ------------------------------------------------ plaza */
.plaza { max-width: 1180px; margin: 0 auto; padding: 34px 44px 210px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font: 400 34px/1.2 var(--hand); letter-spacing: 1px; position: relative; z-index: 0; }
.page-head h1::after { content: ""; position: absolute; left: -4px; right: -8px; bottom: 0; height: 12px; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c18-5 40-6 60-3s28 2 36-1' fill='none' stroke='%23F6C945' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.page-head .hint { font-size: 14px; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 270px; height: 42px; padding: 0 16px; border: 2px solid var(--ink); border-radius: var(--wob-pill); background: var(--card); transition: box-shadow .2s, transform .2s var(--spring); }
.search:focus-within { box-shadow: var(--pop); transform: translateY(-1px); }
.search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--ink); }
.search input::placeholder { color: var(--faint); }

.tabs { position: relative; display: flex; gap: 34px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px dashed var(--line); }
.tabs button { border: 0; background: none; padding: 6px 0 14px; color: var(--muted); font: 400 19px/1.2 var(--hand); white-space: nowrap; transition: color .2s; }
.tabs button span { font: 12px var(--font); margin-left: 4px; color: var(--faint); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs .ink { position: absolute; bottom: 0; height: 10px; left: 0; width: 0; pointer-events: none; transition: left .5s var(--spring), width .5s var(--spring); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c14-4 30-4 46-1s34 2 50-2' fill='none' stroke='%232B2622' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

.chips { display: flex; flex-wrap: wrap; gap: 9px 10px; margin-bottom: 24px; }
.chip { border: 2px solid var(--ink); height: 32px; padding: 0 14px; border-radius: var(--wob-pill); background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 500; transition: transform .2s var(--spring), background .2s, box-shadow .2s; animation: popIn .35s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
.chip span { margin-left: 4px; font-size: 11px; color: var(--muted); }
.chip:hover { transform: translateY(-2px) rotate(-1.5deg); }
.chip.on { background: var(--ink); color: var(--paper); box-shadow: 2px 3px 0 var(--yellow); }
.chip.on span { color: var(--faint); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 22px; }
.card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 2px solid var(--ink); border-radius: var(--wob); background: var(--card); overflow: hidden; text-decoration: none; box-shadow: var(--pop); transition: transform .32s var(--spring), box-shadow .3s var(--ease); animation: popIn .5s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.card:nth-child(3n+1):hover { transform: translateY(-5px) rotate(-.8deg); }
.card:nth-child(3n+2):hover { transform: translateY(-5px) rotate(.6deg); }
.card:nth-child(3n):hover { transform: translateY(-5px) rotate(-.4deg); }
.card:hover { box-shadow: 6px 8px 0 var(--ink); }
.card:active { transform: translate(2px, 3px) !important; box-shadow: 0 0 0 var(--ink); transition-duration: .06s; }
.cover { position: relative; aspect-ratio: 16 / 10.5; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 2px solid var(--ink); }
.cover img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.cover img.loaded { transition: transform .5s var(--ease), opacity .5s, filter .6s; }
.card:hover .cover img.loaded { transform: scale(1.045); }
.kind-figure .cover img { object-fit: cover; padding: 0; }
.work .cover img { object-fit: contain; padding: 14px; }
.cover .wait { font: 400 16px var(--hand); color: var(--muted); }
.cover .wait img { width: 110px; height: 110px; padding: 0; mix-blend-mode: multiply; animation: bob 2s ease-in-out infinite; }
.badge { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 5px; align-items: center; height: 26px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: var(--wob-pill); background: var(--green-soft); color: var(--ink); font-size: 12px; font-weight: 600; }
.kind-arch .badge { background: var(--sky-soft); }
.kind-uml .badge { background: var(--lilac-soft); }
.badge b { color: var(--coral); }
.num { position: absolute; top: 10px; right: 10px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(43, 38, 34, .72); color: var(--paper); font: 11px/24px var(--mono); }
.num.st-running { background: var(--yellow); color: var(--ink); font-family: var(--font); }
.num.st-failed { background: var(--bad); font-family: var(--font); }
.num.st-done { background: var(--green); font-family: var(--font); }
.info { padding: 12px 15px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.info .title { font: 400 17px/1.35 var(--hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .sub, .info .reason { color: var(--muted); font-size: 12.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.info .reason { color: var(--ink-2); -webkit-line-clamp: 3; min-height: 0; }
.info .meta { display: flex; gap: 6px; margin-top: 6px; white-space: nowrap; overflow: hidden; }
.info .meta span { font-size: 11.5px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 0 8px; border-radius: 999px; }

.skel { pointer-events: none; }
.skel .cover { background: linear-gradient(100deg, #fff 30%, #F5ECDA 50%, #fff 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skel .line { height: 12px; border-radius: 6px; background: var(--paper-2); margin: 4px 0; animation: pulseSk 1.4s ease-in-out infinite; }
.skel .line.w1 { width: 60%; height: 16px; } .skel .line.w2 { width: 92%; } .skel .line.w3 { width: 40%; }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes pulseSk { 50% { opacity: .5; } }
.empty { grid-column: 1 / -1; text-align: center; padding: 30px 0 60px; color: var(--muted); }
.empty img { width: 220px; margin: 0 auto 4px; mix-blend-mode: multiply; }
.empty b { display: block; font: 400 22px/1.4 var(--hand); color: var(--ink); }
.empty .btn-y { margin-top: 14px; }

/* ------------------------------------------------ recommendations */
.recs { margin: 0 0 34px; padding: 22px; border: 2px solid var(--ink); border-radius: var(--wob-lg); background: #FFFBEA; box-shadow: var(--pop-lg); animation: recsIn .5s var(--spring) backwards; }
@keyframes recsIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.recs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; min-width: 0; }
.recs-head h2 { margin: 0; font: 400 22px/1.2 var(--hand); white-space: nowrap; }
.recs-head .q { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.recs-head .mode { font-size: 11.5px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: var(--wob-pill); background: var(--green-soft); white-space: nowrap; }
.recs-head .x { margin-left: auto; }
.searching { display: flex; align-items: center; gap: 22px; padding: 0 6px 6px; }
.searching img { width: 150px; height: 150px; object-fit: contain; mix-blend-mode: multiply; animation: bob 1.6s ease-in-out infinite; }
.searching b { display: block; font: 400 21px/1.4 var(--hand); }
.searching .tip { color: var(--muted); font-size: 13px; min-height: 22px; transition: opacity .3s; }
.bar { margin-top: 12px; width: 260px; max-width: 100%; height: 12px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, #F9D978 8px 16px); animation: indet 1.6s var(--ease) infinite; }
@keyframes indet { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.dots::after { content: ""; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ------------------------------------------------ composer */
.composer-wrap { position: fixed; left: var(--side-w); right: 0; bottom: 0; padding: 40px 24px 22px; pointer-events: none; background: linear-gradient(180deg, rgba(251, 246, 234, 0), var(--paper) 55%); z-index: 10; }
.composer { pointer-events: auto; position: relative; max-width: 780px; margin: 0 auto; background: var(--card); border: 2px solid var(--ink); border-radius: var(--wob-lg); box-shadow: var(--pop-lg); padding: 10px 12px 12px 18px; transition: transform .3s var(--spring), box-shadow .3s; }
.composer:focus-within { transform: translateY(-3px); box-shadow: 7px 9px 0 var(--ink); }
.composer .kinds { position: relative; display: flex; align-items: center; gap: 4px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: none; }
.composer .kinds > button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); height: 28px; padding: 0 12px; font-size: 13px; white-space: nowrap; transition: color .25s; }
.composer .kinds > button.on { color: var(--ink); font-weight: 600; }
.composer .kinds .pill { position: absolute; z-index: 0; top: 2px; height: 28px; border: 1.5px solid var(--ink); border-radius: var(--wob-pill); background: var(--yellow-soft); transition: left .45s var(--spring), width .45s var(--spring); }
.composer .ex { display: flex; gap: 10px; margin-left: 8px; padding-left: 12px; border-left: 2px dashed var(--line); }
.composer .ex button { border: 0; background: none; color: var(--muted); font-size: 12px; white-space: nowrap; padding: 0 2px; animation: popIn .35s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.composer .ex button:hover { color: var(--ink); text-decoration: underline wavy var(--coral); text-underline-offset: 4px; }
.composer .row { display: flex; align-items: flex-end; gap: 10px; }
.composer textarea, .revise textarea { flex: 1; border: 0; outline: none; resize: none; font: 15px/1.6 var(--font); color: var(--ink); background: none; padding: 6px 0; min-height: 38px; max-height: 150px; }
.composer textarea::placeholder, .revise textarea::placeholder { color: var(--faint); }
.send { flex: none; width: 44px; height: 44px; border-radius: 46% 54% 50% 50%; border: 2px solid var(--ink); background: var(--green); display: grid; place-items: center; box-shadow: 2px 3px 0 var(--ink); transition: transform .2s var(--spring), box-shadow .2s; }
.send svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.send:hover { transform: translateY(-2px) rotate(-8deg); box-shadow: 3px 5px 0 var(--ink); }
.send:active { transform: translate(2px, 3px); box-shadow: none; }
.send:disabled { background: #D9D1C3; border-color: #B3A99E; box-shadow: none; cursor: default; transform: none; }
.send.busy { background: var(--yellow); border-color: var(--ink); }
.send.busy svg { stroke: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------ drawer */
.drawer-mask { position: fixed; inset: 0; background: rgba(43, 38, 34, .28); backdrop-filter: blur(2px); z-index: 40; animation: fade .25s; }
.drawer-mask.out { animation: fadeOut .25s forwards; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(740px, calc(100vw - 20px)); background: var(--paper); border: 2px solid var(--ink); border-radius: 22px 18px 24px 16px; z-index: 41; overflow-y: auto; box-shadow: -6px 8px 0 rgba(43, 38, 34, .9); animation: drawerIn .5s var(--spring); }
.drawer.out { animation: drawerOut .25s var(--ease) forwards; }
@keyframes drawerIn { from { transform: translateX(70px) rotate(1.5deg); opacity: 0; } }
@keyframes drawerOut { to { transform: translateX(70px) rotate(1deg); opacity: 0; } }
.drawer .head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 16px 22px; background: rgba(251, 246, 234, .94); backdrop-filter: blur(8px); border-bottom: 2px dashed var(--line); }
.drawer .head h2 { margin: 0; font: 400 22px/1.2 var(--hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.drawer .head .hint { white-space: nowrap; }
.drawer .head .x { margin-left: auto; }
.kind { flex: none; font-size: 12px; font-weight: 600; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: var(--wob-pill); background: var(--green-soft); }
.kind.kind-arch { background: var(--sky-soft); }
.kind.kind-uml { background: var(--lilac-soft); }
.drawer .body { padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 20px; }
.drawer .body > * { animation: popIn .45s var(--spring) backwards; }
.drawer .body > :nth-child(2) { animation-delay: .06s; } .drawer .body > :nth-child(3) { animation-delay: .12s; } .drawer .body > :nth-child(n+4) { animation-delay: .18s; }
.preview { background: #fff; border: 2px solid var(--ink); border-radius: var(--wob); padding: 14px; box-shadow: var(--pop); cursor: zoom-in; }
.preview img { max-width: 100%; max-height: 420px; margin: 0 auto; object-fit: contain; }
.facts { display: grid; grid-template-columns: 86px 1fr; gap: 10px 14px; margin: 0; font-size: 13.8px; }
.facts dt { color: var(--muted); font: 400 15px/1.5 var(--hand); }
.facts dd { margin: 0; color: var(--ink); }
.facts ul { margin: 0; padding-left: 18px; }
.tag { display: inline-block; margin: 0 6px 5px 0; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 12px; }
.make { border: 2px solid var(--ink); border-radius: var(--wob-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #FFFBEA; box-shadow: var(--pop); position: relative; }
.make h3 { margin: 0; font: 400 21px/1.3 var(--hand); }
.make textarea { min-height: 104px; resize: vertical; border: 2px solid var(--ink); border-radius: var(--wob); padding: 10px 12px; font: 14px/1.65 var(--font); color: var(--ink); background: #fff; outline: none; transition: box-shadow .2s; }
.make textarea:focus { box-shadow: 3px 4px 0 var(--yellow); }
.drop { border: 2px dashed var(--muted); border-radius: var(--wob); padding: 14px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; background: #fff; transition: all .25s var(--ease); }
.drop.over, .drop:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.drop.over { transform: scale(1.015) rotate(-.4deg); }
.drop.has { border-style: solid; border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.make .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.box { border: 2px solid var(--ink); border-radius: var(--wob); background: var(--card); }
.box summary { padding: 12px 16px; cursor: pointer; font: 400 16px/1.4 var(--hand); list-style: none; display: flex; align-items: center; gap: 8px; }
.box summary::-webkit-details-marker { display: none; }
.box summary::before { content: "▸"; transition: transform .25s var(--spring); display: inline-block; }
.box[open] summary::before { transform: rotate(90deg); }
.box .inner { padding: 0 16px 16px; font-size: 13px; color: var(--ink); }
.box[open] .inner { animation: ansIn .35s var(--ease); }
.md h3 { font: 400 16px/1.4 var(--hand); margin: 14px 0 6px; }
.md p, .md ul { margin: 4px 0; }
.md code, .facts code { font-family: var(--mono); font-size: 12px; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
pre.code { margin: 0; max-height: 420px; overflow: auto; font: 12px/1.6 var(--mono); background: #FDFBF5; border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px; white-space: pre; color: var(--ink); }

/* ------------------------------------------------ job */
.job { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; max-width: 1260px; margin: 0 auto; padding: 26px 40px 70px; align-items: start; }
.back { font-size: 13px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; transition: color .2s, transform .25s var(--spring); }
.back:hover { color: var(--ink); transform: translateX(-3px); }
.job-head { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; min-width: 0; }
.job-head h1 { margin: 0; font: 400 28px/1.25 var(--hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.status { flex: none; font-size: 12px; padding: 0 11px; border: 1.5px solid var(--ink); border-radius: var(--wob-pill); background: var(--card); transition: background .4s; }
.status.running { background: var(--yellow-soft); }
.status.done { background: var(--green-soft); }
.status.failed { background: var(--coral-soft); }
.req { margin: 0 0 18px; color: var(--ink-2); font-size: 13.8px; }
.stage { border: 2px solid var(--ink); border-radius: var(--wob-lg); padding: 18px; background: var(--card); box-shadow: var(--pop-lg); display: flex; flex-direction: column; gap: 14px; }
.versions { display: flex; gap: 8px; flex-wrap: wrap; }
.versions button { border: 1.5px solid var(--ink); height: 30px; padding: 0 14px; border-radius: var(--wob-pill); background: #fff; font-size: 12.5px; font-weight: 600; transition: transform .2s var(--spring), background .2s; }
.versions button:hover { transform: translateY(-2px); }
.versions button.on { background: var(--ink); color: var(--paper); }
.result { background: #fff; border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.result a { cursor: zoom-in; }
.result img { max-width: 100%; margin: 0 auto; }
.result.reveal img { animation: inkReveal 1.2s var(--ease) both; }
@keyframes inkReveal { from { clip-path: inset(0 100% 0 0); filter: saturate(0) contrast(1.3); } 70% { filter: saturate(.7); } to { clip-path: inset(0 0 0 0); filter: none; } }
.files { display: flex; flex-wrap: wrap; gap: 9px; }
.files a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1.5px solid var(--ink); border-radius: var(--wob-pill); background: #fff; text-decoration: none; font-size: 13px; transition: transform .2s var(--spring), box-shadow .2s, background .2s; }
.files a::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.5v8M4.5 7.5L8 11l3.5-3.5M3 13.5h10' fill='none' stroke='%232B2622' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.files a:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 2px 3px 0 var(--ink); background: var(--yellow-soft); }
.files small { color: var(--muted); font-size: 11px; }
.note { font-size: 13.5px; color: var(--ink-2); background: var(--paper); border-left: 4px solid var(--yellow); border-radius: 4px 12px 12px 4px; padding: 10px 14px; white-space: pre-wrap; }
.note.fixnote { border-left-color: var(--sky); }
.job-err { color: var(--bad); font-size: 13px; background: var(--coral-soft); border-radius: 10px; padding: 8px 12px; }

.working { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center; padding: 22px 18px 18px; min-height: 340px; background: #fff; border: 1.5px dashed var(--line); border-radius: 14px; }
.working > img { width: 210px; height: 210px; object-fit: contain; mix-blend-mode: multiply; animation: bob 2s ease-in-out infinite; }
.working.compact { grid-template-columns: 120px 1fr; min-height: 0; padding: 14px 16px; gap: 18px; background: #FFFBEA; border-style: solid; border-color: var(--ink); }
.working.compact > img { width: 120px; height: 120px; }
.working.compact .stepper { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
.working.compact .stepper li { font-size: 12.5px; gap: 6px; }
.working.compact .stepper .ck { width: 22px; height: 22px; }
.working.compact .pencil-line { display: none; }
.working.failed > img { animation: shake 3s ease-in-out infinite; }
@keyframes shake { 0%, 90%, 100% { transform: none; } 93% { transform: rotate(-4deg); } 96% { transform: rotate(4deg); } }
.working h3 { margin: 0 0 4px; font: 400 24px/1.3 var(--hand); display: flex; align-items: baseline; flex-wrap: wrap; }
.working .elapsed { font: 600 24px/1 var(--script); color: var(--muted); margin-left: 10px; }
.working .live-msg { color: var(--ink-2); font-size: 13.5px; min-height: 22px; margin: 0 0 16px; }
.working .live-msg.swap { animation: ansIn .4s var(--ease); }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stepper li { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14px; transition: color .3s; }
.stepper .ck { width: 28px; height: 28px; flex: none; border: 2px solid var(--faint); border-radius: 46% 54% 50% 50%; display: grid; place-items: center; background: #fff; transition: border-color .3s, background .3s, transform .4s var(--spring); }
.stepper .ck svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.stepper li.done { color: var(--ink); }
.stepper li.done .ck { border-color: var(--ink); background: var(--green); transform: rotate(-6deg); }
.stepper li.done .ck svg { animation: draw .5s var(--ease) forwards; }
.stepper li.now { color: var(--ink); font-weight: 600; }
.stepper li.now .ck { border-color: var(--ink); background: var(--yellow); animation: nowPulse 1.2s ease-in-out infinite; }
.stepper li.warn .ck { background: var(--coral); border-color: var(--ink); }
.stepper small { color: var(--muted); font-weight: 400; font-size: 12px; }
.pencil-line { height: 16px; margin-top: 18px; }
.pencil-line svg { width: 100%; height: 16px; overflow: visible; }
.pencil-line path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: scribble 3.6s var(--ease) infinite; }
@keyframes scribble { 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }

.revise { display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; border: 2px solid var(--ink); border-radius: var(--wob-lg); padding: 9px 9px 9px 18px; background: var(--card); box-shadow: var(--pop); transition: transform .3s var(--spring), box-shadow .3s; }
.revise:focus-within { transform: translateY(-2px); box-shadow: var(--pop-lg); }
.revise textarea:disabled { opacity: .5; }
.job-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.ref { display: flex; gap: 12px; align-items: center; text-align: left; border: 2px solid var(--ink); border-radius: var(--wob); padding: 9px; background: var(--card); box-shadow: 2px 3px 0 var(--ink); transition: transform .25s var(--spring), box-shadow .25s; }
.ref:hover { transform: translateY(-2px) rotate(-.8deg); box-shadow: var(--pop); }
.ref img { width: 80px; height: 60px; object-fit: contain; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; flex: none; }
.ref span { min-width: 0; font: 400 15px/1.35 var(--hand); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ref small { display: block; color: var(--muted); font: 11px var(--font); }
.panel { border: 2px solid var(--ink); border-radius: var(--wob); padding: 14px 16px; background: var(--card); box-shadow: 2px 3px 0 var(--ink); }
.panel h3 { margin: 0 0 10px; font: 400 17px/1.3 var(--hand); }
.timeline { list-style: none; margin: 0; padding: 0; max-height: 58vh; overflow-y: auto; }
.timeline li { position: relative; padding: 0 0 11px 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; word-break: break-word; }
.timeline li.fresh { animation: popIn .45s var(--spring) backwards; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: 1px; border-left: 1.5px dashed var(--line); }
.timeline li.ok::before { background: var(--green); }
.timeline li.warn::before { background: var(--coral); }
.timeline li.bad::before { background: var(--bad); }
.timeline li.live::before { background: var(--yellow); animation: nowPulse 1.2s infinite; }
.timeline time { display: block; color: var(--faint); font-size: 11px; }

/* celebration */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--ink); animation: burst 1.5s var(--ease) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(43, 38, 34, .6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 40px; animation: fade .25s; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 12px; box-shadow: var(--pop-lg); animation: zoomIn .45s var(--spring); }
.lightbox .x { position: absolute; top: 16px; right: 16px; background: var(--card); border: 2px solid var(--ink); color: var(--ink); }
@keyframes zoomIn { from { transform: scale(.9) rotate(-2deg); opacity: 0; } }

/* toasts */
.toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 9px 18px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--wob-pill); box-shadow: var(--pop); font-size: 14px; animation: toastIn .45s var(--spring) backwards; }
.toast img { width: 34px; height: 34px; mix-blend-mode: multiply; }
.toast.bad { background: var(--coral-soft); }
.toast.ok { background: var(--green-soft); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.9) rotate(-2deg); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.95); } }

/* login */
.login { max-width: 380px; margin: 12vh auto; text-align: center; padding: 0 16px; }
.login img { margin: 0 auto; mix-blend-mode: multiply; animation: bob 2.4s ease-in-out infinite; }
.login h1 { font: 400 30px/1.3 var(--hand); margin: 8px 0 4px; }
.login p { color: var(--muted); }
.login form { display: flex; gap: 10px; }
.login input { flex: 1; height: 46px; border: 2px solid var(--ink); border-radius: var(--wob-pill); padding: 0 16px; font: inherit; background: var(--card); outline: none; }
.login input:focus { box-shadow: var(--pop); }


/* ------------------------------------------------ model button + settings dialog */
.side-foot { margin-top: auto; }
.model-btn { width: 100%; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 2px solid var(--ink); border-radius: var(--wob); background: var(--card); font-size: 13px; text-align: left; box-shadow: 2px 3px 0 var(--ink); transition: transform .25s var(--spring), box-shadow .2s, background .2s; }
.model-btn:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: var(--pop); }
.model-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .6s var(--spring); }
.model-btn:hover svg { transform: rotate(90deg); }
.model-btn i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.model-btn i.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); animation: breathe 2.4s ease-in-out infinite; }
.model-btn.unset { background: var(--yellow-soft); animation: nudge 3.2s 1s ease-in-out infinite; }
.model-btn.unset i { background: var(--coral); }
@keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-2deg); } 95% { transform: rotate(1.5deg); } }
.modal-mask { position: fixed; inset: 0; z-index: 75; background: rgba(43, 38, 34, .32); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .22s; }
.modal-mask.out { animation: fadeOut .22s forwards; }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wob-lg); box-shadow: var(--pop-lg); padding: 22px 24px 18px; animation: zoomIn .4s var(--spring); }
.modal-mask.out .modal { animation: drawerOut .22s var(--ease) forwards; }
.modal-head { display: flex; align-items: center; }
.modal-head h2 { margin: 0; font: 400 26px/1.3 var(--hand); }
.modal-head .x { margin-left: auto; }
.modal-lead { margin: 6px 0 16px; color: var(--ink-2); font-size: 13px; }
.field { display: block; margin-bottom: 12px; }
.field > span:first-child { display: block; font: 400 15px/1.6 var(--hand); margin-bottom: 4px; }
.field input { width: 100%; height: 42px; border: 2px solid var(--ink); border-radius: var(--wob); padding: 0 12px; font: 14px var(--font); background: #fff; outline: none; transition: box-shadow .2s; }
.field input:focus { box-shadow: 3px 4px 0 var(--yellow); }
.pw { position: relative; display: block; }
.pw input { padding-right: 60px; }
.eye { position: absolute; right: 6px; top: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--paper-2); font-size: 12px; }
.switch { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { flex: none; width: 44px; height: 26px; border: 2px solid var(--ink); border-radius: 999px; background: #E4D9C4; position: relative; transition: background .25s; margin-top: 2px; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; transition: transform .35s var(--spring); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--yellow); }
.switch span { font-size: 14px; }
.switch small { display: block; color: var(--muted); font-size: 12px; }
.uses { border: 1.5px dashed var(--line); border-radius: 12px; padding: 8px 12px; background: var(--card); font-size: 12.8px; }
.uses summary { cursor: pointer; font: 400 15px/1.6 var(--hand); }
.uses ul { margin: 6px 0 2px; padding-left: 18px; color: var(--ink-2); }
.uses li { margin: 4px 0; }
.uses[open] ul { animation: ansIn .35s var(--ease); }
.modal-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.test-msg { flex: 1; font-size: 12.5px; color: var(--muted); min-width: 0; }
.test-msg.ok { color: var(--green-deep); } .test-msg.bad { color: var(--bad); }
.clear-link { margin-top: 10px; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.recs-head .mode.kw { background: var(--yellow-soft); }
.recs-head .mode a, .hint a { color: var(--green-deep); }

/* markdown tables (card notes) */
.md-table { overflow-x: auto; margin: 8px 0 10px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.md-table th, .md-table td { padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line); }
.md-table th { font: 400 14px/1.4 var(--hand); background: var(--yellow-soft); border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.md-table tr:last-child td { border-bottom: 0; }
.md-table td + td, .md-table th + th { border-left: 1px dashed var(--line); }




/* online mode: data figures run locally */
.make.local-only p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.make.local-only ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.make.local-only ol li { margin: 3px 0; }
.make.local-only code { font-family: var(--mono); font-size: 12px; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }

/* ------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { grid-template-columns: 1fr; } .job-side { position: static; }
  .hero { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-left: auto; margin-right: auto; } .hero .cta, .hero .hero-note { justify-content: center; }
  .hero-art { max-width: 720px; margin: 0 auto; }
  .kind-panel { grid-template-columns: 1fr; text-align: center; } .kind-panel .intro ul { display: inline-block; text-align: left; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .step:nth-child(3)::before { display: none; }
  .why { grid-template-columns: 1fr; }
  .final .box { grid-template-columns: 1fr; text-align: center; padding: 26px; } .final img { margin: -10px auto; }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; top: 0; inset: auto; width: auto; height: auto; flex-direction: row; align-items: center; padding: 8px 16px; border-right: 0; border-bottom: 2px solid var(--ink); background: var(--paper); }
  .brand { padding: 0; } .brand img { width: 30px; height: 30px; } .brand small { display: none; }
  .new-task { display: none; } .side-foot { border: 0; padding: 0; margin-left: 6px; } .model-btn span { display: none; }
  .nav { flex-direction: row; margin-left: auto; gap: 2px; }
  .nav a { height: 34px; padding: 0 9px; font-size: 13px; } .nav a[data-nav="home"] { display: none; } .nav svg { display: none; }
  .main { margin-left: 0; }
  .plaza { padding: 20px 16px 230px; }
  .page-head { flex-wrap: wrap; } .search { width: 100%; margin-left: 0; }
  .tabs { gap: 22px; }
  .grid { grid-template-columns: 1fr; }
  .composer-wrap { left: 0; padding: 24px 12px 12px; }
  .composer .ex { display: none; }
  .job { padding: 16px; }
  .working { grid-template-columns: 1fr; text-align: center; } .working > img { margin: 0 auto; width: 160px; height: 160px; } .working h3 { justify-content: center; } .stepper { display: inline-flex; text-align: left; }
  .searching { flex-direction: column; text-align: center; } .searching .bar { margin: 12px auto 0; }
  .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; }
  .drawer { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; border-width: 0 0 0 2px; }
  .lp-nav .inner { padding: 12px 16px; gap: 12px; } .lp-links { display: none; } .lp-nav .btn-y { margin-left: auto; }
  .hero { padding: 12px 16px 30px; } .sticky-note, .hand-note { display: none; }
  .stats { padding: 0 16px; } .stats .row { grid-template-columns: 1fr; } .stats a + a { border-left: 0; border-top: 2px dashed var(--line); }
  .sec { padding: 80px 16px 0; }
  .kind-panel { padding: 22px 16px; } .mini-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; } .step::before { display: none; }
  .final { padding: 0 16px; } .final h2 { font-size: 28px; } .lp-foot { padding: 40px 16px; } .lp-foot .r { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
