/* Host City admin. Tokens from the brand guide (hostcity.media, measured 2026-10-27). */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,700;0,900;1,900&display=swap");

:root {
  --surface: #ffffff;
  --ink: #131313;
  --ink-muted: #595959;
  --rule: #eae3db;
  --placeholder: #8a8a8a;

  --tile: #b9542d;
  --jacaranda: #7a5cb0;
  --pool: #1f74b0;
  --freeway: #00704a;

  --sand: #efe4cf;
  --sun: #f3d98f;
  --shallows: #bfdde0;
  --palm: #b3c6a2;
  --blush: #f2cdb9;
  --lilac: #d9cfe8;

  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --col-w: 264px;
}

* { box-sizing: border-box; border-radius: 0; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.monogram {
  width: 34px; height: 34px;
  background: var(--ink); color: var(--surface);
  display: grid; place-items: center;
  font-weight: 900; font-size: 14px; letter-spacing: -0.5px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.4px; text-transform: uppercase; }
.brand-tag { font-weight: 900; font-style: italic; font-size: 10px; text-transform: uppercase; color: var(--ink-muted); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; flex-wrap: wrap; }
.nav button {
  background: none; border: 0; padding: 8px 10px; cursor: pointer;
  font-weight: 500; font-size: 13px; letter-spacing: -0.4px; text-transform: uppercase;
  color: var(--ink-muted); border-bottom: 2px solid transparent;
}
.nav button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav button:hover { color: var(--ink); }
.nav-ext {
  padding: 8px 10px; text-decoration: none; white-space: nowrap;
  font-weight: 500; font-size: 13px; letter-spacing: -0.4px; text-transform: uppercase;
  color: var(--ink-muted); border-bottom: 2px solid transparent;
}
.nav-ext:hover { color: var(--ink); }
.nav-ext:first-of-type { margin-left: 10px; border-left: 1px solid var(--rule); padding-left: 18px; }

.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.whoami { font-size: 12px; color: var(--ink-muted); text-align: right; line-height: 1.25; }
.whoami strong { color: var(--ink); font-weight: 500; display: block; }

.demo-banner {
  background: var(--sun); color: var(--ink);
  font-size: 12px; padding: 6px 20px; border-bottom: 1px solid var(--rule);
}

/* ---------- Buttons & fields ---------- */
.btn {
  background: var(--ink); color: var(--surface);
  border: 1px solid var(--ink);
  padding: 8px 14px; cursor: pointer;
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2px;
}
.btn:hover { background: #2b2b2b; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.ghost:hover { background: var(--sand); }
.btn.danger { background: var(--surface); color: var(--tile); border-color: var(--tile); }
.btn.danger.armed { background: var(--tile); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, .nav button:focus-visible, .card:focus-visible, .field:focus-visible { outline: 2px solid var(--pool); outline-offset: 1px; }

.label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3px; margin-bottom: 5px;
}
.field {
  width: 100%;
  border: 1px solid #cfc7bd;
  background: var(--surface);
  padding: 8px 10px;
  font-size: 13px;
}
.field::placeholder { color: var(--placeholder); }
.field:focus { outline: none; border-color: var(--ink); }
.field[readonly], .field:disabled { background: #faf8f5; color: var(--ink-muted); }
textarea.field { resize: vertical; min-height: 84px; line-height: 1.45; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 20px; border-bottom: 1px solid var(--rule);
}
.toolbar .field { width: auto; min-width: 140px; padding: 6px 10px; font-size: 12px; }
.toolbar .search { min-width: 220px; }
.toolbar .spacer { flex: 1; }
.toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); cursor: pointer; user-select: none; }
.seg { display: flex; border: 1px solid var(--ink); }
.seg button { background: var(--surface); border: 0; padding: 6px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

/* ---------- Format tags ---------- */
.tag {
  display: inline-block; padding: 2px 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  color: #fff; white-space: nowrap;
}
.tag.tile { background: var(--tile); }
.tag.jacaranda { background: var(--jacaranda); }
.tag.pool { background: var(--pool); }
.tag.freeway { background: var(--freeway); }
.tag.soft { background: var(--sand); color: var(--ink); }
.tag.overdue { background: var(--tile); }
.tag.lens { background: var(--lilac); color: var(--ink); }

/* ---------- Board ---------- */
.board {
  display: flex; gap: 0; overflow-x: auto;
  height: calc(100vh - 118px);
  padding: 0 0 0 20px;
}
.board.has-banner { height: calc(100vh - 146px); }
.col {
  flex: 0 0 var(--col-w);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--rule);
  min-height: 0;
}
.col:first-child { border-left: 1px solid var(--rule); }
.col-head {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--rule);
}
.col-head h2 { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.col-head .count { font-size: 12px; color: var(--ink-muted); }
.col-body { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.col.drop-target .col-body { background: var(--sand); }
.col-empty { color: var(--placeholder); font-size: 12px; padding: 6px 2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 10px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 7px;
}
.card:hover { border-color: #c9bfb3; }
.card.dragging { opacity: 0.4; }
.card .row { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.card .title { font-weight: 700; font-size: 14px; line-height: 1.25; letter-spacing: -0.3px; }
.card .meta { font-size: 12px; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 8px; }
.card.mine { box-shadow: inset 3px 0 0 var(--ink); }

/* ---------- List ---------- */
.list-wrap { padding: 0 20px 40px; overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  padding: 12px 10px 8px; border-bottom: 1px solid var(--ink); cursor: pointer; white-space: nowrap; user-select: none;
  position: sticky; top: 0; background: var(--surface);
}
table.list th .arrow { color: var(--ink-muted); }
table.list td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover td { background: #fbf8f3; }
table.list .t-title { font-weight: 700; letter-spacing: -0.2px; }
table.list .muted { color: var(--ink-muted); }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(19, 19, 19, 0.18); z-index: 30; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--ink);
  z-index: 31;
  display: flex; flex-direction: column;
}
.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--rule);
}
.drawer-head .status { font-size: 12px; color: var(--ink-muted); margin-left: auto; }
.drawer-head .close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.drawer-body > * { flex-shrink: 0; }
.drawer-title {
  width: 100%; border: 0; border-bottom: 1px solid var(--rule); padding: 4px 0 8px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.6px; line-height: 1.2;
}
.drawer-title:focus { outline: none; border-bottom-color: var(--ink); }
.drawer-title[readonly] { color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid #cfc7bd; background: var(--surface);
  padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip:disabled { cursor: default; }
.hint { font-size: 12px; color: var(--ink-muted); margin: 4px 0 0; }

.section {
  border-top: 1px solid var(--rule); padding-top: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.section h3 { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; display: flex; align-items: center; gap: 8px; }
.section.terms { background: var(--sand); margin: 0 -20px; padding: 16px 20px; border-top: 0; }
.section.terms .field { background: #fffdf9; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }

.notes { display: flex; flex-direction: column; gap: 10px; }
.note { border-left: 2px solid var(--rule); padding: 2px 0 2px 10px; }
.note .who { font-size: 11px; color: var(--ink-muted); margin-bottom: 2px; }
.note .who strong { color: var(--ink); font-weight: 700; }
.note .body { white-space: pre-wrap; font-size: 13px; }
.note-form { display: flex; gap: 8px; align-items: flex-end; }
.note-form textarea { min-height: 52px; }

.drawer-foot {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 20px; border-top: 1px solid var(--rule);
}
.drawer-foot .small { font-size: 11px; color: var(--ink-muted); margin-right: auto; }

/* ---------- Team ---------- */
.page { padding: 24px 20px 60px; max-width: 880px; }
.page h1 { font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 0 0 6px; letter-spacing: -0.2px; }
.page p.lede { margin: 0 0 20px; color: var(--ink-muted); max-width: 640px; }
.invite-box { background: var(--sand); padding: 16px; margin: 24px 0 0; font-size: 13px; }
.invite-box ol { margin: 8px 0 0; padding-left: 18px; }
.invite-box li { margin: 4px 0; }

/* ---------- Sign in ---------- */
.signin {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: var(--surface);
}
.signin-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.signin-card h1 { font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 8px 0 0; }
.signin-card p { margin: 0; color: var(--ink-muted); }
.signin-card .btn { padding: 12px; font-size: 14px; }
.signin-msg { background: var(--shallows); padding: 12px; font-size: 13px; }
.signin-msg.err { background: var(--blush); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; font-size: 13px; z-index: 50;
}

@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 10px; }
  .nav { margin-left: 0; order: 3; width: 100%; }
  .whoami { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  :root { --col-w: 240px; }
}

/* ---------- File links ---------- */
.card .links, .links-cell { display: inline-flex; gap: 8px; margin-left: auto; }
.links-cell { margin-left: 0; }
.filelink {
  font-size: 11px; font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.filelink:hover { border-bottom-color: var(--ink); }
.url-row { display: flex; gap: 8px; }
.url-row .btn { display: inline-flex; align-items: center; text-decoration: none; }
