/* Public /custom page (marketing.custom and the letter landing page), scoped to .cp.
   House style tokens, type, buttons and product window match
   public/feature-page/feature-page.css, so the page reads as part of the
   homepage and feature page family. The .cw block is the comparison stage:
   a calm drawing of what an example firm sent us beside the module we built.
   The drawings are laid out at 1440x900 (390x585 on phones) and scaled by
   custom-page.js to cover the stage, at the same density as the captures.
   Copy and layout edits need no build. */
.cp {
    --ground: #f6f7f8;
    --silver: #eef1f4;
    --band: #eaeef1;
    --ink: #191b22;
    --ink-2: #2d323c;
    --muted: #626777;
    --faint: #8a909c;
    --line: #e2e6eb;
    --line-2: #d3d9e0;
    --slate: #1d2532;
    --green: #286c4c;
    --accent: linear-gradient(90deg, #3b82f6, #06b6d4 55%, #6366f1);
    --shadow-tile: 0 1px 2px #1c1f2a12, 0 12px 28px -10px #1c1f2a30;
    --shadow-panel: 0 1px 1px #1c1f2a0a, 0 2px 6px #1c1f2a08, 0 30px 70px -28px #1c1f2a45;
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 56px);
    --section: clamp(80px, 9vw, 136px);
    --ease: cubic-bezier(.22, 1, .36, 1);
    background: var(--ground);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
:where(.cp) :where(h1, h2, h3, h4, p, figure, ul, ol, dl, dd, fieldset) { margin: 0; }
:where(.cp) :where(ul, ol) { padding: 0; list-style: none; }
.cp :focus-visible { outline: 2px solid #3b6fd9; outline-offset: 3px; border-radius: 6px; }
.cp [x-cloak] { display: none !important; }
.cp img { max-width: 100%; }
.cp-wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.cp-section { padding-block: var(--section); }
.cp-section[id] { scroll-margin-top: 96px; }
.cp-section-flush { padding-top: 0; }
.cp-band { background: #fff; border-block: 1px solid var(--line); }
.cp-centre { text-align: center; }
.cp-centre .cp-lead, .cp-centre .cp-body { margin-inline: auto; }

/* Type */
.cp-title { font-size: clamp(44px, 6.4vw, 96px); font-weight: 600; letter-spacing: -.055em; line-height: .96; text-wrap: balance; }
.cp-h2 { font-size: clamp(32px, 3.6vw, 54px); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.cp-h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.cp-lead { max-width: 36em; font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.025em; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.cp-body { max-width: 38em; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.cp-small { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Controls */
.cp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cp-centre .cp-actions, .cp-centre .cp-reassure { justify-content: center; }
.cp-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); box-shadow: 0 1px 2px #1c1f2a26, 0 10px 24px -12px #1c1f2a80; }
.cp-button:hover { background: #2a2d37; transform: translateY(-1px); }
.cp-button > span { transition: transform .25s var(--ease); }
.cp-button:hover > span { transform: translateX(3px); }
.cp-button-quiet { background: #ffffffc7; color: var(--ink); border-color: #cfd5dc; box-shadow: 0 1px 2px #1c1f2a0f; }
.cp-button-quiet:hover { background: #fff; border-color: #aeb6c0; }
.cp-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: #c4cad2; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cp-link:hover { text-decoration-color: currentColor; }
.cp-reassure { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.cp-reassure span { display: inline-flex; align-items: center; gap: 7px; }
.cp-tick { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* Pills, as in the feature page Product / Walkthrough switch */
.cp-pills { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border-radius: 999px; background: #e9edf1; border: 1px solid var(--line); }
.cp-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 7px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.cp-pill:hover { color: var(--ink); }
.cp-pill[aria-pressed='true'], .cp-pill[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px #1c1f2a14, 0 4px 12px -6px #1c1f2a33; }
.cp-pill .cp-icon { width: 32px; height: 32px; border-radius: 10px; box-shadow: none; }
.cp-pill .cp-icon svg { width: 16px; height: 16px; }
.cp-pill[aria-pressed='true'] .cp-icon, .cp-pill[aria-selected='true'] .cp-icon { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Icon tile: one neutral style for every module */
.cp-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff; color: var(--ink); border: 1px solid #e6e9ee; box-shadow: var(--shadow-tile); flex-shrink: 0; }
.cp-icon svg { width: 21px; height: 21px; }
.cp-icon-dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product window: the light browser frame used on the feature pages */
.cp-window { position: relative; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #dfe4ea; box-shadow: var(--shadow-panel); }
.cp-window-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #f3f5f7; border-bottom: 1px solid #e4e8ec; }
.cp-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dae0; }
.cp-window-url { margin-inline: auto; padding: 4px 14px; border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--muted); border: 1px solid #e6e9ee; transform: translateX(-20px); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-window-media { display: block; width: 100%; height: auto; }

/* Shared lower page */
.cp-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.cp-head .cp-body { margin-top: 16px; }
.cp-centre.cp-head { margin-inline: auto; }

.cp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cp-step { padding: 26px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.cp-step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--silver); color: var(--ink); font-size: 14px; font-weight: 600; }
.cp-step .cp-h3 { margin-top: 18px; }
.cp-step p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }

.cp-brief { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cp-brief-copy { position: sticky; top: 120px; }
.cp-brief-copy .cp-body { margin-top: 18px; }
.cp-brief-list { display: grid; gap: 12px; margin-top: 28px; font-size: 16px; color: var(--ink-2); }
.cp-brief-list li { display: flex; gap: 10px; align-items: flex-start; }
.cp-brief-list .cp-tick { width: 18px; height: 18px; margin-top: 3px; }
.cp-brief-card { padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-panel); }

.cp-asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-ask { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 16px; font-weight: 500; }
.cp-ask .cp-icon { width: 38px; height: 38px; border-radius: 11px; box-shadow: none; background: var(--silver); border-color: transparent; }
.cp-ask .cp-icon svg { width: 18px; height: 18px; }
.cp-asks-more { margin-top: 22px; font-size: 16px; color: var(--muted); }

.cp-connect { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cp-connect .cp-body { margin-top: 18px; }
.cp-connect-list { display: grid; gap: 14px; }
.cp-connect-item { display: flex; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.cp-connect-item p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

.cp-price { max-width: 980px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-panel); }
.cp-price-main { padding: clamp(28px, 4vw, 48px); background: var(--slate); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.cp-price-figure { font-size: clamp(56px, 6vw, 80px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.cp-price-figure small { font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: #aab3c2; }
.cp-price-main p { font-size: 15.5px; line-height: 1.55; color: #c3cad6; }
.cp-price-main .cp-price-note { margin-top: 14px; }
.cp-price-main .cp-button { background: #fff; color: var(--ink); border-color: #fff; align-self: flex-start; }
.cp-price-main .cp-button:hover { background: #e9edf1; }
.cp-price-detail { padding: clamp(28px, 4vw, 48px); display: grid; gap: 28px; }
.cp-price-detail h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.cp-price-detail ul { display: grid; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.cp-price-detail li { display: flex; gap: 10px; align-items: flex-start; }
.cp-price-detail .cp-tick { width: 18px; height: 18px; margin-top: 1px; }
.cp-price-detail .cp-notes li { color: var(--muted); }
.cp-price-detail .cp-notes li::before { content: ''; flex: none; width: 5px; height: 5px; margin: 9px 6px 0; border-radius: 50%; background: var(--faint); }

.cp-faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line-2); }
.cp-faq details { border-bottom: 1px solid var(--line-2); }
.cp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: transform .25s var(--ease); }
.cp-faq details[open] summary::after { transform: rotate(45deg); }
.cp-faq details p { padding: 0 48px 26px 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.cp-close { background: #fff; border-top: 1px solid var(--line); text-align: center; }
.cp-close .cp-h2 { max-width: 18ch; margin-inline: auto; }
.cp-close .cp-body { margin: 18px auto 0; }
.cp-close .cp-actions { justify-content: center; margin-top: 34px; }

/* The real brief form, in house style */
.cp .cc-form { display: grid; gap: 22px; }
.cp .cc-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cp .cc-field { display: grid; gap: 8px; }
.cp .cc-label, .cp .cc-contact-heading { font-size: 15px; font-weight: 600; color: var(--ink); }
.cp .cc-contact { border: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.cp .cc-contact-heading { padding: 0; margin-bottom: 4px; }
.cp .cc-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp .cc-input, .cp .cc-textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; transition: border-color .2s, background .2s, box-shadow .2s; }
.cp .cc-textarea { resize: vertical; min-height: 150px; }
.cp .cc-input::placeholder, .cp .cc-textarea::placeholder { color: #8a909c; }
.cp .cc-input:focus, .cp .cc-textarea:focus { outline: none; background: #fff; border-color: #9fb3cc; box-shadow: 0 0 0 4px #dce6f3; }
.cp .cc-starters { display: grid; gap: 10px; margin-top: 4px; }
.cp .cc-starters-hint { font-size: 14px; color: var(--muted); }
.cp .cc-starters-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cp .cc-starter { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.cp .cc-starter:hover { border-color: #aeb6c0; background: var(--ground); }
.cp .cc-file { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--ground); cursor: pointer; transition: border-color .2s, background .2s; }
.cp .cc-file:hover { border-color: #aeb6c0; background: #fff; }
.cp .cc-file:focus-within { border-color: #3b6fd9; }
.cp .cc-file-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: #fff; border: 1px solid #e6e9ee; box-shadow: var(--shadow-tile); }
.cp .cc-file-icon svg { width: 20px; height: 20px; }
.cp .cc-file-text { display: grid; gap: 3px; min-width: 0; }
.cp .cc-file-title { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.cp .cc-file-hint { font-size: 14px; color: var(--muted); }
.cp .cc-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cp .cc-submit { justify-self: start; display: inline-flex; align-items: center; min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; box-shadow: 0 1px 2px #1c1f2a26, 0 10px 24px -12px #1c1f2a80; transition: background .25s var(--ease); }
.cp .cc-submit:hover { background: #2a2d37; }
.cp .cc-legal { font-size: 13.5px; color: var(--muted); }
.cp .cc-legal a { color: inherit; text-underline-offset: 3px; }
.cp .cc-error { font-size: 14px; color: #b42318; }
.cp .cc-alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; background: #fef3f2; color: #b42318; font-size: 15px; }
.cp .cc-success { display: grid; gap: 10px; padding: 8px 0; }
.cp .cc-success h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.cp .cc-success p { font-size: 16.5px; line-height: 1.6; color: var(--muted); }

@media (max-width: 1024px) {
    .cp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-asks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-brief, .cp-connect { grid-template-columns: 1fr; }
    .cp-brief-copy { position: static; }
}
@media (max-width: 720px) {
    .cp-price { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cp-steps, .cp-asks { grid-template-columns: 1fr; }
    .cp .cc-contact-grid { grid-template-columns: 1fr; }
    .cp-button { width: 100%; }
    .cp-actions { width: 100%; }
    .cp-faq details p { padding-right: 0; }
    .cp-connect-item { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .cp *, .cp *::before, .cp *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Comparison stage */
/* Hero, as on the feature pages */
.cw .cw-hero { padding-top: clamp(40px, 5vw, 76px); }
.cw .cw-title { max-width: 13em; margin-inline: auto; font-size: clamp(42px, 5.4vw, 84px); letter-spacing: -.05em; }
.cw .cw-lead { max-width: 31em; margin: clamp(20px, 2vw, 28px) auto 0; }
.cw .cw-actions { margin-top: 32px; }
.cw .cw-reassure { margin-top: 18px; }

/* The stage sits half on the ground, half on the slate band */
.cw .cw-show { position: relative; margin-top: clamp(52px, 5.5vw, 80px); padding-bottom: clamp(72px, 7.5vw, 112px); }
.cw .cw-show::before { content: ''; position: absolute; inset: clamp(220px, 24vw, 360px) 0 0; background: var(--slate); }
.cw .cw-show > * { position: relative; }
.cw .cw-compare { max-width: 1160px; margin-inline: auto; }

.cw .cw-labels { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-inline: 6px; }
.cw .cw-label { font-size: 16px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.cw .cw-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.cw .cw-hint svg { width: 16px; height: 16px; }
.cw .cw-toggle-row { display: none; }

.cw .cw-window { border-color: #ffffff1f; box-shadow: 0 50px 120px -40px #0009, 0 0 0 1px #0000000d; }

.cw .cw-stage {
    --split: 50%;
    --pen: #2c4a7c;
    --paper-line: #e6eaf0;
    --type: #2d323c;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #fff;
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.cw .cw-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.cw .cw-pane[data-active] { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.cw .cw-built, .cw .cw-built img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cw .cw-built img { max-width: none; object-fit: cover; object-position: left top; }
.cw .cw-sent { position: absolute; inset: 0; overflow: hidden; background: #fff; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.cw .cw-art { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; transform-origin: 0 0; color: var(--type); font-size: 14px; letter-spacing: -.005em; }
.cw .cw-art p { margin: 0; }

.cw .cw-divider { position: absolute; top: 0; bottom: 0; left: var(--split); z-index: 3; display: flex; align-items: center; justify-content: center; width: 48px; margin-left: -24px; cursor: ew-resize; }
.cw .cw-divider::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px #1c1f2a14, 0 0 18px #1c1f2a3d; }
.cw .cw-handle { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 0 0 4px #fff, 0 12px 26px -8px #1c1f2a8c; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cw .cw-handle svg { width: 22px; height: 22px; }
.cw .cw-divider:hover .cw-handle, .cw .cw-stage.is-dragging .cw-handle { transform: scale(1.06); }
.cw .cw-divider:focus-visible { outline: none; }
.cw .cw-divider:focus-visible .cw-handle { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #3b6fd9, 0 12px 26px -8px #1c1f2a8c; }
.cw .cw-stage.is-animating .cw-sent { transition: clip-path .5s var(--ease); }
.cw .cw-stage.is-animating .cw-divider { transition: left .5s var(--ease); }

/* Under the stage, on the slate band */
.cw .cw-below { margin-top: 32px; text-align: center; color: #fff; }
.cw .cw-examples { background: #ffffff12; border-color: #ffffff1f; }
.cw .cw-examples .cp-pill { color: #c3cad6; }
.cw .cw-examples .cp-pill:hover { color: #fff; }
.cw .cw-examples .cp-pill[aria-pressed='true'] { background: #fff; color: var(--ink); }
.cw .cw-examples .cp-icon { border-color: transparent; }
.cw .cw-caption { max-width: 980px; margin: 40px auto 0; }
.cw .cw-firm { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1.3; color: #fff; text-wrap: balance; }
.cw .cw-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; margin-top: 30px; text-align: left; }
.cw .cw-columns > div { padding-top: 20px; border-top: 1px solid #ffffff24; }
.cw .cw-columns h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; color: #fff; }
.cw .cw-columns p { margin-top: 8px; font-size: 16.5px; line-height: 1.6; color: #b9c1cd; text-wrap: pretty; }
.cw .cw-note { max-width: 52em; margin: 40px auto 0; font-size: 14px; line-height: 1.5; color: #8d97a8; }

/* Drawings: shared */
.cw .cw-pen { color: var(--pen); font-weight: 500; }
.cw .cw-strong { font-weight: 600; }
.cw .cw-soft { opacity: .72; }
.cw .cw-r { text-align: right; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.cw .cw-photo { position: absolute; z-index: 2; background: #fff; border: 1px solid #dfe4ea; border-radius: 12px; box-shadow: 0 1px 2px #1c1f2a12, 0 24px 48px -22px #1c1f2a47; }

/* Spreadsheet */
.cw .cw-sheet { display: flex; flex-direction: column; background: #fff; }
.cw .cw-sheet-bar { display: flex; align-items: center; gap: 12px; flex: none; height: 46px; padding: 0 18px; background: #f7f8fa; border-bottom: 1px solid #e6e9ee; }
.cw .cw-file-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid #e3e7ec; color: var(--pen); }
.cw .cw-file-icon svg { width: 17px; height: 17px; }
.cw .cw-file-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.cw .cw-file-by { margin-left: auto; font-size: 13px; color: var(--faint); }
.cw .cw-sheet-formula { display: flex; align-items: stretch; flex: none; height: 34px; border-bottom: 1px solid #e6e9ee; font-size: 13.5px; }
.cw .cw-namebox, .cw .cw-fx { display: flex; align-items: center; padding: 0 14px; border-right: 1px solid #e6e9ee; color: var(--muted); }
.cw .cw-namebox { width: 78px; }
.cw .cw-fx { font-weight: 600; color: var(--faint); }
.cw .cw-formula-text { display: flex; align-items: center; padding-left: 14px; white-space: nowrap; }
.cw .cw-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--cols); grid-template-rows: 26px; grid-auto-rows: 30px; align-content: start; overflow: hidden; }
.cw .cw-corner, .cw .cw-colhead, .cw .cw-rowhead { display: grid; place-items: center; background: #f3f5f7; font-size: 12px; color: var(--faint); }
.cw .cw-corner, .cw .cw-colhead { border-right: 1px solid #e3e7ec; border-bottom: 1px solid #dfe4ea; }
.cw .cw-rowhead { border-right: 1px solid #dfe4ea; border-bottom: 1px solid #e9ecf0; }
.cw .cw-colhead.is-sel, .cw .cw-rowhead.is-sel { background: #e4eaf3; color: var(--pen); font-weight: 600; }
.cw .cw-cell { display: block; padding: 0 10px; line-height: 29px; border-right: 1px solid #eef1f4; border-bottom: 1px solid #eef1f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw .cw-cell[style*='--s'] { grid-column: span var(--s); }
.cw .c-b { font-weight: 600; color: var(--ink); }
.cw .c-t { font-size: 15px; }
.cw .c-h { background: #f7f8fa; }
.cw .c-r { text-align: right; font-variant-numeric: tabular-nums; }
.cw .c-m { color: var(--faint); }
.cw .c-tint { background: #eef3fa; }
.cw .c-sel { position: relative; box-shadow: inset 0 0 0 2px var(--pen); }
.cw .c-sel::after { content: ''; position: absolute; right: 0; bottom: 0; width: 6px; height: 6px; background: var(--pen); }
.cw .cw-sheet-tabs { display: flex; flex: none; height: 38px; padding-left: 44px; background: #f7f8fa; border-top: 1px solid #e3e7ec; font-size: 13px; }
.cw .cw-tab { display: flex; align-items: center; padding: 0 18px; color: var(--muted); border-right: 1px solid #e9ecf0; }
.cw .cw-tab.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--pen); }

/* Vehicle wall planner, attached as a photo */
.cw .cw-planner { right: 36px; bottom: 58px; width: 624px; padding: 18px 20px 20px; }
.cw .cw-planner-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.cw .cw-planner-title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.cw .cw-photo-note { font-size: 12.5px; color: var(--faint); }
.cw .cw-planner-grid { display: grid; grid-template-columns: 76px repeat(7, minmax(0, 1fr)); grid-template-rows: 26px; grid-auto-rows: 29px; border-top: 1px solid #e3e7ec; border-bottom: 1px solid #e3e7ec; }
.cw .cw-planner-corner { grid-row: 1; grid-column: 1; }
.cw .cw-planner-col { grid-row: 1 / 10; border-left: 1px solid #e3e7ec; }
.cw .cw-planner-col.is-weekend { background: #f6f7f9; }
.cw .cw-planner-day { grid-row: 1; align-self: center; font-size: 11.5px; color: var(--muted); text-align: center; }
.cw .cw-planner-reg { grid-column: 1; align-self: center; font-size: 12px; font-weight: 600; color: var(--type); }
.cw .cw-strip { z-index: 1; display: flex; align-items: center; margin: 3px 3px; padding: 0 6px; border-radius: 5px; background: var(--pen); color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.cw .cw-strip.is-p { background: #fff; color: var(--pen); border: 1.5px dashed var(--pen); }
.cw .cw-strip.is-o { background: #e3e7ec; color: var(--muted); }

/* Changeover record, attached as a photo */
.cw .cw-form { top: 98px; right: 40px; width: 420px; padding: 22px 24px 16px; }
.cw .cw-form-title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.cw .cw-form-sub { margin-top: 4px; font-size: 13px; color: var(--faint); }
.cw .cw-form-table { display: grid; grid-template-columns: 66px 54px 64px minmax(0, 1fr) 64px; grid-auto-rows: 34px; margin-top: 14px; }
.cw .cw-form-table > span { display: flex; align-items: center; border-bottom: 1px solid var(--paper-line); font-size: 15px; }
.cw .cw-form-table > span:nth-child(5n) { padding-left: 18px; }
.cw .cw-form-th { font-size: 12.5px !important; font-weight: 500; color: var(--faint); border-bottom-color: #cfd5dc !important; }

/* Book pages and a certificate on the desk */
.cw .cw-desk { background: #eef1f4; }
.cw .cw-page { position: absolute; background: #fff; border: 1px solid #e3e7ec; border-radius: 6px; box-shadow: 0 1px 2px #1c1f2a14, 0 18px 40px -24px #1c1f2a47; overflow: hidden; }
.cw .cw-page-charge { left: 32px; top: 36px; width: 560px; height: 828px; }
.cw .cw-page-hardness { left: 620px; top: 52px; width: 384px; height: 800px; }
.cw .cw-cert { left: 1032px; top: 40px; width: 376px; height: 640px; padding: 26px 28px; }
.cw .cw-page-head { display: flex; justify-content: space-between; padding: 18px 24px 10px; border-bottom: 1px solid #d9dee5; font-size: 13px; font-weight: 600; color: var(--faint); }
.cw .cw-lined { padding: 0 24px; }
.cw .cw-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; height: 34px; padding-bottom: 6px; border-bottom: 1px solid var(--paper-line); font-size: 15.5px; white-space: nowrap; }
.cw .cw-line.cw-cols { display: grid; grid-template-columns: 76px minmax(0, 1fr) 140px 36px; }
.cw .cw-line.cw-cols3 { display: grid; grid-template-columns: 70px minmax(0, 1fr) 120px; }
.cw .cw-line > span { overflow: hidden; text-overflow: ellipsis; }
.cw .cw-printed > span { font-size: 12.5px; font-weight: 500; color: var(--faint); }
.cw .cw-pen-tick { display: inline-block; width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px; }
.cw .cw-page-no { position: absolute; right: 24px; bottom: 14px; font-size: 12px; color: var(--faint); }
.cw .cw-cert-firm { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.cw .cw-cert-title { display: flex; justify-content: space-between; margin-top: 4px; padding-bottom: 14px; border-bottom: 1px solid #cfd5dc; font-size: 13.5px; color: var(--muted); }
.cw .cw-cert-fields { display: grid; margin: 6px 0 0; }
.cw .cw-cert-fields > div { padding: 10px 0 8px; border-bottom: 1px solid var(--paper-line); }
.cw .cw-cert-fields dt { font-size: 12px; color: var(--faint); }
.cw .cw-cert-fields dd { min-height: 22px; margin: 3px 0 0; font-size: 16px; }

/* Office whiteboard */
.cw .cw-wall { background: #e8ebef; }
.cw .cw-board { position: absolute; top: 30px; left: 44px; right: 44px; height: 800px; padding: 26px 34px; border: 12px solid #d6dce3; border-radius: 10px; background: linear-gradient(160deg, #fff, #f8f9fa 55%, #fdfdfe); box-shadow: 0 0 0 1px #bfc7d1, inset 0 0 0 1px #c9d0d8, 0 22px 44px -26px #1c1f2a66; }
.cw .cw-board-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.cw .cw-board-title { font-size: 34px; font-weight: 600; letter-spacing: -.025em; }
.cw .cw-board-note { font-size: 16px; }
.cw .cw-board-grid { display: grid; grid-template-columns: 330px 320px 320px minmax(0, 1fr); }
.cw .cw-bh, .cw .cw-bc { border-left: 3px solid #cbd2da; }
.cw .cw-b1 { border-left: 0; }
.cw .cw-bh { padding: 4px 18px 12px; border-bottom: 3px solid #cbd2da; font-size: 20px; font-weight: 600; }
.cw .cw-bh.cw-b1, .cw .cw-bc.cw-b1 { padding-left: 4px; }
.cw .cw-bc { display: flex; flex-direction: column; gap: 3px; min-height: 118px; padding: 16px 18px; border-bottom: 2px solid #e1e5ea; font-size: 18px; }
.cw .cw-bc b { font-size: 21px; font-weight: 600; }
.cw .cw-tray { position: absolute; top: 830px; left: 50%; width: 520px; height: 14px; margin-left: -260px; border-radius: 0 0 8px 8px; background: #cdd3da; box-shadow: 0 8px 14px -8px #1c1f2a59; }
.cw .cw-tray i { position: absolute; top: -9px; width: 120px; height: 11px; border-radius: 6px; background: #3a4150; }
.cw .cw-tray i:first-child { left: 120px; background: var(--pen); }
.cw .cw-tray i:last-child { left: 270px; }

/* Tablet */
@media (max-width: 1023px) {
    .cw .cw-hint { display: none; }
}

/* Phone: a two-way toggle replaces dragging, and the drawings switch to
   their 390x585 layout */
@media (max-width: 759px) {
    .cw .cw-labels { display: none; }
    .cw .cw-toggle-row { display: flex; justify-content: center; margin-bottom: 14px; }
    .cw .cw-toggle .cp-pill { padding: 0 18px; }
    .cw .cw-show::before { top: 240px; }
    .cw .cw-stage { aspect-ratio: 2 / 3; cursor: default; touch-action: auto; }
    .cw .cw-divider { display: none; }
    .cw .cw-art { width: 390px; height: 585px; font-size: 13px; }

    .cw .cw-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 26px; }
    .cw .cw-examples .cp-pill { padding-right: 12px; font-size: 14.5px; }
    .cw .cw-caption { margin-top: 30px; }
    .cw .cw-columns { grid-template-columns: 1fr; gap: 20px; margin-top: 22px; }
    .cw .cw-columns p { font-size: 16px; }
    .cw .cw-note { margin-top: 28px; }

    .cw .cw-wide, .cw .cw-hide-m, .cw .cw-file-by, .cw .cw-planner { display: none; }
    .cw .cw-sheet-bar { height: 42px; padding: 0 12px; gap: 10px; }
    .cw .cw-file-name { font-size: 14px; }
    .cw .cw-sheet-formula { height: 32px; font-size: 12.5px; }
    .cw .cw-namebox { width: 58px; padding: 0 10px; }
    .cw .cw-fx { padding: 0 10px; }
    .cw .cw-formula-text { padding-left: 10px; }
    .cw .cw-grid { grid-template-columns: var(--cols-m); grid-template-rows: 24px; grid-auto-rows: 28px; }
    .cw .cw-cell { padding: 0 7px; line-height: 27px; }
    .cw .cw-cell[style*='--s'] { grid-column: span var(--ms); }
    .cw .c-t { font-size: 13.5px; }
    .cw .cw-sheet-tabs { height: 34px; padding-left: 34px; font-size: 12px; }
    .cw .cw-tab { padding: 0 12px; }
    .cw .cw-form { top: auto; right: 12px; bottom: 46px; left: 12px; width: auto; padding: 14px 14px 8px; }
    .cw .cw-form-title { font-size: 15px; }
    .cw .cw-form-sub { font-size: 12px; }
    .cw .cw-form-table { grid-template-columns: 52px 42px 50px minmax(0, 1fr) 46px; grid-auto-rows: 26px; margin-top: 8px; }
    .cw .cw-form-table > span { font-size: 13px; }
    .cw .cw-form-table > span:nth-child(5n) { padding-left: 14px; }
    .cw .cw-form-th { font-size: 11.5px !important; }
    .cw .cw-form-sub, .cw .cw-form-table > .cw-form-blank, .cw .cw-page-no { display: none; }

    .cw .cw-page-charge { top: 12px; left: 12px; width: 366px; height: 360px; }
    .cw .cw-page-hardness { top: 388px; left: 12px; width: 366px; height: 300px; }
    .cw .cw-cert { display: none; }
    .cw .cw-page-head { padding: 12px 16px 8px; font-size: 12px; }
    .cw .cw-lined { padding: 0 16px; }
    .cw .cw-line { height: 29px; padding-bottom: 5px; font-size: 13.5px; }
    .cw .cw-line.cw-cols { grid-template-columns: 70px minmax(0, 1fr) 34px; }
    .cw .cw-line.cw-cols3 { grid-template-columns: 56px minmax(0, 1fr) 96px; }
    .cw .cw-printed > span { font-size: 11.5px; }

    .cw .cw-board { top: 12px; left: 8px; right: 8px; height: 538px; padding: 14px 10px; border-width: 8px; }
    .cw .cw-board-head { margin-bottom: 10px; }
    .cw .cw-board-title { font-size: 22px; }
    .cw .cw-board-note { font-size: 12px; }
    .cw .cw-board-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, .8fr); }
    .cw .cw-bh, .cw .cw-bc { border-left-width: 2px; }
    .cw .cw-bh { padding: 2px 6px 7px; border-bottom-width: 2px; font-size: 13px; }
    .cw .cw-bc { min-height: 0; padding: 9px 6px; gap: 1px; border-bottom-width: 1px; font-size: 12.5px; }
    .cw .cw-bc b { font-size: 14px; }
    .cw .cw-bc > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cw .cw-bc.cw-b4 > * { white-space: normal; }
    .cw .cw-bh.cw-b1, .cw .cw-bc.cw-b1 { padding-left: 2px; border-left: 0; }
    .cw .cw-tray { top: 549px; width: 220px; height: 10px; margin-left: -110px; }
    .cw .cw-tray i { top: -7px; width: 64px; height: 8px; }
    .cw .cw-tray i:first-child { left: 34px; }
    .cw .cw-tray i:last-child { left: 116px; }
}

@media (max-width: 640px) {
    .cw .cw-reassure { display: grid; justify-content: center; justify-items: start; gap: 8px; }
    .cw .cw-firm { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .cw .cw-pane, .cw .cw-stage.is-animating .cw-sent, .cw .cw-stage.is-animating .cw-divider { transition: none; }
}
