:root {
  color-scheme: light;
  --rk-bg: #f7f9fc;
  --rk-surface: #ffffff;
  --rk-surface-muted: #f1f5f9;
  --rk-text: #0f172a;
  --rk-text-secondary: #475569;
  --rk-text-muted: #64748b;
  --rk-border: #dbe3ee;
  --rk-icon: #475569;
  --rk-brand: #1d4ed8;
  --rk-brand-hover: #1e40af;
  --rk-brand-soft: #eff6ff;
  --rk-brand-text: #1d4ed8;
  --rk-verified: #15803d;
  --rk-success: #15803d;
  --rk-success-soft: #f0fdf4;
  --rk-warning: #b45309;
  --rk-warning-soft: #fffbeb;
  --rk-danger: #b91c1c;
  --rk-danger-soft: #fef2f2;
  --rk-profile-green: #eefaf4;
  --rk-profile-warm: #fff5ef;
  --rk-profile-blue: #eef5ff;
  --rk-profile-item: rgb(255 255 255 / 0.78);
  --rk-on-brand: #ffffff;
  --rk-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
}

html.dark {
  color-scheme: dark;
  --rk-bg: #090f1d;
  --rk-surface: #111827;
  --rk-surface-muted: #182235;
  --rk-text: #f8fafc;
  --rk-text-secondary: #cbd5e1;
  --rk-text-muted: #94a3b8;
  --rk-border: #334155;
  --rk-icon: #cbd5e1;
  --rk-brand: #1d4ed8;
  --rk-brand-hover: #1e40af;
  --rk-brand-soft: #172554;
  --rk-brand-text: #60a5fa;
  --rk-verified: #00ff00;
  --rk-success: #4ade80;
  --rk-success-soft: #052e16;
  --rk-warning: #fbbf24;
  --rk-warning-soft: #451a03;
  --rk-danger: #f87171;
  --rk-danger-soft: #450a0a;
  --rk-profile-green: #10271f;
  --rk-profile-warm: #2b1d1a;
  --rk-profile-blue: #111f3a;
  --rk-profile-item: rgb(15 23 42 / 0.72);
  --rk-on-brand: #ffffff;
  --rk-shadow: 0 10px 28px rgb(0 0 0 / 0.35);
}

html { background: var(--rk-bg); }
body { background-color: var(--rk-bg) !important; color: var(--rk-text) !important; }

