:root {
  --bg0: #050b16; --bg1: #0b1f3a; --bg2: #0d2242;
  --glass: rgba(255,255,255,.055); --glass2: rgba(255,255,255,.09);
  --glass-border: rgba(120,170,255,.18); --glass-border2: rgba(120,170,255,.35);
  --ink: #e8f0fb; --muted: #8ba3c4; --faint: #5f7aa0;
  --accent: #4db6ff; --accent2: #1e88e5; --ok: #34d399; --warn: #f5b301;
  --danger: #ff6b6b; --chipbg: rgba(77,182,255,.12);
  --orange: #ff9500;
  --panel: #10294d; --line: rgba(255,255,255,.09);
  --glow: 0 0 22px rgba(77,182,255,.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html, body { height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, #12294d 0%, var(--bg0) 55%),
              radial-gradient(900px 600px at 110% 30%, #0d2b52 0%, transparent 60%),
              var(--bg0);
  background-attachment: fixed;
  color: var(--ink); max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column; min-height: 100vh;
}
.statusbar { color: #7f97ba; font-size: 11px;
  display: flex; justify-content: flex-end; padding: 6px 18px 2px; font-weight: 600; }
.hdr { background: linear-gradient(180deg, rgba(11,31,58,.9) 0%, rgba(13,34,66,.6) 100%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  color: #fff; padding: 10px 16px 12px; border-bottom: 1px solid var(--glass-border2);
  position: sticky; top: 0; z-index: 40; }
.hdr .backrow { display: flex; align-items: center; gap: 10px; }
.hdr .back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  font-size: 26px; color: var(--accent); cursor: pointer; line-height: 1; margin-left: -8px; border-radius: 50%;
  background: rgba(77,182,255,.08); border: 1px solid rgba(77,182,255,.25); flex-shrink: 0;
  transition: transform .06s ease, background .15s; -webkit-tap-highlight-color: transparent; }
.hdr .back:active { transform: scale(.92); background: rgba(77,182,255,.22); }
.hdr .hdlogo { height: 30px; width: 30px; object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(77,182,255,.5); box-shadow: 0 0 12px rgba(77,182,255,.4); flex-shrink: 0; }
.hdr .brand { font-family: "Anton", sans-serif; font-size: 15px; letter-spacing: 3px; color: #9cc4f0; }
.hdr .brand span { color: #fff; text-shadow: 0 0 12px rgba(77,182,255,.6); }
.hdr .elrow { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; gap: 8px; }
.hdr .elttl { font-family: "Anton", sans-serif; font-size: 19px; letter-spacing: 1px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.hdr .sub { font-size: 11px; color: #9db4d4; margin-top: 2px; }
.chip { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px;
  background: rgba(77,182,255,.18); color: var(--accent); letter-spacing: .5px; white-space: nowrap;
  border: 1px solid rgba(77,182,255,.3); }
.chip.warn { background: rgba(245,179,1,.15); color: var(--warn); border-color: rgba(245,179,1,.3); }
.chip.ok { background: rgba(52,211,153,.15); color: var(--ok); border-color: rgba(52,211,153,.3); }
.prog { padding: 10px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--glass-border); background: rgba(5,11,22,.5); backdrop-filter: blur(10px); }
.prog .bar { flex: 1; height: 8px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; }
.prog .fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 6px; transition: width .3s; box-shadow: var(--glow); }
.prog .txt { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
main { padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sechead { font-family: "Anton", sans-serif; font-size: 12px; letter-spacing: 2.5px; color: var(--faint);
  text-transform: uppercase; margin: 4px 4px 0; }
.card { background: var(--glass); border-radius: 16px; padding: 13px 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); box-shadow: 0 8px 32px rgba(0,0,0,.35); }
.card h3 { font-size: 12px; font-weight: 800; color: var(--ink); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 1px; }
.card h3 .right { margin-left: auto; font-size: 9.5px; font-weight: 800; color: var(--accent);
  background: rgba(77,182,255,.12); padding: 3px 9px; border-radius: 12px; letter-spacing: .5px; }
/* buttons */
.btn { display: flex; align-items: center; gap: 12px; background: var(--glass);
  border: 1px solid var(--glass-border); border-radius: 16px; padding: 13px 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,.35); cursor: pointer; width: 100%; text-align: left;
  transition: transform .06s ease, border-color .2s; font-family: inherit; }
.btn:active { transform: scale(.985); }
.btn:hover { border-color: var(--glass-border2); }
.btn .icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: rgba(255,255,255,.07); }
.btn .icon.orange, .menu-item .icon.orange {
  background: linear-gradient(135deg, var(--pink2) 0%, var(--pink) 100%);
  color: #1a1206; font-family: "Anton", sans-serif; font-size: 17px; letter-spacing: 1px;
  box-shadow: 0 0 14px rgba(255,45,149,.35); }
.btn .icon.orange .sm, .menu-item .icon.orange .sm { font-size: 11px; }
.btn .meta { flex: 1; min-width: 0; }
.btn .ref { font-family: "Anton", sans-serif; font-size: 10px; letter-spacing: 2px; color: var(--accent); }
.btn .ttl { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 1px; }
.btn .dsc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.btn .st { font-size: 10px; font-weight: 800; padding: 4px 9px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.07); color: var(--muted); letter-spacing: .3px; }
.btn .st.done { background: rgba(52,211,153,.15); color: var(--ok); }
.btn .st.now { background: rgba(245,179,1,.15); color: var(--warn); }
.btn .chev { color: var(--faint); font-size: 18px; flex-shrink: 0; }
.addbtn { border: 1.5px dashed var(--accent); border-radius: 14px; padding: 12px; text-align: center;
  font-size: 12px; font-weight: 800; color: var(--accent); background: rgba(77,182,255,.07);
  cursor: pointer; width: 100%; font-family: inherit; }
.addbtn:hover { background: rgba(77,182,255,.14); }
.menu-grid { display: flex; flex-direction: column; gap: 10px; }
.menu-item { display: flex; align-items: center; gap: 12px; background: var(--glass);
  border: 1px solid var(--glass-border); border-radius: 16px; padding: 14px; cursor: pointer;
  font-family: inherit; width: 100%; text-align: left; backdrop-filter: blur(16px); }
.menu-item .icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px; background: rgba(255,255,255,.07); }
.menu-item .meta { flex: 1; }
.menu-item .ttl { font-size: 14px; font-weight: 700; color: var(--ink); }
.menu-item .dsc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.menu-item .chev { color: var(--faint); font-size: 18px; }
.menu-item:active { transform: scale(.985); }
.menu-item .soon { font-size: 9px; font-weight: 800; color: var(--faint); background: rgba(255,255,255,.07);
  padding: 3px 8px; border-radius: 12px; }
.menu-item.live { border-color: rgba(77,182,255,.45); background: rgba(77,182,255,.08); }
.menu-item.live .ttl { color: var(--accent); }
/* notes */
.notes textarea { width: 100%; border: 1px solid rgba(77,182,255,.4); border-radius: 12px; padding: 12px;
  font-size: 16px; font-family: inherit; min-height: 140px; resize: vertical;
  background: rgba(5,11,22,.5); color: var(--ink); line-height: 1.5; }
.notes textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.notes textarea::placeholder { color: var(--faint); }
/* measurements */
.mline { border: 1px dashed rgba(140,170,220,.3); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  background: rgba(255,255,255,.03); }
.mline .top { display: flex; align-items: center; gap: 8px; }
.mline .nm { font-size: 12.5px; font-weight: 700; color: var(--ink); flex: 1; }
.mline .nm input { width: 100%; border: none; background: transparent; font-size: 12.5px; font-weight: 700;
  color: var(--ink); padding: 2px 0; font-family: inherit; }
.mline .nm input:focus { outline: none; }
.mline .del { color: var(--danger); font-size: 18px; cursor: pointer; padding: 6px 8px; -webkit-tap-highlight-color: transparent; }
.mline .vals { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.mline .vals input { flex: 1; border: 1px solid var(--glass-border); border-radius: 8px; padding: 9px 10px;
  font-size: 16px; background: rgba(5,11,22,.5); color: var(--ink); font-weight: 700; text-align: center; font-family: inherit; }
.mline .vals select { border: 1px solid var(--glass-border); border-radius: 8px; padding: 9px 4px; font-size: 16px;
  background: rgba(5,11,22,.7); color: var(--ink); font-weight: 700; width: 92px; font-family: inherit; }
.field label { font-size: 11px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; }
.field label .unit { color: var(--accent); font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; margin-top: 4px; border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 9px 10px; font-size: 16px; background: rgba(5,11,22,.5); color: var(--ink); font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* photos */
.photostrip { display: flex; gap: 8px; flex-wrap: wrap; }
.ph { width: 72px; height: 72px; border-radius: 12px; border: 1px dashed rgba(140,170,220,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 8.5px; color: var(--faint); background: rgba(255,255,255,.03); font-weight: 600; cursor: pointer; overflow: hidden; position: relative; }
.ph .ic { font-size: 18px; }
.ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ph .rm { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.7); color: #fff;
  border-radius: 50%; width: 28px; height: 28px; font-size: 13px; display: flex; align-items: center;
  justify-content: center; z-index: 2; }
/* chat */
.chat { background: rgba(11,31,58,.35); border: 1px solid var(--glass-border); display: flex; flex-direction: column;
  backdrop-filter: blur(16px); }
.chat #chatMsgs { max-height: 46vh; min-height: 120px; overflow-y: auto; padding-right: 2px; -webkit-overflow-scrolling: touch; }
.chat .chhdr { font-size: 12px; font-weight: 800; color: var(--ink); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.chat .hint { font-size: 10.5px; color: var(--faint); margin-bottom: 6px; }
.msg { display: flex; gap: 8px; margin-top: 8px; }
.msg .av { width: 26px; height: 26px; border-radius: 50%; background: rgba(77,182,255,.25); color: var(--accent);
  font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800;
  border: 1px solid rgba(77,182,255,.4); }
.msg .bub { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 4px 12px 12px 12px;
  padding: 8px 10px; flex: 1; backdrop-filter: blur(8px); }
.msg .bub .who { font-size: 10px; font-weight: 800; color: var(--accent); letter-spacing: .4px; }
.msg .bub p { font-size: 12.5px; color: var(--ink); line-height: 1.5; margin-top: 3px; }
.msg .bub ul { margin: 4px 0 0 14px; }
.msg .bub li { font-size: 12.5px; color: var(--ink); line-height: 1.5; margin-bottom: 3px; }
.msg.me { flex-direction: row-reverse; }
.msg.me .av { background: var(--accent); color: #04101f; }
.msg.me .bub { background: linear-gradient(135deg, rgba(30,136,229,.35), rgba(13,34,66,.8));
  border-color: rgba(77,182,255,.35); border-radius: 12px 4px 12px 12px; }
.msg.me .bub .who { color: #9cc4f0; }
.msg.me .bub p, .msg.me .bub li { color: #e8f0fb; }
/* read receipts */
.ticks { font-size: 11px; font-weight: 800; margin-left: 6px; letter-spacing: 1px; }
.tick-sent { color: #5f7aa0; }
.tick-recv { color: #8ba3c4; }
.tick-read { color: var(--accent); text-shadow: 0 0 8px rgba(77,182,255,.8); }
/* typing animation */
.bub.typing { display: flex; align-items: center; gap: 4px; padding: 12px 14px; }
.bub.typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: typingBlink 1.2s infinite; }
.bub.typing .dot:nth-child(2) { animation-delay: .2s; }
.bub.typing .dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBlink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chatinput { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.chatinput .attach { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid var(--glass-border); border-radius: 50%;
  width: 42px; height: 42px; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.chatimg { max-width: 100%; border-radius: 10px; margin: 4px 0; display: block; max-height: 200px; }
/* attach chooser menu — iOS-style bottom sheet */
.attach-backdrop { position: fixed; inset: 0; background: rgba(3,8,16,.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 65;
  display: flex; align-items: flex-end; }
.attachmenu { width: 100%; max-width: 520px; margin: 0 auto; background: rgba(11,31,58,.97);
  border: 1px solid var(--glass-border2); border-top-left-radius: 22px; border-top-right-radius: 22px;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.6); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px; }
.attachopt { padding: 13px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.attachopt:hover { background: rgba(77,182,255,.15); }
.attachopt.cancel { color: var(--faint); text-align: center; border-top: 1px solid var(--glass-border);
  margin-top: 4px; padding-top: 12px; }
.chatinput input { flex: 1; border: 1px solid var(--glass-border); border-radius: 18px; padding: 10px 14px;
  font-size: 16px; background: rgba(5,11,22,.5); color: var(--ink); font-family: inherit; }
.chatinput input::placeholder { color: var(--faint); }
.chatinput .send { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #04101f; border: none;
  border-radius: 18px; padding: 11px 18px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: var(--glow); }
.donebar { display: flex; gap: 10px; }
.donebar div { flex: 1; border-radius: 14px; padding: 12px; text-align: center; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; }
.donebar .save { background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); color: var(--muted); }
.donebar .finish { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #04101f; box-shadow: var(--glow); }
.donebar .finish.done { background: linear-gradient(135deg, #059669, var(--ok)); color: #04101f; }
.donebar .delete { background: rgba(255,82,82,.08); border: 1px solid rgba(255,107,107,.35); color: #ff8a8a; }
/* sticky Save & sync bar — always visible while editing the sequence */
.sticky-save { position: sticky; top: 0; z-index: 60; padding: 8px 2px;
  background: linear-gradient(to bottom, rgba(11,31,58,.97) 60%, rgba(11,31,58,0)); }
.sticky-save .save { background: linear-gradient(135deg, var(--pink2), var(--pink)); color: #fff;
  border: none; box-shadow: 0 0 16px rgba(255,45,149,.35); }
.sticky-save .save:active { transform: scale(.98); }
/* element delete (list row) + add-element dialog */
.el-del { color: var(--danger); font-size: 15px; font-weight: 800; cursor: pointer;
  padding: 8px 2px 8px 10px; flex-shrink: 0; opacity: .75; -webkit-tap-highlight-color: transparent; }
.el-del:hover { opacity: 1; }
.job-del { color: var(--danger); font-size: 14px; font-weight: 800; cursor: pointer;
  padding: 8px 4px 8px 10px; flex-shrink: 0; opacity: .7; -webkit-tap-highlight-color: transparent; }
.job-del:hover { opacity: 1; }
.dlg-field { margin: 8px 0 2px; text-align: left; }
.dlg-field label { font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: .5px;
  text-transform: uppercase; display: block; margin-bottom: 5px; }
.dlg-input { width: 100%; border: 1px solid var(--glass-border); border-radius: 10px; padding: 11px 12px;
  font-size: 16px; background: rgba(5,11,22,.5); color: var(--ink); font-family: inherit; }
.dlg-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.dlg-input::placeholder { color: var(--faint); }
.attachopt .ico { font-size: 15px; }
.hidden { display: none !important; }
.foot { color: #5f7aa0; font-size: 11px; text-align: center; padding: 12px; }
.empty { text-align: center; color: var(--faint); font-size: 12px; padding: 24px 12px; }
/* logo banner on home */
.logo-banner { background: rgba(11,31,58,.5); border-radius: 18px; padding: 22px 16px; text-align: center;
  border: 1px solid rgba(77,182,255,.35); margin-bottom: 4px; backdrop-filter: blur(16px);
  box-shadow: 0 0 40px rgba(30,136,229,.15); }
.logo-banner img { height: 120px; width: 120px; object-fit: cover; border-radius: 22px;
  border: 1px solid rgba(77,182,255,.5); box-shadow: 0 0 30px rgba(77,182,255,.4); }
.logo-banner .tag { font-family: "Anton", sans-serif; color: var(--accent); font-size: 13px; letter-spacing: 4px;
  margin-top: 12px; text-transform: uppercase; text-shadow: 0 0 14px rgba(77,182,255,.5); }
.toast { position: fixed; top: 78px; left: 50%; transform: translateX(-50%);
  background: rgba(11,31,58,.95); border: 1px solid var(--glass-border2); color: #fff; font-size: 12.5px; font-weight: 700; padding: 11px 18px;
  border-radius: 20px; opacity: 0; transition: opacity .25s; z-index: 50; pointer-events: none; backdrop-filter: blur(12px); }
.toast.show { opacity: 1; }
.syncnote { font-size: 11px; text-align: center; color: var(--faint); padding: 2px 0 0; }
.syncnote.ok { color: var(--ok); }
.syncnote.pending { color: var(--accent); }
.syncnote.warn { color: var(--warn); }
/* work sequence widget tiles */
/* Start Job — hands the job to Tui */
.startjob-wrap { padding: 4px 0 14px; }
.sj-btn {
  width: 100%; min-height: 52px; border: none; border-radius: 16px;
  background: linear-gradient(135deg, var(--ok), #0ea5e9); color: #04220f;
  font-family: "Anton", sans-serif; font-size: 17px; letter-spacing: 1.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; box-shadow: 0 6px 24px rgba(52,211,153,.35);
}
.sj-btn:active { transform: scale(.985); }
.sj-btn:disabled { opacity: .5; cursor: default; }
.startjob-done {
  display: flex; align-items: center; gap: 12px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35);
  border-radius: 16px; padding: 12px 14px;
}
.startjob-done .sj-dot {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--ok); color: #04220f; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.startjob-done .sj-txt { display: flex; flex-direction: column; gap: 2px; }
.startjob-done .sj-txt b { font-size: 14px; color: var(--ink); }
.startjob-done .sj-sub { font-size: 11.5px; color: var(--muted); }
.startjob-done .sj-gaps { color: var(--warn); font-weight: 600; }

.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws-tile { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 22px;
  padding: 12px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px;
  min-height: 180px; }
.ws-top { display: flex; align-items: center; gap: 8px; }
.ws-num { font-family: "Anton", sans-serif; font-size: 13px; color: #1a1206; background: linear-gradient(135deg, var(--pink2), var(--pink));
  border-radius: 9px; padding: 3px 7px; letter-spacing: 1px; box-shadow: 0 0 12px rgba(255,45,149,.35); flex-shrink: 0; }
.ws-title { flex: 1; min-width: 0; background: transparent; border: none; color: var(--ink);
  font-weight: 700; font-size: 12px; font-family: inherit; padding: 2px 0; }
.ws-title:focus { outline: none; border-bottom: 1px solid var(--glass-border2); }
.ws-title::placeholder { color: var(--faint); }
.ws-del { color: var(--danger); font-size: 17px; cursor: pointer; flex-shrink: 0; padding: 6px 8px; -webkit-tap-highlight-color: transparent; }
.ws-desc { width: 100%; border: 1px solid var(--glass-border); border-radius: 12px; padding: 8px;
  font-size: 16px; font-family: inherit; background: rgba(5,11,22,.45); color: var(--ink);
  resize: vertical; min-height: 64px; line-height: 1.45; }
.ws-desc:focus { outline: none; border-color: var(--accent); }
.ws-desc::placeholder { color: var(--faint); }
.ws-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.hz-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ws-ph { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid var(--glass-border); flex-shrink: 0; }
.ws-ph img { width: 100%; height: 100%; object-fit: cover; }
.ws-ph .rm { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.7); color: #fff;
  border-radius: 50%; width: 22px; height: 22px; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.ws-empty { font-size: 11px; color: var(--faint); padding: 4px 0; }
.ws-cam { display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px dashed rgba(255,45,149,.5); border-radius: 12px; padding: 10px; font-size: 11.5px;
  font-weight: 800; color: var(--pink); cursor: pointer; background: rgba(255,45,149,.08); }
.ws-add { border: 1.5px dashed var(--accent); border-radius: 22px; padding: 14px; text-align: center;
  font-size: 12px; font-weight: 800; color: var(--accent); background: rgba(77,182,255,.06);
  cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 90px; }
.ws-add:hover { background: rgba(77,182,255,.12); }
.ws-loadtpl { border: 1.5px dashed rgba(255,45,149,.55); border-radius: 18px; padding: 12px; text-align: center;
  font-size: 12px; font-weight: 800; color: var(--pink); background: rgba(255,45,149,.08);
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ws-loadtpl:hover { background: rgba(255,45,149,.14); }
/* confirm dialog */
.dlg-backdrop { position: fixed; inset: 0; background: rgba(3,8,16,.65); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dlg { width: 100%; max-width: 340px; background: rgba(11,31,58,.98); border: 1px solid var(--glass-border2);
  border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.7); padding: 20px; text-align: center; }
.dlg-icon { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 800; color: var(--danger); background: rgba(255,107,107,.12);
  border: 1px solid rgba(255,107,107,.35); }
.dlg-icon svg { width: 22px; height: 22px; }
.dlg-title { font-family: "Anton", sans-serif; font-size: 18px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; }
.dlg-body { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 10px 0 16px; }
.dlg-body b { color: var(--ink); }
.dlg-actions { display: flex; gap: 10px; }
.dlg-btn { flex: 1; border: none; border-radius: 12px; padding: 12px; font-size: 13px; font-weight: 800;
  cursor: pointer; font-family: inherit; }
.dlg-btn.cancel { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid var(--glass-border); }

/* branded document preview overlay (in-app "View" flow) */
.docprev { position: fixed; inset: 0; z-index: 400; background: #050b16; display: flex; flex-direction: column; }
.docprev-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px;
  background: rgba(11,31,58,.98); border-bottom: 1px solid var(--glass-border2); flex-wrap: wrap; }
.docprev-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.docprev-code { font-family: "Anton", sans-serif; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--pink2) 0%, var(--pink) 100%); padding: 4px 10px; border-radius: 8px; letter-spacing: 1px; }
.docprev-title { color: var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.docprev-chip { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px;
  padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: var(--ink); white-space: nowrap; }
.docprev-chip.ok { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.5); color: var(--ok); }
.docprev-chip.warn { background: rgba(245,179,1,.16); border-color: rgba(245,179,1,.5); color: #ffd968; }
.docv-cur { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px;
  color: var(--ok); border: 1px solid rgba(52,211,153,.5); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
/* form instance selector — "Add Another Form" */
.inst-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px 0; }
.inst-chip { border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 11.5px; font-weight: 800; cursor: pointer; font-family: inherit; }
.inst-chip.on { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #04101f; border-color: transparent; }
/* header "＋ New Form" — centred, single entry point for new forms */
.newform-wrap { display: flex; justify-content: center; padding: 2px 0 10px; }
.newform-btn { border: 1px dashed rgba(77,182,255,.55); background: rgba(77,182,255,.08); color: var(--accent);
  border-radius: 999px; padding: 10px 26px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; }
.dlg-btn.alt { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid var(--glass-border); }
.prompt-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.prompt-ta { width: 100%; resize: vertical; font-family: inherit; }
.ai-note { font-size: 11px; color: var(--ok); padding: 6px 12px 0; }
.docprev-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.docprev-actions .approve { background: linear-gradient(135deg, #059669, var(--ok)); color: #04101f; }
.docprev-x { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.06); color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; }
.docprev-frame { flex: 1; width: 100%; border: none; background: #fff; }
.hs-req.dl.approved { background: rgba(52,211,153,.16); border: 1px solid rgba(52,211,153,.55); color: var(--ok); }
.hs-req.dl.modified { background: rgba(245,179,1,.14); border: 1px solid rgba(245,179,1,.5); color: #ffd968; }
.dlg-btn.danger { background: linear-gradient(135deg, #ff5252, var(--danger)); color: #1a0505; box-shadow: 0 0 16px rgba(255,107,107,.35); }
.dlg-btn.go { background: linear-gradient(135deg, var(--pink2), var(--pink)); color: #fff; box-shadow: 0 0 16px rgba(255,45,149,.35); }
.dlg-wide { max-width: 420px; text-align: left; }
.tpl-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; max-height: 55vh; overflow-y: auto; }
.tpl-row { border: 1px solid var(--glass-border); border-radius: 14px; padding: 10px 12px; cursor: pointer;
  background: rgba(255,255,255,.03); transition: background .15s; }
.tpl-row:hover { background: rgba(255,149,0,.1); border-color: rgba(255,149,0,.4); }
.tpl-ttl { font-weight: 800; font-size: 13px; color: var(--ink); }
.tpl-scope { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
/* H&S document tiles */
.hs-tile { min-height: 130px; cursor: pointer; justify-content: flex-start; gap: 6px; }
.hs-label { font-weight: 800; font-size: 13px; color: var(--ink); line-height: 1.3; }
.hs-status { font-size: 12px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; margin-top: 8px; }
.hs-status.creating { color: var(--warn); }
.hs-status.ok { color: var(--ok); }
.hs-req-row { display: flex; gap: 8px; margin-top: 8px; }
.hs-req { flex: 1; border: none; border-radius: 8px; padding: 8px 6px; font-size: 11.5px; font-weight: 800;
  cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.hs-req:active { transform: scale(.97); }
.hs-req.ghost { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid var(--glass-border); }
.hs-req.go { background: linear-gradient(135deg, var(--pink2), var(--pink)); color: #fff;
  box-shadow: 0 0 12px rgba(255,45,149,.28); }
/* template preview inside report/H&S detail */
.tpl-head { font-family: "Anton", sans-serif; font-size: 12px; letter-spacing: 1px; color: var(--orange);
  text-transform: uppercase; margin: 14px 0 8px; }
.tpl-view { background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 12px 14px; max-height: 42vh; overflow-y: auto; }
.tpl-sec { font-weight: 800; font-size: 11.5px; color: var(--accent); text-transform: uppercase;
  letter-spacing: .7px; margin: 10px 0 4px; }
.tpl-sec:first-child { margin-top: 0; }
.tpl-fields { list-style: none; padding: 0; margin: 0 0 4px; }
.tpl-fields li { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 2px 0; }
.tpl-fields .req { color: var(--orange); }
.tpl-opts { color: var(--accent); font-size: 11px; }
/* fillable document forms */
.docform { display: flex; flex-direction: column; gap: 12px; }
.dfield { display: flex; flex-direction: column; gap: 5px; text-align: left; position: relative; }
.flab { font-size: 12px; font-weight: 700; color: var(--ink); }
.flab .req { color: var(--orange); }
.fin { background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); border-radius: 12px;
  color: var(--ink); font-family: inherit; font-size: 16px; padding: 11px 12px; width: 100%; }
input[type=number].fin::-webkit-inner-spin-button, input[type=number].fin::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fin:focus { outline: none; border-color: rgba(255,45,149,.6); background: rgba(255,255,255,.09); }
.fin::placeholder { color: rgba(157,180,214,.55); }
textarea.fin { resize: vertical; min-height: 64px; }
select.fin { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pink) 50%), linear-gradient(135deg, var(--pink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select.fin option { background: var(--panel); color: var(--ink); }
.funit { font-size: 11px; font-weight: 800; color: var(--pink); text-transform: uppercase; letter-spacing: .5px; }
.doc-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px;
  position: sticky; bottom: -2px; z-index: 6; padding: 12px 2px 8px;
  background: linear-gradient(to top, rgba(11,31,58,.98) 55%, rgba(11,31,58,0)); }
.doc-save { background: linear-gradient(135deg, var(--pink2), var(--pink)); color: #fff; border: none;
  border-radius: 12px; padding: 12px 18px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 0 16px rgba(255,45,149,.3); }
.doc-save.ghost { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid var(--glass-border);
  box-shadow: none; }
.doc-save.del { color: var(--danger); border-color: rgba(255,107,107,.4); }
.staff-sig { margin-top: 12px; padding: 12px; border: 1px dashed var(--glass-border2); border-radius: 12px; background: rgba(255,255,255,.03); }
.staff-sig .staff-name { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); border-radius: 8px;
  color: var(--ink); font-size: 13px; padding: 9px 10px; font-family: inherit; }
.staff-sig-meta { font-size: 11px; color: var(--faint); margin-top: 6px; }
.dwr-elements { margin-top: 10px; }
.dwr-element { border: 1px dashed var(--glass-border2); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,.03); }
.dwr-elem-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 12px;
  color: var(--pink); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.dwr-elem-head .rm { color: var(--danger); font-size: 15px; cursor: pointer; padding: 4px; }
.dwr-element .fin { margin-bottom: 8px; }
.dwr-element textarea.fin { min-height: 48px; }
.doc-saved { font-size: 11px; color: var(--muted); }
.doc-state { font-size: 13px; font-weight: 800; color: var(--pink); padding: 10px 0 4px; }
.doc-state-sub { font-size: 12px; color: var(--muted); padding-bottom: 4px; }
.sigwrap { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sig-canvas { width: 100%; max-width: 340px; height: 110px; background: #fff; border-radius: 12px;
  border: 1px solid var(--glass-border); touch-action: none; }
.sig-clear { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 8px 14px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; }
/* address autocomplete dropdown */
.ac-list { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 4px;
  background: var(--panel); border: 1px solid var(--glass-border2); border-radius: 14px; overflow: hidden;
  max-height: 240px; overflow-y: auto; box-shadow: 0 16px 48px rgba(0,0,0,.55); }
.ac-opt { padding: 11px 13px; font-size: 12.5px; color: var(--ink); cursor: pointer;
  border-bottom: 1px solid var(--line); line-height: 1.4; }
.ac-opt:last-child { border-bottom: none; }
.ac-opt:hover, .ac-opt:active { background: rgba(255,149,0,.14); }
/* Client Coms */
.cc-card { background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); border-radius: 16px;
  padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cc-chip { border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); color: var(--muted);
  border-radius: 20px; padding: 10px 14px; font-size: 12px; font-weight: 800; cursor: pointer; }
.cc-chip.on { background: rgba(255,45,149,.15); border-color: rgba(255,45,149,.55); color: var(--pink); }
.cc-ta { min-height: 72px; }
.cc-attach { display: flex; gap: 10px; }
.cc-doc { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed rgba(77,182,255,.45);
  border-radius: 12px; padding: 11px 16px; font-size: 12px; font-weight: 800; color: var(--accent);
  cursor: pointer; background: rgba(77,182,255,.06); }
.cc-docs { display: flex; flex-direction: column; gap: 5px; }
.cc-docname { font-size: 12px; color: var(--accent); font-weight: 700; display: flex; justify-content: space-between;
  align-items: center; background: rgba(77,182,255,.07); border: 1px solid rgba(77,182,255,.25);
  border-radius: 10px; padding: 7px 10px; }
.cc-docname .rm { cursor: pointer; color: var(--muted); padding: 6px 8px; font-size: 14px; }
.cc-list { display: flex; flex-direction: column; gap: 10px; }
.cc-entry { background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 12px 14px; }
.cc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cc-el { font-family: "Anton", sans-serif; font-size: 11px; letter-spacing: 1px; color: var(--pink);
  background: rgba(255,45,149,.1); border: 1px solid rgba(255,45,149,.35); border-radius: 8px; padding: 2px 8px; }
.cc-at { font-size: 11.5px; color: var(--muted); }
.cc-text { font-size: 13px; color: var(--ink); line-height: 1.5; margin-bottom: 6px; white-space: pre-wrap; }
.cc-entry .chatimg { width: 100%; max-width: 220px; border-radius: 12px; margin-top: 6px; border: 1px solid var(--glass-border); }
/* chat document chip */
.doc-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(77,182,255,.1);
  border: 1px solid rgba(77,182,255,.35); color: var(--accent); border-radius: 10px; padding: 7px 11px;
  font-size: 12px; font-weight: 700; margin: 4px 0; max-width: 100%; word-break: break-all; }
/* Receipt capture */
.rc-cam { min-height: 110px; font-size: 13px; border-radius: 16px; }
.cc-el.rc-exp { color: var(--accent); border-color: rgba(77,182,255,.4); background: rgba(77,182,255,.1); }
.rc-del { margin-top: 8px; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: var(--danger);
  border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent; }
.rc-del:active { transform: scale(.97); }
.rc-broken { display: flex; align-items: center; justify-content: center; min-height: 64px; margin-top: 6px;
  background: rgba(255,255,255,.04); border: 1px dashed var(--glass-border); border-radius: 10px;
  color: var(--faint); font-size: 11px; font-style: italic; }
.rc-kind-toggle { display: flex; gap: 6px; margin: 8px 0; }
.rc-kind-btn { flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); color: var(--muted);
  border-radius: 8px; padding: 7px 6px; font-size: 11.5px; font-weight: 800; cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent; }
.rc-kind-btn.on { background: rgba(255,45,149,.15); border-color: rgba(255,45,149,.55); color: var(--pink); }
.rc-kind-btn:active { transform: scale(.97); }
.wheel-row { display: flex; gap: 8px; align-items: center; }
.wheel { position: relative; height: 132px; overflow-y: auto; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border); border-radius: 14px; flex: 1; min-width: 0; }
.wheel::-webkit-scrollbar { display: none; }
.wheel-inner { padding: 44px 0; }
.wheel .wi { height: 44px; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; font-size: 15px; font-weight: 700; color: var(--muted); }
.wheel .wi.sel { color: var(--pink); }
.wheel::after { content: ''; position: absolute; left: 8px; right: 8px; top: 44px; height: 44px;
  border-top: 1px solid rgba(255,45,149,.5); border-bottom: 1px solid rgba(255,45,149,.5);
  border-radius: 8px; pointer-events: none; }
.hs-scope { font-size: 11px; color: var(--faint); line-height: 1.4; }
.hs-detail { margin-top: 2px; }
.hs-note { font-size: 12px; margin-top: 10px; }
.hs-note.warn { color: var(--warn); }
.hs-note.ok { color: var(--ok); }

/* Report tiles: report name leads, acronym as a quiet chip (Tui's call 2026-08-21) */
.rp-tile .ws-num { font-size: 11px; background: rgba(255,45,149,.14); color: var(--pink); padding: 2px 7px; }

/* Workflow pack — hot pink, contractor execution section */
:root { --pink: #ff2d95; --pink2: #ff5fa8; }
.wf-btn { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--pink2) 0%, var(--pink) 100%); color: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; min-height: 56px; box-shadow: 0 2px 10px rgba(255,45,149,.25); }
.wf-btn .wf-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.wf-btn .meta { flex: 1; }
.wf-btn .ttl { font-weight: 700; font-size: 15px; }
.wf-btn .dsc { font-size: 11.5px; opacity: .85; }
.wf-btn .chev { color: #fff; }
.wf-item { display: flex; align-items: center; gap: 11px; background: var(--glass); border-radius: 12px; padding: 12px 13px; margin-bottom: 8px; min-height: 48px; }
.wf-item .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 14px; }
.wf-item.done { opacity: .62; }
.wf-item.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.wf-item .txt { flex: 1; font-size: 14px; }
.wf-item .qty { font-size: 11px; color: var(--muted); }
.wf-item .qty-in { width: 64px; flex-shrink: 0; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 700; padding: 7px 8px; text-align: center;
  font-family: inherit; min-height: 34px; }
.wf-item .qty-in:focus { outline: none; border-color: var(--pink); background: rgba(255,45,149,.08); }
.wf-item .qty-in::placeholder { color: var(--faint); font-weight: 600; }
.qty-preview { background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: var(--muted); white-space: pre-wrap; max-height: 140px; overflow-y: auto; }
.wf-ai-qty { background: transparent; border: 1px dashed rgba(255,45,149,.5); color: var(--pink); box-shadow: none; }
.wf-item .rm { font-size: 15px; color: var(--muted); padding: 8px; }
.wf-item .edit { font-size: 15px; color: var(--muted); padding: 8px 2px; cursor: pointer; flex-shrink: 0; }
.wf-item .edit:hover { color: var(--pink); }
.wf-item .edit-in { flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--pink); border-radius: 8px;
  color: var(--ink); font-size: 14px; padding: 7px 9px; font-family: inherit; min-width: 0; }
.wf-item .edit-in:focus { outline: none; background: rgba(255,45,149,.08); }
.wf-add { display: flex; gap: 8px; margin: 12px 0; }
.wf-add input { flex: 1; }
.wf-add button { background: var(--pink); color: #fff; border: none; border-radius: 12px; padding: 0 16px; font-weight: 700; min-height: 44px; }
.wf-ai { background: var(--pink); color: #fff; border: none; border-radius: 12px; padding: 12px 16px; font-weight: 700; min-height: 44px; width: 100%; margin-bottom: 10px; }

/* Work Sequence — append-only first impression page. No delete, no status.
   Tap a tile → full-screen step detail card. */
.ws-tappable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.step-card-backdrop { position: fixed; inset: 0; z-index: 600; background: rgba(3,8,18,.86); display: flex; align-items: stretch; justify-content: center; padding: 0; }
.step-card { background: #081527; width: 100%; max-width: 520px; height: 100%; display: flex; flex-direction: column; border-radius: 0; }
.step-card-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
.step-card-title { flex: 1; font-weight: 800; font-size: 16px; }
.step-card-close { background: rgba(255,255,255,.08); color: var(--ink); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 16px; flex-shrink: 0; }
.step-card-body { flex: 1; overflow-y: auto; padding: 14px; }
.step-card-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink); margin-bottom: 14px; white-space: pre-wrap; }
.step-card-photos { display: flex; flex-direction: column; gap: 12px; }
.step-ph img { width: 100%; border-radius: 14px; display: block; cursor: zoom-in; }
.step-none { color: var(--muted); font-size: 13px; padding: 10px 0; }
.photo-fs { position: fixed; inset: 0; z-index: 700; background: #000; display: flex; align-items: center; justify-content: center; }
.photo-fs img { max-width: 100%; max-height: 100%; }
.photo-fs-close { position: absolute; top: 14px; right: 16px; color: #fff; font-size: 20px; background: rgba(255,255,255,.14); border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.photo-fs-dl { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--pink2), var(--pink)); color: #fff;
  border: none; border-radius: 24px; padding: 12px 26px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 0 18px rgba(255,45,149,.4); -webkit-tap-highlight-color: transparent; }
.photo-fs-dl:active { transform: translateX(-50%) scale(.97); }

/* Workflow scope checklist — task tiles with toggle, photos, notes */
.wf-task { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.wf-task.done { border-color: rgba(52,211,153,.5); }
.wf-task-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wf-task-title { flex: 1; font-weight: 700; font-size: 14px; }
.wf-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; cursor: pointer; -webkit-tap-highlight-color: transparent; flex-shrink: 0; }
.wf-toggle input { display: none; }
.wf-toggle-slider { width: 46px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.12); position: relative; transition: .2s; flex-shrink: 0; }
.wf-toggle-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.wf-toggle input:checked + .wf-toggle-slider { background: var(--ok); }
.wf-toggle input:checked + .wf-toggle-slider::after { left: 23px; }
.wf-task-photos { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.wf-task-ph { flex-shrink: 0; }
.wf-task-ph img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; cursor: zoom-in; display: block; }
.wf-task-cam { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; background: rgba(255,255,255,.07); border-radius: 10px; padding: 9px; min-height: 40px; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wf-task-notes { width: 100%; margin-top: 8px; }

/* Work Scope — document-first presentation */
.wsd { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.wsd-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--pink); padding-bottom: 10px; margin-bottom: 12px; }
.wsd-title { font-size: 18px; font-weight: 900; letter-spacing: .3px; }
.wsd-ref { font-size: 11px; color: var(--muted); font-weight: 800; }
.wsd-sec { margin-bottom: 12px; }
.wsd-sec-t { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--pink); margin-bottom: 3px; }
.wsd-sec-b { font-size: 14px; line-height: 1.55; white-space: pre-wrap; color: var(--ink); }
.wsd-actions { display: flex; gap: 8px; margin-bottom: 12px; }
