
/* Shared app identity for login, business picker, legal and setup screens. */
.onboarding-shell .brand-onboarding-logo{
 display:flex;align-items:center;justify-content:center;
 width:66px;height:66px;min-width:66px;
 background:transparent;letter-spacing:normal;
}
.onboarding-shell .brand-onboarding-logo img{
 display:block;width:62px;height:62px;object-fit:contain;
 border-radius:17px;
 filter:drop-shadow(0 5px 11px rgba(8,78,86,.13));
}
.onboarding-shell .onboarding-card{
 border-color:#d6e9e8;
 background:linear-gradient(145deg,#ffffff,#f5fcfc);
 box-shadow:0 12px 32px rgba(14,75,81,.09);
}
.onboarding-shell .membership-choice{
 border-color:#dcebec;border-radius:16px;
 background:linear-gradient(130deg,#fff,#f4fcfc);
}
.onboarding-shell .membership-choice:hover,.onboarding-shell .membership-choice:focus-visible{
 border-color:#21bda8;background:#e8faf6;
}
@media(max-width:600px){
 .onboarding-shell .brand-onboarding-logo{width:54px;height:54px;min-width:54px}
 .onboarding-shell .brand-onboarding-logo img{width:52px;height:52px}
}
/* X OS brand opening: the owner's uploaded logo, same as the PWA icon. */
.initial-loading {
  background:linear-gradient(160deg,#f8fefe,#e8f9f8 60%,#e0f5f3);
  min-height:100dvh;
  display:grid;
  place-items:center;
}
.initial-loading-content{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:15px;text-align:center;width:min(100%,360px);
}
.initial-loading .xos-splash-brand{
  display:block;width:clamp(152px,46vw,232px);height:auto;aspect-ratio:1;
  object-fit:contain;border-radius:27%;filter:drop-shadow(0 17px 25px rgba(3,81,91,.20));
}
.initial-loading .xos-splash-title{
  color:#101e31;font-size:25px;font-weight:900;letter-spacing:.1em;
}
.initial-loading-content p{color:#627787;font-size:13px;margin:0}
@media(prefers-reduced-motion:reduce){
  .initial-loading .xos-splash-brand{animation:none!important}
}

/* X OS / Premium unified panel theme v1 - 21 November 2026.
   One shared visual system for Rent a Car, Beauty, Real Estate and Transfer.
   Pure presentation: no API, booking, payment, authorization or state changes. */
:root {
  --bg:#e7f9f8;
  --panel:#ffffff;
  --panel2:#f1faf9;
  --line:#d8e9e8;
  --text:#121a30;
  --muted:#68778b;
  --accent:#16bda9;
  --accent2:#079984;
  --danger:#d84761;
  --shadow:0 10px 24px rgba(15,82,82,.085),0 2px 5px rgba(24,62,79,.035);
  --radius:23px;
  --xos-good:#079e72;
  --xos-blue:#2388d9;
  --xos-purple:#7852bf;
  --xos-amber:#d58c14;
  --xos-pink:#c64b91;
}
body{
  background:
    radial-gradient(ellipse at 91% 6%,rgba(88,229,213,.32),transparent 38%),
    radial-gradient(ellipse at 7% 40%,rgba(164,234,237,.23),transparent 60%),
    linear-gradient(150deg,#f1fdfc,#d7f3f1 54%,#ecfbfa);
  background-attachment:fixed;
}
body,button,input,select,textarea {font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button, a { -webkit-tap-highlight-color:transparent }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible {outline:3px solid #167ca6;outline-offset:3px}
#appShell .content {max-width:1620px}
#appShell .sidebar{
  background:rgba(252,255,255,.96);
  border-right:1px solid rgba(176,221,217,.75);
  box-shadow:4px 0 24px rgba(21,92,88,.035);
}
#appShell .brand {font-size:28px;letter-spacing:-.06em;color:#10172e}
#appShell .brand-x {font-size:34px;color:#14bda9}
#appShell .eyebrow {color:#089b8c;letter-spacing:.18em;font-size:11px;font-weight:900}
#appShell .topbar {margin-bottom:25px}
#appShell .topbar h1{font-weight:870;letter-spacing:-.048em;line-height:1.06;color:#131a31}
#appShell .topbar p{font-size:15px;line-height:1.52;color:#61718a}
#appShell .card,
#appShell .metric-card,
#appShell .onboarding-card{
  border-color:rgba(221,236,235,.94);
  border-radius:24px;
  background:linear-gradient(154deg,rgba(255,255,255,.99),rgba(249,253,253,.96));
  box-shadow:var(--shadow);
}
#appShell .card {padding:clamp(15px,2vw,24px)}
#appShell .card-head h2,
#appShell .section-heading h3{color:#182036;font-weight:850;letter-spacing:-.02em}
#appShell .button{
  border-radius:16px;
  min-height:43px;
  padding:11px 16px;
  color:#063e37;
  background:linear-gradient(125deg,#2bd2b8,#18bea9);
  box-shadow:0 5px 10px rgba(22,189,169,.13);
  transition:transform .14s ease,box-shadow .14s ease,background .14s ease;
}
#appShell .button:not(:disabled):active{transform:scale(.985)}
#appShell .button.secondary{
  color:#25324b;background:#f6fbfd;border:1px solid #dbe9ef;box-shadow:none;
}
#appShell .button:disabled{opacity:.6;box-shadow:none;cursor:not-allowed}
#appShell .button.danger, #appShell .button.automation-state-live{
  background:linear-gradient(128deg,#16c4ad,#009d88);
  color:white;
}
#appShell .ghost {background:#f7fbfc;border-color:#d9e8ea;border-radius:13px}
#appShell nav button {min-height:43px;border-radius:13px;font-weight:740}
#appShell nav button.active{
  background:linear-gradient(100deg,#d6f8ef,#f1fbfa);
  color:#078e7e;box-shadow:inset 3px 0 0 #18c8af;
}
#appShell .top-actions {align-items:stretch;gap:11px}
#appShell .top-actions #assistantButton{
  background:linear-gradient(120deg,#10bda8,#009b88);
  color:#fff;
  font-weight:880;
  box-shadow:0 9px 19px rgba(9,164,145,.18);
}
#appShell .top-actions #assistantButton::before{
  content:"✦";display:inline-block;margin-right:9px;color:#e5fffb;font-size:19px;
}
#appShell .top-actions #connectChannel{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  border:1px solid rgba(222,216,237,.9);
  background:linear-gradient(112deg,#fff3fa,#f8f7ff 58%,#f3fcfa);
  color:#15213b;box-shadow:0 8px 19px rgba(117,83,139,.08);
  font-weight:850;
}
#appShell #connectChannel .channel-brand-icons{display:inline-flex;align-items:center;gap:5px}
#appShell #connectChannel .brand-glyph{
  display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;
  border-radius:9px;color:#fff;
}
#appShell #connectChannel .brand-glyph.instagram{
  background:linear-gradient(40deg,#f9b633,#e22c89 47%,#8d4df3);
}
#appShell #connectChannel .brand-glyph.whatsapp{background:#18bc68;border-radius:50%}
#appShell #connectChannel .brand-glyph svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
#appShell #connectChannel .account-chevron{font-size:22px;line-height:1;color:#526078;padding-left:1px}
#appShell .top-actions #automationToggle{
  font-size:16px;font-weight:900;min-height:52px;
  background:linear-gradient(120deg,#0fb7a3,#019a87);
  color:white;
  border:1px solid rgba(17,158,143,.4);
  box-shadow:0 8px 16px rgba(6,169,151,.16);
}
#appShell .top-actions #automationToggle.automation-state-paused{
  background:linear-gradient(110deg,#edf5f6,#e6f1f2);
  color:#51647a;box-shadow:none;border-color:#d5e6ea;
}
#appShell .top-actions #automationToggle:not(.automation-state-paused)::before{content:"Ⅱ";font-size:15px;margin-right:10px;border:2px solid currentColor;border-radius:50%;padding:3px 7px}
#appShell .top-actions #enablePushNotifications.push-toggle{
  background:#e7f9ef;border:1px solid #a9e5c8;border-radius:999px;
  color:#116a4e;box-shadow:none;min-height:43px;
}
#appShell .top-actions #enablePushNotifications.push-toggle.is-off{
  color:#4e6474;background:#eef4f6;border-color:#d1dde1;
}
/* Four sectors, same layout. Tint is only an accent, not a new template. */
#appShell{--xos-sector:#10b8a4;--xos-sector-wash:#e4faf5}
#appShell[data-sector="beauty"],#appShell[data-sector="salon"]{--xos-sector:#c04c99;--xos-sector-wash:#fff0f8}
#appShell[data-sector="real_estate"]{--xos-sector:#8562c5;--xos-sector-wash:#f3efff}
#appShell[data-sector="vip_transfer"]{--xos-sector:#1785c0;--xos-sector-wash:#eaf7ff}
#appShell[data-sector="rent_a_car"],#appShell[data-sector="rent_vip"]{--xos-sector:#0cae9a;--xos-sector-wash:#e5fbf4}
#appShell .business-identity{background:linear-gradient(110deg,var(--xos-sector-wash),#fff);border-radius:16px}
#appShell .business-identity-icon{color:var(--xos-sector);border-radius:12px}
#appShell .business-identity strong{color:#1a2941}
#appShell .overview-shortcuts{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;margin:6px 0 20px;
}
#appShell .overview-shortcut{
  min-height:102px;
  display:grid;grid-template-columns:52px minmax(0,1fr);
  gap:13px;align-items:center;
  padding:15px 17px;text-align:left;
  border:1px solid #def0eb;border-radius:22px;
  background:linear-gradient(128deg,#fbfffd,#eafbf6);
  box-shadow:var(--shadow);
}
#appShell .overview-shortcut:hover,#appShell .overview-shortcut:focus-visible{
  border-color:var(--xos-sector);
  background:linear-gradient(122deg,#fff,var(--xos-sector-wash));
}
#appShell .overview-shortcut .shortcut-icon{
  width:48px;height:48px;border-radius:15px;display:grid;place-items:center;
  color:var(--xos-tile-ink,#099e7c);
  background:var(--xos-tile-bg,#d8faef);
}
#appShell .shortcut-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
#appShell .shortcut-copy{min-width:0}
#appShell .overview-shortcut strong{font-size:14px;line-height:1.28;overflow-wrap:anywhere;color:#18223c}
#appShell .overview-shortcut small{font-size:12px;line-height:1.3;margin-top:5px;color:#66758a}
#appShell .overview-shortcut[data-shortcut="resources"]{--xos-tile-ink:#7042bc;--xos-tile-bg:#e9e2fc;background:linear-gradient(128deg,#fff,#f6f2ff);border-color:#e8e0f8}
#appShell .overview-shortcut[data-shortcut="actions"]{--xos-tile-ink:#c17b08;--xos-tile-bg:#fff0c8;background:linear-gradient(128deg,#fff,#fff9ec);border-color:#f6e8ca}
#appShell .overview-shortcut[data-shortcut="calendar"],#appShell .overview-shortcut[data-shortcut="availability"]{--xos-tile-ink:#2589d0;--xos-tile-bg:#dff4ff;background:linear-gradient(128deg,#fff,#edf9ff);border-color:#e0f0fb}
#appShell .overview-shortcut[data-shortcut="business"]{--xos-tile-ink:#c64b91;--xos-tile-bg:#ffebf6;background:linear-gradient(128deg,#fff,#fff3fa);border-color:#f6e4f1}
#appShell .overview-shortcut[data-shortcut="channels"]{--xos-tile-ink:#674ab4;--xos-tile-bg:#ede9ff;background:linear-gradient(128deg,#fff,#f5f4ff);border-color:#e9e5fb}
#appShell .overview-shortcut[data-shortcut="properties"],#appShell .overview-shortcut[data-shortcut="viewings"]{--xos-tile-ink:#9160b9;--xos-tile-bg:#efe4ff;background:linear-gradient(128deg,#fff,#f8f2ff)}
#appShell .overview-shortcut[data-shortcut="transfers"],#appShell .overview-shortcut[data-shortcut="transfer_history"]{--xos-tile-ink:#147dae;--xos-tile-bg:#dff4ff;background:linear-gradient(128deg,#fff,#edf9ff)}
#appShell .overview-shortcut[data-shortcut="services"]{--xos-tile-ink:#c84d94;--xos-tile-bg:#fce6f1;background:linear-gradient(128deg,#fff,#fff4f9)}
#appShell .overview-shortcut[data-shortcut="reservations"],#appShell .overview-shortcut[data-shortcut="leads"]{--xos-tile-ink:#079e74;--xos-tile-bg:#defaf0}
#appShell .metrics{gap:14px}
#appShell .metric-card{
  position:relative;min-height:130px;padding:19px 19px 16px;overflow:hidden;
  isolation:isolate;
  --xos-metric-ink:#0b987a;--xos-metric-wash:#e9f9f3;
}
#appShell .metric-card::after{
  content:"";position:absolute;z-index:-1;
  width:165px;height:125px;right:-66px;bottom:-88px;
  border-radius:65% 20% 10% 70%;background:var(--xos-metric-wash);
  transform:rotate(-25deg);
}
#appShell .metric-card span{font-size:14px;font-weight:700;color:#62728a}
#appShell .metric-card strong{
  margin:9px 0 3px;
  font-size:clamp(24px,2.5vw,32px);line-height:1.12;
  letter-spacing:-.025em;color:#141d33;overflow-wrap:anywhere;
}
#appShell .metric-card small{font-size:12px;line-height:1.45;color:#6a788b}
#appShell .metric-card[data-overview-detail="rented"]{--xos-metric-ink:#0c9a70;--xos-metric-wash:#c7f5e4}
#appShell .metric-card[data-overview-detail="available"]{--xos-metric-ink:#187bbd;--xos-metric-wash:#d6efff}
#appShell #rentalReturnMetric{--xos-metric-ink:#7953c0;--xos-metric-wash:#ebe2ff}
#appShell #pendingActionMetric,#appShell #quotePendingMetric{--xos-metric-ink:#c98511;--xos-metric-wash:#fff0ca}
#appShell #collectedMetric,#appShell #revenueMetric{--xos-metric-ink:#139e78;--xos-metric-wash:#cdf7e8}
#appShell #outstandingMetric{--xos-metric-ink:#cd485d;--xos-metric-wash:#ffdde5}
#appShell .metric-card[data-overview-detail],#appShell .metric-card[role="button"]{cursor:pointer}
#appShell .metric-card[data-overview-detail]:hover{border-color:#b8d9d5}
#appShell .card-head .eyebrow{font-size:11px}
#appShell #sectionCard .card-head {margin-bottom:18px}
#appShell #sectionBody .manage-row,
#appShell #sectionBody .row,
#appShell .calendar-item{
  background:linear-gradient(130deg,#fff,#f9fdfd);
  border:1px solid #e1ecee;border-radius:16px;
  padding:15px;
}
#appShell .manage-row strong,#appShell .row strong{color:#202942}
#appShell .manage-row small{line-height:1.45}
#appShell .manage-actions{gap:9px}
#appShell .badge{border-radius:999px;background:#dff6ee;color:#08785f;font-weight:840}
#appShell .badge.badge-cancelled{background:#ffe9ec;color:#ab2744}
#appShell .info-grid{gap:13px}
#appShell .info-box{
  border-radius:18px;border:1px solid #e3eeef;
  background:linear-gradient(145deg,#fff,#f5fbfc);padding:18px;
}
#appShell .info-box span{color:#66768d}
#appShell .info-box strong{color:#18233b;overflow-wrap:anywhere}
#appShell .settings-hub{gap:13px}
#appShell .settings-hub-card,
#appShell .setup-block,
#appShell .transfer-card,
#appShell .manual-section,
#appShell .channel{
  border:1px solid #dfebef;border-radius:21px;
  background:linear-gradient(140deg,#fff,#f8fcfe);
  box-shadow:0 7px 17px rgba(18,78,92,.055);
}
#appShell button.settings-hub-card{min-height:92px}
#appShell button.settings-hub-card:hover{border-color:#a9dcd3;background:#f8fffd}
#appShell .channel{padding:16px}
#appShell .channel strong{color:#1b2941}
#appShell .channel strong.connected{color:#0b9770}
#appShell #sectionBody .channel-detail{
  background:linear-gradient(120deg,#fff,#f4fbfd);
  border-radius:18px;padding:17px;
}
#appShell .manage-row.channel-detail strong:first-child{font-size:15px}
#appShell .calendar-toolbar,#appShell .calendar-nav-group,#appShell .calendar-controls{border-radius:17px}
#appShell .week-timeline-grid,#appShell .day-timeline-grid{background:#fff}
#appShell .empty{border-radius:18px;background:rgba(255,255,255,.73);border-color:#cde4e1}
#appShell .section-note{color:#62728b}
#appShell .automation-control-box{border-radius:22px}
#appShell .dialog-head h2{color:#172138}
#appShell dialog{border-radius:24px;border:1px solid #dbe9eb;box-shadow:0 24px 68px rgba(19,49,69,.22)}
#appShell .form-field input,#appShell .form-field select,
#appShell input:not([type="checkbox"]):not([type="radio"]),#appShell select,
#appShell textarea {
  border:1px solid #d5e5e8;border-radius:13px;
  background:#fff;color:#1c2941;
}
#appShell #sectionBody input:not([type="checkbox"]):not([type="radio"]),#appShell #sectionBody select,#appShell #sectionBody textarea{max-width:100%}
#appShell #sectionBody .transfer-card{padding:18px}
#appShell .toast {border-radius:16px}
@media(max-width:960px){
  #appShell .mobile-header{
    position:sticky;top:0;z-index:15;margin:0 8px;
    padding:12px 13px;background:rgba(255,255,255,.96);
    border:1px solid rgba(223,238,236,.9);border-radius:0 0 21px 21px;
    box-shadow:0 5px 16px rgba(25,102,98,.06);
  }
  #appShell .mobile-header button{border-radius:15px;min-width:47px;min-height:45px;background:#f1f8fa;font-size:26px}
  #appShell .content{padding:29px 17px 60px}
  #appShell .topbar{gap:22px}
}
@media(max-width:650px){
  #appShell .topbar h1{font-size:clamp(35px,9vw,46px);line-height:1.07}
  #appShell .topbar p{font-size:14px}
  #appShell .top-actions{
    width:100%;display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
  }
  #appShell .top-actions #assistantButton{
    grid-column:1;min-width:0;padding:12px 10px;
    font-size:14px;
  }
  #appShell .top-actions #enablePushNotifications.push-toggle{
    grid-column:2;min-width:0;max-width:100%;
    padding:7px 9px;font-size:11px;
  }
  #appShell .top-actions #enablePushNotifications.push-toggle[hidden]{display:none!important}
  #appShell .top-actions #connectChannel{
    grid-column:1/-1;justify-content:space-between;
    min-height:67px;font-size:15px;padding:13px 18px;
  }
  #appShell .top-actions #connectChannel .channel-brand-icons{margin-right:2px}
  #appShell .top-actions #automationToggle{grid-column:1/-1;min-height:55px}
  #appShell .top-actions #assistantButton[hidden] + #enablePushNotifications{grid-column:1/-1;justify-self:start}
  #appShell .overview-shortcuts{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;
  }
  #appShell .overview-shortcut{
    grid-template-columns:minmax(0,1fr);align-content:center;
    justify-items:start;gap:9px;min-height:133px;padding:15px;
  }
  #appShell .overview-shortcut .shortcut-icon{width:43px;height:43px;border-radius:13px}
  #appShell .overview-shortcut .shortcut-icon svg{width:24px;height:24px}
  #appShell .overview-shortcut strong{font-size:14px}
  #appShell .overview-shortcut small{font-size:11px;margin-top:5px}
  #appShell .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  #appShell .metric-card{padding:15px;min-width:0;min-height:130px}
  #appShell .metric-card strong{font-size:clamp(23px,6.4vw,31px)}
  #appShell .metric-card strong[id^="m"]{overflow-wrap:anywhere}
  #appShell .metric-card #mCollected,#appShell .metric-card #mOutstanding,#appShell .metric-card #mRevenue{font-size:clamp(20px,5.2vw,27px);word-break:keep-all}
  #appShell .card{padding:17px}
  #appShell .manage-actions{flex-wrap:wrap}
  #appShell .manage-actions .button,#appShell .manage-actions .ghost{min-height:39px}
}
@media(max-width:350px){
  #appShell .metrics{grid-template-columns:1fr}
  #appShell .overview-shortcuts{grid-template-columns:1fr 1fr}
  #appShell .overview-shortcut{padding:12px;min-height:128px}
  #appShell .top-actions #enablePushNotifications.push-toggle{font-size:10px}
}

