/* Edenvale Computers app — white with navy. One stylesheet for the landing page, the client app and the backend. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url("fonts/InterDisplay-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url("fonts/InterDisplay-Bold.woff") format("woff"); }

:root {
  --navy: #0B2447;
  --navy-2: #173A70;
  --ink: #0A1A33;
  --body: #42516B;
  --soft: #6B7890;
  --mist: #F3F6FB;
  --line: #DDE4EF;
  --white: #FFFFFF;
  --led: #12B76A;
  --led-soft: #E3F7EC;
  --amber: #D9820A;
  --amber-soft: #FDF1DC;
  --red: #C0321F;
  --red-soft: #FCE9E6;
  --wa: #128C4A;
  --r-lg: 18px;
  --r: 12px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 36, 71, .06), 0 8px 24px -12px rgba(11, 36, 71, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 12px; }
a { color: var(--navy-2); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #5B8DEF; outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--soft); }
.nowrap { white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; font: 700 14px/1 var(--display); letter-spacing: .02em; }
.brand-name { font: 600 16px/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.brand-link { text-decoration: none; display: inline-block; }
.brand-logo { display: block; height: 44px; width: auto; }
.appbar .brand-logo, .adminbar .brand-logo { height: 38px; }
.l-head .brand-logo { height: 50px; }
.maint .brand-logo, .auth-card .brand-logo { height: 54px; }
.maint .brand-logo { margin: 0 auto; }
.ps-bar img { height: 26px; width: auto; display: block; }


/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #B9C5D8; background: var(--mist); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #0E7A40; border-color: #0E7A40; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.linkbtn { background: none; border: 0; padding: 8px; color: var(--soft); text-decoration: underline; cursor: pointer; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); }
.form label > input:not([type=checkbox]):not([type=radio]), .form label > select, .form label > textarea { display: block; margin-top: 6px; }
.opt { font-weight: 400; color: var(--soft); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-size: 16px; font-weight: 400; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(23, 58, 112, .15); }
input:disabled { background: var(--mist); color: var(--soft); }
input[type=file] { font-size: 14px; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--body); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 8px; padding: 0; }
.form .choice-opt { display: block; font-weight: 600; }
.choice-opt input { position: absolute; opacity: 0; }
.choice-opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.choice-opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice-opt input[type=checkbox] + span::after { content: ""; width: 18px; height: 18px; margin-left: 2px; border-radius: 5px; border: 1.5px solid #B9C5D8; }
.choice-opt input[type=checkbox]:checked + span::after { content: "✓"; display: grid; place-items: center; border-color: #fff; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; }
.choice-opt input:focus-visible + span { outline: 3px solid #5B8DEF; outline-offset: 2px; }
.fine { font-size: 13px; color: var(--soft); margin: 8px 0 0; }

/* ---------- Alerts, pills, LEDs ---------- */
.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; margin: 0 0 14px; }
.alert-ok { background: var(--led-soft); color: #0B6B3D; }
.alert-bad { background: var(--red-soft); color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-live { background: #E6EEFC; color: var(--navy-2); }
.pill-wait { background: var(--amber-soft); color: #8A5300; }
.pill-done { background: var(--led-soft); color: #0B6B3D; }
.pill-off { background: var(--mist); color: var(--soft); }
.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; }
.ref { font: 600 13px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--navy-2); letter-spacing: .01em; }
.led { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--navy-2); }
.led-live { background: var(--led); box-shadow: 0 0 0 4px rgba(18, 183, 106, .2); }
.led-wait { background: var(--amber); box-shadow: 0 0 0 4px rgba(217, 130, 10, .2); }
.led-done { background: var(--led); }
.led-off { background: #A8B3C5; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin: 0 0 14px; }
.card h2 { font-size: 16px; margin-bottom: 12px; }
.card.narrow { max-width: 460px; }
.empty { color: var(--soft); font-size: 14px; padding: 14px; background: var(--mist); border-radius: var(--r); margin: 0; }
.inline-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #0B6B3D; font-weight: 500; margin: 0 0 12px; }
.inline-note .ic { width: 18px; height: 18px; }

/* ---------- Sign-in pages ---------- */
.auth-page { min-height: 100vh; background: var(--mist); display: grid; place-items: start center; padding: 28px 16px 40px; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin: 22px 0 16px; }
.auth-alt { text-align: center; font-size: 14px; margin: 16px 0 0; }

/* ---------- Client app shell ---------- */
.app { background: var(--mist); min-height: 100vh; }
.appbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 16px; padding-top: env(safe-area-inset-top); background: var(--white); border-bottom: 1px solid var(--line); }
.appbar-back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -10px; color: var(--ink); transform: rotate(180deg); }
.appbar-title { font: 600 16px/1 var(--display); color: var(--ink); }
.app-main { max-width: 620px; margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; font-size: 11.5px; font-weight: 500; color: var(--soft); text-decoration: none; }
.tab.is-active { color: var(--navy); font-weight: 600; }
.tab-ic { position: relative; display: grid; }
.tab-ic .ic { width: 23px; height: 23px; }
.dot { position: absolute; top: -2px; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-sizing: content-box; }

.hello { font-size: 24px; margin: 4px 0 16px; }
.page-title { font-size: 24px; margin: 4px 0 16px; }
.lead { font-size: 15px; margin: 0 0 14px; }

.cats { display: grid; gap: 10px; margin-bottom: 26px; }
.cat { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--body); }
.cat:hover { border-color: #B9C5D8; }
.cat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--navy); color: #fff; flex: none; }
.cat-ic .ic { width: 23px; height: 23px; }
.cat-txt { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.35; }
.cat-txt strong { font: 600 16px/1.25 var(--display); color: var(--ink); }
.cat-shop { background: transparent; border-style: dashed; }
.cat-shop .cat-ic { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); }

