:root{--bg: #071426;--surface: #10233c;--surface-high: #18304f;--line: #2c4a6e;--text: #f3f7fc;--muted: #9bb0c9;--accent: #2f7bff;--accent-soft: #16325c;--ok: #3ddc97;--bad: #ff6b6b;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg);color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;height:100%;min-height:100%;background:var(--bg);overflow:hidden}body{overscroll-behavior:none;position:fixed;top:0;right:0;bottom:0;left:0;width:100%}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}.app-shell{height:100dvh;max-height:100dvh;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}.app-shell.fixed-shell{height:100dvh;max-height:100dvh;overflow:hidden}.tab-body,.tab-page,.fixed-page{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.page{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:12px 16px calc(96px + var(--safe-bottom))}.page.scroll-area{overflow:auto}.page.no-nav{padding-bottom:calc(24px + var(--safe-bottom))}.topbar{flex-shrink:0;display:flex;align-items:center;justify-content:center;min-height:56px;padding:calc(8px + var(--safe-top)) 16px 8px;position:relative;z-index:10;background:#071426f5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.topbar.compact{min-height:52px}.topbar h1{margin:0;font-size:24px;font-weight:700}.topbar .side{position:absolute;left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none}.topbar .side>*{pointer-events:auto}.icon-btn{border:0;background:transparent;color:var(--text);width:44px;height:44px;border-radius:12px;display:grid;place-items:center;cursor:pointer}.icon-btn:active{background:var(--surface-high)}.mark{width:64px;height:64px;border-radius:18px;background:var(--accent);display:grid;place-items:center;box-shadow:0 10px 24px #2f7bff66;font-size:28px}.eyebrow{color:var(--accent);font-weight:700;letter-spacing:.4px;font-size:15px;margin:0 0 8px}.hero{font-size:40px;font-weight:700;line-height:1.1;margin:0 0 8px}.muted{color:var(--muted)}.bad{color:var(--bad)}.ok{color:var(--ok);font-weight:700}.stack{display:flex;flex-direction:column;gap:12px}.field{width:100%;border:1px solid var(--line);background:var(--surface-high);color:var(--text);border-radius:14px;padding:18px 20px;outline:none}.field:focus{border-color:var(--accent)}.field::placeholder{color:var(--muted)}.label{display:block;color:var(--muted);margin-bottom:6px;font-size:14px}.btn{border:0;border-radius:16px;min-height:56px;padding:0 18px;background:var(--accent);color:#fff;font-weight:700;font-size:18px;cursor:pointer}.btn:disabled{opacity:.45;cursor:default}.btn.ghost{background:transparent;color:var(--accent)}.btn.block{width:100%}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px}.card-title{font-weight:700;font-size:18px;margin:0 0 4px}.list-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 12px calc(10px + var(--safe-bottom));background:var(--surface);box-shadow:0 -8px 24px #0006}.nav button{border:0;background:transparent;color:var(--muted);border-radius:16px;padding:8px 10px;font-weight:700;cursor:pointer}.nav button.active{background:var(--accent);color:#fff}.nav .label{display:block;margin:4px 0 0;font-size:13px;color:inherit}.fab{position:fixed;right:16px;bottom:calc(88px + var(--safe-bottom));border:0;border-radius:999px;background:var(--accent);color:#fff;font-weight:700;padding:14px 18px;box-shadow:0 10px 24px #2f7bff55;cursor:pointer;z-index:5}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.thumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--surface-high)}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.thumb .check,.check{position:absolute;top:6px;right:6px;color:var(--ok);font-size:22px;text-shadow:0 1px 2px #000}.camera-body{flex:1;min-height:0;display:flex;flex-direction:column;padding:8px 16px calc(12px + var(--safe-bottom));gap:8px}.camera-hint{margin:0;flex-shrink:0;font-size:14px}.camera-view{position:relative;border-radius:18px;overflow:hidden;background:#000;aspect-ratio:3 / 4;flex-shrink:1}.camera-view.fill{flex:1;min-height:0;aspect-ratio:auto}.camera-view video,.camera-view img{width:100%;height:100%;object-fit:cover;display:block}.camera-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:4px;flex-shrink:0;padding-bottom:72px}.shot{width:72px;height:72px;border-radius:50%;border:4px solid #fff;background:var(--accent);cursor:pointer}.empty{text-align:center;color:var(--muted);padding:48px 24px;line-height:1.4}.section-title{font-size:22px;font-weight:700;margin:8px 0 12px}.radio-row,.check-row{display:flex;align-items:center;gap:10px;padding:10px 0;cursor:pointer}.center-wrap{max-width:640px;margin:0 auto;width:100%}.photo-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#000c;display:grid;place-items:center;padding:20px}.photo-modal-card{width:min(520px,100%);max-height:min(90dvh,900px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px}.photo-modal-card img{width:100%;max-height:55dvh;object-fit:contain;display:block;border-radius:12px;background:#000}.editor-shell{height:100dvh;max-height:100dvh;overflow:hidden}.editor-top{flex-shrink:0}.editor-stage{flex:1;min-height:0;display:grid;place-items:center;padding:8px 12px;overflow:hidden;touch-action:none;background:#000}.editor-canvas{touch-action:none;max-width:100%;max-height:100%;border-radius:8px;cursor:crosshair}.editor-controls{flex-shrink:0;padding:10px 14px calc(14px + var(--safe-bottom));background:var(--surface);border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}.tool-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tool-btn{border:1px solid var(--line);background:var(--surface-high);color:var(--text);border-radius:12px;min-height:40px;padding:0 12px;font-weight:700;font-size:14px;cursor:pointer}.tool-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.swatch{width:32px;height:32px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0}.swatch.active{border-color:#fff;box-shadow:0 0 0 2px var(--accent)}@media(min-width:768px){.app-shell{max-width:920px;margin:0 auto}.nav{left:50%;transform:translate(-50%);width:min(920px,100%);border-radius:20px 20px 0 0}}
