/* Focused four-step task publication, scoped to the actual customer form */
#customerProfile .customer-form[data-focus-wizard="1"]{max-width:660px;margin:0 auto;min-height:calc(100dvh - 140px);background:#141719!important;border:0!important;box-shadow:none!important;padding:20px clamp(16px,4vw,30px)!important}
#customerProfile .customer-form .form-section[hidden],#customerProfile .customer-form .focus-wizard-review[hidden],#customerProfile .customer-form #publishTask[hidden],#customerProfile .customer-form #taskPublishFeeHint[hidden],#customerProfile .focus-wizard-controls button[hidden]{display:none!important}
#customerProfile:has(.customer-form[data-focus-wizard="1"]){background:#101213!important}
.focus-wizard-heading{margin:12px 0 20px}
.focus-wizard-progress{font-size:12px;font-weight:800;color:var(--yellow,#ffd245);letter-spacing:.06em}
.focus-wizard-meter{height:4px;background:#313638;border-radius:10px;margin:12px 0 25px;overflow:hidden}
.focus-wizard-meter span{display:block;height:100%;border-radius:10px;background:var(--yellow,#ffd245);transition:width .2s}
.focus-wizard-title{font-size:clamp(22px,4vw,28px)!important;line-height:1.2;margin:0!important;font-weight:800;color:#fff}
.focus-wizard-subtitle{font-size:14px;line-height:1.5;color:#a8b0af;margin:10px 0 0}
#customerProfile .customer-form .form-section{border:0!important;margin:0!important;padding:0!important}
#customerProfile .customer-form .form-section-title{display:none!important}
#customerProfile .customer-form input,#customerProfile .customer-form textarea,#customerProfile .customer-form .task-city-picker{min-height:49px;border-radius:13px}
#customerProfile .customer-form .form-row{margin-top:16px}
#customerProfile .customer-form .task-city-field{padding-top:12px}
.focus-wizard-controls{display:flex;gap:12px;margin:24px 0 0}
.focus-wizard-controls button,.focus-task-edit{border:1px solid #4b5559;min-height:48px;padding:12px 18px;border-radius:13px;font-size:15px;font-weight:750;cursor:pointer}
.focus-wizard-prev{color:#f5f6f6;background:#252a2d;flex:0 0 auto}
.focus-wizard-next{color:#151515;background:var(--yellow,#ffd245);border-color:var(--yellow,#ffd245)!important;flex:1}
.focus-wizard-last .focus-wizard-controls{order:2;margin:12px 0 0}
.focus-wizard-review{margin:4px 0 0;display:grid;gap:10px;max-width:100%}
.focus-task-card{background:#202426;border:1px solid #414a4d;border-radius:20px;overflow:hidden;color:#f6f7f7;box-shadow:0 12px 28px #0002}
.focus-task-hero{height:140px;position:relative;background:#34383a;overflow:hidden}
.focus-task-hero img{width:100%;height:100%;object-fit:cover;display:block}
.focus-task-hero-empty{height:64px;background:linear-gradient(120deg,#333125,#212527);display:flex;align-items:center;padding:0 20px}
.focus-task-hero-empty span{font-size:14px;letter-spacing:.16em;color:#f4ce42;font-weight:850}
.focus-task-photo-count{position:absolute;right:12px;bottom:12px;background:#171a1dc9;padding:5px 10px;border-radius:8px;font-size:12px}
.focus-task-content{padding:18px}
.focus-task-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.focus-task-location{font-size:13px;color:#c5cccb}
.focus-task-price{background:#3b3420;color:#ffd34e;border:1px solid #6c5926;border-radius:10px;padding:8px 10px;font-size:17px;white-space:nowrap}
.focus-task-name{font-size:21px;line-height:1.25;margin:16px 0 8px;color:#fff;font-weight:800;overflow-wrap:anywhere}
.focus-task-description{font-size:14px;color:#d2d7d5;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;max-height:135px;overflow:auto;margin:0}
.focus-task-address{font-size:13px;color:#aeb9b6;line-height:1.4;margin-top:14px;overflow-wrap:anywhere}
.focus-task-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid #41494a;margin-top:17px;padding-top:14px;font-size:12px;color:#d7dcda}
.focus-task-total{font-weight:800;color:#fff}
.focus-task-edit{background:transparent;color:#f4d04f;border-color:#686044;justify-self:start;font-size:13px;min-height:38px;padding:8px 12px}
#customerProfile .focus-wizard-last #publishTask{display:block;margin:10px 0 0!important;min-height:52px;font-weight:850;border-radius:13px;font-size:16px}
#customerProfile .focus-wizard-last #taskPublishFeeHint{order:3;margin-top:12px;font-size:11px}
@media(max-width:600px){#customerProfile .customer-form[data-focus-wizard="1"]{padding:16px!important;min-height:calc(100dvh - 90px)}.focus-task-hero{height:105px}.focus-task-hero-empty{height:56px}.focus-task-content{padding:15px}.focus-task-name{font-size:19px}.focus-task-description{max-height:90px}.focus-task-address{margin-top:10px}.focus-task-footer{margin-top:12px;padding-top:10px}.focus-wizard-meter{margin-bottom:20px}}


/* Focus flow polish: compact preview, aligned footer buttons */
#customerProfile .customer-form[data-focus-wizard="1"]{min-height:auto!important}
#customerProfile .customer-form .focus-wizard-heading{margin:5px 0 14px!important}
#customerProfile .customer-form .focus-wizard-meter{margin:10px 0 14px!important}
#customerProfile .customer-form .focus-wizard-subtitle{margin:7px 0 0!important;font-size:12px!important;line-height:1.35!important}
#customerProfile .focus-wizard-last .focus-task-hero{height:70px!important}
#customerProfile .focus-wizard-last .focus-task-hero-empty{height:38px!important}
#customerProfile .focus-wizard-last .focus-task-hero-empty span{font-size:11px!important}
#customerProfile .focus-wizard-last .focus-task-content{padding:12px!important}
#customerProfile .focus-wizard-last .focus-task-name{margin:8px 0 5px!important;font-size:19px!important}
#customerProfile .focus-wizard-last .focus-task-description{max-height:58px!important;font-size:13px!important;line-height:1.3!important}
#customerProfile .focus-wizard-last .focus-task-address{margin-top:7px!important;font-size:12px!important}
#customerProfile .focus-wizard-last .focus-task-footer{margin-top:8px!important;padding-top:8px!important}
#customerProfile .focus-wizard-controls{display:flex!important;align-items:stretch!important;gap:10px!important;width:100%;margin:16px 0 0!important}
#customerProfile .focus-wizard-controls .focus-wizard-prev{flex:0 0 32%!important;min-width:0}
#customerProfile .focus-wizard-controls .focus-wizard-next{flex:1 1 auto!important}
#customerProfile .focus-wizard-controls #publishTask{flex:1 1 auto!important;min-width:0;width:auto!important;margin:0!important;border-radius:13px!important;padding:10px 8px!important;min-height:48px!important;font-size:14px!important;line-height:1.2!important}
#customerProfile .focus-wizard-last .focus-wizard-controls{order:initial!important;margin:10px 0 0!important}
#customerProfile .focus-wizard-controls #publishTask[hidden],#customerProfile .focus-wizard-controls .focus-wizard-prev[hidden],#customerProfile .focus-wizard-controls .focus-wizard-next[hidden]{display:none!important}
#customerProfile .customer-form #taskPublishFeeHint:not([hidden]){display:block!important;order:initial!important;margin:10px 0 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#b9b8ac!important;font-size:11px!important;line-height:1.3!important;font-weight:500!important}
#customerProfile .focus-wizard-last .focus-wizard-review{gap:0!important;margin:4px 0 0!important}
#customerProfile .focus-wizard-last .focus-task-card{border-radius:14px!important}
@media(max-width:600px){#customerProfile .focus-wizard-last .focus-task-hero{height:62px!important}#customerProfile .focus-wizard-controls #publishTask{font-size:13px!important}#customerProfile .focus-wizard-controls button{padding:10px!important;font-size:13px!important}#customerProfile .focus-wizard-last .focus-task-content{padding:11px!important}}

/* Production UI: the final call-to-action shows the real fee; no separate fee banner. */
#customerProfile .customer-form #taskPublishFeeHint{display:none!important}
#customerProfile .customer-form .focus-wizard-controls{margin-top:12px!important}
#customerProfile .focus-wizard-last .focus-task-card{background:#191d1f!important;border-color:#465054!important}
#customerProfile .focus-wizard-last .focus-task-price{background:#39311f!important;color:#f8ca43!important}
#customerProfile .focus-wizard-last .focus-task-name{font-weight:800!important}
#customerProfile .focus-wizard-last .focus-wizard-controls #publishTask{background:#f5c842!important;color:#171717!important;font-weight:800!important}

/* Preview follows the actual Shabashkin task-card hierarchy: title/price, photo, details. */
#customerProfile .focus-wizard-last .focus-task-card{background:#171b1d!important}
#customerProfile .focus-wizard-last .focus-task-content{padding:15px!important}
#customerProfile .focus-wizard-last .focus-task-top{align-items:center!important}
#customerProfile .focus-wizard-last .focus-task-name{margin:8px 0 11px!important}
#customerProfile .focus-wizard-last .focus-task-hero{height:110px!important;border:1px solid #454d50;border-radius:12px;margin:8px 0 12px;overflow:hidden}
#customerProfile .focus-wizard-last .focus-task-hero-empty{height:55px!important}
#customerProfile .focus-wizard-last .focus-task-description{font-size:13px!important;line-height:1.45!important;max-height:76px!important}
@media(max-width:600px){#customerProfile .focus-wizard-last .focus-task-hero{height:92px!important}#customerProfile .focus-wizard-last .focus-task-hero-empty{height:48px!important}}


/* IMPORTANT: The task form is moved from #customerProfile into a modal.
   Hide inactive views even after reparenting. */
.customer-form[data-focus-wizard="1"] > .form-section[hidden],
.customer-form[data-focus-wizard="1"] > .focus-wizard-review[hidden],
.customer-form[data-focus-wizard="1"] #publishTask[hidden],
.customer-form[data-focus-wizard="1"] #taskPublishFeeHint[hidden],
.customer-form[data-focus-wizard="1"] .focus-wizard-controls button[hidden] {
  display:none!important;
}
.customer-form[data-focus-wizard="1"] .focus-wizard-review[hidden] {
  display:none!important;
}

/* Modal-safe navigation, independent of the original #customerProfile parent. */
.customer-form[data-focus-wizard="1"] .focus-wizard-controls{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  width:100%!important;
  gap:10px!important;
}
.customer-form[data-focus-wizard="1"] .focus-wizard-controls .focus-wizard-prev{
  display:block;
  flex:0 0 92px!important;
  width:92px!important;
  max-width:92px!important;
  min-width:0!important;
  padding:10px 8px!important;
  white-space:nowrap!important;
}
.customer-form[data-focus-wizard="1"] .focus-wizard-controls #publishTask{
  display:block;
  flex:1 1 0%!important;
  width:0!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:10px 8px!important;
  min-height:48px!important;
  font-size:clamp(12px,3.4vw,15px)!important;
  white-space:normal!important;
  line-height:1.2!important;
}
.customer-form[data-focus-wizard="1"] .focus-wizard-controls .focus-wizard-next{
  flex:1 1 0%!important; min-width:0!important;
}
.customer-form[data-focus-wizard="1"] .focus-wizard-controls #publishTask[hidden],
.customer-form[data-focus-wizard="1"] .focus-wizard-controls .focus-wizard-prev[hidden],
.customer-form[data-focus-wizard="1"] .focus-wizard-controls .focus-wizard-next[hidden]{
  display:none!important;
}
@media(max-width:360px){
 .customer-form[data-focus-wizard="1"] .focus-wizard-controls .focus-wizard-prev{
  flex-basis:78px!important;width:78px!important;max-width:78px!important;
 }
}


/* Compact photos on task wizard step 2, including detached modal. */
.customer-form[data-focus-wizard="1"] .focus-photo-picker{
 display:flex!important;align-items:center!important;gap:12px!important;
 padding:13px 16px!important;min-height:66px!important;
 background:#23282a!important;border:1px dashed #70612c!important;
 border-radius:13px!important;cursor:pointer!important;
 position:relative!important;overflow:hidden!important;
 margin:13px 0 8px!important;
}
.customer-form[data-focus-wizard="1"] .focus-photo-camera{
 width:38px;height:38px;display:grid;place-items:center;flex:none;
 border:1px solid #71602c;border-radius:10px;background:#352e1b;font-size:21px;
}
.customer-form[data-focus-wizard="1"] .focus-photo-words{display:flex;flex-direction:column;gap:3px;min-width:0;}
.customer-form[data-focus-wizard="1"] .focus-photo-words strong{color:#f3ca48;font-size:15px;font-weight:750;}
.customer-form[data-focus-wizard="1"] .focus-photo-words small{color:#aeb7b7;font-size:12px;font-weight:450;}
.customer-form[data-focus-wizard="1"] .focus-photo-picker input[type=file]{
 position:absolute!important;width:1px!important;height:1px!important;
 opacity:0!important;overflow:hidden!important;pointer-events:none!important;
 left:0!important;bottom:0!important;margin:0!important;padding:0!important;
}
.customer-form[data-focus-wizard="1"] .focus-photo-counter{
 display:block;color:#c6d2cb;font-size:12px;padding:0 2px 5px;
}
.customer-form[data-focus-wizard="1"] .focus-photo-counter[hidden]{display:none!important;}
.customer-form[data-focus-wizard="1"] #photoPreview:not([hidden]){
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 gap:8px!important;min-height:0!important;max-height:none!important;
 padding:0!important;margin:6px 0 8px!important;border:0!important;
 background:none!important;
}
.customer-form[data-focus-wizard="1"] #photoPreview img{
 width:72px!important;height:72px!important;min-width:0!important;
 max-width:72px!important;object-fit:cover!important;border-radius:11px!important;
 border:1px solid #4b5353!important;margin:0!important;
}
.customer-form[data-focus-wizard="1"] .address-wrap{margin-top:14px!important;}
.customer-form[data-focus-wizard="1"] .address-wrap .address-map-button{
 min-height:42px!important;padding:9px 14px!important;font-size:14px!important;
}
.customer-form[data-focus-wizard="1"] .address-wrap .address-status{
 font-size:12px!important;line-height:1.35!important;margin:6px 0!important;
}
.customer-form[data-focus-wizard="1"] #taskDescription{min-height:110px!important;height:110px!important;}

/* Keep the add-on hidden outside the final review even though its base style is flex. */
.customer-form[data-focus-wizard="1"] .urgent-addon[hidden]{display:none!important}
/* The final preview uses the same dark card and green urgent treatment as the live marker. */
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-card.focus-task-urgent{border:2px solid #39d36a!important;box-shadow:0 0 0 3px #39d36a22,0 12px 28px #0003!important}
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-hero{height:126px!important}
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-hero-empty{height:126px!important;justify-content:center!important;background:linear-gradient(135deg,#252b2d,#1b2022)!important;border:1px dashed #566064!important;color:#9da9a7!important}
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-hero-empty span{font-size:13px!important;letter-spacing:0!important;font-weight:600!important;color:#aab5b2!important}
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-urgent-badge{position:absolute;top:10px;left:10px;padding:6px 9px;border-radius:8px;background:#1f9e4b;color:#fff;font-size:11px;font-weight:900;letter-spacing:.04em;box-shadow:0 3px 12px #0005}
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-urgent .focus-task-name{color:#f3fff5!important}
@media(max-width:600px){.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-hero,.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-hero-empty{height:108px!important}}

/* Urgent label follows the task name wherever a task title is shown. */
.urgent-title-badge{display:inline-flex;align-items:center;vertical-align:middle;margin-left:7px;padding:3px 7px;border-radius:6px;background:#1f432b;color:#8ef4a5;font-size:.62em;font-weight:900;line-height:1.15;letter-spacing:.025em;white-space:nowrap}
#detail .detail-title-price .urgent-title-badge{font-size:11px;margin:0}
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-name .urgent-title-badge{font-size:11px}
.customer-form[data-focus-wizard="1"] .urgent-addon{margin-top:17px!important}

/* Reuse the same no-photo illustration as task cards in the map feed. */
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-hero-empty{padding:0!important;overflow:hidden!important}
.customer-form[data-focus-wizard="1"] .focus-wizard-last .focus-task-placeholder{display:block;width:100%;height:100%;object-fit:cover;border:0!important;border-radius:0!important;opacity:1!important}

/* Keep the urgent word aligned and legible from narrow phones to desktop. */
.urgent-title-badge{box-sizing:border-box;flex:0 0 auto;align-self:center;font-size:clamp(9px,2.4vw,11px)!important;line-height:1!important;letter-spacing:.02em;max-width:100%;vertical-align:middle}
.task-top .task-title .urgent-title-badge{margin-left:6px;transform:translateY(-.04em)}
#detail .detail-title-price{align-items:center}
#detail .detail-title-price .urgent-title-badge{align-self:center;margin:0;padding:3px 7px;font-size:clamp(9px,2.4vw,11px)!important}
.cabinet-row-work .work-task-heading>strong .urgent-title-badge{margin-left:6px}
.message-task-title .urgent-title-badge{margin-left:5px}
@media(max-width:480px){
 .urgent-title-badge{padding:2px 5px;font-size:9px!important;border-radius:5px}
 .task-top .task-title .urgent-title-badge{margin-left:5px}
 #detail .detail-title-price .urgent-title-badge{padding:2px 5px}
}

/* Task entry points: Shabashkin yellow with the urgent-task green outline. */
#postBtn,#sidePostBtn,[data-add-task-from-list],.profile-menu [data-customer-flow]{
 background:#f5c842!important;
 color:#171a1c!important;
 border:2px solid #39d36a!important;
 box-shadow:0 0 0 1px #39d36a22!important;
 font-weight:800!important;
}
#postBtn:hover,#sidePostBtn:hover:hover,[data-add-task-from-list]:hover,.profile-menu [data-customer-flow]:hover{
 background:#ffda58!important;
 border-color:#54e779!important;
}
#postBtn:focus-visible,#sidePostBtn:focus-visible:focus-visible,[data-add-task-from-list]:focus-visible,.profile-menu [data-customer-flow]:focus-visible{
 outline:2px solid #8ef4a5!important;
 outline-offset:3px;
}

/* After removing the eyebrow, give the sole section heading its own breathing room. */
@media(min-width:701px){#taskSheet .side-head{padding-top:8px;padding-bottom:18px}}

/* Discreet task action in the top bar. */
#postBtn.topbar-post-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;min-height:36px;height:36px;padding:7px 10px!important;border:1px solid #756631!important;border-radius:10px!important;background:#1a1e20!important;color:#e8c94e!important;box-shadow:none!important;font-size:12px!important;font-weight:700!important;line-height:1;white-space:nowrap;cursor:pointer}
#postBtn.topbar-post-btn:hover{background:#242319!important;border-color:#a18a39!important;color:#f5d960!important}
#postBtn.topbar-post-btn:focus-visible{outline:2px solid #e8c94e;outline-offset:2px}
#postBtn .topbar-post-compact{display:none}
@media(max-width:700px){
 #postBtn.topbar-post-btn{display:none!important}
 #postBtn .topbar-post-full{display:none}
 #postBtn .topbar-post-compact{display:block;font-size:21px;font-weight:650;line-height:1}
}

/* Mobile panel swipe regions: allow list scrolling, reserve the sheet header for drag. */
@media(max-width:700px){
 .mobile-drawer{touch-action:pan-y}
 #taskSheet .side-head{touch-action:pan-x}
}

/* Keep the urgent badge hidden when the task is not marked urgent. */
.urgent-title-badge[hidden]{display:none!important}
