/* Host admin after docs/screens/admin (A1–A16): phone-first, on base.css
   (palette, Cormorant Garamond + Inter). On a wide screen it is a centered
   column the width of a phone. */

html, body { margin: 0; }
* { box-sizing: border-box; }
.adm-body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-dusk-top) 0%, var(--bg-dusk-upper-mid) 38%, var(--bg-dusk-lower-mid) 72%, var(--bg-dusk-bottom) 100%) fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.adm { max-width: 480px; margin: 0 auto; padding: 22px 20px 56px; display: flex; flex-direction: column; gap: 20px; min-height: 100vh; }
.adm a { color: inherit; }
.adm a.adm-btn { color: var(--text-dark-nav); }
.adm a.adm-btn--ghost { color: var(--text-primary); }
.adm a.adm-btn--danger { color: #f2b4a0; }
.adm :focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 3px; }
.adm p { margin: 0; }

/* top: back and home */
.adm-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.adm-icon-link { display: inline-grid; place-content: center; width: 48px; height: 48px; margin: -4px; color: var(--text-primary); text-decoration: none; }

/* headings */
.adm-head { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.adm-title { font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.adm-title--hello { font-size: 46px; margin-top: 24px; }
.adm-sub { color: var(--text-secondary); font-size: 15px; }
.adm-foot { text-align: center; color: var(--text-secondary); font-size: 15px; }

/* home tiles */
.adm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; margin: 18px 0 10px; }
.adm-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; }
.adm-tile span:first-child { width: 92px; height: 92px; border-radius: 50%; border: 1.5px solid var(--border-circle); display: grid; place-content: center; background: rgba(255, 255, 255, 0.03); }

/* cards and fields */
.adm-card { background: var(--surface-card-glass); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(10px); }
.adm-card--inner { background: rgba(20, 26, 34, 0.35); border-radius: 16px; padding: 14px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-secondary); }
.adm-input, .adm-field input:not([type=checkbox]):not([type=radio]):not([type=range]), .adm-field select, .adm-field textarea {
  font: inherit; font-size: 15px; color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px;
  min-height: 44px; padding: 10px 14px; width: 100%;
}
.adm-field textarea { min-height: 88px; resize: vertical; }
.adm-field select option { color: #222; }
.adm-field input:read-only { color: var(--text-secondary); font-family: ui-monospace, Menlo, monospace; }
.adm-field ::placeholder { color: var(--text-muted); }
.adm-row { display: flex; gap: 10px; align-items: center; }
.adm-row > * { flex: 1; min-width: 0; }
.adm-row > .adm-auto { flex: none; }
.adm-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.adm-label { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.adm-dim { color: var(--text-secondary); font-size: 14px; }
.adm-hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); margin: 4px 0; width: 100%; }

