/* Owner area + /host landing page. Builds on site.css tokens. */

.cluster-tight { --gap: 8px; }
.cluster-end { justify-content: flex-end; }
.text-ink { color: var(--c-ink); }

/* Page heads */
.owner-head, .owner-edit-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.owner-edit-head h1 { font-size: var(--fs-2xl); }
.owner-nav .tabs { margin-top: 12px; }

/* Layout */
.owner-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.owner-grid > * { min-width: 0; }
.nudge-list { margin: 6px 0 0; padding-left: 18px; }
.nudge-list li + li { margin-top: 4px; }
@media (min-width: 1000px) { .owner-grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; } }
.nudges { display: grid; gap: 10px; }
.nudges .alert + .alert { margin-top: 0; }

/* Next check-ins */
.checkins { list-style: none; padding: 0; display: grid; gap: 14px; }
.checkins li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.checkins .badge { margin-left: 6px; }
.date-badge { display: grid; place-items: center; width: 52px; padding: 6px 0; border-radius: var(--r); background: var(--c-brand-50); color: var(--c-brand-700); line-height: 1.1; }
.date-badge span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.date-badge strong { font-size: 1.25rem; }

/* Listings table */
.listing-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-actions { white-space: nowrap; text-align: right; }
@media (max-width: 719.98px) {
    .table-stack td.cell-actions { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; margin-top: 6px; }
    .listing-cell { min-width: 0; }
}

/* Earnings chart (dataviz specs: <=24px columns, 4px rounded tops, hairline grid, text in ink tokens) */
.chart-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.chart { display: block; width: 100%; min-width: 560px; height: auto; }
.chart-grid line { stroke: var(--c-line); stroke-width: 1; shape-rendering: crispEdges; }
.chart-base { stroke: var(--c-line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.chart-tick, .chart-x { fill: var(--c-muted); font-size: 12px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-value { fill: var(--c-ink); font-size: 12px; font-weight: 700; font-family: var(--font); }
.chart-col { fill: var(--c-brand); transition: fill .15s; }
.chart-hit { fill: transparent; }
.chart-bar { cursor: default; outline: none; }
.chart-bar:hover .chart-col, .chart-bar:focus-visible .chart-col { fill: var(--c-brand-700); }
.chart-bar:hover .chart-hit, .chart-bar:focus-visible .chart-hit { fill: var(--c-bg-soft); }
.chart-bar.is-current .chart-x { fill: var(--c-ink); font-weight: 700; }
.chart-tip {
    position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: var(--r-sm);
    background: var(--c-ink); color: #fff; font-size: var(--fs-xs); line-height: 1.35; box-shadow: var(--shadow); white-space: nowrap;
    transform: translate(-50%, calc(-100% - 10px));
}
.chart-tip strong { display: block; font-size: var(--fs-sm); }
.chart-tip span { color: #C7D4E2; }
.chart-table { margin-top: 12px; font-size: var(--fs-sm); }
.chart-table summary { cursor: pointer; color: var(--c-brand); font-weight: 700; }

/* Segmented filter (bookings) */
.segmented { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill);
    border: 1px solid var(--c-line-strong); color: var(--c-ink-2); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap;
}
.segmented a:hover { border-color: var(--c-brand); color: var(--c-ink); }
.segmented a[aria-current="page"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.seg-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--c-bg-sunk); color: var(--c-ink-2); font-size: 11px; }
.segmented a[aria-current="page"] .seg-count { background: rgba(255,255,255,.18); color: #fff; }

/* Listing form */
.owner-form { padding-bottom: 8px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.file-list { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--c-ink-2); }
.file-list:empty { display: none; }
.file-list li::before { content: "📎 "; }
.dropzone { position: relative; }
.jump-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-sm); font-weight: 700; margin-top: 12px; }
.jump-links a { text-decoration: none; }
.windows li { align-items: center; }
.windows li > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.window-dates { font-weight: 600; }
.seg { display: flex; gap: 8px; }
.seg .check { flex: 1; padding: 10px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); align-items: center; min-height: 46px; }
.seg .check:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-50); }
fieldset.form-section { min-width: 0; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; }
.form-section > .card-head { margin-bottom: 12px; }
.form-section-title { margin: 0; }

/* /host landing */
.host-hero .hero-inner { align-items: center; }
.host-eyebrow { color: var(--c-aqua); }
.host-cta { align-items: center; }
.host-btn { --btn-bg: #fff; --btn-fg: var(--c-navy); --btn-bd: #fff; }
.host-btn:hover { background: var(--c-brand-50); color: var(--c-navy); }
.host-btn-ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.host-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.host-note { font-size: var(--fs-sm); color: #CFE2EF; }
.earnings-card { color: var(--c-ink); box-shadow: var(--shadow-lg); border: 0; }
.earnings-title { font-size: var(--fs-xl); }
.host-list { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 20px; }
.host-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-ink-2); }
.host-list svg { width: 22px; height: 22px; flex: none; color: var(--c-success); margin-top: 1px; }
ol.steps { list-style: none; padding: 0; }
