/* Lexend (SIL Open Font Licence), latin subset, served from this site. */
@font-face {
  font-family: 'Lexend'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/lexend-latin.woff2') format('woff2');
}
:root {
  --ink: #171512; --mute: #6f6a63; --line: #e2ddd5; --bg: #faf8f5; --card: #fff;
  --amber: #9a5c00; --amberbg: #fdf9f1; --green: #1c6b45; --red: #a8261c; --team: #8a5a2c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-family: 'Lexend', system-ui, sans-serif; font-weight: 300; color: var(--ink); line-height: 1.6; }
a { color: var(--amber); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 1.5rem; font-weight: 600; margin: 0; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; }
h3 { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.muted { color: var(--mute); font-size: .9rem; }
.err { color: var(--red); font-size: .9rem; min-height: 1.2em; margin: 4px 0; }

.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.top[hidden] { display: none; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: var(--mute); padding: 5px 12px; border-radius: 999px; font-weight: 500; }
.top nav a.on { background: var(--ink); color: #fff; }
.who { margin-left: auto; font-size: .85rem; color: var(--mute); }

button, .btn { font: inherit; font-weight: 600; font-size: .9rem; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .5; cursor: wait; }
button.ghost { background: none; color: var(--mute); border: 1px solid var(--line); }
input, select, textarea { font: inherit; font-weight: 400; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
textarea { resize: vertical; min-height: 160px; }
label { display: grid; gap: 4px; font-size: .85rem; font-weight: 500; margin-bottom: 10px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.login { max-width: 380px; margin: 10vh auto 0; }
.login button { width: 100%; margin-top: 6px; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-top: 6px; }
.head h1 { margin-right: auto; }
.chip { font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--amberbg); color: var(--amber); border: 1px solid #eed7ae; white-space: nowrap; }
.chip.st { background: #eef4fa; color: #2c5f8a; border-color: #cfe0ef; }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .82rem; color: var(--mute); }

.board { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin-top: 10px; }
.col { flex: 0 0 210px; background: #f1ede6; border-radius: 12px; padding: 10px; }
.col .n { flex: none; background: #fff; border-radius: 999px; padding: 0 8px; color: var(--ink); line-height: 1.6; }
.tcard { display: grid; gap: 1px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 9px; padding: 8px 10px; margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.tcard b { font-weight: 600; font-size: .9rem; }
.tcard small { color: var(--mute); font-size: .75rem; }

.newc { max-width: 480px; }
.list { margin-top: 14px; display: grid; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.row b { font-weight: 600; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tabs button { background: none; color: var(--mute); border-radius: 9px 9px 0 0; padding: 7px 12px; font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--amberbg); color: var(--ink); font-weight: 600; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.tick input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--green); }
.tick small { display: block; color: var(--mute); font-size: .78rem; }
.tick.inline { margin: 8px 0 0; font-size: .85rem; color: var(--mute); }
.copy { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-top: 10px; }
.copy pre { white-space: pre-wrap; font: inherit; font-size: .88rem; margin: 8px 0 0; }
.hist { margin: 0; padding-left: 1.1rem; font-size: .85rem; color: var(--mute); }

#toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(120%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; opacity: 0; transition: .2s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--red); }
/* Phone: brand, nav and Sign out share one row; the signed-in name goes below. */
@media (max-width: 600px) {
  .top { gap: 6px 8px; padding: 8px 12px; }
  .top nav a { padding: 4px 10px; }
  #signout { margin-left: auto; padding: 6px 10px; font-size: .82rem; }
  .who { order: 3; width: 100%; margin-left: 0; font-size: .78rem; }
}
