/* Same AMANE structure; three device-local appearances. */
.crm-redesign { --control-border:#78869c; --action:#f5c998; --field:#151d2c; --panel:#232d3f; --hover:#344159; --side:#192231; }
html[data-theme="soft"] .crm-redesign {
  --ivory:#293748; --ink:#ffffff; --muted:#d6deea; --line:#69798e;
  --white:#354459; --surface:#354459; --tile:#405169; --panel:#354459;
  --field:#293748; --hover:#485c75; --side:#2d3c50; --sand:#ffdaad;
  --control-border:#a0aec0; background:#293748; background-attachment:scroll;
}
html[data-theme="light"] .crm-redesign {
  --ivory:#f3f5f8; --ink:#182638; --muted:#46566b; --line:#c6cfdc;
  --white:#ffffff; --surface:#ffffff; --tile:#edf1f7; --panel:#ffffff;
  --field:#ffffff; --hover:#e2e9f2; --side:#edf1f7; --sand:#784814;
  --control-border:#78869c; --green:#dcefe5; color-scheme:light;
  background:#f3f5f8; background-attachment:scroll;
}
.crm-redesign .theme-picker { display:flex; align-items:center; gap:8px; margin:0; flex:none; color:var(--muted); font-size:13px; }
.crm-redesign .theme-picker select { width:auto; min-height:44px; padding:8px 30px 8px 12px; font-size:14px; }
.auth-simple .theme-picker { justify-content:flex-end; margin-bottom:20px; }
.crm-redesign main { animation:none; }
.crm-redesign :is(input,select,textarea) { border-color:var(--control-border); }
.crm-redesign :is(small,.hint,.eyebrow,footer) { font-size:13px; }
.crm-redesign .sidebar nav a { font-size:13px; }
.crm-redesign :is(th,td) { font-size:14px; font-variant-numeric:tabular-nums; }
.crm-redesign .topbar { height:auto; min-height:94px; flex-wrap:wrap; gap:14px; }
.crm-redesign .rental-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:18px 0; }
.crm-redesign .rental-summary div { padding:16px; background:var(--tile); border-radius:14px; }
.crm-redesign .rental-summary dt { color:var(--muted); font-size:14px; }
.crm-redesign .rental-summary dd { margin:8px 0 0; font-size:24px; color:var(--ink); font-variant-numeric:tabular-nums; }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(.sidebar,.sidebar nav) { background:var(--side); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(.card,.lead-dialog,.assistant-dialog,.auth-layout,.auth-card,.quick-menu>div,.notification-menu) { background:var(--panel); color:var(--ink); border-color:var(--line); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(input,select,textarea,option) { background:var(--field); color:var(--ink); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(small,.hint,.eyebrow,footer,dt,.property-facts dt,.account-link small,th,.sidebar nav a,.program-tags span) { color:var(--muted); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(h1,h2,h3,td,td:first-child strong,dd,.lead-dialog,.assistant-dialog label,.assistant-dialog summary) { color:var(--ink); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(.secondary,.program-tags span,.payment-steps div,.compare-bar,.next-action,.task-tile,.week-day,th,.assistant-answer,.assistant-pdf,.selection-status,.lead-dialog .section-title) { background:var(--tile); color:var(--ink); border-color:var(--line); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(.sidebar nav a:hover,.secondary:hover,.quick-menu a:hover,tbody tr:hover) { background:var(--hover); color:var(--ink); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(button,.button,.quick-menu summary,.program-disclosure .program-cta) { background:var(--action); color:#1d2635; }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign :is(button.secondary,.button.secondary,button.quiet,.button.quiet) { background:var(--tile); color:var(--ink); border:1px solid var(--control-border); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign .topbar form button { background:transparent; color:var(--ink); border:0; }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign .property-body .price { color:var(--sand); }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign .assistant-dialog :is(input,select,textarea) { background:var(--field)!important; color:var(--ink)!important; border-color:var(--control-border)!important; }
html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign .assistant-answer :is(p,a),html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign .assistant-dialog .hint { color:var(--ink)!important; }
html[data-theme="light"] .crm-redesign :is(.wordmark,.auth-wordmark) { background:#1d2635; padding:10px; border-radius:12px; }
html[data-theme="light"] .crm-redesign .brand { background:#1d2635; border-radius:12px; }
html[data-theme="light"] .crm-redesign .badge { color:#34465d; background:#e3e9f1; }
html[data-theme="light"] .crm-redesign .badge.available { color:#135435; background:#dcf3e6; }
html[data-theme="light"] .crm-redesign .badge.reserved { color:#763c0d; background:#ffebd3; }
html[data-theme="light"] .crm-redesign .badge.sold { color:#86282e; background:#fde4e6; }
html[data-theme="light"] .crm-redesign .badge.unverified { color:#674c05; background:#fff0bf; }
html[data-theme="light"] .crm-redesign :is(.notice,.preview-banner) { color:#57410e; background:#fff2ce; border-color:#b89a54; }
@media(max-width:760px) {
  .crm-redesign .theme-picker { margin-left:auto; flex-wrap:wrap; gap:4px; }
  .crm-redesign :is(input,select,textarea) { font-size:16px; }
  .crm-redesign .rental-summary { grid-template-columns:1fr; }
  .crm-redesign .topbar .account-link { margin-left:auto; }
}
@media print { .crm-redesign .theme-picker { display:none; } }

html:is([data-theme="soft"],[data-theme="light"]) .crm-redesign .sidebar nav a[aria-current="page"] { background:var(--action); color:#1d2635; }

/* Light appearance: readable text and unmistakable actions, including on phones. */
html[data-theme="light"] .crm-redesign {
  --ink:#172b36; --muted:#425562; --line:#b6c3cc; --control-border:#697d89;
  --action:#17534c; --side:#edf2f4; --tile:#edf2f4;
  font-size:16px; line-height:1.55;
}
html[data-theme="light"] .crm-redesign :is(small,.hint,.eyebrow,footer,.theme-picker) { font-size:14px; }
html[data-theme="light"] .crm-redesign .sidebar nav a { font-size:15px; min-height:44px; }
html[data-theme="light"] .crm-redesign .sidebar .nav-group summary { font-size:14px; line-height:1.5; }
html[data-theme="light"] .crm-redesign :is(th,td) { font-size:15px; line-height:1.5; }
html[data-theme="light"] .crm-redesign :is(label,input,select,textarea,.theme-picker select) { font-size:16px; }
html[data-theme="light"] .crm-redesign :is(input:not([type="checkbox"]):not([type="radio"]),select,button,.button) { min-height:46px; }
html[data-theme="light"] .crm-redesign :is(button,.button,.quick-menu summary,.program-disclosure .program-cta) { background:#17534c; color:#fff; font-size:16px; font-weight:650; }
html[data-theme="light"] .crm-redesign :is(button,.button):hover { background:#103f3a; color:#fff; }
html[data-theme="light"] .crm-redesign :is(button.secondary,.button.secondary,button.quiet,.button.quiet) { background:#fff; color:#172b36; border:1px solid #697d89; }
html[data-theme="light"] .crm-redesign :is(button.secondary,.button.secondary,button.quiet,.button.quiet):hover { background:#e2ecea; color:#172b36; }
html[data-theme="light"] .crm-redesign .sidebar nav a[aria-current="page"] { background:#17534c; color:#fff; font-weight:700; }
html[data-theme="light"] .crm-redesign :is(input,select,textarea,button,a,summary):focus-visible { outline:3px solid #176c9a; outline-offset:3px; }
html[data-theme="light"] .crm-redesign .topbar form button { background:transparent; color:#172b36; }
html[data-theme="light"] .crm-redesign main a:not(.button):not(.property-card):not(.program-card) { text-underline-offset:3px; }
html[data-theme="light"] .crm-redesign :is(.errorlist,.field-error) { color:#922027; font-size:15px; }
@media(max-width:760px) {
  html[data-theme="light"] .crm-redesign :is(button,.button,.theme-picker select) { min-height:48px; }
}
