/* ══════════════════════════════════════════════════════════════════════════
   canon-jobsheet.css — the job sheet (feature_job_sheet, js/scheduler/jobsheet.js).

   The v2 job editor opened as a panel on the right of the board instead of a
   centred dialog. Everything here is keyed on #jobModal.jsheet (added while a
   sheet is open), on body.jsheet-open (the board's layout while one is), on
   html.jsh-on (the inspector wears the same cards) or on the board preview's
   own .jsh-ghost/.jsh-was. The flag is pinned on: the sheet is the only editor.

   Loads after canon-scheduler.css, in the same components layer; its
   selectors carry #jobModal, so they outrank the v2 rules they reshape without
   needing to load later. Colours are canon tokens only — the hub look & feel
   (core/look-suite.js) rewrites those, so palettes, backgrounds and fonts
   reach the sheet with no work here. Text is in the page font ('Sora', which a
   chosen font is re-declared under); figures in Inter.
   ══════════════════════════════════════════════════════════════════════════ */
@layer components {
  .sched-app { --jsh-w: clamp(560px, 44vw, 720px); }

  /* ── The panel ─────────────────────────────────────────────────────── */
  .sched-app #jobModal.jsheet {
    top: var(--jsh-top, 56px); right: 0; bottom: 0; left: auto; width: var(--jsh-w);
    padding: 0; background: none; align-items: stretch; justify-content: stretch;
  }
  .sched-app #jobModal.jsheet .modal-box.sched-modal {
    container: jsh / inline-size;
    display: flex; flex-direction: column;
    width: 100%; max-width: none; height: 100%; max-height: none; margin: 0;
    border: 0; border-left: 1px solid var(--c-border); border-radius: 0;
    box-shadow: -18px 0 40px -28px color-mix(in srgb, var(--c-ink-deep) 55%, transparent);
    animation: jsh-in .22s cubic-bezier(.2, .8, .2, 1);
  }
  @keyframes jsh-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }

  /* ── Head: the job's name, where it is, what to do next ────────────── */
  .sched-app #jobModal.jsheet .sched-modal-head {
    display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 14px 20px 0; background: var(--c-card);
  }
  .sched-app #jobModal.jsheet .jsh-r1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .sched-app #jobModal.jsheet .jsh-sp { flex: 1 1 auto; }
  /* The dialog heading stays for screen readers (it labels the dialog). */
  .sched-app #jobModal.jsheet .jsh-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .sched-app #jobModal.jsheet input.jsh-title {
    flex: 1 1 auto; min-width: 120px; height: 36px; min-height: 0; margin-left: -7px; padding: 2px 6px;
    font-size: 19px; font-weight: 600; letter-spacing: -.018em; color: var(--c-text);
    background: transparent; border: 1px solid transparent; border-radius: 6px; box-shadow: none;
  }
  .sched-app #jobModal.jsheet input.jsh-title::placeholder { color: var(--c-text-2); font-weight: 600; }
  .sched-app #jobModal.jsheet input.jsh-title:hover { background: var(--c-card-2); }
  .sched-app #jobModal.jsheet input.jsh-title:focus {
    background: var(--c-card); border-color: var(--c-accent-edge); box-shadow: 0 0 0 3px var(--c-accent-soft); outline: none;
  }
  .sched-app #jobModal.jsheet .jm2-jobno { flex: none; border-radius: 999px; font-family: 'Inter', system-ui, sans-serif; }
  .sched-app #jobModal.jsheet .jsh-nav { display: flex; flex: none; border: 1px solid var(--c-border); border-radius: 7px; overflow: hidden; }
  .sched-app #jobModal.jsheet .jsh-nav button {
    display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0;
    background: transparent; color: var(--c-muted); font-size: 15px; cursor: pointer;
  }
  .sched-app #jobModal.jsheet .jsh-nav button + button { border-left: 1px solid var(--c-border); }
  .sched-app #jobModal.jsheet .jsh-nav button:hover { background: var(--c-card-2); color: var(--c-text); }
  .sched-app #jobModal.jsheet .jm2-meta { margin-top: 2px; font-size: 12.5px; }
  .sched-app #jobModal.jsheet .jsh-r3 { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
  .sched-app #jobModal.jsheet .jsh-pri { flex: none; height: 32px; }
  /* Segments (job type, priority, who it bills) wrap in a narrow sheet rather than clip. */
  .sched-app #jobModal.jsheet .jm2-seg { flex-wrap: wrap; }
  .sched-app #jobModal.jsheet .jm2-seg button { flex: 1 1 auto; }

  /* The stepper as a compact line of dots — status is an action here. */
  .sched-app #jobModal.jsheet .jm2-stepper {
    width: auto; min-width: 0; margin: 0; padding: 0; gap: 0; background: none; border: 0; border-radius: 0;
    overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
  }
  .sched-app #jobModal.jsheet .jm2-stepper::-webkit-scrollbar { display: none; }
  .sched-app #jobModal.jsheet .jm2-step {
    position: relative; flex: none; min-width: 0; gap: 5px; padding: 5px 4px; margin: 0;
    background: none; box-shadow: none; border-radius: 6px;
    font-size: 12.5px; font-weight: 500; color: var(--c-muted);
  }
  .sched-app #jobModal.jsheet .jm2-step i { display: none; }
  .sched-app #jobModal.jsheet .jm2-step::before {
    content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%;
    border: 1.5px solid var(--c-border-2); background: var(--c-card); box-sizing: border-box;
  }
  .sched-app #jobModal.jsheet .jm2-step + .jm2-step { margin-left: 8px; }
  .sched-app #jobModal.jsheet .jm2-step + .jm2-step::after {
    content: ""; position: absolute; left: -8px; top: 50%; width: 8px; height: 1.5px; background: var(--c-border-2);
  }
  .sched-app #jobModal.jsheet .jm2-step:hover { background: var(--c-card-2); color: var(--c-text); }
  .sched-app #jobModal.jsheet .jm2-step.is-done { color: var(--c-text-2); }
  .sched-app #jobModal.jsheet .jm2-step.is-done::before { background: var(--c-ok); border-color: var(--c-ok); }
  .sched-app #jobModal.jsheet .jm2-step.is-done + .jm2-step::after { background: var(--c-ok); }
  .sched-app #jobModal.jsheet .jm2-step.is-cur { background: none; box-shadow: none; color: var(--c-text); font-weight: 600; }
  .sched-app #jobModal.jsheet .jm2-step.is-cur::before {
    background: var(--c-accent); border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft);
  }
  .sched-app #jobModal.jsheet .jm2-step-off::before { background: var(--c-warn); border-color: var(--c-warn); box-shadow: none; }
  .sched-app #jobModal.jsheet .jm2-step-off { color: var(--c-on-wash-warn); }
  /* A narrow sheet keeps the words only for where the job is now; the other
     steps are dots (each keeps its label as a tooltip and accessible name). */
  @container jsh (max-width: 700px) {
    .sched-app #jobModal.jsheet .jm2-step:not(.is-cur):not(.jm2-step-off) { gap: 0; padding: 5px 4px; font-size: 0; }
  }

  /* Actions moved up from the footer: the menu opens down now. */
  .sched-app #jobModal.jsheet .jm2-menuwrap { flex: none; }
  .sched-app #jobModal.jsheet .jm2-menu { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; }
  /* "⋯" alone — the button keeps its accessible name from jobsheet.js. */
  .sched-app #jobModal.jsheet #jobActionsBtn { width: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .sched-app #jobModal.jsheet #jobActionsBtn i { font-size: 16px; }

  /* Jump links, marking the section in view. */
  .sched-app #jobModal.jsheet .jsh-jump {
    display: flex; gap: 2px; margin: 10px -8px 0; overflow-x: auto; scrollbar-width: none;
  }
  .sched-app #jobModal.jsheet .jsh-jump::-webkit-scrollbar { display: none; }
  .sched-app #jobModal.jsheet .jsh-jump button {
    display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 9px 9px;
    border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
    font-size: 12.5px; font-weight: 500; color: var(--c-muted); white-space: nowrap;
  }
  .sched-app #jobModal.jsheet .jsh-jump button:hover { color: var(--c-text); }
  .sched-app #jobModal.jsheet .jsh-jump button.on { color: var(--c-text); border-bottom-color: var(--c-accent); }
  .sched-app #jobModal.jsheet .jsh-n {
    padding: 0 6px; border-radius: 999px; background: var(--c-card-2); color: var(--c-cap);
    font-family: 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  }

  /* ── Body: one scroll of section cards on the ground ─────────────────── */
  .sched-app #jobModal.jsheet .sched-modal-body {
    display: block; flex: 1 1 auto; min-height: 0; padding: 0; overflow: hidden; border-top: 1px solid var(--c-border);
  }
  .sched-app #jobModal.jsheet .jm2-pane {
    display: block; height: 100%; overflow-y: auto; padding: 12px 14px 24px; background: var(--c-bg);
  }
  .sched-app #jobModal.jsheet .jm2-panel { display: block; animation: none; }
  .sched-app #jobModal.jsheet .jsh-gone { display: none; }
  .sched-app #jobModal.jsheet #jobSendOutStrip:not(:empty),
  .sched-app #jobModal.jsheet #jobInsight:not(:empty) { margin-bottom: 12px; }

  .sched-app #jobModal.jsheet .jsh-sec {
    margin: 0 0 12px; padding: 0 16px 16px; scroll-margin-top: 12px;
    background: var(--c-card); border: 1px solid var(--c-border); border-radius: 10px;
  }
  .sched-app #jobModal.jsheet .jsh-sec:last-child { margin-bottom: 0; }
  .sched-app #jobModal.jsheet .jsh-sec > .sset-sec-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 48px;
    margin: 0 -16px 14px; padding: 10px 16px;
    border-bottom: 1px solid var(--c-border); border-radius: 10px 10px 0 0;
    background: color-mix(in srgb, var(--c-accent) 4%, var(--c-card));
    font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; text-transform: none; color: var(--c-text);
  }
  /* The icon tile takes the look's accent — not a colour per section: on the
     board, colour already means a technician (and a status). */
  .sched-app #jobModal.jsheet .jsh-sec > .sset-sec-head > i {
    display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7px; font-size: 16px;
    background: color-mix(in srgb, var(--c-accent) 14%, var(--c-card)); color: var(--c-on-wash-accent);
  }
  .sched-app #jobModal.jsheet .jsh-sum { font-size: 12px; font-weight: 500; color: var(--c-cap); }

  /* ── When & who ─────────────────────────────────────────────────────── */
  /* Read in the order a booking is taken: the day and start side by side, how
     long, what kind of job (a full row, so its five choices sit on one line),
     then who. Order only — the nodes stay where the v2 markup put them. */
  .sched-app #jobModal.jsheet [data-jsh="when"] > .sset-grid > * { order: 20; }
  .sched-app #jobModal.jsheet [data-jsh="when"] #jobStageRow { order: 0; }
  .sched-app #jobModal.jsheet [data-jsh="when"] #jobCallbackRow { order: 1; }
  .sched-app #jobModal.jsheet [data-jsh="when"] .sset-grid > :has(> #jobDate) { order: 2; }
  .sched-app #jobModal.jsheet [data-jsh="when"] .sset-grid > :has(> #jobTimeStart) { order: 3; }
  .sched-app #jobModal.jsheet [data-jsh="when"] #jobEndGroup { order: 4; grid-column: 1 / -1; }
  .sched-app #jobModal.jsheet [data-jsh="when"] #jobTypeGroup { order: 5; grid-column: 1 / -1; }
  .sched-app #jobModal.jsheet [data-jsh="when"] #jobSupportRow { order: 6; }
  .sched-app #jobModal.jsheet [data-jsh="when"] .jsh-who { order: 7; }
  .sched-app #jobModal.jsheet .jsh-who { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .sched-app #jobModal.jsheet .jsh-who-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 12px; }
  .sched-app #jobModal.jsheet .jsh-lbl { font-weight: 500; color: var(--c-text-2); }
  .sched-app #jobModal.jsheet .jsh-hint { color: var(--c-cap); }
  .sched-app #jobModal.jsheet .jsh-who-head .sched-newtech { margin-left: auto; }
  .sched-app #jobModal.jsheet .jsh-techsel { display: none; }
  .sched-app #jobModal.jsheet .jsh-who > .form-group { max-width: 360px; margin: 0; }
  .sched-app #jobModal.jsheet .jsh-techs { display: flex; flex-wrap: wrap; gap: 6px; }
  .sched-app #jobModal.jsheet .jsh-tp {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px 0 5px; cursor: pointer;
    border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-card);
    font-size: 12.5px; color: var(--c-text);
  }
  .sched-app #jobModal.jsheet .jsh-tp:hover { border-color: var(--c-border-2); }
  .sched-app #jobModal.jsheet .jsh-tp-none { padding: 0 12px; color: var(--c-text-2); }
  .sched-app #jobModal.jsheet .jsh-av {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--t, var(--c-muted)); color: var(--ti, white); font-size: 10px; font-weight: 700;
  }
  .sched-app #jobModal.jsheet .jsh-tp-n { font-weight: 500; }
  .sched-app #jobModal.jsheet .jsh-tp-s { font-size: 11px; color: var(--c-on-wash-ok); }
  .sched-app #jobModal.jsheet .jsh-tp.busy .jsh-tp-s { color: var(--c-cap); }
  .sched-app #jobModal.jsheet .jsh-tp.on { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent-soft); }
  .sched-app #jobModal.jsheet .jsh-tp.on.busy { border-color: var(--c-warn); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-warn) 18%, transparent); }
  .sched-app #jobModal.jsheet .jsh-tp.on.busy .jsh-tp-s { color: var(--c-on-wash-warn); font-weight: 600; }

  /* ── Empty panels shrink to one line ────────────────────────────────── */
  /* Extra work, supplier orders and equipment each draw a heading, a paragraph
     and an empty-state line when there is nothing in them. On the sheet an
     empty one is a single dashed row with its actions; it opens back up the
     moment it has something (or its form is open). */
  .sched-app #jobModal.jsheet #jobVariationsWrap:has(> .jv-empty),
  .sched-app #jobModal.jsheet #jobPurchaseWrap:has(#jobPurchaseList > .job-parts-empty:only-child),
  .sched-app #jobModal.jsheet #jobEquipWrap:has(#jobEquipList > .equip-empty):has(#jobEquipForm[style*="none"]) {
    display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 12px;
    padding: 8px 8px 8px 12px; border: 1px dashed var(--c-border-2); border-radius: 8px;
  }
  .sched-app #jobModal.jsheet #jobVariationsWrap:has(> .jv-empty) .jv-head { flex: 1 1 auto; align-items: center; margin: 0; }
  .sched-app #jobModal.jsheet #jobVariationsWrap:has(> .jv-empty) .jv-head b { display: inline; }
  .sched-app #jobModal.jsheet #jobVariationsWrap:has(> .jv-empty) .jv-head b::after { content: " · none agreed"; font-weight: 400; color: var(--c-cap); }
  .sched-app #jobModal.jsheet #jobVariationsWrap:has(> .jv-empty) :is(.jv-head .hint, .jv-empty) { display: none; }
  .sched-app #jobModal.jsheet #jobPurchaseWrap:has(#jobPurchaseList > .job-parts-empty:only-child) > label { flex: 1 1 auto; margin: 0; }
  .sched-app #jobModal.jsheet #jobPurchaseWrap:has(#jobPurchaseList > .job-parts-empty:only-child) > label .hint { display: none; }
  .sched-app #jobModal.jsheet #jobPurchaseWrap:has(#jobPurchaseList > .job-parts-empty:only-child) > label::after { content: " · none ordered"; font-weight: 400; color: var(--c-cap); }
  .sched-app #jobModal.jsheet #jobPurchaseWrap:has(#jobPurchaseList > .job-parts-empty:only-child) #jobPurchaseList { display: none; }
  .sched-app #jobModal.jsheet #jobPurchaseWrap:has(#jobPurchaseList > .job-parts-empty:only-child) .job-po-bar { margin: 0; }
  .sched-app #jobModal.jsheet #jobEquipWrap:has(#jobEquipList > .equip-empty):has(#jobEquipForm[style*="none"]) #jobEquipList { flex: 1 1 auto; }
  .sched-app #jobModal.jsheet #jobEquipWrap:has(#jobEquipList > .equip-empty):has(#jobEquipForm[style*="none"]) .equip-empty { padding: 0; }
  .sched-app #jobModal.jsheet #jobEquipWrap:has(#jobEquipList > .equip-empty):has(#jobEquipForm[style*="none"]) .equip-addrow { margin: 0; }

  /* ── Paperwork ──────────────────────────────────────────────────────── */
  .sched-app #jobModal.jsheet .jsh-paper { display: flex; flex-direction: column; gap: 12px; }
  .sched-app #jobModal.jsheet .jsh-docs { display: flex; flex-wrap: wrap; gap: 6px; }
  .sched-app #jobModal.jsheet .jsh-docs:empty { display: none; }
  .sched-app #jobModal.jsheet .jsh-paper #jobProjectGroup { max-width: 360px; margin: 0; }

  /* ── The save bar: only while there is something to save ──────────── */
  .sched-app #jobModal.jsheet .sched-modal-footer { display: none; }
  .sched-app #jobModal.jsheet.jsh-dirty .sched-modal-footer,
  .sched-app #jobModal.jsheet.jsh-new .sched-modal-footer {
    display: flex; align-items: center; gap: 10px; padding: 10px 20px;
    box-shadow: 0 -12px 24px -20px color-mix(in srgb, var(--c-ink-deep) 50%, transparent);
    animation: jsh-up .18s ease-out;
  }
  @keyframes jsh-up { from { transform: translateY(100%); } to { transform: none; } }
  .sched-app #jobModal.jsheet .jsh-savemsg { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-text-2); }
  .sched-app #jobModal.jsheet .jsh-savemsg b { font-weight: 600; color: var(--c-text); }
  .sched-app #jobModal.jsheet .jsh-savemsg i { color: var(--c-warn); font-size: 14px; }
  .sched-app #jobModal.jsheet.jsh-dirty .jsh-savemsg { display: inline-flex; }
  .sched-app #jobModal.jsheet .sched-primaryactions { margin-left: auto; display: flex; gap: 8px; }
  /* A saved job discards back to what is saved; only a new one cancels. */
  .sched-app #jobModal.jsheet:not(.jsh-new) .sched-primaryactions > .btn-secondary:not(.jsh-discard) { display: none; }
  .sched-app #jobModal.jsheet .sched-modal-footer.jsh-shake { animation: jsh-shake .35s; }
  @keyframes jsh-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

  /* ── The board around an open sheet ────────────────────────────────── */
  .sched-app .jsh-strip { display: none; }

  /* Where the job is about to go (jobsheet.js _paintPreview): a dashed card in
     the new slot, and the saved one faded to "was here". Decorative — the
     sheet's own fields say the same thing in text. */
  .sched-app #schedulerCalendar .jsh-ghost {
    position: absolute; left: 2px; right: 2px; z-index: 4; overflow: hidden; pointer-events: none;
    padding: 3px 6px; border: 2px dashed var(--jc, var(--c-accent)); border-radius: 6px;
    background: color-mix(in srgb, var(--jc, var(--c-accent)) 14%, var(--c-card));
    box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--c-ink-deep) 45%, transparent);
    font-size: 11px; line-height: 1.3; color: var(--c-text);
  }
  .sched-app #schedulerCalendar .jsh-ghost.is-clash { border-color: var(--c-warn); }
  .sched-app #schedulerCalendar .jsh-ghost span { display: block; font-family: 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--c-text-2); white-space: nowrap; }
  .sched-app #schedulerCalendar .jsh-ghost b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sched-app #schedulerCalendar .jsh-was { opacity: .4; outline: 1.5px dashed var(--c-border-2); outline-offset: -1px; }
  @media (min-width: 961px) {
    /* Padding, not margin: the body is a full-width flex item, so a margin only
       pushed it past the viewport instead of narrowing what is in it. */
    .sched-app.jsheet-open .sched-page-body { box-sizing: border-box; padding-right: var(--jsh-w); }
    .sched-app.jsheet-open .spane-right { display: none; }
    .sched-app.jsheet-open .sboard { grid-template-columns: minmax(0, 1fr); }
    /* The board header tucks away: the legend and alert strip go, tool labels
       drop to icons (each keeps its title and aria-label). */
    .sched-app.jsheet-open .sched-legend,
    .sched-app.jsheet-open .sched-attention { display: none; }
    .sched-app.jsheet-open .stoolbar .sbtn-lbl,
    .sched-app.jsheet-open .stoolbar .sview-lbl { display: none; }
  }
  @media (min-width: 1281px) {
    /* The left rail folds to a strip of icons while a sheet is open; any of
       them unfolds it (body.jsheet-rail) until the sheet closes. */
    .sched-app.jsheet-open .sboard { grid-template-columns: 52px minmax(0, 1fr); }
    .sched-app.jsheet-open.jsheet-rail .sboard { grid-template-columns: 292px minmax(0, 1fr); }
    .sched-app.jsheet-open:not(.jsheet-rail) .spane-left > :not(.jsh-strip) { display: none; }
    .sched-app.jsheet-open:not(.jsheet-rail) .spane-left > .jsh-strip { display: flex; }
  }
  .sched-app .jsh-strip {
    flex-direction: column; align-items: center; gap: 4px; flex: 1 1 auto; padding: 8px 0;
    background: var(--c-card); border: 1px solid var(--c-border); border-radius: 10px;
  }
  .sched-app .jsh-strip button {
    position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
    border: 0; border-radius: 8px; background: none; color: var(--c-muted); font-size: 18px;
  }
  .sched-app .jsh-strip button:hover { background: var(--c-card-2); color: var(--c-text); }
  .sched-app .jsh-strip small {
    position: absolute; bottom: 1px; font-family: 'Inter', system-ui, sans-serif; font-size: 9px; font-weight: 600; color: var(--c-text-2);
  }
  .sched-app .jsh-strip-n {
    position: absolute; top: 2px; right: 1px; display: grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px;
    border-radius: 999px; background: var(--c-cta); color: var(--c-cta-fg);
    font-family: 'Inter', system-ui, sans-serif; font-size: 9.5px; font-weight: 700;
  }
  .sched-app .jsh-strip-sep { width: 24px; height: 1px; margin: 4px 0; background: var(--c-border); }

  /* ── The inspector, in the sheet's cards (html.jsh-on = the flag is on) ── */
  @media (min-width: 961px) {
    html.jsh-on .sched-app .spane-right { background: var(--c-bg); border-color: transparent; box-shadow: none; }
    html.jsh-on .sched-app #schedInspector { gap: 10px; }
    html.jsh-on .sched-app .sched-insp-top {
      background: var(--c-card); border: 1px solid var(--c-border); border-bottom: 0; border-radius: 10px 10px 0 0;
    }
    html.jsh-on .sched-app .sched-insp-top + .sched-insp-stepper {
      margin-top: -10px; padding-bottom: 12px;
      background: var(--c-card); border: 1px solid var(--c-border); border-top: 0; border-radius: 0 0 10px 10px;
    }
    html.jsh-on .sched-app .sched-insp .sched-insp-sec {
      padding: 0 14px 14px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: 10px;
    }
    html.jsh-on .sched-app .sched-insp .sched-insp-sec > .sched-insp-t,
    html.jsh-on .sched-app .sched-insp .sched-insp-sec > .sched-insp-ckh {
      margin: 0 -14px 10px; padding: 9px 14px; border-bottom: 1px solid var(--c-border); border-radius: 10px 10px 0 0;
      background: color-mix(in srgb, var(--c-accent) 4%, var(--c-card));
    }
    html.jsh-on .sched-app .sched-insp .sched-insp-t {
      font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--c-text);
    }
    html.jsh-on .sched-app .sched-insp .sched-insp-ckh > .sched-insp-t { margin: 0; }
    html.jsh-on .sched-app .sched-insp-actions { border: 1px solid var(--c-border); border-radius: 10px; }
  }

  /* ── Phone and small tablet: the sheet is the whole screen ──────────── */
  @media (max-width: 960px) {
    .sched-app #jobModal.jsheet { top: 0; left: 0; width: auto; }
    .sched-app #jobModal.jsheet .modal-box.sched-modal { border-left: 0; box-shadow: none; }
    .sched-app #jobModal.jsheet .sched-modal-head { padding: 12px 14px 0; }
    .sched-app #jobModal.jsheet .jsh-nav { display: none; }
    .sched-app #jobModal.jsheet .jsh-r3 { flex-wrap: wrap; row-gap: 8px; }
    .sched-app #jobModal.jsheet .jm2-stepper { flex: 1 1 100%; order: 3; }
    .sched-app #jobModal.jsheet .jm2-pane { padding: 10px 10px 24px; }
    .sched-app #jobModal.jsheet .jsh-sec { padding: 0 12px 14px; }
    .sched-app #jobModal.jsheet .jsh-sec > .sset-sec-head { margin: 0 -12px 12px; padding: 8px 12px; }
    .sched-app #jobModal.jsheet.jsh-dirty .sched-modal-footer,
    .sched-app #jobModal.jsheet.jsh-new .sched-modal-footer { padding: 10px 14px 14px; }
    .sched-app #jobModal.jsheet .jsh-savemsg { display: none; }
    .sched-app #jobModal.jsheet .sched-primaryactions { flex: 1 1 auto; }
    .sched-app #jobModal.jsheet .sched-primaryactions > .btn { flex: 1 1 0; justify-content: center; height: 40px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .sched-app #jobModal.jsheet .modal-box.sched-modal,
    .sched-app #jobModal.jsheet .sched-modal-footer,
    .sched-app.jsheet-open .sched-page-body { animation: none; }
  }
}
