/* installpro.app Workflow (and the apps front page and Workflow's sign-in):
   dark, bold text, a menu down the left, small lifts on hover. Colors come
   from the installpro.app design system's dark theme. */

:root {
  color-scheme: dark;
  --bg: #07111F;
  --panel: #101C2E;
  --panel-2: #0C1828;
  --line: #1E2D43;
  --border: #24344D;
  --border-strong: #3D5B7E;
  --field-border: #2B3B57;
  --ink: #F1F5F9;
  --muted: #94A3B8;
  --link: #7FB2FF;
  --blue: #1E5FD0;
  --teal: #2DD4BF;
  --green: #4ADE80;
  --amber: #FBBF24;
  --purple: #A78BFA;
  --red: #F87171;
  --shadow: 0 18px 45px rgba(0, 0, 0, .38), 0 0 26px rgba(30, 95, 208, .10);
  --side: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.wf {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% -8%, rgba(30, 95, 208, .28) 0, transparent 34%),
    radial-gradient(circle at 8% 108%, rgba(13, 148, 136, .16) 0, transparent 30%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 550;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
button, input, select, textarea { font: inherit; }
:where(.wf-side-nav, .wf-bar, .appsw, .wf-empty-icon, .wf-machine-icon, .app-icon) svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pages fade in, and fade between each other (Chrome, Edge). */
@view-transition { navigation: auto; }
@keyframes wfIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wf-page { animation: wfIn .32s ease both; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before { animation: none !important; transition: none !important; }
}

/* ---------- The brand ---------- */
.wf-word { font-weight: 800; letter-spacing: -.03em; }
.w-install { color: var(--ink); } .w-pro { color: var(--link); } .w-app { color: var(--teal); }
.wf-module { color: var(--link); font-weight: 750; }
.wf-test { background: #F59E0B; color: #1F1300; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }

/* ---------- Menu down the left ---------- */
body.wf-app { padding-left: var(--side); }
.wf-side-nav {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40;
  background: linear-gradient(180deg, #050D18, #0B1B30);
  border-right: 1px solid rgba(255, 255, 255, .06);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
}
.wf-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; text-decoration: none !important; }
.wf-brand .wf-word { display: block; font-size: 17px; line-height: 1.1; }
.wf-brand .wf-module { display: block; font-size: 13px; margin-top: 1px; letter-spacing: .02em; }
.wf-mark { border-radius: 9px; box-shadow: 0 6px 18px rgba(30, 95, 208, .35); }
.wf-space { margin: 0 2px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .035); border-radius: 10px; padding: 10px 12px; }
.wf-space small { display: block; color: #6F8AA7; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 3px; }
.wf-space b { display: block; font-size: 13px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-nav { display: grid; gap: 4px; }
.wf-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: #C7D6E8; font-weight: 650; font-size: 14px; text-decoration: none !important;
  transition: background .15s, color .15s, transform .15s;
}
.wf-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: translateX(2px); }
.wf-nav a.on { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: inset 3px 0 var(--teal); }
.wf-nav .ico { width: 20px; height: 20px; display: grid; place-items: center; flex: none; }
.wf-nav .ico svg { width: 19px; height: 19px; }
.wf-count { margin-left: auto; min-width: 20px; text-align: center; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--teal); color: #042F2E; }
.wf-tag { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: #78350F; color: #FCD34D; }
.wf-side-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 11px; color: #7891AE; }
.wf-menu { position: relative; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .09); margin-top: auto; }
.wf-side-meta + .wf-menu { margin-top: 0; }
.wf-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: 10px; }
.wf-menu summary:hover { background: rgba(255, 255, 255, .05); }
.wf-menu summary::-webkit-details-marker { display: none; }
.wf-who { min-width: 0; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-who small { display: block; color: #7891AE; font-weight: 550; font-size: 12px; }
.wf-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.wf-avatar { overflow: hidden; width: 32px; height: 32px; border-radius: 50%; flex: none; background: #DBEAFE; color: #1E40AF; display: grid; place-items: center; font-weight: 800; font-size: 11px; text-decoration: none !important; }
.wf-menu-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #0D1A2B; border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: grid; gap: 2px; animation: wfIn .18s ease both; }
.wf-menu-list a, .wf-menu-list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; color: #DCE8F8; padding: 9px 10px; font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: none !important; }
.wf-menu-list a:hover, .wf-menu-list button:hover { background: rgba(255, 255, 255, .07); }
.wf-menu-list form { margin: 0; }

/* the bar along the top of the page */
.wf-bar { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(8, 19, 33, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.wf-crumb-top { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wf-crumb-top b { color: var(--ink); font-weight: 750; }
.wf-bar-gap { margin-left: auto; }
.wf-icon-btn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: #0D1A2B; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .15s, transform .15s; }
.wf-icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.wf-menu-btn { display: none; }
.wf-scrim { display: none; }
.wf-support { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 8px 16px; background: #34230F; border-bottom: 1px solid #92400E; color: #FDE68A; font-size: 14px; }
.wf-support form { margin: 0; }

/* ---------- The app switcher ---------- */
.appsw { position: relative; }
.appsw summary { list-style: none; }
.appsw summary::-webkit-details-marker { display: none; }
.appsw-btn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: #0D1A2B; color: #C7D6E8; display: grid; place-items: center; cursor: pointer; transition: border-color .15s, transform .15s, color .15s; }
.appsw-btn:hover, .appsw[open] .appsw-btn { border-color: var(--border-strong); color: #fff; transform: translateY(-1px); }
.appsw-btn svg { fill: currentColor; stroke: none; }
.appsw-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: #0D1A2B; border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); display: grid; gap: 4px; z-index: 50; animation: wfIn .18s ease both; }
.appsw-title { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6F8AA7; padding: 6px 8px 4px; }
.appsw-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; transition: background .15s, transform .15s; }
.appsw-item:hover { background: rgba(255, 255, 255, .06); transform: translateX(2px); }
.appsw-item.here { background: rgba(255, 255, 255, .07); }
.appsw-item b { display: block; font-size: 14px; font-weight: 750; }
.appsw-item small { display: block; font-size: 12px; color: var(--muted); font-weight: 550; margin-top: 1px; }
.appsw-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .1); }
.appsw-icon svg { width: 19px; height: 19px; }
.appsw-item.workflow .appsw-icon { color: #93C5FD; background: rgba(30, 95, 208, .22); }
.appsw-item.deploy .appsw-icon { color: #5EEAD4; background: rgba(15, 118, 110, .28); }
.appsw-item.convert .appsw-icon { color: #FDBA74; background: rgba(180, 83, 9, .28); }
.appsw-all { display: block; text-align: center; font-size: 13px; font-weight: 700; padding: 8px; border-top: 1px solid var(--line); margin-top: 4px; }

/* ---------- Page ---------- */
.wf-page { max-width: 1240px; margin: 0 auto; padding: 28px 28px 56px; display: flex; flex-direction: column; gap: 18px; }
.wf-page.narrow { max-width: 780px; }
.wf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.wf-head h1 { font-size: 28px; line-height: 1.15; font-weight: 800; }
.wf-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.wf-head p b { color: var(--ink); font-weight: 650; }
.wf-hero {
  position: relative; overflow: hidden;
  border: 1px solid #294563; border-radius: 18px; padding: 24px 26px;
  background: linear-gradient(115deg, #101C2E 50%, #102E45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .25);
}
.wf-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .16), transparent 70%); pointer-events: none; }
.wf-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin: 0 0 6px !important; }
.wf-crumb { font-size: 13px; color: var(--muted); }
.wf-h1-sub { color: var(--muted); font-weight: 650; font-size: 20px; }

.wf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border: 0; border-radius: 10px; padding: 0 18px; background: linear-gradient(135deg, #2563EB, #1E5FD0); color: #fff; font-weight: 750; font-size: 14px; cursor: pointer; text-decoration: none !important; box-shadow: 0 8px 22px rgba(30, 95, 208, .32); transition: transform .18s, filter .18s, box-shadow .18s; position: relative; z-index: 1; }
.wf-btn:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 12px 28px rgba(30, 95, 208, .42); }
.wf-btn.secondary { background: #13233A; color: #DCE8F8; border: 1px solid #31445F; box-shadow: none; }
.wf-btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.wf-btn:disabled { opacity: .5; cursor: default; transform: none; filter: none; }
.wf-text-link { font-weight: 650; font-size: 14px; color: var(--muted); }

.wf-card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--panel); border: 1px solid var(--border); border-radius: 15px; padding: 18px 20px; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.wf-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.wf-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wf-muted { color: var(--muted); font-size: 14px; }
.wf-small { font-size: 13px; margin: 0; }
.wf-plain { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.wf-plain b { font-weight: 750; }
.wf-alert { border: 1px solid #92400E; background: #34230F; color: #FDE68A; border-radius: 10px; padding: 11px 14px; font-size: 14px; margin: 0; }
.wf-alert.ok { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .1); color: #D9FBE6; }

/* number cards */
.wf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.wf-stat {
  --c: var(--link); --tint: rgba(127, 178, 255, .14);
  position: relative; overflow: hidden; display: block; color: var(--ink); text-decoration: none !important;
  background: var(--panel); border: 1px solid var(--border); border-radius: 15px; padding: 16px 16px 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.wf-stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.wf-stat::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--tint), transparent 70%); }
.wf-stat:hover, .wf-lift:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.wf-stat label { display: block; font-size: 13px; color: var(--muted); cursor: inherit; }
.wf-stat strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 2px; color: var(--c); }
.wf-stat small { font-size: 12px; color: var(--muted); font-weight: 650; }
.wf-stat.blue { --c: #93C5FD; --tint: rgba(30, 95, 208, .30); }
.wf-stat.amber { --c: var(--amber); --tint: rgba(251, 191, 36, .18); }
.wf-stat.slate { --c: #E2E8F0; --tint: rgba(148, 163, 184, .16); }
.wf-stat.teal { --c: #5EEAD4; --tint: rgba(45, 212, 191, .2); }

.wf-empty-card { text-align: center; padding: 52px 24px; display: grid; justify-items: center; gap: 10px; }
.wf-empty-card p { max-width: 520px; margin: 0 0 8px; color: var(--muted); }
.wf-empty-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #93C5FD; background: linear-gradient(145deg, rgba(30, 95, 208, .35), rgba(13, 148, 136, .25)); border: 1px solid rgba(127, 178, 255, .3); box-shadow: 0 10px 30px rgba(30, 95, 208, .25); }
.wf-empty-icon svg { width: 28px; height: 28px; }
.wf-empty { text-align: center; color: var(--muted); padding: 24px; margin: 0; }

/* lists */
.wf-list { padding: 0; overflow: hidden; }
.wf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: background .15s, padding .15s; }
.wf-row:first-child { border-top: 0; }
.wf-row:hover { background: #13233A; padding-left: 26px; }
.wf-row-main { flex: 1 1 260px; min-width: 0; }
.wf-row-main b { font-weight: 750; }
.wf-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.wf-row-side { font-size: 13px; color: var(--muted); }
.wf-chev { color: var(--muted); font-size: 18px; transition: transform .15s; }
.wf-row:hover .wf-chev { transform: translateX(3px); color: var(--ink); }
.wf-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 750; padding: 3px 10px; border-radius: 99px; white-space: nowrap; vertical-align: 1px; }
.wf-pill.gray { color: #E2E8F0; background: rgba(148, 163, 184, .18); }
.wf-pill.amber { color: #FDE68A; background: rgba(251, 191, 36, .16); }
.wf-pill.blue { color: #C7DBFF; background: rgba(127, 178, 255, .16); }
.wf-pill.green { color: #BBF7D0; background: rgba(74, 222, 128, .14); }
.wf-list-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.wf-input, .wf-field input, .wf-field select, .wf-field textarea { height: 42px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); color: var(--ink); padding: 0 12px; font-size: 14px; font-weight: 550; width: 100%; transition: border-color .15s, box-shadow .15s; }
.wf-input { flex: 1 1 200px; width: auto; min-width: 0; }
.wf-input:focus, .wf-field input:focus, .wf-field select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(127, 178, 255, .2); }
.wf-field input[type="date"] { color-scheme: dark; }
.wf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-chip { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid var(--field-border); background: var(--panel-2); color: #C9D6E8; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.wf-chip:hover { border-color: var(--link); transform: translateY(-1px); }
.wf-chip.on { border-color: var(--link); background: rgba(127, 178, 255, .18); color: #fff; }
.wf-chip span { opacity: .75; }
#wf-rows .wf-row:first-child { border-top: 0; }
.wf-inst-name { flex: 1 1 200px; min-width: 0; }
.wf-inst-name b { font-weight: 750; font-size: 15.5px; }
.wf-inst-stage { flex: 1 1 170px; min-width: 0; }
.wf-inst-stage-name { display: block; font-size: 13px; font-weight: 650; }
.wf-inst-ready { flex: 0 0 56px; text-align: right; font-weight: 800; font-size: 17px; }
.wf-inst-turn { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.wf-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; margin-top: 6px; }
.wf-bars i { display: block; height: 6px; border-radius: 99px; background: var(--border); }
.wf-bars i.done { background: var(--green); }
.wf-bars i.now { background: var(--amber); box-shadow: 0 0 10px rgba(251, 191, 36, .45); }
.wf-bars.big { gap: 5px; margin: 0; }
.wf-bars.big i { height: 8px; }

/* forms */
.wf-form { display: flex; flex-direction: column; gap: 16px; }
.wf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wf-field.full { grid-column: 1 / -1; }
.wf-field label { display: block; font-size: 13px; font-weight: 700; color: #C7D6E8; margin-bottom: 6px; }
.wf-field label span { color: var(--muted); font-weight: 550; }
.wf-field small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.wf-tight { margin: -4px 0 12px; }
.wf-machines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.wf-machine { display: grid; grid-template-columns: 30px repeat(3, minmax(0, 1fr)) 34px; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); animation: wfIn .2s ease both; }
.wf-machine-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #93C5FD; background: rgba(30, 95, 208, .22); margin-bottom: 6px; }
.wf-remove { height: 42px; width: 34px; border: 1px solid var(--field-border); border-radius: 10px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.wf-remove:hover { color: var(--red); border-color: var(--red); }
.wf-actions { display: flex; align-items: center; gap: 16px; }

/* one installation */
.wf-turn { position: relative; overflow: hidden; border: 1px solid #294563; border-radius: 16px; padding: 18px 20px; background: linear-gradient(115deg, var(--panel) 52%, #102E45); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; box-shadow: 0 14px 38px rgba(0, 0, 0, .22); }
.wf-turn-what { flex: 1 1 300px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; }
.wf-turn-what b { font-weight: 750; }
.wf-turn-stages { flex: 1 1 380px; min-width: 0; }
.wf-stage-names { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-top: 6px; font-size: 11px; color: #6F829B; font-weight: 650; }
.wf-stage-names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-stage-names .now { color: var(--ink); font-weight: 800; }
.wf-split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.wf-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wf-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wf-machine-list { display: flex; flex-direction: column; gap: 10px; }
.wf-machine-card { border: 1px solid var(--line); border-radius: 13px; background: var(--panel-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; transition: transform .18s, border-color .18s, box-shadow .18s; }
.wf-machine-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.wf-machine-top { display: flex; gap: 12px; align-items: center; }
.wf-machine-top b { font-weight: 800; }
.wf-machine-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #5EEAD4; background: rgba(15, 118, 110, .28); border: 1px solid rgba(94, 234, 212, .2); }
.wf-machine-icon svg { width: 20px; height: 20px; }
.wf-machine-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.wf-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wf-step i { display: block; height: 8px; border-radius: 99px; background: var(--border); }
.wf-step span { display: block; font-size: 12px; margin-top: 6px; color: #6F829B; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-step.done i { background: var(--green); } .wf-step.done span { color: #E2E8F0; }
.wf-step.now i { background: var(--amber); box-shadow: 0 0 10px rgba(251, 191, 36, .45); } .wf-step.now span { color: var(--ink); font-weight: 750; }
.wf-ready strong { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.wf-meter { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 8px 0 10px; }
.wf-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.wf-contact { margin: 0; font-size: 14px; line-height: 1.6; }
.wf-contact b { font-weight: 750; }

/* ---------- installpro.app front page (the apps) ---------- */
.apps-top { max-width: 1180px; margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.apps-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; font-size: 21px; }
.apps-brand img { border-radius: 10px; box-shadow: 0 8px 22px rgba(30, 95, 208, .4); }
.apps-gap { margin-left: auto; }
.apps-who { font-size: 13px; color: var(--muted); }
.apps-admin-link { font-size: 14px; font-weight: 700; color: #A5B4FC; padding: 8px 12px; border: 1px solid rgba(165, 180, 252, .3); border-radius: 10px; transition: border-color .15s, background .15s; }
.apps-admin-link:hover { text-decoration: none; background: rgba(99, 102, 241, .12); border-color: #A5B4FC; }
.apps-who b { color: var(--ink); font-weight: 700; }
.apps-top form { margin: 0; }
.apps-main { max-width: 1180px; padding-top: 20px; position: relative; z-index: 1; }
.apps-glow { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 15% 20%, rgba(23, 75, 114, .55) 0, transparent 30%), radial-gradient(circle at 88% 80%, rgba(18, 59, 57, .55) 0, transparent 28%); }
.apps-hero { max-width: 760px; margin: 24px 0 18px; }
.apps-kicker { color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 10px; }
.apps-hero h1 { font-size: 44px; line-height: 1.06; font-weight: 800; letter-spacing: -.045em; }
.apps-lead { color: #A8BACF; font-size: 17px; line-height: 1.6; margin: 14px 0 0; max-width: 640px; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 10px; }
.app-card {
  --c: #93C5FD; --bg2: #10294D; --edge: #1E5FD0;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 230px;
  padding: 24px; border-radius: 18px; color: var(--ink); text-decoration: none !important;
  background: linear-gradient(150deg, #101C2E 35%, var(--bg2)); border: 1px solid var(--border);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.app-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--edge); }
.app-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--edge) 35%, transparent), transparent 70%); }
a.app-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.app-card.deploy { --c: #5EEAD4; --bg2: #0D302E; --edge: #0F766E; }
.app-card.convert { --c: #FDBA74; --bg2: #342312; --edge: #B45309; }
.app-card.monitor { --c: #C4B5FD; --bg2: #251D42; --edge: #7C3AED; }
.app-card.soon, .app-card.off { opacity: .78; }
.app-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.app-icon svg { width: 26px; height: 26px; }
.app-name { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.app-name b { color: var(--c); font-weight: 800; font-size: 22px; display: block; margin-top: 2px; }
.app-name .w-install { color: var(--muted); }
.app-card p { margin: 0; color: #A8BACF; font-size: 14px; line-height: 1.55; flex: 1; }
.app-go { font-weight: 750; font-size: 14px; color: var(--c); position: relative; z-index: 1; }
.app-go.muted { color: var(--muted); font-weight: 650; }
.app-go span { display: inline-block; transition: transform .18s; }
a.app-card:hover .app-go span { transform: translateX(4px); }
.apps-foot { margin-top: 30px; font-size: 13px; color: #7F92AB; }
.apps-foot a { color: #A8BACF; }

/* ---------- Workflow's sign-in ---------- */
.login-page { display: grid; place-items: center; padding: 28px; }
.login-shell { position: relative; z-index: 1; width: min(980px, 100%); display: grid; grid-template-columns: 1.08fr .92fr; background: rgba(10, 22, 39, .82); border: 1px solid #2B415E; border-radius: 22px; overflow: hidden; box-shadow: 0 32px 90px rgba(0, 0, 0, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: wfIn .4s ease both; }
.login-story { padding: 44px; background: linear-gradient(145deg, rgba(13, 40, 68, .85), #0A1A2E); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 560px; }
.login-story .apps-brand { font-size: 19px; }
.login-story .wf-module { font-size: 17px; }
.login-copy h1 { font-size: 38px; line-height: 1.08; letter-spacing: -.05em; font-weight: 800; margin: 0 0 14px; }
.login-copy p { color: #9DB2CA; font-size: 15px; line-height: 1.65; margin: 0; }
.login-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.login-chips span { padding: 7px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); font-size: 12px; font-weight: 700; }
.login-chips span:nth-child(1) { color: #93C5FD; } .login-chips span:nth-child(2) { color: #FDBA74; } .login-chips span:nth-child(3) { color: #5EEAD4; } .login-chips span:nth-child(4) { color: #C4B5FD; }
.login-trust { font-size: 12px; color: #7F96B0; display: flex; align-items: center; gap: 8px; margin: 0; }
.login-trust i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 12px #34D399; }
.login-panel { padding: 44px 40px; background: #0D1929; display: flex; align-items: center; }
.login-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.login-kicker { color: var(--accText); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin: 0; }
.login-form h2 { font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.login-form .wf-muted { margin: -4px 0 6px; }
.login-check { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 650; cursor: pointer; margin-top: 4px; }
.login-hint { font-size: 12px; color: var(--muted); margin: -6px 0 4px; }
.login-page { --acc1: #1E5FD0; --acc2: #0D9488; --accText: #7FB2FF; }
.login-page.app-deploy { --acc1: #0F766E; --acc2: #1E5FD0; --accText: #5EEAD4; }
.login-page.app-convert { --acc1: #B45309; --acc2: #D97706; --accText: #FDBA74; }
.login-page.app-admin { --acc1: #4F46E5; --acc2: #6366F1; --accText: #A5B4FC; }
.login-page .wf-module { color: var(--accText); }
.login-submit { height: 46px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--acc1), var(--acc2)); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 10px 28px rgba(30, 95, 208, .32); transition: transform .18s, box-shadow .18s; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 32px rgba(30, 95, 208, .45); }
.login-links { text-align: center; font-size: 14px; margin: 6px 0 0; }
.login-legal { text-align: center; font-size: 12px; margin: 0; }
.login-legal a { color: #7F92AB; }

/* ---------- Privacy policy and security whitepaper ---------- */
.legal-nav { display: flex; gap: 6px; }
.legal-nav a { padding: 7px 12px; border-radius: 9px; color: #C7D6E8; font-weight: 650; font-size: 14px; text-decoration: none !important; transition: background .15s; }
.legal-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.legal-page .doc-card { position: relative; z-index: 1; max-width: 860px; margin: 0 auto 48px; padding: 36px 44px 32px; display: block; background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 30%), var(--panel); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.legal-page .doc-card h1 { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.legal-page .muted { color: var(--muted); margin: 6px 0 20px; }
.doc-card h2 { font-size: 19px; font-weight: 800; margin: 30px 0 10px; color: #fff; }
.doc-card p, .doc-card li { font-size: 15px; line-height: 1.65; color: #C9D6E8; }
.doc-card strong { color: var(--ink); font-weight: 750; }
.doc-card ul, .doc-card ol { padding-left: 22px; margin: 8px 0; }
.doc-card li { margin: 6px 0; }
.doc-card code { font-size: 13px; background: #0B1727; border: 1px solid var(--line); color: #DCE8F8; padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.doc-figure { margin: 14px 0; background: #F8FAFC; border-radius: 14px; padding: 8px; }
.doc-figure svg { width: 100%; height: auto; display: block; }
.doc-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; color: #C9D6E8; }
.doc-table thead th { background: #0B1727; color: #8DA2BB; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.doc-table tr > th { font-weight: 700; color: var(--ink); white-space: nowrap; width: 1%; }
.doc-table thead th { width: auto; }
.doc-table tbody tr:hover td, .doc-table tr:hover > td { background: rgba(255, 255, 255, .025); }
.doc-table td:first-child { width: 24%; }
.doc-table thead th:last-child:nth-child(3), .doc-table td:last-child:nth-child(3) { width: 24%; }
.doc-card ul.checklist { list-style: none; padding-left: 0; }
.doc-card ul.checklist li { padding-left: 28px; position: relative; }
.doc-card ul.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border: 2px solid var(--teal); border-radius: 4px; }
.doc-foot { margin: 28px 0 0; text-align: center; font-size: 14px; }
@media (max-width: 720px) {
  .legal-page .doc-card { padding: 24px 20px; border-radius: 16px; }
  .legal-page .doc-card h1 { font-size: 26px; }
  .legal-nav a { padding: 6px 8px; font-size: 13px; }
  .doc-table { font-size: 13px; } .doc-table th, .doc-table td { padding: 7px; }
}
/* Printed, or saved as PDF: plain white paper. */
@media print {
  :root { color-scheme: light; }
  html, body.wf, body.legal-page { background: #fff !important; color: #0F2747; }
  .no-print, .apps-top, .apps-glow { display: none !important; }
  .legal-page .doc-card { box-shadow: none; border: 0; max-width: none; padding: 0; margin: 0; background: #fff; border-radius: 0; animation: none; }
  .legal-page .doc-card h1, .doc-card h2, .doc-card strong, .doc-table tr > th { color: #0F2747; }
  .doc-card p, .doc-card li, .doc-table td, .doc-table th, .legal-page .muted { color: #334155; }
  .doc-card code { background: #F1F5F9; border-color: #E2E8F0; color: #0F2747; }
  .doc-figure { background: none; padding: 0; }
  .doc-table { border-color: #E2E8F0; }
  .doc-table th, .doc-table td { border-color: #E2E8F0; }
  .doc-table thead th { background: #F1F5F9; color: #475569; }
  .doc-card ul.checklist li::before { border-color: #64748B; }
  .doc-card h2 { break-after: avoid; }
  .doc-table tr, .doc-figure, .doc-card li { break-inside: avoid; }
  .doc-card a { color: inherit; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  body.wf-app { padding-left: 0; }
  .wf-side-nav { width: 260px; transform: translateX(-105%); transition: transform .25s; box-shadow: 20px 0 50px rgba(0, 0, 0, .4); }
  .wf-side-nav.open { transform: none; }
  .wf-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(2, 8, 20, .6); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .wf-scrim.open { opacity: 1; pointer-events: auto; }
  .wf-menu-btn { display: grid; }
  .wf-bar { padding: 0 14px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 0; padding: 30px; gap: 24px; }
  .login-copy h1 { font-size: 30px; }
  .login-panel { padding: 30px; }
}
@media (max-width: 720px) {
  .wf-page { padding: 18px 16px 40px; }
  .wf-head h1 { font-size: 24px; }
  .wf-hero { padding: 20px; }
  .wf-fields { grid-template-columns: 1fr; }
  .wf-machine { grid-template-columns: 30px minmax(0, 1fr) 34px; }
  .wf-machine .wf-field { grid-column: 2; }
  .wf-machine .wf-remove { grid-column: 3; grid-row: 1; }
  .wf-inst-ready { text-align: left; }
  .apps-hero h1 { font-size: 32px; }
  .apps-who { display: none; }
  .login-page { padding: 12px; }
  .login-story { display: none; }
  .login-panel { padding: 28px 22px; }
  .appsw-menu { width: min(300px, calc(100vw - 32px)); }
}
.appsw-item.admin .appsw-icon { color: #C7D2FE; background: rgba(99, 102, 241, .25); }

/* Your account: the profile picture */
.photo-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.photo-big { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #DBEAFE; color: #1E40AF; font-weight: 800; font-size: 26px; flex: none; box-shadow: 0 0 0 4px rgba(129, 140, 248, .25); }
.photo-big img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1 1 260px; min-width: 0; }
.photo-actions form { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.photo-pick { position: relative; overflow: hidden; display: inline-flex; cursor: pointer; background: linear-gradient(135deg, #6366F1, #4F46E5); color: #fff; font-weight: 750; font-size: 14px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wf-for { color: #5EEAD4; font-weight: 800; }
.login-page.app-printers { --acc1: #0D9488; --acc2: #14B8A6; --accText: #5EEAD4; }

/* ---------- Installation page: editing (piece A) ---------- */
.wf-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-actions form { margin: 0; }
.wf-btn.danger:hover { color: #FCA5A5; border-color: #7F1D1D; }
.wf-hero { align-items: flex-start; }
.wf-panel { animation: wfIn .2s ease both; }
.wf-panel[hidden], .wf-machine-edit[hidden] { display: none; }
.wf-form-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.wf-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-x { width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.wf-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.wf-x:hover { background: rgba(148, 163, 184, .14); color: var(--ink); transform: translateY(-1px); }
.wf-x.sm { width: 26px; height: 26px; }
.wf-hint { margin: -4px 0 12px; }
.wf-busy { cursor: progress; }
.wf-busy .wf-step, .wf-busy .wf-seg button { pointer-events: none; }

.wf-machine-top { display: flex; align-items: flex-start; gap: 12px; }
.wf-machine-what { flex: 1; min-width: 0; }
.wf-machine-tools { display: flex; gap: 6px; flex: none; }
.wf-machine-tools form { margin: 0; }
.wf-icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.wf-icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-icon-btn.danger:hover { color: #FCA5A5; border-color: #7F1D1D; }

/* Steps you can click */
form.wf-steps { margin: 0; }
button.wf-step { all: unset; display: block; cursor: pointer; border-radius: 8px; padding: 4px 2px 2px; transition: background .15s, transform .15s; min-width: 0; }
button.wf-step:hover { background: rgba(127, 178, 255, .08); transform: translateY(-1px); }
button.wf-step:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
button.wf-step:hover i { filter: brightness(1.2); }
button.wf-step.todo:hover i { background: #3D5B7E; }
.wf-step i { transition: background .25s ease, box-shadow .25s ease; }

.wf-machine-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wf-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: #0A1524; border: 1px solid var(--line); margin: 0; }
.wf-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; height: 28px; padding: 0 12px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.wf-seg button:hover { color: var(--ink); transform: translateY(-1px); }
.wf-seg button.on { background: #1E3A5F; color: #DCEBFF; box-shadow: inset 0 0 0 1px #2F5A8E; }
.wf-machine-edit { border-top: 1px solid var(--line); padding-top: 14px; animation: wfIn .2s ease both; }
.wf-add { margin-top: 12px; width: 100%; height: 44px; border: 1px dashed var(--border); border-radius: 12px; background: transparent; color: var(--link); font: inherit; font-weight: 750; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.wf-add:hover { border-color: var(--link); background: rgba(127, 178, 255, .06); transform: translateY(-1px); }
.wf-add-form { margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; background: var(--panel-2); }
.wf-add-form h3 { margin: 0 0 12px; font-size: 15px; }

/* Notes */
.wf-note-form { display: flex; gap: 10px; align-items: flex-end; margin: 12px 0 4px; }
.wf-note-form textarea { flex: 1; min-height: 44px; resize: vertical; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.wf-note-form textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(127, 178, 255, .2); }
.wf-notes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wf-notes li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel-2); }
.wf-note-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wf-note-head form { margin: 0 0 0 auto; }
.wf-notes p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: #DCE6F2; }

/* Files */
.wf-drop { margin: 12px 0 0; }
.wf-drop-zone { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.wf-drop-zone:hover { border-color: var(--link); background: rgba(127, 178, 255, .06); transform: translateY(-1px); }
.wf-drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wf-drop-zone svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--link); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-drop-zone b { display: block; font-size: 14px; color: var(--link); }
.wf-drop-zone small { display: block; font-size: 12px; color: var(--muted); }
.wf-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wf-files li { display: flex; align-items: center; gap: 6px; }
.wf-files form { margin: 0; }
.wf-file { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none !important; color: var(--ink); transition: background .15s, transform .15s; }
.wf-file:hover { background: rgba(127, 178, 255, .08); transform: translateY(-1px); }
.wf-file-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; display: block; }
.wf-file-name { min-width: 0; }
.wf-file-name b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-file-name small { display: block; font-size: 12px; color: var(--muted); }

@media (max-width: 700px) {
  .wf-fields.three { grid-template-columns: 1fr; }
  .wf-note-form { flex-direction: column; align-items: stretch; }
  .wf-steps span { font-size: 10.5px; }
}

/* Customer checklist link (piece B) */
.wf-links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wf-links li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); flex-wrap: wrap; }
.wf-link-who { flex: 1; min-width: 180px; }
.wf-link-who b { display: block; font-size: 14px; }
.wf-link-who small { display: block; font-size: 12px; color: var(--muted); }
.wf-link-tools { display: flex; gap: 6px; }
.wf-link-tools form { margin: 0; }
.wf-invite { margin-top: 12px; }
.wf-invite[hidden] { display: none; }
.wf-copy { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid #115E59; border-radius: 12px; background: #042F2E; }
.wf-copy p { margin: 0 0 10px; font-size: 14px; }
.wf-copy-row { display: flex; gap: 8px; }
.wf-copy-row input { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--field-border); border-radius: 8px; background: var(--panel-2); color: var(--ink); padding: 0 10px; font: 13px ui-monospace, Menlo, Consolas, monospace; }

/* Checklist on the installation page and in Settings (piece C) */
.ck-meter { margin: 6px 0 10px; }
.ck-done-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.ck-section { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin-top: 10px; overflow: hidden; }
.ck-section summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #C7D6E8; transition: background .15s; }
.ck-section summary::-webkit-details-marker { display: none; }
.ck-section summary:hover { background: rgba(127, 178, 255, .06); }
.ck-section summary small { color: var(--muted); font-weight: 700; letter-spacing: 0; }
.ck-qa { list-style: none; margin: 0; padding: 0 14px 6px; }
.ck-qa li { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ck-qa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ck-q { font-size: 13px; color: var(--muted); font-weight: 650; }
.ck-a { font-size: 14px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 650; }
.ck-a.none { color: #5B6E86; font-style: italic; font-weight: 550; }
.ck-qa-main small { font-size: 12px; }
.ck-qa-tools { display: flex; gap: 4px; align-items: flex-start; }
.ck-qa-tools form { margin: 0; }
.ck-answer-form { flex-basis: 100%; }
.ck-answer-form[hidden], .ck-edit[hidden], .ck-options[hidden] { display: none; }
.ck-answer-form textarea, .wf-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; min-height: 42px; height: auto; }
.ck-answer-form select { width: 100%; height: 42px; }

.ck-items { list-style: none; margin: 8px 0 0; padding: 0; }
.ck-items .ck-sec { margin: 18px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5EEAD4; }
.ck-items .ck-sec:first-child { margin-top: 4px; }
.ck-item { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin-bottom: 6px; transition: border-color .15s; }
.ck-item:hover { border-color: var(--border-strong); }
.ck-item-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.ck-item-main b { font-size: 14px; }
.ck-item-main small { font-size: 12.5px; color: var(--muted); }
.ck-item-kind { font-size: 12px; color: #7FB2FF; }
.ck-item-tools { display: flex; gap: 4px; }
.ck-item-tools form { margin: 0; }
.ck-item-tools button:disabled { opacity: .35; cursor: default; transform: none; }
.ck-edit { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 12px; }
.ck-reset { margin-top: 14px; text-align: right; }
.ck-reset button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.ck-reset button:hover { color: var(--ink); }

/* Piece D: next step, stage, follow-ups */
.wf-turn { flex-wrap: wrap; }
.wf-turn-act { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.wf-turn-act form { margin: 0; }
.wf-stage-pick { margin-left: auto !important; display: flex; align-items: center; gap: 8px; }
.wf-stage-pick select { height: 32px; border: 1px solid var(--field-border); border-radius: 8px; background: var(--panel-2); color: var(--ink); padding: 0 8px; font: inherit; font-size: 13px; font-weight: 650; }
.ck-ask-btn { margin: 4px 0 6px; }
.ck-ask textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--field-border); border-radius: 10px; background: #0A1524; color: var(--ink); padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.ck-ask[hidden] { display: none; }
.ck-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #C7D6E8; margin-top: 8px; cursor: pointer; }
.ck-open-fu { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.ck-open-fu form { margin: 0; }
.wf-text-link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.wf-text-link:hover { text-decoration: underline; }
.ck-section.followup { border-color: #2F5A8E; background: linear-gradient(180deg, rgba(30, 95, 208, .12), transparent 60%), var(--panel-2); }
.ck-section.followup summary { color: #C7DBFF; }

/* Piece E: schedule and sign-off */
.wf-next { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wf-next .ck-check { margin: 0; }
.wf-sched { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #1E5FD0; border-radius: 12px; background: rgba(30, 95, 208, .12); margin-top: 8px; }
.wf-sched-date b { display: block; font-size: 17px; }
.wf-sched-date span { display: block; font-size: 13px; color: #C7DBFF; font-weight: 650; }
.wf-sched-note { margin: 10px 0 0; font-size: 14px; color: #DCE6F2; white-space: pre-wrap; }
#schedForm { margin-top: 12px; }
#schedForm[hidden] { display: none; }
.wf-signed { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; margin: 6px 0 0; }

/* Fill in the checklist yourself */
.wf-fill-sec { margin-bottom: 14px; }
.wf-fill-sec.followup { border-color: #2F5A8E; }
.wf-fill-q { padding: 12px 0; border-top: 1px solid var(--line); }
.wf-fill-q:first-of-type { border-top: 0; }
.wf-fill-q label { font-size: 14px; color: var(--ink); }
.wf-fill-q textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.wf-fill-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.wf-fill-choice { position: relative; cursor: pointer; margin: 0 !important; }
.wf-fill-choice input { position: absolute; opacity: 0; pointer-events: none; }
.wf-fill-choice span { display: inline-block; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--field-border); font-size: 13.5px; font-weight: 650; color: #C9D6E8; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.wf-fill-choice:hover span { transform: translateY(-1px); border-color: var(--link); }
.wf-fill-choice input:checked + span { background: rgba(30, 95, 208, .25); border-color: #3B82F6; color: #fff; }
.wf-fill-choice.clear span { border-style: dashed; color: var(--muted); }
.wf-fill-choice input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.wf-fill-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); }
.ck-fill-link { margin-left: 8px; }

/* Piece F: reminders */
.wf-remind { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.wf-remind-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.wf-remind-head form { margin: 0; }
.wf-remind p { margin: 6px 0 0; }
.wf-remind-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.wf-remind-list li::before { content: "✉ "; }

/* Piece G: saved passwords */
.wf-secrets { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wf-secrets li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 6px; }
.wf-secret-top { display: flex; justify-content: space-between; gap: 8px; }
.wf-secret-what b { display: block; font-size: 14px; }
.wf-secret-what small { display: block; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.wf-secret-tools { display: flex; gap: 4px; align-items: flex-start; }
.wf-secret-tools form { margin: 0; }
.wf-secret-row { display: flex; align-items: center; gap: 10px; }
.wf-secret-val { font: 13px ui-monospace, Menlo, Consolas, monospace; background: #0A1524; border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; color: #E2E8F0; overflow-wrap: anywhere; }
.wf-secret-form[hidden] { display: none; }
.wf-secret-log { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.wf-secret-log summary { cursor: pointer; font-weight: 700; }
.wf-secret-log ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.wf-secret-log b { color: #C7D6E8; }
.ck-qa-main .wf-secret-row { margin: 2px 0; }

/* The customer record */
.wf-cust-row { position: relative; cursor: pointer; }
.wf-row-link { color: var(--ink); text-decoration: none !important; }
.wf-row-link::after { content: ""; position: absolute; inset: 0; } /* the whole row opens the installations */
.wf-rec-link { flex: none; position: relative; z-index: 1; }
.wf-rec-copy { margin: 10px 0 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.rec-page { max-width: 1240px; }
.rec-hero { align-items: flex-start; }
.rec-hero p a { color: var(--link); }
.rec-export { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.rec-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.rec-stats a { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none !important; color: var(--ink); transition: transform .15s, border-color .15s; }
.rec-stats a:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.rec-stats strong { font-size: 24px; line-height: 1.1; }
.rec-stats span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.rec-equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 10px; }
.rec-eq { border: 1px solid var(--line); border-radius: 13px; background: var(--panel-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; transition: border-color .18s; }
.rec-eq:hover { border-color: var(--border-strong); }
.rec-eq-top { display: flex; gap: 10px; align-items: flex-start; }
.rec-eq-what { flex: 1; min-width: 0; font-size: 14px; }
.rec-eq-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.rec-eq-facts div { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; min-width: 0; }
.rec-eq-facts dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.rec-eq-facts dd { margin: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.rec-note { margin: 0; font-size: 13px; color: #DCE6F2; }
.rec-eq-form { grid-column: 1 / -1; }
.rec-eq-form[hidden], #ffnew[hidden], #eqfnew[hidden], #csnew[hidden] { display: none; }
.rec-sec h3 { margin: 16px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5EEAD4; }
.rec-facts { padding: 0; }
.rec-history { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rec-history li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.rec-history a { flex: 1; min-width: 0; text-decoration: none !important; color: var(--ink); }
.rec-history a b { display: block; font-size: 14px; }
.rec-history a small { display: block; font-size: 12px; color: var(--muted); }
.rec-history a:hover b { color: var(--link); }
.rec-people { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rec-people li { display: flex; gap: 10px; align-items: center; }
.rec-people b { display: block; font-size: 14px; }
.rec-people small { display: block; font-size: 12px; overflow-wrap: anywhere; }
.wf-avatar.sm { width: 32px; height: 32px; font-size: 12px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #DBEAFE; color: #1E40AF; font-weight: 800; }
.rec-books { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rec-books small { display: block; font-size: 12px; }
.rec-deploy { margin: 0; }
@media (max-width: 760px) { .rec-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Workflow → Deploy */
.wf-deploy-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wf-deploy-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.wf-deploy-what { flex: 1; min-width: 200px; }
.wf-deploy-what b { display: block; font-size: 14px; }
.wf-deploy-what small { display: block; font-size: 12.5px; color: var(--muted); }
.wf-deploy-list a.wf-pill { text-decoration: none; transition: transform .15s; }
.wf-deploy-list a.wf-pill:hover { transform: translateY(-1px); }
.wf-deploy-why { flex-basis: 100%; font-size: 12px; }
.wf-deploy-btn { margin-top: 12px; }
#deployForm[hidden] { display: none; }
.wf-newloc { margin-top: 8px; width: 100%; }
.wf-newloc[hidden] { display: none; }
.wf-deploy-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.wf-deploy-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.wf-deploy-row .ck-check { margin: 0 0 8px; font-size: 14px; color: var(--ink); }

/* The network question (team's fill-in page) */
.wf-net { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.wf-net-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 10px; align-items: center; margin: 0 !important; }
.wf-net-row span b { font-size: 14px; }
.wf-net-row span small { color: var(--muted); }
.wf-net-grid { margin-top: 4px; }

/* Sites */
.wf-sites { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 2px 0 10px; }
.wf-site-chip { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(127, 178, 255, .12); color: #C7DBFF; }
.wf-site-tag { margin-left: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(127, 178, 255, .12); color: #C7DBFF; }
.wf-site-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 -2px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #93C5FD; }
.wf-site-h small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
#addSite[hidden] { display: none; }
.wf-net-site + .wf-net-site { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.wf-net-site-name { margin: 0 0 6px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #93C5FD; }
.ck-item-when { color: #FBBF24 !important; }
.wf-convert-btn { flex: none; }

/* The checklist full width under the installation, sections side by side */
.wf-checklist-wide { margin-top: 20px; }
.ck-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px; align-items: start; margin-top: 10px; }
.ck-sections .ck-section { margin-top: 0; }
.ck-sections .ck-section.followup { grid-column: 1 / -1; }
.ck-sections { display: block; columns: 2 440px; column-gap: 12px; }
.ck-sections .ck-section { break-inside: avoid; margin: 0 0 12px; display: block; }
.ck-sections .ck-section.followup { column-span: all; }

/* Account names and codes (a list of rows) */
.codes { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
.codes > div:not(.codes-head) { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.codes-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 140px) 36px; gap: 8px; align-items: center; width: 100%; }
.codes-head span { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.codes-row input { height: 38px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); color: var(--ink); padding: 0 12px; font-size: 14px; font-weight: 550; width: 100%; }
.codes-x { width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--border); background: transparent !important; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; transition: transform .15s, color .15s, border-color .15s; }
.codes-x:hover { transform: translateY(-1px); color: #EF4444; border-color: #EF4444; }
.codes-add { padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--border); background: transparent !important; color: #5EEAD4; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .15s, border-color .15s; }
.codes-add:hover { transform: translateY(-1px); border-color: #5EEAD4; }

/* Installation page: both columns end level (the last card in each stretches),
   then the checklist starts underneath. Team notes sit at the bottom right. */
.wf-split:has(> .wf-side) { align-items: stretch; }
.wf-main > .wf-card:last-child, .wf-side > .wf-card:last-child { flex-grow: 1; }
.wf-side .wf-note-form { flex-direction: column; align-items: stretch; }
.wf-side .wf-note-form .wf-btn { align-self: flex-end; }
/* The right column is narrow: headings stack, notes and files wrap neatly. */
.wf-side .wf-card-head { flex-wrap: wrap; row-gap: 2px; }
.wf-side .wf-card-head h2 { white-space: nowrap; }
.wf-side .wf-note-head { flex-wrap: wrap; row-gap: 4px; }
.wf-side .wf-note-head > b { white-space: nowrap; }
.wf-side .wf-files li { flex-wrap: wrap; }
.wf-side .wf-files li > a.wf-file { flex: 1 1 calc(100% - 44px); }
.wf-side .wf-convert-btn { order: 3; margin: 0 0 4px 40px; }
.wf-side .wf-note-form textarea { min-height: 76px; }
#checklist, #notes, #files { scroll-margin-top: 80px; }
/* Team notes (right column): notes listed first, then the note box fills the
   rest of the tile, with Add note at the very bottom. */
.wf-side #notes { display: flex; flex-direction: column; }
.wf-side #notes .wf-note-form { order: 2; flex: 1 1 auto; margin: 12px 0 0; }
.wf-side #notes .wf-note-form textarea { flex: 1 1 auto; min-height: 120px; resize: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2B3B57 transparent; }
.wf-side #notes .wf-notes, .wf-side #notes > p { order: 1; }
/* Locked size: the note box keeps its size (long notes scroll inside it), and
   a long list of notes scrolls inside the tile. */
.wf-side #notes .wf-note-form textarea { height: 140px; min-height: 140px; max-height: 140px; }
.wf-side #notes .wf-note-form { flex: 0 0 auto; margin-top: auto; padding-top: 12px; }
.wf-side #notes .wf-notes { max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2B3B57 transparent; padding-right: 4px; }
/* Team notes keeps its own size; it doesn't stretch to match the left column. */
.wf-side > #notes { flex-grow: 0; }
.wf-side #notes .wf-note-form { margin-top: 0; }
.wf-side #notes > p.wf-muted { margin: 10px 0 0; }
/* Remove a site: a small X inside its chip */
.wf-site-chip { display: inline-flex; align-items: center; gap: 4px; }
.wf-site-chip form { margin: 0; display: inline-flex; }
.wf-chip-x { width: 18px; height: 18px; padding: 0 !important; margin: 0 -4px 0 0; border: 0 !important; border-radius: 99px !important; background: transparent !important; box-shadow: none !important; color: inherit !important; opacity: .6; display: grid; place-items: center; cursor: pointer; transition: opacity .15s, background .15s, transform .15s; }
.wf-chip-x:hover { opacity: 1; background: rgba(239, 68, 68, .25) !important; transform: translateY(-1px); }
.wf-chip-x svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

/* A contact: name, phone and email boxes */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; width: 100%; }
.contact label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; margin: 0; }
.contact label span { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } }
.contact input { height: 40px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); color: var(--ink); padding: 0 12px; font-size: 14px; font-weight: 550; width: 100%; }

.wf-times { display: flex; align-items: center; gap: 8px; }
.wf-times input { flex: 1 1 0; min-width: 0; color-scheme: dark; }
.wf-times span { color: var(--muted); font-size: 13px; }

/* Network question: each copier's location, site and IP on one row */
.ck-net-m { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .9fr); gap: 10px; align-items: end; padding: 6px 0; }
.ck-net-m:not(:has(select)) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); }
.ck-net-name { font-size: 14px; align-self: end; padding-bottom: 11px; }
.ck-net-m label { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.ck-net-m label span { font-size: 12px; font-weight: 700; color: var(--muted); }
.ck-net-m select { height: 42px; border-radius: 10px; padding: 0 10px; font: inherit; font-weight: 550; width: 100%; }
@media (max-width: 760px) { .ck-net-m, .ck-net-m:not(:has(select)) { grid-template-columns: 1fr; } .ck-net-name { padding-top: 6px; } }
.wf-net-m input, .wf-net-m select { height: 40px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); color: var(--ink); padding: 0 12px; font-size: 14px; font-weight: 550; width: 100%; }
/* Fill-in page: the same fixed-size answer boxes as the customer's page */
.wf-fill-q textarea { height: 64px !important; min-height: 64px !important; max-height: 64px !important; resize: none !important; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2B3B57 transparent; padding-top: 10px; }

/* Customer record: each copier is one wide card, stacked */
.rec-equip { grid-template-columns: 1fr; }
.rec-eq-top { align-items: center; gap: 14px; }
.rec-eq-what { flex: 1 1 220px; }
.rec-eq-what b { display: block; font-size: 15px; }
.rec-eq-what .wf-muted { display: block; font-size: 13px; }
.rec-eq-top .rec-eq-facts { flex: 0 1 660px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rec-eq-top .wf-machine-tools { flex: 0 0 auto; }
@media (max-width: 760px) { .rec-eq-top { flex-wrap: wrap; } .rec-eq-top .rec-eq-facts { flex-basis: 100%; order: 3; } }

/* Customer record: fold the details card, or one section of it */
.rec-foldable .wf-card-head { align-items: center; }
.rec-fold-all { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line) !important; background: transparent !important; color: var(--ink) !important; box-shadow: none !important; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .15s, border-color .15s; }
.rec-fold-all:hover { transform: translateY(-1px); border-color: var(--border-strong) !important; }
.rec-fold-all svg, .rec-sec-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rec-foldable.folded .rec-fold-all svg { transform: rotate(180deg); }
.rec-foldable.folded > :not(.wf-card-head) { display: none !important; }
.rec-sec-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0 !important; background: none !important; box-shadow: none !important; color: inherit !important; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: opacity .15s; }
.rec-sec-toggle:hover { opacity: .8; }
.rec-sec.folded .rec-sec-toggle svg { transform: rotate(-90deg); }
.rec-sec.folded .rec-facts { display: none; }
.rec-sec-n { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(94, 234, 212, .14); color: #5EEAD4; letter-spacing: 0; }

/* Address boxes (Add a site): street and suite, then city, state, ZIP */
.wf-site-addr-h { margin: 14px 0 0; font-size: 13px; font-weight: 700; }
.wf-site-addr-h span { color: var(--muted); font-weight: 500; }
.wf-add-form .addr-fields { display: grid; grid-template-columns: minmax(0, 1fr) 80px 120px; gap: 0 10px; }
.wf-add-form .addr-fields .addr-wide { grid-column: 1 / -1; }
.wf-add-form .addr-fields label { display: block; margin: 10px 0 5px; font-size: 13px; font-weight: 650; }
.wf-add-form .addr-fields input { width: 100%; height: 40px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); color: var(--ink); padding: 0 12px; font-size: 14px; font-weight: 550; }

/* "How it's going" on the Workflow home: four numbers and where open
   installs are, by stage (one hue; bars against the busiest stage). */
.wf-pulse { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin-top: 16px; padding: 20px 22px; }
.wf-pulse h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.wf-pulse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wf-pnum { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.025); color: var(--text); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.wf-pnum:hover { transform: translateY(-2px); border-color: rgba(147,197,253,.45); box-shadow: 0 8px 18px rgba(0,0,0,.25); text-decoration: none; }
.wf-pnum strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.wf-pnum strong em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.wf-pnum label { display: block; font-size: 13.5px; font-weight: 700; margin-top: 3px; cursor: inherit; }
.wf-pnum small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wf-pnum.warn { border-color: rgba(251,191,36,.45); }
.wf-pnum.warn strong { color: #FCD34D; }
.wf-stage-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.wf-stage-bars li { display: grid; grid-template-columns: 78px minmax(0, 1fr) 26px; align-items: center; gap: 10px; font-size: 13px; }
.sb-name { color: var(--muted); font-weight: 650; }
.sb-track { height: 12px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.sb-fill { display: block; height: 100%; min-width: 0; border-radius: 4px; background: linear-gradient(90deg, #3B82F6, #60A5FA); transition: width .4s ease; }
.sb-n { text-align: right; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.sb-n.zero { color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .wf-pulse { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 480px) { .wf-pulse-grid { grid-template-columns: 1fr; } }

/* Schedule calendar (Workflow › Schedule). A month grid; on a phone it
   becomes a list of just the days with installs. */
.sc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-head h1 { margin: 0; }
.sc-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sc-warn-text { color: #FCD34D; font-weight: 700; }
.sc-nav { display: flex; align-items: center; gap: 8px; }
.sc-month { min-width: 150px; text-align: center; font-size: 17px; font-weight: 800; }
.sc-btn { display: inline-grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); font-size: 13.5px; font-weight: 700; text-decoration: none !important; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sc-btn.icon { width: 36px; padding: 0; }
.sc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-btn:hover { transform: translateY(-2px); border-color: rgba(147,197,253,.5); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.sc-techs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sc-cal { padding: 0; overflow: hidden; }
.sc-dow, .sc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sc-dow span { padding: 10px 10px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.sc-day { min-height: 118px; padding: 8px 8px 10px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sc-week .sc-day:nth-child(7) { border-right: 0; }
.sc-week:last-child .sc-day { border-bottom: 0; }
.sc-day.out { background: rgba(0,0,0,.18); }
.sc-day.out .sc-dnum { opacity: .45; }
.sc-day.today { background: rgba(59,130,246,.09); box-shadow: inset 0 0 0 2px rgba(96,165,250,.55); }
.sc-day.busy { box-shadow: inset 0 0 0 2px rgba(251,191,36,.5); }
.sc-date { display: flex; align-items: center; gap: 6px; }
.sc-dnum { font-size: 13px; font-weight: 800; color: var(--text); }
.sc-day.past:not(.today) .sc-dnum { color: var(--muted); }
.sc-dfull { display: none; }
.sc-today { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #93C5FD; }
.sc-busy { margin: 0; font-size: 11.5px; font-weight: 800; color: #FCD34D; }
.sc-ev { --c: #60A5FA; display: block; padding: 6px 8px 6px 10px; border-radius: 8px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--text) !important; text-decoration: none !important; min-width: 0; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.sc-ev:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.28); background: color-mix(in srgb, var(--c) 22%, transparent); }
.sc-ev b { display: block; font-size: 12.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-ev span { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-ev.early { --c: #94A3B8; }
.sc-ev.set { --c: #60A5FA; }
.sc-ev.late { --c: #FBBF24; }
.sc-ev.done { --c: #34D399; }
.sc-ev.done b { color: var(--muted); }
.sc-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.sc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sc-legend i { width: 10px; height: 10px; border-radius: 3px; background: #60A5FA; }
.sc-legend i.early { background: #94A3B8; } .sc-legend i.late { background: #FBBF24; } .sc-legend i.done { background: #34D399; }
.sc-undated { margin-top: 18px; padding: 16px 18px; }
.sc-undated h2 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.wf-count-pill { font-size: 12px; font-weight: 800; color: #93C5FD; background: rgba(59,130,246,.16); border-radius: 999px; padding: 2px 9px; }
.sc-undated-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.sc-undated-list a { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.025); color: var(--text) !important; text-decoration: none !important; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sc-undated-list a:hover { transform: translateY(-2px); border-color: rgba(147,197,253,.45); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.sc-undated-list b { display: block; font-size: 13.5px; }
.sc-undated-list span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (min-width: 1700px) { .sc-day { min-height: 140px; } }
@media (max-width: 760px) {
  .sc-dow { display: none; }
  .sc-week { display: block; }
  .sc-day { min-height: 0; border-right: 0; padding: 12px 14px; }
  .sc-day.empty:not(.today), .sc-day.out { display: none; }
  .sc-dnum { display: none; }
  .sc-dfull { display: inline; font-size: 14px; font-weight: 800; }
  .sc-ev b, .sc-ev span { white-space: normal; }
  .sc-month { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .sc-ev, .sc-btn, .sc-undated-list a { transition: none; } .sc-ev:hover, .sc-btn:hover, .sc-undated-list a:hover { transform: none; } }
.wf-list-h { margin: 0; padding: 16px 16px 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .015); }
.wf-carry-opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(94,234,212,.35); background: rgba(13,148,136,.1); }
.wf-carry-opt[hidden] { display: none; }
.wf-carry-opt input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #14B8A6; }
.wf-carry-opt b { display: block; font-size: 14.5px; }
.wf-carry-opt small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.wf-carry #carry-team { margin-top: 10px; }
.ck-staff summary { cursor: pointer; font-size: 14px; }
.ck-staff ul { margin: 8px 0 4px; padding-left: 18px; max-height: 220px; overflow: auto; font-size: 13.5px; }
.ck-staff li { margin: 2px 0; }
.ck-staff-go { margin: 6px 0 4px; align-self: flex-start; }
.ck-staff > summary { text-transform: none; letter-spacing: normal; font-size: 14px; padding: 4px 0; background: none; color: var(--text); }
.ck-staff > summary b { font-weight: 800; }

/* A copier's tag sheet: lights up once the copier is configured. */
.wf-tag-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: #CBD5E1 !important; text-decoration: none !important; border: 1px solid var(--border); background: rgba(255,255,255,.03); margin-right: auto; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.wf-tag-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-tag-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.25); border-color: rgba(147,197,253,.45); }
.wf-tag-btn.ready { color: #fff !important; border-color: transparent; background: linear-gradient(135deg, #7C3AED, #6D28D9); box-shadow: 0 6px 16px rgba(124,58,237,.3); }
.wf-tag-done { font-size: 12.5px; font-weight: 700; color: #34D399; }

/* Filters land on the list, not the top of the page. */
#installs { scroll-margin-top: 16px; }

/* Filters land on the list. */
#installs { scroll-margin-top: 16px; }

/* Customers: the same full-height column as Deploy and Admin (280px, right
   against the sidebar, under the top bar), the chosen customer beside it. */
.wf-page.wf-cust-page { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; align-items: start; align-content: stretch; min-height: 0; flex: 1 0 auto; }
/* Fills the room down to the footer (like Deploy's), so the page doesn't scroll for nothing. */
.wf-cust-side { position: sticky; top: 60px; align-self: stretch; max-height: calc(100vh - 60px); contain: size; overflow-y: auto; background: #0A1524; border-right: 1px solid var(--border); padding: 18px 16px; }
.wf-cust-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wf-cust-side-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.wf-cust-find { width: 100%; margin-bottom: 10px; }
.wf-cust-side ul { list-style: none; margin: 0; padding: 0; }
.wf-cust-side li a { display: block; padding: 9px 10px; border-radius: 9px; color: #93C5FD; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; transition: background .15s ease, transform .15s ease; }
.wf-cust-side li a:hover { background: #13233A; transform: translateX(2px); }
.wf-cust-side li a.on { background: rgba(13,148,136,.16); color: #5EEAD4; box-shadow: inset 3px 0 0 #2DD4BF; }
.wf-own { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #2E1065; color: #C4B5FD; vertical-align: middle; }
h1 .wf-own { font-size: 13px; }
.wf-cust-main { padding: 28px 28px 56px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.wf-cust-main .wf-head { margin-bottom: 0; }
.wf-cust-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wf-cust-back { display: none; margin: 0; }
.wf-cust-pick p { color: var(--muted); max-width: 520px; }

/* Folding the list away: the same round handle as Deploy and Admin. */
.wf-list-handle { display: none; }
@media (min-width: 861px) {
  .wf-list-handle { all: unset; box-sizing: border-box; cursor: pointer; position: fixed; z-index: 30; top: 78px; left: calc(var(--side, 0px) + 280px - 14px);
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    color: #94A3B8; background: #0E1A2B; border: 1px solid #2B3B57; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    transition: left .32s cubic-bezier(.4, 0, .2, 1), color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease; }
  .wf-list-handle:hover { color: #F1F5F9; border-color: #2DD4BF; background: #13233A; transform: scale(1.08); }
  .wf-list-handle:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; }
  .wf-list-handle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .32s cubic-bezier(.4, 0, .2, 1); }
  body.wf-list-folded .wf-list-handle { left: calc(var(--side, 0px) - 8px); }
  body.wf-list-folded .wf-list-handle svg { transform: rotate(180deg); }
  .wf-cust-page.anim { transition: grid-template-columns .32s cubic-bezier(.4, 0, .2, 1); }
  .wf-cust-page.anim .wf-cust-side { transition: opacity .22s ease, visibility 0s linear .32s; }
  .wf-cust-page.folded { grid-template-columns: 0px minmax(0, 1fr); }
  .wf-cust-page.folded .wf-cust-side { opacity: 0; visibility: hidden; overflow: hidden; padding-left: 0; padding-right: 0; border-right-width: 0; }
  .wf-cust-page.anim:not(.folded) .wf-cust-side { transition: opacity .25s ease .08s, visibility 0s; }
}
@media (max-width: 860px) {
  .wf-page.wf-cust-page { grid-template-columns: minmax(0, 1fr); }
  .wf-cust-side { position: static; height: auto; max-height: none; contain: none; border-right: 0; border-bottom: 1px solid var(--border); }
  .wf-cust-main { padding: 18px 16px 40px; }
  .wf-cust-page.has-sel .wf-cust-side { display: none; } /* a phone shows one or the other */
  .wf-cust-page.has-sel .wf-cust-back { display: block; }
  .wf-cust-page:not(.has-sel) .wf-cust-pick { display: none; }
}
.wf-cust-main { transition: opacity .12s ease; }

/* ── Build sheet (an installation's internal build form) ── */
#wfBuild .bs-start { max-width: 760px; }
#wfBuild .bs-start p { line-height: 1.55; }
.wf-btn.ok { background: linear-gradient(135deg, #16A34A, #15803D); box-shadow: 0 8px 22px rgba(22, 163, 74, .3); }
.bs-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 750; background: rgba(251, 191, 36, .14); color: var(--amber); border: 1px solid rgba(251, 191, 36, .3); }
.bs-pill.done { background: rgba(74, 222, 128, .14); color: var(--green); border-color: rgba(74, 222, 128, .35); }
.bs-status { margin-bottom: 16px; }
.bs-status.done { border-color: rgba(74, 222, 128, .35); }
.bs-status-top { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.bs-status-what { flex: 1 1 360px; min-width: 0; }
.bs-status-what p { margin: 8px 0 0; }
.bs-status-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bs-status-tools form { margin: 0; }
.bs-progress-text { font-size: 14px; }
.bs-bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: 8px; max-width: 520px; }
.bs-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 99px; transition: width .3s ease; }
.bs-bar.small { height: 6px; width: 140px; margin-top: 4px; }
.bs-note { white-space: pre-wrap; border-left: 3px solid var(--amber); background: rgba(251, 191, 36, .07); border-radius: 0 8px 8px 0; padding: 8px 12px; }
.bs-people { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.bs-person { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--panel-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.bs-person:has(input:checked) { border-color: var(--link); background: rgba(127, 178, 255, .1); }
.bs-machine { margin-bottom: 16px; }
.bs-machine.built { border-color: rgba(74, 222, 128, .35); }
.bs-form { position: relative; }
.bs-default { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bs-machine-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bs-machine-what { flex: 1 1 220px; min-width: 0; }
.bs-machine-what h2 { margin: 0; font-size: 18px; }
.bs-machine-progress { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bs-where { margin: 14px 0 4px; }
.bs-ids { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; margin: 12px 0 4px; }
.bs-secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.bs-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(12, 24, 40, .55); min-width: 0; }
.bs-fields-sec, .bs-form > .bs-sec { margin-top: 14px; }
.bs-sec h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #BFD3F2; }
.bs-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bs-tick { display: inline-flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; cursor: pointer; font-weight: 650; }
.bs-tick input { width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.bs-tick input:checked + .bs-name { color: #A7F3D0; }
.bs-name { overflow-wrap: anywhere; }
.bs-row .bs-tick { flex: 0 1 38%; }
.bs-qty { width: 64px; flex: none; }
.bs-val { flex: 1 1 auto; min-width: 0; }
.bs-row input:not([type=checkbox]), .bs-add input, .bs-add select { height: 36px; border: 1px solid var(--field-border); border-radius: 9px; background: var(--panel-2); color: var(--ink); padding: 0 10px; font-size: 14px; font-weight: 550; }
.bs-row input:focus, .bs-add input:focus, .bs-add select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(127, 178, 255, .2); }
.bs-val.mono { font-family: "SF Mono", Consolas, Menlo, monospace; letter-spacing: .02em; }
.bs-add { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.bs-add input:first-child { flex: 1 1 auto; min-width: 0; }
.bs-add .wf-btn { height: 36px; padding: 0 14px; }
.bs-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.bs-field-check { display: inline-flex; align-items: center; gap: 9px; height: 42px; font-weight: 650; cursor: pointer; }
.bs-field-check input { width: 20px; height: 20px; accent-color: var(--green); }
.bs-more { margin-top: 10px; }
.bs-more summary { cursor: pointer; color: var(--link); font-size: 13px; font-weight: 650; }
.bs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.bs-steps li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bs-steps .wf-icon-btn, .bs-row .wf-icon-btn { width: 32px; height: 32px; flex: none; opacity: .55; }
.bs-steps .wf-icon-btn:hover, .bs-row .wf-icon-btn:hover { opacity: 1; }
.bs-foot { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.bs-saved { color: var(--green); margin-right: auto; }
@media (max-width: 900px) {
  .bs-secs, .bs-steps { grid-template-columns: 1fr; }
  .bs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bs-ids, .bs-fields { grid-template-columns: 1fr; }
  .bs-row { flex-wrap: wrap; }
  .bs-row .bs-tick { flex: 1 1 100%; }
  .bs-machine-progress { align-items: flex-start; }
}

/* The build sheet card on the installation page. */
.bs-card-line { margin: 4px 0 12px; }
.bs-set-h { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #BFD3F2; }
.bs-set-add { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.bs-set-add input { flex: 1 1 260px; }
.bs-set-add select { width: 130px; }
#wfSettings #build { margin-top: 18px; }
.bs-set-add select.wf-input { width: 140px; flex: none; }
.bs-customer { margin-bottom: 16px; }
.bs-cust-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1.3fr; gap: 14px 20px; }
.bs-cust-grid span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.bs-cust-grid b, .bs-cust-grid a { font-size: 14.5px; overflow-wrap: anywhere; }
.bs-pre { white-space: pre-line; }
@media (max-width: 900px) { .bs-cust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bs-cust-grid { grid-template-columns: 1fr; } }

/* The build sheet on its own (the link techs get): no menu or sidebar. */
body.wf-app:has(#wfBuild.bs-focus) { padding-left: 0; }
#wfBuild.bs-focus { max-width: 1120px; margin: 0 auto; padding-top: 18px; }
.bs-focus-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bs-focus-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.bs-focus-brand b { color: var(--ink); }
.bs-focus-brand img { height: 28px; max-width: 140px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 6px; }
.bs-status-tools form:has(.bs-notify) { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bs-notify { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.bs-notify input { width: 16px; height: 16px; accent-color: var(--green); }
.bs-startover { margin: 18px 0 0; display: flex; justify-content: flex-end; }
.bs-pill[hidden] { display: none; }

/* Home page: Getting started for a new partner's Super Admin and Admins. */
.start-card { max-width: 860px; margin: 6px 0 22px; padding: 20px 22px 16px; border-radius: 18px; border: 1px solid rgba(45, 212, 191, .35); background: linear-gradient(180deg, rgba(45, 212, 191, .07), transparent 60%), #101C2E; }
.start-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.start-head .apps-kicker { margin-bottom: 4px; }
.start-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.start-head form { margin: 0; }
.start-bar { height: 6px; border-radius: 99px; background: #1E2D43; overflow: hidden; margin: 14px 0 6px; }
.start-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1E5FD0, #2DD4BF); transition: width .4s ease; }
.start-steps { list-style: none; margin: 0; padding: 0; }
.start-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid #1E2D43; }
.start-steps li:first-child { border-top: 0; }
.start-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #31445F; display: grid; place-items: center; }
.start-steps li.done .start-tick { background: #14B8A6; border-color: #14B8A6; }
.start-tick svg { width: 13px; height: 13px; fill: none; stroke: #042F2E; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.start-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.start-txt b { font-size: 15px; color: var(--ink); }
.start-txt small { font-size: 13px; color: var(--muted); }
.start-steps li.done .start-txt b { color: var(--muted); text-decoration: line-through; text-decoration-color: #14B8A6; }
.start-go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid #31445F; background: #13233A; color: #DCE8F8; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .15s ease, border-color .15s ease; }
.start-go:hover { transform: translateY(-1px); border-color: #3B82F6; }
.start-help { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.start-help a { color: var(--link); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .start-steps li { flex-wrap: wrap; } .start-go { margin-left: 34px; } }
@media (prefers-reduced-motion: reduce) { .start-bar i, .start-go { transition: none; } }
/* Privacy | Security toggle at the top of the two policy pages (like the About pages' toggle). */
.legal-nav { align-items: center; }
.legal-toggle { display: inline-flex; padding: 3px; border-radius: 12px; background: #0E1B2E; border: 1px solid #263A56; }
.legal-nav .legal-toggle a { padding: 6px 14px; }
.legal-nav .legal-toggle a.on { background: #1E3A5F; color: #F1F5F9; box-shadow: inset 0 0 0 1px #3B82F6; }
@media (max-width: 640px) { .doc-table { display: block; max-width: 100%; overflow-x: auto; } }
/* Printing the Privacy and Security pages (and their PDF): plain white paper.
   The screen background is a soft gradient that would be drawn on every page. */
@media print { body.legal-page { background: #FFFFFF !important; background-image: none !important; } .legal-page .site-footer { border-color: #E2E8F0 !important; } }
/* On a phone the installation's buttons wrap onto lines instead of running
   off the edge, and keep their labels on one line. */
@media (max-width: 700px) {
  .wf-head .wf-actions { flex-wrap: wrap; gap: 8px; }
  .wf-head .wf-actions .wf-btn, .wf-head .wf-actions button { white-space: nowrap; }
}
/* "The install day has passed. Was it installed?" */
.wf-ask-installed { border: 1px solid rgba(245, 158, 11, .55); background: linear-gradient(90deg, rgba(245, 158, 11, .12), transparent 60%), var(--wf-card, rgba(15, 23, 42, .6)); }
.wf-ask-installed h2 { margin: 0 0 4px; font-size: 17px; }
.wf-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.wf-ask-btns form { margin: 0; }
input[type="radio"], input[type="checkbox"] { background-color: transparent !important; }
