:root {
  --bg: #f4f7e8;
  --panel: #fbfff2;
  --panel-2: #e7f0ca;
  --text: #1e2a16;
  --muted: #6f7d5b;
  --line: #cbd9a9;
  --accent: #8fbf24;
  --good: #4f8f18;
  --warn: #b48b12;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: linear-gradient(135deg, rgba(163,198,59,.16) 0 1px, transparent 1px 22px), radial-gradient(circle at top left, rgba(195,225,88,.34), var(--bg) 42%); color: var(--text); }
a { color: inherit; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(520px, 100%); background: rgba(251,255,242,.94); border: 2px solid #1e2a16; border-radius: 12px; padding: 34px; box-shadow: 8px 8px 0 #b6cc69; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1 { margin: 10px 0 12px; font-size: clamp(30px, 6vw, 54px); line-height: .95; }
.muted { color: var(--muted); }
.form { display: grid; gap: 10px; margin-top: 24px; }
input { width: 100%; border: 2px solid #9eae78; background: #fffff8; color: var(--text); border-radius: 8px; padding: 13px 15px; font: inherit; }
button, .button { border: 2px solid #1e2a16; background: var(--accent); color: #17200f; font-weight: 800; border-radius: 8px; padding: 13px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 4px 4px 0 #d4e88b; }
.code-copy-cell { align-items: center; display: inline-flex; gap: 8px; white-space: nowrap; }
.copy-code-button { background: transparent; border: 0; border-radius: 0; box-shadow: none; height: 22px; min-width: 22px; padding: 0; position: relative; width: 22px; }
.copy-code-button::before, .copy-code-button::after { background: #fbfff2; border: 2px solid #1e2a16; border-radius: 2px; content: ''; height: 13px; position: absolute; width: 10px; }
.copy-code-button::before { left: 4px; top: 6px; }
.copy-code-button::after { left: 8px; top: 2px; }
.copy-code-button:hover { background: #f1f1ec; }
.status { min-height: 24px; color: var(--warn); margin-top: 14px; }
.app { min-height: 100vh; padding: 24px; }
.shell { max-width: 1240px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; border-bottom: 2px solid #1e2a16; padding-bottom: 16px; }
.brand h1 { font-size: clamp(34px, 6vw, 72px); margin: 4px 0 0; letter-spacing: -.05em; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: rgba(251,255,242,.92); border: 2px solid #1e2a16; border-radius: 10px; padding: 22px; box-shadow: 6px 6px 0 #b6cc69; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 42px; font-weight: 900; letter-spacing: -.04em; margin-top: 8px; }
.main-grid { grid-template-columns: 1.1fr .9fr; margin-top: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; font-size: 14px; }
th { color: var(--muted); font-weight: 700; }
.pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e6f3b6; border: 1px solid #a7bf54; color: #4f7f12; font-weight: 700; font-size: 12px; }
.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.settings-row { align-items: end; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, max-content)); margin-top: 18px; }
.settings-row label { color: #40511f; display: grid; font-size: 12px; font-weight: 800; gap: 5px; }
.settings-row input { max-width: 150px; padding: 10px 12px; }
.settings-toggle { align-items: center; background: #f0f7d6; border-radius: 8px; cursor: pointer; display: grid; gap: 12px; grid-template-columns: 1fr 34px; margin: -8px -8px 0; padding: 12px; }
.settings-toggle h2 { margin: 4px 0 0; }
.settings-summary-table { display: grid; gap: 5px; margin-top: 10px; max-width: 560px; }
.settings-summary-head, .settings-summary-values { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-summary-head { background: #e5efc7; border: 2px solid #1e2a16; border-radius: 8px; box-shadow: 4px 4px 0 #b6cc69; color: #40511f; font-size: 11px; font-weight: 900; letter-spacing: .08em; padding: 8px 10px; text-transform: uppercase; }
.settings-summary-values { background: #fbfff2; border: 2px solid #9eae78; border-radius: 8px; color: #253d08; font-size: 13px; font-weight: 900; padding: 9px 10px; }
.settings-panel { display: none; margin-top: 14px; }
.settings-panel.is-open { display: block; }
.settings-mark { align-items: center; background: #e6f3b6; border: 2px solid #1e2a16; border-radius: 999px; box-shadow: 3px 3px 0 #d4e88b; color: #253d08; display: inline-flex; font-size: 22px; font-weight: 900; height: 34px; justify-content: center; line-height: 1; width: 34px; }
.collapse-toggle { align-items: center; background: #f0f7d6; border-radius: 8px; cursor: pointer; display: grid; gap: 12px; grid-template-columns: 1fr 34px; margin: -8px -8px 0; padding: 12px; }
.collapse-toggle h2 { margin: 0; }
.collapse-panel { display: none; margin-top: 14px; }
.collapse-panel.is-open { display: block; }
pre { white-space: pre-wrap; word-break: break-word; background: #fffff8; border: 2px solid #9eae78; border-radius: 10px; padding: 16px; color: #253d08; }
@media (max-width: 860px) { .stats, .main-grid { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-direction: column; } }
