/* Apple Design principles, expressed in Al Sultan's own identity. */
:root{--font:-apple-system,BlinkMacSystemFont,'Segoe UI','IBM Plex Sans Arabic',sans-serif;--radius:20px;--control-radius:12px;--surface:#fff;--surface-muted:#f3f6f3;--ink:#183b2e;--shadow-soft:0 8px 32px #173b2c08;--focus:#93504a}
html{scroll-padding-top:145px;font-size:16px}body{font-family:var(--font);font-optical-sizing:auto;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}h1,h2,h3,p{overflow-wrap:break-word}h1,h2,h3{text-wrap:balance}h1{line-height:1.18}p{line-height:1.8}:where(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}:where(button,.btn,.button,.tab,.card-link,.soft-link){min-height:44px}button,.btn,.button{transition:background-color .18s,color .18s,box-shadow .18s,opacity .18s;transform-origin:center}button:active:not(:disabled),.btn:active,.button:active{opacity:.72;transform:scale(.98);transition:none}button:disabled{cursor:not-allowed;opacity:.55}button[aria-busy=true]{cursor:progress}button[aria-busy=true]::after{content:'';display:inline-block;width:14px;height:14px;margin-inline-start:8px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:busy .7s linear infinite}
@keyframes busy{to{transform:rotate(360deg)}}:focus-visible{outline:3px solid var(--focus)!important;outline-offset:4px!important}input,select,textarea{border-radius:var(--control-radius)!important;min-height:48px;font-size:1rem!important;accent-color:var(--green)}input:focus,select:focus,textarea:focus{box-shadow:0 0 0 4px #00403012}input[aria-invalid=true]{border-color:#a23731!important}.btn,.button{border-radius:var(--control-radius);font-weight:600;gap:8px;justify-content:center}.btn.light,.button.outline{border-color:var(--border)}.panel,.service-card,.package-card,.passport,.plan-form,.plan-summary,.stat,.people-card,.work-card,.place-card,.subscription-card,.welcome-panel{border-radius:var(--radius);box-shadow:var(--shadow-soft);overflow:hidden}.table-scroll{border-radius:var(--radius)}.section-heading h2{font-size:clamp(1.8rem,3.5vw,2.7rem)}.new{border-radius:20px}.header{position:sticky;top:0;z-index:45;background:#ffffffeb;backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);border-bottom:1px solid var(--border)}.header .nav{min-height:78px}.preferences-bar{background:transparent;border-bottom:0;min-height:44px}.header>.preferences-bar{border-top:1px solid var(--border);padding:5px max(24px,calc((100vw - 1180px)/2))}.preferences-controls>label,.preferences-controls>button{min-height:36px;border-radius:10px}.preferences-controls select{min-height:34px;font-size:.875rem!important}.preferences-controls svg{width:18px;height:18px}.hero{min-height:610px}.hero h1{font-size:clamp(2.8rem,5.5vw,5.2rem);font-weight:650;line-height:1.17}.hero-desc{font-size:1.15rem}.hero-actions{gap:24px}.hero .button{min-height:52px;padding-inline:30px}.quickstrip{border-radius:0 0 20px 20px}.section{padding-block:88px}.service-card{border:1px solid var(--border)}.service-card:hover{box-shadow:0 12px 36px #0040300d}.service-icon{border-radius:14px}.care-section{border-radius:32px;margin-inline:24px}.concept-note{border-radius:12px}.passport-tabs,.tabs,.view-switch{padding:4px;background:var(--surface-muted);border-radius:12px;gap:4px}.passport-tabs button,.tabs button,.view-switch button{border:0;border-radius:9px}.passport-tabs .active,.tabs .active,.view-switch .active{box-shadow:0 2px 8px #00000012}.plan-form,.plan-summary{padding:28px}.planner-steps{display:flex;align-items:center;gap:12px;list-style:none;padding:0;margin:0 0 24px;color:var(--muted)}.planner-steps li{display:flex;align-items:center;gap:8px;flex:1;font-size:.875rem}.planner-steps li::before{content:attr(data-number);display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--surface-muted)}.planner-steps .active{color:var(--green);font-weight:600}.planner-steps .active::before{background:var(--green);color:white}.planner-actions{display:flex;gap:12px;margin-top:24px}.planner-actions .button{flex:1}.plan-step[hidden]{display:none!important}.booking-note{border-inline-start:3px solid var(--green);background:var(--surface-muted);padding:12px 16px;border-radius:10px;font-size:.875rem}.optional-details{grid-column:1/-1;border-top:1px solid var(--border);padding-block:12px}.optional-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--green)}.optional-details .fields{margin-top:16px}.optional-details .form-grid{padding-top:16px}.summary-city{font-size:.875rem;color:var(--muted)}.policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.policy-grid article{padding:24px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}.policy-grid h3{font-size:1.125rem}.policy-grid p{font-size:.9375rem;color:var(--muted)}.public-dock{display:none}.app-header{background:#ffffffdf;backdrop-filter:blur(20px);position:sticky;top:0;z-index:30;height:72px}.sidebar{background:#fafcf9;overflow-y:auto}.sidebar nav button{border-radius:12px;min-height:46px;text-align:start}.sidebar nav .active{box-shadow:0 4px 14px #00403018}.nav-icon svg,.ui-icon{width:22px;height:22px;display:block;flex-shrink:0}.app-main>.preferences-bar{padding-inline:38px}.page-head h1{font-size:clamp(1.8rem,2.8vw,2.5rem);font-weight:650}.page-head{margin-bottom:26px}.panel-heading{padding:22px 24px}.panel-heading h2{font-size:1.125rem}.stat strong{font-size:2.25rem;font-weight:600;font-variant-numeric:tabular-nums}.stat-icon{border-radius:12px}.attention-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.attention-strip button{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:14px 18px;text-align:start;color:var(--ink)}.attention-strip strong{font-size:1.5rem;color:var(--green);font-variant-numeric:tabular-nums}.attention-strip span{flex:1;font-size:.875rem}.attention-strip button.has-items{border-inline-start:3px solid var(--burgundy)}.attention-filter{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 18px;margin-bottom:16px}.mobile-orders{display:none}.order-item-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.order-item h3{font-size:1rem;margin:16px 0 4px}.order-item dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.order-item dt{color:var(--muted);font-size:.75rem}.order-item dd{margin:0;font-size:.875rem}.order-item .btn{width:100%}.order-item small[dir=ltr]{font-variant-numeric:tabular-nums;font-size:.75rem}.work-card .btn{min-height:48px}.month-day{border-radius:10px}.calendar-navigation button,.slot-grid button{border-radius:10px}.month-day.selected{box-shadow:inset 0 0 0 2px var(--green)}.schedule-layout{align-items:start}.day-panel{position:sticky;top:94px}.schedule-toolbar{gap:10px}.schedule-overview>div{border-radius:14px}.schedule-toolbar input{min-width:0}.pill{border-radius:20px;padding:4px 10px;font-weight:500}.form-grid{gap:18px}.form-grid label{font-size:.875rem}.form-section-title{grid-column:1/-1;padding-top:12px;font-size:1rem;margin:0;border-top:1px solid var(--border)}.form-section-title:first-child{border:0;padding-top:0}.form-error:empty{display:none}.form-error{border-radius:12px}.form-actions{position:sticky;bottom:-28px;background:var(--surface);padding-block:18px;margin-bottom:-8px;z-index:2}.form-actions .btn{min-height:48px}.form-note{line-height:1.8}.modal-heading,.dialog-heading{align-items:center}.close-modal,.close-dialog{min-width:44px;min-height:44px;border-radius:50%;background:var(--surface-muted)!important}.dialog,#modal{background:var(--surface);border-radius:24px;box-shadow:0 28px 100px #0003;max-height:calc(100dvh - 48px);animation:sheet-in .24s cubic-bezier(.2,.7,.2,1)}dialog::backdrop{background:#0d201c73;backdrop-filter:blur(3px)}@keyframes sheet-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}#toast{border-radius:14px;box-shadow:0 8px 30px #0002;max-width:calc(100vw - 32px);bottom:max(24px,env(safe-area-inset-bottom))}.mobile-nav{display:none}.auth{border-radius:24px!important}.auth h1{font-size:2rem}.auth input{min-height:52px}.auth button[type=submit]{min-height:52px}.auth .preferences-bar{padding:0 0 20px}.data-table th{font-size:.8125rem;font-weight:500}.data-table td{padding-block:20px}.data-table small{font-size:.8125rem}.detail-grid{gap:18px}.detail-grid>div{border-radius:12px;background:var(--surface-muted);padding:14px}.detail-grid span{font-size:.8125rem}.check-item{min-height:48px}.check-item input{min-height:22px}.check-item input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.notification-card{border-radius:16px}
:root[data-theme=dark]{--surface:#15251f;--surface-muted:#1c3027;--ink:#e6f0e9;--shadow-soft:0 8px 32px #00000014;--focus:#dca09a}:root[data-theme=dark] .header,:root[data-theme=dark] .app-header{background:#13241ee8}:root[data-theme=dark] .sidebar{background:#101e19}:root[data-theme=dark] .planner-steps .active,:root[data-theme=dark] .optional-details summary{color:#9de4bc}:root[data-theme=dark] .attention-strip strong{color:#9de4bc}:root[data-theme=dark] .month-day.selected{box-shadow:inset 0 0 0 2px #9de4bc}:root[data-theme=dark] .form-actions{background:var(--surface)}:root[data-theme=dark] .hero{color:white}:root[data-theme=dark] .care-section{background:#143329}
@media(min-width:701px){.order-desktop{display:block}.app-header+#preferences-bar{position:sticky}.header-actions{gap:14px}#view{padding-top:30px}}
@media(max-width:1000px){.attention-strip{gap:8px}.attention-strip button{padding:12px}.schedule-layout{grid-template-columns:1fr}.day-panel{position:static}.care-section{margin-inline:12px}.header>.preferences-bar{padding-inline:24px}}
@media(max-width:700px){html{scroll-padding-top:130px}.header .nav{min-height:68px;gap:16px}.header .brand img{width:98px}.header .nav>.button{font-size:.8125rem;min-height:42px}.header nav{display:none}.header>.preferences-bar{padding:4px 20px}.preferences-controls>button span{font-size:.8125rem}.hero{min-height:640px}.hero h1{font-size:3rem}.hero-copy{padding-top:46px}.hero-note{display:none}.hero-desc{font-size:1rem}.hero-actions{gap:16px;flex-wrap:wrap}.hero-bottom{font-size:.75rem}.section{padding-block:56px}.service-grid,.package-grid,.policy-grid{grid-template-columns:1fr}.care-section{border-radius:24px}.quickstrip{overflow:auto;gap:20px;justify-content:flex-start}.strip-title{min-width:140px}.quickstrip>a{white-space:nowrap}.plan-form,.plan-summary{padding:22px}.planner-steps{gap:6px}.planner-steps li{font-size:.75rem;gap:5px}.planner-steps li::before{flex-basis:24px;width:24px;height:24px}.planner-actions{flex-wrap:wrap}.public-dock{position:fixed;bottom:0;inset-inline:0;display:flex;gap:12px;padding:10px 20px calc(10px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(20px);border-top:1px solid var(--border);z-index:35}.public-dock .button{flex:1;min-height:48px}.public-dock a:last-child{flex:0 0 100px}.public-dock~#toast{bottom:100px}body:has(.public-dock){padding-bottom:88px}.app-header{padding:12px 20px;height:auto;min-height:66px;flex-wrap:nowrap}.breadcrumb>span,.breadcrumb i{display:none}.breadcrumb b{font-size:.875rem}.header-actions .soft-link,.header-actions #mode-button,.header-actions .avatar{display:none}.header-actions{gap:8px}.header-actions [data-pwa-install]{font-size:.75rem;max-width:105px;line-height:1.3}.app-main>.preferences-bar{padding:5px 20px}.app-main{padding-bottom:80px}.sidebar{width:min(300px,88vw);padding:22px 18px}.sidebar.open{box-shadow:0 12px 50px #0d201c40}.sidebar nav{gap:3px}.sidebar nav button{min-height:46px}#view{padding:24px 16px}.page-head{gap:16px}.page-head h1{font-size:1.8rem}.page-head p{font-size:.875rem}.head-actions{gap:8px;flex-wrap:wrap}.head-actions .btn{min-height:44px}.attention-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.attention-strip button{flex-direction:column;align-items:flex-start;gap:4px;padding:12px 9px}.attention-strip span{font-size:.6875rem;line-height:1.6}.attention-strip svg{display:none}.attention-strip strong{font-size:1.4rem}.schedule-overview{gap:8px}.schedule-overview>div{padding:12px 8px}.schedule-overview>div small{font-size:.6875rem}.schedule-overview p{font-size:.75rem}.schedule-toolbar{display:grid;grid-template-columns:1fr 1fr}.schedule-toolbar input{grid-column:1/-1}.schedule-toolbar select{width:100%;min-width:0;font-size:.8125rem!important}.calendar-heading,.calendar-subhead,.day-panel-head,.day-panel-body{padding:18px 14px}.calendar-heading h2{font-size:1.1rem}.calendar-navigation{gap:3px}.calendar-navigation button{min-width:36px;padding-inline:8px}.month-day{min-height:64px;padding:7px 3px}.month-day strong{font-size:.875rem}.month-day small{font-size:.625rem}.schedule-legend{gap:10px;font-size:.6875rem}.order-desktop{display:none}.mobile-orders{display:grid;padding:14px;gap:14px}.order-item{border:1px solid var(--border);border-radius:16px;padding:16px}.toolbar{gap:12px;align-items:stretch;flex-direction:column}.toolbar input{width:100%}.toolbar .filter-group{display:flex;gap:10px}.toolbar .filter-group select{min-width:0;flex:1}.panel-heading{padding:20px 18px}.mobile-nav{display:flex;position:fixed;bottom:0;inset-inline:0;z-index:40;background:#fffffff2;backdrop-filter:blur(20px);border-top:1px solid var(--border);padding:6px 8px calc(6px + env(safe-area-inset-bottom));justify-content:space-around;gap:4px}.mobile-nav button{border:0;background:none;color:var(--muted);display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.6875rem;min-width:0;padding:6px 3px;min-height:52px;border-radius:12px}.mobile-nav button.active{color:var(--green);background:var(--surface-muted)}.mobile-nav svg{width:21px;height:21px}.app-footer{padding-bottom:24px}.dialog,#modal{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 16px);border-radius:24px;padding:22px 20px}.form-actions{bottom:-22px;gap:10px;flex-wrap:wrap}.form-actions>.btn{flex:1}.detail-grid{grid-template-columns:1fr 1fr;gap:10px}.detail-grid>div{padding:12px}.detail-grid b{font-size:.875rem}.work-card{padding:20px}.work-card .work-actions{display:grid;gap:12px}.auth{padding:28px 24px!important}.auth h1{font-size:1.8rem}:root[data-theme=dark] .public-dock,:root[data-theme=dark] .mobile-nav{background:#13241ef2}:root[data-theme=dark] .mobile-nav button.active{color:#9de4bc}#toast{bottom:100px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}button:active,.btn:active,.button:active{transform:none}}
@media(prefers-reduced-transparency:reduce){.header,.app-header,.mobile-nav,.public-dock{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--surface)}dialog::backdrop{backdrop-filter:none;background:#0d201c99}}
@media(prefers-contrast:more){:root{--border:#748279;--muted:#42564b}:root[data-theme=dark]{--border:#829b8e;--muted:#c1d1c7}.btn.light,.pill,.month-day{border:1px solid var(--border)}.header,.app-header,.mobile-nav,.public-dock{backdrop-filter:none;background:var(--surface)}}
[hidden]{display:none!important}
/* Native discrete transitions retain the current presentation on reversal. */
.dialog,#modal{animation:none;transition:opacity .22s,transform .22s cubic-bezier(.2,.7,.2,1),overlay .22s allow-discrete,display .22s allow-discrete;opacity:1;transform:none}
.dialog:not([open]),#modal:not([open]){opacity:0;transform:translateY(12px) scale(.985)}
@starting-style{.dialog[open],#modal[open]{opacity:0;transform:translateY(12px) scale(.985)}}
dialog::backdrop{transition:opacity .22s,overlay .22s allow-discrete,display .22s allow-discrete;opacity:1}
dialog:not([open])::backdrop{opacity:0}
@starting-style{dialog[open]::backdrop{opacity:0}}
@media(prefers-reduced-motion:reduce){.dialog,#modal{transform:none!important}}
html[data-theme=dark] :is(.schedule-overview>div,.schedule-overview>p,.day-panel,.day-panel-head,.calendar-navigation button,.schedule-breadcrumb button,.schedule-empty,.team-summary span,.agenda-day,.agenda-date.selected,.passport,.passport-footer,.review-text,.view-switch button.active,.people-card,.subscription-card,.place-card,.quickstrip,.slot-grid button,.notification-item.unread){background:var(--surface)!important;color:var(--text);border-color:var(--border)}
html[data-theme=dark] :is(.schedule-overview b,.team-summary b,.calendar-navigation button,.schedule-breadcrumb button,.view-switch button.active,.slot-grid button,.optional-details summary,.plan-summary .summary-city,.stat-icon,.overview-icon,.city-symbol,.sidebar-bottom button){color:var(--action)}
html[data-theme=dark] :is(.overview-icon,.city-symbol,.passport-row>span:last-child,.team-member-tags span,#selected-package,.slot-grid button:disabled){background:var(--surface-muted);color:var(--text-muted);border-color:var(--border)}
html[data-theme=dark] :is(.passport-top,.passport-house,.passport-row,.passport-intro,.passport-tabs button,.summary-main h3,.price-note b){color:var(--text)}
html[data-theme=dark] :is(.sidebar nav button:hover:not(.active),.month-day.outside,.month-day:hover,.month-day.selected){background:var(--surface-muted)!important}
html[dir=ltr] :is(.month-day,.schedule-order,.city-choices button,.team-choices button){text-align:left}
html[dir=ltr] .schedule-order{border-right-width:1px;border-left-width:3px}
.mobile-orders dd{overflow-wrap:anywhere}.month-weekdays span{overflow:hidden;text-overflow:ellipsis}.calendar-navigation button{flex-shrink:0}
.public-dock a:last-child{padding-inline:14px;white-space:nowrap}
html[data-theme=dark] .form-error{background:#3b2622;color:#ffd0c7;border-color:#6f4940}.passport{transform:none}
body>header:not(.header){position:sticky;top:0;z-index:35;background:#ffffffed;backdrop-filter:blur(20px)}.cta{min-height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;transition:opacity .18s}.cta:active{opacity:.7;transition:none}.links a{min-height:44px;display:inline-flex;align-items:center}html[data-theme=dark] body>header:not(.header){background:var(--surface)}html[data-theme=dark] body>main:not(#main,#view,.auth) :is(p,li){color:var(--text-muted)}html[data-theme=dark] body>header:not(.header)>a,html[data-theme=dark] .links a{color:var(--action)}html[data-theme=dark] body>main:not(#main,#view,.auth) section{border-color:var(--border)}
@media(prefers-reduced-transparency:reduce){body>header:not(.header){backdrop-filter:none;background:var(--surface)}}
.plan-summary .button{background:#fff;color:#004030;border-color:#fff}.plan-summary .button:hover{background:#e9f1eb;color:#004030}html[data-theme=dark] .plan-summary .button{background:var(--surface-muted);color:var(--action);border-color:var(--border)}
html[data-theme=dark] #menu-toggle{color:var(--action)}
html[dir=ltr] :is([data-sched-prev],[data-sched-next],.schedule-breadcrumb>span){transform:rotate(180deg)}html[dir=rtl] .attention-strip .ui-icon{transform:scaleX(-1)}
.dialog,#modal{transition-duration:.3s}
html[data-theme=dark] .month-weekdays{background:var(--surface-muted);color:var(--text-muted);border-color:var(--border)}

/* Frosted glass, with opaque fallbacks and the original Al Sultan palette. */
:root {
  --glass-pane: rgba(255, 255, 255, .66);
  --glass-chrome: rgba(255, 255, 255, .64);
  --glass-input: rgba(255, 255, 255, .72);
  --glass-edge: rgba(255, 255, 255, .9);
  --glass-shadow: 0 14px 42px rgba(0, 64, 48, .07), inset 0 1px 0 rgba(255, 255, 255, .94);
  --glass-blur: blur(22px) saturate(145%);
  --glass-scene: radial-gradient(ellipse at 90% 8%, rgba(124, 193, 160, .23), transparent 43%), radial-gradient(ellipse at 4% 52%, rgba(172, 117, 108, .13), transparent 42%), linear-gradient(145deg, #f7faf7, #edf4ef);
}
html:root[data-theme=dark] {
  --glass-pane: rgba(24, 48, 38, .66);
  --glass-chrome: rgba(18, 38, 29, .72);
  --glass-input: rgba(14, 32, 24, .7);
  --glass-edge: rgba(195, 235, 211, .16);
  --glass-shadow: 0 16px 48px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(220, 255, 231, .1);
  --glass-scene: radial-gradient(ellipse at 90% 8%, rgba(36, 112, 78, .3), transparent 45%), radial-gradient(ellipse at 3% 65%, rgba(111, 51, 45, .19), transparent 44%), linear-gradient(145deg, #0d1e16, #15291f);
}
html:root[data-theme] body {
  background: var(--glass-scene);
  background-attachment: fixed;
}
html:root[data-theme] :is(.header, .app-header, .sidebar, .mobile-nav, .public-dock),
html:root[data-theme] body>header:not(.header) {
  background: var(--glass-chrome)!important;
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  backdrop-filter: blur(28px) saturate(155%);
  box-shadow: 0 4px 24px rgba(0, 40, 28, .035), inset 0 1px 0 rgba(255, 255, 255, .14);
}
html:root[data-theme] :is(.panel, .stat, .service-card, .package-card, .plan-form, .passport,
  .plan-card, .people-card, .work-card, .place-card, .subscription-card,
  .materials-card, .location-card, .welcome-panel, .calendar-panel, .day-panel,
  .calendar-day-panel, .attention-strip button, .attention-filter,
  .policy-grid article, .auth, .dialog),
html:root[data-theme] #modal {
  background: var(--glass-pane)!important;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
html:root[data-theme] .service-card:hover {
  border-color: rgba(85, 150, 116, .45);
  box-shadow: 0 18px 46px rgba(0, 64, 48, .11), inset 0 1px 0 var(--glass-edge);
}
html:root[data-theme] .attention-strip button.has-items { border-inline-start: 3px solid var(--burgundy); }
html:root[data-theme] :is(.preferences-controls>label, .preferences-controls>button, .btn.light, .button.outline, .soft-button, .date-chip) {
  background: var(--glass-input)!important;
  border-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
html:root[data-theme] :is(input, select, textarea) {
  background: var(--glass-input)!important;
  border-color: rgba(85, 126, 104, .25)!important;
}
html:root[data-theme=dark] :is(input, select, textarea) { border-color: var(--glass-edge)!important; }
html:root[data-theme] select option { background: var(--surface); }
html:root[data-theme] input[aria-invalid=true] { border-color: #a23731!important; }
html:root[data-theme] :is(.btn:not(.light), .button:not(.outline), .cta) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 65%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 12px rgba(0, 44, 32, .1);
  border-color: rgba(255, 255, 255, .14);
}
html:root[data-theme] :is(.hero-note, .plan-summary, .package-card.accent) {
  background: linear-gradient(135deg, rgba(36, 87, 66, .82), rgba(0, 54, 40, .87))!important;
  border: 1px solid rgba(225, 255, 238, .28);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 32, 23, .16), inset 0 1px 0 rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  color: #f0faf4;
}
html:root[data-theme] .hero-note :is(b, span:not(.note-icon)) { color: #edf8f0; }
html:root[data-theme] .hero-note .note-icon { color: #e4b7b0; }
html:root[data-theme] .plan-summary :is(h3, .summary-city, .summary-main p, .summary-foot, .scope-list li, .scope-note, .price-note span, .price-note b) { color: #e0f0e4; }
html:root[data-theme] .package-card.accent :is(p, .package-no, .package-tags span, .package-select, .package-select span) { color: #e0f0e4; }
html:root[data-theme] .package-card.accent .package-select { border-color: rgba(225, 255, 238, .2); }
html:root[data-theme] .plan-summary .button { background: rgba(255, 255, 255, .9)!important; color: #004030; border-color: rgba(255, 255, 255, .95); }
html:root[data-theme] :is(.planner-section, .quickstrip) { background: rgba(210, 231, 218, .3); }
html:root[data-theme=dark] :is(.planner-section, .quickstrip) { background: rgba(17, 36, 27, .36); }
html:root[data-theme] .schedule-overview { gap: 12px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
html:root[data-theme] :is(.schedule-overview>div, .schedule-overview>p) {
  background: var(--glass-pane)!important;
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  border-radius: 16px;
}
html:root[data-theme=dark] :is(.schedule-overview>div, .schedule-overview>p) { background: var(--glass-pane)!important; }
html:root[data-theme] :is(.day-panel-head, .month-weekdays, .panel-heading, .passport-footer) { background: rgba(255, 255, 255, .18)!important; }
html:root[data-theme=dark] :is(.day-panel-head, .month-weekdays, .panel-heading, .passport-footer) { background: rgba(222, 255, 230, .035)!important; }
html:root[data-theme] :is(.month-day, .order-item, .detail-grid>div) { background: rgba(255, 255, 255, .32); }
html:root[data-theme=dark] :is(.month-day, .order-item, .detail-grid>div) { background: rgba(206, 255, 222, .035); }
html:root[data-theme] .month-day.selected { background: rgba(143, 194, 165, .2)!important; }
html:root[data-theme] :is(.dialog, #modal) { background: rgba(249, 253, 249, .92)!important; }
html:root[data-theme=dark] :is(.dialog, #modal) { background: rgba(19, 40, 29, .93)!important; }
html:root[data-theme] dialog::backdrop { background: rgba(4, 25, 17, .34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html:root[data-theme] .form-actions { background: var(--glass-chrome); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@media(max-width:700px) {
  :root { --glass-blur: blur(16px) saturate(135%); }
  html:root[data-theme] .mobile-nav { inset-inline: 12px; bottom: 10px; border: 1px solid var(--glass-edge); border-radius: 24px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: var(--glass-shadow); }
  html:root[data-theme] .public-dock { inset-inline: 12px; bottom: 10px; border: 1px solid var(--glass-edge); border-radius: 22px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: var(--glass-shadow); }
  .app-main { padding-bottom: 100px; }
  html:root[data-theme] .schedule-overview { gap: 8px; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  html:root[data-theme] :is(.header, .app-header, .sidebar, .mobile-nav, .public-dock, .hero-note,
    .panel, .stat, .service-card, .package-card, .plan-form, .passport, .plan-card,
    .people-card, .work-card, .place-card, .subscription-card, .materials-card,
    .location-card, .welcome-panel, .calendar-panel, .day-panel, .calendar-day-panel,
    .attention-strip button, .attention-filter, .policy-grid article, .auth, .dialog),
  html:root[data-theme] #modal,
  html:root[data-theme] body>header:not(.header) { background: var(--surface)!important; }
  html:root[data-theme] :is(.hero-note, .plan-summary, .package-card.accent) { background: #004030!important; }
}
@media(prefers-reduced-transparency:reduce), (prefers-contrast:more) {
  :root, html:root[data-theme=dark] { --glass-pane: var(--surface); --glass-chrome: var(--surface); --glass-input: var(--surface); --glass-blur: none; }
  html:root[data-theme] body { background: var(--bg, #f4f7f4); }
  html:root[data-theme] :is(.header, .app-header, .sidebar, .mobile-nav, .public-dock, .hero-note,
    .panel, .stat, .service-card, .package-card, .plan-form, .passport, .plan-card,
    .people-card, .work-card, .place-card, .subscription-card, .materials-card,
    .location-card, .welcome-panel, .calendar-panel, .day-panel, .calendar-day-panel,
    .attention-strip button, .attention-filter, .policy-grid article, .auth, .dialog),
  html:root[data-theme] #modal,
  html:root[data-theme] body>header:not(.header) {
    background: var(--surface)!important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--border);
    box-shadow: 0 4px 18px rgba(0, 32, 23, .06);
  }
  html:root[data-theme] :is(.hero-note, .plan-summary, .package-card.accent) { background: #004030!important; }
  html:root[data-theme] :is(input, select, textarea, .preferences-controls>label, .preferences-controls>button, .btn.light, .button.outline, .soft-button, .date-chip, .schedule-overview>div, .schedule-overview>p, .day-panel-head, .month-weekdays, .panel-heading, .passport-footer, .month-day, .order-item, .detail-grid>div, .form-actions) { background: var(--surface)!important; }
  html:root[data-theme] .form-actions { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:root[data-theme] dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(4, 25, 17, .6); }
}
html:root[data-theme=light] .care-section .passport { background: rgba(255, 255, 255, .9)!important; }
html:root[data-theme=light] .care-section .passport :is(.tiny, .demo-label, .passport-top small, .passport-row small, .passport-intro, .passport-footer, .passport-tabs button) { color: #4c6357; }
