/* Rocket Host demo. Mobile first; colours follow Papaya Rocket Labs. */
:root {
	--rh-ink: #24113d;
	--rh-purple: #482477;
	--rh-orange: #ff8b42;
	--rh-paper: #fffdf9;
	--rh-card: #ffffff;
	--rh-muted: #6f6878;
	--rh-line: #eee8f2;
	--rh-soft: #f4f0f7;
	--rh-warn-bg: #fff4e8;
	--rh-warn: #a64b00;
	--rh-ok-bg: #e7f6ef;
	--rh-ok: #17694f;
	--rh-bad-bg: #fdecef;
	--rh-bad: #a3203f;
	--rh-radius: 16px;
	color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rh-paper); color: var(--rh-ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: var(--rh-purple); }
button, input, select, textarea { font: inherit; color: inherit; }
.rh-sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rh-skip { position: absolute; left: -9999px; }
.rh-skip:focus { left: 16px; top: 8px; z-index: 30; padding: 8px 12px; background: #fff; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--rh-orange); outline-offset: 2px; }

/* Top bar */
.rh-top { position: sticky; top: 0; z-index: 20; background: var(--rh-purple); color: #fff; }
.rh-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 10px 16px; }
.rh-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.rh-brand img { border-radius: 8px; background: #fff; }
.rh-viewer { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rh-viewer select { min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: #fff; color: var(--rh-ink); }
.rh-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; max-width: 760px; margin: 0 auto; padding: 6px 16px 8px; font-size: 12.5px; color: #e9def5; }
.rh-demo-actions { display: flex; align-items: center; gap: 8px; }
.rh-demo button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: transparent; color: #fff; font-size: 12.5px; cursor: pointer; }
.rh-demo button:hover { background: rgba(255,255,255,.12); }

/* Layout */
.rh-main { display: block; max-width: 760px; margin: 0 auto; padding: 20px 16px 24px; outline: none; }
.rh-head { margin-bottom: 18px; }
.rh-head h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; }
.rh-head p { margin: 4px 0 0; color: var(--rh-muted); }
.rh-head p::first-letter { text-transform: uppercase; }
.rh-back { display: inline-block; margin-bottom: 6px; font-size: 14px; font-weight: 700; text-decoration: none; }
.rh-section { margin-top: 24px; }
.rh-section h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; letter-spacing: -.01em; }
.rh-section h2::first-letter { text-transform: uppercase; }
.rh-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--rh-soft); color: var(--rh-purple); font-size: 13px; }
.rh-muted { color: var(--rh-muted); font-weight: 400; font-size: 14px; }
.rh-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--rh-line); border-radius: var(--rh-radius); color: var(--rh-muted); }
.rh-link { font-weight: 700; }

/* Cards */
.rh-card { position: relative; margin-bottom: 10px; padding: 14px 16px 14px 20px; border: 1px solid var(--rh-line); border-radius: var(--rh-radius); background: var(--rh-card); box-shadow: 0 4px 14px rgba(48,23,78,.05); }
.rh-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 5px; border-radius: 0 5px 5px 0; background: var(--rh-prop, var(--rh-purple)); }
.rh-card.is-cancelled { opacity: .7; }
.rh-card.is-cancelled strong { text-decoration: line-through; }
.rh-card-link { display: block; color: inherit; text-decoration: none; }
.rh-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rh-card-meta { display: block; margin-top: 3px; color: var(--rh-muted); font-size: 14px; }
.rh-card-who { margin: 8px 0 0; font-size: 14px; color: var(--rh-muted); }
.rh-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rh-flag { padding: 2px 9px; border-radius: 999px; background: var(--rh-soft); color: var(--rh-purple); font-size: 12.5px; font-weight: 700; }
.rh-flag--urgent { background: var(--rh-warn-bg); color: var(--rh-warn); }
.rh-flag--changed, .rh-flag--problem { background: var(--rh-bad-bg); color: var(--rh-bad); }
.rh-progress { display: block; margin-top: 6px; font-size: 13px; color: var(--rh-purple); font-weight: 700; }
.rh-chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--rh-soft); color: var(--rh-purple); }
.rh-chip--warn { background: var(--rh-warn-bg); color: var(--rh-warn); }
.rh-chip--in_progress { background: #e8f0fd; color: #1d4fa8; }
.rh-chip--done { background: var(--rh-ok-bg); color: var(--rh-ok); }
.rh-chip--cancelled { background: var(--rh-bad-bg); color: var(--rh-bad); }
.rh-assign { display: block; margin-top: 10px; }
.rh-assign select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #ddd3e6; border-radius: 12px; background: #fff; }
.rh-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--rh-bad-bg); color: var(--rh-bad); }
.rh-alert p { margin: 0; flex: 1 1 220px; }
.rh-list { margin: 0; padding: 0; list-style: none; }
.rh-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border: 1px solid var(--rh-line); border-radius: 14px; background: #fff; margin-bottom: 8px; }
.rh-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rh-prop); }
.rh-team li { justify-content: space-between; }
.rh-team li strong { flex: 1 1 auto; }

