/* HostNomiq admin — "the host's ledger".
   Paper, ink and hairline rules instead of boxes. One raised surface per page: the thing you're working on (the next
   message, the editor, the week). Small caps are kept for one job only: naming a section. Colour means something
   (late, today, in house, arriving) and is otherwise left out. */
@font-face { font-family: 'Source Serif 4'; font-weight: 200 900; font-display: swap; src: url('fonts/source-serif-4-latin.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300 600; font-display: swap; src: url('fonts/jost-latin.woff2') format('woff2'); }
:root {
  --paper: #fff; --surface: #fff; --sand: #efebe4; --wash: #f6f4f0;
  --ink: #161514; --ink-2: #4a4743; --ink-3: #8a847d; --ink-4: #b3ada5;
  --line: #e4dfd7; --line-2: #d4cdc2;
  --accent: #161514; --accent-50: #efebe4; --bronze: #7d6243; --bronze-50: #f3ece2;
  --red: #a3311f; --red-50: #fbefec; --amber: #a34a0c; --amber-50: #fcf1e7; --green: #3a6b31; --green-50: #edf3ea;
  --blue: #2f5487; --blue-50: #eaf0f7;
  --display: 'Source Serif 4', Georgia, serif; --body: 'Jost', Futura, 'Avenir Next', sans-serif; --mono: 'Jost', Futura, sans-serif;
  --r: 3px; --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: 0 1px 0 rgb(22 21 20 / .03), 0 1px 3px rgb(22 21 20 / .05), 0 8px 24px -12px rgb(22 21 20 / .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration-color: var(--ink-4); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
::selection { background: #e9dcc9; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .01em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--wash); padding: 1px 4px; border-radius: 2px; }

/* ---- type ---- */
h1 { font: 400 clamp(1.8rem, 1.25rem + 1.7vw, 2.55rem)/1.08 var(--display); margin: 0; letter-spacing: -.018em; }
h1 + .lede { margin: 10px 0 0; max-width: 46rem; color: var(--ink-2); }
.eyebrow { font: 500 .66rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin: 0 0 10px; }
.eyebrow a { text-decoration: none; color: var(--ink-3); transition: color .15s; }
.eyebrow a:hover { color: var(--ink); }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; height: 56px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font: 500 .8rem var(--body); letter-spacing: .3em; text-transform: uppercase; }
.brand svg { width: 24px; height: 24px; }
.brand small { display: flex; align-items: center; gap: 12px; margin-left: 2px; font: 400 .82rem var(--body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.brand small::before { content: ""; width: 1px; height: 16px; background: var(--line-2); }
/* the account menu, at the right: which business you're working in and who's signed in — settings, switch, log out */
.account-menu { flex: none; }
.account-trigger { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border-radius: 18px; cursor: pointer;
  font: 500 .84rem var(--body); color: var(--ink-2); list-style: none; transition: background .15s, color .15s; }
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger:hover, .account-menu[open] .account-trigger, .account-trigger[aria-current=page] { background: var(--wash); color: var(--ink); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .78rem var(--body); flex: none; }
.account-name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-who { display: grid; gap: 2px; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.panel-who strong { font-weight: 600; font-size: .9rem; }
.panel-who span { font-size: .78rem; color: var(--ink-3); overflow-wrap: anywhere; }
.panel-line { display: flex; align-items: center; gap: 8px; }
.panel-label { margin: 10px 12px 2px; font: 500 .62rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.panel button small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-3); }
/* phones: the business you're working in, as a label next to the logo (the account menu moves under Menu) */
.bar-account-label { display: none; }
@media (max-width: 900px) {
  .bar-account-label { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: .82rem; color: var(--ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bar-account-label::before { content: ""; flex: none; width: 1px; height: 16px; background: var(--line-2); }
}
.nav { display: flex; align-items: stretch; align-self: stretch; gap: 0; margin-right: auto; }
.tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 13px; height: 100%; border: 0; background: none;
  font: 500 .86rem var(--body); color: var(--ink-3); text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .15s; }
.tab::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-current=page] { color: var(--ink); }
.tab[aria-current=page]::after { transform: scaleX(1); }
.count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bronze); color: #fff; font: 600 .64rem/18px var(--body); text-align: center; }
.menu { position: relative; display: flex; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.caret { width: 9px; height: 9px; transition: transform .2s var(--ease); }
.menu[open] .caret { transform: rotate(180deg); }
.panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; min-width: 260px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 40px -12px rgb(22 21 20 / .22), 0 2px 6px rgb(22 21 20 / .05);
  animation: drop .16s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.panel a, .panel button { display: grid; gap: 1px; width: 100%; padding: 8px 12px; border: 0; border-radius: 4px; background: none; text-align: left;
  font: 500 .88rem var(--body); color: var(--ink); text-decoration: none; cursor: pointer; transition: background .12s; }
.panel a small, .panel button small { font-weight: 400; font-size: .78rem; color: var(--ink-3); }
.panel a:hover, .panel button:hover { background: var(--wash); }
.panel a[aria-current=page] { background: var(--sand); }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.bar-end { display: flex; align-items: center; gap: 4px; flex: none; }
.quiet { padding: 8px 10px; border: 0; background: none; font: 500 .82rem var(--body); color: var(--ink-3); text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .15s; }
.quiet:hover { color: var(--ink); }
.mobile { display: none; }
@media (max-width: 900px) {
  .nav, .bar-end, .account-menu { display: none; }
  .mobile { display: flex; margin-left: auto; }
  .mobile .panel { position: fixed; top: 57px; left: 0; right: 0; min-width: 0; max-height: calc(100vh - 57px); overflow-y: auto;
    border-width: 1px 0; border-radius: 0; padding: 8px 12px 12px; }
}

/* ---- page head ---- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding: 44px 0 28px; }
.head > div:first-child { min-width: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }

/* ---- buttons: sentence case, quiet until needed ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); font: 500 .84rem/1 var(--body); color: var(--ink); text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #34312d; border-color: #34312d; }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: var(--red-50); }
.btn-sm { height: 30px; padding: 0 11px; font-size: .8rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--bronze); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
input:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; }
form.inline { display: inline; }

/* ---- status: a dot and a word, not a sticker ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: 500 .78rem/1.3 var(--body); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill-new, .pill-pending, .pill-app-submitted { color: var(--bronze); }
.pill-handled, .pill-skipped, .pill-void, .pill-stage-completed, .pill-app-declined, .pill-app-revoked, .pill-app-expired { color: var(--ink-3); }
.pill-warn, .pill-overdue, .pill-missing, .pill-stage-canceled { color: var(--red); }
.pill-today, .pill-mtr { color: var(--amber); }
.pill-completed, .pill-returning, .pill-stage-active, .pill-app-approved { color: var(--green); }
.pill-stage-upcoming, .pill-app-sent { color: var(--blue); }
.pill-skipped::before, .pill-void::before { background: none; box-shadow: inset 0 0 0 1px currentColor; }

/* ---- surfaces: rules by default, a raised sheet only where you work ---- */
.card { border-top: 1px solid var(--ink); }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--lift); }
.panel-card { padding: 14px 0 0; }
.panel-card h3 { font: 500 .66rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.panel-card > h3:first-child, .panel-card > input + h3, .panel-card > input + input + h3 { margin-top: 0; }
.aside { display: grid; gap: 36px; align-content: start; }
.flash { margin: 20px 0 0; padding: 11px 16px; border-left: 2px solid var(--ink); background: var(--surface); box-shadow: var(--lift); font-weight: 500; border-radius: 0 var(--r) var(--r) 0;
  animation: drop .25s var(--ease); }
.flash.error { border-left-color: var(--red); color: var(--red); }
.note { margin: 0 0 18px; padding: 2px 0 2px 14px; border-left: 2px solid var(--line-2); color: var(--ink-2); font-size: .9rem; max-width: 52rem; }
.note.warn { border-left-color: var(--red); color: var(--ink); background: linear-gradient(90deg, var(--red-50), transparent 70%); padding: 8px 14px; }
.note.warn strong:first-child { color: var(--red); }
.door-ask { border-top-color: var(--red); }
.door-ask h3 { color: var(--red); }

/* ---- lists: ruled rows on the page ---- */
.list { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr auto; gap: 18px; align-items: center; padding: 15px 12px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background .15s; }
a.row:hover, .row.link:hover { background: #faf9f6; }
.row .done-btn:not(:hover) { background: transparent; color: var(--ink); }
.row strong { display: block; font-weight: 600; }
.row .sub { display: block; color: var(--ink-3); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { margin: 0; padding: 16px 0; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.empty a { color: var(--ink); }
.section { margin: 48px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section h2 { font: 400 1.4rem var(--display); margin: 0; letter-spacing: -.01em; }
.section h2 span { font: 400 .95rem var(--display); color: var(--ink-3); margin-left: 8px; }
.actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.row .actions .btn-skip, .actions .btn.btn-skip { border-color: transparent; background: none; color: var(--ink-3); padding: 0 8px; }
.row .actions .btn-skip:hover, .actions .btn.btn-skip:hover { color: var(--ink); }

/* ---- two columns: the work, then the facts ---- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
dl.facts { display: grid; grid-template-columns: 5.5rem 1fr; gap: 8px 16px; margin: 0; font-size: .92rem; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---- forms ---- */
select, input:not([type]), input[type=text], input[type=number], input[type=url], input[type=email], input[type=search], input[type=password], input[type=file], textarea {
  height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font: .92rem var(--body); color: var(--ink);
  min-width: 0; transition: border-color .15s, box-shadow .15s; }
input[type=file] { height: auto; padding: 9px 11px; }
textarea { height: auto; padding: 9px 11px; line-height: 1.5; resize: vertical; }
select { padding-right: 30px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%234a4743' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 11px center; }
select:hover, input:hover, textarea:hover { border-color: var(--ink-4); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(22 21 20 / .07); }
input:disabled { background: var(--wash); color: var(--ink-3); }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
.fields { display: grid; gap: 18px; }
.fields label, form.apply-form label, .door-form label { display: grid; gap: 6px; font: 500 .84rem var(--body); color: var(--ink-2); }
.fields label input, .fields label textarea, .fields label select { width: 100%; font-weight: 400; }
.fields textarea { min-height: 76px; }
.fields .hint, form.apply-form .hint, .door-form .door-hint { font: 400 .78rem/1.45 var(--body); color: var(--ink-3); }
.fields h3 { margin: 0; }
form.apply-form { display: grid; gap: 12px; margin-top: 12px; }
form.apply-form input, form.apply-form select, form.apply-form textarea { width: 100%; }
form.apply-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
form.apply-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
form.apply-form label.check input { width: auto; accent-color: var(--ink); }
form.apply-form [hidden] { display: none; }
textarea.editor { display: block; width: 100%; min-height: 340px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  font: .98rem/1.65 var(--body); color: var(--ink); box-shadow: var(--lift); }
textarea.editor:focus { border-color: var(--ink-4); box-shadow: var(--lift), 0 0 0 3px rgb(22 21 20 / .05); }
.door-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.door-form label { width: 100%; }
.door-form input[type=text] { width: 180px; }
.door-form.compact { flex-wrap: nowrap; }
.door-form.compact input[type=text] { width: 104px; height: 30px; padding: 0 9px; font-size: .84rem; }
.door-form .door-hint { width: 100%; }

/* ---- tables ---- */
table.plain { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.plain th, table.plain td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font: 500 .76rem var(--body); color: var(--ink-3); padding-top: 4px; }
pre.msg { white-space: pre-wrap; font: .94rem/1.65 var(--body); margin: 0; }
mark.missing { background: var(--red-50); color: var(--red); padding: 0 2px; }

/* ---- sign-in and sign-up: a statement on the left, the form on the right ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; width: 100vw; margin-left: calc(50% - 50vw); }
body:has(.auth) { overflow-x: hidden; }
.auth-side { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px 44px max(56px, calc(50vw - 552px)); border-right: 1px solid var(--line); background: #f1ede6; }
.auth-side .brand { color: var(--ink); }
.auth-side blockquote { margin: 0; font: 300 clamp(2rem, 1.2rem + 2.4vw, 3.1rem)/1.1 var(--display); letter-spacing: -.02em; max-width: 13ch; }
.auth-side blockquote em { font-style: italic; color: var(--bronze); }
.auth-side ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 26rem; color: var(--ink-2); font-size: .92rem; }
.auth-side li { display: grid; grid-template-columns: 2.2rem 1fr; }
.auth-side li span { font: 400 .95rem var(--display); color: var(--ink-3); }
.auth-side small { color: var(--ink-3); font-size: .78rem; }
.auth-card { align-self: center; justify-self: center; width: 100%; max-width: 380px; padding: 48px 28px; display: grid; gap: 16px; }
.auth-card h1 { margin: 0 0 4px; font-size: 2rem; }
.auth-card label { display: grid; gap: 6px; font-weight: 500; font-size: .86rem; color: var(--ink-2); }
.auth-card label input { width: 100%; height: 44px; padding: 0 13px; font-size: .95rem; }
.auth-card .hint { font-weight: 400; font-size: .78rem; color: var(--ink-3); }
.auth-card .btn { width: 100%; height: 44px; margin-top: 6px; font-size: .9rem; }
.auth-alt { margin: 6px 0 0; font-size: .86rem; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 28px 28px; gap: 28px; }
  .auth-side ul, .auth-side small { display: none; }
  .auth-card { padding: 32px 28px 56px; }
}

/* ---- dates in words: the phrase is what you read; the date under it is for reference ---- */
.when-main { display: block; font-weight: 600; font-size: .92rem; }
.tone-late, .tone-passed { color: var(--red); }
.tone-today { color: var(--amber); }
.tone-soon { color: var(--ink); }
.tone-later { color: var(--ink-2); font-weight: 500; }
.row .sub.when { color: var(--ink-2); }
.row .sub.stay-arriving, .row .sub.stay-leaving { color: var(--amber); font-weight: 500; }
.row .sub.stay-staying { color: var(--green); }

/* ---- copied → "sent it?" → Done ---- */
.copied-note { display: none; font-size: .8rem; font-weight: 500; color: var(--amber); white-space: nowrap; }
.row .actions .copied-note { order: -1; flex-basis: 100%; text-align: right; }
.is-copied .copied-note { display: inline; }
.is-copied .done-btn { box-shadow: 0 0 0 3px #f3d3b3; }
.is-copied .copy-btn { color: var(--ink-3); }

@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 14px 2px; }
  .row .actions { justify-content: flex-start; }
  .row .actions .copied-note { text-align: left; }
  .head { padding: 28px 0 20px; }
  .section { margin-top: 36px; }
}

/* ---- stage tabs (reservations): an underline set on one rule ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 0 22px; margin-right: auto; border-bottom: 1px solid var(--line); align-self: stretch; align-items: end; }
.tabs a { position: relative; padding: 8px 0 10px; text-decoration: none; font-weight: 500; font-size: .9rem; color: var(--ink-3); transition: color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a span { font: 400 .8rem var(--body); color: var(--ink-4); margin-left: 5px; }
.tabs a[aria-current=page] { color: var(--ink); }
.tabs a[aria-current=page]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); }
.tabs a[aria-current=page] span { color: var(--ink-3); }

/* ---- file picker: a drop area, with the browser's button restyled to match ---- */
input[type=file] { display: block; width: 100%; padding: 26px 20px; border: 1px dashed var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink-3); font-size: .88rem; cursor: pointer; transition: border-color .15s, background .15s; }
input[type=file]:hover { border-color: var(--ink-3); background: #faf9f6; }
input[type=file]::file-selector-button { height: 34px; margin-right: 14px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff; font: 500 .84rem var(--body); cursor: pointer; }
.inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
h2.section { display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; font: 400 1.4rem var(--display); letter-spacing: -.01em; }
h2.section small { font: 300 1.4rem var(--display); color: var(--ink-4); }
h2.section + .card { margin-top: 0; }
