:root {
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: #162534; background: #eaf0f3; font-size: 14px; color-scheme: light;
  --ink: #162534; --muted: #697b87; --line: #dfe8e9; --teal: #0f766e;
  --mint: #7ee7d7; --soft: #f5f8f8; --amber: #a35b12; --navy: #12202e;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; background: radial-gradient(ellipse at 95% 0, #d2eee7, transparent 50%), #eaf0f3; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button, .button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 8px; padding: 10px 15px; font-weight: 600; text-decoration: none; }
button:hover, .button:hover { background: #eef5f4; }
a { color: var(--teal); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #36b6a6; outline-offset: 3px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfdcdd; border-radius: 7px; color: var(--ink); background: white; }
textarea { resize: vertical; min-height: 82px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -1px; line-height: 1.15; margin-bottom: 10px; }
h2 { font-size: 18px; letter-spacing: -.35px; margin-bottom: 16px; }
h3 { font-size: 15px; margin-bottom: 8px; }
p { line-height: 1.6; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: var(--muted); margin-bottom: 14px; }
.primary { color: white; border-color: var(--teal); background: var(--teal); }
.primary:hover { background: #0b635c; }
.quiet { background: transparent; border: 0; padding: 7px; color: var(--teal); }
.badge { display: inline-flex; align-items: center; border-radius: 5px; padding: 5px 8px; font-size: 11px; font-weight: 650; background: #edf3f4; color: #516774; white-space: nowrap; }
.badge.engaged, .badge.approved { background: #e0f3ec; color: #126b53; }
.badge.review, .badge.pending { background: #fff0d9; color: #935710; }
.badge.blocked { color: #a33c37; background: #fbe8e6; }
.badge.mock { background: #f0ebf7; color: #766088; }
.badge.internal { color: #747a83; background: #ebeef0; }
.form-error { color: #ae342e; min-height: 1em; font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 15px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.check input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--teal); }
.notice { border: 1px solid #eadcc4; background: #fffbf3; padding: 12px 15px; border-radius: 8px; color: #805a28; font-size: 12px; line-height: 1.6; }
.notice.neutral { color: #47666a; border-color: #d4e7e5; background: #eff8f6; }
.empty { padding: 50px 25px; text-align: center; background: white; border: 1px dashed #bed4d0; border-radius: 12px; }
.empty h2 { font-size: 22px; }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-height: 92vh; width: min(780px, 94vw); color: var(--ink); box-shadow: 0 30px 100px #102b3644; }
dialog::backdrop { background: #122b3c66; backdrop-filter: blur(3px); }
dialog .dialog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
dialog .dialog-heading h2 { font-size: 24px; margin-bottom: 5px; }
.close { font-size: 22px; line-height: 1; background: var(--soft); border: 0; padding: 8px 12px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 22px; }
.auth-screen { display: grid; place-items: center; min-height: 100vh; padding: 28px; }
.auth-card { width: min(440px, 100%); padding: 35px; background: white; border-radius: 20px; box-shadow: 0 18px 65px #23494b17; }
.auth-card > img { width: 96px; height: 74px; background: var(--teal); border-radius: 12px; padding: 7px; margin-bottom: 24px; }
.auth-card form { display: grid; gap: 15px; margin: 25px 0; }
.auth-card h1 { font-size: 29px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 15px 24px; max-width: 90vw; background: var(--navy); color: white; border-radius: 10px; box-shadow: 0 7px 30px #1234; z-index: 100; }
[hidden] { display: none !important; }
@media(max-width: 620px) { .two-fields { grid-template-columns: 1fr; } dialog { padding: 20px; } }
