:root{--bg: #ffffff;--fg: #09090b;--muted: #f4f4f5;--muted-fg: #71717a;--border: #e4e4e7;--input: #e4e4e7;--ring: #18181b;--primary: #18181b;--primary-fg: #fafafa;--secondary: #f4f4f5;--secondary-fg: #18181b;--accent: #f4f4f5;--destructive: #dc2626;--destructive-fg: #fafafa;--destructive-text: #dc2626;--success: #16a34a;--warning: #b45309;--radius: 8px;color-scheme:light}@media (prefers-color-scheme: dark){:root:not([data-theme=light]):not([data-theme=red]){--bg: #09090b;--fg: #fafafa;--muted: #27272a;--muted-fg: #a1a1aa;--border: #27272a;--input: #27272a;--ring: #d4d4d8;--primary: #fafafa;--primary-fg: #18181b;--secondary: #27272a;--secondary-fg: #fafafa;--accent: #27272a;--destructive: #dc2626;--destructive-fg: #fafafa;--destructive-text: #f87171;--success: #4ade80;--warning: #fbbf24;color-scheme:dark}}:root[data-theme=red]{--bg: #000;--fg: #d12020;--muted: #1c0606;--muted-fg: #8a1a1a;--border: #3a0b0b;--input: #3a0b0b;--ring: #b01818;--primary: #b01818;--primary-fg: #000;--secondary: #1c0606;--secondary-fg: #d12020;--accent: #1c0606;--destructive: #8a1010;--destructive-fg: #000;--destructive-text: #ff3030;--success: #d12020;--warning: #d12020;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--fg)}body{font:15px/1.5 -apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Pretendard,Noto Sans KR,system-ui,sans-serif;-webkit-text-size-adjust:100%;word-break:keep-all;overflow-wrap:anywhere}button,input,textarea,select{font:inherit;color:inherit}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.muted{color:var(--muted-fg)}.small{font-size:13px;line-height:19px}.bold{font-weight:600}.row{display:flex;align-items:center;gap:8px}.wrap{display:flex;flex-wrap:wrap;gap:8px}.col{display:flex;flex-direction:column;gap:10px}.grow{flex:1;min-width:0}.sel{user-select:text;-webkit-user-select:text}pre.mono{white-space:pre-wrap;word-break:break-all;margin:0;font-size:12px;line-height:17px}.app{min-height:100dvh}.header{position:sticky;top:0;z-index:5;background:var(--bg);border-bottom:1px solid var(--border);padding:calc(env(safe-area-inset-top) + 8px) 12px 8px;display:flex;align-items:center;gap:4px;min-height:56px}.header h1{font-size:19px;line-height:26px;letter-spacing:-.3px;font-weight:600;margin:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content{padding:16px 16px calc(env(safe-area-inset-bottom) + 24px);display:flex;flex-direction:column;gap:14px;max-width:720px;margin:0 auto}.card{border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--bg)}.card>h2{font-size:16px;line-height:22px;letter-spacing:-.2px;margin:0;font-weight:600;display:flex;align-items:center;gap:8px}.card.click{cursor:pointer;transition:background .15s}.card.click:active{background:var(--accent)}.sep{height:1px;background:var(--border)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 16px;border-radius:var(--radius);border:1px solid transparent;background:var(--primary);color:var(--primary-fg);font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}.btn:active{opacity:.88}.btn:disabled{opacity:.5;pointer-events:none}.btn.outline{background:var(--bg);color:var(--fg);border-color:var(--input)}.btn.outline:active,.btn.ghost:active{background:var(--accent);opacity:1}.btn.ghost{background:transparent;color:var(--fg)}.btn.secondary{background:var(--secondary);color:var(--secondary-fg)}.btn.destructive{background:var(--destructive);color:var(--destructive-fg)}.btn.icon{padding:0;width:40px}.btn svg{width:16px;height:16px;flex:none}.btn.icon svg{width:20px;height:20px}.field{display:flex;flex-direction:column;gap:6px}.field>label{font-size:14px;font-weight:500}.input{display:flex;align-items:center;border:1px solid var(--input);border-radius:var(--radius);background:var(--bg);min-height:40px}.input:focus-within{outline:2px solid color-mix(in srgb,var(--ring) 70%,transparent);outline-offset:-1px}.input input,.input textarea{flex:1;border:0;outline:0;background:transparent;padding:9px 12px;font-size:16px;min-width:0;resize:vertical}.input textarea{min-height:110px;line-height:22px}.input textarea.mono{font-size:13px;line-height:18px}.check{display:flex;align-items:center;gap:12px;cursor:pointer;padding:6px 0;user-select:none}.check .box{width:18px;height:18px;border-radius:4px;border:1px solid var(--muted-fg);display:grid;place-items:center;flex:none}.check .box.on{background:var(--primary);border-color:var(--primary);color:var(--primary-fg)}.check .box svg{width:14px;height:14px}.toggle{width:44px;height:24px;border-radius:999px;background:var(--input);padding:2px;border:0;cursor:pointer;flex:none;display:flex}.toggle.on{background:var(--primary);justify-content:flex-end}.toggle span{width:20px;height:20px;border-radius:50%;background:var(--bg);box-shadow:0 1px 2px #0000004d}.seg{display:flex;gap:2px;padding:4px;background:var(--muted);border-radius:10px;overflow-x:auto;scrollbar-width:none}.seg::-webkit-scrollbar{display:none}.seg button{flex:1;border:0;background:transparent;color:var(--muted-fg);padding:7px 12px;border-radius:7px;font-size:14px;font-weight:500;white-space:nowrap;cursor:pointer}.seg.scroll button{flex:none}.seg button.on{background:var(--bg);color:var(--fg);box-shadow:0 1px 2px #00000026}.progress{height:8px;background:var(--muted);border-radius:999px;overflow:hidden}.progress>div{height:100%;background:var(--primary);border-radius:999px;transition:width .2s}input[type=range]{width:100%;accent-color:var(--primary)}.status{display:flex;gap:8px;align-items:flex-start;font-size:14px;font-weight:600}.status svg{width:16px;height:16px;flex:none;margin-top:2px}.t-success{color:var(--success)}.t-destructive{color:var(--destructive-text)}.t-warning{color:var(--warning)}.t-muted{color:var(--muted-fg)}.note{font-size:13px;line-height:19px;color:var(--muted-fg);margin:0}.note.warn{color:var(--destructive-text);display:flex;gap:6px}.note.warn svg{width:14px;height:14px;flex:none;margin-top:2px}.badge{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--border);border-radius:999px;padding:2px 10px;font-size:12px;font-weight:500}.badge svg{width:12px;height:12px}.big-label{font-size:13px;font-weight:500;color:var(--muted-fg)}.big-value{font-size:19px;line-height:26px}.home-head{padding:calc(env(safe-area-inset-top) + 20px) 20px 12px;display:flex;align-items:center;gap:12px;max-width:720px;margin:0 auto}.home-head h1{margin:0;font-size:22px;letter-spacing:-.4px}.night{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:var(--radius);padding:6px 10px;font-size:13px;font-weight:500;cursor:pointer}.night svg{width:16px;height:16px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;padding:4px 16px 16px;max-width:720px;margin:0 auto}.tile{border:1px solid var(--border);border-radius:12px;padding:14px;height:124px;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;background:var(--bg);text-align:left}.tile:active{background:var(--accent)}.tile .ic{width:36px;height:36px;border:1px solid var(--border);border-radius:var(--radius);display:grid;place-items:center;background:color-mix(in srgb,var(--muted) 40%,transparent)}.tile .ic svg{width:18px;height:18px}.tile b{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile small{display:block;font-size:13px;color:var(--muted-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.foot{display:flex;gap:6px;align-items:center;padding:0 20px calc(env(safe-area-inset-bottom) + 20px);max-width:720px;margin:0 auto}.foot svg{width:14px;height:14px}.overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}.overlay small{color:#ffffff73;padding:32px}.dialog-back{position:fixed;inset:0;z-index:40;background:#0009;display:grid;place-items:center;padding:16px}.dialog{width:100%;max-width:420px;background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:12px}.dialog h3{margin:0;font-size:16px}.dialog .actions{display:flex;justify-content:flex-end;gap:8px}.toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(env(safe-area-inset-bottom) + 24px);z-index:60;max-width:calc(100% - 32px);background:var(--fg);color:var(--bg);padding:10px 16px;border-radius:10px;font-size:14px;box-shadow:0 8px 24px #00000040}.qr{background:#fff;border-radius:8px;padding:8px}.qr svg,.qr img{width:100%;height:auto;display:block}canvas.full,img.full{width:100%;height:auto;border-radius:8px;border:1px solid var(--border);image-rendering:pixelated}.spin{width:16px;height:16px;border:2px solid var(--muted);border-top-color:var(--muted-fg);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.kv{display:flex;justify-content:space-between;gap:12px}.kv b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}iframe.fa{border:0;width:100%;height:calc(100dvh - 57px - env(safe-area-inset-top));display:block;background:var(--bg)}