/* Buttons and forms */
.rh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--rh-purple); border-radius: 999px; background: var(--rh-purple); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.rh-btn:hover { background: #3a1c61; }
.rh-btn--ghost { background: #fff; color: var(--rh-purple); }
.rh-btn--ghost:hover { background: var(--rh-soft); }
.rh-btn--small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.rh-alert .rh-btn { border-color: var(--rh-bad); background: #fff; color: var(--rh-bad); }
.rh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rh-actions .rh-btn { flex: 1 1 200px; }
.rh-form { display: grid; gap: 16px; }
.rh-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.rh-form input, .rh-form textarea, .rh-detail textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ddd3e6; border-radius: 12px; background: #fff; font-weight: 400; }
.rh-form textarea, .rh-detail textarea { min-height: 0; resize: vertical; }
.rh-form fieldset { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--rh-line); border-radius: var(--rh-radius); }
.rh-form legend { padding: 0 6px; font-weight: 800; }
.rh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rh-hint { margin: 0; color: var(--rh-muted); font-size: 13.5px; font-weight: 400; }
.rh-demo-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--rh-warn-bg); color: var(--rh-warn); font-size: 13.5px; }
.rh-form--inline { grid-template-columns: 1fr auto; align-items: end; margin-top: 14px; }
.rh-form--inline + .rh-demo-note { margin-top: 14px; }

/* Cleaning detail */
.rh-detail-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.rh-checklist { margin: 0; padding: 0; list-style: none; border: 1px solid var(--rh-line); border-radius: var(--rh-radius); background: #fff; }
.rh-checklist li + li { border-top: 1px solid var(--rh-line); }
.rh-check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; cursor: pointer; }
.rh-check input { flex: none; width: 24px; height: 24px; accent-color: var(--rh-purple); }
.rh-check input:checked + span { color: var(--rh-muted); text-decoration: line-through; }
.rh-problem { margin-top: 8px; padding: 8px 0; }
.rh-problem input:checked + span { color: var(--rh-bad); text-decoration: none; font-weight: 700; }

/* Tabs */
.rh-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 6px; padding-bottom: 4px; }
.rh-tab { flex: none; padding: 8px 14px; border: 1px solid var(--rh-line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.rh-tab[aria-current] { border-color: var(--rh-purple); background: var(--rh-purple); color: #fff; }

/* Calendar */
.rh-cal-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.rh-cal-scroll { max-width: 100%; contain: inline-size; overflow-x: auto; border: 1px solid var(--rh-line); border-radius: var(--rh-radius); background: #fff; }
.rh-cal { display: grid; grid-template-columns: 118px repeat(14, minmax(40px, 1fr)); min-width: 680px; }
.rh-cal-corner { position: sticky; left: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--rh-line); }
.rh-cal-day { display: grid; justify-items: center; padding: 6px 0; border-bottom: 1px solid var(--rh-line); font-size: 12px; color: var(--rh-muted); text-transform: uppercase; }
.rh-cal-day strong { color: var(--rh-ink); font-size: 15px; }
.rh-cal-day.is-today strong { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rh-orange); color: #fff; }
.rh-cal-name { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; grid-column: 1; padding: 0 8px 0 14px; border-bottom: 1px solid var(--rh-line); background: #fff; font-size: 13px; font-weight: 800; line-height: 1.2; box-shadow: inset 4px 0 0 var(--rh-prop); }
.rh-cal-cell { border-bottom: 1px solid var(--rh-line); border-left: 1px solid var(--rh-line); }
.rh-cal-cell.is-today { background: #fff7f0; }
.rh-bar { z-index: 1; align-self: center; margin: 0 3px; height: 26px; overflow: hidden; padding: 0 8px; border-radius: 8px; background: var(--rh-prop); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 26px; white-space: nowrap; text-overflow: ellipsis; }
.rh-bar.cut-start { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.rh-bar.cut-end { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rh-bar.is-blocked { background: repeating-linear-gradient(135deg, #d9d3df 0 6px, #ebe6ef 6px 12px); color: var(--rh-muted); }
.rh-mark { position: relative; z-index: 2; align-self: end; justify-self: center; display: block; width: 14px; height: 14px; margin-bottom: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--rh-purple); box-shadow: 0 0 0 1px var(--rh-purple); }
.rh-mark.is-unassigned { background: var(--rh-orange); box-shadow: 0 0 0 1px var(--rh-warn); }
.rh-mark--done { background: var(--rh-ok); box-shadow: 0 0 0 1px var(--rh-ok); }
.rh-mark--in_progress { background: #1d4fa8; box-shadow: 0 0 0 1px #1d4fa8; }
.rh-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; color: var(--rh-muted); font-size: 13px; }
.rh-legend .rh-mark { display: inline-block; margin: 0 0 0 6px; }

/* Bottom navigation */
.rh-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rh-line); background: rgba(255,255,255,.97); }
.rh-nav[hidden] { display: none; }
.rh-nav a { flex: 1 1 0; max-width: 140px; padding: 10px 4px; border-radius: 12px; color: var(--rh-muted); font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.rh-nav a[aria-current] { background: var(--rh-soft); color: var(--rh-purple); }

@media (min-width: 700px) {
	.rh-head h1 { font-size: 34px; }
	.rh-nav { top: auto; }
}
