      /* ================= QUOTE BUILDER ================= */
      /* One number for the panel's width, because four things have to agree
         on it: the panel, the crane imprint behind it, the deck's left offset
         and the slide-scaling maths in 04-ui.js. It was written out four
         times, so widening the panel meant finding all four. */
      :root {
        --panel-w: 324px;
      }
      #panel {
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--panel-w);
        z-index: 60;
        background: linear-gradient(180deg, var(--navy-950), #063a56);
        color: #fff;
        padding: 22px 20px 28px;
        overflow-y: auto;
      }
      #panel::before {
        content: "";
        position: fixed;
        left: 0;
        bottom: -16px;
        width: var(--panel-w);
        height: 190px;
        background: url("../../crane_imprint.png") no-repeat left bottom /
          290px auto;
        opacity: 0.16;
        pointer-events: none;
      }
      #panel::-webkit-scrollbar {
        width: 6px;
      }
      #panel::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.18);
        border-radius: 3px;
      }
      #panel .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 6px;
        /* Anchors the settings popover, which hangs below the header. */
        position: relative;
      }
      #panel .brand img {
        height: 40px;
      }
      #panel h2 {
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin: 0;
      }
      #panel .hint {
        font-size: 0.74rem;
        line-height: 1.45;
        opacity: 0.65;
        margin: 8px 0 6px;
      }
      /* Section headings are numbered so the rail reads as an order to work
         through rather than a wall of fields. The digit comes from a CSS
         counter, not the markup, so adding or reordering a section renumbers
         the rest on its own. */
      #panel {
        counter-reset: sec;
      }
      #panel .sec {
        display: flex;
        align-items: center;
        margin: 26px 0 6px;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        opacity: 0.9;
        font-weight: 700;
      }
      #panel .sec::before {
        counter-increment: sec;
        content: counter(sec);
        flex: none;
        width: 24px;
        height: 24px;
        margin-right: 10px;
        border-radius: 50%;
        background: var(--navy-2);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.78rem;
        font-weight: 800;
        /* cancel the heading tracking, or the digit sits off-centre */
        letter-spacing: normal;
      }
      #panel label {
        display: block;
        font-size: 0.76rem;
        font-weight: 600;
        margin: 10px 0 4px;
        opacity: 0.92;
      }
      #panel input,
      #panel select,
      #panel textarea {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 7px;
        font-size: 0.86rem;
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        outline: none;
      }
      #panel input:focus,
      #panel select:focus,
      #panel textarea:focus {
        border-color: rgba(255, 255, 255, 0.45);
        background: rgba(255, 255, 255, 0.1);
      }
      #panel select option {
        color: #111;
      }
      #panel textarea {
        resize: vertical;
        min-height: 56px;
      }
      #panel input[type="file"] {
        padding: 6px;
        font-size: 0.72rem;
      }
      #panel input[type="file"]::file-selector-button {
        border: none;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        padding: 5px 10px;
        margin-right: 8px;
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        font-size: 0.72rem;
        cursor: pointer;
      }
      #panel .filenote {
        font-size: 0.66rem;
        opacity: 0.5;
        margin-top: 3px;
        line-height: 1.4;
      }
      #panel button.print {
        width: 100%;
        margin-top: 22px;
        padding: 12px;
        border: none;
        border-radius: 8px;
        background: var(--blue);
        color: #fff;
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        font-weight: 700;
        letter-spacing: 0.04em;
        font-size: 0.92rem;
        cursor: pointer;
        text-transform: uppercase;
        position: relative;
      }
      #panel button.print:hover {
        background: #2486d3;
      }
      /* Sizing assumptions. Settings, not a per-quote field: behind a gear in
         the header rather than in the field list, because they are set once
         and then left alone. Every figure says whether it is TES's or the one
         the tool ships with — a changed basis that looks identical to a
         standard one is how a quote goes out on the wrong sizing. */
      #panel .gearbtn {
        margin-left: auto;
        position: relative;
        flex: none;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.75);
        cursor: pointer;
        transition: color 0.15s, border-color 0.15s, background 0.15s;
      }
      #panel .gearbtn:hover,
      #panel .gearbtn[aria-expanded="true"] {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.45);
        background: rgba(255, 255, 255, 0.10);
      }
      #panel .gearbtn svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      /* Present only while something is off default. */
      #panel .gear-dot {
        position: absolute;
        top: -3px;
        right: -3px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #eb6834;
        box-shadow: 0 0 0 2px var(--navy-950, #0e3a5c);
      }
      #panel .gear-dot[hidden] { display: none; }

      #panel .assumepop {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 40;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        background: #10314a;
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
        padding: 12px 14px 14px;
      }
      #panel .assumepop[hidden] { display: none; }
      #panel .assumepop .as-head {
        display: flex;
        align-items: center;
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.82);
        margin-bottom: 10px;
      }
      #panel .assumepop .as-x {
        margin-left: auto;
        padding: 0 2px;
        border: 0;
        background: none;
        color: rgba(255, 255, 255, 0.55);
        font-size: 17px;
        line-height: 1;
        cursor: pointer;
      }
      #panel .assumepop .as-x:hover { color: #fff; }
      #panel .assumepop .as-lead {
        margin: 0 0 12px;
        font-size: 11.5px;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.55);
      }
      /* Per-figure provenance. "standard" is deliberately quiet; "TES" is not,
         because that is the one a reader needs to notice. */
      #panel .as-tag {
        display: inline-block;
        margin-left: 4px;
        padding: 1px 6px;
        border-radius: 999px;
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.10);
        color: rgba(255, 255, 255, 0.55);
      }
      #panel .as-tag.on { background: #eb6834; color: #fff; }
      #panel .as-state {
        margin-left: 8px;
        font-size: 9.5px;
        letter-spacing: 0.06em;
        text-transform: none;
        color: rgba(255, 255, 255, 0.45);
      }
      #panel .as-state.on { color: #ffb08c; }

      /* Secondary and small: it undoes one optional field, and must not read
         as one of the panel's main actions. */
      #panel button.clearbtn {
        margin: 6px 0 2px;
        padding: 6px 11px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 7px;
        background: transparent;
        color: rgba(255, 255, 255, 0.82);
        font-family: inherit;
        font-size: 0.72rem;
        font-weight: 600;
        cursor: pointer;
        transition: border-color 0.15s, color 0.15s;
      }
      #panel button.clearbtn:hover {
        border-color: rgba(255, 255, 255, 0.5);
        color: #fff;
      }

      #panel button.editbtn {
        width: 100%;
        margin-top: 4px;
        padding: 11px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        font-weight: 700;
        letter-spacing: 0.04em;
        font-size: 0.82rem;
        cursor: pointer;
        text-transform: uppercase;
        transition:
          background 0.15s,
          border-color 0.15s;
      }
      #panel button.editbtn:hover {
        background: rgba(255, 255, 255, 0.12);
      }
      #panel button.editbtn.on {
        background: var(--blue);
        border-color: var(--blue);
      }
      #panel button.savecopybtn {
        width: 100%;
        margin-top: 10px;
        padding: 11px;
        border: 1px solid rgba(127, 224, 160, 0.4);
        border-radius: 8px;
        background: rgba(127, 224, 160, 0.12);
        color: #7fe0a0;
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        font-weight: 700;
        letter-spacing: 0.04em;
        font-size: 0.82rem;
        cursor: pointer;
        text-transform: uppercase;
        transition: background 0.15s;
      }
      #panel button.savecopybtn:hover {
        background: rgba(127, 224, 160, 0.2);
      }
      #panel button.savecopybtn:disabled {
        opacity: 0.55;
        cursor: progress;
      }
      /* ===== equipment line-item rows (panel) ===== */
      .eqrow {
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 9px;
        padding: 9px 9px 10px;
        margin: 8px 0;
        background: rgba(255, 255, 255, 0.04);
      }
      .eqrow .eqtop {
        display: flex;
        gap: 6px;
        align-items: center;
      }
      .eqrow select.eqtype {
        flex: 1;
        margin: 0;
      }
      .eqrow .eqdel {
        flex: none;
        width: 26px;
        height: 30px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.75);
        font-size: 1rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
      }
      .eqrow .eqdel:hover {
        background: rgba(235, 104, 52, 0.28);
        border-color: rgba(235, 104, 52, 0.5);
        color: #fff;
      }
      .eqrow .eqgrid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        margin-top: 7px;
      }
      .eqrow .eqgrid label {
        margin: 0 0 2px;
        font-size: 0.62rem;
        letter-spacing: 0.02em;
        opacity: 0.62;
        text-transform: uppercase;
        font-weight: 700;
      }
      .eqrow .eqgrid input {
        padding: 6px 7px;
        font-size: 0.8rem;
      }
      /* Drive type: a two-state segmented control sized to sit inline with
         the type dropdown and the delete button in .eqtop. Deliberately quiet
         until selected, because it is a qualifier on the row rather than a
         primary input. */
      /* Its own labelled row rather than squeezed into .eqtop beside the
         type dropdown: the two states are spelled out in words, which does
         not fit next to a select holding "Construction hoist / lift". */
      /* Rep-facing pricing warning: loud enough not to be missed while
         quoting, quiet enough not to look like an error state. */
      .framenote {
        margin: 8px 0 2px;
        padding: 8px 10px;
        border: 1px solid rgba(235, 104, 52, 0.45);
        border-left-width: 3px;
        border-radius: 6px;
        background: rgba(235, 104, 52, 0.1);
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.72rem;
        line-height: 1.45;
      }
      .framenote strong {
        color: #fff;
      }
      /* Explicit confirm control. Full width and unmissable, because it is
         the one thing on the row that decides what the client-facing load
         schedule prints beside the item. */
      /* Restored-session notice. Sits at the very top of the panel because
         its whole job is to be seen before the rep starts trusting the
         figures below it. */
      /* A figure the panel reports rather than accepts. Deliberately not
         styled like an input, so nobody tries to type in it. */
      .derivedout {
        margin: 2px 0 4px;
        padding: 7px 10px;
        border: 1px dashed rgba(255, 255, 255, 0.22);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.04);
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.82rem;
      }
      .derivedout b {
        font-size: 1rem;
      }
      .derivedout .dsub {
        display: block;
        margin-top: 1px;
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.55);
      }
      .restorebar {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin: 0 0 10px;
        padding: 8px 10px;
        border: 1px solid rgba(9, 102, 151, 0.5);
        border-left-width: 3px;
        border-radius: 6px;
        background: rgba(9, 102, 151, 0.14);
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.7rem;
        line-height: 1.4;
      }
      .restorebar button {
        margin: 0;
        padding: 3px 8px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font: 600 0.68rem/1 var(--sans, inherit);
        cursor: pointer;
      }
      .restorebar button:hover {
        background: rgba(255, 255, 255, 0.16);
      }
      /* Working copy: amber, because the message is a caution (has pricing,
         don't send it) rather than the neutral "session restored". */
      .restorebar.workingbar {
        border-color: rgba(212, 160, 23, 0.65);
        background: rgba(212, 160, 23, 0.16);
        color: #fde3ac;
      }
      /* Locked client details in a reopened working copy. */
      #panel.identity-locked input:disabled,
      #panel.identity-locked select:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        background: rgba(255, 255, 255, 0.04);
      }
      .eqrow .eqconfirm {
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
        margin-top: 7px;
        padding: 5px 8px;
        border: 1px solid rgba(235, 104, 52, 0.4);
        border-radius: 6px;
        background: rgba(235, 104, 52, 0.08);
        color: rgba(255, 255, 255, 0.75);
        font: 600 0.68rem/1.2 var(--sans, inherit);
        text-align: left;
        cursor: pointer;
      }
      .eqrow .eqconfirm .cdot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        flex: none;
        background: #eb6834;
      }
      .eqrow .eqconfirm:hover {
        border-color: rgba(235, 104, 52, 0.7);
      }
      .eqrow .eqconfirm.on {
        border-color: rgba(30, 140, 70, 0.5);
        background: rgba(30, 140, 70, 0.12);
        color: rgba(255, 255, 255, 0.9);
      }
      .eqrow .eqconfirm.on .cdot {
        background: #2fa35e;
      }
      /* ---- run times ----------------------------------------------------
         Set apart from the rest of the card with a dashed edge, because it is
         the one block that may be left alone: blank means the site shift, the
         way every load behaved before run times existed. The bar underneath
         is the day at a glance, so a rep can see what overlaps without
         reading the numbers back. */
      /* The second diesel set is opt-in, so its toggle reads as a choice
         rather than another field to fill in. Styling for .gen2head and
         .genbox now lives together, below, under the genbox rules. */
      #qGen2Wrap[hidden] { display: none; }

      /* Two generator boxes under Diesel Baseline, so Generator 1 and
         Generator 2 read as a pair rather than one flat list with a
         checkbox buried partway down it. Same bordered-card language the
         rest of the rail already uses for a grouped block. */
      #panel .genbox {
        margin: 16px 0;
        padding: 12px 14px 4px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
      }
      #panel .genbox2 {
        padding-bottom: 12px;
      }
      #panel .genboxhead {
        display: flex;
        align-items: baseline;
        gap: 8px;
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-bottom: 4px;
      }
      #panel .gennum {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: rgba(126, 200, 242, 0.22);
        color: #7ec8f2;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: normal;
        flex: none;
      }
      #panel .gensub {
        font-size: 0.66rem;
        font-weight: 500;
        letter-spacing: normal;
        text-transform: none;
        opacity: 0.6;
      }
      /* Generator 2's whole header IS the checkbox label, so ticking the box
         anywhere on that row works, not just on the tiny square. */
      #panel .genbox2 .genboxhead {
        margin-bottom: 0;
      }
      #panel .gen2head {
        display: flex;
        align-items: baseline;
        gap: 8px;
        width: 100%;
        margin: 0;
        text-transform: none;
        letter-spacing: normal;
        font-size: 0.76rem;
        font-weight: 600;
        cursor: pointer;
      }
      #panel .gen2head input[type="checkbox"] {
        width: auto;
        margin: 0;
        accent-color: #7ec8f2;
      }
      #panel .gen2head .gennum,
      #panel .gen2head .gensub {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.74rem;
      }
      #panel .gen2head .gensub {
        font-weight: 500;
        text-transform: none;
        opacity: 0.6;
      }
      #panel .gen2fields {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
      }
      #panel .genbox .filenote {
        margin-bottom: 4px;
      }

      .eqrow .runs {
        margin-top: 9px;
        padding: 9px 10px 8px;
        border: 1px dashed rgba(120, 190, 240, 0.4);
        border-radius: 7px;
        background: rgba(120, 190, 240, 0.05);
      }
      .eqrow .runs.set {
        border-style: solid;
        border-color: rgba(120, 190, 240, 0.5);
      }
      .eqrow .runshead {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 6px;
      }
      .eqrow .runshead label {
        margin: 0;
      }
      .eqrow .runslink,
      .eqrow .runsadd {
        background: none;
        border: 0;
        padding: 0;
        font: inherit;
        font-size: 0.72rem;
        color: #7ec8f2;
        cursor: pointer;
        text-decoration: underline;
      }
      .eqrow .runsadd {
        text-decoration: none;
        margin-top: 2px;
      }
      .eqrow .runsgrid {
        margin: 0;
      }
      /* Two times and a delete, in a 284px rail. The 1fr columns need an
         explicit min-width:0 or the time inputs refuse to shrink below their
         intrinsic width and push the second one off the card. */
      .eqrow .runblk {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
        gap: 4px;
        align-items: center;
        margin-bottom: 5px;
      }
      .eqrow .runblk input {
        min-width: 0;
        width: 100%;
      }
      .eqrow .runblk span {
        font-size: 0.7rem;
        opacity: 0.7;
      }
      .eqrow .runsdel {
        width: 24px;
        height: 24px;
        line-height: 1;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 5px;
        color: rgba(255, 255, 255, 0.75);
        cursor: pointer;
      }
      /* 24 cells, one an hour. A lit cell is an hour this load runs. */
      .eqrow .runsbar {
        display: grid;
        grid-template-columns: repeat(24, 1fr);
        height: 13px;
        margin-top: 8px;
        border-radius: 4px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.08);
      }
      .eqrow .runsbar i {
        display: block;
        height: 100%;
      }
      .eqrow .runsbar i.on {
        background: #7ec8f2;
      }
      .eqrow .runsbar i.tick {
        box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.25);
      }
      .eqrow .runslab {
        display: flex;
        justify-content: space-between;
        font-size: 0.62rem;
        opacity: 0.55;
        margin-top: 2px;
      }
      .eqrow .runsread {
        font-size: 0.72rem;
        color: #7ec8f2;
        font-weight: 600;
        margin-top: 6px;
      }
      /* Fires at the point of action — the row where the hours were just
         set — rather than only in the Generator 2 box a scroll away. Amber,
         not the blue used everywhere else in this panel, so it reads as
         something to look at rather than background status text. */
      .eqrow .runswarn {
        margin-top: 7px;
        padding: 6px 8px;
        border: 1px solid rgba(239, 168, 58, 0.45);
        border-left: 3px solid var(--gold);
        border-radius: 5px;
        background: rgba(239, 168, 58, 0.08);
        font-size: 0.68rem;
        line-height: 1.4;
        color: #f3c871;
        cursor: pointer;
      }
      .eqrow .runswarn:hover,
      .eqrow .runswarn:focus-visible {
        background: rgba(239, 168, 58, 0.14);
        outline: none;
      }
      .eqrow .runswarn .runswarnjump {
        display: block;
        margin-top: 4px;
        font-weight: 700;
        text-decoration: underline;
      }
      /* Draws the eye to the box the row card just scrolled to, so the rep
         does not land on a page and have to re-locate what changed. */
      #panel .genbox2.flash {
        animation: gen2flash 1.1s ease;
      }
      @keyframes gen2flash {
        0% { box-shadow: 0 0 0 2px rgba(239, 168, 58, 0.9); }
        100% { box-shadow: 0 0 0 2px rgba(239, 168, 58, 0); }
      }

      .eqrow .eqdriverow {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: 7px;
      }
      .eqrow .eqdriverow label {
        margin: 0;
      }
      .eqrow .eqdrive {
        flex: none;
        display: inline-flex;
        height: 26px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 6px;
        overflow: hidden;
      }
      .eqrow .eqdrive button {
        border: 0;
        margin: 0;
        padding: 0 9px;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.55);
        font: 700 0.64rem/1 var(--sans, inherit);
        letter-spacing: 0.04em;
        cursor: pointer;
      }
      .eqrow .eqdrive button + button {
        border-left: 1px solid rgba(255, 255, 255, 0.16);
      }
      .eqrow .eqdrive button:hover {
        color: rgba(255, 255, 255, 0.85);
      }
      .eqrow .eqdrive button.on {
        background: rgba(9, 102, 151, 0.55);
        color: #fff;
      }
      /* Names the multiple carrying a row that has no logged reading, which
         the amps column otherwise hides completely. */
      .eqrow .eqfall {
        color: rgba(255, 255, 255, 0.42);
        font-style: italic;
      }
      .eqrow .eqkva {
        margin-top: 7px;
        font-size: 0.72rem;
        letter-spacing: 0.02em;
        color: rgba(255, 255, 255, 0.62);
      }
      .eqrow .eqkva b {
        color: var(--cyan);
        font-weight: 700;
      }
      .eqrow .eqconf {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-top: 8px;
        font-size: 0.72rem;
        font-weight: 600;
        opacity: 0.9;
        cursor: pointer;
        user-select: none;
      }
      #panel .eqrow .eqconf input {
        width: 15px;
        height: 15px;
        flex: none;
        margin: 0;
        accent-color: #4fd48a;
      }
      /* "Look up" sits on the Rated kW label so it reads as an aid to that
         one field rather than another action on the row. */
      .eqrow .eqgrid label {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 6px;
      }
      .eqrow .eqlook {
        border: none;
        background: none;
        padding: 0;
        cursor: pointer;
        font: inherit;
        font-size: 0.6rem;
        letter-spacing: 0.02em;
        text-transform: none;
        color: var(--cyan);
        opacity: 0.95;
        border-bottom: 1px solid currentColor;
        line-height: 1;
      }
      .eqrow .eqlook:hover {
        color: #fff;
      }
      .eqrow .eqmodel {
        margin-top: 6px;
        font-size: 0.68rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.82);
        background: rgba(255, 255, 255, 0.09);
        border-radius: 4px;
        padding: 3px 7px;
        display: inline-block;
      }

      /* Fuel-reduction band buttons. Same active/outline logic as the ROI
         calculator's, so the two tools feel like one product. */
      #panel .bandbtns {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin: 0 0 6px;
      }
      #panel .bandbtns button {
        font: inherit;
        font-size: 10.5px;
        font-weight: 600;
        padding: 5px 3px;
        cursor: pointer;
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 5px;
      }
      #panel .bandbtns button:hover {
        border-color: rgba(255, 255, 255, 0.5);
      }
      #panel .bandbtns button.on {
        background: #fff;
        color: var(--navy-950);
        border-color: #fff;
      }

      /* ===== Crane model lookup ===== */
      .clmodal {
        position: fixed;
        inset: 0;
        z-index: 200;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6vh 16px;
      }
      .clmodal[hidden] {
        display: none;
      }
      .clmodal .cl-back {
        position: absolute;
        inset: 0;
        background: rgba(6, 26, 42, 0.6);
      }
      .clmodal .cl-card {
        position: relative;
        z-index: 1;
        width: min(660px, 100%);
        /* The card is a flex column capped by max-height; .cl-list below is the
           part that scrolls. Without min-height:0 on that child it would grow
           to all 91 rows and overflow the card instead of scrolling, which is
           what makes filtering look like it does nothing. */
        max-height: 82vh;
        display: flex;
        flex-direction: column;
        background: #fff;
        color: var(--ink, #080605);
        border-radius: 16px;
        padding: 22px 24px 24px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
      }
      .clmodal .cl-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 12px;
      }
      .clmodal .cl-head h3 {
        margin: 0 0 4px;
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        font-weight: 700;
        font-size: 1.02rem;
        color: #063a56;
      }
      .clmodal .cl-head p {
        margin: 0;
        font-size: 0.78rem;
        line-height: 1.5;
        color: #605e5e;
      }
      .clmodal .cl-x {
        flex: none;
        border: none;
        background: #f4f6f8;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 1.05rem;
        line-height: 1;
        cursor: pointer;
        color: #605e5e;
      }
      .clmodal .cl-x:hover {
        background: #e6e5df;
      }
      #panel .clmodal .cl-search {
        width: 100%;
        padding: 9px 12px;
        border: 1px solid #e6e5df;
        border-radius: 8px;
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        font-size: 0.86rem;
        color: #080605;
        background: #fff;
        margin: 0 0 8px;
      }
      #panel .clmodal .cl-search:focus {
        border-color: #096697;
        outline: 2px solid rgba(9, 102, 151, 0.25);
        outline-offset: 1px;
      }
      .clmodal .cl-count {
        font-size: 0.7rem;
        color: #8e8d8c;
        margin-bottom: 8px;
      }
      .clmodal .cl-list {
        flex: 1 1 auto;
        min-height: 0; /* see .cl-card */
        overflow-y: auto;
        border: 1px solid #eeece7;
        border-radius: 10px;
        padding: 9px;
        background: #f4f6f8;
      }
      .clmodal .cl-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 7px;
      }
      .clmodal .clitem {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: left;
        background: #fff;
        border: 1px solid #e6e5df;
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        font-family: inherit;
      }
      .clmodal .clitem:hover {
        border-color: #096697;
        background: #e8f5fc;
      }
      .clmodal .clitem:focus-visible {
        outline: 2px solid #096697;
        outline-offset: 1px;
        border-color: #096697;
        background: #e8f5fc;
      }
      .clmodal .cl-m {
        font-size: 0.78rem;
        font-weight: 600;
        color: #605e5e;
      }
      .clmodal .cl-p {
        flex: none;
        font-size: 0.74rem;
        font-weight: 700;
        color: #096697;
        background: #e8f5fc;
        border-radius: 10px;
        padding: 2px 9px;
        font-variant-numeric: tabular-nums;
      }
      .clmodal .cl-none {
        margin: 8px 4px;
        font-size: 0.8rem;
        color: #605e5e;
      }

      button.addrowbtn {
        width: 100%;
        margin-top: 4px;
        padding: 9px;
        border: 1px dashed rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        background: transparent;
        color: #fff;
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
        font-weight: 600;
        font-size: 0.8rem;
        cursor: pointer;
        opacity: 0.85;
      }
      button.addrowbtn:hover {
        background: rgba(255, 255, 255, 0.08);
        opacity: 1;
      }
      .eqtotals {
        margin: 9px 0 2px;
        padding: 9px 11px;
        border-radius: 8px;
        background: rgba(27, 117, 187, 0.16);
        border: 1px solid rgba(127, 189, 232, 0.28);
        font-size: 0.74rem;
        line-height: 1.55;
      }
      .eqtotals b {
        font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
      }
      .togglerow {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 9px 0 2px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
      }
      #panel .togglerow input {
        width: 15px;
        height: 15px;
        flex: none;
        margin: 0;
        accent-color: var(--blue);
      }

      /* ================= EDIT MODE ================= */
      body.edit-mode #deck [contenteditable="true"] {
        cursor: text;
        border-radius: 3px;
        outline: 1px dashed transparent;
        transition:
          outline-color 0.12s,
          background-color 0.12s;
      }
      body.edit-mode #deck [contenteditable="true"]:hover {
        outline-color: rgba(27, 117, 187, 0.5);
        background: rgba(27, 117, 187, 0.05);
      }
      body.edit-mode #deck [contenteditable="true"]:focus {
        outline: 1.5px solid var(--blue);
        outline-offset: 1px;
        background: rgba(27, 117, 187, 0.07);
      }
      body.edit-mode #deck [data-bind] {
        outline: 1px dotted rgba(235, 104, 52, 0.55);
        border-radius: 2px;
      }

      /* Sizing advisory in the Quote Builder. Loud on purpose: the rep needs
         to see this while filling the panel, not discover it in the exported
         PDF. Uses the brand orange darkened for contrast on the dark panel. */
      #panel .sizewarn {
        background: rgba(235, 104, 52, 0.16);
        border: 1px solid #eb6834;
        border-left-width: 3px;
        border-radius: 6px;
        padding: 9px 11px;
        margin: 0 0 10px;
        font-size: 11.5px;
        line-height: 1.5;
        color: #ffd9c8;
      }
      #panel .sizewarn[hidden] {
        display: none;
      }

      #deck {
        margin-left: var(--panel-w);
        padding: 30px 0 60px;
      }

      /* ---- Resize handle -------------------------------------------------
         The panel is position:fixed and scrolls its own content, so the grip
         cannot live inside it: it would scroll away with the fields. It is
         fixed to the panel's right edge instead and pulled half its width
         back over the seam, so the hit area straddles the boundary the way a
         window divider does. Invisible until approached, because it is a
         convenience for the rep, not a feature of the document. */
      .grip {
        position: fixed;
        top: 0;
        left: var(--panel-w);
        margin-left: -4px;
        width: 8px;
        height: 100vh;
        z-index: 61;
        cursor: col-resize;
        touch-action: none;
      }
      .grip::after {
        content: "";
        position: absolute;
        inset: 0 3px;
        background: transparent;
        transition: background 0.12s ease;
      }
      .grip:hover::after,
      body.dragging .grip::after {
        background: var(--cyan);
      }
      /* A drag that crosses the slides must not select their text, and the
         cursor has to stay col-resize the whole way across. */
      body.dragging {
        cursor: col-resize;
        user-select: none;
      }

      /* Below the breakpoint the panel is hidden entirely, so there is no
         edge left to drag. */
      @media screen and (max-width: 1080px) {
        .grip {
          display: none;
        }
      }
      @media print {
        .grip {
          display: none;
        }
      }


