/* Sumi ink palette, same values as the desktop app (src/styles.css). */
:root {
  --bg: #141311;
  --panel: #171512;
  --surface: #1d1b18;
  --surface-2: #28241f;
  --border: #37312b;
  --border-strong: #4a4239;
  --text: #f3e8d5;
  --text-2: #b5a591;
  --muted: #9a8d7c;
  --accent: #e74725;
  --accent-2: #f25935;
  --accent-press: #c8391d;
  --ok: #34d399;
  --warn: #e8b04a;
  --bad: #f06b84;
  --radius: 12px;
  --radius-sm: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-2); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2.2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--text); font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); }
.btn.primary:active { background: var(--accent-press); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 0.85rem; }

/* Landing */
.landing {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.hero .logo { margin-bottom: 16px; }
.lede { font-size: 1.15rem; color: var(--text-2); max-width: 32em; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li { padding-left: 16px; border-left: 2px solid var(--accent); color: var(--text-2); }
.points strong { color: var(--text); }
.signin-row { grid-column: 1 / -1; text-align: center; color: var(--text-2); }
.signin-row .btn { margin-left: 8px; }

/* Cards and forms */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card.narrow { max-width: 560px; margin: 56px auto; width: calc(100% - 32px); }
.card .logo { display: block; margin-bottom: 16px; }

label { display: block; margin-bottom: 14px; font-size: 0.9rem; color: var(--text-2); }
input, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { resize: vertical; min-height: 96px; }
.code-input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.15em; text-transform: uppercase; font-size: 1.2rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { margin-bottom: 14px; }
.error { color: var(--bad); font-size: 0.9rem; }
.ok { color: var(--ok); font-size: 0.9rem; }
.notice { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px; }

.foot { text-align: center; padding: 24px; }

/* Portal */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: space-between; }
.list { list-style: none; padding: 0; margin: 0 0 20px; }
.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list li:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 8px; }
.dot.on { background: var(--ok); }
.section { margin-top: 28px; }
.pill { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.pill.pending { color: var(--warn); }
.pill.approved { color: var(--ok); }
.req-msg { white-space: pre-wrap; color: var(--text-2); margin: 4px 0 0; font-size: 0.9rem; }
.grow { flex: 1; min-width: 0; }
.wide { max-width: 760px; }

@media (max-width: 760px) {
  .landing { grid-template-columns: minmax(0, 1fr); padding: 32px 16px; gap: 28px; }
  h1 { font-size: 1.8rem; }
  .top { padding: 12px 16px; }
  .wide-only { display: none; }
  .list li { flex-wrap: wrap; }
}