.block { margin-bottom: 22px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.block-head h2 { font-size: 17px; }
.block-head a { font-size: 14px; font-weight: 500; }

.reqlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reqrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--body); }
.reqrow-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #E6EEFC; color: var(--navy); flex: none; }
.reqrow-main { display: grid; gap: 5px; min-width: 0; flex: 1; justify-items: start; }
.reqrow-top { display: flex; align-items: center; gap: 8px; }
.reqrow-type { font-size: 12.5px; color: var(--soft); }
.reqrow-sum { font-weight: 500; color: var(--ink); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.reqrow-chev { color: #A8B3C5; display: grid; }

.feebox { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 14px; background: var(--navy); color: #D5DEEE; border-radius: var(--r-lg); font-size: 14px; }
.feebox strong { font: 600 19px/1.2 var(--display); color: #fff; }

/* ---------- Request screen ---------- */
.reqhead { margin: 2px 0 16px; }
.reqhead-type { font-size: 13px; font-weight: 600; color: var(--navy-2); margin-bottom: 4px; }
.reqhead h1 { font-size: 22px; overflow-wrap: anywhere; }
.reqhead-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--soft); margin: 8px 0 0; }

.statecard { display: flex; align-items: center; gap: 12px; }
.statecard p { margin: 0; font-weight: 600; color: var(--ink); }

/* The tracker: the app's signature. A rail of status lights, like the LEDs on the edge of a laptop. */
.tracker { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); flex: none; color: #fff; }
.step-dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.step-body { display: grid; gap: 2px; padding-top: 2px; }
.step-name { font-size: 14.5px; color: var(--soft); }
.step-meta { font-size: 12.5px; color: var(--soft); }
.step-done .step-dot { background: var(--navy); border-color: var(--navy); }
.step-done::before { background: var(--navy); }
.step-done .step-name { color: var(--ink); }
.step-skip .step-dot { border-style: dashed; }
.step-skip::before { background: var(--navy); opacity: .35; }
.step-skip .step-name { text-decoration: line-through; text-decoration-color: #B9C5D8; }
.step-now .step-dot { background: var(--led); border-color: var(--led); box-shadow: 0 0 0 5px rgba(18, 183, 106, .18); }
.step-now .step-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--led); animation: ping 2.2s ease-out infinite; }
.step-now .step-name { font: 600 16px/1.3 var(--display); color: var(--ink); }
.step-now .step-meta { color: #0B6B3D; font-weight: 500; }
.tracker-pre { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 16px; background: var(--amber-soft); color: #7A4A00; border-radius: var(--r); font-size: 14px; font-weight: 500; }

.tracker-done { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 16px; background: var(--led-soft); color: #0B6B3D; border-radius: var(--r); font-size: 14px; font-weight: 500; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.1); opacity: 0; } }

.decide { border-color: var(--navy); }
.decide p { font-size: 14px; }
.paycard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.paycard-txt { margin: 0; font-size: 13.5px; line-height: 1.4; }
.paycard-txt strong { display: block; font-size: 14.5px; color: var(--ink); }
.paycard-txt b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paycard-btn { flex: none; border-color: var(--navy); color: var(--navy); }
@media (max-width: 360px) { .paycard { flex-direction: column; align-items: stretch; } }
.payrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.payrow-txt { display: grid; font-size: 14px; }
.payrow-txt strong { color: #fff; font-weight: 600; }
.payrow-txt span { font: 600 20px/1.3 var(--display); color: #fff; font-variant-numeric: tabular-nums; }

.thread { display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--white); border: 1px solid var(--line); justify-self: start; }
.msg-mine { justify-self: end; background: var(--navy); border-color: var(--navy); color: #EAF0FA; border-radius: 16px 16px 4px 16px; }
.msg-quote { border: 2px solid var(--navy); }
.msg p { margin: 0; }
.msg-who { font-size: 12px; font-weight: 600; color: var(--navy-2); margin-bottom: 3px !important; }
.msg-mine .msg-who { color: #AEBCD4; }
.msg-body { font-size: 15px; overflow-wrap: anywhere; }
.msg-time { font-size: 11.5px; color: var(--soft); margin-top: 4px !important; }
.msg-mine .msg-time { color: #AEBCD4; }
.file { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; max-width: 100%; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-note { text-align: center; font-size: 12.5px; color: var(--soft); margin: 2px 0; }
.thread-note span { display: block; opacity: .75; }
.composer { margin-top: 14px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 10px; }
.composer textarea { border: 0; padding: 4px; min-height: 52px; box-shadow: none !important; }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.attach { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy-2); cursor: pointer; min-height: 44px; min-width: 0; }
.attach span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.details summary { font-weight: 600; color: var(--ink); cursor: pointer; }
.details dl, .dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.dl { margin-top: 0; }
dt { color: var(--soft); }
dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.contact-card p { font-size: 14px; }
.install-row { margin: 0 0 6px; }
.signout { text-align: center; }

/* ---------- Contact + fine print ---------- */
.appbar-gap { flex: 1; }
.appbar-link { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); padding: 10px 4px; }
.infopage .app-main { padding-bottom: 40px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cta { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--body); font-size: 13.5px; min-width: 0; }
.cta:hover { border-color: #B9C5D8; }
.cta > span:last-child { display: grid; min-width: 0; overflow-wrap: anywhere; }
.cta strong { font: 600 16px/1.25 var(--display); color: var(--ink); }
.cta .cat-ic { width: 42px; height: 42px; }
.cat-ic-wa { background: var(--wa); }
.iconline { display: flex; gap: 12px; margin: 0; color: var(--ink); }
.iconline .ic { color: var(--navy-2); margin-top: 2px; }
.hours { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 15px; }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li + li { border-top: 1px solid var(--line); }
.linklist a { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; color: var(--body); font-size: 13.5px; }
.linklist li:first-child a { padding-top: 0; }
.linklist li:last-child a { padding-bottom: 0; }
.linklist .ic { color: var(--navy-2); width: 22px; height: 22px; }
.linklist span { display: grid; }
.linklist strong { font-weight: 600; font-size: 15px; color: var(--ink); }
@media (max-width: 360px) { .contact-actions { grid-template-columns: 1fr; } }

.statecard-when { display: block; font: 600 18px/1.3 var(--display); margin-top: 2px; }
.callback { font-size: 17px; color: var(--ink); margin-bottom: 12px; }
.confirmed { display: flex; gap: 10px; padding: 12px 14px; background: var(--led-soft); color: #0B6B3D; border-radius: var(--r); font-size: 15px; }
.confirmed .ic { margin-top: 2px; }
.confirmed .muted { color: #3F7A5B; font-size: 13px; }
.history { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.history li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; padding-top: 0; }
.history-when { color: var(--soft); }
.history strong { color: var(--ink); }

/* ---------- Feedback ---------- */
.feedback-btn { margin-bottom: 14px; }
.stars { border: 0; padding: 0; margin: 0; }
.stars legend { font-weight: 600; font-size: 14px; color: var(--ink); padding: 0; margin-bottom: 6px; }
.stars-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .stars-row label { display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; color: #C3CDDD; }
.stars-row label .ic { width: 38px; height: 38px; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: #E8A20C; }
.stars-row input:checked ~ label .ic { fill: currentColor; }
.stars-row input:focus-visible + label { outline: 3px solid #5B8DEF; outline-offset: 2px; border-radius: 8px; }
.thanks { text-align: center; padding: 30px 20px; }
.thanks h1 { font-size: 24px; margin: 14px 0 8px; }
.thanks-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--led-soft); color: #0B6B3D; }
.thanks-ic .ic { width: 28px; height: 28px; stroke-width: 2.5; }
.rate-card p { font-size: 14px; }
.rating { color: #C9860A; font-size: 17px; letter-spacing: 1px; }
.avg { margin: 0; font-size: 15px; }
.avg strong { font: 700 22px/1 var(--display); color: var(--ink); }

.spin { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-busy, .btn.is-busy:disabled { opacity: 1; cursor: progress; white-space: nowrap; }
.live-bar { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 14px/1 var(--font); box-shadow: 0 10px 24px -8px rgba(11, 36, 71, .5); cursor: pointer; }

.offer-note { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r); background: var(--led-soft); color: #0B6B3D; font-size: 14px; }
.offer-note .ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.offer-note strong { font-weight: 700; }
.pill-promo { background: var(--led-soft); color: #0B6B3D; }
.hero-note strong { color: #0B6B3D; font-weight: 600; }

/* ---------- No-sign-in view page ---------- */
.viewpage .app-main { padding-bottom: 40px; }
.view-hello { font-size: 15px; margin: 0 0 10px; }
.pdf-pages { margin-top: 8px; display: grid; gap: 8px; }
.pdf-pages canvas { width: 100%; height: auto; display: block; background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(11, 36, 71, .18); }
.pdf-loading { font-size: 13px; opacity: .8; margin: 6px 0 !important; }
.file-img img { display: block; max-width: 100%; border-radius: 8px; margin-top: 8px; }
.viewpage .msg { max-width: 100%; }
.view-app p { font-size: 14px; }

/* ---------- Install sheet ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(10, 26, 51, .5); display: grid; align-items: end; }
.sheet { background: var(--white); border-radius: 22px 22px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); max-width: 520px; width: 100%; margin: 0 auto; }
.sheet h2 { font-size: 20px; margin-bottom: 12px; }
.sheet ol { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.sheet-p { font-size: 15px; margin-bottom: 14px; }
.sheet-fine { font-size: 13px; color: var(--soft); margin: -4px 0 16px; }
.sheet-later { margin-top: 10px; }
@media (min-width: 600px) { .sheet-back { align-items: center; } .sheet { border-radius: 22px; } }

/* ---------- Backend ---------- */
.maintbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 10px 22px; background: var(--amber-soft); color: #7A4A00; font-size: 14px; }
.maintbar-act { display: flex; align-items: center; gap: 14px; }
.maintbar a { color: #7A4A00; font-weight: 600; }
.maint .auth-card { margin-top: 12vh; text-align: center; }
.maint .auth-card h1 { margin-top: 26px; }
.admin { background: var(--mist); min-height: 100vh; }
.adminbar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 10px 22px; background: var(--white); border-bottom: 1px solid var(--line); }
.adminnav { display: flex; gap: 4px; flex: 1; }
.adminnav a { padding: 8px 14px; border-radius: 9px; text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--body); }
.adminnav a.is-active { background: var(--navy); color: #fff; }
.adminbar-user { font-size: 13.5px; color: var(--soft); }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 22px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-top h1 { font-size: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-top .muted { margin: 6px 0 0; font-size: 14px; }
.crumb { font-size: 13.5px; color: var(--soft); margin-bottom: 8px; }
.search { display: flex; gap: 8px; }
.search input { min-width: 250px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filters a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--body); }
.filters a span { color: var(--soft); font-variant-numeric: tabular-nums; margin-left: 2px; }
.filters a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters a.is-active span { color: #AEBCD4; }
.filters-gap { flex: 1; }
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--soft); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td a { font-weight: 500; }
.is-unread td { background: #F7FAFF; }
.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
.is-off td { opacity: .5; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { min-height: 34px !important; padding: 4px 10px !important; font-size: 14px !important; max-width: 170px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.replyform { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.payask { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; margin: 0; }
.payask legend { font-weight: 600; font-size: 14px; color: var(--ink); padding: 0 6px; }
.kv { font-size: 14.5px; line-height: 1.7; }
.payline { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.payline-cancelled { opacity: .5; }
.payline-paid strong { color: #0B6B3D; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--navy-2); margin-bottom: 12px; }
.admin .msg { max-width: 82%; }
.jobhead { margin-bottom: 16px; }
.bookbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list a { text-decoration: none; color: var(--ink); min-width: 0; }
.mini-list .ref { margin-right: 6px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.narrow-wide { max-width: 760px; }
.clientcard h2 a { color: inherit; text-decoration: none; }
.clientcard h2 a:hover { text-decoration: underline; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr; } }
.jobhead h1 { font-size: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jobhead .muted { margin: 6px 0 0; font-size: 14px; }
.statusbar { display: flex; gap: 10px; align-items: center; padding: 12px; }
.statusbar select { flex: 0 0 210px; }
.statusbar input { flex: 1; min-width: 0; }
.statusbar .btn { flex: none; }
.staff-composer { margin-top: 16px; background: var(--mist); border: 0; }
.staff-composer textarea { background: transparent; }
.status-pick { display: flex !important; align-items: center; gap: 8px; font-size: 14px !important; margin-right: 6px; }
.status-pick select { width: auto !important; min-height: 40px !important; padding: 6px 10px !important; font-size: 15px !important; font-weight: 500; }
.staff-composer .composer-row { flex-wrap: wrap; }
.staff-composer .fine { margin: 2px 4px 0; }
.quote-check { margin-left: auto; font-size: 14px !important; white-space: nowrap; align-items: center !important; }
.quote-check input { margin: 0 !important; }
.clientcard h2 { margin-bottom: 2px; }
.clientcard .muted { font-size: 14px; margin-bottom: 8px; }
.clientcard .iconline { margin: 8px 0; font-size: 15px; align-items: center; }
.clientcard .iconline .ic { width: 18px; height: 18px; margin: 0; }
.clientcard .btn-wa { margin-top: 12px; }
@media (max-width: 860px) { .statusbar { flex-wrap: wrap; } .statusbar select { flex: 1 1 100%; } .staff-composer .composer-row { gap: 8px; } }

@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 16px; }
  .search input { min-width: 0; flex: 1; }
  .search { width: 100%; }
}
@media (max-width: 380px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Landing page ---------- */
.landing { background: var(--white); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.l-head { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.l-head a.signin { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); padding: 10px 4px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 34px; padding-bottom: 70px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.hero-sub { font-size: 18px; max-width: 30em; margin: 20px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--soft); margin: 16px 0 0; }
.hero-stage { position: relative; display: grid; place-items: center; padding: 26px 0; }
.hero-stage::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 36px; background: var(--mist); }

.phone { position: relative; width: 286px; height: 580px; border-radius: 44px; background: var(--ink); padding: 11px; box-shadow: 0 40px 70px -30px rgba(11, 36, 71, .55), 0 0 0 1.5px #223A60 inset; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: var(--ink); z-index: 2; }
.phone-screen { height: 100%; border-radius: 34px; background: var(--mist); overflow: hidden; display: flex; flex-direction: column; font-size: 11px; }
.ps-bar { display: flex; align-items: center; gap: 7px; padding: 40px 14px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.ps-bar .brand-badge { width: 22px; height: 22px; border-radius: 7px; font-size: 9.5px; }
.ps-bar b { font: 600 11.5px/1 var(--display); color: var(--ink); }
.ps-body { padding: 12px; display: grid; gap: 9px; align-content: start; flex: 1; }
.ps-ref { display: flex; justify-content: space-between; align-items: center; }
.ps-ref .ref { font-size: 10.5px; }
.ps-ref .pill { font-size: 9px; padding: 2px 7px; }
.ps-title { font: 600 14px/1.2 var(--display); color: var(--ink); margin: 0; }
.ps-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.ps-card .step { gap: 9px; padding-bottom: 10px; }
.ps-card .step::before { left: 7px; top: 17px; }
.ps-card .step-dot { width: 16px; height: 16px; border-width: 1.5px; }
.ps-card .step-dot .ic { width: 9px; height: 9px; }
.ps-card .step-name { font-size: 10.5px; }
.ps-card .step-now .step-name { font-size: 11.5px; }
.ps-card .step-meta { font-size: 9px; }
.ps-card .step-body { padding-top: 0; }
.ps-card .step-now .step-dot { box-shadow: 0 0 0 3px rgba(18, 183, 106, .18); }
.ps-msg { background: var(--navy); color: #EAF0FA; border-radius: 12px 12px 12px 3px; padding: 9px 11px; justify-self: start; max-width: 92%; line-height: 1.4; }
.ps-msg b { display: block; font-size: 9px; color: #AEBCD4; margin-bottom: 2px; }
.ps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 7px 0 12px; text-align: center; font-size: 8.5px; color: var(--soft); }
.ps-tabs span:first-child { color: var(--navy); font-weight: 600; }
.ps-title { margin-top: 2px !important; }
.ps-cat { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 13px; line-height: 1.3; color: var(--body); }
.ps-cat .cat-ic { width: 34px; height: 34px; border-radius: 10px; }
.ps-cat .cat-ic .ic { width: 17px; height: 17px; }
.ps-cat b { display: block; font: 600 12.5px/1.25 var(--display); color: var(--ink); }
.ps-sub { font: 600 11.5px/1 var(--display); color: var(--ink); margin: 6px 0 0; }
.ps-job { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 10px; display: grid; gap: 7px; }
.ps-job p { margin: 0; font-weight: 500; color: var(--ink); }
.ps-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ps-rail i { height: 5px; border-radius: 3px; background: var(--line); }
.ps-rail i.on { background: var(--navy); }
.ps-rail i.now { background: var(--led); }
.ps-tabs .ic { width: 15px; height: 15px; display: block; margin: 0 auto 2px; }

.band { padding: 72px 0; }
.band-mist { background: var(--mist); }
.band h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 700; letter-spacing: -.03em; max-width: 17em; }
.band-lead { font-size: 17px; max-width: 36em; margin: 16px 0 0; }

/* One place vs scattered: the argument, drawn. */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; margin-top: 40px; }
.cmp { border-radius: 22px; padding: 22px; }
.cmp h3 { font-size: 17px; margin-bottom: 4px; }
.cmp > p { font-size: 14px; margin: 0; }
.cmp-before { background: #fff; border: 1.5px dashed #C3CDDD; }
.cmp-after { background: var(--navy); color: #C9D5EA; display: flex; flex-direction: column; }
.cmp-after .onejob { margin-top: auto; margin-bottom: auto; }
.cmp-after h3 { color: #fff; }
.cmp-arrow { display: grid; place-items: center; color: var(--navy); }
.cmp-arrow svg { width: 44px; height: 44px; }
.scatter { position: relative; height: 290px; margin-top: 16px; }
.chip { position: absolute; display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.3; color: var(--ink); max-width: 200px; }
.chip b { font-size: 11px; font-weight: 600; }
.chip-wa b { color: #128C4A; } .chip-mail b { color: #B4421F; } .chip-call b { color: #6B7890; } .chip-fb b { color: #1F5BD8; } .chip-ig b { color: #B5267A; }
.chip-wa { left: 0; top: 0; transform: rotate(-5deg); }
.chip-mail { right: 2%; top: 18px; transform: rotate(4deg); }
.chip-fb { left: 6%; top: 82px; transform: rotate(3deg); }
.chip-ig { right: 0; top: 116px; transform: rotate(-3deg); }
.chip-call { left: 2%; top: 172px; transform: rotate(-2deg); }
.sticky { position: absolute; right: 10%; bottom: 0; width: 132px; min-height: 104px; padding: 14px 12px 10px; background: #FCE588; color: #5A4300; font-size: 13.5px; line-height: 1.3; font-weight: 500; transform: rotate(5deg); box-shadow: 0 10px 18px -8px rgba(90, 67, 0, .45); }
.sticky::before { content: ""; position: absolute; top: -8px; left: 50%; width: 52px; height: 16px; margin-left: -26px; background: rgba(255, 255, 255, .6); transform: rotate(-3deg); }
.cmp h3 { margin-bottom: 0; }
.onejob { margin-top: 14px; background: #fff; border-radius: 16px; padding: 14px; color: var(--body); display: grid; gap: 10px; }
.onejob-top { display: flex; justify-content: space-between; align-items: center; }
.onejob-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.onejob-req { display: flex; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.onejob-req + .onejob-req { padding-top: 10px; border-top: 1px solid var(--line); }
.onejob-req .cat-ic { width: 36px; height: 36px; border-radius: 10px; }
.onejob-req .cat-ic .ic { width: 18px; height: 18px; }
.onejob-req > span:last-child { display: grid; gap: 4px; flex: 1; min-width: 0; }
.onejob-req .pill { font-size: 11.5px; padding: 2px 8px; }
.onejob-line .led { margin-top: 5px; width: 8px; height: 8px; }
.onejob-line span span { display: block; font-size: 12px; color: var(--soft); }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 34px; }
.svc { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.svc .cat-ic { width: 44px; height: 44px; }
.svc h3 { font-size: 19px; margin-bottom: 4px; }
.svc p { font-size: 15px; margin: 0; }
.svc .price { font-weight: 600; color: var(--ink); }

.steps3 { list-style: none; counter-reset: s; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.steps3 li { counter-increment: s; }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 16px/1 var(--display); margin-bottom: 14px; }
.steps3 h3 { font-size: 18px; margin-bottom: 6px; }
.steps3 p { font-size: 15px; margin: 0; }

.closing { background: var(--navy); color: #C9D5EA; text-align: center; padding: 70px 0; }
.closing h2 { color: #fff; margin: 0 auto 12px; }
.closing p { max-width: 30em; margin: 0 auto 26px; font-size: 17px; }
.closing .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.closing .hero-cta { justify-content: center; }
.closing .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }

.l-foot { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: 14px; color: var(--body); }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.2fr .7fr; gap: 32px; }
.l-foot h4 { margin: 0 0 12px; font: 600 14px/1.2 var(--display); color: var(--ink); }
.l-foot p { margin: 0 0 8px; line-height: 1.6; }
.l-foot a { color: var(--navy-2); text-decoration: none; }
.l-foot a:hover { text-decoration: underline; }
.foot-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; line-height: 1.5; }
.foot-dl dt { color: var(--soft); }
.foot-dl dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; line-height: 1.5; }
.foot-base { margin-top: 32px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; padding-bottom: 48px; }
  .scatter { height: 420px; }
  .chip-wa { top: 0; } .chip-mail { top: 58px; } .chip-fb { top: 118px; left: 2%; } .chip-ig { top: 178px; } .chip-call { top: 238px; left: 4%; } .sticky { bottom: 4px; right: 8%; }
  .hero-stage { padding: 20px 0 0; }
  .compare { grid-template-columns: 1fr; }
  .cmp-arrow svg { transform: rotate(90deg); }
  .services { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .band { padding: 52px 0; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Backend request list: colour by what the client did. */
.flag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.flag-new { background: var(--navy-2); }
.flag-message { background: #6D3FD1; }
.flag-accepted { background: #0E9F5A; }
.flag-declined { background: var(--red); }
.flag-quiet { color: inherit; font-weight: 600; }
.flag-quiet.flag-accepted { background: var(--led-soft); color: #0B6B3D; }
.flag-quiet.flag-declined { background: var(--red-soft); color: var(--red); }
.flag-key { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.flag-key .flag { margin: 0; }
.alert-new td { background: #F3F7FF; }
.alert-new td:first-child { box-shadow: inset 4px 0 0 var(--navy-2); }
.alert-message td { background: #F5F0FF; }
.alert-message td:first-child { box-shadow: inset 4px 0 0 #6D3FD1; }
.alert-accepted td { background: #E9F8F0; }
.alert-accepted td:first-child { box-shadow: inset 4px 0 0 #0E9F5A; }
.alert-declined td { background: #FDEDEA; }
.alert-declined td:first-child { box-shadow: inset 4px 0 0 var(--red); }

.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #A52A19; border-color: #A52A19; color: #fff; }

.danger-zone { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.danger-zone summary { cursor: pointer; color: var(--red); font-weight: 600; font-size: 14px; }
.danger-zone p { margin: 10px 0; }

.tick-col { text-align: center; width: 70px; }
.tick { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.tick-del { accent-color: var(--red); }
.is-off td { color: var(--soft); }
.is-del td { background: var(--red-soft); }
.delbar { position: sticky; bottom: 12px; display: none; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; background: #fff; border: 2px solid var(--red); border-radius: var(--r); box-shadow: var(--shadow); }
.delbar span { flex: 1; min-width: 200px; color: var(--red); font-weight: 600; }

.delpass input { width: 220px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; }
.delpass input:focus { outline: 2px solid var(--red); outline-offset: 1px; }


/* Shown as soon as a Delete box is ticked, even before the script runs. */
.delbar.is-open, body:has(.tick-del:checked) .delbar { display: flex; }
tr:has(.tick-del:checked) td { background: var(--red-soft); }

/* Request page: Print job card + Edit details */
.edit-details { margin-top: 12px; }
.edit-details > summary { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.edit-details > summary::-webkit-details-marker { display: none; }
.edit-details > summary .btn { cursor: pointer; }
.edit-details[open] > summary span.btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.edit-form { margin-top: 12px; max-width: 860px; }
.edit-form .muted { margin: 0 0 12px; font-size: 13.5px; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 14px; }
.edit-grid .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .edit-grid { grid-template-columns: 1fr; } }

/* Backend: Send as Message / Quote / Invoice */
.sendas { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.sendas label { margin: 0 !important; display: block !important; }
.sendas input { position: absolute; opacity: 0; pointer-events: none; }
.sendas span { display: block; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--soft); cursor: pointer; white-space: nowrap; }
.sendas input:checked + span { background: var(--navy); color: #fff; }
.sendas input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }

/* Backend: small x to delete a wrong attachment; a second tap on "Delete" confirms */
.file-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.file-del { display: inline-flex; align-items: center; }
.file-del[open] { gap: 4px; }
.file-del > summary { list-style: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; color: var(--soft); background: rgba(255,255,255,.85); border: 1px solid var(--line); }
.file-del > summary::-webkit-details-marker { display: none; }
.file-del > summary:hover, .file-del[open] > summary { color: #fff; background: var(--red); border-color: var(--red); }
.file-del form { display: inline; margin: 0; }
.file-del-go { font: 600 12px var(--font); color: #fff; background: var(--red); border: 0; border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.btn-sm { padding: 5px 10px !important; font-size: 13px !important; }

.sendas label.is-off span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.sendas.needs-pick { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.hint-warn { color: var(--red) !important; font-weight: 600; }

/* Backend: send box above the conversation (newest first) */
.staff-composer + .thread, .replyform + .thread { margin-top: 16px; }

/* Backend: Update requests */
.upd-intro { margin: -6px 0 14px; }
.upd-card { max-width: 820px; margin-bottom: 16px; }
.upd-card h2 .muted { font-weight: 500; font-size: 15px; }
.upd-card textarea { width: 100%; }
.upd-list { list-style: none; margin: 0; padding: 0; }
.upd { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.upd:first-child { border-top: 0; }
.upd-tick { margin: 2px 0 0; }
.upd-body p { margin: 0; color: var(--ink); line-height: 1.5; }
.upd-body .fine { margin-top: 4px; color: var(--soft); }
.upd.is-done .upd-body > p:first-child { text-decoration: line-through; color: var(--soft); }
.badge-soft { background: var(--navy-2); }

.upd-body { flex: 1; }
.upd-del-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--soft); cursor: pointer; margin: 2px 0 0; }
.upd:has(.upd-del:checked) { background: var(--red-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.upd-delbar { display: none; position: sticky; bottom: 12px; max-width: 820px; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 2px solid var(--red); border-radius: var(--r); box-shadow: var(--shadow); }
.upd-delbar span { flex: 1; color: var(--red); font-weight: 600; }
body:has(.upd-del:checked) .upd-delbar { display: flex; }

.upd-decide { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.upd-dec { margin: 0; }
.upd-dec label { display: flex !important; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--soft); cursor: pointer; margin: 0 !important; white-space: nowrap; }
.upd-dec-approved .tick { accent-color: #0E9F5A; }
.upd-dec-denied .tick { accent-color: var(--red); }
.upd-dec-approved label:has(:checked) { color: #0B6B3D; }
.upd-dec-denied label:has(:checked) { color: var(--red); }
.upd-body .pill { margin-top: 6px; }
.pill-deny { background: var(--red-soft); color: var(--red); }

.staff-email { min-width: 210px; }

.time-note { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 11px 14px; border-radius: var(--r); background: #EEF3FB; color: var(--navy-2); font-size: 15px; }
.time-note svg { width: 20px; height: 20px; flex: none; }
