/* SE TOOLS APP – look & feel (same style as the SE Elec app) */

@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700 900; font-display: swap; src: url('fonts/oswald-latin-700-normal.woff2') format('woff2'); }

:root {
  --accent1: #ff9500;
  --accent2: #8a3b00;
  --bg: #1c1f21;
  --panel: #202325;
  --field: #26292b;
  --line: #333;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --orange: #ff9500;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

button { font-family: inherit; cursor: pointer; touch-action: manipulation; }
button, .tile, .name-btn { -webkit-user-select: none; user-select: none; }

.app {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(16px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
}

.screen { display: none; animation: fadeIn .18s ease; }
.screen.active { display: block; }
.hidden { display: none !important; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- metal buttons ---------- */
.metal-btn {
  width: 100%;
  border: 2px solid rgba(0,0,0,0.5);
  border-radius: 14px;
  padding: 18px 16px;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.55), 0 0 22px -6px var(--accent1);
  margin-bottom: 16px;
  transition: transform .08s ease, filter .08s ease;
}
.metal-btn:active, .tile:active, .name-btn:active, .qty-btn:active, .category-button:active { transform: scale(0.97); filter: brightness(0.92); }
.metal-btn.secondary { box-shadow: inset 0 2px 2px rgba(255,255,255,0.4), inset 0 -3px 5px rgba(0,0,0,0.45), 0 6px 14px rgba(0,0,0,0.55); --accent-bg: linear-gradient(145deg, #6b6b6b, #2a2a2a); color: #eee; animation: none !important; }
.metal-btn.submit { box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.55), 0 0 22px -6px #6fe36f; --accent-bg: linear-gradient(145deg, #6fe36f, #1f6b1f); color: #111; animation: none !important; }

/* ---------- start screen ---------- */
.start-screen {
  position: fixed;
  inset: 0;
  overflow: hidden;
  text-align: center;
  background-color: #000;
  background-image: linear-gradient(rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.55) 100%), var(--van-photo, none);
  background-size: cover;
  background-position: center top;
  z-index: 5;
}
.start-logo {
  position: absolute;
  left: 50%;
  top: 70.9%;
  transform: translate(-50%, -50%);
  width: 74.5%;
  max-width: 480px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.75)) drop-shadow(0 0 18px rgba(255,255,255,0.35)) drop-shadow(0 8px 20px rgba(0,0,0,0.9));
  transition: transform .15s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.start-logo:active { transform: translate(-50%, -50%) scale(0.96); }
.start-logo.holding { animation: holdPulse 1.4s linear forwards; }
@keyframes holdPulse { to { transform: translate(-50%, -50%) scale(0.9); filter: drop-shadow(0 0 18px var(--orange)); } }
.tap-text {
  position: absolute; left: 0; right: 0; top: 82%;
  font-size: 30px; font-weight: 600; letter-spacing: 3px; color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.95);
}
.tap-text span { color: #ff5a1f; }
.version { position: absolute; left: 12px; right: 12px; bottom: calc(26px + var(--safe-bottom)); font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.45); letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------- titles ---------- */
.screen-title { text-align: center; font-size: 34px; font-weight: 700; text-transform: uppercase; margin: 8px 0 24px; color: #f0f0f0; letter-spacing: 1px; }
.progress { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #8a8a8a; margin-top: 4px; }
.sub-title { text-align: center; color: var(--muted); font-size: 17px; margin: -14px 0 22px; letter-spacing: .5px; }

/* ---------- name grid ---------- */
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.name-btn {
  border: 2px solid rgba(0,0,0,0.5);
  border-radius: 14px;
  padding: 26px 8px;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.55), inset 0 -3px 5px rgba(0,0,0,0.45), 0 6px 14px rgba(0,0,0,0.5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- menu ---------- */
.menu-head { text-align: center; margin: 4px 0 22px; }
.menu-logo { width: 62%; max-width: 260px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.35)); -webkit-touch-callout: none; user-select: none; -webkit-user-drag: none; }
.hello { font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; line-height: 1.1; }
.rego-chip { box-shadow: 0 0 14px -4px var(--accent1); display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 999px; border: 2px solid var(--accent1); color: var(--accent1); font-size: 16px; font-weight: 600; letter-spacing: 2px; }

.tile {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  min-height: 92px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 2px solid rgba(0,0,0,0.5);
  border-radius: 16px;
  text-align: left;
  color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.55), 0 0 22px -6px var(--accent1);
  transition: transform .08s ease, filter .08s ease;
}
.tile svg { width: 40px; height: 40px; flex: none; }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-label { font-size: 25px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; }
.tile-sub { font-size: 15px; font-weight: 500; opacity: .75; letter-spacing: .5px; margin-top: 2px; }
.tile.soon { filter: grayscale(.85) brightness(.75); }
.badge {
  position: absolute; top: -8px; right: -6px;
  min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 15px; border: 2px solid var(--bg);
  background: #ff3b30; color: #fff;
  font-size: 17px; font-weight: 700; line-height: 26px; text-align: center;
}

.info-card {
  border: 2px dashed #ff8a3d; border-radius: 14px; padding: 14px 16px; margin: 6px 0 16px;
  color: #ffc79a; font-size: 18px; line-height: 1.35; background: #2a2420;
}
.info-card b { color: #fff; }
.info-card button {
  margin-top: 10px; width: 100%; border: none; border-radius: 10px; padding: 14px;
  font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: #111; background: linear-gradient(145deg, #ffb35c, #c25e00);
}
.outbox-line { text-align: center; color: #ffb37a; font-size: 16px; letter-spacing: .5px; margin: 6px 0 12px; }

/* ---------- forms ---------- */
label { display: block; font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; color: #ccc; letter-spacing: .5px; }
input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 24px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #555;
  background: var(--field);
  color: #f0f0f0;
  margin-bottom: 20px;
  -webkit-appearance: none;
  appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%; background-size: 7px 7px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent1); }
input[readonly] { color: #999; background: #1e2021; }

/* ---------- accordion ---------- */
.category-block { margin-bottom: 14px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(0,0,0,0.5); }
.category-button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  text-align: left; border: none; padding: 18px 18px;
  font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.55), inset 0 -3px 5px rgba(0,0,0,0.45);
}
.category-button .count { font-size: 15px; background: rgba(0,0,0,0.75); color: #fff; border-radius: 999px; padding: 2px 10px; letter-spacing: .5px; }
.category-button .chev { width: 12px; height: 12px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); margin-left: 10px; transition: transform .15s; }
.category-block.open .chev { transform: rotate(-135deg); }
.cat-right { display: flex; align-items: center; }
.category-items { padding: 20px 16px 4px; background: var(--panel); }

.item-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: none; }
.item-name { font-size: 22px; font-weight: 600; line-height: 1.15; }
.qty-control { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; align-items: center; }
.qty-btn {
  height: 58px; font-size: 30px; font-weight: 700; border-radius: 12px; border: none; color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.4);
}
.qty-control input { height: 58px; margin-bottom: 0; text-align: center; font-size: 26px; font-weight: 700; }
.item-row.has-qty .qty-control input { border-color: var(--accent1); }
.cable-control select { font-size: 20px; margin-bottom: 10px; }
.cable-control input { margin-bottom: 0; }
.misc-notes { min-height: 130px; resize: none; font-size: 20px; }

