:root { --brand: #0f766e; --brand-dark: #115e59; --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; --bg: #f9fafb; --star: #b45309; --danger: #b91c1c; --ok: #166534; --warn-bg: #fef3c7; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-dark); }
.banner { background: var(--warn-bg); color: #78350f; text-align: center; padding: .4rem 1rem; font-size: .9rem; font-weight: 600; }
.top { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.stars { color: var(--star); letter-spacing: -2px; font-size: .9rem; }
nav { display: flex; gap: .25rem; flex: 1; flex-wrap: wrap; }
nav a { padding: .35rem .6rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
nav a.active { background: #ccfbf1; color: var(--brand-dark); font-weight: 600; }
.badge { display: inline-block; min-width: 1.3em; padding: 0 .35em; margin-left: .3em; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; text-align: center; }
main { max-width: 72rem; margin: 0 auto; padding: 1rem; outline: none; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .grid2, .inbox { grid-template-columns: 1fr !important; } }
label { display: block; margin: .5rem 0 .2rem; font-weight: 600; font-size: .9rem; }
label.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
input, select, textarea { font: inherit; padding: .5rem; border: 1px solid #cbd5e1; border-radius: 6px; width: 100%; background: #fff; }
input[type=checkbox] { width: auto; margin-top: .3rem; }
textarea { min-height: 6rem; }
button, .button { font: inherit; padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.ghost, .button.ghost { background: #fff; color: var(--brand-dark); }
button.danger { background: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .55; cursor: default; }
.muted { color: var(--muted); font-size: .9rem; }
.error { color: var(--danger); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.notice { background: var(--warn-bg); padding: .75rem; border-radius: 6px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
th { font-size: .8rem; text-transform: uppercase; color: var(--muted); }
tr.clickable { cursor: pointer; } tr.clickable:hover { background: #f0fdfa; }
.pill { display: inline-block; padding: 0 .5em; border-radius: 999px; background: #e5e7eb; font-size: .8rem; }
.pill.good { background: #dcfce7; color: var(--ok); } .pill.bad { background: #fee2e2; color: var(--danger); }
.inbox { display: grid; grid-template-columns: 22rem 1fr; gap: 1rem; }
.convs { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow: auto; }
.convs li { padding: .6rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.convs li.sel { background: #ccfbf1; } .convs li.unread { font-weight: 700; }
.thread { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: .4rem; padding: .5rem; background: var(--bg); border-radius: 8px; }
.msg { max-width: 80%; padding: .45rem .7rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.msg.out { align-self: flex-end; background: #ccfbf1; border-color: #99f6e4; }
.msg .meta { display: block; font-size: .72rem; color: var(--muted); }
.hero { text-align: center; padding: 2rem 1rem; }
.hero h1 { font-size: 2rem; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--brand-dark); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; text-align: left; }
.chips button { padding: .15rem .5rem; font-size: .8rem; margin: .1rem; }
pre.snippet { background: #111827; color: #e5e7eb; padding: .75rem; border-radius: 6px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.tabs { display: flex; gap: .25rem; margin-bottom: 1rem; flex-wrap: wrap; }
dialog { border: 1px solid var(--line); border-radius: 10px; max-width: 28rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { justify-content: center; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.stat { text-align: center; margin: 0; } .stat strong { display: block; font-size: 1.6rem; } .stat span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
button.small { padding: .2rem .5rem; font-size: .85rem; margin: 0 .2rem .2rem 0; }
blockquote { margin: .5rem 0; padding: .6rem .8rem; border-left: 4px solid var(--brand, #0d9488); background: #f8fafc; white-space: pre-wrap; }
p.snippet { font-family: ui-monospace, monospace; background: #f3f4f6; padding: .5rem; border-radius: 6px; word-break: break-all; }
.counter { font-size: 1.2rem; font-weight: 700; }
.field { margin-bottom: .5rem; }
.tabs a { padding: .4rem .8rem; border-radius: 6px; text-decoration: none; border: 1px solid var(--line); background: #fff; }
.tabs a.active { background: #ccfbf1; font-weight: 700; }
.features .card h2 { margin-top: 0; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

.card.narrow { max-width: 28rem; }
