:root {
  --ink: #0f3d32;
  --accent: #c4a35a;
  --paper: #f6f3ec;
  --card: #fffdf8;
  --line: #e4dccb;
  --text: #1c241f;
  --muted: #5c675f;
  --danger: #8c2f2f;
  color-scheme: light;
  font-family: "Segoe UI", "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); }
.shell { max-width: 1100px; margin: 0 auto; padding: 16px; }
.top, .row, .stack, .tabs { display: flex; gap: 12px; align-items: center; }
.top { justify-content: space-between; }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand strong { display: block; color: var(--ink); }
.brand span span, .muted, .lead { color: var(--muted); }
.mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: white; font-weight: 700;
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.card, .auth, .item {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}
.stage { display: grid; gap: 12px; margin-top: 16px; }
.auth { max-width: 420px; }
h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
.stack { flex-direction: column; align-items: stretch; }
label { display: grid; gap: 6px; font-size: 0.92rem; margin-bottom: 12px; }
input, select {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font: inherit; background: white;
}
.btn, button, .tabs button {
  min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: white;
  padding: 8px 14px; font: inherit; cursor: pointer; text-align: center; text-decoration: none; color: inherit;
}
.btn-primary, .tabs button[aria-current="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.tabs { overflow-x: auto; padding-bottom: 4px; }
.notice { background: #fff4f4; color: var(--danger); border-radius: 10px; padding: 10px 12px; }
.or { text-align: center; color: var(--muted); }
.list { display: grid; gap: 12px; }
.item h3 { margin: 0 0 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.meta span { background: #f3ecdc; border-radius: 999px; padding: 4px 8px; font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .top { align-items: flex-start; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 8px solid var(--paper); }
  td::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--muted); }
}