/* toggles (a checkbox drawn as a switch) */
.adm-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; min-height: 44px; cursor: pointer; }
.adm-switch input { appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); position: relative; cursor: pointer; margin: 0; }
.adm-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.adm-switch input:checked { background: #fff; }
.adm-switch input:checked::after { left: 23px; background: var(--surface-charcoal); }
.adm-check { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 10px; padding: 0 12px; min-height: 44px; }
.adm-check input[type=checkbox] { width: 20px; height: 20px; accent-color: #fff; margin: 0; flex: none; }
.adm-check--part { align-items: flex-start; padding: 12px; }
.adm-check--part input[type=checkbox] { margin-top: 2px; }
.adm-check--part small { display: block; color: var(--text-secondary); font-size: 13px; margin-top: 2px; }
.adm-manual { min-height: 320px !important; font-size: 14px !important; }
.adm-check input[type=text] { flex: 1; background: none; border: 0; color: inherit; font: inherit; font-size: 15px; min-height: 42px; }

/* buttons */
.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center; min-height: 48px; padding: 0 32px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: var(--text-dark-nav); font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.adm-btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); border-color: rgba(255, 255, 255, 0.6); }
.adm-btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; align-self: auto; }
.adm-btn--wide { align-self: stretch; }
.adm-btn--danger { background: none; border-color: transparent; color: #f2b4a0; text-decoration: underline; padding: 0; min-height: 44px; }
.adm-link { color: var(--text-primary); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.adm-link--gold { color: #F0D48A; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.adm-inline { display: inline; margin: 0; }

/* chips, status */
.adm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); color: var(--text-secondary); white-space: nowrap; }
.adm-chip--gold { border-color: rgba(240, 212, 138, 0.7); color: #F0D48A; background: rgba(240, 212, 138, 0.1); }
.adm-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); display: inline-block; }
.adm-dot--online { background: #5fd38d; }
.adm-dot--waiting { background: #F0D48A; }
.adm-ok { color: #8fe0ac; font-size: 14px; }
.adm-error { color: #ffc4b0; font-size: 14px; }
.adm-flash { text-align: center; font-size: 14.5px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); }

/* houses */
.adm-house { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.adm-cover { height: 92px; border-radius: 14px; background: linear-gradient(115deg, #3a4a5c 0%, #6f6a62 55%, #c8925e 100%); display: flex; align-items: flex-end; padding: 10px 12px; font-size: 13px; color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.2); }
.adm-cover--draft { background: linear-gradient(115deg, #2f3a48 0%, #4a5361 100%); }
.adm-house-name { font-size: 19px; font-weight: 500; }

/* amenities */
.adm-amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.adm-amenity { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; text-align: center; }
.adm-amenity span:first-child { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); display: grid; place-content: center; }
.adm-amenity.is-on { color: var(--text-primary); }
.adm-amenity.is-on span:first-child { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.adm-amenity.is-editing span:first-child { box-shadow: 0 0 0 3px rgba(240, 212, 138, 0.6); }

/* local guide rows */
.adm-place { gap: 8px; }

/* pairing code */
.adm-mono { font-family: ui-monospace, Menlo, monospace; font-size: 14px; word-break: break-all; }
.adm-code { display: flex; gap: 6px; justify-content: center; }
.adm-code span { width: 34px; height: 50px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.45); display: grid; place-content: center; font-size: 22px; background: rgba(255, 255, 255, 0.06); }
.adm-code-input { font-family: ui-monospace, Menlo, monospace !important; letter-spacing: 0.3em; text-transform: uppercase; }

/* review */
.adm-review { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; font-size: 14.5px; }
.adm-review strong { font-weight: 500; }
.adm-preview { align-self: center; width: 150px; height: 230px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.6); background: linear-gradient(180deg, #1E2E3E 0%, #3A4B5C 40%, #C8925E 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; }
.adm-preview strong { font-family: var(--font-serif); font-weight: 400; font-size: 20px; line-height: 1.1; }
.adm-preview small { font-size: 10px; color: var(--text-secondary); }
.adm-preview em { font-style: normal; font-size: 9px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; padding: 3px 10px; margin-top: 6px; }

/* stays */
.adm-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.adm-day { font-size: 12.5px; text-align: center; padding: 6px 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22); }
.adm-day.is-booked { background: rgba(200, 146, 94, 0.45); border-color: rgba(240, 212, 138, 0.55); }
.adm-day.is-active { background: rgba(240, 212, 138, 0.75); color: var(--text-dark-nav); }
.adm-stay { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); font-size: 14.5px; }
.adm-stay.is-active { border-color: #fff; background: rgba(255, 255, 255, 0.16); }
.adm-stay strong { font-weight: 500; }

/* panels */
.adm-range { width: 100%; accent-color: #E5A970; }

/* activity */
.adm-event { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.adm-event strong { font-weight: 500; }
.adm-event small { color: var(--text-secondary); font-size: 12.5px; }

/* houses picker */
.adm-pick { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); min-height: 56px; }

/* Lists that grow: a row's tools, top right; + Add under the last row. */
.adm-list { display: grid; gap: 10px; }
.adm-item { position: relative; display: grid; gap: 8px; }
.adm-item:has(.adm-item-tools:not([hidden])) { padding-top: 44px; }
.adm-item-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.adm-tool { min-width: 36px; min-height: 32px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.1); color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.adm-tool--remove { color: #f2b8a2; }
.adm-list > [data-add] { justify-self: start; }
.adm-note { margin: -6px 0 6px; font-size: 13px; }

/* Review: what the house still needs before going live. */
.adm-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.adm-check-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.adm-check-item.is-ok { color: rgba(255, 255, 255, 0.55); }
.adm-check-item.is-must { color: #f3c88a; }

/* Stays: Edit next to Set active; past stays as quiet rows. Inbox: done rows fade. */
.adm-stay-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.adm-stay--past { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: inherit; text-decoration: none; }
.adm-event.is-done { opacity: 0.55; }
.adm-note-body { font-weight: 400; white-space: pre-wrap; }
.adm-pick--todo { border-color: rgba(243, 200, 138, 0.6); }

/* Photos: added with JavaScript only; the preview shows once there is one. */
.adm-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-photo-img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; display: none; }
.adm-photo.has-photo .adm-photo-img { display: block; }
.adm-photo-pick { display: none; position: relative; overflow: hidden; }
.adm-photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-js .adm-photo-pick { display: inline-flex; }
.adm-photo-remove { display: none; }
.adm-js .adm-photo.has-photo .adm-photo-remove { display: inline-block; }
.adm-photo.is-busy { opacity: 0.6; }

/* The platform console: numbers at a glance. */
.adm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.adm-stat { display: grid; gap: 2px; }
.adm-stat strong { font-family: var(--font-serif); font-size: 34px; font-weight: 400; }
.adm-stars { color: #f3c88a; letter-spacing: 2px; font-size: 16px; }

/* Fleet (H41) */
.adm-fleet-row { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.adm-fleet-row .adm-split { gap: 8px; justify-content: flex-start; }
.adm-fleet-row .adm-split strong { flex: 1; }
.adm-spark svg { display: block; color: var(--accent-amber); margin-top: 6px; }
.adm-scroll { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.adm-table th, .adm-table td { text-align: left; padding: 6px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); white-space: nowrap; }
.adm-table th { color: var(--text-secondary); font-weight: 500; }