/* Mockup-fidelity pass v2: exact compact, horizontal mobile card proportions.
   The existing section actions, switches, permission gates and KPI data IDs stay intact. */
#appShell .assistant-notification-group{
  display:flex;align-items:center;min-width:0;gap:0;
  padding:0;border-radius:21px;
  background:linear-gradient(105deg,#0bb9a5 0%,#0db39e 42%,#f0fcfa 63%,#f5fdfa 100%);
  box-shadow:var(--shadow);overflow:hidden;
}
#appShell .top-actions .assistant-notification-group #assistantButton{
  flex:1 1 46%;min-width:0;min-height:62px;
  background:transparent;box-shadow:none;border:0;border-radius:0;
  padding:12px 11px;color:white;white-space:normal;
  text-align:center;font-size:15px;line-height:1.2;
}
#appShell .top-actions .assistant-notification-group #assistantButton::before{
  content:"✦";font-size:23px;vertical-align:middle;margin-right:8px;
}
#appShell .top-actions .assistant-notification-group #enablePushNotifications.push-toggle{
  flex:0 1 auto;min-width:0;max-width:none;
  background:rgba(225,251,241,.94);
  border-color:#bcead7;border-radius:999px;
  margin:0 10px;padding:8px 10px;box-shadow:none;
  color:#146b51;white-space:nowrap;font-size:12px;
  min-height:38px;
}
#appShell .top-actions .assistant-notification-group #enablePushNotifications.push-toggle.is-off{
  background:#eef4f5;color:#586875;border-color:#d2e1e3;
}
#appShell .top-actions .assistant-notification-group #enablePushNotifications.push-toggle[hidden]{
  display:none!important;
}
#appShell .top-actions #connectChannel{
  min-width:0;min-height:62px;flex:1 1 auto;padding:11px 13px;
  font-size:14px;border-radius:21px;
}
#appShell #connectChannel .channel-brand-icons{flex:0 0 auto}
#appShell #connectChannel .brand-glyph{height:30px;width:30px;flex-basis:30px}
#appShell #connectChannel > span:nth-child(2){
  flex:1;min-width:0;text-align:left;line-height:1.2;overflow-wrap:anywhere;
}
#appShell .top-actions #automationToggle{min-height:54px}
#appShell .overview-shortcuts{gap:12px;margin-top:1px;margin-bottom:19px}
#appShell .overview-shortcut{
  grid-template-columns:54px minmax(0,1fr);gap:13px;align-items:center;
  min-height:86px;padding:13px 15px;border-radius:20px;
}
#appShell .overview-shortcut .shortcut-icon{width:50px;height:50px}
#appShell .overview-shortcut strong{font-size:14px;line-height:1.2}
#appShell .overview-shortcut small{font-size:12px;line-height:1.2;margin-top:6px}
#appShell .metrics{gap:12px}
#appShell .metric-card{
  display:grid;grid-template-columns:50px minmax(0,1fr);
  grid-template-rows:auto auto auto;
  align-content:center;column-gap:12px;
  min-height:103px;padding:13px 14px;
}
#appShell .metric-card > span:not(.metric-icon),
#appShell .metric-card > strong,
#appShell .metric-card > small{grid-column:2;min-width:0}
#appShell .metric-card > span:not(.metric-icon){grid-row:1;font-size:13px;line-height:1.25;font-weight:700}
#appShell .metric-card > strong{grid-row:2;font-size:26px;line-height:1.12;margin:3px 0}
#appShell .metric-card > small{grid-row:3;font-size:11px;line-height:1.25}
#appShell .metric-card .metric-icon{
  display:grid;place-items:center;align-self:center;
  grid-column:1;grid-row:1/4;
  width:49px;height:49px;border-radius:15px;
  color:var(--xos-metric-ink);background:var(--xos-metric-wash);
}
#appShell .metric-card .metric-icon svg{
  width:27px;height:27px;stroke:currentColor;fill:none;
  stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;
}
#appShell #sectionCard .manage-row,#appShell .card .manage-row{
  box-shadow:0 2px 6px rgba(20,75,83,.025);
}
@media(min-width:651px) and (max-width:1199px){
  #appShell .top-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  #appShell .top-actions .assistant-notification-group{grid-column:1}
  #appShell .top-actions #connectChannel{grid-column:2}
  #appShell .top-actions #automationToggle{grid-column:1/-1}
}
@media(max-width:650px){
  #appShell .content{padding:19px 14px 50px}
  #appShell .mobile-header{margin:0 7px;padding:9px 12px}
  #appShell .mobile-header .brand{font-size:25px}
  #appShell .topbar{gap:16px;margin-bottom:18px}
  #appShell .topbar h1{font-size:clamp(33px,8vw,40px)}
  #appShell .topbar p{font-size:13px}
  #appShell .top-actions{
    display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,.94fr);
    gap:9px;
  }
  #appShell .top-actions .assistant-notification-group{grid-column:1}
  #appShell .top-actions .assistant-notification-group #assistantButton{
    flex:1 1 52%;font-size:12px;min-height:64px;padding:9px 7px;
  }
  #appShell .top-actions .assistant-notification-group #assistantButton::before{
    margin-right:3px;font-size:16px;
  }
  #appShell .top-actions .assistant-notification-group #enablePushNotifications.push-toggle{
    flex:0 1 46%;min-width:0;max-width:119px;
    margin:0 5px;padding:5px 6px;
    font-size:10px;gap:4px;min-height:33px;
    white-space:normal;
  }
  #appShell .assistant-notification-group .push-toggle-track{flex-basis:29px;width:29px}
  #appShell .top-actions #connectChannel{
    grid-column:2;min-width:0;min-height:64px;
    padding:9px 7px;gap:5px;font-size:12px;
  }
  #appShell #connectChannel .channel-brand-icons{gap:2px}
  #appShell #connectChannel .brand-glyph{width:24px;height:24px;flex-basis:24px;border-radius:7px}
  #appShell #connectChannel .brand-glyph svg{height:16px;width:16px}
  #appShell #connectChannel .account-chevron{font-size:18px}
  #appShell .top-actions #automationToggle{grid-column:1/-1;min-height:49px}
  #appShell .overview-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #appShell .overview-shortcut{
    grid-template-columns:38px minmax(0,1fr);
    min-height:81px;padding:10px;gap:8px;
    border-radius:18px;
  }
  #appShell .overview-shortcut .shortcut-icon{height:38px;width:38px;border-radius:11px}
  #appShell .overview-shortcut .shortcut-icon svg{height:22px;width:22px}
  #appShell .overview-shortcut strong{font-size:clamp(11px,3.1vw,13px);line-height:1.24}
  #appShell .overview-shortcut small{font-size:10px;margin-top:5px}
  #appShell .metrics{gap:9px}
  #appShell .metric-card{
    grid-template-columns:38px minmax(0,1fr);column-gap:9px;
    min-height:93px;padding:11px 9px;border-radius:18px;
  }
  #appShell .metric-card .metric-icon{width:38px;height:38px;border-radius:11px}
  #appShell .metric-card .metric-icon svg{width:23px;height:23px}
  #appShell .metric-card > span:not(.metric-icon){font-size:12px}
  #appShell .metric-card > strong{font-size:clamp(21px,5.6vw,27px)}
  #appShell .metric-card > small{font-size:10px}
  #appShell .metric-card #mCollected,#appShell .metric-card #mOutstanding,#appShell .metric-card #mRevenue{
    font-size:clamp(16px,4.3vw,24px);white-space:nowrap;
    letter-spacing:-.055em;
  }
  #appShell .card{padding:15px}
}
@media(max-width:375px){
  #appShell .top-actions .assistant-notification-group #assistantButton{font-size:11px}
  #appShell .top-actions .assistant-notification-group #enablePushNotifications.push-toggle{font-size:9px}
  #appShell #connectChannel > span:nth-child(2){font-size:11px}
  #appShell .overview-shortcut{grid-template-columns:34px minmax(0,1fr);gap:7px}
  #appShell .overview-shortcut .shortcut-icon{width:34px;height:34px}
  #appShell .metric-card{grid-template-columns:34px minmax(0,1fr);column-gap:6px}
  #appShell .metric-card .metric-icon{width:34px;height:34px}
}

