/* One surface per content group. Inputs, messages and alerts retain their own roles. */
:root{--surface-shadow:0 2px 8px #252b3a08,0 1px 2px #252b3a04;--surface-gap:12px}
.panel,.order-card,.stats article{border:0;box-shadow:var(--surface-shadow)}
.panel{padding:20px;margin-bottom:var(--surface-gap);border-radius:14px;min-width:0}
.panel .panel{background:transparent;box-shadow:none;border:0;border-radius:0;padding:14px 0 0;margin:14px 0 0;border-top:1px solid var(--line)}
.panel .panel:first-child{padding-top:0;margin-top:0;border-top:0}
.panel>p:first-child,.panel>.actions:first-child{margin-top:0}
.panel>p:last-child,.panel>.actions:last-child{margin-bottom:0}
.panel .hint{background:transparent;border:0;padding:0;margin:10px 0;color:#636c7b}
.panel .hint strong{color:#343c4b}
.actions{gap:8px;margin-top:14px}.actions:empty{display:none}
.btn{min-width:0;max-width:100%;white-space:normal;line-height:1.4}
.actions .btn{min-width:0;overflow-wrap:anywhere}
.field{min-width:0;gap:7px;margin-bottom:14px}
input,textarea,select{min-width:0;padding:11px 12px;min-height:44px}
input[type=checkbox]{flex:none;min-height:20px}
.check{margin:12px 0;align-items:flex-start;line-height:1.45}
.check input{margin-top:1px}
.heading{gap:10px;margin-bottom:18px}
.heading h1{margin-bottom:0}.heading h1+small{display:block;margin-top:5px}
.mobile-back{margin-bottom:12px}
.summary-row{padding:10px 0;gap:10px}
.summary-row:last-child{border-bottom:0}
.grid,.two-columns{gap:var(--surface-gap)}
.order-card{padding:14px;border-radius:12px}
.order-card:hover{box-shadow:0 4px 12px #252b3a10;transform:none}
.order-card p{margin:6px 0 9px}.card-meta{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px}
.card-meta>*{min-width:0;overflow-wrap:anywhere}.pill{max-width:100%;overflow-wrap:anywhere}
.empty{padding:28px 18px}.empty p{margin:8px auto 16px}
.stats{gap:10px;margin-bottom:16px}.stats article{padding:15px;border-radius:12px;min-width:0}
.stats strong{font-size:25px;overflow-wrap:anywhere}
.panel.table-wrap{padding:0}.table-wrap td,.table-wrap th{padding:11px 12px}
.table-wrap td .btn{min-height:36px}.note-row{padding:11px 0;overflow-wrap:anywhere}
.note-row:first-child{padding-top:0}.note-row:last-child{padding-bottom:0}
.note-row>.btn.ghost.full{justify-content:flex-start;text-align:left;padding:8px 0}
.f-fee{background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;margin-bottom:14px}
.f-support-message{border:0;padding:11px 13px;margin-bottom:9px}
.f-support-thread{margin:12px 0 16px}.f-entry{padding:13px 0}
.f-ledger{padding:4px 18px}.f-balance h1{margin:6px 0 14px}
.j-repeat{min-width:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:14px 0 0;margin:14px 0}
.j-repeat legend{padding:0 8px 0 0;font-size:12px}
.j-skills{gap:5px;margin:10px 0}.j-skills span{border:0;padding:4px 7px}
.panel.j-offer{background:#fbfefc;box-shadow:var(--surface-shadow),inset 3px 0 #8cc9b3}
.v-badges{gap:0;margin-top:12px}.v-badges .safety-note{background:transparent;border:0;border-radius:0;padding:10px 0;margin:0;color:#265846}
.v-badges .safety-note+.safety-note{border-top:1px solid #e5eeea}
.v-add-grid{gap:8px;margin-bottom:16px}.v-assets{gap:8px;margin-top:12px}
.g-feed{padding:14px 16px}.g-feed .actions{margin:0}.g-map{border-radius:12px}
.profile-shortcuts{gap:8px;margin-bottom:20px}
.notification-settings{display:flex;justify-content:flex-start;margin-bottom:16px}
.notification-settings .btn{box-shadow:var(--surface-shadow);border:0;padding:12px 14px}
.p-device{flex-wrap:wrap;gap:8px;padding:11px 0}.p-device>div{flex:1 1 160px}
.p-travel-link{margin:12px 0}
.check input{accent-color:var(--accent)}
.stats+.panel .summary-row{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:620px){
 .content{padding:20px 16px calc(88px + env(safe-area-inset-bottom))}
 .panel{padding:16px;border-radius:12px;margin-bottom:12px}
 .panel.table-wrap{padding:0}
 .table-wrap td .btn{min-height:44px}
 .panel .panel{padding:12px 0 0;margin:12px 0 0}
 .field{margin-bottom:14px}.heading{margin-bottom:16px}
 .heading .btn{white-space:normal;min-height:44px}
 .stats article{padding:13px}.stats strong{font-size:23px}
 .stats{gap:8px}.f-ledger{padding:4px 14px}
 .f-entry-amount{max-width:48%}.f-entry-amount .btn{min-height:44px}
 .j-filter-grid{gap:10px;padding:12px 0}
 .summary-row{grid-template-columns:minmax(78px,34%) minmax(0,1fr)}
 .v-add-grid .btn{min-height:44px}.g-feed{padding:12px}
 body[data-admin=true] aside{gap:6px;padding:6px 12px max(6px,env(safe-area-inset-bottom));scroll-padding-inline:12px}
 body[data-admin=true] aside .nav{flex:0 0 auto;width:auto;flex-direction:row;gap:7px;min-height:44px;padding:10px 12px;font-size:13px;white-space:nowrap}
 body[data-admin=true] aside .nav span{line-height:1.3}
}
@media(prefers-reduced-motion:reduce){.order-card{transition:none}}
/* Order cards: real photos are optional; no empty image placeholders. */
.o-card{padding:14px;text-align:left;display:flex;flex-direction:column;gap:0;min-width:0}
.o-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.o-card-meta .pill{font-size:10px;line-height:1.3;padding:4px 7px;max-width:75%}
.o-number{font-size:10px;color:#7b8190;white-space:nowrap;flex:none}
.o-card h3{font-size:16px;line-height:1.35;margin:0;color:#252a34;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.o-card .o-description{font-size:12px;line-height:1.45;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#727887}
.o-price-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}
.o-price-row>div{min-width:0}.o-price-row small{font-size:10px;display:block;margin-bottom:2px}
.o-price{font-size:17px;font-weight:700;line-height:1.3;display:block;overflow-wrap:anywhere}
.o-date{display:flex;align-items:center;gap:5px;flex:none;font-size:11px;color:#6b7280;max-width:42%;flex-wrap:wrap}
.o-date svg,.o-place>svg{width:14px;height:14px;flex:none;color:#858b98}
.o-place{display:flex;align-items:center;gap:6px;font-size:11px;color:#707787;margin-top:auto;min-width:0;line-height:1.5}
.o-place>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.o-distance{white-space:nowrap;flex:none;font-size:10px;color:#267357;background:#edf6f2;border-radius:5px;padding:2px 5px;margin-left:auto}
.o-thumbnails{display:flex;gap:6px;margin:0 0 10px}
.o-thumbnail{position:relative;display:block;flex:none;width:68px;height:60px;border-radius:8px;overflow:hidden;background:#eef0f4}
.o-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.o-thumbnail img[hidden]{display:none}
.o-card .o-photo-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;margin:0 0 12px}
.o-card .o-photo-strip .o-photo-tile{position:relative;isolation:isolate;width:100%;height:116px;min-width:0;border-radius:12px;overflow:hidden;background:#eeedf0;cursor:zoom-in}
.o-card .o-photo-strip .o-photo-tile:only-child{height:164px}
.o-photo-strip .o-photo-tile img{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;border-radius:0}
.o-photo-strip .o-photo-tile .o-photo-backdrop{object-fit:cover;filter:blur(12px);transform:scale(1.15);opacity:.45;pointer-events:none}
.o-photo-strip .o-photo-tile .o-photo-foreground{object-fit:scale-down;z-index:1}
.o-photo-strip .o-photo-tile img[hidden]{display:none}
.o-photo-strip .o-photo-count{z-index:2;position:absolute;inset:auto 7px 7px auto;display:block;padding:4px 8px;border-radius:8px;background:#202529d9;color:white;font-size:14px;font-weight:600;line-height:1.3}
@media(max-width:360px){.o-card .o-photo-strip .o-photo-tile{height:96px}}
.o-photo-count{position:absolute;inset:0;display:grid;place-items:center;background:#1d243c91;color:white;font-size:16px;font-weight:700}
.o-unavailable{display:grid;place-items:center}.o-unavailable svg{width:19px;height:19px;color:#858b98}
.o-search{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}
.o-search input{max-width:none}.o-search .btn{padding:0}
.o-toolbar{display:flex;align-items:stretch;gap:8px;margin-bottom:16px}.o-toolbar .o-search{flex:1;min-width:0;margin:0}.o-toolbar>.btn{width:44px;flex:none;padding:0}
.o-feed-filters{background:transparent;box-shadow:none;padding:0;margin:0 0 16px}
.o-feed-filters .actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:8px}
.o-feed-filters .actions .btn{min-height:44px;padding:9px;font-size:13px}
.o-feed-filters details{margin-top:6px}.o-feed-filters summary{font-size:12px;min-height:34px;color:#727887}
.order-feed{align-items:start}.panel.inline{flex-wrap:wrap}
.o-upload{border-top:1px solid var(--line);padding-top:14px;margin:14px 0}
.o-upload-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin-bottom:10px}
.o-upload-title small{font-size:11px;font-weight:400}
.o-upload-button{position:relative;overflow:hidden;cursor:pointer;gap:8px}
.o-upload-button input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;padding:0}
.o-upload-button:focus-within{outline:3px solid #78b5d2;outline-offset:3px}
.o-draft-photos{display:flex;flex-wrap:wrap;gap:10px}
.o-draft-photo{position:relative;margin-bottom:10px;width:76px;height:70px}
.o-draft-photo>img{width:76px;height:70px;object-fit:cover;border-radius:9px}
.o-remove{position:absolute;top:-7px;right:-7px;width:44px;height:44px;border:0;background:transparent;display:grid;place-items:center;color:white}
.o-remove:before{content:'';position:absolute;width:27px;height:27px;border-radius:50%;background:#222a29d9}
.o-remove svg{position:relative;width:15px;height:15px}
.o-upload .safety-note{font-size:11px;margin:8px 0;line-height:1.5}
#o-upload-status:empty{display:none}
.wizard{max-width:580px;margin-inline:auto;min-width:0}
.w-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}
.w-top .btn{padding:8px 0;min-height:44px;font-size:13px;box-shadow:none}
.w-top .w-save{font-size:12px;text-align:right;white-space:normal}
.w-stage{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;margin-bottom:9px;gap:12px}
.wizard .progress{margin:0 0 18px;gap:5px;height:4px}
.wizard>h1{font-size:25px;line-height:1.25;margin:0 0 18px;overflow-wrap:anywhere}
.w-surface{padding:20px;border:0;border-radius:18px;box-shadow:0 3px 18px #17203307}
.w-surface .field{gap:7px;margin-bottom:16px}
.w-surface .hint{font-size:12px;line-height:1.55}
.w-surface textarea{min-height:140px;resize:vertical}
.w-details-meta{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-top:-8px}
.w-details-meta small{font-size:11px;white-space:nowrap;color:var(--muted);padding-top:2px}
.w-surface .actions{margin:20px 0 0}
.w-address-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.w-address-grid .field{min-width:0}
.w-address-grid input{min-width:0}
.wizard .g-map{height:220px;min-height:220px;border-radius:12px}
.wizard .g-picker{margin-bottom:16px}
.wizard .g-picker>.hint,.wizard .g-picker>.safety-note{font-size:11px;line-height:1.5;margin:9px 0}
.wizard .g-picker .actions{margin-top:10px;gap:8px}
.wizard .g-picker .actions .btn{padding:10px 8px;font-size:12px;min-width:0;white-space:normal}
.wizard .g-data-note summary,.wizard .g-manual summary{font-size:11px;font-weight:500;color:var(--muted);min-height:36px}
.w-review-section{padding:14px 0;border-bottom:1px solid #eceef3;min-width:0}
.w-review-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.w-review-heading h2{font-size:13px;font-weight:500;color:var(--muted);margin:0}
.w-review-heading .btn{font-size:12px;min-height:44px;padding:8px 0;box-shadow:none}
.w-review-section h3{font-size:16px;line-height:1.4;margin:0 0 7px;overflow-wrap:anywhere}
.w-review-section p{margin:6px 0;line-height:1.5;font-size:14px;overflow-wrap:anywhere}
.w-review-section strong{font-size:14px;overflow-wrap:anywhere}
.w-description{white-space:pre-wrap;max-height:220px;overflow:auto}
.w-review-intro{margin-top:0}
.w-review-section .summary-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:12px;padding:7px 0}
.w-review-section .o-detail-photos{margin:12px 0 0}
.w-review-section .hint{font-size:11px}
.w-publication-note{margin:16px 0 0}
.o-draft-preview{border:0;padding:0;width:76px;height:70px;border-radius:9px;overflow:hidden;background:#f0f1f5}
.o-draft-preview img{width:100%;height:100%;object-fit:cover;display:block}
.wizard .service-option{min-height:52px;padding:13px 0;border-radius:0;border-width:0 0 1px;box-shadow:none}
.wizard .service-option:last-child{border-bottom:0}
@media(max-width:420px){.w-surface{padding:16px}.wizard>h1{font-size:23px}.w-address-grid{gap:8px}.w-address-grid .field>span{font-size:11px;line-height:1.4}.w-top .btn{font-size:12px}.w-top .w-save{font-size:11px}.w-details-meta{flex-wrap:wrap;gap:5px}.w-details-meta small{margin-left:auto}.wizard .g-map{height:205px;min-height:205px}}
.o-detail-photos{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.o-detail-photos .o-photo-button{padding:0;border:0;background:#eef0f4;border-radius:9px;overflow:hidden;width:90px;height:80px;flex:none}
.o-photo-button img{width:100%;height:100%;object-fit:cover;display:block}
.o-lightbox{border:0;border-radius:16px;padding:14px;width:calc(100% - 24px);max-width:880px;max-height:94dvh;box-shadow:0 20px 80px #0003}
.o-lightbox::backdrop{background:#181e2bd9}
.o-lightbox-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#6a7281;margin-bottom:10px}
.o-lightbox-image{display:block;width:100%;height:65dvh;object-fit:contain;background:#f5f5f7;border-radius:10px}
.o-lightbox{overflow-x:hidden}.o-lightbox-image{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;transition:transform .18s ease-out}.o-lightbox-image.o-swiping{transition:none}
@media(prefers-reduced-motion:reduce){.o-lightbox-image{transition:none}}
.o-lightbox-controls{display:flex;justify-content:center;gap:10px;margin-top:12px}.o-lightbox-controls .btn{min-width:48px}
.o-lightbox-error{font-size:12px;color:#b33443}.o-lightbox-error:empty{display:none}
@media(max-width:360px){.o-card{padding:13px}.o-price{font-size:16px}.o-card h3{font-size:15px}}

.o-upload-queue{display:grid;gap:8px;margin:10px 0}.o-queued-photo{display:flex;gap:10px;align-items:center;min-width:0;padding:8px;border:1px solid #e1e4ec;border-radius:12px}.o-queued-photo>img{width:48px;height:48px;object-fit:cover;border-radius:8px;flex-shrink:0}.o-queued-photo>div{min-width:0;flex:1}.o-queued-photo small{display:block;overflow-wrap:anywhere;color:#6c7588;font-size:12px}.o-queued-photo progress{display:block;width:100%;height:5px;margin-top:6px;accent-color:#c51c60}.o-queued-photo .btn{padding:6px 9px;min-height:40px}.o-upload-button[hidden]{display:none}.o-background-status:empty{display:none}

.wizard #wizard-form textarea[name=details]{min-height:96px}

.o-card .o-photo-strip[data-count="1"]{grid-template-columns:1fr}.o-card .o-photo-strip[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
