:root {
  --orange: #ed5425;
  --orange-dark: #c94419;
  --black: #050607;
  --charcoal: #151719;
  --navy: #0c1320;
  --panel: #ffffff;
  --soft: #f4f1ef;
  --line: #d9d1cc;
  --muted: #68645f;
  --success: #1f7a4c;
  --warning: #a55300;
  --danger: #a32626;
  --shadow: 0 18px 45px rgba(0,0,0,.12);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.08);
}
html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171717;
  background:
    radial-gradient(circle at 12% 0%, rgba(237,84,37,.28) 0, rgba(237,84,37,0) 28%),
    radial-gradient(circle at 90% 12%, rgba(255,255,255,.08) 0, rgba(255,255,255,0) 20%),
    linear-gradient(135deg, #07090c 0%, #10151d 48%, #030404 100%);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1440px; margin: 0 auto; min-height: 100vh; background: #f7f5f2; box-shadow: 0 0 70px rgba(0,0,0,.45); }
.app-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 22px; color: #fff;
  background: linear-gradient(110deg, #020303 0%, #111416 72%, #20120d 100%);
  border-top: 6px solid var(--orange); border-bottom: 1px solid #3b241a;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo-frame {
  width: 132px; height: 52px; padding: 5px 8px; overflow: hidden; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 8px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(237,84,37,.2);
}
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand h1 { margin: 0; font-size: 19px; letter-spacing: .2px; text-transform: uppercase; }
.brand small { color: #cfc8c3; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.active-user-badge {
  min-width: 190px;
  padding: 8px 12px;
  border: 1px solid rgba(237,84,37,.55);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.active-user-badge span {
  display: block;
  color: #d7cfc8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.active-user-badge strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
  word-break: break-word;
}
.dashboard-user-line {
  display: block;
  margin-top: 6px;
  color: #20120d;
  font-weight: 900;
}
.nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 22px;
  background: linear-gradient(90deg, #0b0d10, #151a20); border-bottom: 1px solid #2c3035;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.nav button {
  min-width: max-content; padding: 11px 16px; border: 1px solid rgba(255,255,255,.11); border-radius: 999px;
  background: rgba(255,255,255,.06); color: #eee; font-weight: 800;
}
.nav button.active { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(237,84,37,.28); }
.main { padding: 26px; }
.panel { display: none; }
.panel.active { display: block; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-header h2 { margin: 0 0 5px; }
.panel-header h2 { text-transform: uppercase; letter-spacing: .4px; }
.panel-header p { margin: 0; color: var(--muted); }
.register-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.card { padding: 18px; margin-bottom: 18px; border: 1px solid rgba(21,23,25,.12); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.form-guide {
  padding: 13px 15px;
  margin: 0 0 16px;
  border: 1px solid #f0c7b3;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8f3 0%, #fff 100%);
  color: #462012;
  line-height: 1.45;
}
.form-guide strong {
  display: block;
  margin-bottom: 6px;
  color: #20120d;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.form-guide ol { margin: 6px 0 0 20px; padding: 0; }
.form-guide li { margin: 3px 0; }
.form-guide.compact { font-size: 13px; font-weight: 700; }
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}
.receiving-mode .field-observation-control { display: none; }
.receiving-mode .workspace-field {
  opacity: .82;
}
.receiving-mode .workspace-field:not(.sr-only)::after {
  content: "Workspace";
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 700; color: var(--charcoal); }
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 11px; color: #111; background: #fff;
  border: 1px solid var(--line); border-radius: 5px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(242,90,0,.24); border-color: var(--orange); }
.primary, .secondary, .danger {
  border: 0; border-radius: 9px; padding: 11px 16px; color: #fff; font-weight: 900;
}
.primary { background: var(--orange); }
.primary:hover { background: var(--orange-dark); }
.secondary { background: #222830; }
.danger { background: var(--danger); }
.compact { padding: 8px 11px; font-size: 13px; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.status-strip {
  display: flex; gap: 12px; align-items: center; padding: 10px 18px;
  background: #fff4ed; border-bottom: 1px solid #f2c5a6; color: #6c2a00; font-size: 13px;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); }
.status-dot.online { background: var(--success); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.metric {
  position: relative; overflow: hidden; padding: 18px; color: #fff;
  background: linear-gradient(145deg, #15191f 0%, #252b34 100%); border-left: 5px solid var(--orange); border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.metric::after { content: ""; position: absolute; right: -32px; top: -32px; width: 90px; height: 90px; border-radius: 50%; background: rgba(237,84,37,.16); }
.metric strong { display: block; font-size: 32px; line-height: 1; }
.metric span { color: #ded8d4; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--charcoal); color: #fff; font-size: 12px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.select-column { width: 44px; text-align: center; }
.select-column input, td.row-select input { width: 20px; height: 20px; margin: 0; accent-color: var(--orange); }
td.row-select { text-align: center; }
tr.is-selected td { background: #fff4ed; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge.open { color: #7a2800; background: #ffe0cc; }
.badge.in_progress { color: #725300; background: #fff0b8; }
.badge.resolved { color: #155b38; background: #d7f0e3; }
.badge.closed { color: #fff; background: #555; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.photo-grid.single-photo { grid-template-columns: minmax(260px, min(720px, 100%)); justify-content: center; }
.photo-grid figure { margin: 0; padding: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.photo-grid img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(62vh, 520px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 5px;
  background: transparent;
}
.photo-grid figcaption { margin-top: 5px; color: var(--muted); font-size: 11px; }
.photo-grid .photo-link { display: block; color: inherit; text-decoration: none; }
.photo-grid .closeout-photo { border: 2px solid var(--success); }
.photo-preview-grid figure { position: relative; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-actions button { padding: 9px 12px; font-size: 12px; }
.markup-badge { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: #fff0e8; color: #a63b00; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.document-list { display: grid; gap: 10px; margin-top: 10px; }
.document-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.document-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12px; }
.document-meta strong { color: var(--ink); overflow-wrap: anywhere; }
.document-chip { flex: 0 0 auto; min-width: 48px; padding: 6px 8px; border-radius: 8px; background: var(--charcoal); color: #fff; font-size: 11px; font-weight: 900; text-align: center; letter-spacing: .04em; text-transform: uppercase; }
.document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.document-actions a { display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border-radius: 8px; background: var(--charcoal); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.photo-markup-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  isolation: isolate;
  display: flex;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: #080b0f;
  overflow: hidden;
  pointer-events: auto;
}
.photo-markup-modal[hidden] { display: none; }
.drawing-viewer-modal { position: fixed; inset: 0; z-index: 11000; display: flex; padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: #0b0f14; }
.drawing-viewer-modal[hidden] { display: none; }
.drawing-viewer-card { width: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #f7f3ee; border-top: 6px solid var(--orange); border-radius: 12px; }
.drawing-viewer-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.drawing-viewer-header h3, .drawing-viewer-header p { margin: 0; }
.drawing-viewer-header .button-row { margin: 0; flex-wrap: nowrap; }
.drawing-external-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.drawing-viewer-toolbar { flex:0 0 auto; display:flex; align-items:center; gap:7px; padding:8px 12px; overflow-x:auto; background:#ece7e1; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.drawing-viewer-toolbar button { min-height:42px; white-space:nowrap; }
.drawing-viewer-toolbar span { min-width:62px; text-align:center; font-size:12px; font-weight:900; white-space:nowrap; }
.drawing-viewer-toolbar #drawingMarkupButton.is-active { background:var(--orange); color:#fff; border-color:var(--orange); }
.drawing-viewer-stage { flex:1 1 auto; min-height:0; overflow:auto; padding:20px; background:#525659; touch-action:none; overscroll-behavior:contain; }
.drawing-canvas-wrap { position:relative; width:max-content; margin:0 auto; background:#fff; box-shadow:0 5px 22px rgba(0,0,0,.35); }
#drawingPdfCanvas { display:block; }
#drawingMarkupCanvas { position:absolute; inset:0; width:100%; height:100%; touch-action:none; pointer-events:none; }
#drawingMarkupCanvas.is-active { pointer-events:auto; cursor:crosshair; }
@media (max-width: 700px) {
  .drawing-viewer-header { align-items: stretch; flex-direction: column; }
  .drawing-viewer-header .button-row { width: 100%; }
  .drawing-viewer-header .button-row > * { flex: 1; }
}
.photo-markup-card { position: relative; z-index: 1; width: 100%; height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; background: #f7f3ee; color: var(--ink); border-top: 6px solid var(--orange); border-radius: 12px; padding: 12px; box-shadow: 0 18px 70px rgba(0,0,0,.38); }
.photo-markup-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.photo-markup-header h3 { margin: 0; font-size: 22px; }
.photo-markup-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-markup-toolbar button { min-height: 44px; }
.photo-markup-toolbar button.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }
.photo-markup-stage { position: relative; z-index: 2; flex: 1 1 auto; min-width: 0; min-height: 180px; overflow: hidden; display: grid; place-items: center; background: #0b0f14; border: 1px solid #2b333d; border-radius: 10px; }
#photoMarkupCanvas { position: relative; z-index: 3; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; touch-action: none; cursor: crosshair; pointer-events: auto; user-select: none; -webkit-user-select: none; }
body.photo-markup-open { overflow: hidden; touch-action: none; }
@media (max-width: 700px) {
  .photo-markup-card { padding: 8px; gap: 7px; border-radius: 8px; }
  .photo-markup-header h3 { font-size: 17px; }
  .photo-markup-header .map-choice-eyebrow, .photo-markup-card > .muted { display: none; }
  .photo-markup-toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .photo-markup-toolbar button { min-height: 40px; flex: 0 0 auto; }
}
.comment-list { margin-top: 16px; }
.comment { padding: 12px 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; }
.comment p { margin: 5px 0; white-space: pre-wrap; }
.comment small { color: var(--muted); }
.report-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.qr-card { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.qr-box { min-height: 170px; display: grid; place-items: center; background: #fff; border: 2px dashed var(--orange); }
.scanner-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 34px; }
.scanner-mark { width: 92px; height: 92px; margin: 0 auto 16px; display: grid; place-items: center; border: 4px solid var(--orange); border-radius: 18px; color: var(--orange); font-size: 58px; font-weight: 900; }
.card h3 { letter-spacing: .2px; }
.muted { color: var(--muted); }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: 12px; font-weight: 1000; letter-spacing: 1.4px; text-transform: uppercase; }
.dashboard-hero {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; align-items: stretch;
  padding: 26px; border-radius: 20px; color: #fff;
  background:
    linear-gradient(135deg, rgba(237,84,37,.28), rgba(237,84,37,0) 42%),
    radial-gradient(circle at 92% 14%, rgba(255,255,255,.12), rgba(255,255,255,0) 24%),
    linear-gradient(135deg, #0b0f14 0%, #1b232d 62%, #0a0b0d 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-copy h2 { max-width: 760px; margin: 0 0 10px; font-size: clamp(31px, 4vw, 54px); line-height: .98; letter-spacing: -1.5px; }
.hero-copy p:not(.eyebrow) { max-width: 720px; margin: 0; color: #cfd5dc; font-size: 16px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-actions button { min-width: 135px; }
.hero-status-card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; padding: 20px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
  backdrop-filter: blur(8px);
}
.hero-status-card > span { color: #ffb394; font-size: 11px; font-weight: 1000; letter-spacing: 1.1px; text-transform: uppercase; }
.hero-status-card strong { display: block; margin: 8px 0 6px; font-size: 24px; line-height: 1.1; }
.hero-status-card small { color: #cfd5dc; line-height: 1.35; }
.hero-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.hero-status-grid div { padding: 13px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); }
.hero-status-grid b { display: block; font-size: 28px; color: #fff; }
.hero-status-grid span { display: block; color: #bfc5cc; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.dashboard-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dashboard-action-card {
  min-height: 154px; padding: 18px; text-align: left; border: 1px solid rgba(21,23,25,.12); border-radius: 16px;
  background: #fff; color: #171717; box-shadow: var(--shadow-soft);
}
.dashboard-action-card:hover { transform: translateY(-1px); border-color: rgba(237,84,37,.55); box-shadow: var(--shadow); }
.dashboard-action-card span { color: var(--orange); font-size: 12px; font-weight: 1000; letter-spacing: 1px; }
.dashboard-action-card strong { display: block; margin: 12px 0 7px; font-size: 18px; }
.dashboard-action-card small { display: block; color: var(--muted); line-height: 1.4; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title-row h3 { margin: 0 0 4px; }
.section-title-row p { margin: 0; }
.spatial-anchor-card {
  border-left: 6px solid var(--orange);
  background: linear-gradient(135deg, #fff8f3 0%, #fff 42%);
}
.spatial-anchor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.spatial-anchor-actions p { margin: 0; line-height: 1.45; }
.spatial-anchor-actions button {
  flex: 0 0 auto;
  min-width: 210px;
  min-height: 48px;
}
.recent-record-card { min-height: 250px; }
.recent-record-item {
  display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 13px 0;
  border-top: 1px solid var(--line); cursor: pointer;
}
.recent-record-item:first-child { border-top: 0; }
.recent-record-item strong { display: block; margin-bottom: 3px; }
.recent-record-item p { margin: 0; }
.workflow-list { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: workflow; }
.workflow-list li {
  position: relative; margin: 0; padding: 0 0 18px 42px; border-left: 2px solid #eadbd2;
}
.workflow-list li:last-child { padding-bottom: 0; border-left-color: transparent; }
.workflow-list li::before {
  counter-increment: workflow; content: counter(workflow);
  position: absolute; left: -15px; top: 0; width: 28px; height: 28px; display: grid; place-items: center;
  color: #fff; background: var(--orange); border-radius: 50%; font-size: 12px; font-weight: 1000;
}
.workflow-list strong, .workflow-list span { display: block; }
.workflow-list span { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.field-workbench { display: grid; gap: 18px; }
.workbench-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 0;
  border-top: 5px solid var(--orange);
  background:
    linear-gradient(135deg, rgba(237,84,37,.09), rgba(237,84,37,0) 44%),
    #fff;
}
.workbench-context h2 { margin: 0 0 6px; font-size: clamp(25px, 3vw, 36px); line-height: 1.08; letter-spacing: -.6px; }
.workbench-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.workbench-status-grid div {
  padding: 13px;
  border: 1px solid #eadbd2;
  border-radius: 12px;
  background: #fffaf7;
}
.workbench-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .65px;
  text-transform: uppercase;
}
.workbench-status-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.18;
  word-break: break-word;
}
.field-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.field-action-card {
  min-height: 136px;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(21,23,25,.13);
  border-radius: 16px;
  background: #fff;
  color: #171717;
  box-shadow: var(--shadow-soft);
}
.field-action-card:hover { transform: translateY(-1px); border-color: rgba(237,84,37,.55); box-shadow: var(--shadow); }
.field-action-card.primary-action {
  color: #fff;
  border-color: #dd4d1d;
  background: linear-gradient(145deg, var(--orange), var(--orange-dark));
}
.field-action-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 1px;
}
.field-action-card.primary-action span { color: #ffd7c5; }
.field-action-card strong { display: block; margin: 10px 0 7px; font-size: 20px; }
.field-action-card small { display: block; color: var(--muted); line-height: 1.4; }
.field-action-card.primary-action small { color: #fff4ef; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: 18px; align-items: start; }
.workbench-grid.compact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.work-queue-card, .attention-card, .quick-map-card, .receiving-shortcut-card { margin-bottom: 0; }
.work-queue-list, .attention-list, .mini-record-list { display: grid; gap: 10px; }
.work-queue-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px 13px;
  border: 1px solid #e3dad5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.work-queue-item:hover { border-color: rgba(237,84,37,.55); background: #fff8f3; }
.work-queue-item strong { display: block; margin-bottom: 4px; }
.work-queue-item p { margin: 0; }
.attention-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #efd0bd;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8f3, #fff);
}
.attention-item > strong {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 12px;
  font-size: 21px;
}
.attention-item b, .attention-item span { display: block; }
.attention-item span { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.quick-tool-row { display: flex; gap: 8px; flex-wrap: wrap; }
.compact-empty { padding: 18px; }
.receiving-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .35fr); gap: 20px; align-items: stretch;
  border-top: 5px solid var(--orange);
  background:
    linear-gradient(135deg, rgba(237,84,37,.10), rgba(237,84,37,0) 48%),
    #fff;
}
.receiving-hero h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -1px; }
.receiving-hero p:not(.eyebrow) { max-width: 780px; line-height: 1.55; }
.receiving-summary {
  display: flex; flex-direction: column; justify-content: center; padding: 18px; border-radius: 14px;
  color: #fff; background: linear-gradient(145deg, #15191f, #272f38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.receiving-summary span, .receiving-summary small { color: #cfd5dc; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.receiving-summary strong { margin: 6px 0; font-size: 56px; line-height: 1; color: #fff; }
.receiving-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-custody-card { margin-top: 18px; border-top: 5px solid var(--orange); }
.field-custody-card h3 { margin: 3px 0 7px; }
.field-custody-mode { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.field-custody-mode-button { min-height: 52px; border: 1px solid var(--border); color: #dce2e8; background: #252b33; }
.field-custody-mode-button.is-selected { border-color: var(--orange); color: #fff; background: var(--orange); box-shadow: 0 0 0 3px rgba(237,84,37,.14); }
.field-custody-form,.field-custody-event-form { margin-top: 14px; padding: 16px; border: 1px solid #d9dee4; border-radius: 14px; background: #f8fafc; }
.field-custody-summary { margin: 16px 0; padding: 16px; border-left: 5px solid var(--orange); border-radius: 10px; color: #f7f8fa; background: linear-gradient(135deg,#151b23,#232c37); }
.field-custody-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 10px; }
.field-custody-summary-grid span { display: block; color: #f58a62; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.field-custody-summary-grid strong { display: block; margin-top: 3px; color: #fff; overflow-wrap: anywhere; }
.field-custody-checklist { padding: 14px; border: 1px solid rgba(237,84,37,.28); border-radius: 12px; background: #fff8f4; }
.field-custody-checklist h4 { margin: 0 0 10px; }
.field-custody-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.field-custody-check-grid label { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border: 1px solid #ead7cc; border-radius: 9px; background: #fff; }
.field-custody-check-grid input { width: auto; margin-top: 3px; }
.field-custody-message { min-height: 24px; text-align: center; }
.field-custody-message.error { color: #b42318; font-weight: 800; }
.field-custody-history { display: grid; gap: 9px; margin-top: 12px; }
.field-custody-history article { padding: 12px 14px; border: 1px solid #d8dee6; border-left: 5px solid var(--orange); border-radius: 9px; background: #f8fafc; }
.field-custody-history article.is-latest { color: #fff; background: #18212c; }
.field-custody-history small { color: var(--muted); }
.field-custody-history article.is-latest small { color: #c5ced9; }
.receiving-checklist-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(237,84,37,.3);
  border-radius: 14px;
  background: #fffaf7;
}
.receiving-checklist-grid { display: grid; gap: 10px; margin-top: 12px; }
.check-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(310px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ead7cc;
  border-radius: 12px;
  background: #fff;
}
.check-row strong { display: block; color: #171717; }
.check-row small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.segmented-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 6px;
}
.segmented-choice label { margin: 0; }
.segmented-choice input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-choice span {
  display: block;
  min-height: 44px;
  padding: 12px 10px;
  border: 1px solid #d8d0ca;
  border-radius: 10px;
  color: #252525;
  background: #f8f6f4;
  text-align: center;
  font-weight: 900;
}
.segmented-choice input:checked + span {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(237,84,37,.2);
}
.receiving-followup-grid { margin-top: 14px; }
.receiving-ncr-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #ead7cc;
  border-radius: 10px;
  background: #fff;
}
.receiving-ncr-toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--orange); }
.receiving-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.receiving-result-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf7;
}
.receiving-result-grid small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.receiving-result-grid strong { color: #151719; }
.check-pill {
  display: inline-block;
  min-width: 96px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: #555;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
}
.check-pill.pass { background: var(--success); }
.check-pill.deficiency { background: var(--danger); }
.check-pill.na { background: #6b7280; }
.text-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  white-space: pre-wrap;
  line-height: 1.45;
}
.check-list { margin: 12px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: var(--orange); font-weight: 1000; }
.map-builder-card { border-top: 4px solid var(--orange); }
.map-mode-switch { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 14px; }
.map-mode-switch button { margin:0; }
.installation-map-shell { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; box-shadow:var(--shadow); }
.installation-map-context { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; background:#111827; color:#fff; border-bottom:3px solid var(--orange); }
.installation-map-context div { display:grid; gap:3px; }
.installation-map-context span { color:#d7dee8; font-size:12px; }
.installation-map-context button { margin:0; }
.installation-map-shell iframe { display:block; width:100%; height:min(78vh,980px); min-height:620px; border:0; background:#f7f7f3; }
.map-builder-card.layout-locked { border-top-color: #59616b; background: #fbfbfb; }
.map-lock-button { border: 0; border-radius: 6px; padding: 11px 16px; color: #fff; background: #8b4a13; font-weight: 800; }
.map-lock-button.unlock { background: var(--success); }
.map-lock-status {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 13px; padding: 10px 12px;
  color: #5d391d; background: #fff4ed; border: 1px solid #efc5a9; border-radius: 6px; font-size: 12px;
}
.map-lock-status.locked { color: #333; background: #eef0f2; border-color: #c9cdd1; }
.map-lock-status strong { text-transform: uppercase; letter-spacing: .4px; }
.map-builder-card input:disabled, .map-builder-card select:disabled { color: #666; background: #ececec; opacity: 1; }
.native-map-viewer .map-builder-only { display: none !important; }
.native-map-viewer .map-builder-card { padding-bottom: 12px; }
.native-map-viewer #mapMessage::before {
  content: "Field mode: select a saved map for this site. Layout generation is managed in the web app. ";
  font-weight: 800;
  color: var(--orange);
}
.map-fallback { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.map-fallback summary { cursor: pointer; color: var(--charcoal); font-weight: 800; }
.map-fallback label { margin-top: 10px; }
.map-legend {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: -4px 0 10px; padding: 10px 12px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.map-dot.open { background: #e95b1d; }
.map-dot.in_progress { background: #d19a00; }
.map-dot.resolved { background: #188354; }
.map-dot.closed { background: #59616b; }
.map-diamond { width: 11px; height: 11px; display: inline-block; transform: rotate(45deg); border-radius: 1px; }
.map-diamond.pending { background: #1674b8; }
.map-diamond.aligned { background: #188354; }
.map-square { width: 11px; height: 11px; display: inline-block; border-radius: 2px; }
.map-square.joint-pack { background: #7837c8; border: 2px solid #fff; box-shadow: 0 0 0 1px #7837c8; }
.map-entry-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px;
  border: 1px solid #ed9b70; border-left: 5px solid var(--orange); border-radius: 7px; background: #fff4ed;
}
.map-entry-banner[hidden] { display: none; }
.map-entry-banner strong { color: #8d2c08; }
.map-entry-banner span { flex: 1; color: #4d433d; }
.map-entry-banner button { padding: 8px 11px; }
.map-pin-choice {
  position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,0,.68); backdrop-filter: blur(3px);
}
.map-pin-choice[hidden] { display: none; }
.map-pin-choice-card {
  width: min(720px, 100%); max-height: 92vh; overflow-y: auto; padding: 24px;
  border-top: 6px solid var(--orange); border-radius: 10px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.5);
}
.map-pin-choice-card h3 { margin: 3px 0 8px; font-size: 25px; }
.map-choice-eyebrow { margin: 0; color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.map-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.map-choice {
  min-height: 125px; padding: 17px; text-align: left; border: 2px solid var(--line); border-radius: 8px; background: #fff;
}
.map-choice strong, .map-choice span { display: block; }
.map-choice strong { margin-bottom: 8px; font-size: 17px; }
.map-choice span { color: var(--muted); line-height: 1.4; }
.map-choice:disabled { cursor: not-allowed; opacity: .48; background: #eee; }
.map-choice.issue-choice:hover { border-color: var(--orange); background: #fff4ed; }
.map-choice.alignment-choice:hover { border-color: #1674b8; background: #edf7ff; }
.map-choice.existing-choice { grid-column: 1 / -1; min-height: auto; }
.map-choice.existing-choice:disabled { display: none; }
.location-map-viewport {
  min-height: 560px; position: relative; overflow: hidden; touch-action: none;
  border: 2px solid #777; border-radius: 8px; background: #171b20;
  box-shadow: inset 0 0 0 1px #000, 0 8px 24px rgba(0,0,0,.14);
}
.location-map-viewport.map-fullscreen {
  position: fixed; inset: 0; z-index: 1000; min-height: 100vh; border: 0; border-radius: 0;
}
.exit-map-fullscreen {
  display: none; position: absolute; z-index: 12; top: max(14px, env(safe-area-inset-top)); right: 14px;
  padding: 12px 16px; border: 2px solid #fff; border-radius: 7px; color: #fff; background: rgba(5,6,7,.88);
  box-shadow: 0 4px 18px rgba(0,0,0,.45); font-weight: 900;
}
.location-map-viewport.map-fullscreen .exit-map-fullscreen { display: block; }
.location-map {
  position: absolute; inset: 0; min-width: 100%; min-height: 100%;
  transform-origin: 0 0; will-change: transform; user-select: none;
}
.location-map .empty { color: #ddd; }
.hall-svg { display: block; width: 100%; height: 100%; min-height: 560px; }
.hall-background { opacity: .22; pointer-events: none; }
.hall-frame { fill: #f7f5f2; stroke: #343a40; stroke-width: 2; }
.hall-cell { fill: #fff; stroke: #aeb4b9; stroke-width: 1; cursor: crosshair; }
.hall-cell-hit { cursor: crosshair; }
.hall-cell-hit rect { fill: #fff; fill-opacity: .001; pointer-events: all; }
.hall-cell:nth-of-type(even) { fill: #fafafa; }
.hall-cell:hover, .hall-cell.map-match { fill: #ffe1ce; stroke: var(--orange); stroke-width: 2.5; }
.hall-cell-label { fill: #555; font-size: 8px; pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.hall-staging-zone { cursor: crosshair; }
.hall-staging-rect {
  fill: #fff2ea;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-dasharray: 8 5;
  opacity: .95;
}
.hall-staging-rect.map-match,
.hall-staging-zone:hover .hall-staging-rect {
  fill: #ffd7c3;
  stroke-width: 3;
}
.hall-staging-label {
  fill: #8d2c08;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 1.1px;
  text-anchor: middle;
  dominant-baseline: central;
  text-transform: uppercase;
  pointer-events: none;
}
.hall-row-label, .hall-column-label { fill: #222; font-size: 11px; font-weight: 900; text-anchor: middle; dominant-baseline: central; }
.hall-walkway rect { fill: #d8dde2; stroke: #9aa3aa; stroke-width: 1; stroke-dasharray: 4 3; opacity: .88; pointer-events: none; }
.hall-walkway text { fill: #3f474f; font-size: 8px; font-weight: 900; text-anchor: middle; dominant-baseline: central; letter-spacing: .8px; pointer-events: none; }
.hall-title { fill: #141414; font-size: 18px; font-weight: 900; }
.hall-subtitle { fill: #626262; font-size: 9px; }
.busway-line { stroke: var(--orange); stroke-width: 5; stroke-linecap: round; opacity: .8; pointer-events: none; }
.busway-label { fill: #8d2c08; font-size: 8px; font-weight: 900; pointer-events: none; }
.busway-line.lower { stroke: #1674b8; }
.busway-label.lower { fill: #0b568b; }
.busway-line.east { stroke: #ed5425; }
.busway-line.west { stroke: #1674b8; }
.busway-label.east { fill: #8d2c08; }
.busway-label.west { fill: #0b568b; }
.observation-pin { cursor: pointer; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.observation-pin circle { stroke: #fff; stroke-width: 2; }
.observation-pin text { fill: #fff; font-size: 8px; font-weight: 900; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.observation-pin.open circle { fill: #e95b1d; }
.observation-pin.in_progress circle { fill: #d19a00; }
.observation-pin.resolved circle { fill: #188354; }
.observation-pin.closed circle { fill: #59616b; }
.observation-pin.alignment-location circle { fill: #1674b8; }
.observation-pin.alignment-location polygon { fill: #1674b8; stroke: #fff; stroke-width: 2; }
.observation-pin.alignment-location.resolved polygon,
.observation-pin.alignment-location.closed polygon { fill: #188354; }
.observation-pin.map-match circle { stroke: #111; stroke-width: 4; }
.map-location-tooltip {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; max-width: calc(100% - 24px);
  padding: 8px 11px; color: #fff; background: rgba(0,0,0,.78); border-radius: 5px; font-size: 12px;
  pointer-events: none;
}
.login-cover {
  min-height: calc(100vh - 138px); display: grid; place-items: center; padding: 70px 22px; text-align: center;
  background:
    linear-gradient(120deg, rgba(237,84,37,.16), rgba(237,84,37,0) 46%),
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.08), rgba(255,255,255,0) 28%),
    linear-gradient(145deg, #0a0d12, #171c24 58%, #08090b);
}
.login-cover .card { max-width: 640px; margin: 0 auto; }
.login-card {
  padding: 30px; color: #fff; border: 1px solid rgba(237,84,37,.55); border-top: 5px solid var(--orange);
  background: linear-gradient(145deg, rgba(25,29,36,.98), rgba(8,10,13,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.login-card h2 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 48px); line-height: 1; letter-spacing: -1.2px; }
.login-card > .muted { max-width: 520px; margin: 0 auto 18px; color: #c9ced7; line-height: 1.55; }
.login-brand {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 24px;
}
.login-brand img {
  width: 150px; height: 58px; padding: 5px 8px; object-fit: contain; border-radius: 8px; background: #fff;
}
.login-brand div { text-align: left; }
.login-brand span, .login-brand strong { display: block; }
.login-brand span { color: #aeb6c2; font-size: 10px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; }
.login-brand strong { margin-top: 3px; color: #fff; font-size: 18px; letter-spacing: .5px; }
.login-card .eyebrow { color: var(--orange); }
.login-card label { color: #fff; text-align: left; }
.login-card input {
  color: #fff; border-color: #3b4553; background: #080b0f;
}
.login-card input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,84,37,.16); }
.login-card .button-row { justify-content: center; }
.login-card .button-row .primary { min-width: 190px; }
.login-help { margin: 14px 0 0; color: #aeb6c2; font-size: 12px; }
.login-proof { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.login-proof span {
  padding: 7px 10px; border: 1px solid #efd0bd; border-radius: 999px; color: #7a2800; background: #fff4ed;
  font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .45px;
}
.access-pending {
  max-width: 760px; margin: 42px auto; padding: 32px; text-align: center; border-top: 6px solid var(--orange);
}
.access-pending h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -1px; }
.access-pending p.muted { max-width: 560px; margin: 0 auto 18px; line-height: 1.55; }
.access-pending .button-row { justify-content: center; }

.development-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #7f1d1d;
  border-radius: 999px;
  color: #fff;
  background: #991b1b;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 1px;
}
.development-warning {
  border: 1px solid #f2b8b5;
  border-left: 7px solid #b42318;
  background: linear-gradient(135deg, #fff4f2, #fff);
}
.development-warning strong { display: block; color: #7a1813; text-transform: uppercase; letter-spacing: .6px; }
.development-warning p { margin: 7px 0 0; line-height: 1.5; }
.development-warning code { padding: 2px 5px; border-radius: 4px; background: #f7dedb; }
.error-text { color: var(--danger) !important; font-weight: 800; }
.development-native-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  border: 1px solid #374151;
  border-top: 6px solid var(--orange);
  background:
    radial-gradient(circle at 85% 15%, rgba(237,84,37,.24), transparent 32%),
    linear-gradient(135deg, #0b0e13, #1a202a);
}
.development-native-card h3 { margin: 2px 0 5px; font-size: 24px; }
.development-native-card .eyebrow { color: var(--orange); margin: 0; }
.development-native-card .muted { color: #c7ced8; margin: 0; }
.development-native-card .button-row { flex: 0 0 auto; margin: 0; }
.development-publish-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f7;
}
.development-publish-option input { width: 24px; height: 24px; flex: 0 0 auto; }
.development-publish-option span,
.development-publish-option strong,
.development-publish-option small { display: block; }
.development-publish-option small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.development-progress {
  height: 12px;
  margin: 15px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e0dd;
}
.development-progress > div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #f59e0b);
  transition: width .2s ease;
}
.development-library-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.development-library-heading h3,
.development-library-heading p { margin: 0; }
.development-library-heading p { margin-top: 4px; }
.development-library-heading > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--charcoal);
  font-size: 12px;
}
.development-package-list { display: grid; gap: 12px; }
.development-package {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.development-package h4 { margin: 0 0 5px; font-size: 17px; }
.development-package p { margin: 3px 0; line-height: 1.4; }
.development-package-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.development-package-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #37322f;
  background: #eeeae7;
  font-size: 11px;
  font-weight: 800;
}
.development-package-meta .published { color: #fff; background: var(--success); }
.development-package-meta .draft { color: #fff; background: #8a5a00; }
.development-package-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.development-package-actions button { min-height: 42px; }
@media (max-width: 700px) {
  .app-header { align-items: flex-start; flex-direction: column; }
  .main { padding: 14px; }
  .dashboard-hero, .dashboard-lower-grid, .workbench-context, .workbench-grid, .workbench-grid.compact-grid { grid-template-columns: 1fr; }
  .workbench-status-grid, .field-action-grid { grid-template-columns: 1fr; }
  .receiving-hero, .receiving-grid { grid-template-columns: 1fr; }
  .field-custody-mode,.field-custody-summary-grid,.field-custody-check-grid { grid-template-columns: 1fr; }
  .check-row { grid-template-columns: 1fr; }
  .segmented-choice { grid-template-columns: 1fr 1fr 1fr; }
  .segmented-choice span { min-height: 48px; padding: 14px 8px; }
  .dashboard-hero { padding: 20px; border-radius: 16px; }
  .dashboard-action-grid { grid-template-columns: 1fr; }
  .hero-status-card { min-height: auto; }
  .hero-copy h2 { font-size: 34px; }
  .qr-card { grid-template-columns: 1fr; }
  .panel-header { flex-direction: column; }
  .register-actions { width: 100%; }
  .register-actions button { flex: 1 1 140px; }
  .brand { align-items: flex-start; flex-wrap: wrap; }
  .brand-logo-frame { width: 118px; height: 46px; }
  .login-brand { align-items: center; }
  .location-map-viewport, .hall-svg { min-height: 460px; }
  .map-choice-grid { grid-template-columns: 1fr; }
  .map-choice.existing-choice { grid-column: auto; }
  .development-library-heading,
  .development-package { grid-template-columns: 1fr; display: grid; }
  .development-native-card { align-items: stretch; flex-direction: column; }
  .development-native-card .button-row button { flex: 1 1 160px; }
  .development-package-actions { justify-content: stretch; }
  .development-package-actions button { flex: 1 1 130px; }
  .spatial-anchor-actions { align-items: stretch; flex-direction: column; }
  .spatial-anchor-actions button { width: 100%; }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .dashboard-hero, .dashboard-lower-grid, .workbench-context, .workbench-grid, .workbench-grid.compact-grid { grid-template-columns: 1fr; }
  .receiving-hero, .receiving-grid { grid-template-columns: 1fr; }
  .check-row { grid-template-columns: 1fr; }
  .dashboard-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.saved-record-video {
  display: block;
  width: min(100%, 34rem);
  max-height: 22rem;
  margin: 0.5rem 0;
  border-radius: 0.75rem;
  background: #05070a;
  object-fit: contain;
}