/* Marks a Quote Builder field that is deriving itself from the site load.
   Click to hand a field the rep has taken over back to the calculation. */
.autotag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 5px;
  cursor: pointer;
  background: rgba(75, 189, 237, 0.18);
  color: #4bbded;
  border: 1px solid rgba(75, 189, 237, 0.4);
}
.autotag.manual {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Info icons on the Quote Builder ==============================
   Same affordance as the client-facing calculator: a small circled i
   beside a label, hover or keyboard-focus for a floating explanation.
   The panel is the rep's surface, so these say what a figure drives and
   where it came from, not just what it is. Screen only — #panel is
   already hidden in print, so no print rules are needed here. */
.qinfo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.62rem;
  font-weight: 700;
  font-style: normal;
  font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  vertical-align: 1px;
}
.qinfo:hover,
.qinfo:focus {
  border-color: #fff;
  color: #fff;
  outline: none;
}
#qttip {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0b1a22;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-size: 0.75rem;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
#qttip.on {
  opacity: 1;
}
#qttip strong {
  color: #fff;
}

/* Which slides a section drives. The panel is filled top to bottom while the
   deck is reviewed slide by slide, so naming the destination makes an empty
   field obvious before it reaches a client rather than after. */
.secfeeds {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.55;
  margin-left: 6px;
  white-space: nowrap;
}

