:root{--paper:#f6f6f4;--surface:#fff;--ink:#17181a;--muted:#6b6f76;--line:#e4e5e7;--fill:#e9eaec;--accent:#0f766e;--on-accent:#fff;--right:#0f766e;--wrong:#b42318;--part:#b45309;--sans:"Manrope",system-ui,-apple-system,sans-serif;--tab-h:78px;--side-w:232px}@media (prefers-color-scheme:dark){:root{--paper:#131514;--surface:#1c1f1d;--ink:#eef0ee;--muted:#9aa19c;--line:#2c312e;--fill:#262a28;--accent:#34a98a;--on-accent:#0b1210;--right:#34a98a;--wrong:#e2685f;--part:#dca44b}}*{box-sizing:border-box}html,body{height:100%}html{scrollbar-gutter:stable}body{background:var(--paper);color:var(--ink);font:15px/1.5 var(--sans);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;margin:0}h1,h2,h3{letter-spacing:-.3px;margin:0;font-weight:800;line-height:1.2}h1{letter-spacing:-.5px;font-size:26px}h2{font-size:17px}h3{font-size:15px}p{margin:0}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:12px}.strong{font-weight:700}.heavy{font-weight:800}.section-label{color:var(--muted);font-size:13px;font-weight:700}.app{flex-direction:column;min-height:100%;display:flex}.content{width:100%;max-width:520px;padding:0 20px calc(var(--tab-h) + 24px);flex:1;margin:0 auto}.content.wide{max-width:1120px}.topbar{justify-content:space-between;align-items:center;gap:12px;padding:20px 0 12px;display:flex}.topbar>.rel{margin-left:auto}.brand{letter-spacing:-.3px;align-items:center;gap:10px;font-size:17px;font-weight:800;display:flex}.brand .mark{background:var(--accent);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.brand .mark svg{width:20px;height:20px;stroke:var(--on-accent)}.page-head{justify-content:space-between;align-items:center;gap:12px;padding:8px 0 16px;display:flex}.page-head .sub{color:var(--muted);margin-top:2px;font-size:13px}.tabbar{z-index:20;grid-template-columns:repeat(var(--tabs,4),minmax(0,1fr));padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);display:grid;position:fixed;bottom:0;left:0;right:0}.tabbar a{color:var(--muted);border-radius:10px;flex-direction:column;align-items:center;gap:4px;padding:6px 0;font-size:11px;font-weight:600;display:flex}.tabbar a[aria-current=page]{color:var(--accent);font-weight:700}.tabbar svg{width:24px;height:24px}.sidebar{display:none}@media (width>=900px){.app{flex-direction:row}.sidebar{width:var(--side-w);background:var(--surface);border-right:1px solid var(--line);flex-direction:column;flex-shrink:0;gap:24px;height:100vh;padding:24px 16px;display:flex;position:sticky;top:0}.sidebar nav{flex-direction:column;gap:2px;display:flex}.sidebar nav a{height:44px;color:var(--muted);border-radius:10px;align-items:center;gap:12px;padding:0 12px;font-size:14px;font-weight:600;display:flex}.sidebar nav a[aria-current=page]{background:var(--paper);color:var(--ink);font-weight:700}.sidebar nav svg{width:20px;height:20px}.sidebar .foot{flex-direction:column;gap:8px;margin-top:auto;display:flex}.tabbar{display:none}.content{max-width:1120px;padding:0 48px 48px}.content .topbar .brand{display:none}.topbar{padding-top:32px}}.btn{border:1px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:8px;height:44px;padding:0 18px;font-size:15px;font-weight:700;display:inline-flex}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn-danger{color:var(--wrong)}.btn-sm{border-radius:10px;height:36px;padding:0 12px;font-size:13px}.btn-lg{border-radius:14px;height:52px;font-size:16px;font-weight:800}.btn-full{width:100%}.btn-pill{border-radius:999px}.btn-icon{border-radius:20px;width:40px;height:40px;padding:0}.btn-icon svg,.btn svg{width:18px;height:18px}.btn-quiet{color:var(--accent);background:0 0;border-color:#0000;height:auto;padding:0 6px}.btn-text{height:auto;color:var(--accent);background:0 0;border:0;padding:0;font-weight:700}.chip{border:1px solid var(--line);background:var(--surface);border-radius:20px;align-items:center;gap:8px;height:40px;padding:0 10px 0 4px;font-size:14px;font-weight:700;display:inline-flex}.avatar{background:var(--accent);width:32px;height:32px;color:var(--on-accent);border-radius:16px;flex-shrink:0;justify-content:center;align-items:center;font-size:13px;font-weight:800;display:inline-flex}.avatar.lg{border-radius:22px;width:44px;height:44px;font-size:16px}.avatar.grey{background:var(--fill);color:var(--ink)}.chip svg{width:14px;height:14px;stroke:var(--muted)}.field{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.field label,.label{color:var(--muted);font-size:13px;font-weight:600}input,select,textarea{font:inherit;border:1px solid var(--line);background:var(--surface);width:100%;height:44px;color:var(--ink);border-radius:12px;padding:0 14px}textarea{height:auto;min-height:96px;padding:12px 14px;line-height:1.5}input[type=number]{width:80px}input[type=radio],input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6F76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:36px}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.spread{justify-content:space-between;align-items:center;gap:12px;display:flex}.stack{flex-direction:column;gap:12px;display:flex}.gap-lg{gap:20px}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px}.card.tight{padding:0;overflow:hidden}.list{background:var(--surface);border:1px solid var(--line);border-radius:16px;flex-direction:column;display:flex;overflow:hidden}.list-row{border-bottom:1px solid var(--line);text-align:left;background:0 0;border-top:0;border-left:0;border-right:0;align-items:center;gap:12px;width:100%;padding:14px 16px;display:flex}.list-row:last-child{border-bottom:0}.list-row .grow{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.list-row .title{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;overflow:hidden}.list-row .meta{color:var(--muted);font-size:12px}.list-row .score{font-size:15px;font-weight:800}.list-row.clickable{cursor:pointer}.list-row.clickable:hover{background:var(--paper)}.banner{border:1px solid #0000;border-radius:12px;margin-bottom:14px;padding:12px 14px;font-size:14px}.banner-error{background:color-mix(in srgb,var(--wrong) 10%,var(--surface));border-color:color-mix(in srgb,var(--wrong) 35%,var(--surface));color:var(--wrong)}.banner-good{background:color-mix(in srgb,var(--right) 10%,var(--surface));border-color:color-mix(in srgb,var(--right) 35%,var(--surface));color:var(--right)}.banner-notice{background:color-mix(in srgb,var(--part) 10%,var(--surface));border-color:color-mix(in srgb,var(--part) 35%,var(--surface));color:var(--part)}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:12px;padding:40px 20px;display:flex}.empty .icon{background:var(--fill);border-radius:16px;justify-content:center;align-items:center;width:56px;height:56px;display:flex}.empty .icon svg{width:26px;height:26px;stroke:var(--muted)}.empty h2{color:var(--ink)}.bar{background:var(--fill);border-radius:3px;height:6px;overflow:hidden}.bar>i{background:var(--accent);border-radius:3px;height:100%;display:block}.bar.thick{height:8px}.bar>i.warn{background:var(--wrong)}.bar>i.part{background:var(--part)}.bar-rows{flex-direction:column;gap:14px;display:flex}.bar-row{flex-direction:column;gap:6px;display:flex}.bar-row .t{justify-content:space-between;font-size:13px;display:flex}.bar-row .t b{font-weight:600}.bar-row .t span{color:var(--muted)}.narrow{max-width:720px}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:4px;padding:14px;display:flex}.stat .n{letter-spacing:-.3px;font-size:22px;font-weight:800}.stat .l{color:var(--muted);font-size:12px}.cover{background:var(--fill);border:1px solid var(--line);color:var(--muted);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;font-size:11px;font-weight:700;display:flex;overflow:hidden}.cover img{object-fit:cover;width:100%;height:100%;display:block}.cover.sm{width:40px;height:56px}.cover.md{border-radius:10px;width:72px;height:104px}.cover.lg{border-radius:10px;width:96px;height:140px;font-size:14px}.shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 14px;display:grid}@media (width>=600px){.shelf-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=900px){.shelf-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 16px}}.shelf-tile{text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;gap:8px;padding:0;display:flex}.shelf-tile .cover{aspect-ratio:2/3;border-radius:10px;width:100%;height:auto}.shelf-tile .t{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;font-weight:700;line-height:1.25;display:-webkit-box;overflow:hidden}.shelf-tile .m{color:var(--muted);font-size:11px}.shelf-add{aspect-ratio:2/3;border:2px dashed var(--line);color:var(--muted);cursor:pointer;background:0 0;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:6px;font-size:12px;font-weight:700;display:flex}.shelf-add svg{width:22px;height:22px}.scrim{z-index:40;background:#17181a59;position:fixed;inset:0}.sheet{z-index:41;background:var(--surface);max-width:520px;padding:12px 16px calc(24px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;max-height:88vh;margin:0 auto;position:fixed;bottom:0;left:0;right:0;overflow:auto}@media (width>=900px){.sheet{border-radius:20px;width:480px;padding-bottom:24px;inset:50% auto auto 50%;transform:translate(-50%,-50%)}}.sheet .grab{background:var(--line);border-radius:2px;width:40px;height:4px;margin:0 auto 10px}@media (width>=900px){.sheet .grab{display:none}}.sheet-title{flex-direction:column;gap:2px;padding:4px 8px 12px;display:flex}.menu-item{text-align:left;background:0 0;border:0;border-radius:12px;align-items:center;gap:14px;width:100%;height:52px;padding:0 8px;font-size:15px;font-weight:600;display:flex}.menu-item:hover{background:var(--paper)}.menu-item svg{flex-shrink:0;width:22px;height:22px}.menu-item .end{color:var(--muted);margin-left:auto;font-size:12px;font-weight:600}.menu-item.danger{color:var(--wrong)}.popover{z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:2px;min-width:220px;padding:6px;display:flex;position:absolute;top:calc(100% + 8px);right:0}.popover.up{top:auto;bottom:calc(100% + 8px)}.popover .menu-item{height:44px;font-size:14px}.rel{position:relative}.test{max-width:520px;min-height:100vh;padding:20px 20px calc(24px + env(safe-area-inset-bottom));flex-direction:column;margin:0 auto;display:flex}@media (width>=900px){.test{padding-top:48px}}.test-head{align-items:center;gap:14px;margin-bottom:24px;display:flex}.test-head .prog{flex-direction:column;flex:1;gap:6px;display:flex}.test-head .prog .t{color:var(--muted);justify-content:space-between;font-size:12px;font-weight:700;display:flex}.qkind{color:var(--muted);margin-bottom:10px;font-size:13px;font-weight:700}.qtext{letter-spacing:-.3px;margin-bottom:20px;font-size:22px;font-weight:800;line-height:1.3}.answers{flex-direction:column;gap:10px;display:flex}.answer{border:1px solid var(--line);background:var(--surface);text-align:left;border-radius:14px;align-items:center;gap:14px;width:100%;min-height:60px;padding:14px 16px;font-size:15px;font-weight:600;line-height:1.35;display:flex}.answer .k{border:1px solid var(--line);width:28px;height:28px;color:var(--muted);border-radius:14px;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;font-weight:800;display:inline-flex}.answer.picked{border:2px solid var(--accent);padding:13px 15px;font-weight:700}.answer.picked .k{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.pairs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.pairs .col{flex-direction:column;gap:10px;display:flex}.pair{border:1px solid var(--line);background:var(--surface);text-align:left;border-radius:14px;align-items:center;gap:8px;width:100%;min-height:64px;padding:12px;font-size:13px;font-weight:600;line-height:1.3;display:flex}.pair.item{font-size:14px;font-weight:700}.pair.open{border-style:dashed}.pair.selected{border:2px solid var(--accent);padding:11px}.pair .k{border:1px solid var(--line);width:22px;height:22px;color:var(--muted);border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;font-size:11px;font-weight:800;display:inline-flex}.pair.done .k{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.pair.selected .k{border:2px solid var(--accent);color:var(--accent)}.test-foot{gap:12px;margin-top:auto;padding-top:20px;display:flex}.test-foot .btn-icon{border-radius:14px;width:52px;height:52px}.fill-in{border-radius:14px;height:56px;font-size:17px;font-weight:600}.ring{justify-content:center;align-items:center;width:148px;height:148px;margin:0 auto;display:flex;position:relative}.ring svg{position:absolute;inset:0}.ring .n{letter-spacing:-1px;font-size:40px;font-weight:800;line-height:1}.ring .p{color:var(--muted);font-size:12px;font-weight:600}.chips{flex-wrap:wrap;gap:8px;display:flex}.pill{background:var(--surface);border:1px solid var(--line);white-space:nowrap;border-radius:16px;align-items:center;gap:6px;height:32px;padding:0 12px;font-size:12px;font-weight:700;display:inline-flex}.pill .dot{background:var(--accent);border-radius:4px;width:8px;height:8px}.pill .dot.part{background:var(--part)}.pill .dot.wrong{background:var(--wrong)}.mark{color:#fff;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;font-size:10px;font-weight:800;display:inline-flex}.mark svg{width:14px;height:14px}.mark.right{background:var(--right)}.mark.wrong{background:var(--wrong)}.mark.part{background:var(--part)}.review-row{border-bottom:1px solid var(--line);text-align:left;background:0 0;border-top:0;border-left:0;border-right:0;align-items:flex-start;gap:12px;width:100%;padding:14px 16px;display:flex}.review-row:last-child{border-bottom:0}.review-row .q{font-size:14px;font-weight:700;line-height:1.3}.review-row .a{color:var(--muted);margin-top:3px;font-size:12px;line-height:1.4}.review-row .a b{color:var(--ink)}.spinner{border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:22px;height:22px;margin:48px auto;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.camera-tile{border:2px dashed var(--line);background:var(--surface);cursor:pointer;min-height:180px;color:var(--muted);text-align:center;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:20px;font-weight:700;display:flex}.camera-tile svg{width:32px;height:32px}.camera-tile input{display:none}.camera-tile.ready{border-style:solid;border-color:var(--accent);color:var(--ink)}.tab-switch{border:1px solid var(--line);border-radius:10px;display:inline-flex;overflow:hidden}.tab-switch button{background:var(--surface);height:36px;color:var(--muted);border:0;padding:0 12px;font-size:13px;font-weight:700}.tab-switch button[aria-pressed=true]{background:var(--ink);color:var(--paper)}table{border-collapse:collapse;width:100%;font-size:14px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:10px 12px}th{color:var(--muted);font-size:12px;font-weight:700}tr:last-child td{border-bottom:0}.usage-tag{letter-spacing:.3px;color:var(--accent);border:1px solid var(--accent);border-radius:6px;padding:2px 6px;font-size:10px;font-weight:800}.auth{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth .box{flex-direction:column;gap:20px;width:100%;max-width:400px;display:flex}.auth .brand{justify-content:center;font-size:20px}.auth .brand .mark{border-radius:13px;width:44px;height:44px}.auth .brand .mark svg{width:26px;height:26px}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation-duration:.01ms!important}}
