:root { --bg:#f5f7fb; --card:#fff; --ink:#18212d; --muted:#64748b; --line:#e2e8f0; --primary:#4f46e5; --claude:#c2410c; --codex:#0f766e; --bad:#c62828; --bad-bg:#fdecec; --ok:#15803d; --ok-bg:#e8f6ec; color-scheme: light; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
a { color:var(--primary); }
.top { display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; background:var(--card); border-bottom:1px solid var(--line); padding:12px 16px; }
.brand { font-weight:800; text-decoration:none; color:var(--ink); }
nav { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
nav a { text-decoration:none; color:var(--ink); }
.inline { display:inline; margin:0; }
.link { background:none; border:0; color:var(--muted); cursor:pointer; font:inherit; padding:0; }
.wrap { max-width:1100px; margin:0 auto; padding:16px; display:flex; flex-direction:column; gap:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px; overflow-wrap:anywhere; }
.narrow { max-width:420px; margin:40px auto; width:100%; }
h1 { font-size:1.3rem; margin:0 0 6px; } h2 { font-size:1.05rem; margin:0 0 10px; }
.muted { color:var(--muted); } .small { font-size:.82rem; }
.alert { background:var(--bad-bg); color:var(--bad); padding:8px 12px; border-radius:8px; }
.form { display:grid; gap:12px; } .form label { display:grid; gap:4px; font-weight:600; }
input, select { font:inherit; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); }
.btn { font:inherit; padding:8px 14px; border-radius:8px; border:1px solid var(--line); background:#fff; cursor:pointer; color:var(--ink); }
.btn.primary { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:600; }
.qr { display:flex; justify-content:center; margin:8px 0; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.status .row { display:flex; justify-content:space-between; align-items:center; }
.status.limited { border-color:var(--bad); background:var(--bad-bg); } .status.free { border-color:#bbf7d0; }
.state { font-weight:700; }
.badge { display:inline-block; white-space:nowrap; padding:1px 8px; border-radius:999px; font-size:.75rem; font-weight:700; color:#fff; }
.badge.claude { background:var(--claude); } .badge.codex { background:var(--codex); }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:.92rem; }
th, td { text-align:left; padding:7px 9px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.03em; }
.num { text-align:right; }
.filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; } .filters input { flex:1; min-width:200px; }
.hits { display:grid; gap:8px; } .hit { display:block; padding:10px 12px; border:1px solid var(--line); border-radius:10px; text-decoration:none; color:var(--ink); }
.hit:hover { border-color:var(--primary); } mark { background:#fef08a; }
.chat { display:flex; flex-direction:column; gap:10px; }
.msg { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 14px; max-width:100%; }
.msg.user { border-left:4px solid var(--primary); } .msg.assistant { border-left:4px solid #94a3b8; }
.msg.tool { font-family:ui-monospace,Menlo,monospace; font-size:.8rem; color:var(--muted); padding:6px 12px; }
.msg.error { border-left:4px solid var(--bad); background:var(--bad-bg); } .msg.summary { border-left:4px solid #f59e0b; }
.meta { font-size:.75rem; color:var(--muted); margin-bottom:4px; }
pre { background:#0f172a; color:#e2e8f0; padding:10px 12px; border-radius:8px; overflow-x:auto; font-size:.82rem; white-space:pre-wrap; }
code { background:#eef2ff; padding:1px 5px; border-radius:4px; font-size:.88em; }
pre.handoff { max-height:70vh; }
th { white-space:nowrap; }
.ok-box { background:var(--ok-bg); color:var(--ok); padding:8px 12px; border-radius:8px; }
.guide h2 { margin-top:18px; } .guide h3 { font-size:.98rem; margin:14px 0 6px; }
.guide ol, .guide ul { padding-left:22px; } .guide li { margin:4px 0; }
.guide .tip { background:#eef2ff; border-left:4px solid var(--primary); padding:8px 12px; border-radius:8px; margin:10px 0; }
.guide .warn { background:#fff7ed; border-left:4px solid #f59e0b; padding:8px 12px; border-radius:8px; margin:10px 0; }
.btn.google { display:block; text-align:center; text-decoration:none; font-weight:600; border-color:#dadce0; }
.btn.google:hover { background:#f8fafc; }
.divider { text-align:center; color:var(--muted); font-size:.82rem; margin:14px 0; border-top:1px solid var(--line); line-height:0; }
.divider span { background:var(--card); padding:0 8px; }