/* A field that only applies once a particular supply is chosen. Indented and
   ruled so it reads as belonging to the selector above it, rather than as
   another independent input the rep has to reason about. */
.subfield {
  margin-left: 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(75, 189, 237, 0.28);
}

/* Unit toggles for the load table. Set per column for the whole table, not
   per row: a site's data comes from one source. */
.unitrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 2px;
}
.unitlab {
  font-size: 0.68rem;
  opacity: 0.75;
  white-space: nowrap;
}
.unitbtns {
  display: flex;
  gap: 4px;
}
.unitbtns button {
  flex: 1;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.64rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.unitbtns button.on {
  background: #4bbded;
  border-color: #4bbded;
  color: #06263a;
}

/* Each row states whether its figures were measured or assumed. Replaces a
   tick box, because entering kWh/day or logged amps IS the evidence. */
.eqconf {
  font-size: 0.62rem;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  display: inline-block;
}
.eqconf.eq-confirmed {
  background: rgba(75, 189, 237, 0.16);
  color: #9fdcf5;
}
.eqconf.eq-partial {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}
.eqconf.eq-estimated {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
}

/* A peak inside the tolerance band is a "confirm this", not the same alarm
   as one nothing in the range can carry. */
.sizewarn.warn-band {
  background: rgba(201, 163, 78, 0.16);
  border-color: rgba(201, 163, 78, 0.45);
  color: #e8cf95;
}
