/* Jobs, Messages, Leads, Ad results, Workers and Partners (ops.js), in the app's look, light and dark.
   One copy for every shop. Colors come from the tokens in index.html (:root and its dark versions). */
#ops{max-width:1480px;font-size:15px}
#ops h3{font:700 16px "Inter",sans-serif;margin:0;letter-spacing:0}
#ops a{color:var(--accent)}
#ops .muted{color:var(--soft)}
#ops .small{font-size:13.5px}
#ops .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#ops .between{justify-content:space-between}
#ops .grid2{display:grid;gap:10px}
@media (min-width:640px){#ops .grid2{grid-template-columns:1fr 1fr}}
#ops .err{color:var(--redink);font-weight:600;font-size:14px}
#ops code{font-size:12.5px;background:var(--sunk);padding:2px 6px;border-radius:5px}
#ops [hidden]{display:none!important}

/* Surfaces */
#ops .card{background:var(--surface);border:1px solid var(--line2);border-radius:14px;padding:18px;margin-bottom:12px;box-shadow:var(--shadow)}
#ops .card.flash{box-shadow:0 0 0 3px var(--accent);transition:box-shadow .3s}
#ops .banner{padding:10px 14px;border-radius:10px;margin-bottom:10px;font-size:13.5px;line-height:1.45;border:1px solid transparent}
#ops .banner.warn{background:var(--amberwash);color:var(--amberink);border-color:color-mix(in srgb,var(--amber) 25%,transparent)}
#ops .banner.info{background:var(--bluewash);color:var(--blueink);border-color:color-mix(in srgb,var(--blue) 22%,transparent)}
#ops .banner.bad{background:var(--redwash);color:var(--redink)}
#ops .banner:not(.warn):not(.info):not(.bad){background:var(--sunk);color:var(--soft)}
#ops .banner a{color:inherit}

/* Buttons, chips, fields */
#ops .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;height:auto;padding:7px 14px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:600;font-size:13.5px;cursor:pointer;white-space:normal;text-align:center;transition:background-color .15s,border-color .15s}
#ops .btn:hover{background:var(--hover);border-color:var(--strong)}
#ops .btn.red{background:var(--red);border-color:var(--red);color:#fff}
#ops .btn.red:hover{background:var(--red-d);border-color:var(--red-d)}
#ops .btn.dark{background:var(--ink);border-color:var(--ink);color:var(--onink)}
#ops .btn.dark:hover{opacity:.88}
#ops .btn.quietbtn{border-color:transparent;background:none;color:var(--soft)}
#ops .btn:disabled{opacity:.5;cursor:default}
#ops .chips{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 14px}
#ops .chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:20px;padding:6px 13px;font-size:13px;font-weight:600;cursor:pointer}
#ops .chip:hover{border-color:var(--strong)}
#ops .chip[aria-pressed="true"]{background:var(--ink);color:var(--onink);border-color:var(--ink)}
#ops input[type=text],#ops input[type=tel],#ops input[type=password],#ops input[type=number],#ops input[type=date],#ops input[type=time],#ops select,#ops textarea{width:100%;min-height:40px;border:1px solid var(--line);border-radius:9px;padding:8px 11px;background:var(--surface);color:var(--ink)}
#ops textarea{min-height:72px;resize:vertical}
#ops input::placeholder,#ops textarea::placeholder{color:var(--faint)}
#ops input:focus,#ops select:focus,#ops textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px var(--focus)}
#ops label.cb{display:inline-flex;gap:7px;align-items:center;margin-right:14px}
#ops input[type=checkbox],#ops input[type=radio]{accent-color:var(--accent);width:16px;height:16px}
#ops #addJobForm label.small{display:flex;flex-direction:column;gap:4px}
#ops .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line2)}
#ops .actions select{width:auto;flex:1 1 170px}
#ops details summary{cursor:pointer;color:var(--soft);font-size:13px;margin-top:10px}
#ops .log{font-size:12.5px;color:var(--soft);margin:6px 0 0;padding-left:16px}
#ops dl{display:grid;grid-template-columns:auto 1fr;gap:5px 14px;margin:12px 0;font-size:14px}
#ops dt{color:var(--soft)} #ops dd{margin:0;word-break:break-word}

/* Status */
#ops .badge{font-size:12px;font-weight:600;padding:3px 10px;border-radius:20px;white-space:nowrap}
#ops .s-awaiting_deposit{background:var(--sunk2);color:var(--soft)}
#ops .s-paid{background:var(--amberwash);color:var(--amberink)}
#ops .s-offered,#ops .s-claiming{background:var(--bluewash);color:var(--blueink)}
#ops .s-assigned,#ops .best{background:var(--okwash);color:var(--ok)}
#ops .s-completed{background:var(--sunk2);color:var(--ink)}
#ops .s-canceled{background:var(--redwash);color:var(--redink)}
#ops .ctag{display:inline-block;font-size:11px;font-weight:700;padding:2px 7px;border-radius:10px;background:var(--bluewash);color:var(--blueink);vertical-align:middle;margin-left:6px}
#cityBar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 14px}

/* Jobs: calendar + list */
#ops .jobs-grid{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}
#ops .jobs-grid>*{min-width:0}
@media (min-width:1100px){#ops .jobs-grid{grid-template-columns:64fr 36fr}#ops .jobs-list{max-height:calc(100vh - 36px);overflow-y:auto;position:sticky;top:18px;padding-right:4px;scrollbar-width:thin}}
#ops .cal{background:var(--surface);border:1px solid var(--line2);border-radius:16px;padding:18px;box-shadow:var(--shadow)}
#ops .cal-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#ops .cal-head h3{margin:0 auto 0 0;font:800 17px "Inter Tight",sans-serif;font-stretch:112%}
#ops .cal-scroll{overflow-x:auto}
#ops .cal-grid{display:grid;grid-template-columns:48px repeat(7,minmax(92px,1fr));min-width:700px}
#ops .cal-dh{text-align:center;font-size:12px;font-weight:700;padding:6px 2px 8px;border-bottom:1px solid var(--line2)}
#ops .cal-dh.today{color:var(--red)}
#ops .cal-dh span{display:block;font-weight:500;color:var(--soft)}
#ops .cal-dh em{display:block;font-style:normal;font-size:10.5px;color:var(--red);font-weight:700}
#ops .cal-hours{position:relative}
#ops .cal-hours div{height:48px;font-size:11px;color:var(--faint);text-align:right;padding-right:8px;transform:translateY(-7px)}
#ops .cal-day{position:relative;border-left:1px solid var(--line2);background:repeating-linear-gradient(to bottom,transparent 0,transparent 47px,var(--line2) 47px,var(--line2) 48px)}
#ops .cal-day.today{background-color:color-mix(in srgb,var(--red) 5%,transparent)}
#ops .cal-ev{position:absolute;left:3px;right:3px;border-radius:8px;padding:5px 7px;font-size:11px;line-height:1.3;color:#fff;overflow:hidden;cursor:pointer;border:0;text-align:left;font-family:inherit;display:flex;flex-direction:column;align-items:flex-start;box-shadow:0 1px 2px rgba(0,0,0,.12)}
#ops .cal-ev b{display:block;font-size:12px}
#ops .cal-ev.narrow{padding:3px 4px;font-size:10px}
#ops .cal-ev.narrow b{font-size:11px}
#ops .cal-ev.narrow span{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ops .cal-ev.st-assigned{background:var(--ev-ok)}
#ops .cal-ev.st-completed{background:#6b6e76;opacity:.6}
#ops .cal-ev.st-canceled{background:var(--sunk2);color:var(--faint);text-decoration:line-through}
#ops .cal-ev.st-offered,#ops .cal-ev.st-claiming{background:var(--ev-blue)}
#ops .cal-ev.st-paid{background:var(--ev-amber)}
#ops .cal-ev.st-awaiting_deposit{background:var(--surface);color:var(--soft);border:1px dashed var(--strong);box-shadow:none}
#ops .cal-ev:focus-visible{outline:3px solid var(--accent);outline-offset:1px}
#ops .cal-ev[data-dal]::before{content:attr(data-tag);display:inline-block;font-size:9px;font-weight:700;padding:0 4px;margin-right:4px;border-radius:3px;background:rgba(255,255,255,.25);color:#fff}
#ops .cal-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--soft);margin-top:12px}
#ops .cal-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}

/* Leads and follow-up */
#ops .lf-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
@media (max-width:860px){#ops .lf-grid{grid-template-columns:1fr}}
#ops .lf-h{font:800 18px "Inter Tight",sans-serif;font-stretch:125%;letter-spacing:-.01em;margin:0 0 10px}
#ops .fu-zone{border:2px dashed var(--strong);border-radius:14px;padding:10px;min-height:120px;transition:background .15s,border-color .15s}
#ops .fu-zone.over{border-color:var(--red);background:var(--redwash)}
#ops .fu-zone .fu-empty{margin:6px 4px 10px}
#ops .drag-h{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;font-size:16px;line-height:1;padding:6px 8px;border-radius:8px;border:1px solid var(--line);background:var(--sunk);color:inherit}
.drag-ghost{position:fixed;z-index:9999;pointer-events:none;opacity:.95;transform:rotate(2deg);box-shadow:0 18px 40px rgba(0,0,0,.3);max-width:340px;background:var(--surface);border-radius:14px;padding:18px}
#ops .fu-note{width:100%;min-height:60px;margin-top:10px}

/* Ad results */
#ops .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 0}
@media (min-width:640px){#ops .stats{grid-template-columns:repeat(6,1fr)}}
#ops .stat{background:var(--sunk);border-radius:10px;padding:10px 12px}
#ops .stat b{display:block;font:800 20px "Inter Tight",sans-serif;font-stretch:112%;line-height:1.2;font-variant-numeric:tabular-nums}
#ops .stat span{font-size:12px;color:var(--soft)}
#ops .stat.key{background:color-mix(in srgb,var(--red) 9%,var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--red) 28%,transparent);color:var(--redink)}
#ops .stat.key span{color:color-mix(in srgb,var(--redink) 80%,var(--soft))}
#ops .spend{display:flex;gap:8px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line2)}
#ops .spend input{max-width:150px}

/* Workers and partners hours */
#ops .hours-box{margin:0 0 10px}
#ops .hours-box .hr{display:grid;grid-template-columns:70px 1fr auto 1fr;gap:6px;align-items:center;margin:4px 0}
#ops .hours-box .hr input[type=time]{min-height:34px;padding:4px 6px;min-width:0}
#ops .hours-box .hr.off input[type=time]{opacity:.35}

/* Messages: inbox */
#ops .compose{margin-bottom:14px}
#ops .compose summary{list-style:none;display:flex;gap:8px;margin:0;color:inherit;font-size:inherit}
#ops .compose summary::-webkit-details-marker{display:none}
#ops .compose[open] summary .btn.red{opacity:.85}
#ops .compose-grid{display:grid;gap:12px;margin-top:12px}
@media (min-width:900px){#ops .compose-grid{grid-template-columns:1fr 1.4fr}}
#ops .inbox{display:grid;grid-template-columns:minmax(260px,340px) 1fr;background:var(--surface);border:1px solid var(--line2);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;height:560px;min-height:460px}
#ops .th-list{overflow-y:auto;border-right:1px solid var(--line2);scrollbar-width:thin}
#ops .th{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line2);background:none;padding:13px 16px 13px 22px;cursor:pointer;position:relative;color:inherit}
#ops .th:hover{background:var(--hover)}
#ops .th.on{background:var(--sunk)}
#ops .th.on:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
#ops .th.new:after{content:"";position:absolute;left:9px;top:19px;width:7px;height:7px;border-radius:50%;background:var(--red)}
#ops .th-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
#ops .th-top b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
#ops .th.new .th-top b{font-weight:700}
#ops .th-top time{font-size:12px;color:var(--faint);white-space:nowrap}
#ops .th-sn{display:block;font-size:13px;color:var(--soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
#ops .th-pane{display:flex;flex-direction:column;min-width:0;min-height:0}
#ops .th-none{margin:auto;color:var(--faint)}
#ops .th-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line2)}
#ops .th-head>div:first-of-type{flex:1;min-width:0}
#ops .th-head b{font-weight:700;font-size:16px}
#ops .th-head span:not(.ctag){display:block;font-size:13px;color:var(--soft)}
#ops .th-acts{display:flex;gap:6px}
#ops .th-head .back{display:none;border:0;background:none;font-size:28px;line-height:1;color:var(--ink);cursor:pointer;padding:0 6px 0 0}
#ops .th-note{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 18px;font-size:13px;color:var(--soft);background:var(--sunk);border-bottom:1px solid var(--line2)}
#ops .th-note .btn{min-height:32px;padding:4px 11px;font-size:12.5px}
#ops .th-note.warn{background:var(--redwash);color:var(--redink)}
#ops .aidot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ok);margin-right:8px;vertical-align:0}
#ops .aidot.off{background:var(--faint)}
#ops .conv{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;scrollbar-width:thin}
#ops .day{text-align:center;font-size:12px;color:var(--faint);margin:10px 0 6px;font-weight:600}
#ops .msg{padding:9px 13px;border-radius:18px;margin:3px 0;max-width:72%;font-size:14.5px;line-height:1.4;white-space:pre-wrap;word-break:break-word;width:fit-content}
#ops .msg.in{background:var(--bubble-in);color:var(--ink);border-bottom-left-radius:6px}
#ops .msg.out{background:var(--bubble-out);color:#fff;margin-left:auto;border-bottom-right-radius:6px}
#ops .msg.out.ai{background:color-mix(in srgb,var(--bubble-out) 82%,#7a3cff)}
#ops .msg .pics{display:flex;gap:4px;margin-top:6px}
#ops .msg .pics img{width:64px;height:80px;object-fit:cover;border-radius:8px}
#ops .msg .meta{display:block;font-size:11px;opacity:.72;margin-top:3px}
#ops .quick{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:10px 18px 0;border-top:1px solid var(--line2)}
#ops .quick span{font-size:12px;color:var(--faint);font-weight:600;margin:0 2px 0 6px}
#ops .quick span:first-child{margin-left:0}
#ops .quick .chip{padding:4px 11px;font-size:12.5px}
#ops .replybar{display:flex;gap:8px;padding:12px 18px 16px}
#ops .replybar input{border-radius:22px!important;padding:0 16px!important;min-height:44px!important}
#ops .replybar .btn{border-radius:22px;min-width:80px}
#ops .inbox-empty{text-align:center;padding:40px}
@media (max-width:900px){
  #ops .inbox{grid-template-columns:1fr}
  #ops .inbox.has-sel .th-list{display:none}
  #ops .inbox:not(.has-sel) .th-pane{display:none}
  #ops .th-head .back{display:block}
  #ops .msg{max-width:85%}
  #ops .th-acts .quietbtn{display:none}
}
@media (max-width:900px){
  #ops>.top p{display:none}
  #ops .banner{font-size:12.5px;padding:8px 12px}
}

/* Calendar and Bookings share the jobs panel: each shows one half, full width */
#ops [data-panel="jobs"][data-mode] .jobs-grid{grid-template-columns:minmax(0,1fr)!important}
#ops [data-panel="jobs"][data-mode="calendar"] .jobs-list{display:none}
#ops [data-panel="jobs"][data-mode="bookings"] .cal{display:none}
#ops [data-panel="jobs"][data-mode="bookings"] .jobs-list{max-height:none;overflow:visible;position:static;padding-right:0}
#ops .s-booked{background:var(--okwash);color:var(--ok)}
#ops .cal-ev.st-booked{background:var(--ev-ok)}
#ops .ctag.pg{background:var(--okwash);color:var(--ok)}

/* Technicians: contractor (outsourcing) or worker (in house) */
#ops .techtype{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:6px}
@media (max-width:640px){#ops .techtype{grid-template-columns:1fr}}
#ops .techtype .tt{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line,#ddd);border-radius:12px;padding:12px;cursor:pointer;background:var(--surface,transparent)}
#ops .techtype .tt:has(input:checked){border-color:var(--ink,#111);box-shadow:inset 0 0 0 1px var(--ink,#111)}
#ops .techtype .tt input{margin-top:3px;flex:none}
#ops .techtype .tt b{display:block}
#ops .techtype .tt small{display:block;color:var(--soft,#666);font-size:12.5px;line-height:1.4;margin-top:2px}
#ops [data-techlist] details.card summary{cursor:pointer}
#ops [data-techlist] details.card form{margin-top:10px}
#ops [hidden]{display:none!important}

/* Segmented control: a soft track with a raised thumb that slides to the picked option */
#ops .segrow{margin:4px 0 16px;max-width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#ops .segrow::-webkit-scrollbar{display:none}
#ops .seg{position:relative;display:inline-flex;align-items:stretch;gap:2px;padding:3px;border-radius:12px;background:var(--segtrack);box-shadow:inset 0 0 0 1px var(--line2);white-space:nowrap;isolation:isolate}
#ops .seg>button,#ops .seg>.chip{position:relative;z-index:1;border:0;background:none;box-shadow:none;margin:0;padding:7px 15px;border-radius:9px;font-family:inherit;font-weight:600;font-size:13.5px;line-height:1.2;letter-spacing:-.005em;color:var(--soft);cursor:pointer;transition:color .2s}
#ops .seg>button:hover{color:var(--ink)}
#ops .seg>button[aria-pressed="true"]{color:var(--ink);background:none}
#ops .seg>button:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
#ops .seg-thumb{position:absolute;z-index:0;top:3px;bottom:3px;left:0;border-radius:9px;background:var(--segthumb);box-shadow:0 1px 2px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.06),inset 0 0 0 1px rgba(0,0,0,.04);transition:transform .32s cubic-bezier(.32,.72,0,1),width .32s cubic-bezier(.32,.72,0,1);will-change:transform;pointer-events:none}
@media (prefers-reduced-motion:reduce){#ops .seg-thumb{transition:none}}

/* ---- Polish pass (Nov 2026) ---- */
#ops .cal-ev .ic,#ops .ic{width:12px;height:12px;display:inline-block!important;vertical-align:-1px;margin-right:3px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#ops .cal-legend .ic{width:13px;height:13px}
#ops .card>.row.between{flex-wrap:nowrap;align-items:flex-start;gap:10px}
#ops .card>.row.between>h3{min-width:0;line-height:1.35}
#ops .card>.row.between>.badge{flex:none;margin-top:1px}
#ops .card{transition:box-shadow .2s,border-color .2s}
#ops .stat b{letter-spacing:-.01em}
#ops dl{font-variant-numeric:tabular-nums}
#ops .btn:active:not(:disabled){transform:scale(.97)}
#ops .btn{transition:background-color .15s,border-color .15s,color .15s,transform .12s ease-out}
#ops .btn:focus-visible,#ops .chip:focus-visible,#ops select:focus-visible,#ops input:focus-visible,#ops textarea:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
#ops details.howto{margin:0 0 12px}
#ops details.howto>summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--soft);list-style:none;display:inline-flex;align-items:center;gap:6px}
#ops details.howto>summary::-webkit-details-marker{display:none}
#ops details.howto>summary:before{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .2s}
#ops details.howto[open]>summary:before{transform:rotate(45deg)}
#ops details.howto>summary:hover{color:var(--ink)}
/* Phone: action buttons fill tidy two-up rows instead of ragged wraps */
@media (max-width:640px){
  #ops .actions{gap:8px}
  #ops .actions>.btn{flex:1 1 calc(50% - 4px);min-height:42px}
  #ops .actions>select{flex:1 1 100%;min-height:42px}
}
@media (prefers-reduced-motion:reduce){#ops .btn,#ops .card{transition:none}#ops .btn:active:not(:disabled){transform:none}}
#ops .card>.row.between:has(>.btn){align-items:center}

/* ===== Atelier (Nov 2026): matches the app shell. Serif display, soft paper cards, ink pill buttons ===== */
#ops{font-family:Inter,-apple-system,"Segoe UI",sans-serif}
#ops h3{font:600 15.5px Inter,sans-serif;letter-spacing:-.005em}
#ops .lf-h,#ops .cal-head h3{font:400 26px var(--serif);font-stretch:normal;letter-spacing:-.01em}
#ops .card,#ops .cal,#ops .inbox{border-color:transparent;border-radius:18px;box-shadow:var(--shadow)}
#ops .card{padding:20px 22px}
#ops .btn{border-radius:999px;font-weight:500}
#ops .btn.red{background:var(--ink);border-color:var(--ink);color:var(--onink)}
#ops .btn.red:hover{background:color-mix(in srgb,var(--ink) 86%,var(--canvas));border-color:transparent}
#ops .btn.dark{background:var(--ink);border-color:var(--ink);color:var(--onink)}
#ops .chip{border-radius:999px}
#ops .stat{background:var(--sunk);border-radius:14px;padding:12px 14px}
#ops .stat b{font:400 30px var(--serif);font-stretch:normal;letter-spacing:-.01em;line-height:1.05}
#ops .msg.out{color:#F5F3EF}
#ops input[type=text],#ops input[type=tel],#ops input[type=password],#ops input[type=number],#ops input[type=date],#ops input[type=time],#ops select,#ops textarea{border-radius:12px;border-color:var(--line);background:var(--paper)}
#ops dl{font-size:13.5px}
#ops .seg{border-radius:999px;box-shadow:none}
#ops .seg-thumb{border-radius:999px}
#ops .seg>button{border-radius:999px}

/* ---- Compact pass (Nov 2026) ---- */
#ops{font-size:14px}
#ops .card{padding:16px 18px;margin-bottom:10px;border-radius:16px}
#ops h3{font-size:14.5px}
#ops dl{font-size:13px;gap:4px 12px;margin:10px 0}
#ops .btn{min-height:34px;padding:6px 13px;font-size:13px}
#ops .actions{margin-top:12px;padding-top:12px;gap:6px}
#ops .stat{padding:10px 12px;border-radius:12px}
#ops .stat b{font-size:24px}
#ops .lf-h,#ops .cal-head h3{font-size:22px}
#ops .cal{padding:16px;border-radius:16px}
#ops .seg>button{padding:6px 13px;font-size:13px}
#ops input[type=text],#ops input[type=tel],#ops input[type=password],#ops input[type=number],#ops input[type=date],#ops input[type=time],#ops select,#ops textarea{min-height:36px;padding:7px 11px;font-size:13.5px}
@media (max-width:640px){#ops .actions>.btn{min-height:40px}#ops .actions>select{min-height:40px}}

/* ===== Colour pass (Nov 2026) ===== */
#ops .btn.red,#ops .btn.dark{background:var(--goldbtn);border-color:transparent;color:var(--onbtn);font-weight:600;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 16px -10px var(--gold)}
#ops .btn.red:hover,#ops .btn.dark:hover{background:var(--goldbtn2);border-color:transparent;opacity:1}
#ops a{color:var(--blueink)}
/* A coloured edge on each job card says its state before you read it */
#ops .card:has(>.row>.badge.s-assigned),#ops .card:has(>.row>.badge.s-booked){box-shadow:var(--shadow),inset 3px 0 0 var(--ok)}
#ops .card:has(>.row>.badge.s-paid){box-shadow:var(--shadow),inset 3px 0 0 var(--amber)}
#ops .card:has(>.row>.badge.s-offered),#ops .card:has(>.row>.badge.s-claiming){box-shadow:var(--shadow),inset 3px 0 0 var(--blue)}
#ops .card:has(>.row>.badge.s-awaiting_deposit){box-shadow:var(--shadow),inset 3px 0 0 var(--strong)}
#ops .badge{font-weight:700}
#ops .seg>button[aria-pressed="true"]{color:var(--goldink)}
#ops .seg-thumb{background:var(--goldwash);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gold) 40%,transparent)}
#ops .stat:nth-child(1) b{color:var(--goldink)}
#ops .stat.key{background:var(--goldwash);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gold) 40%,transparent);color:var(--goldink)}
#ops .stat.key b,#ops .stat.key span{color:var(--goldink)}
#ops .cal-dh.today{color:var(--goldink)}
#ops .msg.out{background:var(--blue);color:#fff}
#ops .btn:not(.red):not(.dark){box-shadow:none}

/* ---------- AI Assistant → Calls ---------- */
#ops .cl-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
#ops .cl-stat{background:var(--surface);border:1px solid var(--line2);border-radius:16px;padding:13px 16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:2px;min-width:0}
#ops .cl-stat span{font-size:12.5px;font-weight:600;color:var(--soft)}
#ops .cl-stat b{font-family:var(--serif);font-weight:400;font-size:34px;line-height:1.05;letter-spacing:-.01em;color:var(--ink)}
#ops .cl-stat small{font-size:12px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ops .cl-stat.hot{background:var(--goldwash);border-color:transparent}
#ops .cl-stat.hot b,#ops .cl-stat.hot span{color:var(--goldink)}
#ops .cl-bar{margin-bottom:6px}
#ops #callFilter .ncount{margin-left:6px}
#ops .cl-day{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin:18px 2px 8px}
#ops .cl{position:relative;padding:16px 18px 14px}
#ops .cl::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:var(--line)}
#ops .cl-booked::before{background:var(--ok)}
#ops .cl-follow::before{background:var(--gold)}
#ops .cl-link::before{background:var(--blue)}
#ops .cl-live::before{background:var(--violet)}
#ops .cl-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#ops .cl-who{min-width:0}
#ops .cl-who b{display:block;font-size:16px;font-weight:650;letter-spacing:-.01em;color:var(--ink)}
#ops .cl-who span{font-size:13px;color:var(--soft)}
#ops .cl-badge{flex:none;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--sunk);color:var(--soft);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#ops .cl-booked .cl-badge{background:var(--okwash);color:var(--ok)}
#ops .cl-follow .cl-badge{background:var(--goldwash);color:var(--goldink)}
#ops .cl-link .cl-badge{background:var(--bluewash);color:var(--blueink)}
#ops .cl-live .cl-badge{background:var(--violetwash);color:var(--violet)}
#ops .cl-live .cl-badge i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:clpulse 1.4s ease-in-out infinite}
@keyframes clpulse{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){#ops .cl-live .cl-badge i{animation:none}}
#ops .cl-wants{margin:12px 0 0;font-size:15px;line-height:1.45;color:var(--ink);font-weight:550}
#ops .cl-wants span,#ops .cl-next span{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin-right:8px;vertical-align:1px}
#ops .cl-sum{margin:6px 0 0;font-size:14px;line-height:1.55;color:var(--soft)}
#ops .cl-did{margin:10px 0 0;font-size:13.5px;color:var(--blueink);font-weight:600}
#ops .cl-did.ok{color:var(--ok)}
#ops .cl-next{margin:10px 0 0;padding:9px 12px;border-radius:10px;background:var(--goldwash);color:var(--goldink);font-size:14px;line-height:1.45}
#ops .cl-next span{color:var(--goldink);opacity:.8}
#ops .cl-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
#ops .cl-facts span{font-size:12.5px;padding:3px 9px;border-radius:999px;border:1px solid var(--line);color:var(--soft)}
#ops .cl-more{margin-top:12px;border-top:1px solid var(--line2);padding-top:10px}
#ops .cl-more summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--soft);list-style:none}
#ops .cl-more summary::before{content:"›";display:inline-block;margin-right:7px;transition:transform .15s}
#ops .cl-more[open] summary::before{transform:rotate(90deg)}
#ops .cl-more audio{width:100%;margin-top:10px;height:36px}
#ops .cl-tx{margin-top:10px;max-height:340px;overflow:auto;display:flex;flex-direction:column;gap:6px;padding-right:4px}
#ops .cl-tx p{margin:0;font-size:13.5px;line-height:1.5;color:var(--ink)}
#ops .cl-tx p b{display:inline-block;min-width:74px;font-size:12px;font-weight:700;color:var(--faint)}
#ops .cl-tx p.a b{color:var(--goldink)}
#ops .cl-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#ops .cl-acts .btn{min-height:36px;padding:6px 14px;font-size:13.5px}
#ops .cl-acts .quietbtn{margin-left:auto}
@media (max-width:900px){#ops .cl-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#ops .cl-stat b{font-size:28px}}

/* ---------- Leads Center: a board with one column per stage ---------- */
#ops .lc-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
#ops .lc-search{flex:1;min-width:220px;position:relative;display:flex;align-items:center}
#ops .lc-search svg{position:absolute;left:12px;color:var(--faint);pointer-events:none}
#ops .lc-search input{width:100%;padding:0 12px 0 36px;margin:0;min-height:40px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px;-webkit-appearance:none;appearance:none}
#ops .lc-search input:focus{outline:2px solid var(--ink);outline-offset:1px}
#ops #lcSource{max-width:240px;margin:0}
#ops .lc-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--strong);flex:none}
#ops .lc-dot.s-new{background:var(--violet)}#ops .lc-dot.s-followup{background:var(--gold)}#ops .lc-dot.s-callagain{background:var(--red)}#ops .lc-dot.s-later{background:var(--blue)}
#ops .lc-dot.s-qualified{background:#0E9F8E}#ops .lc-dot.s-booked{background:var(--ok)}#ops .lc-dot.s-lost{background:var(--faint)}#ops .lc-dot.s-notqualified{background:var(--strong)}
#ops .lc-tabs{display:none}
#ops .lc-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(252px,1fr);gap:12px;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x proximity;align-items:start}
#ops .lc-col{background:var(--sunk);border:1px solid var(--line2);border-radius:16px;padding:10px;scroll-snap-align:start;min-width:0;transition:background .15s,border-color .15s,box-shadow .15s}
#ops .lc-col.over{border-color:var(--gold);background:var(--goldwash);box-shadow:inset 0 0 0 1px var(--gold)}
#ops .lc-col header{padding:4px 4px 10px}
#ops .lc-col h3{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:700;letter-spacing:-.005em}
#ops .lc-n{margin-left:auto;font-size:12px;font-weight:700;color:var(--soft);background:var(--surface);border:1px solid var(--line2);border-radius:999px;padding:1px 8px}
#ops .lc-col header p{margin:4px 0 0;font-size:12px;line-height:1.4;color:var(--faint)}
#ops .lc-list{display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 290px);overflow-y:auto;padding:1px}
#ops .lc-empty{margin:6px 4px 10px;font-size:13px;color:var(--faint)}
#ops .lc-card{background:var(--surface);border:1px solid var(--line2);border-radius:12px;padding:10px 12px 10px;box-shadow:0 1px 2px rgba(20,20,20,.05)}
#ops .lc-card.open{box-shadow:var(--shadow)}
#ops .lc-top{display:flex;align-items:center;gap:4px;margin:-2px 0 0 -6px}
#ops .lc-top .drag-h{padding:4px 6px;font-size:15px}
#ops .lc-name{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px;background:none;border:0;padding:0;text-align:left;cursor:pointer;color:var(--ink);font:inherit}
#ops .lc-name b{font-size:14.5px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ops .lc-name span{margin-left:auto;flex:none;font-size:11.5px;color:var(--faint)}
#ops .lc-sub{margin:2px 0 0;font-size:12.5px;color:var(--soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ops .lc-sub a{color:inherit}
#ops .lc-line{margin:6px 0 0;font-size:12.5px;line-height:1.4;color:var(--ink)}
#ops .lc-tag{display:inline-block;font-size:11px;font-weight:700;padding:1px 7px;border-radius:999px;background:var(--sunk2);color:var(--soft);margin-right:6px;vertical-align:1px}
#ops .lc-tag.due{background:var(--goldwash);color:var(--goldink)}
#ops .lc-note{margin:6px 0 0;font-size:12.5px;line-height:1.4;color:var(--goldink);background:var(--goldwash);border-radius:8px;padding:5px 8px}
#ops .lc-quick{display:flex;gap:6px;margin-top:9px}
#ops .lc-quick .btn{min-height:30px;padding:3px 11px;font-size:12.5px}
#ops .lc-quick .lc-move{min-height:30px;padding:3px 24px 3px 10px;font-size:12.5px;flex:none;width:88px;min-width:0;max-width:88px;background-position:right 8px center}
#ops .lc-more-btn{flex:none;border:0;background:none;color:var(--soft);font:inherit;font-size:16px;line-height:1;padding:4px 6px;margin-right:-6px;border-radius:8px;cursor:pointer}
#ops .lc-more-btn:hover{background:var(--sunk);color:var(--ink)}
#ops .lc-quick .lc-move{flex:1 1 auto;width:auto;max-width:none}
#ops .lc-more{margin-top:10px;padding-top:10px;border-top:1px solid var(--line2);display:flex;flex-direction:column;gap:8px}
#ops .lc-more p{margin:0}
#ops .lc-more .fu-note{margin:0;min-height:64px;font-size:13px}
#ops .lc-quote{color:var(--ink)}
#ops .lc-log{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
#ops .lc-log .chip,#ops .lc-later .chip{padding:3px 9px;font-size:12px}
#ops .lc-later{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#ops .lc-later input{margin:0;max-width:160px;min-height:32px;padding:4px 8px}
#ops .lc-acts{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
#ops .lc-acts .btn{min-height:32px;padding:4px 11px;font-size:12.5px}
#ops .lc-move{margin:0;min-height:32px;padding:4px 8px;font-size:12.5px;max-width:170px;flex:1}
#ops .lc-how{margin-top:14px}
#ops .lc-card[data-stage=booked] .lc-line{color:var(--ok);font-weight:600}
#ops .lc-card[data-stage=lost],#ops .lc-card[data-stage=notqualified]{opacity:.8}
@media (max-width:900px){
  #ops .lc-tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px;margin:0 -2px;scrollbar-width:none}
  #ops .lc-tab{flex:none;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
  #ops .lc-tab span{color:var(--faint);font-weight:700}
  #ops .lc-tab[aria-selected=true]{background:var(--ink);color:var(--onink);border-color:var(--ink)}
  #ops .lc-tab[aria-selected=true] span{color:inherit;opacity:.7}
  #ops .lc-tab.over{border-color:var(--gold);background:var(--goldwash);color:var(--goldink)}
  #ops .lc-board{display:block;overflow:visible}
  #ops .lc-col{display:none;background:none;border:0;padding:0}
  #ops .lc-col.on{display:block}
  #ops .lc-col header{padding:0 2px 8px}
  #ops .lc-col h3 .lc-n{display:none}
  #ops .lc-list{max-height:none;overflow:visible}
  #ops #lcSource{max-width:none;flex:1}
  #ops .lc-search{flex-basis:100%}
}

/* ---------- Compact Calendar and Bookings (more on screen) ---------- */
#ops .cal-hours div{height:34px;font-size:10.5px;transform:translateY(-6px)}
#ops .cal-day{background:repeating-linear-gradient(to bottom,transparent 0,transparent 33px,var(--line2) 33px,var(--line2) 34px)}
#ops .cal-dh{padding:4px 2px 6px;font-size:11.5px;line-height:1.25}
#ops .cal-dh em{font-size:10px}
#ops .cal-head{margin-bottom:8px}
#ops .cal-ev{padding:3px 6px;font-size:10.5px;line-height:1.25;border-radius:7px}
#ops .cal-ev b{font-size:11px}
#ops .cal-legend{margin-top:8px;font-size:11.5px}
/* Booking cards: tighter, with the details in two columns on a wide screen */
#ops [data-panel="jobs"] .card{padding:13px 16px;margin-bottom:8px}
#ops [data-panel="jobs"] .card>.row.between h3{font-size:14px}
#ops [data-panel="jobs"] .card>p{font-size:13.5px}
#ops [data-panel="jobs"] .card dl{gap:2px 12px;margin:8px 0;font-size:12.5px;line-height:1.45}
@media (min-width:1100px){#ops [data-panel="jobs"][data-mode="bookings"] .card dl{grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);column-gap:14px}}
#ops [data-panel="jobs"] .actions{margin-top:8px;padding-top:8px;gap:6px}
#ops [data-panel="jobs"] .actions .btn{min-height:30px;padding:4px 11px;font-size:12.5px}
#ops [data-panel="jobs"] .actions select{min-height:30px;padding-top:3px;padding-bottom:3px;font-size:12.5px;flex:0 1 210px}
#ops [data-panel="jobs"] .card details summary{font-size:12px}
#ops [data-panel="jobs"] .card details{margin-top:6px}
@media (max-width:640px){#ops [data-panel="jobs"] .actions>.btn,#ops [data-panel="jobs"] .actions>select{min-height:38px}}

/* ---------- Messages: text commands on the right ---------- */
#ops .msg-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
#ops .msg-wrap:has(.cmds.min){grid-template-columns:minmax(0,1fr) 150px}
#ops .cmds{background:var(--surface);border:1px solid var(--line2);border-radius:16px;box-shadow:var(--shadow);padding:14px 14px 10px;max-height:calc(100vh - 150px);overflow-y:auto;position:sticky;top:16px}
#ops .cmds header{display:flex;align-items:center;justify-content:space-between;gap:8px}
#ops .cmds h3{font:400 21px/1.1 var(--serif);letter-spacing:-.01em}
#ops .cmds.min h3{font-size:16px}
#ops .cmd-tog{border:0;background:none;color:var(--soft);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;padding:4px 6px;border-radius:7px}
#ops .cmd-tog:hover{background:var(--sunk);color:var(--ink)}
#ops .cmd-intro{margin:6px 0 10px;font-size:12.5px;color:var(--soft);line-height:1.45}
#ops .cmds h4{margin:14px 0 6px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
#ops .cmd-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
#ops .cmd-list li{padding:8px 0;border-top:1px solid var(--line2)}
#ops .cmd-h{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
#ops .cmd-h b{font-size:13px;font-weight:600}
#ops .cmd-copy{border:0;padding:0;background:none;cursor:pointer;max-width:100%}
#ops .cmd-copy code{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--goldwash);color:var(--goldink);border-radius:6px;padding:2px 8px;transition:filter .15s}
#ops .cmd-copy:hover code{filter:brightness(.96)}
#ops .cmd-copy:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px}
#ops .cmd-list p{margin:4px 0 0;font-size:12px;line-height:1.45;color:var(--faint)}
@media (max-width:1100px){#ops .msg-wrap,#ops .msg-wrap:has(.cmds.min){grid-template-columns:minmax(0,1fr)}#ops .cmds{position:static;max-height:none}}

/* ---------- Customers (CRM) ---------- */
#ops .linkbtn,.cp .linkbtn{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 30%,transparent);text-underline-offset:3px}
#ops .linkbtn:hover{text-decoration-color:currentColor;color:var(--goldink)}
#ops .th-who{text-decoration:none}#ops .th-who:hover b{color:var(--goldink)}
#ops .cu-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
#ops .cu-bar #cuSort{max-width:230px;margin:0}
#ops .cu-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
#ops .cu-chips .chip span{color:var(--faint);font-weight:700;margin-left:2px}
#ops .cu-chips .chip[aria-pressed=true] span{color:inherit;opacity:.7}
#ops .cu-chips .tagchip{color:var(--goldink);border-color:color-mix(in srgb,var(--gold) 35%,var(--line))}
#ops .cu-table{background:var(--surface);border:1px solid var(--line2);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
#ops .cu-row{display:grid;grid-template-columns:36px minmax(0,2.2fr) 120px 110px 120px 100px;gap:14px;align-items:center;width:100%;padding:10px 16px;border:0;border-top:1px solid var(--line2);background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .12s}
#ops .cu-row:first-child{border-top:0}
#ops .cu-row:hover{background:var(--sunk)}
#ops .cu-row:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.cu-av{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--goldwash);color:var(--goldink);font:400 17px/1 var(--serif)}
.cu-av.lg{width:48px;height:48px;font-size:24px;flex:none}
#ops .cu-main{min-width:0;display:flex;flex-direction:column}
#ops .cu-main b{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ops .cu-main small,#ops .cu-num small{font-size:12px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ops .cu-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}
#ops .cu-tags i,.cp-tag{font-style:normal;font-size:11px;font-weight:600;color:var(--goldink);background:var(--goldwash);border-radius:999px;padding:1px 7px}
#ops .cu-num{display:flex;flex-direction:column;min-width:0}
#ops .cu-num b{font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
#ops .cu-stage{justify-self:start;font-size:11.5px;font-weight:700;border-radius:999px;padding:3px 9px;background:var(--sunk);color:var(--soft);white-space:nowrap}
#ops .cu-stage.s-customer,#ops .cu-stage.s-booked{background:var(--okwash);color:var(--ok)}
#ops .cu-stage.s-qualified{background:#D7F3EF;color:#0B7568}
#ops .cu-stage.s-followup{background:var(--goldwash);color:var(--goldink)}
#ops .cu-stage.s-callagain{background:var(--redwash);color:var(--redink)}
#ops .cu-stage.s-new,#ops .cu-stage.s-lead{background:var(--violetwash);color:var(--violet)}
#ops .cu-group textarea{min-height:84px;margin:0}
#ops .cu-rebook{margin-top:14px}
@media (max-width:900px){
  #ops .cu-row{grid-template-columns:36px minmax(0,1fr) auto;gap:10px;padding:10px 12px}
  #ops .cu-row .cu-num:not(:nth-of-type(1)),#ops .cu-row .cu-stage{display:none}
  #ops .cu-row .cu-num:nth-last-child(3){display:flex;text-align:right}
  #ops .cu-row .cu-last,#ops .cu-row .cu-num:nth-last-child(2){display:none}
  #ops .cu-bar #cuSort{flex:1;max-width:none}
}
/* Profile drawer */
.cp-scrim{position:fixed;inset:0;background:rgba(10,10,10,.28);z-index:80;animation:cpfade .18s ease-out}
.cp{position:fixed;top:0;right:0;bottom:0;width:min(880px,100vw);background:var(--canvas);z-index:81;box-shadow:-20px 0 60px -20px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow-y:auto;animation:cpin .22s cubic-bezier(.2,.8,.2,1);color:var(--ink);font-size:14px}
body.cp-on{overflow:hidden}
@keyframes cpin{from{transform:translateX(24px);opacity:0}}@keyframes cpfade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.cp,.cp-scrim{animation:none}}
.cp-head{position:sticky;top:0;z-index:2;background:var(--canvas);padding:18px 22px 12px;border-bottom:1px solid var(--line2)}
.cp-x{position:absolute;top:14px;right:16px;width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--soft);font-size:22px;line-height:1;cursor:pointer}
.cp-x:hover{color:var(--ink)}
.cp-id{display:flex;gap:14px;align-items:center;padding-right:44px}
.cp-id h2{margin:0}
.cp-name{font:400 30px/1.1 var(--serif);letter-spacing:-.01em;border:0;background:none;color:var(--ink);padding:2px 4px;margin:0 0 0 -4px;width:100%;border-radius:8px}
.cp-name:hover{background:var(--sunk)}.cp-name:focus{outline:2px solid var(--gold);background:var(--surface)}
.cp-id p{margin:2px 0 0;font-size:13px;color:var(--soft)}
.cp-id p a{color:inherit}
.cp-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.cp-acts .btn{min-height:34px;padding:5px 14px;font-size:13px}
.cp-acts select{margin:0;min-height:34px;padding:4px 30px 4px 10px;font-size:13px;width:auto;max-width:240px}
.cp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line2);border-bottom:1px solid var(--line2)}
.cp-stats>div{background:var(--canvas);padding:12px 22px;display:flex;flex-direction:column}
.cp-stats span{font-size:12px;color:var(--faint)}
.cp-stats b{font:400 26px/1.1 var(--serif);margin-top:2px}
.cp-stats small{font-size:11.5px;color:var(--faint)}
.cp-body{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;padding:18px 22px 40px;align-items:start}
.cp-tlh{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.cp-tlh h3{margin:0;font:400 22px var(--serif)}
.cp-tlf{display:flex;gap:4px;flex-wrap:wrap}
.cp .chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:4px 10px;font:600 12px/1.3 inherit;font-family:inherit;cursor:pointer}
.cp .chip[aria-pressed=true]{background:var(--ink);color:var(--onink);border-color:var(--ink)}
.cp-tl{list-style:none;margin:0;padding:0;position:relative}
.cp-tl:before{content:"";position:absolute;left:13px;top:6px;bottom:6px;width:1px;background:var(--line)}
.cp-tl>li{position:relative;display:flex;gap:12px;padding:8px 0}
.tl-ic{position:relative;z-index:1;flex:none;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--surface);border:1px solid var(--line);color:var(--soft)}
.tl-job .tl-ic{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 40%,var(--line))}
.tl-call .tl-ic{color:var(--violet)}
.tl-lead .tl-ic{color:var(--goldink)}
.cp-tl>li>div{min-width:0;flex:1}
.tl-t{display:flex;justify-content:space-between;gap:10px;font-size:13px;font-weight:600}
.tl-t time{flex:none;font-weight:400;font-size:11.5px;color:var(--faint)}
.cp-tl p{margin:3px 0 0;font-size:13px;line-height:1.5;color:var(--soft);word-wrap:break-word}
.cp-tl p a{color:var(--ink)}
.tl-msg{background:var(--surface);border:1px solid var(--line2);border-radius:10px;padding:6px 10px;color:var(--ink)!important;max-width:92%}
.tl-in .tl-msg{background:var(--bubble-in);border-color:transparent}
.tl-ai .tl-msg{border-color:color-mix(in srgb,var(--violet) 30%,var(--line2))}
.tl-msg em{color:var(--faint);font-size:11.5px}
.tl-none{color:var(--faint);padding-left:40px!important}
.cp-side{display:flex;flex-direction:column;gap:16px}
.cp-side section{background:var(--surface);border:1px solid var(--line2);border-radius:14px;padding:12px 14px}
.cp-side h4{margin:0 0 8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.cp-side textarea{width:100%;min-height:90px;margin:0;font-size:13px}
.cp-side input{width:100%;margin:0;font-size:13px;min-height:34px}
.cp-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cp-tag{display:inline-flex;align-items:center;gap:2px;font-size:12px;padding:2px 4px 2px 9px}
.cp-tag button,.cp-rm{border:0;background:none;color:inherit;opacity:.6;cursor:pointer;font-size:15px;line-height:1;padding:0 4px}
.cp-tag button:hover,.cp-rm:hover{opacity:1}
.cp-tagadd{flex:1;min-width:120px}
.cp-list{list-style:none;margin:0 0 8px;padding:0;font-size:13px}
.cp-list li{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:4px 0;border-bottom:1px solid var(--line2)}
.cp-list li:last-child{border-bottom:0}
.cp-danger .btn{min-height:32px;padding:4px 12px;font-size:12.5px;margin:6px 6px 0 0}
.cp-danger p{margin:0;color:var(--soft)}
@media (max-width:820px){.cp-body{grid-template-columns:minmax(0,1fr)}.cp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-head{padding:14px 16px 10px}.cp-body{padding:14px 16px 40px}.cp-stats>div{padding:10px 16px}}

/* Shops on the platform (not the full system): booking-page jobs only, with notes on what turns the rest on */
#ops:not(.plat) .plat-only,#ops.plat .full-only{display:none!important}
#ops .offnote{margin:8px 0 0}
#ops .actions select:disabled,#ops .actions .btn:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:560px){#ops.plat .actions .btn:disabled,#ops.plat .actions select:disabled{display:none}}

/* Harbor + Coral type: Inter Tight headings, a step smaller than the old serif */
#ops .lf-h,#ops .cal-head h3{font:600 21px var(--serif);letter-spacing:-.015em}
#ops .stat b{font:600 24px var(--serif);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
#ops .cl-stat b{font-weight:600;font-size:27px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
#ops .cmds h3{font:600 18px/1.15 var(--serif)}
.cu-av{font:600 14px/1 var(--serif)}
.cp-name{font:600 25px/1.15 var(--serif);letter-spacing:-.02em}
.cp-stats b{font:600 21px/1.1 var(--serif);font-variant-numeric:tabular-nums}
.cp-tlh h3{font:600 18px var(--serif)}