.limit-info { font-size: 15px; font-weight: 500; letter-spacing: .5px; color: var(--muted); margin-top: -4px; }
.limit-info b { color: var(--accent1); font-weight: 700; }
.limit-hit { font-size: 17px; font-weight: 700; color: #ffb37a; text-align: center; }
.request-btn {
  width: 100%; border: 2px dashed #ff8a3d; border-radius: 12px; padding: 12px; background: transparent;
  color: #ff8a3d; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.request-box { background: #2a2420; border: 2px solid #ff8a3d; border-radius: 12px; padding: 14px; }
.request-box .req-label { font-size: 16px; font-weight: 700; text-transform: uppercase; color: #ffb37a; margin-bottom: 8px; }
.request-box .qty-control { margin-bottom: 12px; }
.request-box textarea { min-height: 100px; resize: none; font-size: 19px; margin-bottom: 0; }

.button-row { display: flex; gap: 12px; margin-top: 22px; }
.button-row .metal-btn { flex: 1; margin-bottom: 0; }

.review-box {
  background: var(--field); border: 1px solid #444; border-radius: 12px; padding: 18px;
  white-space: pre-wrap; font-size: 19px; line-height: 1.5; font-weight: 500; color: #eee;
}

/* ---------- banner + overlays ---------- */
.status-banner {
  position: fixed; left: 14px; right: 14px; top: calc(12px + var(--safe-top)); z-index: 999;
  padding: 16px 18px; border-radius: 14px;
  font-size: 20px; font-weight: 700; text-align: center; color: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transform: translateY(-160%); transition: transform .25s ease;
  max-width: 540px; margin: 0 auto;
}
.status-banner.show { transform: translateY(0); }
.status-banner.success { background: linear-gradient(145deg, #6fe36f, #1f6b1f); color: #0c2b0c; }
.status-banner.error { background: linear-gradient(145deg, #ff6f6f, #7a1f1f); color: #fff; }
.status-banner.info { background: linear-gradient(145deg, #ffb35c, #c25e00); color: #1a0d00; }

.busy-overlay {
  position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  font-size: 24px; font-weight: 700; color: #fff; text-align: center; letter-spacing: 1px;
}
.busy-overlay.show { display: flex; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 6px solid rgba(255,255,255,0.15); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice-overlay {
  position: fixed; inset: 0; z-index: 997; background: rgba(0,0,0,0.88);
  display: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(16px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
}
.notice-overlay.show { display: block; }
.notice-inner { max-width: 560px; margin: 0 auto; }
.notice-card { background: var(--panel); border: 2px solid rgba(0,0,0,0.5); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.7); margin: 8px 0 20px; }
.notice-head { padding: 18px; background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2))); color: var(--accent-text, #111); box-shadow: inset 0 2px 2px rgba(255,255,255,0.55), inset 0 -3px 5px rgba(0,0,0,0.45); }
.notice-kicker { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .75; }
.notice-job { font-size: 32px; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.notice-summary { font-size: 20px; font-weight: 700; margin-top: 4px; }
.notice-body { padding: 16px 18px; }
.notice-item { font-size: 19px; font-weight: 500; line-height: 1.35; padding: 12px 0; border-bottom: 1px solid var(--line); white-space: pre-wrap; color: #eee; }
.notice-item:last-child { border-bottom: none; }
.notice-item textarea { margin-top: 10px; margin-bottom: 0; min-height: 100px; font-size: 19px; resize: none; border-color: #ff6f6f; }
.notice-time { font-size: 14px; color: #888; letter-spacing: 1px; margin-top: 6px; }
.notice-count { text-align: center; font-size: 15px; color: #aaa; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- PIN pad ---------- */
.pin-overlay { position: fixed; inset: 0; z-index: 996; background: rgba(10,11,12,0.97); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.pin-overlay.show { display: flex; }
.pin-title { font-size: 26px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.pin-sub { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.pin-dots { display: flex; gap: 18px; margin-bottom: 28px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--orange); }
.pin-dots span.on { background: var(--orange); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px; }
.pin-pad button { height: 78px; border-radius: 50%; border: 2px solid #3a3d40; background: #26292b; color: #fff; font-size: 30px; font-weight: 600; }
.pin-pad button:active { background: #3a3d40; }
.pin-pad button.ghost { border: none; background: transparent; font-size: 17px; letter-spacing: 1px; color: #aaa; }

/* ---------- personal background (Van Stock screens) ---------- */
.tech-bg {
  position: fixed; inset: 0; z-index: 0; display: none;
  background-color: #000;
  background-image: var(--tech-bg, none);
  background-size: cover; background-position: center;
}
.tech-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tech-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
body.with-bg .tech-bg { display: block; }
.app { position: relative; z-index: 1; }
body.with-bg .category-items { background: rgba(24,26,28,0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.with-bg input, body.with-bg select, body.with-bg textarea { background-color: rgba(30,33,35,0.9); }
body.with-bg input[readonly] { background-color: rgba(20,22,23,0.85); }
body.with-bg .review-box { background: rgba(30,33,35,0.88); }
body.with-bg .screen-title, body.with-bg .progress, body.with-bg label { text-shadow: 0 2px 8px rgba(0,0,0,0.9); }

/* ---------- special finishes (config.js > LOOKS > finish) ---------- */
@keyframes glint { from { background-position: 0 0, -240px 0, 0 0; } to { background-position: 160px 160px, 480px 0, 0 0; } }
body.finish-glitter .metal-btn, body.finish-glitter .tile, body.finish-glitter .category-button,
body.finish-glitter .qty-btn, body.finish-glitter .notice-head, .name-btn.finish-glitter { animation: glint 7s linear infinite; }
@media (prefers-reduced-motion: reduce) { body.finish-glitter .metal-btn, body.finish-glitter .tile, body.finish-glitter .category-button, body.finish-glitter .qty-btn, body.finish-glitter .notice-head, .name-btn.finish-glitter { animation: none; } }

/* background stays on from the menu onwards: let it show through the menu too */
body.with-bg .info-card { background: rgba(42,36,32,0.88); }
body.with-bg .hello, body.with-bg .outbox-line { text-shadow: 0 2px 10px rgba(0,0,0,0.95); }
body.with-bg .rego-chip { background: rgba(0,0,0,0.7); color: #fff; }

/* =====================================================================
 * SE TOOLS additions
 * ===================================================================== */

/* start screen: bright sunset ute photo, logo in the middle */
.start-screen {
  background-image: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.45) 100%), url('img/ute.jpg');
  background-position: center center;
}
.start-logo { top: 50%; width: 78%; }
.tap-text { top: auto; bottom: calc(110px + var(--safe-bottom)); }
.version { color: rgba(255,255,255,0.8); text-shadow: 0 2px 6px rgba(0,0,0,0.9); }

/* name groups */
.name-group-title { font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; text-align: center; }
.name-btn { background: linear-gradient(145deg, #ffb35c, #c25e00); font-size: 23px; padding: 22px 8px; }

/* home picture tiles (same idea as the old app) */
.pic-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 18px; }
.pic-tile {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  border: 2px solid rgba(0,0,0,0.5); border-radius: 16px; background: #26292b;
  box-shadow: 0 6px 14px rgba(0,0,0,0.55), 0 0 22px -8px var(--orange);
  transition: transform .08s ease, filter .08s ease;
}
.pic-tile:active { transform: scale(0.97); filter: brightness(0.9); }
.pic-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.pic-label { padding: 12px 6px; font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; text-align: center; line-height: 1.1;
  background: linear-gradient(145deg, var(--accent1), var(--accent2)); color: #111; }

.msg-btn {
  position: relative; width: 100%; margin: 0 0 16px; padding: 16px; border-radius: 14px;
  border: 2px solid #ff8a3d; background: #2a2420; color: #ffc79a;
  font-size: 22px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.msg-btn .badge { top: -10px; right: -6px; }
.msg-btn.urgent { animation: pulseBorder 1.6s ease-in-out infinite; }
@keyframes pulseBorder { 50% { box-shadow: 0 0 22px 2px rgba(255,138,61,0.6); } }

.mine { background: var(--panel); border: 1px solid #3a3d40; border-radius: 14px; padding: 14px 16px; }
.mine-title { font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mine-row { display: flex; justify-content: space-between; gap: 10px; font-size: 19px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mine-row:last-child { border-bottom: none; }
.mine-row span:last-child { color: var(--muted); font-size: 16px; white-space: nowrap; }
.mine-empty { color: var(--muted); font-size: 18px; }

/* tool picker */
.cat-block { margin-bottom: 16px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(0,0,0,0.5); background: var(--panel); }
.cat-head { padding: 12px 16px; font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.35), inset 0 -3px 5px rgba(0,0,0,0.35); }
.tool-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border: none; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; font-size: 21px; font-weight: 500; }
.tool-row:last-child { border-bottom: none; }
.tool-row .box { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 3px solid #777; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #111; }
.tool-row.on { background: rgba(255,149,0,0.14); }
.tool-row.on .box { background: var(--orange); border-color: var(--orange); }
.tool-row .tname { flex: 1; min-width: 0; line-height: 1.2; }
.tool-row .who { display: block; font-size: 15px; color: var(--muted); letter-spacing: .5px; margin-top: 2px; }
.tool-row.taken { opacity: .45; }
.tool-row.taken .box { border-style: dashed; }
.empty-msg { text-align: center; color: var(--muted); font-size: 20px; padding: 30px 10px; }
.sticky-row { position: sticky; bottom: 0; padding: 12px 0 calc(6px + var(--safe-bottom)); background: linear-gradient(rgba(28,31,33,0), var(--bg) 30%); }

.notes-box { min-height: 160px; resize: none; font-size: 21px; }

/* signature */
.sig-wrap { position: relative; border-radius: 14px; overflow: hidden; border: 2px solid #555; background: #fff; margin-bottom: 6px; }
#sigPad { display: block; width: 100%; height: 210px; touch-action: none; }
.sig-line { position: absolute; left: 20px; right: 20px; bottom: 44px; border-bottom: 2px dashed #bbb; pointer-events: none; }
.sig-clear { position: absolute; top: 8px; right: 8px; border: none; border-radius: 10px; padding: 8px 14px; background: #eee; color: #333; font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.review-box { margin-bottom: 18px; }

.done-tick { width: 92px; height: 92px; margin: 30px auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 700; color: #0c2b0c; background: linear-gradient(145deg, #6fe36f, #1f6b1f); box-shadow: 0 0 30px -4px #6fe36f; }

/* messages */
.msg-card { background: var(--panel); border: 2px solid rgba(0,0,0,0.5); border-radius: 16px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(0,0,0,0.5); }
.msg-card.done { opacity: .6; }
.msg-head { padding: 14px 16px; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #111; background: linear-gradient(145deg, var(--accent1), var(--accent2)); box-shadow: inset 0 2px 2px rgba(255,255,255,0.55), inset 0 -3px 5px rgba(0,0,0,0.45); }
.msg-card.done .msg-head { background: linear-gradient(145deg, #6b6b6b, #2a2a2a); color: #ddd; }
.msg-body { padding: 14px 16px; font-size: 20px; line-height: 1.35; }
.msg-q { font-weight: 700; margin-top: 10px; color: #fff; }
.msg-time { font-size: 14px; color: #888; letter-spacing: 1px; margin-top: 8px; }
.msg-answer { font-size: 17px; color: #9fe39f; margin-top: 8px; font-weight: 600; }
.msg-btns { display: flex; gap: 10px; padding: 0 16px 16px; }
.msg-btns .metal-btn { margin: 0; font-size: 20px; padding: 14px 8px; }
.metal-btn.no { --accent-bg: linear-gradient(145deg, #ff6f6f, #7a1f1f); color: #fff; box-shadow: inset 0 2px 3px rgba(255,255,255,0.5), inset 0 -3px 6px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.55); }
.pic-label { min-height: 74px; display: flex; align-items: center; justify-content: center; }