/* Semantic design-system utilities for new and updated markup. */
.rk-bg { background-color: var(--rk-bg) !important; }
.rk-surface { background-color: var(--rk-surface) !important; }
.rk-surface-muted { background-color: var(--rk-surface-muted) !important; }
.rk-text { color: var(--rk-text) !important; }
.rk-text-secondary { color: var(--rk-text-secondary) !important; }
.rk-text-muted { color: var(--rk-text-muted) !important; }
.rk-border { border-color: var(--rk-border) !important; }
.rk-icon { color: var(--rk-icon) !important; }
.rk-icon-button { background-color: var(--rk-surface-muted) !important; color: var(--rk-icon) !important; }
.rk-icon-button:hover { filter: brightness(0.94); }
.rk-brand { color: var(--rk-brand) !important; }
.rk-brand-text { color: var(--rk-brand-text) !important; }
.rk-brand-bg { background-color: var(--rk-brand) !important; color: var(--rk-on-brand) !important; }
.rk-brand-bg:hover { background-color: var(--rk-brand-hover) !important; }
.rk-brand-soft { background-color: var(--rk-brand-soft) !important; color: var(--rk-brand-text) !important; }
.rk-success { color: var(--rk-success) !important; }
.rk-success-soft { background-color: var(--rk-success-soft) !important; }
.rk-verified, [title^="Verified"], [title*=" Verified"] { color: var(--rk-verified) !important; }
.rk-warning { color: var(--rk-warning) !important; }
.rk-danger { color: var(--rk-danger) !important; }
.rk-danger-soft { background-color: var(--rk-danger-soft) !important; }
.rk-shadow { box-shadow: var(--rk-shadow) !important; }
.rk-nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--rk-text-secondary) !important;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .45rem;
  transition: color .15s, text-decoration-color .15s;
}
.rk-nav-link:hover,
.rk-nav-active {
  color: var(--rk-brand-text) !important;
}
.rk-nav-active {
  font-weight: 800;
  text-decoration-color: var(--rk-brand);
}
.rk-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  color: var(--rk-text-secondary) !important;
  -webkit-tap-highlight-color: transparent;
  transition: color .08s, transform .08s;
}
.rk-bottom-nav-active {
  color: var(--rk-brand-text) !important;
  font-weight: 800;
}
.rk-bottom-nav-link:active {
  transform: scale(.96);
  color: var(--rk-brand-text) !important;
}
.rk-bottom-nav-active svg {
  stroke-width: 2.4;
}
.rk-bottom-nav-active .rk-post-nav-button {
  background: var(--rk-brand);
}
.rk-hero {
  background: linear-gradient(135deg, var(--rk-bg), var(--rk-surface), var(--rk-brand-soft)) !important;
}
.rk-profile-hero {
  background:
    radial-gradient(circle at 18% 30%, rgb(255 255 255 / 0.88), transparent 23%),
    radial-gradient(circle at 78% 18%, rgb(216 180 254 / 0.72), transparent 30%),
    radial-gradient(circle at 62% 95%, rgb(125 211 252 / 0.8), transparent 34%),
    linear-gradient(130deg, #60a5fa 0%, #3b82f6 35%, #6366f1 70%, #a78bfa 100%);
}
.rk-profile-hero::before,
.rk-profile-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
}
.rk-profile-hero::before {
  background: rgb(255 255 255 / 0.22);
  height: 15rem;
  left: -3rem;
  top: 45%;
  transform: rotate(-12deg);
  width: 65%;
}
.rk-profile-hero::after {
  background: rgb(29 78 216 / 0.18);
  height: 12rem;
  right: -2rem;
  top: 38%;
  transform: rotate(10deg);
  width: 58%;
}
html.dark .rk-profile-hero {
  background:
    radial-gradient(circle at 18% 28%, rgb(59 130 246 / 0.48), transparent 26%),
    radial-gradient(circle at 80% 15%, rgb(139 92 246 / 0.42), transparent 31%),
    radial-gradient(circle at 55% 100%, rgb(14 165 233 / 0.35), transparent 35%),
    linear-gradient(135deg, #153e75 0%, #1e3a8a 44%, #4338ca 74%, #581c87 100%);
}
.rk-profile-blue-panel { background-color: var(--rk-profile-blue) !important; }
.rk-profile-green-panel { background-color: var(--rk-profile-green) !important; }
.rk-profile-warm-panel { background-color: var(--rk-profile-warm) !important; }
.rk-profile-item { background-color: var(--rk-profile-item) !important; }
/* Roommate editor: scoped surfaces preserve the shared input/brand palette. */
.rk-edit-page { padding: 32px 16px 48px; background: radial-gradient(ellipse at top left, var(--rk-brand-soft), transparent 65%); }
.rk-edit-shell { max-width: 940px; margin: auto; padding: 32px; border-radius: 28px; background: var(--rk-surface); box-shadow: var(--rk-shadow); }
.rk-edit-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rk-edit-eyebrow { color: var(--rk-brand-text); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.rk-edit-header h1 { margin: 8px 0; color: var(--rk-text); font-size: clamp(25px, 4vw, 34px); font-weight: 800; letter-spacing: -.035em; }
.rk-edit-header p:not(.rk-edit-eyebrow) { color: var(--rk-text-secondary); font-size: 14px; }
.rk-edit-header-icon { display: grid; place-items: center; flex-shrink: 0; width: 88px; height: 88px; border-radius: 50%; background: var(--rk-brand-soft); color: var(--rk-brand-text); box-shadow: 0 0 0 12px var(--rk-profile-blue); }
.rk-edit-header-icon svg { width: 44px; height: 44px; }
.rk-edit-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 28px 0 20px; font-size: 11px; color: var(--rk-text-muted); }
.rk-edit-progress > div { width: 100%; height: 4px; border-radius: 8px; background: var(--rk-surface-muted); overflow: hidden; }
#profile-progress-fill { display: block; height: 100%; background: var(--rk-brand-text); transition: width .2s; }
.rk-edit-section { margin-top: 18px; border-radius: 20px; padding: 24px; }
.rk-edit-about, .rk-edit-location { background: var(--rk-profile-blue); }
.rk-edit-lifestyle { background: var(--rk-profile-green); }
.rk-edit-preferences { background: var(--rk-profile-warm); }
.rk-edit-visibility { background: var(--rk-surface-muted); }
.rk-edit-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rk-edit-step { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 13px; background: var(--rk-surface); color: var(--rk-brand-text); font-size: 17px; font-weight: 800; }
.rk-edit-section h2 { color: var(--rk-text); font-size: 17px; font-weight: 750; }
.rk-edit-section-heading p { margin-top: 3px; font-size: 12px; color: var(--rk-text-secondary); }
.rk-edit-section-state { margin-left: auto; }
.rk-edit-section.is-complete .rk-edit-section-state::after { content: "✓"; color: var(--rk-success); font-weight: 800; }
.rk-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rk-edit-field { min-width: 0; }
.rk-edit-field > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; color: var(--rk-text); }
.rk-edit-control { position: relative; }
.rk-edit-field-icon { position: absolute; z-index: 1; left: 13px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--rk-brand-text); pointer-events: none; }
.rk-edit-field-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-edit-control :is(input:not([type=checkbox]), select) { padding-left: 42px !important; }
.rk-edit-control:focus-within .rk-edit-field-icon { color: var(--rk-brand); }
.rk-edit-field-error { margin: -7px; padding: 7px; border-radius: 13px; background: var(--rk-danger-soft); box-shadow: inset 0 0 0 1px var(--rk-danger); }
.rk-edit-field-error > label, .rk-edit-field-error .rk-edit-field-icon { color: var(--rk-danger); }
.rk-edit-field-error :is(input:not([type=checkbox]), select, textarea) { border-color: var(--rk-danger) !important; box-shadow: 0 0 0 3px var(--rk-danger-soft); }
.rk-edit-section:has(.rk-edit-field-error) { box-shadow: inset 4px 0 0 var(--rk-danger); }
.rk-edit-field + .rk-edit-grid, .rk-edit-grid + .rk-edit-field { margin-top: 18px; }
.rk-edit-optional { display: inline-block; margin-left: 6px; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; color: var(--rk-text-muted); font-weight: 500; }
.rk-edit-hint, .rk-edit-bio-help { margin-top: 7px; font-size: 11px; color: var(--rk-text-muted); line-height: 1.5; }
.rk-edit-bio-help { display: flex; justify-content: space-between; gap: 14px; }
#bio-counter { white-space: nowrap; }
.rk-edit-shell input:not([type=checkbox]), .rk-edit-shell select, .rk-edit-shell textarea { width: 100%; min-height: 46px; border: 1px solid var(--rk-border); border-radius: 11px; padding: 11px 13px; font-size: 14px; transition: box-shadow .15s, border-color .15s; }
.rk-edit-shell textarea { resize: vertical; min-height: 110px; }
.rk-edit-shell :is(input, select, textarea):focus-visible { outline: 2px solid var(--rk-brand-text); outline-offset: 2px; }
.rk-edit-shell [aria-invalid=true] { border-color: var(--rk-danger) !important; }
.rk-edit-toggle { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 16px; background: var(--rk-surface); cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .03); }
.rk-edit-toggle:has(input:checked) { box-shadow: inset 0 0 0 1px var(--rk-brand-text); }
.rk-edit-toggle input { margin-top: 2px; accent-color: var(--rk-brand); flex-shrink: 0; }
.rk-edit-toggle strong { display: block; font-size: 12px; color: var(--rk-text); }
.rk-edit-toggle small { display: block; margin-top: 4px; font-size: 11px; color: var(--rk-text-secondary); }
.rk-edit-actions { position: sticky; bottom: 12px; z-index: 15; display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px; background: var(--rk-surface); border-radius: 15px; box-shadow: var(--rk-shadow); }
.rk-edit-actions > span { margin-right: auto; font-size: 11px; color: var(--rk-text-muted); }
.rk-edit-actions a, .rk-edit-actions button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 11px; font-size: 13px; font-weight: 700; }
.rk-edit-cancel { background: var(--rk-surface-muted); color: var(--rk-text); }
.rk-edit-actions button:disabled { opacity: .65; cursor: wait; }
.rk-edit-errors { padding: 14px; border-radius: 12px; color: var(--rk-danger); background: var(--rk-danger-soft); font-size: 13px; }
@media (max-width: 639px) {
  .rk-edit-page { padding: 16px 10px 28px; }
  .rk-edit-shell { padding: 20px 12px 12px; border-radius: 20px; }
  .rk-edit-header { padding: 0 4px; gap: 14px; }
  .rk-edit-header-icon { width: 48px; height: 48px; box-shadow: none; }
  .rk-edit-header-icon svg { width: 28px; height: 28px; }
  .rk-edit-header p:not(.rk-edit-eyebrow) { font-size: 12px; line-height: 1.5; }
  .rk-edit-section { padding: 16px; border-radius: 16px; }
  .rk-edit-grid { grid-template-columns: 1fr; gap: 16px; }
  .rk-edit-section-heading { gap: 10px; }
  .rk-edit-section h2 { font-size: 15px; }
  .rk-edit-section-heading p { font-size: 11px; }
  .rk-edit-shell input:not([type=checkbox]), .rk-edit-shell select, .rk-edit-shell textarea { font-size: 16px; }
  .rk-edit-actions { bottom: calc(76px + env(safe-area-inset-bottom)); gap: 8px; }
  .rk-edit-actions > span { display: none; }
  .rk-edit-actions a { flex: 1; }
  .rk-edit-actions button { flex: 2; padding-inline: 12px; }
}
/* Three-step room editor. Review is a sub-view of step three, not a fourth step. */
.rk-room-editor-page { min-height: 100vh; background: radial-gradient(circle at 15% 0%, var(--rk-brand-soft), transparent 34%), var(--rk-bg); }
.rk-room-editor { padding: 28px; border-radius: 28px; background: var(--rk-surface); box-shadow: var(--rk-shadow); }
.rk-room-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rk-room-editor-eyebrow { display: inline-block; border-radius: 6px; padding: 3px 7px; background: var(--rk-brand-soft); color: var(--rk-brand-text); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.rk-room-editor-hero-icon { display: grid; place-items: center; width: 92px; height: 72px; flex-shrink: 0; border-radius: 24px; background: linear-gradient(145deg, var(--rk-brand-soft), var(--rk-profile-green)); color: var(--rk-brand-text); }
.rk-room-editor-hero-icon svg { width: 48px; height: 48px; }
.rk-room-progress { max-width: 760px; margin-inline: auto; padding: 18px 8px 4px; }
.rk-room-progress .step-item { width: 118px; flex-shrink: 0; }
.rk-room-progress .step-circle { box-shadow: 0 0 0 5px var(--rk-surface); transition: background-color .2s, color .2s; }
.rk-room-progress .step-line { border-radius: 999px; transition: background-color .2s; }
.rk-room-editor-form { background: color-mix(in srgb, var(--rk-surface-muted) 48%, var(--rk-surface)); box-shadow: inset 0 0 0 1px var(--rk-border); }
.rk-room-editor .form-step, .rk-room-editor #reviewStage { animation: rk-room-step-in .2s ease-out; }
@keyframes rk-room-step-in { from { opacity: 0; transform: translateY(5px); } }
.rk-room-step-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.rk-room-step-heading h2 { color: var(--rk-text); font-size: 18px; font-weight: 800; }
.rk-room-step-heading p { margin-top: 2px; color: var(--rk-text-secondary); font-size: 12px; }
.rk-room-step-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 15px; background: var(--rk-brand-soft); color: var(--rk-brand-text); }
.rk-room-step-icon-green { background: var(--rk-success-soft); color: var(--rk-success); }
.rk-room-step-icon-warm { background: var(--rk-danger-soft); color: var(--rk-danger); }
.rk-room-step-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-room-editor-form label { color: var(--rk-text) !important; }
.rk-room-control { position: relative; }
.rk-room-field-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; color: var(--rk-brand-text); }
.rk-room-field-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-room-control > .rk-room-field-icon { position: absolute; z-index: 2; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.rk-room-control-textarea > .rk-room-field-icon { top: 15px; transform: none; }
.rk-room-control > :is(input, select, textarea) { padding-left: 43px !important; }
.rk-room-control:focus-within > .rk-room-field-icon { color: var(--rk-brand); }
.rk-room-control-whatsapp > .rk-room-field-icon { color: var(--rk-success); }
.rk-room-control-whatsapp > .rk-room-field-icon svg { fill: currentColor !important; stroke: none !important; }
.rk-room-description-help { display: flex; justify-content: space-between; gap: 14px; margin-top: 7px; font-size: 11px; color: var(--rk-text-muted); line-height: 1.5; }
.rk-room-editor-form input:not([type=checkbox], [type=file]), .rk-room-editor-form select, .rk-room-editor-form textarea { width: 100%; border-color: var(--rk-border) !important; background: var(--rk-surface) !important; color: var(--rk-text) !important; box-shadow: 0 1px 2px rgb(0 0 0 / .025); transition: border-color .15s, box-shadow .15s; }
.rk-room-editor-form :is(input:not([type=checkbox], [type=file]), select, textarea):focus { border-color: var(--rk-brand-text) !important; box-shadow: 0 0 0 3px var(--rk-brand-soft); }
.rk-room-editor-form .rk-room-invalid { border-color: var(--rk-danger) !important; box-shadow: 0 0 0 3px var(--rk-danger-soft) !important; }
.rk-room-facility-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rk-room-facility-grid .rk-room-amenity { position: relative; min-height: 48px; border-bottom: 1px solid var(--rk-border); cursor: pointer; transition: color .15s, border-color .15s, transform .15s; }
.rk-room-facility-grid .rk-room-amenity:hover { transform: translateX(2px); color: var(--rk-brand-text) !important; }
.rk-room-amenity input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rk-room-amenity::after { content: ""; width: 18px; height: 18px; margin-left: auto; border: 1.5px solid var(--rk-border); border-radius: 50%; }
.rk-room-amenity:has(input:checked) { border-color: var(--rk-brand-text); color: var(--rk-brand-text) !important; font-weight: 700; }
.rk-room-amenity:has(input:checked)::after { content: "✓"; display: grid; place-items: center; border-color: var(--rk-brand); background: var(--rk-brand); color: var(--rk-on-brand); font-size: 11px; }
.rk-room-amenity:focus-within { outline: 2px solid var(--rk-brand-text); outline-offset: 2px; border-radius: 5px; }
#agreement { accent-color: var(--rk-brand); }
.rk-room-photo-drop { cursor: pointer; border-color: color-mix(in srgb, var(--rk-brand) 55%, var(--rk-border)); background: var(--rk-brand-soft); }
.rk-room-photo-drop:has(#imageError:not(.hidden)) { border-color: var(--rk-danger); background: var(--rk-danger-soft); }
.rk-room-photo-drop > p { color: var(--rk-text-secondary) !important; }
.rk-room-review-list { overflow: hidden; border: 1px solid var(--rk-border); border-radius: 20px; padding: 4px 24px; background: color-mix(in srgb, var(--rk-surface) 78%, transparent); }
.rk-room-review-list h3 { padding: 18px 0 10px; color: var(--rk-text); font-size: 20px; font-weight: 800; }
.rk-room-review-list p { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr); align-items: start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rk-border); }
.rk-room-review-list p:last-child { border-bottom: 0; }
.rk-room-review-list p > span { color: var(--rk-text-secondary); }
.rk-room-review-list p > strong { color: var(--rk-text); text-align: right; overflow-wrap: anywhere; }
.rk-room-review-note { border-radius: 11px; padding: 11px 13px; background: var(--rk-warning-soft); color: var(--rk-warning-text); }
.rk-room-editor-form > div:last-child { position: sticky; bottom: 12px; z-index: 15; padding: 12px; border: 0 !important; border-radius: 14px; background: var(--rk-surface); box-shadow: var(--rk-shadow); }
.rk-room-editor-form button { transition: transform .15s, filter .15s; }
.rk-room-editor-form button:hover { transform: translateY(-1px); filter: brightness(.98); }
@media (max-width: 639px) {
  .rk-room-editor-page { padding-inline: 9px; }
  .rk-room-editor { padding: 18px 11px 12px; border-radius: 20px; }
  .rk-room-editor-header { padding-inline: 4px; }
  .rk-room-editor-hero-icon { width: 54px; height: 54px; border-radius: 17px; }
  .rk-room-editor-hero-icon svg { width: 31px; height: 31px; }
  .rk-room-progress { padding-inline: 0; }
  .rk-room-progress .step-item { width: 86px; }
  .rk-room-progress .step-circle { width: 36px; height: 36px; }
  .rk-room-progress .step-line { margin-top: 17px; }
  .rk-room-editor-form { padding: 14px; border-radius: 18px; }
  .rk-room-step-heading { margin-bottom: 16px; }
  .rk-room-step-heading h2 { font-size: 16px; }
  .rk-room-step-icon { width: 40px; height: 40px; border-radius: 13px; }
  .rk-room-editor .form-step .grid-cols-2:not(.rk-room-facility-grid) { grid-template-columns: minmax(0, 1fr); }
  .rk-room-facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
  .rk-room-facility-grid label { padding: 10px; font-size: 12px; }
  .rk-room-editor-form input:not([type=checkbox], [type=file]), .rk-room-editor-form select, .rk-room-editor-form textarea { font-size: 16px; }
  .rk-room-review-list { padding-inline: 16px; border-radius: 16px; }
  .rk-room-review-list h3 { font-size: 17px; }
  .rk-room-review-list p { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding-block: 12px; }
  .rk-room-editor-form > div:last-child { bottom: calc(76px + env(safe-area-inset-bottom)); gap: 8px; }
  .rk-room-editor-form > div:last-child button { padding-inline: 13px; font-size: 12px; }
}
.rk-room-results-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.rk-room-card-image { height: 8.25rem; }
.rk-room-favorite-btn { background: rgb(255 255 255 / .94); color: #dc2626; }
.dark .rk-room-favorite-btn { background: rgb(15 23 42 / .94); color: #f87171; box-shadow: 0 12px 24px rgb(0 0 0 / .36); }
.rk-room-favorite-btn svg { display: block; }
@media (min-width: 640px) {
  .rk-room-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .rk-room-card-image { height: 13.5rem; }
}
@media (min-width: 1280px) {
  .rk-room-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .rk-room-results-grid { display: grid; gap: .85rem; }
  .rk-room-results-grid .rk-room-card { display: grid; grid-template-columns: 9rem minmax(0, 1fr); border-radius: 1rem; }
  .rk-room-results-grid .rk-room-card-image { height: 9rem; border-radius: 1rem 0 0 1rem; overflow: hidden; }
  .rk-room-card-body { padding: .8rem !important; }
}
.rk-auth-page { min-height: max(460px, calc(100svh - 64px - 330px)); display: grid; place-items: center; padding: 22px 14px; background: radial-gradient(circle at 20% 0%, var(--rk-brand-soft), transparent 38%), var(--rk-bg); }
.rk-auth-card { width: min(100%, 570px); padding: 28px 42px 26px; border-radius: 26px; background: var(--rk-surface); box-shadow: var(--rk-shadow); }
.rk-auth-login-card { width: min(100%, 500px); }
.rk-auth-bottom-link { margin-top: 20px; color: var(--rk-text-secondary); font-size: 13px; text-align: center; }
.rk-auth-bottom-link a, .rk-auth-form a { color: var(--rk-brand-text); font-weight: 700; }
.rk-auth-header { margin: 0 0 22px; }
.rk-auth-header p { color: var(--rk-brand-text); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.rk-auth-header h1 { margin-top: 6px; color: var(--rk-text); font-size: 30px; font-weight: 850; letter-spacing: -.035em; }
.rk-auth-form { display: grid; gap: 14px; }
.rk-auth-field > label, .rk-auth-role legend, .rk-auth-label-row label { display: block; margin-bottom: 6px; color: var(--rk-text); font-size: 12px; font-weight: 700; }
.rk-auth-control { position: relative; }
.rk-auth-control > svg { position: absolute; left: 13px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--rk-text-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-auth-control input { width: 100%; min-height: 45px; padding: 10px 44px 10px 42px; border: 1px solid var(--rk-border); border-radius: 11px; background: var(--rk-surface); color: var(--rk-text); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.rk-auth-control input:focus { outline: 0; border-color: var(--rk-brand-text); box-shadow: 0 0 0 3px var(--rk-brand-soft); }
.rk-password-toggle { position: absolute; right: 7px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; transform: translateY(-50%); color: var(--rk-text-muted); border-radius: 8px; }
.rk-password-toggle:hover { color: var(--rk-brand-text); background: var(--rk-brand-soft); }
.rk-password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-auth-field > small, .rk-auth-inline-error, #matchRule { display: block; margin-top: 6px; color: var(--rk-danger); font-size: 12px; font-weight: 600; }
#matchRule[hidden] { display: none; }
.rk-auth-field.has-error input, .rk-auth-field.client-error input, .rk-auth-form.was-submitted input:invalid { border-color: var(--rk-danger); box-shadow: 0 0 0 3px var(--rk-danger-soft); }
.rk-auth-role > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rk-auth-role label { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 9px; align-items: center; min-height: 70px; padding: 10px; border: 1px solid var(--rk-border); border-radius: 12px; cursor: pointer; }
.rk-auth-role input { position: absolute; opacity: 0; }
.rk-auth-role label > span { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--rk-brand-text); background: var(--rk-brand-soft); }
.rk-auth-role label svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-auth-role strong { color: var(--rk-text); font-size: 13px; }.rk-auth-role label small { color: var(--rk-text-muted); font-size: 11px; }
.rk-auth-role label:has(input:checked) { border-color: var(--rk-brand); background: var(--rk-brand-soft); box-shadow: inset 0 0 0 1px var(--rk-brand); }
.rk-auth-rules { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 7px; color: var(--rk-text-secondary); font-size: 12px; font-weight: 600; }
.rk-auth-rules span::before { content: "○ "; }.rk-auth-rules span.is-valid { color: var(--rk-success); }.rk-auth-rules span.is-valid::before { content: "✓ "; }
.rk-auth-terms { display: flex; align-items: flex-start; gap: 8px; color: var(--rk-text-secondary); font-size: 12px; line-height: 1.5; }
.rk-auth-terms input { margin-top: 2px; accent-color: var(--rk-brand); }
.rk-auth-login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rk-auth-login-options .rk-auth-terms { font-size: 12px; }.rk-auth-login-options > a { font-size: 12px; white-space: nowrap; }
.rk-auth-submit, .rk-google-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 11px; font-size: 14px; font-weight: 750; }
.rk-google-button { border: 1px solid var(--rk-border); background: var(--rk-brand-soft); color: var(--rk-text); box-shadow: 0 5px 13px rgb(15 23 42 / .09); }
.rk-google-button:disabled { cursor: not-allowed; opacity: 1; }
.rk-google-mark { width: 20px; height: 20px; flex: 0 0 20px; }
.rk-auth-divider { display: flex; align-items: center; gap: 10px; color: var(--rk-text-muted); font-size: 12px; }
.rk-auth-divider::before, .rk-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--rk-border); }
.rk-auth-error { padding: 10px 12px; border-radius: 10px; background: var(--rk-danger-soft); color: var(--rk-danger); font-size: 11px; }
.rk-photo-picker { display: flex; align-items: center; gap: 14px; min-height: 94px; padding: 14px; border: 1px dashed var(--rk-brand); border-radius: 16px; color: var(--rk-text); cursor: pointer; background: var(--rk-brand-soft); }
.rk-photo-preview { display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px; overflow: hidden; border-radius: 50%; background: var(--rk-brand); color: var(--rk-on-brand); font-size: 26px; font-weight: 800; background-position: center; background-size: cover; }
.rk-photo-preview.has-image { color: transparent; }.rk-photo-picker strong, .rk-photo-picker small { display: block; }.rk-photo-picker strong { font-size: 14px; }.rk-photo-picker small { margin-top: 3px; color: var(--rk-text-secondary); font-size: 11px; }
.rk-auth-skip { min-height: 40px; color: var(--rk-text-secondary); font-size: 13px; font-weight: 700; }.rk-auth-skip:hover { color: var(--rk-brand-text); }
@media (max-width: 639px) { .rk-auth-page { display: grid; min-height: calc(100svh - 60px); place-items: center; padding: 12px 8px 26px; }.rk-auth-page:has(.rk-auth-login-card) { min-height: calc(100svh - 128px); padding-block: 8px; }.rk-auth-card { padding: 22px 16px 24px; border-radius: 19px; }.rk-auth-header { margin: 0 0 20px; }.rk-auth-header h1 { font-size: 26px; }.rk-auth-control input { font-size: 16px; }.rk-auth-role > div { grid-template-columns: 1fr 1fr; gap: 7px; }.rk-auth-role label { grid-template-columns: 30px minmax(0, 1fr); column-gap: 6px; min-height: 64px; padding: 8px; }.rk-auth-role label > span { width: 30px; height: 30px; }.rk-auth-role label svg { width: 17px; height: 17px; }.rk-auth-role strong { font-size: 16px; }.rk-auth-role label small { font-size: 9px; line-height: 1.25; }.rk-auth-bottom-link { margin-top: 18px; } }
.rk-signup-page { min-height: calc(100vh - 64px); padding: 28px 16px; background: radial-gradient(circle at 10% 10%, var(--rk-brand-soft), transparent 34%), var(--rk-bg); }
.rk-signup-shell { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(430px, 1.15fr); max-width: 1050px; min-height: 720px; margin: auto; overflow: hidden; border-radius: 28px; background: var(--rk-surface); box-shadow: var(--rk-shadow); }
.rk-signup-story { display: flex; flex-direction: column; justify-content: space-between; padding: 42px; color: white; background: radial-gradient(circle at 80% 15%, rgb(255 255 255 / .24), transparent 24%), linear-gradient(150deg, #60a5fa 0%, #2556d8 48%, #12336e 100%); }
.rk-signup-kicker, .rk-signup-eyebrow { font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.rk-signup-story h2 { margin-top: 14px; font-size: clamp(29px, 4vw, 42px); font-weight: 850; line-height: 1.12; }
.rk-signup-story > div > p:last-child { margin-top: 12px; color: rgb(255 255 255 / .82); }
.rk-signup-story ul { display: grid; gap: 18px; margin-block: 32px; }
.rk-signup-story li { display: flex; align-items: center; gap: 13px; }
.rk-signup-story li > span { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: rgb(255 255 255 / .16); font-size: 20px; }
.rk-signup-story strong, .rk-signup-story small { display: block; }
.rk-signup-story small { margin-top: 3px; color: rgb(255 255 255 / .75); font-size: 11px; }
.rk-signup-story blockquote { font-size: 18px; font-style: italic; line-height: 1.5; color: rgb(255 255 255 / .88); }
.rk-signup-form-panel { position: relative; padding: 54px 56px 32px; }
.rk-signup-login { position: absolute; top: 24px; right: 32px; color: var(--rk-text-muted); font-size: 12px; }
.rk-signup-login a, .rk-signup-form-panel a { color: var(--rk-brand-text); font-weight: 700; }
.rk-signup-form-panel header { margin: 26px 0 24px; }
.rk-signup-eyebrow { color: var(--rk-brand-text); }
.rk-signup-form-panel h1 { margin-top: 7px; color: var(--rk-text); font-size: 32px; font-weight: 850; letter-spacing: -.035em; }
.rk-signup-form-panel header > p:last-child { max-width: 470px; margin-top: 6px; color: var(--rk-text-secondary); font-size: 14px; }
.rk-signup-form-panel form { display: grid; gap: 15px; }
.rk-signup-field > label, .rk-signup-role legend { display: block; margin-bottom: 6px; color: var(--rk-text); font-size: 12px; font-weight: 700; }
.rk-signup-field > label span, .rk-signup-role legend span { color: var(--rk-danger); }
.rk-signup-control { position: relative; }
.rk-signup-control > svg { position: absolute; left: 13px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--rk-text-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-signup-control input { width: 100%; min-height: 45px; border: 1px solid var(--rk-border); border-radius: 11px; padding: 10px 43px; background: var(--rk-surface); color: var(--rk-text); font-size: 14px; }
.rk-signup-control input:focus { outline: 2px solid var(--rk-brand-text); outline-offset: 1px; }
.rk-signup-control .toggle-password { position: absolute; right: 8px; top: 50%; width: 32px; height: 32px; transform: translateY(-50%); color: var(--rk-text-muted); }
.rk-signup-field > small, .rk-signup-role > small, .rk-signup-inline-error, #matchRule { display: block; margin-top: 5px; color: var(--rk-danger); font-size: 11px; }
.rk-signup-field.has-error input { border-color: var(--rk-danger); box-shadow: 0 0 0 3px var(--rk-danger-soft); }
.rk-signup-role > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rk-signup-role label { position: relative; display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; min-height: 78px; padding: 12px; border: 1px solid var(--rk-border); border-radius: 13px; cursor: pointer; }
.rk-signup-role input { position: absolute; opacity: 0; }
.rk-role-icon { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--rk-brand-soft); color: var(--rk-brand-text); }
.rk-role-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-signup-role strong { color: var(--rk-text); font-size: 13px; }
.rk-signup-role label small { color: var(--rk-text-muted); font-size: 10px; }
.rk-signup-role label:has(input:checked) { border-color: var(--rk-brand); background: var(--rk-brand-soft); box-shadow: inset 0 0 0 1px var(--rk-brand); }
.rk-password-rules { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; font-size: 10px; color: var(--rk-text-muted); }
.rk-password-rules span::before { content: "○ "; }.rk-password-rules span.is-valid { color: var(--rk-success); }.rk-password-rules span.is-valid::before { content: "✓ "; }
.rk-signup-terms { display: flex; align-items: flex-start; gap: 9px; color: var(--rk-text-secondary) !important; font-size: 11px; line-height: 1.5; }
.rk-signup-terms input { margin-top: 2px; accent-color: var(--rk-brand); }
.rk-signup-submit { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; border-radius: 11px; font-size: 13px; font-weight: 750; }
.rk-signup-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; color: var(--rk-brand-text); text-align: center; }
.rk-signup-trust span { font-size: 18px; }.rk-signup-trust small { display: block; margin-top: 4px; color: var(--rk-text-muted); font-size: 9px; }
.rk-signup-error { padding: 10px 12px; border-radius: 10px; background: var(--rk-danger-soft); color: var(--rk-danger); font-size: 12px; }
@media (max-width: 760px) { .rk-signup-page { padding: 12px 9px 26px; }.rk-signup-shell { display: block; min-height: auto; border-radius: 20px; }.rk-signup-story { display: none; }.rk-signup-form-panel { padding: 28px 18px 24px; }.rk-signup-login { position: static; margin-bottom: 24px; text-align: right; }.rk-signup-form-panel header { margin: 0 0 22px; }.rk-signup-form-panel h1 { font-size: 27px; }.rk-signup-control input { font-size: 16px; }.rk-signup-role > div { grid-template-columns: 1fr; }.rk-signup-role label { min-height: 70px; }.rk-signup-trust { margin-top: 18px; } }
.rk-profile-warm-panel .rk-profile-item:nth-child(1) { background-color: #f0edff !important; }
.rk-profile-warm-panel .rk-profile-item:nth-child(2) { background-color: #e7f5ee !important; }
.rk-profile-warm-panel .rk-profile-item:nth-child(3) { background-color: #fff0e0 !important; }
.rk-profile-warm-panel .rk-profile-item:nth-child(4) { background-color: #e8f1ff !important; }
html.dark .rk-profile-warm-panel .rk-profile-item:nth-child(1) { background-color: #252340 !important; }
html.dark .rk-profile-warm-panel .rk-profile-item:nth-child(2) { background-color: #162f29 !important; }
html.dark .rk-profile-warm-panel .rk-profile-item:nth-child(3) { background-color: #35291e !important; }
html.dark .rk-profile-warm-panel .rk-profile-item:nth-child(4) { background-color: #192d46 !important; }
.rk-profile-item summary::-webkit-details-marker { display: none; }
.rk-mobile-detail-note { display: none; }
@media (max-width: 639px) {
  .rk-profile-item[open] .rk-mobile-detail-note { display: block; }
}
@media (min-width: 640px) {
  .rk-profile-item summary { cursor: default; pointer-events: none; }
}

/* Compatibility layer: existing Tailwind color utilities inherit the same tokens. */
.bg-white, .bg-gray-50 { background-color: var(--rk-surface) !important; }
.bg-gray-100, .bg-gray-200 { background-color: var(--rk-surface-muted) !important; }
.bg-blue-50, .bg-blue-100 { background-color: var(--rk-brand-soft) !important; }
.bg-blue-600, .bg-blue-700 { background-color: var(--rk-brand) !important; color: var(--rk-on-brand) !important; }
.hover\:bg-blue-800:hover, .hover\:bg-blue-700:hover { background-color: var(--rk-brand-hover) !important; }
.hover\:bg-gray-50:hover, .hover\:bg-gray-100:hover, .hover\:bg-gray-200:hover {
  background-color: var(--rk-surface-muted) !important;
}
.bg-green-50 { background-color: var(--rk-success-soft) !important; }
.bg-amber-50, .bg-yellow-50 { background-color: var(--rk-warning-soft) !important; }
.bg-red-50 { background-color: var(--rk-danger-soft) !important; }
.text-gray-900, .text-gray-800, .text-gray-700 { color: var(--rk-text) !important; }
.text-gray-600, .text-gray-500 { color: var(--rk-text-secondary) !important; }
.text-gray-400 { color: var(--rk-text-muted) !important; }
.text-blue-600, .text-blue-700, .text-blue-800 { color: var(--rk-brand-text) !important; }
.hover\:text-blue-700:hover, .hover\:text-blue-800:hover { color: var(--rk-brand-text) !important; }
.text-green-600, .text-green-700, .text-green-800 { color: var(--rk-success) !important; }
.text-amber-600, .text-amber-700, .text-yellow-700 { color: var(--rk-warning) !important; }
.text-red-600, .text-red-700, .text-red-800 { color: var(--rk-danger) !important; }
.border-gray-100, .border-gray-200, .border-gray-300 { border-color: var(--rk-border) !important; }
.shadow-sm, .shadow-md { --tw-shadow-color: rgb(15 23 42 / 0.08); }

input, select, textarea {
  max-width: 100%;
  background-color: var(--rk-surface) !important;
  border-color: var(--rk-border) !important;
  color: var(--rk-text) !important;
}
input::placeholder, textarea::placeholder { color: var(--rk-text-muted) !important; }
input:focus, select:focus, textarea:focus { border-color: var(--rk-brand) !important; }

img, svg { max-width: 100%; }
.rk-mobile-safe { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }

@media (max-width: 374px) {
  .rk-mobile-actions { align-items: stretch; flex-direction: column; }
  .rk-mobile-actions > * { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Keep verified marks distinct from general success/availability colors. */
html.dark .rk-verified,
html.dark [title^="Verified"],
html.dark [title*=" Verified"] {
  color: #00ff00 !important;
}

/* Explicit mobile fallback for browsers serving Tailwind's cached light utilities. */
html.dark body { background-color: var(--rk-bg) !important; color: var(--rk-text) !important; }
html.dark .bg-white,
html.dark .bg-gray-50 { background-color: var(--rk-surface) !important; }
html.dark .bg-gray-100,
html.dark .bg-gray-200 { background-color: var(--rk-surface-muted) !important; }
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-gray-700 { color: var(--rk-text) !important; }
html.dark .text-gray-600,
html.dark .text-gray-500 { color: var(--rk-text-secondary) !important; }
html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300 { border-color: var(--rk-border) !important; }
