:root{--bg:#1e1930;--phone:#2e2748;--card:#3a3260;--cream:#f3d7b0;--cream-deep:#e8c48a;--ink:#2a2140;--text:#f6f1e8;--peach:#e6a15a;--danger:#8c2f3a;--radius:32px;color:var(--text);background:var(--bg);font-family:Nunito,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at top, #3a3260 0%, transparent 42%), var(--bg);min-height:100vh;margin:0}button,input{font:inherit}.boot,.stage{min-height:100vh}.stage{place-items:center;padding:32px 16px;display:grid}.phone{background:var(--phone);border-radius:40px;width:min(400px,100%);padding:28px 22px 22px;box-shadow:0 28px 60px #00000059}.shell{flex-direction:column;min-height:100vh;display:flex}.topbar{background:var(--phone);border-bottom:1px solid color-mix(in srgb, var(--cream) 28%, transparent);z-index:1;justify-content:space-between;align-items:center;gap:12px;height:41px;padding:0 20px;display:flex;position:relative;box-shadow:0 8px 24px #00000040}.topbar .ghost{border-radius:10px;padding:2px 12px;font-size:14px;line-height:1.15}.user-menu{position:relative}.user-menu-pop{background:var(--card);border-radius:12px;min-width:120px;padding:6px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 28px #00000059}.user-menu-pop button{background:var(--cream);border-radius:10px;width:100%;padding:8px 12px;font-size:14px}.workspace{flex:1;min-height:0;display:flex}.sidebar{background:var(--phone);flex-direction:column;flex:none;gap:8px;width:180px;padding:16px 12px;display:flex}a.side-item{background:var(--card);color:var(--text);border-radius:14px;margin:0;padding:12px 14px;font-weight:700;text-decoration:none;display:block}a.side-item.active{background:var(--cream);color:var(--ink)}.canvas{flex:1;min-width:0;padding:20px;overflow:auto}.top-actions{align-items:center;gap:8px;display:flex}a.icon-btn.active{background:var(--peach)}.done-card{background:var(--card);width:20%;min-width:160px;color:var(--cream);border-radius:18px;gap:8px;padding:16px;display:grid}a.done-card{text-decoration:none}.done-page{gap:16px;min-width:0;display:grid}.done-page-label{color:var(--cream);margin:0;font-weight:800}.day-chart{width:100%;height:auto;color:var(--peach);background:var(--card);border-radius:18px;display:block}.day-chart text{fill:var(--cream);pointer-events:none;font-size:12px;font-weight:700}.axis-split{stroke:var(--cream);stroke-width:1px;opacity:.55;pointer-events:none}.day-hit{fill:#0000;cursor:pointer}.day-hit.is-on{fill:color-mix(in srgb, var(--peach) 22%, transparent)}.day-hit:focus{stroke:var(--cream);stroke-width:2px;outline:none}.day-point{fill:var(--peach);pointer-events:none}.day-point.is-on{fill:var(--cream)}.settings-form{gap:14px;width:min(360px,100%);display:grid}.settings-form button{justify-self:start}.settings-card{background:var(--card);color:var(--cream);border-radius:18px;gap:10px;padding:16px;display:grid}.settings-card h2{margin:0;font-size:16px;font-weight:800}.settings-days{justify-content:space-between;gap:12px;display:flex}.settings-card input[type=range]{width:100%;height:22px;accent-color:var(--peach);cursor:pointer;background:0 0;border:0;border-radius:999px;margin:0;padding:0}.done-card-label,.done-card-count{margin:0}.done-card-label{font-size:13px;font-weight:800}.done-card-count{font-size:40px;font-weight:800;line-height:1}.spark{width:100%;height:48px;color:var(--peach);filter:drop-shadow(0 0 6px color-mix(in srgb, var(--peach) 75%, white));overflow:visible}.hooks-page{gap:16px;min-width:0;display:grid}.hooks-page>*{min-width:0}.hook-url{background:var(--phone);border-radius:18px;align-items:center;gap:12px;padding:10px;display:flex}.hook-url-label{color:var(--cream);letter-spacing:.04em;flex:none;font-size:12px;font-weight:800}.hook-url code{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:14px;overflow:hidden}.icon-btn{background:var(--cream);width:36px;height:36px;color:var(--ink);border-radius:12px;flex:none;place-items:center;padding:0;display:grid}.icon-btn svg{width:18px;height:18px}.top-actions .icon-btn{border-radius:8.4px;width:25.2px;height:25.2px}.top-actions .icon-btn svg{width:12.6px;height:12.6px}a.icon-btn{text-decoration:none}.icon-btn.is-busy svg{animation:.7s linear infinite hook-spin}.day-bar{background:var(--phone);border-radius:18px;align-items:center;gap:12px;padding:10px;display:flex}.day-pager{align-items:center;gap:8px;display:flex}.day-pager-label{text-align:center;min-width:7.5rem;color:var(--cream);font-weight:800}.day-bar-title{color:var(--cream);letter-spacing:.04em;flex:1;font-size:12px;font-weight:800}.day-pager .icon-btn:disabled{cursor:default;opacity:.45}@keyframes hook-spin{to{transform:rotate(360deg)}}.hint{color:var(--cream);margin:0}.table-wrap{background:var(--phone);border-radius:18px;overflow:auto}.hooks{border-collapse:collapse;width:100%;font-size:14px}.hooks th,.hooks td{text-align:left;vertical-align:top;border-bottom:1px solid color-mix(in srgb, var(--cream) 18%, transparent);padding:12px 14px}.hooks th{color:var(--cream);letter-spacing:.04em;font-size:12px}.hooks a{color:var(--cream-deep)}.lesson-list{gap:4px;display:grid}.mark{color:var(--cream);letter-spacing:.04em;margin:0;font-weight:800;text-decoration:none}a.mark{text-decoration:none}h1{margin:8px 0 18px;font-size:32px}.cream{background:var(--cream);color:var(--ink);border-radius:28px;gap:14px;padding:22px;display:grid}label{gap:6px;font-size:14px;font-weight:700;display:grid}input{width:100%;color:var(--ink);background:#fff6e8;border:0;border-radius:16px;padding:14px 16px}button{background:var(--peach);color:var(--ink);cursor:pointer;border:0;border-radius:18px;padding:14px 18px;font-weight:800}button:disabled{opacity:.7;cursor:wait}.error{color:var(--danger);margin:0;font-weight:700}.ghost{background:var(--cream)}@media (width<=639px){.stage{padding:16px 12px}.phone{border-radius:28px;padding:20px 16px 16px}h1{font-size:28px}.topbar{height:auto;min-height:48px;padding:8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left))}.topbar .ghost{text-overflow:ellipsis;white-space:nowrap;max-width:42vw;min-height:40px;overflow:hidden}.workspace{flex-direction:column}.sidebar{flex-wrap:wrap;gap:8px;width:100%;padding:10px 12px;display:flex}a.side-item{text-align:center;flex:auto}.canvas{padding:12px}.done-card{width:100%}.icon-btn{width:40px;height:40px}.top-actions .icon-btn{width:28px;height:28px}.hook-url{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"refresh label copy logs""url url url url";display:grid}.hook-url>:first-child{grid-area:refresh}.hook-url>:nth-child(2){grid-area:label}.hook-url>:nth-child(3){grid-area:url}.hook-url>:nth-child(4){grid-area:copy}.hook-url>:nth-child(5){grid-area:logs}.hook-url-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.hook-url code{white-space:normal;text-overflow:unset;overflow-wrap:anywhere;overflow:visible}.day-bar{flex-wrap:wrap}.day-pager{flex:100%;order:1;justify-content:center}.day-bar-title{min-width:0}.hooks thead{display:none}.hooks,.hooks tbody,.hooks tr{width:100%;display:block}.hooks tr{border-bottom:1px solid color-mix(in srgb, var(--cream) 18%, transparent);padding:6px 0}.hooks td{overflow-wrap:anywhere;border-bottom:0;grid-template-columns:7.2rem minmax(0,1fr);align-items:start;gap:8px;display:grid}.hooks td:before{content:attr(data-label);color:var(--cream);font-size:12px;font-weight:800}.table-wrap{overflow:visible}}@media (width>=1024px){.sidebar{width:220px}.canvas{padding:24px}}
