/* Customer refinements: compact controls, readable content, full provider pages. */
.customer-portal:not(.provider-mode) button{font-size:13px;line-height:1.6;padding:9px 14px;border-radius:12px;min-height:44px}
.customer-portal:not(.provider-mode) input,.customer-portal:not(.provider-mode) select,.customer-portal:not(.provider-mode) textarea{padding:10px 12px;border-radius:11px;min-height:44px;font-size:14px}
.customer-portal:not(.provider-mode) label{font-size:12px;margin:10px 0}.customer-portal:not(.provider-mode) main{padding:8px 0 18px}.customer-portal:not(.provider-mode) .card{padding:16px;border-radius:16px}.customer-portal:not(.provider-mode) .screen-card:not(.provider-card){padding:14px;border-radius:15px}
.customer-portal:not(.provider-mode) .home-intro{padding:18px 20px;margin-bottom:20px;border-radius:19px}.customer-portal:not(.provider-mode) .home-intro h2{font-size:23px;margin:3px 0 6px}.customer-portal:not(.provider-mode) .home-intro p{margin-bottom:10px}.customer-portal:not(.provider-mode) .intro-steps{margin-bottom:12px}.customer-portal:not(.provider-mode) .home-intro a{padding:8px 12px;border-radius:10px;font-size:11px}
.customer-portal:not(.provider-mode) #catalogsearch,.customer-portal:not(.provider-mode) .catalog-searchbar button{min-height:46px}.customer-portal:not(.provider-mode) .catalog-searchbar{margin-bottom:14px;border-radius:13px}.customer-portal:not(.provider-mode) .catalog-searchbar button{border-radius:0;padding:10px}.customer-portal:not(.provider-mode) .app-header{min-height:78px;padding:10px 0}.customer-portal:not(.provider-mode) .brand-wordmark{height:54px;width:120px}
.customer-portal:not(.provider-mode) #screenmenu button{min-height:44px;min-width:0;padding:8px 12px;flex-direction:row;gap:6px;border-radius:24px;font-size:12px;white-space:nowrap}.customer-portal:not(.provider-mode) #screenmenu button>.app-icon{width:21px;height:21px}.customer-portal:not(.provider-mode) #screenmenu .screen-emoji{font-size:19px;line-height:22px}.customer-portal:not(.provider-mode) .category-strip>#nearby{min-height:44px;height:44px;min-width:76px;padding:8px 10px;align-self:start;border-radius:22px;font-size:11px}.customer-portal:not(.provider-mode) .category-strip{margin-bottom:18px;align-items:start}.customer-portal:not(.provider-mode) #screenmenu{margin:0;gap:7px}
.customer-portal:not(.provider-mode) .section-heading h2{font-size:18px}.customer-portal:not(.provider-mode) .catalog-rail>.provider-card{flex-basis:224px;width:224px;max-width:78%}.customer-portal:not(.provider-mode) .provider-card .provider-cover{min-height:0;padding:0;height:145px}.customer-portal:not(.provider-mode) .provider-title{min-height:0;padding:0;border-radius:0;font-size:14px}.customer-portal:not(.provider-mode) .catalog-view-all{min-height:44px;padding:7px 10px}.customer-portal:not(.provider-mode) .card-actions button{min-width:0;flex:0 1 auto;padding:9px 12px;font-size:12px}.customer-portal:not(.provider-mode) .account-menu a{padding:12px 14px;border-radius:0}.customer-portal:not(.provider-mode) .theme-toggle{padding:10px}
.customer-portal:not(.provider-mode) .provider-page-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.provider-hero{background:var(--card);border:1px solid var(--border);border-radius:19px;overflow:hidden}.customer-portal:not(.provider-mode) .provider-hero-image{display:block;position:relative;width:100%;padding:0;min-height:0;border:0;border-radius:0;background:var(--surface);height:240px}.provider-hero-image img{width:100%;height:100%;object-fit:cover}.provider-hero-image span{position:absolute;bottom:12px;left:12px;background:#000b;color:white;padding:4px 10px;border-radius:20px;font-size:11px}.provider-summary{padding:16px}.provider-summary h2{font-size:23px;margin:0 0 6px}.provider-summary p{margin-bottom:8px}.provider-summary .verification-badge{position:static;display:inline-block}.provider-summary .price-note{font-size:14px}
.customer-portal:not(.provider-mode) .provider-page-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;position:sticky;top:0;z-index:10;background:var(--bg);padding:10px 0;margin:8px 0}.customer-portal:not(.provider-mode) .provider-page-tabs button{flex-shrink:0;font-size:12px;padding:7px 12px;min-height:44px;border-radius:22px}.provider-detail-block{scroll-margin-top:78px;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px;margin-bottom:14px}.provider-detail-block h3{font-size:16px;margin:0 0 12px}.provider-detail-block .prose{font-size:13px;line-height:1.95}.customer-portal:not(.provider-mode) .provider-primary-actions{position:sticky;bottom:calc(86px + env(safe-area-inset-bottom,0px));z-index:11;background:var(--card);border:1px solid var(--border);border-radius:15px;padding:9px;margin:12px 0;box-shadow:0 4px 16px #00000012}.customer-portal.native .provider-primary-actions{bottom:8px}.customer-portal:not(.provider-mode) .provider-primary-actions button{flex:1}.provider-safety{margin:8px 0 14px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;font-size:12px}.provider-safety button{margin:8px 0 0 8px}.provider-safety summary{color:var(--muted);font-size:12px;font-weight:500}
.customer-portal:not(.provider-mode) .gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;margin:0 0 14px}.gallery>h3,.gallery>p{grid-column:1/-1}.gallery article{min-width:0}.customer-portal:not(.provider-mode) .gallery-preview,.customer-portal:not(.provider-mode) .offering-preview{display:block;width:100%;min-height:0;padding:0;background:var(--surface);overflow:hidden;border:0;border-radius:11px}.customer-portal:not(.provider-mode) .gallery-preview img,.customer-portal:not(.provider-mode) .gallery video{display:block;width:100%;max-width:100%;height:145px;max-height:none;object-fit:cover;border-radius:11px}.customer-portal:not(.provider-mode) .gallery .report-content{background:transparent;padding:4px 0;min-height:32px;font-size:10px;color:var(--muted);border:0}.provider-offerings .offering-preview img{display:block;width:100%;height:180px;object-fit:cover}.provider-offerings form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.provider-offerings form label{max-width:160px;flex:1;margin:0}.provider-offerings form button{margin:0;flex:1}.provider-availability label{display:inline-block;width:calc(50% - 6px);vertical-align:top}.provider-availability label+label{margin-inline-start:12px}.provider-availability>p:last-child{margin:10px 0 0;font-size:13px;color:var(--accent)}
.customer-image-viewer{position:fixed;inset:0;width:100%;max-width:100%;height:100%;height:100dvh;max-height:100%;margin:0;padding:0;border:0;border-radius:0;background:#0b0b0e;color:#fff;overflow:hidden}.customer-image-viewer[open]{display:flex;flex-direction:column}.customer-image-viewer::backdrop{background:#000}.viewer-toolbar{display:flex;align-items:center;gap:8px;padding:12px 12px 8px;padding-top:max(12px,env(safe-area-inset-top));flex:none}.customer-image-viewer button{background:#ffffff16;color:white;border:1px solid #ffffff25;min-width:44px;min-height:44px;padding:7px;border-radius:50%;font-size:20px}.viewer-counter{flex:1;text-align:center;direction:ltr;font-size:13px}.viewer-stage{position:relative;flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;touch-action:none;overflow:hidden;cursor:grab;user-select:none;-webkit-user-select:none}.viewer-stage:active{cursor:grabbing}.viewer-stage img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:center;pointer-events:none;will-change:transform}.viewer-stage.image-failed:after{content:'تعذر تحميل الصورة. أغلق العارض وحاول مجددًا.';position:absolute;inset:40% 20px;text-align:center;font-size:13px}.viewer-navigation{display:flex;justify-content:center;gap:24px;padding:8px}.viewer-help{font-size:11px;text-align:center;color:#bbb;margin:0;padding:8px 12px max(14px,env(safe-area-inset-bottom))}
@media(min-width:800px){.provider-hero{display:grid;grid-template-columns:1.2fr 1fr}.customer-portal:not(.provider-mode) .provider-hero-image{height:320px}.provider-summary{align-self:center;padding:24px}.customer-portal:not(.provider-mode) .home-intro{padding:24px}.customer-portal:not(.provider-mode) .home-intro h2{font-size:28px}.customer-portal:not(.provider-mode) .gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-portal:not(.provider-mode) .provider-primary-actions{max-width:520px;margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.provider-page-tabs{scroll-behavior:auto}}

.customer-portal .provider-primary-actions{position:fixed;left:16px;right:16px;bottom:calc(86px + env(safe-area-inset-bottom,0px));width:calc(100% - 32px);max-width:600px;margin:0 auto;box-sizing:border-box}.customer-portal.native .provider-primary-actions{bottom:10px}#provider-detailsection{padding-bottom:82px}.customer-portal:not(.provider-mode) .catalog-searchbar label{margin:0}

.request-event-choice{border:1px solid var(--border);background:var(--accent-soft);border-radius:14px;padding:14px;margin:0 0 16px;min-width:0}.request-event-choice legend{padding:0 6px;color:var(--accent);font-size:13px;font-weight:700}.request-event-choice p{margin:10px 0 0;font-size:11px}.quick-event-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.request-event-scope{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.event-linked-requests{padding:14px;border:1px solid var(--border);border-radius:14px;margin-bottom:16px;background:var(--card)}.event-linked-requests h3{font-size:15px}.event-request-row{font-size:12px;padding:8px 0;border-bottom:1px solid var(--border);margin:0}.request-occasion{font-size:11px!important;margin-bottom:8px}#event-choice-dialog h2{font-size:19px}#event-choice-dialog form{margin-bottom:10px}
/* Calm occasion and request workspaces. */
.customer-portal:not(.provider-mode) #requestssection,.customer-portal:not(.provider-mode) #eventssection{padding:0;background:transparent;border:0;box-shadow:none}.customer-portal:not(.provider-mode) #requestssection>h2,.cw-events>h2{font-size:22px;margin:10px 0 5px}.customer-portal:not(.provider-mode) #requestssection>p{font-size:12px;margin-bottom:18px}.cw-page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 18px}.cw-page-heading p{margin:0}.cw-page-heading button{flex-shrink:0}.cw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 18px}.cw-stat{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:13px 8px;background:var(--card);border:1px solid var(--border);border-radius:13px;text-align:center;min-width:0}.cw-stat strong{font-size:20px;line-height:1.6;color:var(--text);font-weight:700}.cw-stat span{font-size:10px;color:var(--muted)}.cw-request-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:10px}.cw-request-tools input,.cw-request-tools select{background:var(--card)}.cw-status-filters,.cw-event-switcher{display:flex;flex-wrap:nowrap;gap:7px;overflow-x:auto;margin:0 0 14px;padding:2px 0 6px;scrollbar-width:thin}.customer-portal .cw-status-filters button,.customer-portal .cw-event-switcher button{flex-shrink:0;padding:8px 12px;border-radius:22px;font-size:11px;white-space:nowrap;background:var(--card)}.customer-portal .cw-status-filters button[aria-pressed=true],.customer-portal .cw-event-switcher button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.cw-result-count{margin:0 0 10px;font-size:11px}.cw-request-list{display:grid;gap:12px}.cw-request-card{padding:15px;background:var(--card);border:1px solid var(--border);border-radius:17px;min-width:0}.cw-request-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.cw-request-head h3{font-size:16px;margin:0;line-height:1.7;min-width:0}.cw-state{display:inline-block;flex-shrink:0;max-width:48%;font-size:10px;line-height:1.7;padding:4px 8px;border-radius:8px;background:var(--surface);color:var(--muted);border:1px solid var(--border)}.cw-state[data-state=confirmed],.cw-state[data-state=completed]{background:#22835e15;color:var(--success,#22835e);border-color:#22835e33}.cw-state[data-state=quoted]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.cw-state[data-state=cancelled],.cw-state[data-state=rejected]{opacity:.75}.cw-request-event{margin-top:8px}.customer-portal .cw-text-button{min-height:32px;padding:2px 0;text-align:right;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:11px;font-weight:500}.cw-request-date{font-size:12px;margin:5px 0 12px;color:var(--muted)}.cw-quote{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:11px;border-radius:11px;background:var(--accent-soft);margin:10px 0}.cw-quote span{font-size:11px;flex:1}.cw-quote strong{font-size:14px;color:var(--accent)}.customer-portal .cw-quote button{font-size:11px;width:100%}.cw-request-footer{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--border);padding-top:10px;align-items:flex-start}.cw-request-details{flex:1;min-width:0;padding:0;border:0}.cw-request-details summary{display:flex;align-items:center;gap:7px;min-height:44px;font-size:12px;color:var(--text);font-weight:600;list-style:none}.cw-request-details summary:after{content:'⌄';font-size:16px;color:var(--muted)}.cw-request-details[open]{flex-basis:100%;order:2}.cw-request-details[open] summary:after{content:'⌃'}.cw-request-details dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 14px;margin:12px 0}.cw-request-details dt{font-size:11px;color:var(--muted)}.cw-request-details dd{margin:0;font-size:12px;overflow-wrap:anywhere}.cw-request-details .prose,.cw-line-item{font-size:12px;line-height:1.9}.cw-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.customer-portal .cw-cancel{color:var(--accent);background:transparent}.customer-portal .cw-chat{font-size:11px;padding:8px 11px}.cw-quote-note{padding:10px;border-radius:10px;background:var(--surface)}.cw-empty{text-align:center;background:var(--card);border:1px dashed var(--border);border-radius:16px;padding:30px 18px}.cw-empty strong{font-size:16px}.cw-empty p{margin:8px 0 16px}.customer-portal .cw-load-more{width:100%}.cw-event-summary{padding:18px;background:var(--card);border:1px solid var(--border);border-radius:18px;margin-bottom:14px}.cw-event-summary>h3{font-size:24px;margin:12px 0 6px}.cw-eyebrow{font-size:12px;color:var(--accent)}.cw-event-date{font-size:14px;margin:0 0 6px}.cw-event-summary .cw-stat strong{font-size:16px}.cw-event-summary .cw-stat:first-child strong{font-size:13px}.cw-event-summary .cw-stat{background:var(--bg);padding:12px 6px}.cw-event-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cw-event-actions button:first-child{grid-column:1/-1}.cw-event-status{font-size:11px!important;margin:14px 0 0;line-height:1.9}.cw-event-editor{padding:0;border:1px solid var(--border);border-radius:15px;background:var(--card);overflow:hidden}.cw-event-editor>summary{padding:15px;font-size:13px;color:var(--text);min-height:48px}.cw-event-form{padding:0 15px 16px}.cw-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.cw-form-section{border:1px solid var(--border);padding:12px;border-radius:12px;margin:12px 0;background:var(--card)}.cw-form-section summary{font-size:12px;min-height:24px;color:var(--text)}.cw-form-section[open] summary{margin-bottom:12px}.cw-form-feedback:empty{display:none}.cw-form-feedback{color:var(--accent);font-size:12px}.cw-event-form>button:last-child{width:100%;margin-top:12px}.cw-checkout>summary{color:var(--accent)}.cw-events #eventarea>h3{font-size:20px}.cw-event-switcher:empty{display:none}
@media(min-width:700px){.cw-request-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.cw-request-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.cw-load-more,.cw-request-list>.cw-empty{grid-column:1/-1}.cw-event-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.cw-event-actions button:first-child{grid-column:auto}.cw-event-summary{padding:24px}.cw-stat strong{font-size:23px}}@media(max-width:350px){.cw-request-head h3{font-size:14px}.cw-state{font-size:9px}.cw-page-heading{flex-wrap:wrap}.cw-form-grid{grid-template-columns:minmax(0,1fr)}}

.cw-quote-summary{width:100%;margin:3px 0;font-size:12px;line-height:1.9;color:var(--text)}
