/* Guided order flow: the sheet replaces the canvas until the summary. */
#main:has(>dialog.of-flow-sheet) .cp-canvas{visibility:hidden}
dialog.cp-sheet.of-flow-sheet{min-height:min(92dvh,760px)}
dialog.cp-sheet.of-flow-sheet::backdrop{background:#f5f5f7;backdrop-filter:none}
.of-progress{height:3px;border-radius:3px;background:#efeef3;margin:0 44px 6px 0;overflow:hidden}
.of-progress span{display:block;height:100%;background:#a73456;border-radius:3px;transition:width .25s ease}
@media(prefers-reduced-motion:reduce){.of-progress span{transition:none}}
/* Radio questions advance on tap; Enter still submits through the hidden default button. */
.of-radio .cp-editor-actions .cp-next{display:none}
.of-radio .cp-editor-actions .cp-back{flex:1 1 0}
.of-radio .cp-editor-actions .of-skip-action{flex:1 1 0;min-height:56px;border:1px solid #e4e4e9;border-radius:18px;background:#f5f5f7;color:#252b2e;font-weight:600;margin:0}
.of-locked{opacity:.42;pointer-events:none}
.of-option-hint{display:block;margin-top:3px;color:#7d7e88;font-size:13.5px;font-weight:400;line-height:1.35}

/* Dates */
.of-dates{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.of-date-field{display:block;text-align:left;min-height:62px;padding:9px 13px;background:#fff;border:1px solid #dfdfe6;border-radius:14px;cursor:pointer;color:#252b2e;font:inherit}
.of-date-field small{display:block;color:#73747f;font-size:12px;margin-bottom:2px}
.of-date-field span{display:block;font-size:15px;font-weight:600}
.of-date-field .of-placeholder{color:#a3a4ae;font-weight:400}
.of-date-field.of-active{border-color:#a73456;box-shadow:0 0 0 1px #a73456}
.of-cal{display:grid;gap:8px;margin:0 0 10px;padding:12px;background:#fafafc;border:1px solid #eeeef3;border-radius:18px}
.of-cal[hidden]{display:none}
.of-cal-head{display:flex;align-items:center;justify-content:space-between}
.of-cal-head strong{font-size:16px;text-transform:capitalize}
.of-cal-head button{width:40px;height:40px;border:1px solid #e4e4e9;border-radius:12px;background:#fff;font-size:22px;line-height:1;cursor:pointer;color:#252b2e}
.of-cal-head button:disabled{opacity:.3;cursor:default}
.of-cal-week,.of-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.of-cal-week small{color:#7d7e88;font-size:12px}
.of-cal-grid button{height:42px;border:0;border-radius:10px;background:none;font-size:15px;cursor:pointer;color:#252b2e}
.of-cal-grid button:hover:not(:disabled){background:#f0eff4}
.of-cal-grid button:disabled{color:#c5c5cd;cursor:default}
.of-cal-grid .of-today{box-shadow:inset 0 0 0 1px #a73456}
.of-cal-grid .of-between{background:#f6e6ec;border-radius:0}
.of-cal-grid .of-edge{background:#a73456;color:#fff;font-weight:650}

/* Map screen: a sheet that stops short of the top edge, map first, address below */
dialog.cp-sheet.of-map-sheet{height:calc(100dvh - 34px - env(safe-area-inset-top));max-height:none;min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
.of-map-sheet .cp-sheet-handle{position:absolute;top:0;left:0;right:0;z-index:5;padding-top:8px}
.of-map-sheet .of-progress{position:absolute;top:22px;left:18px;right:64px;margin:0;z-index:5;background:#ffffffb8}
.of-map-sheet .cp-sheet-close{z-index:6;top:12px;right:12px;background:#fff;box-shadow:0 2px 10px #2021282e}
.of-mapwrap{position:relative;flex:1 1 auto;min-height:220px}
dialog.cp-sheet.of-map-sheet .of-mapwrap .g-map{position:absolute;inset:0;width:100%;height:100%;max-height:none;min-height:0;margin:0;border-radius:0}
.of-map-sheet .cp-editor{flex:0 0 auto;padding:12px 16px calc(14px + env(safe-area-inset-bottom))!important;background:#fff;border-radius:20px 20px 0 0;margin-top:-16px!important;position:relative;z-index:4;box-shadow:0 -6px 22px #20212818}
.of-map-sheet .cp-editor h1{font-size:19px;margin:0 0 8px}
.of-map-sheet .w-surface{padding:0;margin:0;border:0;background:none;box-shadow:none}
.of-map-sheet #form-error:empty{display:none}
.of-map-sheet .cp-editor-actions{margin-top:10px}
.cp-sheet .of-loc{display:block}
.of-loc #order-location,.of-loc .w-address-grid,.of-loc>.actions,.of-loc .g-publication-note,.of-loc .cj-recent{display:none!important}
.of-addr-open{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:0 14px;background:#f5f5f7;border:1px solid #e9e9ef;border-radius:14px;color:#252b2e;font:inherit;font-size:15px;text-align:left;cursor:pointer}
.of-addr-open svg{flex:none;color:#7d7e88}
.of-addr-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.of-addr-open .of-placeholder{color:#7d7e88}
.of-recent{display:flex;gap:8px;overflow-x:auto;padding:8px 0 2px;scrollbar-width:none}
.of-recent::-webkit-scrollbar{display:none}
.of-recent[hidden]{display:none}
.of-recent button{flex:none;display:inline-flex;align-items:center;gap:6px;max-width:230px;min-height:36px;padding:0 11px;background:#fff;border:1px solid #e9e9ef;border-radius:18px;color:#5f606b;font:inherit;font-size:13px;cursor:pointer}
.of-recent svg{flex:none;color:#a3a4ae}
.of-recent span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.of-locate{margin:0 12px 34px 0!important}
.of-locate button{display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;background:#fff;color:#a73456;box-shadow:0 3px 12px #20212840;cursor:pointer}
/* Address sheet rising over the map */
.of-panel{position:absolute;left:0;right:0;bottom:0;top:9%;z-index:20;display:flex;flex-direction:column;gap:8px;padding:14px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -10px 34px #2021282e;transform:translateY(24px);opacity:.6;transition:transform .2s ease,opacity .2s ease}
.of-panel[hidden]{display:none}
.of-panel.of-open{transform:none;opacity:1}
@media(prefers-reduced-motion:reduce){.of-panel{transition:none}}
.of-panel-head{display:flex;align-items:center;min-height:32px}
.of-panel-head strong{font-size:19px}
.of-panel-map{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:12px;background:none;color:#7d7e88;cursor:pointer}
.of-panel .field{margin:0}
.of-panel input,.of-panel select{height:46px;min-height:46px;margin:0;font-size:16px;border-radius:12px}
.of-search{display:flex;align-items:center;gap:6px;height:48px;padding:0 4px 0 12px;background:#f5f5f7;border:1px solid #e9e9ef;border-radius:14px;color:#7d7e88}
.of-search:focus-within{border-color:#a73456}
.of-search-slot{flex:1;min-width:0}
.of-panel .of-search input{width:100%;height:44px;min-height:44px;padding:0;border:0;background:none;outline:0;box-shadow:none;color:#252b2e}
.of-results{flex:1 1 auto;min-height:0;overflow:auto;margin:0 -4px}
.of-results button{display:block;width:100%;min-height:52px;padding:8px;text-align:left;background:none;border:0;border-bottom:1px solid #f2f2f6;cursor:pointer;color:#252b2e;font:inherit}
.of-results button:hover,.of-results button:focus-visible{background:#f7f6f9}
.of-results strong{display:block;font-size:16px;font-weight:600}
.of-results small{display:block;margin-top:1px;color:#7d7e88;font-size:13px}
.of-results p{margin:0;padding:12px 8px;color:#7d7e88;font-size:14px;line-height:1.4}
.of-panel-head,.of-panel-city,.of-search,.of-panel-country{flex:none}
.of-panel-country label{display:flex;align-items:center;gap:8px}
.of-panel-country label>span{flex:none;font-size:12px;color:#7d7e88}
.of-panel-country select{height:40px;min-height:40px;padding:0 10px;line-height:normal;font-size:14px;background:#fff}

/* Price */
.of-units{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.of-units label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-size:16px}
.of-units input{width:20px;height:20px;accent-color:#a73456;margin:0}
.of-money{position:relative}
.of-money input{padding-right:84px!important}
.of-money em{position:absolute;right:14px;bottom:15px;font-style:normal;color:#7d7e88;font-size:15px;pointer-events:none}
.of-unit-field{display:block;position:relative;margin:0 0 4px}
.of-unit-field input{height:56px;font-size:18px;appearance:textfield;-moz-appearance:textfield}
.of-unit-field input::-webkit-inner-spin-button,.of-unit-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.of-unit-field em{bottom:17px;font-size:17px}
.of-price .actions{margin:0}

/* Summary */
.cp-task-body>h2{margin:0 0 8px;font-size:18px}
.of-rows{display:grid;gap:0;border:1px solid #ececf1;border-radius:16px;overflow:hidden;margin-bottom:16px;background:#fff}
.of-row{display:block;width:100%;padding:9px 13px;text-align:left;background:none;border:0;border-bottom:1px solid #f1f1f5;cursor:pointer;color:#252b2e;font:inherit}
.of-row:last-child{border-bottom:0}
.of-row:hover{background:#faf9fb}
.of-row small{display:block;color:#7d7e88;font-size:12.5px;line-height:1.3}
.of-row span{display:block;font-size:15px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.of-row-empty span{color:#a73456}
.cp-task-body .of-extra-title{margin-top:4px}
.of-wishes{display:block;margin:0 0 8px}
.of-wishes span{display:block;font-size:14px;color:#5f606b;margin-bottom:4px}
.of-wishes textarea{width:100%;padding:11px 13px;border:1px solid #dfdfe6;border-radius:14px;font:inherit;font-size:15px;line-height:1.4;resize:vertical;background:#fff;color:#252b2e}
.of-ai-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 14px}
.of-ai{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 14px;border-radius:21px;border:1px solid #e9cdd8;background:#fbf1f5;color:#a73456;font:inherit;font-weight:650;font-size:14px;cursor:pointer}
.of-ai-row small{color:#73747f;font-size:13px;line-height:1.35;flex:1 1 180px}
.of-dock>span{min-width:0}
.of-dock strong{display:block}
.of-masters{display:flex;align-items:center;gap:8px;margin-top:5px}
.of-masters[hidden]{display:none}
.of-masters small,.of-matches small{color:#73747f;font-size:12.5px}
.of-stack{display:inline-flex;font-style:normal}
.of-stack .avatar{width:40px;height:40px;font-size:15px;margin-left:-11px;border:2px solid #fff;overflow:hidden;flex:none}
.of-stack .avatar:first-child{margin-left:0}
.of-stack .avatar img{width:100%;height:100%;object-fit:cover}

/* Publication */
.op-feedback{display:none!important}
.of-pub{position:fixed;left:0;right:0;bottom:0;z-index:2000;display:grid;justify-items:center;gap:6px;padding:22px 20px calc(30px + env(safe-area-inset-bottom));background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -18px 60px #20212838;text-align:center;animation:of-rise .26s ease-out}
.of-pub strong{font-size:20px}
.of-pub small{color:#73747f;font-size:14px}
.of-pub-scene{position:relative;display:grid;place-items:center;width:120px;height:120px;color:#a73456;margin-bottom:2px}
.of-pub-scene svg{position:relative;animation:of-float 1.4s ease-in-out infinite}
.of-pub-scene i{position:absolute;inset:38px;border-radius:50%;border:2px solid #a73456;opacity:0;animation:of-ring 1.8s ease-out infinite}
.of-pub-scene i:nth-child(2){animation-delay:.6s}.of-pub-scene i:nth-child(3){animation-delay:1.2s}
@keyframes of-ring{0%{transform:scale(.6);opacity:.55}100%{transform:scale(2.5);opacity:0}}
@keyframes of-float{0%,100%{transform:translateY(2px)}50%{transform:translateY(-4px)}}
.of-dots{display:inline-flex;gap:3px;margin-left:6px;vertical-align:middle}
.of-dots i{width:5px;height:5px;border-radius:50%;background:#a73456;animation:of-dot 1.1s ease-in-out infinite}
.of-dots i:nth-child(2){animation-delay:.16s}.of-dots i:nth-child(3){animation-delay:.32s}
@keyframes of-dot{0%,70%,100%{transform:none;opacity:.3}35%{transform:translateY(-4px);opacity:1}}
.of-steps{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.of-steps li{position:relative;padding-left:28px;font-size:15px;color:#b4b5bd;transition:color .25s}
.of-steps li::before{content:'';position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;background:#ecebf0;transition:background .25s,transform .25s}
.of-steps .of-dots{display:none}
.of-steps li.of-on{color:#252b2e}
.of-steps li.of-on:not(.of-done) .of-dots{display:inline-flex}
.of-steps li.of-on::before{background:#f0dbe3}
.of-steps li.of-done::before{background:#1f8a54;transform:scale(1.05)}
.of-steps li.of-done::after{content:'';position:absolute;left:6px;top:6px;width:6px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);animation:of-pop .22s ease-out}
.of-live{flex:none;width:9px;height:9px;border-radius:50%;background:#1f8a54;animation:of-live 1.8s ease-out infinite}
@keyframes of-live{0%{box-shadow:0 0 0 0 #1f8a5466}100%{box-shadow:0 0 0 9px #1f8a5400}}
.of-person-new{animation:of-pop .3s ease-out}
@keyframes of-pop{from{transform:scale(.92);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.of-pub,.of-pub-scene svg,.of-pub-scene i,.of-dots i,.of-live,.of-person-new,.of-steps li.of-done::after{animation:none}.of-pub-scene i{display:none}}
.of-matches{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.of-matches:empty{display:none}
.of-peek{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom));z-index:30;width:min(560px,calc(100% - 24px));min-height:54px;display:flex;align-items:center;gap:10px;padding:8px 14px;background:#fff;border:1px solid #e4e4e9;border-radius:18px;box-shadow:0 10px 30px #2021282e;cursor:pointer;color:#252b2e;font-size:14px}
.of-peek:empty{display:none}
.of-peek strong{margin-left:auto;font-weight:650}
.of-peek i{font-style:normal;color:#7d7e88}
.of-peek-stat{display:inline-flex;align-items:center;gap:4px;color:#5f606b}
.of-peek-stack{display:inline-flex}.of-peek-stack:empty{display:none}
.of-peek-stack .avatar{width:36px;height:36px;font-size:14px;margin-left:-10px;border:2px solid #fff;overflow:hidden}.of-peek-stack .avatar:first-child{margin-left:0}
@media(min-width:900px){.of-peek{bottom:20px}}
dialog.of-activity{position:fixed;inset:auto 0 0 0;margin:auto auto 0;width:min(620px,100%);max-width:none;min-height:min(72dvh,640px);max-height:88dvh;border:0;border-radius:26px 26px 0 0;background:#fff;color:#252b2e;padding:14px 20px calc(20px + env(safe-area-inset-bottom));overflow:auto;box-shadow:0 -18px 60px #20212838;animation:of-rise .24s ease-out}
dialog.of-activity::backdrop{background:#282a3540}
@keyframes of-rise{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){dialog.of-activity{animation:none}}
.of-activity h2{margin:2px 0 12px;font-size:22px}
.of-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.of-stats div{background:#f5f5f7;border-radius:14px;padding:10px 14px;color:#5f606b}
.of-stats strong{display:block;font-size:24px;line-height:1.1;color:#252b2e}
.of-stats small{color:#73747f;font-size:13px}
.of-people{display:grid;gap:4px;margin-bottom:6px}
.of-people:empty{display:none}
.of-no-wait{margin:4px 0 14px;font-size:15px;line-height:1.4;color:#3c3f49}
.of-activity .of-another{margin-top:8px}
.of-person{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;background:none;border:0;border-radius:12px;padding:6px;text-align:left;cursor:pointer;color:inherit}
.of-person:hover{background:#f5f5f7}
.of-person .avatar{width:48px;height:48px;flex:none;overflow:hidden}
.of-person .avatar img{width:100%;height:100%;object-fit:cover}
.of-person strong{display:block;font-size:15px}
.of-person small{color:#73747f;font-size:13px}.of-person .of-replied{color:#a73456;font-weight:650}
.of-empty{margin:0;padding:12px 14px;background:#f5f5f7;border-radius:14px;color:#5f606b;font-size:14px;line-height:1.4}

/* Specialist feed: the arrow to new orders stays in view while scrolling */
#m-new-orders:not(:empty){position:sticky;top:10px;z-index:25;display:flex;justify-content:center;height:0;overflow:visible}
#m-new-orders .m-new-button{box-shadow:0 8px 24px #20212833;white-space:nowrap}

.of-peek-stack .avatar img{width:100%;height:100%;object-fit:cover}

/* Photos on the summary: a clear square tile next to the added pictures */
.of-photos .o-upload{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:0;border:0;background:none}
.of-photos .o-upload-title{flex:0 0 100%;font-size:14px;color:#5f606b}
.of-photos .o-draft-photos{display:contents}
.of-photos .o-draft-photo{position:relative;width:96px;height:96px}
.of-photos .o-draft-preview,.of-photos .o-draft-preview img{display:block;width:96px;height:96px;object-fit:cover;border-radius:14px;padding:0;border:0}
.of-photos label.o-upload-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:96px;height:96px;padding:6px;border:1.5px dashed #c9c9d3;border-radius:14px;background:#fafafc;color:#a73456;font-size:12px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer;box-shadow:none}
.of-photos label.o-upload-button:hover{background:#fbf1f5;border-color:#a73456}
.of-photos label.o-upload-button svg{width:26px;height:26px}
.of-photos label.o-upload-button input{position:absolute;width:1px;height:1px;opacity:0}
.of-photos .safety-note{flex:0 0 100%;margin:0;padding:0;background:none;border:0;font-size:13px;color:#73747f}
.of-photos .safety-note:empty{display:none}
.of-photos .o-upload-queue{flex:0 0 100%}
/* The list of facts keeps one fact per line wherever the order is shown */
.cf-description,.iq-task-description,.iq-client-comment{white-space:pre-line}
