/* Shared styles for the sign-in, landing and admin pages. RFR brand: Proza Libre headers, Gantari body. */
:root {
  --forest: #00332B; --forest-2: #0B4A3F; --gate: #1B3530; --leaf: #3DBC85; --leaf-ink: #1E8A5C; --sprout: #AFE5BB;
  --cream: #F6F4F1; --sand: #F2EBDF; --mist: #F0F4F0; --ink: #18201E; --ink-2: #4F5D58; --ink-3: #7C8884; --line: #E2E6E2; --warn: #C0533D;
  --display: "Proza Libre", Georgia, serif; --body: "Gantari", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--forest); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }

/* sign-in */
.gate { min-height: 100vh; background: var(--gate); color: #F2F4F1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.gate-in { width: 100%; max-width: 880px; }
.gate-logo { height: 64px; width: auto; filter: brightness(0) invert(1); }
.gate-for { margin-top: 44px; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--sprout); font-weight: 600; }
.gate h1 { margin: 18px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6.5vw, 72px); line-height: 1.08; color: #F2F4F1; }
.gate h1 em { display: block; font-style: italic; color: var(--sprout); font-size: .62em; margin-top: 8px; }
.gate-lede { margin: 30px 0 0; font-size: 19px; color: #DCEBE3; max-width: 60ch; }
.gate-form { margin-top: 22px; max-width: 760px; }
.gate-form label { display: block; font-weight: 600; color: var(--sprout); font-size: 16px; margin-bottom: 10px; }
.gate-row { display: flex; gap: 14px; }
.gate-row input { flex: 1; min-width: 0; font: inherit; font-size: 19px; letter-spacing: .06em; padding: 15px 18px; border-radius: 8px; border: 2px solid transparent; background: #F2F4F1; color: var(--ink); text-transform: uppercase; }
.gate-row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.gate-row input:focus { outline: none; border-color: var(--leaf); }
.gate-row button { font: inherit; font-size: 18px; font-weight: 600; padding: 0 28px; border: 0; border-radius: 8px; background: var(--leaf); color: var(--forest); cursor: pointer; }
.gate-row button:hover { background: var(--sprout); }
.gate-err { min-height: 24px; margin: 10px 0 0; color: #F3B7A9; font-size: 15.5px; }
.gate-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(175,229,187,.35); max-width: 760px; display: grid; gap: 12px; }
.gate-foot p { margin: 0; font-size: 15.5px; color: #DCEBE3; line-height: 1.6; }
.gate-foot b { color: var(--sprout); font-weight: 600; }
.gate-foot a { color: var(--sprout); }
@media (max-width: 560px) { .gate-row { flex-direction: column; } .gate-row button { padding: 14px; } .gate-for { font-size: 12.5px; } }

/* simple pages */
.plain { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; background: var(--cream); }
.plain .card { background: #fff; max-width: 560px; width: 100%; border-radius: 10px; padding: 34px 36px; box-shadow: 0 1px 2px rgba(0,40,30,.05), 0 8px 28px rgba(0,40,30,.07); }
.plain img { height: 40px; width: auto; }
.plain h1 { font-family: var(--display); color: var(--forest); font-weight: 600; font-size: 26px; margin: 22px 0 8px; }
.plain p { color: var(--ink-2); margin: 0 0 10px; }

/* admin */
.adm { min-height: 100vh; background: var(--cream); }
.adm-top { background: var(--forest); color: #fff; padding: 14px 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.adm-top img { height: 26px; filter: brightness(0) invert(1); }
.adm-top b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.adm-top nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.adm-top nav a { color: #CFE3D8; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 14px; }
.adm-top nav a.on, .adm-top nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.adm-main { max-width: 1240px; margin: 0 auto; padding: 28px; display: grid; gap: 22px; }
.adm h1 { font-family: var(--display); color: var(--forest); font-weight: 600; font-size: 28px; margin: 0; }
.adm h2 { font-family: var(--display); color: var(--forest); font-weight: 600; font-size: 19px; margin: 0 0 12px; }
.panel { background: #fff; border-radius: 8px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(0,40,30,.05), 0 6px 22px rgba(0,40,30,.05); min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--mist); border-radius: 6px; padding: 14px 16px; display: grid; gap: 2px; }
.tile b { font-family: var(--display); font-size: 26px; color: var(--forest); line-height: 1.1; }
.tile span { font-size: 13px; color: var(--ink-2); }
.bar { height: 8px; background: #E3E8E5; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--leaf); }
.bar i.hot { background: var(--warn); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; }
form.inline { display: inline; }
.f { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.f label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.f input, .f select, .f textarea { font: inherit; font-size: 14.5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); min-width: 0; }
.btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--forest); background: var(--forest); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.lt { background: #fff; color: var(--forest); border-color: var(--line); }
.btn.sm { font-size: 12.5px; padding: 4px 10px; }
.btn.warn { background: #fff; color: var(--warn); border-color: #EBC8BE; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: var(--mist); color: var(--leaf-ink); }
.pill.off { background: #F3E2DC; color: #93361F; }
.pill.amber { background: var(--sand); color: #7A5A12; }
.muted { color: var(--ink-3); font-size: 13px; }
.notice { background: #E3F4E8; border-left: 4px solid var(--leaf); padding: 14px 16px; border-radius: 0 6px 6px 0; }
.notice.warn { background: #F8E5DF; border-color: var(--warn); }
.codebox { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .08em; background: var(--cream); padding: 10px 14px; border-radius: 6px; display: inline-block; margin: 6px 0; }
textarea.copy { width: 100%; min-height: 150px; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
details.log { border-bottom: 1px solid var(--line); }
details.log summary { cursor: pointer; padding: 10px 4px; display: grid; grid-template-columns: 150px 140px minmax(0, 1fr) 90px 70px; gap: 12px; align-items: baseline; font-size: 14px; list-style: none; }
details.log summary::-webkit-details-marker { display: none; }
details.log summary .q { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.log[open] summary .q { white-space: normal; }
details.log .body { padding: 4px 4px 16px; display: grid; gap: 10px; font-size: 14px; }
details.log .ans { white-space: pre-wrap; background: var(--cream); padding: 12px 14px; border-radius: 6px; }
@media (max-width: 760px) { details.log summary { grid-template-columns: 1fr; gap: 2px; } .adm-main { padding: 16px; } }
