:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --panel: #ffffff;
  --surface: #f9fbf9;
  --surface-soft: #eef4f0;
  --ink: #17211d;
  --muted: #66736d;
  --line: #dbe2dd;
  --accent: #176b5d;
  --accent-strong: #0f4f45;
  --accent-soft: #dceee9;
  --gold: #c98b2c;
  --danger: #b64242;
  --success: #1f7a67;
  --shadow: 0 18px 55px rgba(23, 33, 29, 0.1);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.page-orb { display: none; }
.shell {
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}
.page-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.page-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
}
.page-switch-link:hover { background: var(--surface-soft); color: var(--accent-strong); }
.page-switch-link.is-active { background: var(--accent); color: white; }
.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: start;
  padding: 18px;
  margin-bottom: 18px;
}
.hero-copy { flex: 1 1 720px; }
.hero-side {
  display: grid;
  gap: 10px;
  flex: 0 1 360px;
}
.eyebrow {
  color: #8aa89f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
h1, h2, p { margin-top: 0; }
h1 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
  margin-bottom: 0;
}
h2 {
  font-size: 1.2rem;
  margin-bottom: 0;
}
.subcopy, .panel-copy, .modal-copy, .modal-warning {
  color: var(--muted);
  line-height: 1.6;
}
.subcopy {
  max-width: 620px;
  margin: 12px 0 0;
  font-size: 0.96rem;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-pill, .row-state, .table-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.hero-pill {
  min-height: 30px;
  padding: 0 10px;
  background: #f3f7f4;
  border: 1px solid var(--line);
  color: var(--accent-strong);
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.hero-card-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 800;
  margin: 0 0 4px;
}
.hero-card-value {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.primary-button, .secondary-button, .danger-button, .toggle {
  min-height: 38px;
  border-radius: 8px;
}
.primary-button, .secondary-button, .danger-button {
  padding: 0 14px;
  font-weight: 800;
}
.primary-button { background: var(--accent); color: white; }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button { background: var(--accent-soft); color: var(--accent-strong); }
.secondary-button:hover { background: #cfe6df; }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.toggle input { accent-color: var(--accent); }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.panel-copy { margin: 10px 0 0; max-width: 780px; }
.table-count {
  min-height: 34px;
  padding: 0 10px;
  background: #e8efeb;
  color: var(--accent-strong);
}
.status-banner {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}
.status-banner[data-tone="error"] { color: var(--danger); }
.status-banner[data-tone="success"] { color: var(--success); }
.hint-banner {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hint-banner kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 800;
  text-align: center;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.col-gmail { width: 27%; }
.col-password { width: 19%; }
.col-antigravity, .col-codex { width: 23%; }
.col-site { width: 25%; }
.col-user { width: 20%; }
.col-notes { width: 28%; }
.col-actions, .actions-column { width: 190px; }
thead th {
  padding: 14px 16px;
  text-align: left;
  background: #f2f6f3;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.sort-button[data-active="true"] { color: var(--accent); }
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody tr.saving { background: #eef7f4; }
tbody tr.error { background: #fbefef; }
tbody td { padding: 12px 16px; vertical-align: middle; }
.empty-state td {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}
.cell-input {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.cell-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 93, 0.14);
}
.actions-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.row-state {
  min-height: 30px;
  padding: 0 9px;
  background: #eef4f0;
  color: var(--accent-strong);
}
.danger-button {
  min-height: 36px;
  background: #f7e9e9;
  color: var(--danger);
}
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 17, 0.45);
}
.modal-card {
  position: relative;
  width: min(100%, 520px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.modal-eyebrow {
  color: #8aa89f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.modal-copy { margin: 14px 0 8px; }
.modal-warning { margin: 0 0 16px; min-height: 3em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 920px) {
  .hero { flex-direction: column; }
  .hero-side { width: 100%; }
  .toolbar { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 18px); padding-top: 12px; }
  .hero, .panel { padding: 14px; }
  .page-switch { width: 100%; justify-content: stretch; }
  .page-switch-link { flex: 1 1 0; }
  .panel-header, .toolbar, .modal-actions { flex-direction: column; align-items: stretch; }
  .toggle, .primary-button, .secondary-button, .danger-button { width: 100%; justify-content: center; }
  h1 { font-size: clamp(1.5rem, 7vw, 2.05rem); }
  .subcopy { font-size: 0.9rem; }
}
