/* Integrated test workspace. Presentation only; never alters domain or saved data. */
:root {
  --ink: #173744;
  --muted: #617780;
  --navy: #123440;
  --brand: #087f78;
  --soft: #e7f4ef;
  --bg: #f3f7f6;
  --line: #dfe8e6;
  --green: #26714f;
  --orange: #9b6414;
  --red: #ad4941;
  --shadow: 0 2px 5px #143d2d03;
}
html { scroll-padding-top: 24px; }
body { line-height: 1.6; }
button, input, select, textarea { min-height: 40px; }
button:disabled { cursor: not-allowed; }
select { min-width: 0; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #3aaca2;
  outline-offset: 3px;
}
.app { grid-template-columns: 202px minmax(0, 1fr); }
.sidebar { padding: 30px 18px; display: flex; flex-direction: column; }
.brand { margin: 0 3px 42px; gap: 10px; }
.brand-symbol { background: #ffffff; border-radius: 11px; width: 42px; height: 42px; overflow: hidden; }
.brand-symbol img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-size: 22px; letter-spacing: .08em; }
.brand-sub { color: #b6cfcd; font-size: 10px; letter-spacing: .03em; }
.nav { display: grid; gap: 8px; }
.nav button { min-height: 48px; border-radius: 9px; padding: 12px 17px; font-size: 14px; }
.nav button[aria-current="page"] { background: #254c56; box-shadow: inset 3px 0 #64d4b9; }
.sidebar-note { margin: auto 10px 0; padding-top: 30px; color: #abc6ca; }
.main { max-width: 1600px; padding: 30px 36px 48px; }
.top { align-items: center; gap: 24px; margin-bottom: 20px; }
.top > div:first-child { min-width: 0; }
.top h1 { font-size: 25px; font-weight: 650; letter-spacing: -.015em; }
.crumb { color: #71868b; }
.page-sub { font-size: 12px; line-height: 1.7; }
.notice { border: 1px solid #dce9e3; border-radius: 9px; background: #edf4f0; color: #58786f; padding: 10px 13px; font-size: 11px; }
.notice strong { color: #316d5e; }
.notice-dot { background: #519e86; }
.identity-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; min-width: 0; }
.identity-bar > div { min-width: 0; }
.identity-avatar { width: 40px; height: 40px; min-width: 40px; display: grid; place-items: center; border-radius: 11px; background: #e6f2ec; color: #317768; font-weight: 650; font-size: 17px; }
.identity-meta { flex: 1; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.identity-meta strong, .identity-meta b { display: block; font-size: 14px; font-weight: 650; color: var(--ink); }
.identity-meta small { display: block; font-size: 11px; margin-top: 2px; }
.role-summary { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; min-width: 0; }
.role-summary strong { color: var(--ink); font-weight: 600; }
.role-controls { gap: 12px; align-items: end; }
.role-controls label { display: grid; gap: 4px; font-size: 11px; align-items: start; }
.role-controls select { min-height: 37px; max-width: 190px; padding: 6px 9px; font-size: 12px; background: #f8faf9; }
.identity-bar .role-controls { flex: 0 1 auto; }
.workbench-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 26px 0 20px; }
.workbench-header > div { min-width: 0; }
.workbench-header h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.45; }
.workbench-header p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.workbench-header .btn { flex-shrink: 0; }
.workbench-kicker { font-size: 10px; font-weight: 650; color: var(--brand); letter-spacing: .13em; text-transform: uppercase; margin-bottom: 7px; }
.workbench-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.workbench-stat { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; min-height: 140px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-align: left; padding: 19px 21px; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.workbench-stat:hover { border-color: #8dbdb0; transform: translateY(-2px); }
.workbench-stat > span:first-child, .workbench-stat > label { font-size: 12px; color: var(--muted); }
.workbench-stat strong, .workbench-stat b { display: block; font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.workbench-stat small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.workbench-stat[aria-pressed="true"] { border-color: #379985; background: #f6fbf8; box-shadow: inset 0 3px #379985; }
.workbench-stat.warning, .workbench-stat.pending { border-top: 3px solid #d8af65; }
.workbench-stat.danger, .workbench-stat.rework { border-top: 3px solid #cf8981; }
.workbench-queue { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 8px 22px; overflow: hidden; }
.workbench-queue > h2, .workbench-queue > h3 { font-size: 15px; margin: 13px 0 8px; }
.workbench-queue > p { color: var(--muted); font-size: 12px; }
.queue-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 19px 0; min-width: 0; }
.queue-card:last-child { border-bottom: 0; }
.queue-card > div { min-width: 0; }
.queue-card h3, .queue-card h4 { font-size: 14px; line-height: 1.6; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.queue-card > div:first-child { flex: 1; }
.queue-card .tag { display: inline-flex; align-items: center; }
.queue-id, .full-task-id { display: block; font-size: 11px; color: #6c8589; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; word-break: normal; letter-spacing: .02em; }
.queue-id { margin-bottom: 4px; }
.queue-meta { color: var(--muted); font-size: 11px; display: flex; flex-wrap: wrap; gap: 4px 13px; margin-top: 5px; }
.queue-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.queue-actions .btn { font-size: 12px; min-height: 38px; }
.workbench-empty { padding: 45px 20px; border: 1px dashed #cdded8; border-radius: 10px; color: var(--muted); background: #fbfdfb; text-align: center; font-size: 13px; line-height: 1.9; margin: 15px 0; }
.workbench-empty strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.project-card { border-radius: 13px; padding: 23px; box-shadow: var(--shadow); }
.project-card:hover { box-shadow: 0 5px 18px #143d2d06; }
.project-grid { gap: 18px; }
.project-card .card-foot { gap: 12px; }
.project-switch { flex: 1; }
.project-switch select { max-width: 460px; }
.project-actions { flex-wrap: wrap; justify-content: flex-end; }
.page-tabs { gap: 27px; }
.page-tabs button { min-height: 45px; }
.progress-summary { display: block; padding: 20px 0; }
.scope-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scope-meter-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; }
.scope-meter-card h3 { font-size: 13px; margin-bottom: 11px; }
.scope-meter-card > p { color: var(--muted); font-size: 11px; margin-top: 10px; }
.scope-meter-card .summary-meter { margin-top: 11px; }
.scope-meter-card .summary-meter:first-child { margin-top: 0; }
.scope-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 600; }
.scope-label small, .scope-label span { color: var(--muted); font-size: 11px; font-weight: 400; }
.summary-note { display: block; color: #607770; font-size: 11px; margin-top: 11px; line-height: 1.7; }
.summary-meter strong { font-variant-numeric: tabular-nums; }
.region-panel { border-radius: 12px; }
.region-toolbar { padding: 18px 21px; background: #fdfefd; }
.region-toolbar h2 { font-size: 16px; }
.region-toolbar p { font-size: 12px; }
.region-panel .task-list { padding: 0 21px; }
.task-row { padding: 17px 0; }
.task-row .task-name { font-size: 14px; }
.task-row .task-meta { font-size: 12px; }
.task-row .task-code { font-size: 11px; }
.task-row:hover, .ledger-region:hover { background: #f8fcfa; }
.task-row .full-task-id { margin-top: 4px; }
.row-title { flex-wrap: wrap; gap: 3px 10px; }
.tag { padding: 4px 8px; font-size: 11px; border-radius: 5px; }
.building-chip { min-height: 42px; padding: 9px 15px; }
.btn { min-height: 40px; padding: 8px 13px; border-radius: 8px; }
.btn-primary:hover:not(:disabled) { background: #066f69; }
.btn-sm { min-height: 36px; }
.task-drawer { width: 610px; }
.task-drawer .panel-header { padding: 17px 24px; }
.task-drawer .detail-body { padding: 22px 24px 0; }
.detail-title { font-size: 21px; }
.detail-meta { flex-wrap: wrap; gap: 5px 11px; font-size: 12px; margin-top: 7px; }
.full-task-id { margin: 7px 0 12px; color: #5d7b7f; }
.crew { border: 1px solid #e3ebe8; padding: 13px 15px; background: #f5f9f7; }
.crew-members { font-size: 12px; }
.stage-stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 20px 0 15px; counter-reset: stage; padding:0; list-style:none; }
.stage-step { position: relative; padding-top: 34px; font-size: 11px; color: var(--muted); counter-increment: stage; line-height: 1.6; min-width: 0; }
.stage-step::before { content: counter(stage); position: absolute; top: 0; left: 0; width: 25px; height: 25px; border: 1px solid #cddfd9; border-radius: 50%; background: #f5f9f7; color: #81988f; display: grid; place-items: center; font-size: 11px; font-weight: 600; z-index: 1; }
.stage-step:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: 33px; right: 2px; height: 1px; background: #d9e5df; }
.stage-step.active { color: #087463; font-weight: 600; }
.stage-step.active::before { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px #e7f4ee; }
.stage-step.done::before { content: "✓"; background: #e1f1e9; border-color: #a9d4c0; color: #257255; }
.stage-step.done::after { background: #86bca6; }
.stage-guidance { background: #edf6f0; border-left: 3px solid #6eab90; border-radius: 0 7px 7px 0; padding: 11px 13px; margin: 12px 0 20px; font-size: 12px; color: #3d6c55; line-height: 1.8; }
.stage-guidance.warning { border-left-color: #d0a352; background: #fff6e5; color: #8e651e; }
.evidence-first { margin: 18px 0 20px; border: 1px solid #dce8e0; border-radius: 11px; padding: 15px; background: #fbfdfa; }
.evidence-first > h3 { font-size: 14px; margin-bottom: 3px; }
.evidence-first > p { font-size: 11px; color: var(--muted); }
.evidence-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.evidence-pair .photo-section { min-width: 0; margin: 13px 0 0; }
.evidence-pair .photo-title { flex-wrap: wrap; gap: 3px 9px; }
.evidence-pair .photo-grid { gap: 6px; }
.evidence-pair .photo-item { width: calc(50% - 3px); min-width: 67px; }
.evidence-pair .photo-item button { width: 100%; height: 95px; }
.evidence-pair .photo-item small { font-size: 10px; }
.evidence-pair .empty-photo { min-height: 100px; display: grid; place-items: center; }
.photo-title { font-size: 13px; }
.file-label { min-height: 36px; display: inline-flex; align-items: center; font-size: 12px; }
.photo-item button { min-height: 76px; }
.photo-item img { transition: transform .15s ease; }
.photo-item button:hover img { transform: scale(1.035); }
.detail-location-secondary { margin: 20px 0 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.detail-location-secondary > summary { cursor: pointer; min-height: 44px; padding: 12px 14px; font-size: 12px; color: #57756e; }
.detail-location-secondary > :not(summary) { margin-left: 12px; margin-right: 12px; }
.detail-location-secondary .task-location { margin-top: 10px; }
.scope-summary { font-size: 12px; line-height: 1.85; }
.scope-summary .scope-warning { padding: 8px 10px; border-radius: 6px; background: #fff7e6; font-size: 11px; }
.task-location-frame { height: 245px; }
.task-location-note, .task-location-status { font-size: 11px; line-height: 1.65; }
.task-location-tools button { min-height: 36px; font-size: 11px; }
.detail-actions { gap: 10px; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); box-shadow: 0 -5px 12px #ffffff; }
.detail-actions .btn { min-height: 44px; }
.history-details { padding-bottom: 25px; }
.history-details > summary { min-height: 30px; font-size: 12px; }
.dispatch-impact { margin: 17px 0 5px; padding: 14px 15px; border: 1px solid #d9e7de; border-radius: 9px; background: #f5faf6; font-size: 12px; }
.dispatch-impact > h3, .dispatch-impact > strong { font-size: 13px; display: block; margin-bottom: 6px; }
.dispatch-impact p { color: #5e776a; font-size: 12px; line-height: 1.8; }
.impact-list { max-height: 240px; overflow: auto; margin-top: 10px; border-top: 1px solid #dce9e0; }
.impact-row { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; font-size: 11px; border-bottom: 1px solid #e4ece6; overflow-wrap: anywhere; }
.impact-row:last-child { border-bottom: 0; }
.impact-row > * { min-width: 0; }
.impact-row strong { font-weight: 600; }
.impact-row span { color: var(--muted); }
.dispatch-impact label { display: flex; gap: 8px; align-items: flex-start; padding-top: 12px; font-size: 12px; }
.dispatch-impact input[type="checkbox"] { min-height: 0; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--brand); margin-top: 3px; }
.mapping-result { padding: 16px 20px; background: #eff7f1; border-bottom: 1px solid #d8e6dd; font-size: 12px; color: #3e6550; }
.mapping-result h3 { font-size: 14px; margin-bottom: 5px; color: var(--ink); }
.mapping-result p { margin: 5px 0; overflow-wrap: anywhere; }
.mapping-result.warning { background: #fff6e7; color: #8e6828; border-color: #eedec4; }
.mapping-task-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.mapping-task-list button, .mapping-task-list .btn { white-space: normal; text-align: left; overflow-wrap: anywhere; min-width: 0; }
.model-dialog { border: 1px solid #dbe6e2; box-shadow: 0 20px 85px #102d3740; }
.model-dialog::backdrop, .task-drawer::backdrop, .dialog::backdrop { background: #102d3c70; }
.dialog { overscroll-behavior: contain; }
.dialog-bottom { flex-wrap: wrap; }
.model-dialog .modal-top { border-bottom: 1px solid #dbe6e2; }
.project-model-intro { padding: 11px 20px; font-size: 12px; }
.project-model-frame { min-height: 350px; }
.toast { box-shadow: 0 7px 25px #143b3433; }

@media (min-width: 1550px) {
  .main { padding-left: 44px; padding-right: 44px; }
  .workbench-stat { min-height: 155px; padding: 23px; }
  .queue-card { padding-top: 22px; padding-bottom: 22px; }
}
@media (max-width: 1120px) {
  .app { grid-template-columns: 168px minmax(0, 1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 9px; }
  .main { padding: 25px; }
  .top { gap: 14px; }
  .identity-bar { flex-wrap: wrap; gap: 12px; padding: 13px 15px; }
  .identity-bar .role-controls { margin-left: auto; }
  .workbench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .workbench-stat { min-height: 125px; }
  .queue-card { gap: 12px; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 142px minmax(0, 1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .brand-name { font-size: 17px; }
  .brand-symbol, .brand-symbol img { width: 32px; height: 32px; }
  .brand-sub { display: none; }
  .nav button { font-size: 13px; padding-left: 13px; }
  .main { padding: 22px; }
  .top { align-items: flex-start; flex-wrap: wrap; }
  .top h1 { font-size: 23px; }
  .role-controls { gap: 8px; }
  .identity-bar .role-controls { width: 100%; margin: 0; padding-top: 10px; border-top: 1px solid #e4ece8; }
  .role-controls label { flex: 1; min-width: 0; }
  .role-controls select { width: 100%; max-width: none; }
  .scope-meters { gap: 10px; }
  .scope-meter-card { padding: 14px; }
  .summary-note { display: block; }
  .project-grid { grid-template-columns: 1fr; }
  .workbench-header h2 { font-size: 22px; }
  .queue-card { flex-wrap: wrap; }
  .queue-actions { margin-left: auto; }
  .workbench-queue { padding-left: 17px; padding-right: 17px; }
}
@media (max-width: 640px) {
  .app { display: block; }
  .sidebar { height: auto; position: static; display: flex; flex-direction: row; align-items: center; padding: 12px 17px; }
  .brand { margin: 0; gap: 8px; }
  .brand-name { font-size: 20px; }
  .brand-symbol, .brand-symbol img { width: 32px; height: 32px; }
  .sidebar-note { display: none; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around; gap: 4px; padding: 7px 12px max(9px, env(safe-area-inset-bottom)); background: #fffffff5; border-top: 1px solid #dbe7e2; box-shadow: 0 -5px 18px #153e2c04; backdrop-filter: blur(12px); }
  .nav button { flex: 1; min-height: 43px; padding: 8px 12px; text-align: center; justify-content: center; font-size: 13px; color: #66827a; border-radius: 8px; }
  .nav button[aria-current="page"] { background: #e6f4ec; color: #087763; box-shadow: inset 0 -2px #349981; font-weight: 650; }
  .main { padding: 19px 16px 100px; }
  .top { gap: 10px; margin-bottom: 15px; }
  .top h1 { font-size: 23px; }
  .crumb { font-size: 11px; }
  .page-sub { font-size: 11px; }
  .notice { font-size: 10px; margin-bottom: 18px; padding: 10px 11px; }
  .identity-bar { padding: 12px; gap: 10px; margin-bottom: 18px; border-radius: 10px; }
  .identity-avatar { width: 35px; height: 35px; min-width: 35px; font-size: 15px; border-radius: 9px; }
  .identity-meta { font-size: 11px; }
  .identity-meta strong { font-size: 13px; }
  .identity-meta small { font-size: 10px; }
  .role-summary { font-size: 11px; gap: 6px; }
  .role-controls { width: 100%; align-items: stretch; flex-wrap: wrap; }
  .role-controls label { font-size: 10px; min-width: 110px; }
  .role-controls select { min-height: 39px; font-size: 12px; }
  .workbench-header { margin: 22px 0 15px; align-items: flex-start; gap: 10px; }
  .workbench-header h2 { font-size: 21px; }
  .workbench-header p { font-size: 11px; }
  .workbench-header .btn { padding: 8px 10px; font-size: 11px; min-height: 37px; }
  .workbench-kicker { font-size: 9px; margin-bottom: 6px; }
  .workbench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
  .workbench-stat { padding: 16px; min-height: 131px; border-radius: 10px; gap: 8px; }
  .workbench-stat > span:first-child { font-size: 11px; }
  .workbench-stat strong, .workbench-stat b { font-size: 29px; }
  .workbench-stat small { font-size: 10px; }
  .workbench-queue { padding: 4px 15px; border-radius: 10px; }
  .workbench-queue > h2, .workbench-queue > h3 { font-size: 14px; margin-top: 14px; }
  .queue-card { gap: 11px; padding: 17px 0; }
  .queue-card h3, .queue-card h4 { font-size: 13px; }
  .queue-id { font-size: 10px; }
  .queue-meta { font-size: 10px; gap: 3px 9px; }
  .queue-actions { width: 100%; justify-content: flex-end; gap: 7px; }
  .queue-actions .btn { min-height: 38px; font-size: 11px; padding: 7px 12px; }
  .workbench-empty { font-size: 12px; padding: 30px 14px; }
  .workbench-empty strong { font-size: 14px; }
  .project-toolbar { align-items: flex-start; }
  .project-switch { min-width: 0; }
  .project-switch select { font-size: 12px; min-height: 40px; min-width: 0; }
  .project-actions { gap: 5px; max-width: 160px; }
  .project-actions > .btn { font-size: 11px; min-height: 38px; }
  .more-menu > summary { min-height: 38px; display: flex; align-items: center; }
  .scope-meters { grid-template-columns: 1fr; gap: 10px; }
  .scope-meter-card { padding: 15px; }
  .scope-label { font-size: 13px; }
  .summary-meter > div { font-size: 12px; }
  .summary-note { display: block; font-size: 11px; }
  .progress-summary { padding: 15px 0; }
  .building-switch { margin-right: -16px; padding-right: 16px; }
  .building-chip { padding: 9px 13px; min-height: 42px; font-size: 12px; }
  .region-toolbar { padding: 15px; gap: 9px; }
  .region-toolbar h2 { font-size: 15px; }
  .region-toolbar p { font-size: 11px; }
  .region-toolbar .btn { min-height: 39px; font-size: 11px; }
  .region-panel .task-list { padding: 0 15px; }
  .task-row { padding: 15px 0; }
  .task-row .task-name { font-size: 13px; }
  .task-row .task-meta { font-size: 11px; }
  .task-row .full-task-id { font-size: 10px; }
  .row-title { display: block; }
  .tag { padding: 4px 7px; font-size: 10px; }
  .task-drawer { width: 100vw; }
  .task-drawer .panel-header { padding: 14px 17px; }
  .task-drawer .detail-body { padding: 19px 17px 0; }
  .task-drawer .panel-header h2 { font-size: 16px; }
  .detail-header-actions { gap: 7px; }
  .detail-title { font-size: 19px; }
  .detail-meta { font-size: 11px; }
  .full-task-id { font-size: 10px; }
  .stage-stepper { gap: 5px; margin-top: 19px; }
  .stage-step { font-size: 10px; padding-top: 33px; }
  .stage-step:not(:last-child)::after { left: 32px; right: 1px; }
  .stage-guidance { padding: 11px 12px; font-size: 11px; }
  .crew { padding: 12px; }
  .evidence-first { padding: 12px; }
  .evidence-pair { gap: 9px; }
  .evidence-pair .photo-item { width: 100%; min-width: 0; }
  .evidence-pair .photo-item button { height: 110px; }
  .evidence-pair .photo-title { font-size: 12px; }
  .file-label { font-size: 11px; }
  .photo-item small { font-size: 10px; }
  .task-location-frame { height: 215px; }
  .task-location-head p, .task-location-note, .task-location-status { font-size: 10px; }
  .detail-actions { padding-top: 12px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .detail-actions .btn { min-height: 46px; }
  .dialog { max-width: calc(100vw - 20px); padding: 18px; }
  .dialog-bottom .btn { min-height: 43px; }
  .dispatch-impact { padding: 12px; }
  .impact-row { gap: 10px; }
  .impact-list { max-height: 185px; }
  .mapping-result { padding: 13px 15px; font-size: 11px; }
  .mapping-task-list { display: grid; grid-template-columns: 1fr; }
  .mapping-task-list button { width: 100%; justify-content: flex-start; font-size: 11px; }
  .model-dialog { width: 100vw; height: 100dvh; max-width: 100vw; border: 0; border-radius: 0; }
  .model-dialog .modal-top { padding: 12px 16px; }
  .project-model-toolbar { padding: 12px 15px; gap: 10px; }
  .project-model-intro { font-size: 11px; padding: 10px 15px; }
  .project-model-actions .btn { min-height: 37px; font-size: 11px; }
  .project-model-frame { min-height: 360px; }
  .members-dialog { padding: 0; }
  .records-toolbar .btn, .record-filters button { min-height: 39px; font-size: 11px; }
  .ledger-region { padding: 15px; }
  .ledger-region-heading strong { font-size: 13px; }
  .ledger-region-meta { font-size: 11px; }
  .toast { bottom: 82px; max-width: calc(100vw - 30px); font-size: 12px; }
}
@media (max-width: 360px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .workbench-stat { padding: 13px; }
  .workbench-header { flex-wrap: wrap; }
  .project-toolbar { flex-wrap: wrap; }
  .project-switch { flex-basis: 100%; }
  .project-actions { max-width: 100%; }
  .stage-step { font-size: 9px; }
  .detail-header-actions .tag { max-width: 90px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