/* Semantic statuses: one meaning = one color on every sector page. */
#appShell .badge.status-tone,
#appShell .rental-status.status-tone{
 display:inline-flex;align-items:center;justify-content:center;min-height:30px;
 max-width:100%;font-size:12px;font-weight:850;line-height:1.25;
 white-space:normal;text-align:center;padding:7px 11px;
 border:1px solid transparent;border-radius:999px;
 box-shadow:none;
}
#appShell .badge.status-tone-success,#appShell .rental-status.status-tone-success{
 background:#e0f6e9;color:#16744b;border-color:#a8dec0;
}
#appShell .badge.status-tone-progress,#appShell .rental-status.status-tone-progress{
 background:#e0efff;color:#175eac;border-color:#b5d3f3;
}
#appShell .badge.status-tone-reserved,#appShell .rental-status.status-tone-reserved{
 background:#fff3c9;color:#825d09;border-color:#efd48a;
}
#appShell .badge.status-tone-warning,#appShell .rental-status.status-tone-warning{
 background:#fff0dc;color:#9c560e;border-color:#efc18e;
}
#appShell .badge.status-tone-alert,#appShell .rental-status.status-tone-alert{
 background:#ffdfd7;color:#a13922;border-color:#e9a792;
}
#appShell .badge.status-tone-danger,#appShell .rental-status.status-tone-danger{
 background:#ffeaed;color:#b32f49;border-color:#f0b6c1;
}
#appShell .badge.status-tone-neutral,#appShell .rental-status.status-tone-neutral{
 background:#edf1f5;color:#586578;border-color:#d9e1e9;
}
/* Resource status, not an action button: Kirada blue, Müsait green, Bakım amber. */
#appShell .rental-status.rented{background:#e0efff;color:#175eac;border-color:#b5d3f3}
#appShell .rental-status.available{background:#e0f6e9;color:#16744b;border-color:#a8dec0}
#appShell .rental-status.maintenance{background:#fff0dc;color:#9c560e;border-color:#efc18e}
/* Actual commands remain visually neutral unless they are primary actions. */
#appShell .rental-booking-row .manage-actions .button.secondary,
#appShell .rental-booking-row .manage-actions .ghost:not(.danger){
 background:#f5f8fa;color:#28364a;border:1px solid #dae4e9;
 box-shadow:none;
}
#appShell .rental-booking-row{
 display:grid;grid-template-columns:minmax(0,1fr) 185px minmax(104px,125px);
 align-items:start;gap:14px;
}
#appShell .rental-booking-row > div:first-child{min-width:0;overflow-wrap:anywhere}
#appShell .rental-booking-row .rental-date-column{display:block;min-width:0}
#appShell .rental-date-stack{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
#appShell .rental-date-stack time{
 display:block;white-space:nowrap;word-break:normal;overflow-wrap:normal;
 font-variant-numeric:tabular-nums;
 font-size:13px;line-height:1.4;letter-spacing:-.025em;color:#293a50;
}
#appShell .rental-booking-row .manage-actions{
 display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
 gap:8px;min-width:0;
}
#appShell .rental-booking-row .manage-actions > .badge,
#appShell .rental-booking-row .manage-actions > button{width:100%;min-width:0}
@media(max-width:700px){
 #appShell .rental-booking-row{
   grid-template-columns:minmax(0,1fr) minmax(92px,116px);
   column-gap:12px;row-gap:9px;
   padding:15px 12px;
 }
 #appShell .rental-booking-row > div:first-child{grid-column:1;grid-row:1}
 #appShell .rental-booking-row .rental-date-column{
   grid-column:1;grid-row:2;align-self:start;margin-top:0;
 }
 #appShell .rental-booking-row .manage-actions{
   grid-column:2;grid-row:1/span 2;
 }
 #appShell .rental-date-stack{gap:6px}
 #appShell .rental-date-stack time{font-size:clamp(11.5px,3.4vw,13px)}
}

@media(prefers-reduced-motion:reduce){
  #appShell .button{transition:none}
}