: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-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; }
}
/* Distinct, quiet row surfaces keep preferences easy to scan in both themes. */
.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; }
