/* Original stylesheet sources (cascade order):
/static/tool-workspace.css?v=20261008qa1
/static/site-shell.css?v=20260930ux
/static/drop-onboarding.css?v=20260930ux
/static/tool-explainer.css?v=20261005qa1
/static/mortar-correction.css?v=20261023b
/static/result-workspace.css?v=20261023r1
*/

    :root {
      color-scheme: dark;
      --bg: #071010;
      --panel: #101918;
      --panel-2: #13201f;
      --line: #263735;
      --line-strong: #36514d;
      --text: #ecfff8;
      --muted: #91aaa4;
      --green: #54f7a5;
      --cyan: #45caff;
      --yellow: #ffe749;
      --orange: #ffad3d;
      --danger: #ff5f57;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: var(--bg);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      overflow: auto;
    }
    button, input, select { font: inherit; }
    a { color: inherit; text-decoration: none; }
    .app { min-height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
    header {
      border-bottom: 1px solid var(--line);
      background: #0e1716;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 58px;
      padding: 9px 22px;
      gap: 16px;
    }
    .brand { flex: 1 1 auto; display: flex; align-items: center; flex-wrap: nowrap; gap: 6px 16px; }
    .brand h1 { flex: 0 0 auto; font-size: 18px; line-height: 1.35; white-space: normal; word-break: keep-all; }
    .brand .hint { flex: 1 1 auto; min-width: 120px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    nav { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
    nav a {
      display: inline-flex;
      align-items: center;
      border: 1px solid transparent;
      border-radius: 8px;
      color: var(--muted);
      min-height: 36px;
      padding: 8px 10px;
      font-weight: 800;
      white-space: nowrap;
    }
    nav a.active { color: var(--green); border-color: #2c5845; background: #10231b; }
    .layout {
      min-height: 0;
      height: calc(100vh - 58px);
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 0;
    }
    .stage {
      display: grid;
      grid-template-rows: auto 1fr;
    }
    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 16px;
      background: #0b1414;
      flex-wrap: wrap;
    }
    .tools-left, .tools-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .btn {
      border: 1px solid var(--line-strong);
      background: #13201f;
      color: var(--text);
      border-radius: 8px;
      padding: 9px 12px;
      min-height: 36px;
      font-weight: 900;
      cursor: pointer;
    }
    .btn.primary { border-color: #238853; background: #13804b; }
    .btn:hover { border-color: var(--green); }
    .view-toggle {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: #0c1414;
      overflow: hidden;
    }
    .view-toggle .btn {
      border: 0;
      border-radius: 0;
      background: transparent;
      min-width: 88px;
      padding: 9px 11px;
    }
    .view-toggle .btn + .btn { border-left: 1px solid var(--line-strong); }
    .view-toggle .btn.primary {
      background: rgba(84,247,165,.13);
      color: var(--green);
    }
    .mode-toggle {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: #0c1414;
      overflow: hidden;
    }
    .mode-toggle .btn {
      border: 0;
      border-radius: 0;
      background: transparent;
      min-width: 90px;
      padding: 9px 11px;
    }
    .mode-toggle .btn + .btn { border-left: 1px solid var(--line-strong); }
    .mode-toggle .btn.primary {
      background: rgba(84,247,165,.13);
      color: var(--green);
    }
    .manual-map-controls {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      border: 1px solid rgba(84,247,165,.24);
      border-radius: 8px;
      background: rgba(12, 20, 20, .72);
      padding: 6px;
    }
    .field-label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }
    .field-label select {
      min-width: 112px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: #111b1b;
      color: var(--text);
      padding: 7px 8px;
      font-weight: 800;
    }
    .manual-step-group {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: #0c1414;
      overflow: hidden;
    }
    .manual-step {
      appearance: none;
      border: 0;
      border-radius: 0;
      border-left: 1px solid var(--line-strong);
      background: transparent;
      padding: 7px 9px;
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
    }
    .manual-step:first-child { border-left: 0; }
    .manual-step.active {
      background: rgba(84,247,165,.13);
      color: var(--green);
    }
    .manual-step.done { color: var(--text); }
    body[data-input-mode="manual"] .auto-assist { display: none !important; }
    body[data-input-mode="manual"] .view-toggle { display: none !important; }
    body.mode-mortar:not(.has-mortar-result) .mortar-manual-toggle,
    body.mode-mortar:not(.mortar-correction-active) .mortar-manual-role,
    body.mode-mortar:not(.mortar-correction-active) #clearMortarManualBtn,
    body.mode-mortar:not(.has-mortar-result) #reverseMortarBtn {
      display: none !important;
    }
    .mortar-manual-toggle {
      min-height: 36px;
      padding: 7px 10px;
      border: 1px solid var(--line-strong);
      border-radius: 6px;
      background: #0b1413;
      color: var(--text);
      cursor: pointer;
    }
    .mortar-manual-toggle:has(input:checked) {
      border-color: var(--green);
      background: rgba(84,247,165,.12);
      color: var(--green);
    }
    body.mode-mortar.mortar-correction-active .viewer,
    body.mode-mortar.mortar-correction-active .viewer:has(.dropzone:not([style*="display: none"])) {
      cursor: crosshair !important;
    }
    body.mode-drop #captureViewBtn,
    body.mode-drop:not(.has-analysis-image) .analysis-assist,
    body[data-input-mode="manual"] .analysis-assist,
    body[data-input-mode="manual"] .drop-auto-option {
      display: none !important;
    }
    .check, .radio {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-weight: 800;
      user-select: none;
    }
    .radio-group {
      display: inline-flex;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      overflow: hidden;
      background: #0c1414;
    }
    .radio-group label { padding: 8px 10px; color: var(--muted); font-weight: 900; cursor: pointer; }
    .radio-group input { margin-right: 6px; }
    .hint { color: var(--muted); font-size: 13px; }
    .advanced-options {
      position: relative;
      color: var(--muted);
      font-size: 13px;
    }
    .advanced-options summary {
      list-style: none;
      cursor: pointer;
      border: 1px solid #263b37;
      border-radius: 8px;
      background: #0d1716;
      padding: 8px 10px;
      font-weight: 900;
      user-select: none;
    }
    .advanced-options summary::-webkit-details-marker { display: none; }
    .advanced-options[open] summary {
      border-color: rgba(84,247,165,.48);
      color: var(--green);
    }
    .advanced-options-body {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      z-index: 6;
      display: grid;
      gap: 9px;
      min-width: 220px;
      border: 1px solid #2d4741;
      border-radius: 8px;
      background: rgba(8, 16, 16, .96);
      padding: 10px;
      box-shadow: 0 14px 34px rgba(0,0,0,.36);
    }
    .advanced-options .btn {
      padding: 7px 9px;
      font-size: 13px;
    }
    .viewer {
      position: relative;
      min-height: 0;
      overflow: hidden;
      cursor: grab;
      touch-action: none;
      overscroll-behavior: contain;
      background:
        linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.035) 25%, transparent 25%),
        #050909;
      background-size: 28px 28px;
    }
    .viewer.is-panning { cursor: grabbing; }
    .viewer:has(.dropzone:not([style*="display: none"])) { cursor: default; }
    body:not(.has-analysis-image) .viewer,
    body:not(.has-analysis-image) .viewer.is-panning {
      cursor: default;
    }
    .dropzone {
      position: absolute;
      inset: 24px;
      border: 1px dashed rgba(84,247,165,.34);
      border-radius: 10px;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
      background:
        radial-gradient(circle at 50% 18%, rgba(84,247,165,.13), transparent 28%),
        linear-gradient(90deg, rgba(84,247,165,.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(84,247,165,.045) 1px, transparent 1px),
        rgba(6, 18, 15, .9);
      background-size: auto, 42px 42px, 42px 42px, auto;
      z-index: 1;
      cursor: default;
      overflow: hidden;
      padding: clamp(18px, 2vw, 30px);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
    }
    .dropzone::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(120deg, transparent 0 24%, rgba(84,247,165,.07) 24% 25%, transparent 25% 100%),
        radial-gradient(circle at 82% 72%, rgba(76,199,255,.08), transparent 34%);
      opacity: .55;
    }
    .dropzone.drag {
      border-color: var(--green);
      background-color: rgba(84,247,165,.08);
    }
    .empty-onboarding {
      position: relative;
      z-index: 1;
      width: min(1040px, 100%);
      display: grid;
      justify-items: center;
      gap: 12px;
      padding: clamp(8px, 1.1vw, 16px) 0;
    }
    .empty-symbol {
      display: grid;
      place-items: center;
      border: 1px solid rgba(84,247,165,.38);
      border-radius: 999px;
      background: radial-gradient(circle, rgba(84,247,165,.2), rgba(84,247,165,.05) 58%, transparent 60%);
      color: var(--green);
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 0;
      box-shadow: 0 0 0 10px rgba(84,247,165,.035), 0 14px 34px rgba(0,0,0,.28);
    }
    .empty-title {
      display: block;
      max-width: 980px;
      color: var(--text);
      font-size: clamp(26px, 2.6vw, 38px);
      font-weight: 900;
      word-break: keep-all;
      text-shadow: 0 2px 18px rgba(0,0,0,.42);
    }
    .empty-lead {
      display: block;
      color: #b8d6cf;
      font-size: clamp(13px, 1.05vw, 15px);
      word-break: keep-all;
    }
    .empty-flow {
      width: min(880px, 100%);
      display: grid;
      gap: 14px;
    }
    .empty-flow-card:not(:last-child)::after {
      content: "→";
      top: 58px;
      color: rgba(188,234,220,.75);
      font-size: 25px;
      font-weight: 800;
    }
    .empty-step-num {
      width: 32px;
      height: 32px;
      justify-self: center;
      border: 1px solid rgba(84,247,165,.75);
      background: rgba(8,20,17,.86);
      box-shadow: 0 8px 24px rgba(0,0,0,.32);
    }
    .empty-thumb {
      position: relative;
      height: 96px;
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
    }
    .empty-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      opacity: .72;
      filter: saturate(1.08) contrast(1.05);
    }
    .empty-thumb::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.34));
      pointer-events: none;
    }
    .empty-flow-card h3 {
      color: var(--text);
      font-weight: 900;
      word-break: keep-all;
    }
    .empty-flow-card p {
      color: var(--muted);
      word-break: keep-all;
    }
    .empty-badge {
      position: absolute;
      z-index: 2;
      border: 1px solid rgba(84,247,165,.66);
      border-radius: 999px;
      background: rgba(5,12,11,.78);
      color: var(--green);
      padding: 4px 8px;
      font-size: 11px;
      font-weight: 900;
    }
    .empty-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(170px, 1fr));
      gap: 14px;
      width: min(520px, 100%);
      margin-top: 4px;
    }
    .empty-action {
      border: 1px solid rgba(84,247,165,.42);
      min-height: 64px;
      display: grid;
      place-items: center;
      gap: 4px;
      color: var(--text);
      background: rgba(9,22,19,.86);
      font: inherit;
      font-weight: 900;
      text-align: center;
      box-shadow: 0 12px 30px rgba(0,0,0,.24);
    }
    .empty-action.primary {
      border-color: rgba(84,247,165,.72);
      background: linear-gradient(180deg, rgba(44,161,96,.96), rgba(20,98,63,.96));
      color: #f0fff8;
    }
    .empty-action.secondary {
      background: rgba(8,20,17,.58);
    }
    .empty-action span {
      display: block;
      font-weight: 700;
    }
    .empty-action:hover,
    .empty-action:focus-visible {
      outline: none;
      border-color: var(--green);
      transform: translateY(-1px);
    }
    .empty-foot {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
      font-size: 12px;
    }
    .empty-foot span::before {
      content: "+";
      color: var(--green);
      font-weight: 900;
    }
    .quick-start-card {
      border-color: rgba(84,247,165,.24);
      background: linear-gradient(180deg, rgba(14,31,27,.92), rgba(10,21,19,.86));
    }
    .quick-start-head {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 10px;
    }
    .quick-start-head .quick-mark {
      display: inline-grid;
      place-items: center;
      width: 24px;
      height: 24px;
      border: 1px solid rgba(84,247,165,.55);
      border-radius: 50%;
      color: var(--green);
      font-weight: 900;
    }
    .quick-start-head .quick-mark::before {
      content: "?";
    }
    .quick-start-head strong { margin: 0; }
    .quick-steps {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }
    .quick-step {
      display: grid;
      grid-template-columns: 28px 1fr;
      gap: 10px;
      align-items: center;
      border: 1px solid rgba(188,234,220,.12);
      border-radius: 8px;
      background: rgba(7,17,15,.62);
      padding: 9px;
    }
    .quick-step-num {
      display: grid;
      place-items: center;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: linear-gradient(180deg, #72f3ab, #38b976);
      color: #062016;
      font-size: 12px;
      font-weight: 900;
    }
    .quick-step strong {
      display: block;
      margin: 0 0 2px;
      color: var(--green);
      font-size: 13px;
    }
    .quick-step span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }
    .quick-fallback {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 38px;
      gap: 8px;
      margin-top: 12px;
      border-top: 1px dashed rgba(188,234,220,.18);
      padding-top: 12px;
      color: #dff8ef;
      text-decoration: none;
      font-weight: 900;
      font-size: 13px;
    }
    .quick-fallback:hover { color: var(--green); }

    /* paste-first onboarding refresh */
    .empty-onboarding {
      position: relative;
      min-height: min(620px, calc(100vh - 290px));
      border-radius: 10px;
      background:
        radial-gradient(circle at 50% 16%, rgba(84,247,165,.14), transparent 30%),
        linear-gradient(rgba(84,247,165,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84,247,165,.028) 1px, transparent 1px),
        radial-gradient(circle at 18% 72%, rgba(70,180,255,.055), transparent 28%),
        rgba(6,18,16,.78);
      background-size: auto, 32px 32px, 32px 32px, auto, auto;
      box-shadow: inset 0 0 0 1px rgba(84,247,165,.08), inset 0 0 90px rgba(0,0,0,.28);
    }
    .empty-onboarding::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: .16;
      background:
        radial-gradient(ellipse at 28% 28%, transparent 0 32%, rgba(188,234,220,.28) 33%, transparent 34%),
        radial-gradient(ellipse at 78% 72%, transparent 0 34%, rgba(188,234,220,.22) 35%, transparent 36%);
      filter: blur(.2px);
    }
    .empty-symbol {
      position: relative;
      z-index: 1;
    }
    .empty-symbol::after {
      content: var(--empty-icon, "D");
      font-size: 30px;
      color: var(--green);
      text-shadow: 0 0 18px rgba(84,247,165,.52);
    }
    body.mode-drop .empty-symbol { --empty-icon: "D"; }
    body.mode-mortar .empty-symbol { --empty-icon: "M"; }
    body.mode-zone .empty-symbol { --empty-icon: "Z"; }
    .empty-title,
    .empty-lead,
    .empty-flow,
    .empty-actions,
    .empty-foot {
      position: relative;
      z-index: 1;
    }
    .empty-flow {
      align-items: stretch;
      margin-top: 12px;
    }
    .empty-flow-card {
      min-height: 190px;
    }
    .empty-flow-card h3 {
      font-size: 15px;
      color: #f2fff9;
    }
    .empty-flow-card p {
      min-height: 34px;
      color: rgba(205,231,224,.76);
    }
    .empty-step-num {
      box-shadow: 0 0 0 7px rgba(84,247,165,.045);
    }
    .empty-thumb {
      height: 118px;
      border-radius: 10px;
    }
    .empty-key-visual,
    .empty-paste-visual {
      border: 1px solid rgba(188,234,220,.18);
      background:
        radial-gradient(circle at 50% 52%, rgba(84,247,165,.12), transparent 58%),
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
        rgba(4,12,12,.72);
    }
    .empty-key-visual .keycap,
    .empty-paste-visual .keycap {
      min-width: 68px;
      min-height: 54px;
      padding: 7px 10px;
      border: 1px solid rgba(236,255,248,.32);
      border-radius: 10px;
      background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
      box-shadow: inset 0 -3px 0 rgba(0,0,0,.24), 0 0 20px rgba(84,247,165,.14);
      color: #f5fffb;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.05;
    }
    .empty-key-visual .keycap small,
    .empty-paste-visual .keycap small {
      display: block;
      color: rgba(236,255,248,.62);
      font-size: 10px;
      font-weight: 800;
    }
    .empty-paste-visual {
      width: 100%;
      font: inherit;
      color: inherit;
    }
    .empty-paste-visual:hover,
    .empty-paste-visual:focus-visible {
      box-shadow: 0 0 0 1px rgba(84,247,165,.18), 0 14px 36px rgba(0,0,0,.24);
    }
    .paste-visual-inner {
      gap: 9px;
    }
    .paste-visual-title {
      color: #f3fff9;
      font-weight: 900;
    }
    .paste-visual-hint {
      gap: 7px;
      color: rgba(188,234,220,.72);
    }
    .empty-actions {
      margin-top: 10px;
    }
    .empty-action.primary {
      border-color: rgba(84,247,165,.52);
      color: #03110d;
      text-shadow: none;
    }
    .empty-action.secondary {
      border-color: rgba(84,247,165,.28);
    }
    .result-preview-card {
      box-shadow: inset 0 0 0 1px rgba(84,247,165,.07), 0 18px 55px rgba(0,0,0,.18);
    }
    .result-preview-head .eye-mark::before {
      content: "";
      width: 15px;
      height: 9px;
      border: 2px solid currentColor;
      border-radius: 50%;
      border-left-width: 1px;
      border-right-width: 1px;
    }
    .result-preview-head .eye-mark {
      font-size: 0;
    }
    .preview-image {
      border-radius: 10px;
    }
    .preview-image::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      border-radius: inherit;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -38px 70px rgba(0,0,0,.18);
    }

    @media (max-width: 980px) {
      .empty-flow { grid-template-columns: 1fr; max-width: 520px; }
      .empty-flow-card:not(:last-child)::after { display: none; }
      .empty-thumb { height: 150px; }}
    @media (max-width: 640px) {
      html,
      body {
        max-width: 100%;
        overflow-x: hidden;
      }
      header {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 10px 12px;
      }
      .brand {
        width: 100%;
        display: grid;
        gap: 4px;
        overflow: visible;
      }
      .brand h1 { font-size: 16px; }
      .brand .hint {
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
      }
      nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
      }
      nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 13px;
      }
      .toolbar {
        align-items: stretch;
        padding: 10px 12px;
      }
      .tools-left,
      .tools-right {
        width: 100%;
        min-width: 0;
      }
      .upload-hint {
        width: 100%;
        white-space: normal;
        text-align: left;
      }
      #toolbarHint {
        width: 100%;
        white-space: normal;
        text-align: left;
      }
      .mode-toggle,
      .view-toggle,
      .manual-map-controls {
        max-width: 100%;
        overflow-x: auto;
      }
      .view-toggle .btn { min-width: auto; }
      .advanced-options {
        width: 100%;
        max-width: 100%;
      }
      .advanced-options summary {
        width: 100%;
        text-align: center;
      }
      .advanced-options-body {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
      }
      .advanced-options .check,
      .advanced-options .btn {
        width: 100%;
        max-width: 100%;
      }
      .stage {
        height: auto;
        min-height: 640px;
      }
      .viewer { min-width: 0; }
      .dropzone { inset: 12px; padding: 14px; }
      .empty-symbol { width: 56px; height: 56px; }
      .empty-onboarding {
        width: 100%;
        gap: 14px;
      }
      .empty-title {
        width: 100%;
        max-width: calc(100vw - 48px);
        font-size: 22px;
        line-height: 1.2;
        word-break: normal;
        overflow-wrap: anywhere;
      }
      .empty-title em { display: block; }
      .empty-lead { font-size: 13px; }
      .empty-flow {
        width: 100%;
        max-width: 100%;
        gap: 12px;
      }
      .empty-actions { grid-template-columns: 1fr; }
      .empty-thumb { height: 118px; }
      .empty-foot {
        gap: 8px;
        font-size: 11px;
      }}
    .canvas-wrap {
      position: absolute;
      left: 0;
      top: 0;
      transform-origin: 0 0;
      display: none;
      user-select: none;
      -webkit-user-drag: none;
    }
    .canvas-wrap img {
      display: block;
      user-select: none;
      pointer-events: none;
      -webkit-user-drag: none;
      max-width: none;
    }
    .overlay {
      position: absolute;
      left: 0;
      top: 0;
      overflow: visible;
      pointer-events: none;
    }
    .manual-marker, .point-label, .measure-label {
      position: absolute;
      transform: translate(-50%, -50%);
      pointer-events: none;
      white-space: nowrap;
    }
    .manual-marker {
      width: 12px;
      height: 12px;
      border: 2px solid #38fff0;
      border-radius: 50%;
      background: rgba(56,255,240,.22);
      box-shadow: 0 0 0 2px rgba(0,0,0,.42);
    }
    .manual-marker.origin {
      border-color: var(--green);
      background: rgba(84,247,165,.24);
    }
    .manual-marker.target {
      border-color: var(--yellow);
      background: rgba(255,231,73,.22);
    }
    .loading-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: none;
      place-items: center;
      pointer-events: none;
      background: rgba(2, 7, 7, .16);
    }
    .loading-overlay.show { display: grid; }
    .loading-card {
      min-width: 240px;
      border: 1px solid rgba(84,247,165,.42);
      border-radius: 8px;
      background: rgba(8, 16, 16, .82);
      box-shadow: 0 14px 40px rgba(0,0,0,.36);
      padding: 18px 20px;
      text-align: center;
      color: var(--text);
      backdrop-filter: blur(3px);
    }
    .spinner {
      width: 34px;
      height: 34px;
      margin: 0 auto 10px;
      border: 4px solid rgba(84,247,165,.22);
      border-top-color: var(--green);
      border-radius: 50%;
      animation: spin .8s linear infinite;
    }
    .loading-card strong { display: block; margin-bottom: 5px; font-size: 16px; }
    .loading-card span { display: block; color: var(--muted); font-size: 13px; }
    .loading-steps {
      display: grid;
      gap: 7px;
      margin-top: 14px;
      text-align: left;
    }
    .loading-step {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.25;
    }
    .loading-step::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: rgba(145,170,164,.36);
      box-shadow: 0 0 0 1px rgba(255,255,255,.06);
      flex: 0 0 auto;
    }
    .loading-step.done {
      color: rgba(84,247,165,.86);
    }
    .loading-step.done::before {
      background: var(--green);
      box-shadow: 0 0 0 3px rgba(84,247,165,.12);
    }
    .loading-step.active {
      color: var(--text);
      font-weight: 800;
    }
    .loading-step.active::before {
      background: var(--yellow);
      box-shadow: 0 0 0 4px rgba(255,231,73,.13);
    }
    body.sample-analysis-view .loading-overlay.show {
      display: grid;
      place-items: start center;
      padding: 14px;
      background: linear-gradient(180deg, rgba(2, 7, 7, .34), rgba(2, 7, 7, 0) 34%);
    }
    body.sample-analysis-view .loading-card {
      width: min(460px, calc(100% - 28px));
      min-width: 0;
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      column-gap: 10px;
      padding: 10px 13px;
      text-align: left;
      background: rgba(6, 15, 14, .88);
    }
    body.sample-analysis-view .spinner {
      grid-row: 1 / span 2;
      width: 18px;
      height: 18px;
      margin: 0;
      border-width: 2px;
    }
    body.sample-analysis-view .loading-card strong {
      margin: 0;
      font-size: 13px;
      line-height: 1.25;
    }
    body.sample-analysis-view .loading-card span {
      font-size: 12px;
      line-height: 1.35;
    }
    body.sample-analysis-view .loading-steps {
      display: none;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .grid-tune-panel {
      position: absolute;
      left: 14px;
      bottom: 14px;
      z-index: 4;
      display: none;
      grid-template-columns: auto auto;
      align-items: center;
      gap: 10px;
      border: 1px solid rgba(84,247,165,.42);
      border-radius: 8px;
      background: rgba(8, 16, 16, .88);
      padding: 10px;
      box-shadow: 0 14px 34px rgba(0,0,0,.34);
      backdrop-filter: blur(3px);
    }
    .grid-tune-panel.show { display: grid; }
    .grid-tune-pad {
      display: grid;
      grid-template-columns: repeat(3, 30px);
      grid-template-rows: repeat(3, 30px);
      gap: 4px;
    }
    .grid-tune-btn {
      appearance: none;
      border: 1px solid #2e5147;
      border-radius: 6px;
      background: #101918;
      color: var(--text);
      font: inherit;
      font-weight: 900;
      cursor: pointer;
    }
    .grid-tune-btn:hover,
    .grid-tune-btn:focus-visible {
      border-color: rgba(84,247,165,.7);
      outline: none;
    }
    .grid-tune-btn::before {
      content: attr(data-glyph);
    }
    .grid-tune-readout {
      display: grid;
      gap: 6px;
      min-width: 126px;
      font-size: 12px;
      color: var(--muted);
    }
    .grid-tune-readout strong {
      color: var(--green);
      font-size: 13px;
    }
    .grid-tune-reset {
      appearance: none;
      border: 1px solid #2e5147;
      border-radius: 6px;
      background: #101918;
      color: var(--text);
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      padding: 6px 8px;
      cursor: pointer;
    }
    .grid-tune-reset:hover,
    .grid-tune-reset:focus-visible {
      border-color: rgba(84,247,165,.7);
      outline: none;
    }
    .point-label {
      padding: 4px 7px;
      border-radius: 6px;
      background: rgba(4,8,8,.76);
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
    }
    .measure-label {
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(4,8,8,.78);
      border: 1px solid rgba(77,245,154,.5);
      color: var(--green);
      font-size: 12px;
      font-weight: 900;
    }
    aside {
      min-width: 0;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: auto;
      background: var(--panel);
      padding: 16px;
    }
    .status {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #0b1414;
      padding: 13px;
      color: var(--muted);
      line-height: 1.55;
      margin-bottom: 14px;
    }
    .status.good { color: var(--green); border-color: #23543d; }
    .status.warn { color: var(--yellow); border-color: #665d25; }
    .status.error { color: #ffb0aa; border-color: #66302c; }
    .guide-card {
      border: 1px solid #29413a;
      border-radius: 8px;
      background: #0d1816;
      padding: 13px;
      margin-bottom: 14px;
      line-height: 1.5;
    }
    .guide-card strong {
      display: block;
      margin-bottom: 4px;
      color: var(--green);
      font-size: 14px;
    }
    .guide-card span {
      display: block;
      color: var(--muted);
      font-size: 13px;
    }

    /* usage-example: removable usage help entry points */
    .usage-help-btn {
      min-width: auto;
      padding: 8px 11px;
      border-style: dashed;
      color: #dff8ef;
      background: rgba(9, 20, 18, .72);
    }
    .usage-help-btn:hover,
    .usage-card-btn:hover,
    .usage-inline-btn:hover {
      border-color: var(--green);
      color: var(--green);
    }
    .dropzone-actions {
      display: flex;
      justify-content: center;
      margin-top: 16px;
    }
    .usage-inline-btn,
    .usage-card-btn {
      border: 1px solid rgba(84, 247, 165, .34);
      border-radius: 999px;
      background: rgba(84, 247, 165, .08);
      color: #dff8ef;
      cursor: pointer;
      font: inherit;
      font-size: 13px;
      font-weight: 900;
    }
    .usage-inline-btn {
      padding: 8px 13px;
    }
    .usage-card-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-top: 11px;
      padding: 7px 12px;
    }
    .usage-modal-backdrop[hidden] { display: none; }
    .usage-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(1, 7, 6, .78);
      backdrop-filter: blur(10px);
    }
    .usage-modal {
      position: relative;
      width: min(1180px, calc(100vw - 48px));
      max-height: calc(100vh - 48px);
      overflow: auto;
      border: 1px solid rgba(84, 247, 165, .24);
      border-radius: 10px;
      background:
        linear-gradient(90deg, rgba(84,247,165,.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(84,247,165,.05) 1px, transparent 1px),
        #071410;
      background-size: 84px 84px;
      box-shadow: 0 26px 80px rgba(0, 0, 0, .52);
      padding: 30px;
    }
    .usage-modal-close {
      position: absolute;
      right: 18px;
      top: 16px;
      width: 36px;
      height: 36px;
      border: 1px solid rgba(188, 234, 220, .28);
      border-radius: 8px;
      background: rgba(9, 20, 18, .82);
      color: var(--text);
      cursor: pointer;
      font-size: 20px;
      line-height: 1;
    }
    .usage-modal-head {
      max-width: 880px;
      margin-bottom: 24px;
    }
    .usage-modal-eyebrow {
      display: inline-flex;
      align-items: center;
      border: 1px solid rgba(84,247,165,.44);
      border-radius: 999px;
      padding: 5px 10px;
      color: var(--green);
      font-size: 12px;
      font-weight: 900;
    }
    .usage-modal h2 {
      margin: 13px 0 8px;
      color: var(--text);
      font-size: clamp(28px, 3vw, 44px);
      line-height: 1.12;
      letter-spacing: 0;
    }
    .usage-modal-lead {
      margin: 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.65;
    }
    .usage-modal-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
    }
    .usage-modal-chip {
      border: 1px solid rgba(188, 234, 220, .24);
      border-radius: 999px;
      padding: 7px 11px;
      color: #d7efe8;
      background: rgba(5, 14, 13, .62);
      font-size: 13px;
      font-weight: 800;
    }
    .usage-steps {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      align-items: stretch;
    }
    .usage-step-card {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 0;
      border: 1px solid rgba(84,247,165,.22);
      border-radius: 10px;
      background: rgba(10, 26, 22, .86);
      padding: 18px;
      overflow: hidden;
    }
    .usage-step-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .usage-step-num {
      color: var(--yellow);
      font-size: 34px;
      font-weight: 900;
      line-height: 1;
    }
    .usage-step-card:nth-child(2) .usage-step-num { color: var(--green); }
    .usage-step-card:nth-child(3) .usage-step-num { color: #4cc7ff; }
    .usage-step-tag {
      border: 1px solid currentColor;
      border-radius: 999px;
      padding: 5px 10px;
      color: var(--green);
      font-size: 12px;
      font-weight: 900;
    }
    .usage-step-media {
      position: relative;
      display: grid;
      place-items: center;
      height: 190px;
      border: 1px solid rgba(188, 234, 220, .18);
      border-radius: 8px;
      background: #07100f;
      overflow: hidden;
      margin-bottom: 16px;
    }
    .usage-step-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .usage-paste-preview {
      width: 100%;
      height: 100%;
      display: grid;
      place-items: center;
      background:
        linear-gradient(90deg, rgba(84,247,165,.18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(84,247,165,.16) 1px, transparent 1px),
        rgba(8, 20, 17, .86);
      background-size: 38px 38px;
    }
    .usage-paste-box {
      border: 1px solid rgba(84,247,165,.42);
      border-radius: 8px;
      background: rgba(12, 29, 25, .92);
      color: var(--text);
      padding: 22px 28px;
      text-align: center;
      font-weight: 900;
      box-shadow: 0 14px 34px rgba(0,0,0,.32);
    }
    .usage-key-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      margin-top: 12px;
      color: var(--muted);
    }
    .usage-key {
      border: 1px solid rgba(188,234,220,.38);
      border-radius: 6px;
      padding: 5px 10px;
      background: rgba(255,255,255,.05);
      color: var(--text);
      font-weight: 900;
    }
    .usage-step-card h3 {
      margin: 0 0 8px;
      color: var(--text);
      font-size: 21px;
      line-height: 1.25;
    }
    .usage-step-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
      font-size: 14px;
    }
    .usage-step-foot {
      margin-top: auto;
      padding-top: 16px;
      border-top: 1px solid rgba(188,234,220,.14);
      color: rgba(188,234,220,.76);
      font-size: 12px;
    }
    @media (max-width: 980px) {
      .usage-steps { grid-template-columns: 1fr; }
      .usage-step-media { height: 220px; }}
    @media (max-width: 640px) {
      .usage-modal-backdrop { padding: 10px; }
      .usage-modal { width: calc(100vw - 20px); padding: 22px 14px; }
      .usage-modal h2 { font-size: 28px; }
      .usage-step-media { height: 180px; }}

    /* usage-example-polish: actual screenshot tutorial */
    .usage-modal {
      width: min(1280px, calc(100vw - 48px));
      border-radius: 12px;
      border-color: rgba(84, 247, 165, .26);
      background:
        linear-gradient(90deg, rgba(84,247,165,.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(84,247,165,.045) 1px, transparent 1px),
        radial-gradient(circle at 18% 10%, rgba(84,247,165,.08), transparent 34%),
        #06120f;
      background-size: 80px 80px, 80px 80px, auto, auto;
      box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
    }
    .usage-modal-eyebrow,
    .usage-step-tag { color: var(--green, var(--accent, #54f7a5)); }
    .usage-modal h2 { font-size: clamp(30px, 3vw, 46px); }
    .usage-step-card {
      border-radius: 12px;
      border-color: rgba(84,247,165,.23);
      background: rgba(9, 28, 23, .88);
    }
    .usage-step-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 38%);
    }
    .usage-step-top,
    .usage-step-card h3,
    .usage-step-card p,
    .usage-step-foot { position: relative; }
    .usage-step-num { font-size: 36px; }
    .usage-step-card:nth-child(2) .usage-step-num { color: var(--green, var(--accent, #54f7a5)); }
    .usage-step-media {
      height: 250px;
      border-radius: 10px;
      background: #06100e;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
    }
    .usage-step-media.usage-media-contain img {
      object-fit: contain;
      background: #030807;
    }
    .usage-step-media::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 32%, rgba(0,0,0,.18));
    }
    .usage-media-badges {
      position: absolute;
      left: 12px;
      top: 12px;
      right: 12px;
      z-index: 2;
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      pointer-events: none;
    }
    .usage-media-badge {
      border: 1px solid rgba(255, 231, 73, .86);
      border-radius: 999px;
      background: rgba(5, 12, 11, .82);
      color: var(--yellow, #ffe85a);
      padding: 5px 9px;
      font-size: 12px;
      font-weight: 900;
      box-shadow: 0 8px 22px rgba(0,0,0,.32);
    }
    .usage-step-card:nth-child(3) .usage-media-badge {
      border-color: rgba(76, 199, 255, .8);
      color: #8be2ff;
    }
    .usage-paste-box {
      border-radius: 10px;
      border-color: rgba(84,247,165,.46);
      background: rgba(12, 29, 25, .94);
      padding: 24px 30px;
      font-size: 18px;
      box-shadow: 0 16px 38px rgba(0,0,0,.34);
    }
    @media (max-width: 1080px) {
      .usage-steps { grid-template-columns: 1fr; }
      .usage-step-media { height: 300px; }}
    @media (max-width: 640px) {
      .usage-step-media { height: 210px; }}
    .contact-card {
      border-color: rgba(84,247,165,.24);
      background: rgba(14,27,24,.72);
    }
    .contact-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 10px;
    }
    .contact-link {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      gap: 7px;
      border: 1px solid #263b37;
      border-radius: 8px;
      background: #101918;
      padding: 8px 9px;
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
      text-decoration: none;
      line-height: 1;
    }
    .contact-link:hover {
      border-color: rgba(84,247,165,.48);
      color: var(--green);
    }
    .contact-link svg {
      width: 16px;
      height: 16px;
      flex: 0 0 auto;
    }
    .contact-link.discord svg { color: #8ea1ff; }
    .contact-link.kakao svg { color: #fee500; }
    .tool-footer {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 14px 18px 18px;
      border-top: 1px solid rgba(145,170,164,.18);
      background: rgba(5,9,9,.46);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
    }
    .tool-footer p {
      max-width: 980px;
      margin: 0;
    }
    .tool-footer nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      gap: 8px 14px;
    }
    .tool-footer a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      min-width: 34px;
      color: var(--text);
      font-weight: 800;
      text-decoration: none;
    }
    .tool-footer a:hover {
      color: var(--green);
      text-decoration: underline;
    }
    .tool-content-below {
      width: min(1180px, calc(100% - 32px));
      max-width: calc(100% - 32px);
      min-width: 0;
      margin: 22px auto 18px;
      display: grid;
      gap: 14px;
    }
    .seo-copy {
      border: 1px solid rgba(145,170,164,.16);
      border-radius: 8px;
      background: rgba(11,17,17,.26);
      padding: 14px;
      margin: 0;
      color: #a9c2bd;
      line-height: 1.58;
      font-size: 13px;
    }
    .seo-copy h2 {
      margin: 0 0 8px;
      color: var(--text);
      font-size: 16px;
      line-height: 1.35;
      word-break: keep-all;
    }
    .seo-copy p { margin: 0; }
    .seo-copy ul {
      margin: 10px 0 0;
      padding-left: 17px;
    }
    .seo-copy li { margin: 4px 0; }
    .section-title { margin: 16px 0 10px; color: var(--green); font-size: 14px; font-weight: 900; }
    .result-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #0b1414;
      padding: 12px;
      margin-bottom: 12px;
    }
    .result-card.primary-result {
      border-color: rgba(84,247,165,.54);
      background: linear-gradient(180deg, rgba(17,34,30,.98), rgba(10,20,19,.98));
      box-shadow: 0 0 0 1px rgba(84,247,165,.08), 0 14px 32px rgba(0,0,0,.20);
    }
    .result-card.primary-result h3 {
      color: var(--green);
      font-size: 17px;
    }
    .result-card.primary-result .kv strong {
      font-size: 18px;
    }
    .result-card h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
    .pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 24px;
      height: 24px;
      border-radius: 999px;
      padding: 0 8px;
      background: #172624;
      border: 1px solid var(--line-strong);
      font-weight: 900;
    }
    .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .kv div {
      border: 1px solid #223330;
      border-radius: 7px;
      background: #101918;
      padding: 8px;
    }
    .kv span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
    .kv strong { display: block; font-size: 17px; }
    .recommend-speed {
      margin: 0 0 10px;
      border: 1px solid #223330;
      border-radius: 7px;
      background: #0f1b1a;
      padding: 9px 10px;
    }
    .recommend-speed-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 7px;
    }
    .recommend-speed-head span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }
    .speed-options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .speed-option {
      appearance: none;
      width: 100%;
      border: 1px solid #263b37;
      border-radius: 6px;
      background: #101918;
      padding: 8px;
      color: inherit;
      text-align: left;
      font: inherit;
      cursor: pointer;
    }
    .speed-option:hover {
      border-color: rgba(84,247,165,.45);
    }
    .speed-option:focus-visible {
      outline: 2px solid rgba(84,247,165,.7);
      outline-offset: 2px;
    }
    .speed-option span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      margin-bottom: 2px;
    }
    .speed-option strong {
      display: block;
      color: var(--text);
      font-size: 18px;
      line-height: 1.2;
    }
    .speed-option.active {
      border-color: rgba(84,247,165,.45);
      background: rgba(84,247,165,.09);
    }
    .speed-option.active strong {
      color: var(--green);
    }
    .recommend-help {
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      width: 22px;
      height: 22px;
      border: 1px solid #2e5147;
      border-radius: 999px;
      background: #101918;
      color: var(--green);
      font-weight: 900;
      cursor: help;
    }
    .floating-tooltip {
      position: fixed;
      z-index: 10000;
      display: none;
      width: min(330px, 76vw);
      border: 1px solid #2e5147;
      border-radius: 8px;
      background: rgba(5, 12, 12, .96);
      color: var(--text);
      padding: 10px 11px;
      white-space: pre-line;
      font-size: 12px;
      line-height: 1.55;
      box-shadow: 0 12px 28px rgba(0,0,0,.38);
      pointer-events: none;
    }
    .floating-tooltip.show {
      display: block;
    }
    .warn-list {
      margin: 0 0 12px;
      padding: 10px 12px 10px 30px;
      border: 1px solid rgba(255,231,73,.28);
      border-radius: 8px;
      background: rgba(255,231,73,.055);
      color: #ffe98a;
      line-height: 1.5;
      font-size: 13px;
    }
    details.debug {
      display: none;
      margin-top: 12px;
      border: 1px solid #253631;
      border-radius: 8px;
      background: #060b0b;
      padding: 10px;
    }
    details.debug.show { display: block; }
    details.debug summary { cursor: pointer; color: var(--muted); font-weight: 900; }
    pre {
      white-space: pre-wrap;
      word-break: break-word;
      color: #8bff8b;
      margin: 10px 0 0;
      font-size: 12px;
      line-height: 1.45;
    }
    .hidden { display: none !important; }
    @media (max-width: 980px) {
      body { overflow: auto; }
      .app { height: auto; min-height: 100vh; }
      .layout { grid-template-columns: 1fr; height: auto; }
      .stage { height: 68vh; border-right: 0; border-bottom: 1px solid var(--line); }
      aside { max-height: none; }}
    @media (max-width: 1024px) {
      html,
      body.mode-mortar:not(.has-analysis-image) {
        max-width: 100%;
        overflow-x: hidden;
      }
      body.mode-mortar:not(.has-analysis-image) {
        overflow-y: auto;
      }
      body.mode-mortar:not(.has-analysis-image) .app,
      body.mode-mortar:not(.has-analysis-image) .layout,
      body.mode-mortar:not(.has-analysis-image) header,
      body.mode-mortar:not(.has-analysis-image) .stage,
      body.mode-mortar:not(.has-analysis-image) .toolbar,
      body.mode-mortar:not(.has-analysis-image) .viewer,
      body.mode-mortar:not(.has-analysis-image) aside {
        width: 100%;
        max-width: 100%;
        min-width: 0;
      }
      body.mode-mortar:not(.has-analysis-image) .app,
      body.mode-mortar:not(.has-analysis-image) .layout {
        overflow-x: hidden;
      }
      body.mode-mortar:not(.has-analysis-image) .layout {
        grid-template-columns: minmax(0, 1fr);
      }
      body.mode-mortar:not(.has-analysis-image) .brand {
        min-width: 0;
      }
      body.mode-mortar:not(.has-analysis-image) nav {
        max-width: 100%;
        overflow-x: auto;
      }
      body.mode-mortar:not(.has-analysis-image) aside {
        height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
      }}
    @media (max-width: 640px) {
      header {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 10px 12px;
      }
      .brand {
        width: 100%;
        display: grid;
        gap: 4px;
        overflow: visible;
      }
      .brand h1 { font-size: 16px; }
      .brand .hint {
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
      }
      nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
      }
      nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 13px;
      }
      .toolbar {
        align-items: stretch;
        padding: 10px 12px;
      }
      .tools-left,
      .tools-right {
        width: 100%;
        min-width: 0;
      }
      .mode-toggle,
      .view-toggle,
      .manual-map-controls {
        max-width: 100%;
        overflow-x: auto;
      }
      .view-toggle .btn { min-width: auto; }
      .stage {
        height: auto;
        min-height: 640px;
      }
      .viewer { min-width: 0; }
      .dropzone {
        inset: 12px;
        padding: 14px;
      }
      .empty-onboarding {
        width: 100%;
        gap: 14px;
      }
      .empty-title {
        width: 100%;
        max-width: calc(100vw - 48px);
        font-size: 22px;
        line-height: 1.2;
        word-break: normal;
        overflow-wrap: anywhere;
      }
      .empty-title em { display: block; }
      .empty-lead { font-size: 13px; }
      .empty-flow {
        width: 100%;
        max-width: 100%;
        gap: 12px;
      }
      .empty-flow-card:not(:last-child)::after { display: none; }
      .empty-symbol { width: 56px; height: 56px; }
      .empty-actions { grid-template-columns: 1fr; }
      .empty-thumb { height: 118px; }
      .empty-foot {
        gap: 8px;
        font-size: 11px;
      }
      body.mode-mortar:not(.has-analysis-image) header {
        gap: 8px;
        padding: 8px 10px;
      }
      body.mode-mortar:not(.has-analysis-image) .toolbar {
        padding: 8px 10px;
      }
      body.mode-mortar:not(.has-analysis-image) .stage,
      body.mode-mortar:not(.has-analysis-image) .viewer {
        height: auto;
        min-height: 0;
      }
      body.mode-mortar:not(.has-analysis-image) aside {
        overflow-x: hidden;
        padding: 12px;
      }
      body.mode-mortar:not(.has-analysis-image) aside .guide-card,
      body.mode-mortar:not(.has-analysis-image) aside .status,
      body.mode-mortar:not(.has-analysis-image) aside .contact-card,
      body.mode-mortar:not(.has-analysis-image) aside .result-preview-card,
      body.mode-mortar:not(.has-analysis-image) aside .quick-start-card {
        max-width: 100%;
      }}
    /* onboarding mockup refresh */
    .empty-onboarding {
      width: min(1080px, 100%);
      gap: 12px;
      padding: clamp(10px, 1.2vw, 18px) clamp(10px, 1.6vw, 22px);
    }
    .empty-symbol {
      width: 60px;
      height: 60px;
      border-color: rgba(84,247,165,.52);
      background:
        radial-gradient(circle at 50% 48%, rgba(84,247,165,.24), rgba(84,247,165,.06) 62%, transparent 64%),
        rgba(7, 20, 16, .84);
      box-shadow: 0 0 0 9px rgba(84,247,165,.04), 0 14px 34px rgba(0,0,0,.3);
    }
    .empty-title {
      max-width: 860px;
      font-size: clamp(26px, 2.5vw, 38px);
      text-shadow: 0 2px 22px rgba(0,0,0,.5);
    }
    .empty-lead {
      max-width: 760px;
      font-size: 14px;
    }
    .empty-flow {
      width: min(960px, 100%);
      gap: clamp(10px, 1.4vw, 18px);
    }
    .empty-flow-card:not(:last-child)::after {
      right: -16px;
      top: 62px;
      color: rgba(84,247,165,.78);
    }
    .empty-step-num {
      display: inline-grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border: 1px solid rgba(84,247,165,.58);
      background: rgba(8,24,20,.86);
      font-weight: 900;
    }
    .empty-thumb {
      height: 94px;
      border-color: rgba(188,234,220,.16);
      background: #07100f;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 16px 36px rgba(0,0,0,.24);
    }
    .empty-thumb img {
      filter: saturate(.96) contrast(1.04);
    }
    .empty-badge {
      box-shadow: 0 8px 20px rgba(0,0,0,.32);
    }
    .empty-actions {
      width: min(620px, 100%);
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
    .empty-action {
      min-height: 58px;
      cursor: pointer;
      font-size: 16px;
      box-shadow: 0 18px 46px rgba(0,0,0,.22);
    }
    .empty-action.primary {
      background: linear-gradient(180deg, rgba(34,177,99,.98), rgba(22,113,72,.98));
    }
    .empty-action.secondary {
      background: rgba(8,20,17,.66);
    }
    .empty-action span {
      margin-top: 3px;
    }
    .result-preview-card {
      order: -1;
      border-color: rgba(84,247,165,.25);
      background:
        radial-gradient(circle at 22% 0%, rgba(84,247,165,.08), transparent 38%),
        linear-gradient(180deg, rgba(14,31,27,.94), rgba(10,21,19,.9));
    }
    body.has-analysis-image aside .quick-start-card,
    body.has-analysis-image aside .result-preview-card {
      display: none;
    }
    .result-preview-head {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .result-preview-head .eye-mark {
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border: 1px solid rgba(84,247,165,.4);
      border-radius: 999px;
      color: var(--green);
      font-weight: 900;
    }
    .result-preview-head strong {
      margin: 0;
      font-size: 16px;
    }
    .result-preview-head span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-top: 2px;
    }
    .preview-image {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(188,234,220,.17);
      border-radius: 8px;
      background: #06100f;
      aspect-ratio: 16 / 9;
      margin-bottom: 12px;
    }
    .preview-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .preview-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 12px;
    }
    .preview-stat {
      border: 1px solid rgba(188,234,220,.14);
      border-radius: 8px;
      background: rgba(6,15,14,.64);
      padding: 9px;
      min-width: 0;
    }
    .preview-stat span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 4px;
    }
    .preview-stat strong {
      color: var(--text);
      font-size: 17px;
      line-height: 1.1;
    }
    .preview-list {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
      color: #c6ddd7;
      font-size: 13px;
      line-height: 1.45;
    }
    .preview-list li {
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }
    .preview-list li::before {
      content: "✓";
      display: grid;
      place-items: center;
      flex: 0 0 18px;
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: rgba(84,247,165,.18);
      color: var(--green);
      font-weight: 900;
      font-size: 12px;
    }
    .hidden-file-action {
      margin-top: 10px;
      width: 100%;
      border: 1px dashed rgba(188,234,220,.24);
      border-radius: 8px;
      background: rgba(8,20,17,.42);
      color: var(--muted);
      padding: 8px 10px;
      cursor: pointer;
      font: inherit;
      font-size: 12px;
      font-weight: 800;
    }
    .hidden-file-action:hover {
      border-color: rgba(84,247,165,.5);
      color: var(--green);
    }
    @media (max-width: 980px) {
      .empty-flow { grid-template-columns: 1fr; max-width: 560px; }
      .empty-flow-card:not(:last-child)::after { display: none; }
      .empty-thumb { height: 180px; }
      .preview-grid { grid-template-columns: 1fr; }}

    /* paste-first onboarding final pass */
    .empty-onboarding {
      width: min(1120px, 100%);
      min-height: clamp(520px, 64vh, 760px);
      padding: clamp(26px, 3vw, 46px) clamp(18px, 3vw, 42px);
      gap: clamp(14px, 2vw, 24px);
      border-color: rgba(84,247,165,.28);
      background:
        radial-gradient(circle at 50% 10%, rgba(84,247,165,.12), transparent 34%),
        linear-gradient(180deg, rgba(7,24,20,.92), rgba(6,16,14,.9)),
        repeating-linear-gradient(0deg, rgba(188,234,220,.035) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(188,234,220,.032) 0 1px, transparent 1px 32px);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 28px 80px rgba(0,0,0,.25);
    }
    .empty-onboarding::before { opacity: .42; }
    .empty-symbol {
      width: 68px;
      height: 68px;
      font-size: 0;
      border-color: rgba(84,247,165,.5);
      background:
        radial-gradient(circle at 50% 45%, rgba(84,247,165,.32), rgba(84,247,165,.08) 60%, transparent 62%),
        rgba(6,18,16,.9);
      box-shadow: 0 0 0 12px rgba(84,247,165,.04), 0 18px 44px rgba(0,0,0,.34);
    }
    .empty-symbol::after {
      content: "D";
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border-radius: 999px;
      border: 1px solid rgba(236,255,248,.72);
      color: #ecfff8;
      font-size: 18px;
      font-weight: 1000;
      line-height: 1;
    }
    body.mode-mortar .empty-symbol::after { content: "M"; }
    body.mode-zone .empty-symbol::after { content: "Z"; }
    .empty-title {
      font-size: clamp(28px, 3vw, 46px);
      line-height: 1.08;
      letter-spacing: 0;
    }
    .empty-title em { color: var(--green); font-style: normal; }
    .empty-lead { max-width: 780px; color: #c6ddd7; font-size: 15px; line-height: 1.5; }
    .empty-flow {
      width: min(980px, 100%);
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(14px, 2vw, 26px);
      margin-top: 4px;
    }
    .empty-flow-card {
      position: relative;
      display: grid;
      gap: 9px;
      justify-items: center;
      align-content: start;
      text-align: center;
      border: 0;
      background: transparent;
      padding: 0;
      min-width: 0;
    }
    .empty-flow-card:not(:last-child)::after {
      content: "->";
      position: absolute;
      right: calc(-1 * clamp(16px, 2vw, 25px));
      top: 114px;
      transform: translateX(50%);
      color: rgba(84,247,165,.82);
      font-size: 24px;
      line-height: 1;
    }
    .empty-step-num {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 1px solid rgba(84,247,165,.62);
      background: rgba(6,22,18,.88);
      color: var(--green);
      font-size: 15px;
      font-weight: 1000;
      box-shadow: 0 10px 28px rgba(0,0,0,.22);
    }
    .empty-flow-card h3 { margin: 0; color: #ecfff8; font-size: 16px; line-height: 1.25; }
    .empty-flow-card p { margin: 0; color: rgba(198,221,215,.82); font-size: 12px; line-height: 1.45; }
    .empty-thumb {
      width: 100%;
      height: clamp(104px, 10vw, 132px);
      border-radius: 8px;
      border: 1px solid rgba(188,234,220,.18);
      background: linear-gradient(180deg, rgba(8,20,17,.8), rgba(5,13,12,.86));
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 18px 42px rgba(0,0,0,.26);
    }
    .empty-thumb img { filter: saturate(.96) contrast(1.05); }
    .empty-key-visual,
    .empty-paste-visual {
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at 50% 45%, rgba(84,247,165,.13), transparent 42%),
        linear-gradient(180deg, rgba(10,26,22,.92), rgba(4,12,11,.94));
    }
    .empty-key-visual .keycap,
    .empty-paste-visual .keycap {
      display: inline-grid;
      place-items: center;
      min-width: 54px;
      height: 46px;
      padding: 0 10px;
      border-radius: 8px;
      border: 1px solid rgba(236,255,248,.48);
      background: rgba(255,255,255,.06);
      color: #ecfff8;
      font-size: 15px;
      font-weight: 1000;
      box-shadow: 0 0 18px rgba(84,247,165,.14);
    }
    .empty-key-visual .keycap small { display: block; font-size: 10px; opacity: .8; }
    .empty-paste-visual {
      color: #ecfff8;
      cursor: pointer;
    }
    .empty-paste-visual:hover,
    .empty-paste-visual:focus-visible { border-color: rgba(84,247,165,.58); box-shadow: 0 0 0 3px rgba(84,247,165,.12), 0 18px 42px rgba(0,0,0,.26); outline: none; }
    .paste-visual-inner { display: grid; gap: 10px; justify-items: center; }
    .paste-visual-title { color: #ecfff8; font-size: 15px; font-weight: 1000; }
    .paste-visual-hint { display: inline-flex; align-items: center; gap: 8px; color: rgba(236,255,248,.85); }
    .empty-badge {
      left: 10px;
      top: 10px;
      right: auto;
      color: var(--yellow);
      border-color: rgba(255,232,90,.72);
      background: rgba(5,12,11,.84);
    }
    .empty-actions {
      width: min(650px, 100%);
      grid-template-columns: 1.08fr 1fr;
      gap: 12px;
      margin-top: 2px;
    }
    .empty-action {
      min-height: 66px;
      font-size: 17px;
      box-shadow: 0 20px 48px rgba(0,0,0,.24);
    }
    .empty-action.primary { background: linear-gradient(180deg, rgba(39,185,104,.98), rgba(20,119,75,.98)); }
    .empty-action.secondary { background: rgba(8,20,17,.72); }
    .empty-action span { margin-top: 4px; font-size: 12px; color: rgba(236,255,248,.72); }
    .empty-foot { margin-top: 0; color: rgba(188,234,220,.68); }
    .hidden-file-action { display: none !important; }
    @media (max-width: 980px) {
      .empty-onboarding { min-height: auto; padding: 26px 16px; }
      .empty-flow { grid-template-columns: 1fr; max-width: 560px; }
      .empty-flow-card:not(:last-child)::after { display: none; }
      .empty-thumb { height: 164px; }
      .empty-actions { grid-template-columns: 1fr; max-width: 520px; }}


    /* paste-first onboarding UX compact pass */
    body:not(.has-analysis-image) aside .quick-start-card,
    body:not(.has-analysis-image) aside .status {
      display: none !important;
    }
    body:not(.has-analysis-image) aside .result-preview-card {
      border-color: rgba(84,247,165,.36);
      background:
        radial-gradient(circle at 50% -10%, rgba(84,247,165,.13), transparent 42%),
        linear-gradient(180deg, rgba(8,28,23,.88), rgba(6,19,16,.82));
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.028), 0 14px 36px rgba(0,0,0,.18);
    }
    body:not(.has-analysis-image) aside .result-preview-card .preview-image {
      max-height: 158px;
    }
    body:not(.has-analysis-image) aside .result-preview-card .preview-image img {
      object-fit: cover;
    }
    body.mode-mortar:not(.has-analysis-image) aside .result-preview-card .preview-image {
      aspect-ratio: 4 / 3;
      max-height: 260px;
    }
    body.mode-mortar:not(.has-analysis-image) aside .result-preview-card .preview-image img {
      object-fit: cover;
      object-position: center;
    }
    .empty-onboarding {
      width: min(960px, calc(100% - 42px));
      min-height: clamp(360px, 44vh, 520px);
      padding: clamp(20px, 2vw, 30px) clamp(18px, 2.4vw, 32px);
      gap: clamp(8px, 1.2vw, 14px);
      border-radius: 8px;
      transform: translateY(-4px);
      background:
        radial-gradient(circle at 50% 2%, rgba(84,247,165,.13), transparent 30%),
        linear-gradient(180deg, rgba(7,24,20,.9), rgba(5,15,13,.88)),
        repeating-linear-gradient(0deg, rgba(188,234,220,.026) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(188,234,220,.024) 0 1px, transparent 1px 32px);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.022), 0 16px 44px rgba(0,0,0,.2);
    }
    .empty-onboarding::before {
      opacity: .2;
    }
    .empty-symbol {
      width: 50px;
      height: 50px;
      box-shadow: 0 0 0 8px rgba(84,247,165,.032), 0 12px 30px rgba(0,0,0,.26);
    }
    .empty-symbol::after {
      width: 24px;
      height: 24px;
      font-size: 14px;
    }
    .empty-title {
      max-width: 920px;
      font-size: clamp(24px, 2.05vw, 34px);
      line-height: 1.12;
      text-wrap: balance;
    }
    body.mode-zone:not(.has-analysis-image) .empty-title {
      max-width: 960px;
      font-size: clamp(23px, 1.95vw, 32px);
    }
    .empty-lead {
      max-width: 720px;
      font-size: 13px;
      line-height: 1.45;
    }
    .empty-actions {
      order: 4;
      width: min(600px, 100%);
      grid-template-columns: 1.06fr .94fr;
      gap: 10px;
      margin-top: 0;
    }
    .empty-action {
      min-height: 54px;
      border-radius: 8px;
      font-size: 15px;
      box-shadow: 0 14px 30px rgba(0,0,0,.18);
    }
    .empty-action span {
      margin-top: 2px;
      font-size: 11px;
    }
    .empty-flow {
      order: 5;
      width: min(820px, 100%);
      gap: clamp(9px, 1.2vw, 16px);
      margin-top: 2px;
    }
    .empty-flow-card {
      gap: 6px;
    }
    .empty-flow-card:not(:last-child)::after {
      top: 74px;
      right: calc(-1 * clamp(9px, 1.2vw, 15px));
      font-size: 18px;
      opacity: .68;
    }
    .empty-step-num {
      width: 28px;
      height: 28px;
      font-size: 12px;
    }
    .empty-flow-card h3 {
      font-size: 13px;
      line-height: 1.22;
    }
    .empty-flow-card p {
      font-size: 10.5px;
      line-height: 1.34;
      max-width: 220px;
    }
    .empty-thumb {
      height: clamp(72px, 6.4vw, 92px);
      border-radius: 7px;
    }
    .empty-key-visual .keycap,
    .empty-paste-visual .keycap {
      min-width: 44px;
      height: 36px;
      border-radius: 7px;
      font-size: 12px;
    }
    .paste-visual-title { font-size: 12px; }
    .paste-visual-hint { font-size: 11px; }
    .empty-foot {
      order: 6;
      font-size: 10.5px;
      opacity: .86;
    }
    body.mode-zone:not(.has-analysis-image) #mapCanvas {
      opacity: .2;
      filter: saturate(.68) brightness(.62);
    }
    body.mode-zone:not(.has-analysis-image) .map-drop-panel {
      align-items: center;
      justify-content: center;
    }
    @media (min-width: 1500px) {
      body:not(.has-analysis-image) aside .result-preview-card .preview-image { max-height: 154px; }
      .empty-onboarding { transform: translateY(-8px); }}
    @media (max-width: 980px) {
      body:not(.has-analysis-image) aside .quick-start-card { display: block !important; }
      body:not(.has-analysis-image) aside .status { display: block !important; }
      .empty-onboarding { width: min(100% - 24px, 620px); min-height: auto; transform: none; }
      .empty-actions { grid-template-columns: 1fr; }
      .empty-flow { grid-template-columns: 1fr; max-width: 520px; }
      .empty-flow-card:not(:last-child)::after { display: none; }
      .empty-thumb { height: 150px; }}


    /* drop pre-analysis hero redesign 20260626 */
    body.mode-drop:not(.has-analysis-image) {
      --drop-right-panel-width: clamp(310px, 20vw, 340px);
    }
    body.mode-drop:not(.has-analysis-image) .layout {
      grid-template-columns: minmax(0, 1fr) var(--drop-right-panel-width);
      align-items: start;
      gap: 18px;
    }
    body.mode-drop:not(.has-analysis-image) .stage,
    body.mode-drop:not(.has-analysis-image) aside {
      min-width: 0;
    }
    body.mode-drop:not(.has-analysis-image) .viewer {
      min-height: clamp(610px, calc(100vh - 250px), 760px);
      background:
        radial-gradient(circle at 50% 15%, rgba(52, 255, 166, .13), transparent 28%),
        linear-gradient(180deg, rgba(4, 34, 27, .84), rgba(4, 17, 15, .95)),
        repeating-linear-gradient(0deg, rgba(137, 255, 214, .045) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(137, 255, 214, .04) 0 1px, transparent 1px 40px);
      border-color: rgba(82, 255, 181, .34);
      box-shadow: inset 0 0 56px rgba(21, 241, 149, .055), 0 24px 56px rgba(0, 0, 0, .2);
      overflow: hidden;
    }
    body.mode-drop:not(.has-analysis-image) .viewer::before {
      content: "";
      position: absolute;
      inset: -1px;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 17%, rgba(107, 255, 192, .13), transparent 22%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(110, 255, 205, .035) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(110, 255, 205, .03) 39px 40px);
      opacity: .55;
    }
    body.mode-drop:not(.has-analysis-image) .dropzone {
      inset: 0;
      display: grid;
      place-items: center;
      padding: clamp(22px, 4vw, 54px);
      background: transparent;
      border: 0;
    }
    body.mode-drop:not(.has-analysis-image) .dropzone::before,
    body.mode-drop:not(.has-analysis-image) .empty-onboarding::before {
      display: none;
    }
    body.mode-drop:not(.has-analysis-image) .empty-onboarding {
      width: min(100%, 940px);
      margin: 0 auto;
      gap: 22px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-symbol {
      width: 74px;
      height: 74px;
      margin: 0 auto 2px;
      border: 1px solid rgba(96, 255, 181, .48);
      border-radius: 999px;
      background:
        radial-gradient(circle, rgba(84, 255, 180, .22), rgba(8, 31, 25, .58) 58%, transparent 60%),
        url("/static/usage-examples/drop-symbol.svg") center / 68px 68px no-repeat;
      color: transparent;
      font-size: 0;
      box-shadow: 0 0 38px rgba(48, 255, 159, .17);
      position: relative;
    }
    body.mode-drop:not(.has-analysis-image) .empty-symbol::before,
    body.mode-drop:not(.has-analysis-image) .empty-symbol::after {
      content: "";
      display: none;
    }
    body.mode-drop:not(.has-analysis-image) .empty-title {
      max-width: 820px;
      margin: 0 auto;
      color: #f3fff9;
      font-size: clamp(30px, 3vw, 44px);
      line-height: 1.16;
      letter-spacing: 0;
      text-shadow: 0 8px 22px rgba(0,0,0,.34);
    }
    body.mode-drop:not(.has-analysis-image) .empty-title em {
      color: #53ff9f;
      font-style: normal;
    }
    body.mode-drop:not(.has-analysis-image) .empty-lead {
      max-width: 760px;
      margin: -8px auto 6px;
      color: rgba(221, 245, 238, .82);
      font-size: 16px;
      line-height: 1.55;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow {
      width: min(100%, 880px);
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 34px;
      margin: 10px auto 6px;
      align-items: start;
      overflow: visible;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card {
      min-height: 190px;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      display: grid;
      gap: 10px;
      justify-items: center;
      color: #effff8;
      position: relative;
      z-index: 1;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card:not(:last-child)::after {
      content: "\2192";
      position: absolute;
      right: -30px;
      top: 95px;
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(104, 255, 185, .42);
      border-radius: 999px;
      background: rgba(4, 24, 18, .9);
      color: rgba(126, 255, 193, .66);
      font-size: 16px;
      font-weight: 700;
      z-index: 5;
      pointer-events: none;
      box-shadow: 0 0 18px rgba(54, 255, 158, .14);
    }
    body.mode-drop:not(.has-analysis-image) .empty-step-num {
      width: 38px;
      height: 38px;
      border-radius: 999px;
      border: 1px solid rgba(82, 255, 171, .75);
      background: rgba(8, 40, 30, .72);
      color: #62ffac;
      display: grid;
      place-items: center;
      font-weight: 800;
      box-shadow: 0 0 22px rgba(82, 255, 171, .13);
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card h3 {
      margin: 0;
      color: #f5fff9;
      font-size: 17px;
      line-height: 1.2;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card p {
      margin: 0;
      min-height: 32px;
      color: rgba(215, 236, 230, .74);
      font-size: 13px;
      line-height: 1.45;
    }
    body.mode-drop:not(.has-analysis-image) .empty-step-thumb {
      width: 100%;
      height: 118px;
      border: 1px solid rgba(135, 255, 210, .22);
      border-radius: 8px;
      background: rgba(3, 17, 15, .62);
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
    }
    body.mode-drop:not(.has-analysis-image) .empty-step-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(1.08) contrast(1.02) brightness(.9);
    }
    body.mode-drop:not(.has-analysis-image) .empty-step-badge {
      left: 10px;
      top: 10px;
      border-radius: 999px;
      border-color: rgba(255, 236, 73, .75);
      background: rgba(10, 16, 4, .76);
      color: #fff056;
      font-size: 11px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-key-visual,
    body.mode-drop:not(.has-analysis-image) .empty-paste-visual {
      width: 100%;
      height: 118px;
      border: 1px solid rgba(136, 255, 209, .2);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent),
        rgba(5, 18, 16, .7);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
      display: grid;
      place-items: center;
      position: relative;
    }
    body.mode-drop:not(.has-analysis-image) .empty-key-visual::before,
    body.mode-drop:not(.has-analysis-image) .empty-key-visual::after {
      content: "";
      position: absolute;
      inset: 18px;
      border-radius: 7px;
      background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 42px, transparent 42px 50px);
      opacity: .35;
    }
    body.mode-drop:not(.has-analysis-image) .keycap {
      position: relative;
      z-index: 1;
      border: 1px solid rgba(213,255,237,.4);
      background: rgba(12, 18, 17, .85);
      color: #f3fff9;
      box-shadow: 0 0 20px rgba(67,255,158,.22);
    }
    body.mode-drop:not(.has-analysis-image) .empty-paste-visual {
      gap: 14px;
      grid-auto-flow: column;
      color: #effff8;
    }
    body.mode-drop:not(.has-analysis-image) .empty-paste-visual .keycap {
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      font-size: 24px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-actions {
      width: min(100%, 650px);
      grid-template-columns: 1.1fr 1fr;
      gap: 14px;
      margin: 4px auto 0;
    }
    body.mode-drop:not(.has-analysis-image) .empty-action {
      min-height: 74px;
      border-radius: 8px;
      font-size: 18px;
      justify-content: center;
      letter-spacing: 0;
    }
    body.mode-drop:not(.has-analysis-image) .empty-action.primary {
      border-color: rgba(113,255,181,.78);
      background: linear-gradient(180deg, rgba(44, 180, 100, .9), rgba(11, 103, 65, .95));
      color: #f5fff9;
      box-shadow: 0 18px 38px rgba(23, 188, 100, .22);
    }
    body.mode-drop:not(.has-analysis-image) .empty-action.primary::before {
      content: "";
      width: 20px;
      height: 20px;
      margin-right: 8px;
      background: url("/static/usage-examples/drop-symbol.svg") center / contain no-repeat;
      filter: drop-shadow(0 0 10px rgba(108, 255, 187, .35));
    }
    body.mode-drop:not(.has-analysis-image) .empty-action.secondary::before {
      content: "\2726";
      margin-right: 8px;
      color: #76ffb7;
    }
    body.mode-drop:not(.has-analysis-image) .empty-action span {
      margin-top: 4px;
      font-size: 13px;
      color: rgba(225, 246, 239, .68);
    }
    body.mode-drop:not(.has-analysis-image) .empty-foot {
      justify-content: center;
      gap: 10px;
      margin-top: 4px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-foot span {
      border: 1px solid rgba(135, 255, 209, .18);
      border-radius: 8px;
      background: rgba(3, 18, 16, .58);
      color: rgba(214, 234, 228, .68);
      padding: 8px 12px;
      font-size: 12px;
    }
    body.mode-drop:not(.has-analysis-image) aside {
      gap: 14px;
      height: calc(100vh - 96px);
      max-height: calc(100vh - 96px);
      overflow-y: auto;
      overscroll-behavior: contain;
      padding-right: 2px;
      scrollbar-width: thin;
      scrollbar-color: rgba(93, 255, 178, .45) rgba(2, 17, 14, .32);
    }
    body.mode-drop:not(.has-analysis-image) aside .quick-start-card,
    body.mode-drop:not(.has-analysis-image) aside .status,
    body.mode-drop:not(.has-analysis-image) aside .contact-card {
      display: none !important;
    }
    body.mode-drop:not(.has-analysis-image) aside .result-preview-card {
      display: grid !important;
      gap: 14px;
      padding: 18px;
      border-color: rgba(81, 255, 172, .33);
      background:
        radial-gradient(circle at 25% 0%, rgba(54, 255, 164, .1), transparent 45%),
        rgba(8, 26, 23, .83);
      box-shadow: 0 22px 46px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.025);
    }
    body.mode-drop:not(.has-analysis-image) .result-preview-head {
      align-items: center;
      gap: 12px;
    }
    body.mode-drop:not(.has-analysis-image) .result-preview-head .eye-mark {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      border: 1px solid rgba(86,255,176,.32);
      color: #58ffa9;
      background: rgba(24, 70, 52, .42);
    }
    body.mode-drop:not(.has-analysis-image) #previewTitle {
      color: #f2fff8;
      font-size: 17px;
      line-height: 1.32;
      word-break: keep-all;
    }
    body.mode-drop:not(.has-analysis-image) #previewSubtitle {
      color: rgba(210,232,225,.67);
      font-size: 12px;
    }
    body.mode-drop:not(.has-analysis-image) .result-preview-card .preview-image {
      aspect-ratio: 4 / 3;
      max-height: 260px;
      border-radius: 8px;
      border-color: rgba(156,255,217,.22);
      overflow: hidden;
      background: rgba(0,0,0,.22);
    }
    body.mode-drop:not(.has-analysis-image) .result-preview-card .preview-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      filter: saturate(1.05) contrast(1.04) brightness(.95);
    }
    body.mode-drop:not(.has-analysis-image) .preview-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    body.mode-drop:not(.has-analysis-image) .preview-stat {
      border-radius: 7px;
      background: rgba(5, 21, 18, .62);
      border-color: rgba(137,255,209,.16);
      min-height: 64px;
      justify-content: center;
    }
    body.mode-drop:not(.has-analysis-image) .preview-stat span {
      color: rgba(212, 236, 229, .64);
      font-size: 12px;
    }
    body.mode-drop:not(.has-analysis-image) .preview-stat strong {
      color: #f4fff8;
      font-size: 20px;
    }
    body.mode-drop:not(.has-analysis-image) .preview-stat:first-child strong {
      color: #4eff9c;
    }
    body.mode-drop:not(.has-analysis-image) .preview-list {
      gap: 8px;
      margin-top: 2px;
      color: rgba(222, 244, 237, .82);
      font-size: 13px;
      line-height: 1.45;
    }
    body.mode-drop:not(.has-analysis-image) .preview-list::before {
      content: "이 결과로 알 수 있어요";
      display: block;
      word-break: keep-all;
      margin-bottom: 3px;
      color: #f1fff7;
      font-weight: 800;
      font-size: 14px;
    }
    body.mode-drop:not(.has-analysis-image) .preview-list li {
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }
    body.mode-drop:not(.has-analysis-image) .preview-list li::before {
      content: "\2713";
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: rgba(57, 213, 126, .82);
      color: #052017;
      font-size: 11px;
      font-weight: 900;
      margin-top: 1px;
    }
    body.mode-drop:not(.has-analysis-image) #warningBox {
      display: block;
    }
    body.mode-drop:not(.has-analysis-image) #warningBox:empty::before {
      content: "분석이 안 될 때 확인하세요";
      display: block;
      border: 1px solid rgba(137,255,209,.16);
      border-radius: 8px;
      padding: 14px 16px;
      color: #69ffae;
      background: rgba(5, 21, 18, .58);
      font-weight: 800;
    }
    body.mode-drop.has-analysis-image aside .result-preview-card,
    body.mode-drop.has-analysis-image aside .quick-start-card {
      display: none !important;
    }
    @media (max-width: 1280px) {
      html,
      body.mode-drop:not(.has-analysis-image) {
        max-width: 100%;
        overflow-x: hidden;
      }
      body.mode-drop:not(.has-analysis-image) {
        overflow-y: auto;
      }
      body.mode-drop:not(.has-analysis-image) .app,
      body.mode-drop:not(.has-analysis-image) .layout {
        width: 100% !important;
        inline-size: 100% !important;
        max-width: 100% !important;
        max-inline-size: 100% !important;
        min-width: 0 !important;
        min-inline-size: 0 !important;
        overflow-x: hidden;
      }
      body.mode-drop:not(.has-analysis-image) .app {
        display: block;
        height: auto;
        min-height: 100vh;
      }
      body.mode-drop:not(.has-analysis-image) .layout {
        justify-self: stretch;
        grid-template-columns: 1fr;
      }
      body.mode-drop:not(.has-analysis-image) .stage,
      body.mode-drop:not(.has-analysis-image) .viewer,
      body.mode-drop:not(.has-analysis-image) .toolbar {
        width: 100% !important;
        inline-size: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-inline-size: 0 !important;
      }
      body.mode-drop:not(.has-analysis-image) .viewer {
        min-height: auto;
      }
      body.mode-drop:not(.has-analysis-image) .toolbar,
      body.mode-drop:not(.has-analysis-image) .tools-left,
      body.mode-drop:not(.has-analysis-image) .tools-right,
      body.mode-drop:not(.has-analysis-image) .upload-hint,
      body.mode-drop:not(.has-analysis-image) #toolbarHint {
        min-width: 0;
        max-width: 100%;
      }
      body.mode-drop:not(.has-analysis-image) .toolbar {
        overflow-x: hidden;
        flex-wrap: wrap;
        align-items: stretch;
      }
      body.mode-drop:not(.has-analysis-image) .tools-left,
      body.mode-drop:not(.has-analysis-image) .tools-right {
        flex-wrap: wrap;
      }
      body.mode-drop:not(.has-analysis-image) .dropzone {
        position: relative;
        min-height: 640px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow { gap: 18px; }
      body.mode-drop:not(.has-analysis-image) .empty-flow-card:not(:last-child)::after { right: -22px; }
      body.mode-drop:not(.has-analysis-image) aside {
        width: min(100%, 640px);
        max-width: 640px;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin: 0 auto;
      }}
    @media (max-width: 1024px) {
      html,
      body.mode-drop:not(.has-analysis-image) {
        max-width: 100%;
        overflow-x: hidden;
      }
      body.mode-drop:not(.has-analysis-image) {
        overflow-y: auto;
      }
      body.mode-drop:not(.has-analysis-image) .app,
      body.mode-drop:not(.has-analysis-image) .layout {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
      }
      body.mode-drop:not(.has-analysis-image) .app {
        height: auto;
        min-height: 100vh;
      }
      body.mode-drop:not(.has-analysis-image) header {
        align-items: flex-start;
        flex-wrap: wrap;
      }
      body.mode-drop:not(.has-analysis-image) .brand {
        flex: 1 1 420px;
      }
      body.mode-drop:not(.has-analysis-image) nav {
        max-width: 100%;
        overflow-x: auto;
      }
      body.mode-drop:not(.has-analysis-image) .toolbar {
        align-items: stretch;
      }
      body.mode-drop:not(.has-analysis-image) .tools-left,
      body.mode-drop:not(.has-analysis-image) .tools-right,
      body.mode-drop:not(.has-analysis-image) .upload-hint,
      body.mode-drop:not(.has-analysis-image) #toolbarHint {
        min-width: 0;
        max-width: 100%;
      }
      body.mode-drop:not(.has-analysis-image) .upload-hint,
      body.mode-drop:not(.has-analysis-image) #toolbarHint {
        white-space: normal;
        text-align: left;
      }
      body.mode-drop:not(.has-analysis-image) .layout {
        grid-template-columns: 1fr;
      }
      body.mode-drop:not(.has-analysis-image) .viewer {
        min-height: auto;
      }
      body.mode-drop:not(.has-analysis-image) .dropzone {
        position: relative;
        min-height: 640px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow {
        grid-template-columns: 1fr;
        width: min(100%, 520px);
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow-card:not(:last-child)::after {
        display: none;
      }
      body.mode-drop:not(.has-analysis-image) aside .result-preview-card {
        max-width: 520px;
        margin: 0 auto;
      }
      body.mode-drop:not(.has-analysis-image) aside {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
      }}
    @media (max-width: 640px) {
      body.mode-drop:not(.has-analysis-image) .dropzone {
        padding: 22px 14px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-title {
        font-size: 28px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-actions {
        grid-template-columns: 1fr;
      }
      body.mode-drop:not(.has-analysis-image) .empty-foot {
        flex-direction: column;
        align-items: stretch;
      }}


    /* drop pre-analysis polish: match actual empty-guide DOM classes */
    body.mode-drop:not(.has-analysis-image) .empty-flow {
      width: min(100%, 940px);
      gap: 46px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card:not(:last-child)::after {
      right: -40px;
      top: 104px;
      width: 28px;
      height: 28px;
      background: rgba(5, 28, 22, .96);
      color: rgba(114, 255, 184, .82);
      border-color: rgba(112, 255, 188, .52);
      box-shadow: 0 0 18px rgba(52, 255, 158, .18), 0 0 0 6px rgba(3, 20, 16, .72);
    }
    body.mode-drop:not(.has-analysis-image) .empty-thumb {
      width: 100%;
      height: 132px;
      border: 1px solid rgba(135, 255, 210, .25);
      border-radius: 8px;
      background: rgba(3, 17, 15, .62);
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 12px 26px rgba(0,0,0,.14);
    }
    body.mode-drop:not(.has-analysis-image) .empty-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      filter: saturate(1.14) contrast(1.08) brightness(1.03);
    }
    body.mode-drop:not(.has-analysis-image) .empty-badge {
      left: 10px;
      top: 10px;
      border-radius: 999px;
      border-color: rgba(255, 236, 73, .82);
      background: rgba(10, 16, 4, .78);
      color: #fff056;
      font-size: 11px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-key-visual,
    body.mode-drop:not(.has-analysis-image) .empty-paste-visual {
      height: 132px;
      overflow: hidden;
    }
    body.mode-drop:not(.has-analysis-image) .empty-action.primary::before,
    body.mode-drop:not(.has-analysis-image) .empty-action.secondary::before {
      display: none;
    }
    body.mode-drop:not(.has-analysis-image) .empty-action {
      display: grid;
      gap: 3px;
      align-content: center;
      justify-items: center;
      text-align: center;
    }
    body.mode-drop:not(.has-analysis-image) .result-preview-card .preview-image img {
      object-position: 46% 50%;
    }
    @media (max-width: 1280px) {
      body.mode-drop:not(.has-analysis-image) .empty-flow {
        width: min(100%, 900px);
        gap: 24px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow-card:not(:last-child)::after {
        right: -28px;
        top: 106px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-thumb,
      body.mode-drop:not(.has-analysis-image) .empty-key-visual,
      body.mode-drop:not(.has-analysis-image) .empty-paste-visual {
        height: 126px;
      }}

    body.mode-drop:not(.has-analysis-image) .empty-symbol { order: 1; }
    body.mode-drop:not(.has-analysis-image) .empty-title { order: 2; }
    body.mode-drop:not(.has-analysis-image) .empty-lead { order: 3; }
    body.mode-drop:not(.has-analysis-image) .empty-flow { order: 4; }
    body.mode-drop:not(.has-analysis-image) .empty-actions { order: 5; }
    body.mode-drop:not(.has-analysis-image) .empty-foot { order: 6; }
    @media (max-width: 640px) {
      body.mode-drop:not(.has-analysis-image) header {
        gap: 8px;
        padding: 8px 10px;
      }
      body.mode-drop:not(.has-analysis-image) .toolbar {
        padding: 8px 10px;
      }
      body.mode-drop:not(.has-analysis-image) .stage,
      body.mode-drop:not(.has-analysis-image) .viewer {
        height: auto;
        min-height: 0;
      }
      body.mode-drop:not(.has-analysis-image) .dropzone {
        min-height: 0;
        padding: 12px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-onboarding {
        width: 100%;
        min-height: auto;
        gap: 10px;
        padding: 15px 12px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-symbol {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
      }
      body.mode-drop:not(.has-analysis-image) .empty-title {
        font-size: 22px;
        line-height: 1.14;
      }
      body.mode-drop:not(.has-analysis-image) .empty-lead {
        margin: 0 auto 2px;
        font-size: 13px;
        line-height: 1.42;
      }
      body.mode-drop:not(.has-analysis-image) .empty-actions {
        order: 4;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 2px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-action {
        min-height: 52px;
        font-size: 15px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-action span {
        font-size: 11px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow {
        order: 5;
        gap: 9px;
        margin: 3px auto 0;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow-card {
        min-height: 0;
        gap: 6px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-step-num {
        width: 26px;
        height: 26px;
        font-size: 11px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow-card h3 {
        font-size: 13px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow-card p {
        min-height: 0;
        font-size: 11px;
        line-height: 1.35;
      }
      body.mode-drop:not(.has-analysis-image) .empty-thumb,
      body.mode-drop:not(.has-analysis-image) .empty-step-thumb,
      body.mode-drop:not(.has-analysis-image) .empty-key-visual,
      body.mode-drop:not(.has-analysis-image) .empty-paste-visual {
        height: 72px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-foot {
        order: 6;
        gap: 6px;
        margin-top: 2px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-foot span {
        padding: 6px 8px;
        font-size: 11px;
      }
      body.mode-drop:not(.has-analysis-image) aside {
        padding: 12px;
      }
      body.mode-drop:not(.has-analysis-image) aside .result-preview-card {
        padding: 12px;
      }}

    /* unified pre-analysis layout for drop and mortar */
    body.mode-drop:not(.has-analysis-image) .layout,
    body.mode-mortar:not(.has-analysis-image) .layout {
      grid-template-columns: minmax(0, 1fr) clamp(310px, 20vw, 340px);
      align-items: start;
      gap: 18px;
    }
    body.mode-drop:not(.has-analysis-image) .viewer,
    body.mode-mortar:not(.has-analysis-image) .viewer {
      min-height: clamp(610px, calc(100vh - 250px), 760px);
    }
    body.mode-drop:not(.has-analysis-image) .dropzone,
    body.mode-mortar:not(.has-analysis-image) .dropzone {
      inset: 0;
      display: grid;
      place-items: center;
      padding: clamp(22px, 4vw, 52px);
    }
    body.mode-drop:not(.has-analysis-image) .empty-onboarding,
    body.mode-mortar:not(.has-analysis-image) .empty-onboarding {
      width: min(100%, 940px);
      min-height: clamp(500px, 58vh, 640px);
      margin: 0 auto;
      padding: clamp(18px, 2.2vw, 30px) clamp(16px, 2.4vw, 30px);
      gap: clamp(12px, 1.7vw, 20px);
      transform: none;
      align-content: center;
    }
    body.mode-drop:not(.has-analysis-image) .empty-symbol,
    body.mode-mortar:not(.has-analysis-image) .empty-symbol {
      width: 62px;
      height: 62px;
      margin: 0 auto;
    }
    body.mode-drop:not(.has-analysis-image) .empty-title,
    body.mode-mortar:not(.has-analysis-image) .empty-title {
      max-width: 860px;
      margin: 0 auto;
      font-size: clamp(26px, 2.45vw, 38px);
      line-height: 1.14;
    }
    body.mode-drop:not(.has-analysis-image) .empty-lead,
    body.mode-mortar:not(.has-analysis-image) .empty-lead {
      max-width: 760px;
      margin: 0 auto;
      font-size: 14px;
      line-height: 1.48;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow,
    body.mode-mortar:not(.has-analysis-image) .empty-flow {
      order: 4;
      width: min(100%, 900px);
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(18px, 2vw, 26px);
      margin: 4px auto 0;
      align-items: start;
      overflow: visible;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card,
    body.mode-mortar:not(.has-analysis-image) .empty-flow-card {
      min-height: 0;
      gap: 8px;
      padding: 0;
      justify-items: center;
      text-align: center;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card:not(:last-child)::after,
    body.mode-mortar:not(.has-analysis-image) .empty-flow-card:not(:last-child)::after,
    body:not(.has-analysis-image) .empty-flow-card:not(:last-child)::after {
      content: none !important;
      display: none !important;
    }
    body.mode-drop:not(.has-analysis-image) .empty-step-num,
    body.mode-mortar:not(.has-analysis-image) .empty-step-num {
      width: 34px;
      height: 34px;
      font-size: 13px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-thumb,
    body.mode-drop:not(.has-analysis-image) .empty-step-thumb,
    body.mode-drop:not(.has-analysis-image) .empty-key-visual,
    body.mode-drop:not(.has-analysis-image) .empty-paste-visual,
    body.mode-mortar:not(.has-analysis-image) .empty-thumb,
    body.mode-mortar:not(.has-analysis-image) .empty-step-thumb,
    body.mode-mortar:not(.has-analysis-image) .empty-key-visual,
    body.mode-mortar:not(.has-analysis-image) .empty-paste-visual {
      width: 100%;
      height: clamp(116px, 10vw, 136px);
      border-radius: 8px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card h3,
    body.mode-mortar:not(.has-analysis-image) .empty-flow-card h3 {
      font-size: 15px;
      line-height: 1.25;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow-card p,
    body.mode-mortar:not(.has-analysis-image) .empty-flow-card p {
      min-height: 0;
      max-width: 240px;
      font-size: 12px;
      line-height: 1.4;
    }
    body.mode-drop:not(.has-analysis-image) .empty-flow .empty-paste-visual,
    body.mode-mortar:not(.has-analysis-image) .empty-flow .empty-paste-visual {
      cursor: default;
      pointer-events: none;
    }
    #sampleAnalyzeBtn { grid-column: 1 / -1; }
    body.mode-drop:not(.has-analysis-image) .empty-actions,
    body.mode-mortar:not(.has-analysis-image) .empty-actions {
      order: 5;
      width: min(100%, 650px);
      grid-template-columns: 1.08fr 1fr;
      gap: 12px;
      margin: 0 auto;
    }
    body.mode-drop:not(.has-analysis-image) .empty-action,
    body.mode-mortar:not(.has-analysis-image) .empty-action {
      min-height: 64px;
      border-radius: 8px;
      font-size: 16px;
    }
    body.mode-drop:not(.has-analysis-image) .empty-foot,
    body.mode-mortar:not(.has-analysis-image) .empty-foot {
      order: 6;
      justify-content: center;
      gap: 8px;
      margin-top: 0;
    }
    @media (max-width: 1280px) {
      body.mode-drop:not(.has-analysis-image) .layout,
      body.mode-mortar:not(.has-analysis-image) .layout {
        grid-template-columns: minmax(0, 1fr);
      }
      body.mode-drop:not(.has-analysis-image) aside,
      body.mode-mortar:not(.has-analysis-image) aside {
        width: min(100%, 640px);
        max-width: 640px;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin: 0 auto;
      }}
    @media (max-width: 980px) {
      body.mode-drop:not(.has-analysis-image) .viewer,
      body.mode-mortar:not(.has-analysis-image) .viewer {
        min-height: auto;
      }
      body.mode-drop:not(.has-analysis-image) .dropzone,
      body.mode-mortar:not(.has-analysis-image) .dropzone {
        position: relative;
        min-height: 640px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-onboarding,
      body.mode-mortar:not(.has-analysis-image) .empty-onboarding {
        width: min(100% - 24px, 620px);
        min-height: auto;
        padding: 24px 16px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow,
      body.mode-mortar:not(.has-analysis-image) .empty-flow {
        grid-template-columns: 1fr;
        width: min(100%, 520px);
        gap: 12px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-thumb,
      body.mode-drop:not(.has-analysis-image) .empty-step-thumb,
      body.mode-drop:not(.has-analysis-image) .empty-key-visual,
      body.mode-drop:not(.has-analysis-image) .empty-paste-visual,
      body.mode-mortar:not(.has-analysis-image) .empty-thumb,
      body.mode-mortar:not(.has-analysis-image) .empty-step-thumb,
      body.mode-mortar:not(.has-analysis-image) .empty-key-visual,
      body.mode-mortar:not(.has-analysis-image) .empty-paste-visual {
        height: 150px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-actions,
      body.mode-mortar:not(.has-analysis-image) .empty-actions {
        grid-template-columns: 1fr;
        max-width: 520px;
      }}
    @media (max-width: 640px) {
      body.mode-drop:not(.has-analysis-image) header,
      body.mode-mortar:not(.has-analysis-image) header {
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        min-height: 0;
        gap: 8px;
        padding: 8px 10px;
      }
      body.mode-drop:not(.has-analysis-image) .brand,
      body.mode-mortar:not(.has-analysis-image) .brand {
        flex: 0 1 auto;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
        overflow: visible;
      }
      body.mode-drop:not(.has-analysis-image) .brand h1,
      body.mode-mortar:not(.has-analysis-image) .brand h1 {
        min-width: 0;
        font-size: 16px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
      }
      body.mode-drop:not(.has-analysis-image) .brand .hint,
      body.mode-mortar:not(.has-analysis-image) .brand .hint {
        display: none;
      }
      body.mode-drop:not(.has-analysis-image) nav,
      body.mode-mortar:not(.has-analysis-image) nav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
      }
      body.mode-drop:not(.has-analysis-image) nav a,
      body.mode-mortar:not(.has-analysis-image) nav a {
        min-height: 34px;
        padding: 7px 9px;
      }
      body.mode-drop:not(.has-analysis-image) header,
      body.mode-drop:not(.has-analysis-image) .layout,
      body.mode-drop:not(.has-analysis-image) .stage,
      body.mode-drop:not(.has-analysis-image) .toolbar,
      body.mode-drop:not(.has-analysis-image) .viewer,
      body.mode-drop:not(.has-analysis-image) .dropzone,
      body.mode-drop:not(.has-analysis-image) aside,
      body.mode-mortar:not(.has-analysis-image) header,
      body.mode-mortar:not(.has-analysis-image) .layout,
      body.mode-mortar:not(.has-analysis-image) .stage,
      body.mode-mortar:not(.has-analysis-image) .toolbar,
      body.mode-mortar:not(.has-analysis-image) .viewer,
      body.mode-mortar:not(.has-analysis-image) .dropzone,
      body.mode-mortar:not(.has-analysis-image) aside {
        width: 100vw !important;
        inline-size: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        min-inline-size: 0 !important;
      }
      @supports (width: 100dvw) {
        body.mode-drop:not(.has-analysis-image) header,
        body.mode-drop:not(.has-analysis-image) .layout,
        body.mode-drop:not(.has-analysis-image) .stage,
        body.mode-drop:not(.has-analysis-image) .toolbar,
        body.mode-drop:not(.has-analysis-image) .viewer,
        body.mode-drop:not(.has-analysis-image) .dropzone,
        body.mode-drop:not(.has-analysis-image) aside,
        body.mode-mortar:not(.has-analysis-image) header,
        body.mode-mortar:not(.has-analysis-image) .layout,
        body.mode-mortar:not(.has-analysis-image) .stage,
        body.mode-mortar:not(.has-analysis-image) .toolbar,
        body.mode-mortar:not(.has-analysis-image) .viewer,
        body.mode-mortar:not(.has-analysis-image) .dropzone,
        body.mode-mortar:not(.has-analysis-image) aside {
          width: 100dvw !important;
          inline-size: 100dvw !important;
          max-width: 100dvw !important;
        }}
      body.mode-drop:not(.has-analysis-image) .dropzone,
      body.mode-mortar:not(.has-analysis-image) .dropzone {
        min-height: 0;
        padding: 12px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-onboarding,
      body.mode-mortar:not(.has-analysis-image) .empty-onboarding {
        width: 100%;
        gap: 10px;
        padding: 15px 12px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-symbol,
      body.mode-mortar:not(.has-analysis-image) .empty-symbol {
        width: 48px;
        height: 48px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-title,
      body.mode-mortar:not(.has-analysis-image) .empty-title {
        font-size: 22px;
        line-height: 1.14;
      }
      body.mode-drop:not(.has-analysis-image) .empty-lead,
      body.mode-mortar:not(.has-analysis-image) .empty-lead {
        font-size: 13px;
        line-height: 1.42;
      }
      body.mode-drop:not(.has-analysis-image) .empty-flow,
      body.mode-mortar:not(.has-analysis-image) .empty-flow {
        gap: 9px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-thumb,
      body.mode-drop:not(.has-analysis-image) .empty-step-thumb,
      body.mode-drop:not(.has-analysis-image) .empty-key-visual,
      body.mode-drop:not(.has-analysis-image) .empty-paste-visual,
      body.mode-mortar:not(.has-analysis-image) .empty-thumb,
      body.mode-mortar:not(.has-analysis-image) .empty-step-thumb,
      body.mode-mortar:not(.has-analysis-image) .empty-key-visual,
      body.mode-mortar:not(.has-analysis-image) .empty-paste-visual {
        height: 78px;
      }
      body.mode-drop:not(.has-analysis-image) .empty-action,
      body.mode-mortar:not(.has-analysis-image) .empty-action {
        min-height: 52px;
        font-size: 15px;
      }
      .tool-content-below {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        min-width: 0;
        margin-left: 12px;
        margin-right: 12px;
        justify-self: start;
        grid-column: 1 / -1;
      }
      .tool-footer {
        width: 100vw;
        inline-size: 100vw;
        max-width: 100vw;
        min-width: 0;
        justify-self: start;
        grid-column: 1 / -1;
      }
      body.mode-drop .tool-footer nav,
      body.mode-mortar .tool-footer nav {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        flex-wrap: wrap !important;
        padding-bottom: 0;
      }
      .tool-footer p {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
      }
      .tool-footer a {
        flex: 0 1 auto;
        white-space: normal;
      }
      @supports (width: 100dvw) {
        .tool-content-below {
          width: calc(100dvw - 24px);
          max-width: calc(100dvw - 24px);
        }
        .tool-footer {
          width: 100dvw;
          inline-size: 100dvw;
          max-width: 100dvw;
        }}}
    /* unified tool icon refresh */
    body.mode-drop { --tool-badge-icon: url("/static/tool-icons/drop-badge-96.webp?v=20260723a"); }
    body.mode-mortar { --tool-badge-icon: url("/static/tool-icons/mortar-badge-96.webp?v=20260723a"); }
    body.mode-zone { --tool-badge-icon: url("/static/tool-icons/zone-badge-96.webp?v=20260723a"); }
    .empty-symbol,
    .result-preview-head .eye-mark {
      background-image: var(--tool-badge-icon);
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
      color: transparent !important;
      font-size: 0 !important;
      line-height: 0;
      overflow: hidden;
    }
    .empty-symbol::before,
    .empty-symbol::after,
    .result-preview-head .eye-mark::before,
    .result-preview-head .eye-mark::after {
      content: "" !important;
      display: none !important;
    }
    body.mode-drop:not(.has-analysis-image) .empty-symbol {
      background:
        radial-gradient(circle, rgba(84, 255, 180, .16), rgba(8, 31, 25, .45) 58%, transparent 62%),
        var(--tool-badge-icon) center / contain no-repeat !important;
    }
    .result-preview-head .eye-mark {
      flex: 0 0 auto;
      border: 0 !important;
      box-shadow: 0 0 22px rgba(84, 247, 165, .12);
    }
    body.mode-drop:not(.has-analysis-image) .result-preview-head .eye-mark {
      background: var(--tool-badge-icon) center / contain no-repeat !important;
    }

    /* restrained feature accents and flatter empty-state surfaces */
    body.mode-drop { --feature-accent: #54f7a5; --feature-accent-rgb: 84, 247, 165; }
    body.mode-mortar { --feature-accent: #ffe66a; --feature-accent-rgb: 255, 230, 106; }
    body.mode-drop:not(.has-analysis-image) .viewer,
    body.mode-mortar:not(.has-analysis-image) .viewer {
      border-color: rgba(145,170,164,.14);
      background:
        linear-gradient(180deg, rgba(5,22,18,.9), rgba(4,13,12,.97)),
        repeating-linear-gradient(0deg, rgba(188,234,220,.022) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(90deg, rgba(188,234,220,.02) 0 1px, transparent 1px 42px);
      box-shadow: inset 0 0 34px rgba(0,0,0,.16), 0 18px 42px rgba(0,0,0,.16);
    }
    body.mode-drop:not(.has-analysis-image) .viewer::before,
    body.mode-mortar:not(.has-analysis-image) .viewer::before {
      opacity: .2;
    }
    body.mode-drop:not(.has-analysis-image) .dropzone,
    body.mode-mortar:not(.has-analysis-image) .dropzone {
      border: 0;
      background: transparent;
      box-shadow: none;
    }
    body.mode-drop:not(.has-analysis-image) .empty-onboarding,
    body.mode-mortar:not(.has-analysis-image) .empty-onboarding {
      border: 1px solid rgba(188,234,220,.075);
      background: linear-gradient(180deg, rgba(7,24,20,.67), rgba(5,15,13,.58));
      box-shadow: none;
    }
    body.mode-drop:not(.has-analysis-image) .empty-onboarding::before,
    body.mode-mortar:not(.has-analysis-image) .empty-onboarding::before {
      opacity: .08;
    }
    body.mode-drop:not(.has-analysis-image) .empty-symbol,
    body.mode-mortar:not(.has-analysis-image) .empty-symbol {
      box-shadow: 0 0 18px rgba(var(--feature-accent-rgb), .09) !important;
    }
    .result-preview-head .eye-mark {
      width: 26px;
      height: 26px;
      opacity: .78;
      box-shadow: none !important;
    }
    body.mode-mortar nav a.active {
      color: var(--feature-accent);
      border-color: rgba(var(--feature-accent-rgb), .34);
      background: rgba(var(--feature-accent-rgb), .085);
    }
    body.mode-mortar .mode-toggle .btn.primary,
    body.mode-mortar:not(.has-analysis-image) .empty-title em,
    body.mode-mortar:not(.has-analysis-image) .empty-step-num {
      color: var(--feature-accent);
    }
    body.mode-mortar .mode-toggle .btn.primary {
      background: rgba(var(--feature-accent-rgb), .09);
    }
    body.mode-mortar:not(.has-analysis-image) .empty-step-num,
    body.mode-mortar:not(.has-analysis-image) aside .result-preview-card {
      border-color: rgba(var(--feature-accent-rgb), .24);
    }
    body.mode-drop aside .contact-card,
    body.mode-mortar aside .contact-card {
      border-color: rgba(145,170,164,.12);
      background: rgba(8,17,16,.46);
      box-shadow: none;
    }
    @media (min-width: 981px) {
      body.mode-drop .layout,
      body.mode-mortar .layout {
        overflow: hidden;
      }
      body.mode-drop aside,
      body.mode-mortar aside {
        height: 100%;
        max-height: 100%;
        overflow-x: hidden;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(93, 255, 178, .45) rgba(2, 17, 14, .32);
      }}
    @media (min-width: 981px) and (max-width: 1280px) {
      body.mode-drop:not(.has-analysis-image),
      body.mode-mortar:not(.has-analysis-image) {
        overflow-y: auto;
      }
      body.mode-drop:not(.has-analysis-image) .app,
      body.mode-mortar:not(.has-analysis-image) .app {
        height: auto;
        min-height: 100vh;
      }
      body.mode-drop:not(.has-analysis-image) .layout,
      body.mode-mortar:not(.has-analysis-image) .layout {
        height: auto;
        min-height: 0;
        overflow: visible;
      }
      body.mode-drop:not(.has-analysis-image) aside,
      body.mode-mortar:not(.has-analysis-image) aside {
        height: auto;
        max-height: none;
        overflow: visible !important;
        margin-top: 18px;
      }}
    .clipboard-empty-notice {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: grid;
      place-items: center;
      padding: 18px;
      pointer-events: none;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity .18s ease, transform .18s ease;
    }
    .clipboard-empty-notice.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
    .clipboard-empty-card {
      width: min(430px, calc(100vw - 36px));
      border: 1px solid rgba(84, 247, 165, .38);
      border-radius: 8px;
      background:
        radial-gradient(circle at 50% 0%, rgba(84,247,165,.16), transparent 45%),
        rgba(7, 19, 17, .96);
      box-shadow: 0 28px 80px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.035);
      padding: 22px 24px;
      text-align: center;
    }
    .clipboard-empty-card strong {
      display: block;
      margin: 0 0 8px;
      color: #ecfff8;
      font-size: 20px;
      line-height: 1.35;
    }
    .clipboard-empty-card span {
      display: block;
      color: #b8d6cf;
      line-height: 1.55;
      word-break: keep-all;
    }
  

  .bm-content-pack {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  .bm-content-section,
  .bm-fan-notice {
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(145,170,164,.16);
    border-radius: 8px;
    background: rgba(11,17,17,.32);
    color: #c6ddd7;
    padding: 14px;
    overflow-wrap: anywhere;
  }
  .bm-content-head {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
  }
  .bm-content-section h2,
  .bm-fan-notice h2 {
    margin: 0;
    color: var(--text, #ecfff8);
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: 0;
  }
  .bm-content-section h3 {
    margin: 0;
    color: var(--text, #ecfff8);
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
  }
  .bm-content-section p,
  .bm-fan-notice p {
    margin: 0;
    color: #a9c2bd;
    font-size: 12px;
    line-height: 1.6;
  }
  .bm-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .bm-info-card {
    border: 1px solid rgba(188,234,220,.13);
    border-radius: 8px;
    background: rgba(6,15,14,.58);
    padding: 11px;
  }
  .bm-info-card p {
    margin-top: 5px;
  }
  .bm-tool-case-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .bm-tool-case .case-media {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(188,234,220,.14);
    border-radius: 8px;
    background: #06100f;
  }
  .bm-tool-case .case-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
  }
  .bm-tool-case .case-media-label {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 8px;
    border: 1px solid rgba(188,234,220,.2);
    border-radius: 4px;
    background: rgba(3,10,9,.9);
    color: #dff7ef;
    padding: 4px 7px;
    font-size: 10px;
    font-weight: 900;
  }
  .bm-tool-case-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0 0;
  }
  .bm-tool-case .case-metric {
    min-width: 0;
    border: 1px solid rgba(188,234,220,.13);
    border-radius: 6px;
    background: rgba(6,15,14,.58);
    padding: 9px;
  }
  .bm-tool-case .case-metric dt {
    color: #91aaa4;
    font-size: 10px;
    line-height: 1.35;
  }
  .bm-tool-case .case-metric dd {
    margin: 4px 0 0;
    color: #ecfff8;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
  }
  .bm-tool-case-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
  }
  .bm-tool-case-steps section {
    min-width: 0;
  }
  .bm-tool-case-steps ul,
  .bm-tool-case-steps ol {
    margin: 7px 0 0;
    padding-left: 18px;
    color: #a9c2bd;
    font-size: 12px;
    line-height: 1.55;
  }
  .bm-tool-case-steps li + li {
    margin-top: 5px;
  }
  .bm-tool-case-limit {
    border-left: 2px solid rgba(255,198,92,.56);
    padding-left: 10px;
  }
  .bm-tool-case-link {
    margin-top: 14px !important;
  }
  .bm-tool-case-link a {
    color: var(--green, #54f7a5);
    font-weight: 900;
  }
  .bm-eyebrow {
    color: var(--green, #54f7a5);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }
  .bm-note {
    border-left: 2px solid rgba(84,247,165,.42);
    padding-left: 9px;
    color: #91aaa4 !important;
  }
  .bm-accordion-list {
    display: grid;
    gap: 7px;
  }
  .bm-drop-principles details { border-top: 1px solid rgba(145,170,164,.24); padding: 12px 0; scroll-margin-top: 24px; }
  .bm-drop-principles summary { cursor: pointer; color: #ecfff8; font-weight: 700; line-height: 1.6; }
  .bm-drop-principles summary:hover { color: var(--green, #54f7a5); }
  .bm-drop-principles summary:focus-visible { outline: 2px solid var(--green, #54f7a5); outline-offset: 4px; }
  .bm-drop-principles table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
  .bm-drop-principles caption { text-align: left; margin-bottom: 8px; color: #a9c2bd; }
  .bm-drop-principles th, .bm-drop-principles td { text-align: left; padding: 9px; border-bottom: 1px solid rgba(145,170,164,.24); }
  .bm-drop-principles a { color: var(--green, #54f7a5); }
  .bm-accordion-item {
    border: 1px solid rgba(188,234,220,.13);
    border-radius: 8px;
    background: rgba(6,15,14,.5);
    overflow: hidden;
  }
  .bm-accordion-item h3 {
    margin: 0;
  }
  .bm-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--text, #ecfff8);
    padding: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
  }
  .bm-accordion-trigger:hover,
  .bm-accordion-trigger:focus-visible {
    color: var(--green, #54f7a5);
    outline: none;
  }
  .bm-accordion-trigger:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(84,247,165,.36);
  }
  .bm-accordion-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(84,247,165,.42);
    border-radius: 999px;
    position: relative;
  }
  .bm-accordion-icon::before,
  .bm-accordion-icon::after {
    content: "";
    position: absolute;
    inset: 8px 4px auto;
    height: 1px;
    background: currentColor;
  }
  .bm-accordion-icon::after {
    transform: rotate(90deg);
  }
  .bm-accordion-trigger[aria-expanded="true"] .bm-accordion-icon::after {
    opacity: 0;
  }
  .bm-accordion-panel {
    display: grid;
    gap: 8px;
    padding: 0 11px 12px;
  }
  .bm-accordion-panel[hidden] {
    display: none !important;
  }
  .bm-methodology-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
  }
  .bm-methodology ul {
    margin: 7px 0 0;
    padding-left: 18px;
    color: #a9c2bd;
    font-size: 12px;
    line-height: 1.55;
  }
  .bm-methodology li + li {
    margin-top: 5px;
  }
  .bm-fan-notice {
    background: rgba(18,26,24,.5);
  }
  body .bm-content-pack > aside.bm-fan-notice {
    grid-area: auto !important;
    display: block;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    max-inline-size: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px;
  }
  .bm-fan-notice p {
    margin-top: 7px;
  }
  .bm-related-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
  }
  .bm-related-link {
    display: flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(188,234,220,.13);
    border-radius: 8px;
    background: rgba(6,15,14,.5);
    color: var(--green, #54f7a5);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
  }
  .bm-related-link:hover,
  .bm-related-link:focus-visible {
    border-color: rgba(84,247,165,.42);
    color: #ecfff8;
    outline: none;
  }
  @media (max-width: 980px) {
    .bm-content-pack {
      gap: 10px;
      margin-top: 12px;
    }
    .bm-content-section,
    .bm-fan-notice {
      padding: 12px;
    }
    body .bm-content-pack > aside.bm-fan-notice {
      padding: 12px;
    }
    .bm-tool-case-media,
    .bm-tool-case-steps {
      grid-template-columns: 1fr;
    }
    .bm-tool-case-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bm-tool-case .case-media img {
      max-height: 300px;
    }}

/* Battlemap workspace redesign: shared by drop and mortar. */
.mobile-result-summary { display: none; }
#resultBox { scroll-margin-top: calc(var(--bm-header-height, 90px) + 16px); }
@media (max-width: 980px) {
  .mobile-result-summary:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-block: 1px solid var(--line); background: var(--panel); }
  .mobile-result-summary > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 130px; }
  #mobileResultTarget { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
  #mobileResultLabel { font-size: 13px; color: var(--text); }
  #mobileResultValue { font-size: 22px; color: var(--feature-accent); white-space: nowrap; }
  .mobile-result-summary a { display: inline-flex; align-items: center; min-height: 44px; color: var(--feature-accent); font-size: 12px; }}
.image-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 980px) {
  body:is(.mode-drop,.mode-mortar)[data-input-mode="manual"] #viewer {
    height: clamp(320px, calc(100svh - 220px), 620px);
    min-height: 320px;
  }}
:root {
  --bg: #0b0e0d;
  --panel: #0d100f;
  --panel-2: #121614;
  --line: #29312e;
  --line-strong: #3a4541;
  --text: #f0f3f1;
  --muted: #a1aca7;
  --green: #4ed58a;
  --yellow: #dec44f;
  --cyan: #58add8;
}
body.mode-drop {
  --feature-accent: #4ed58a;
  --feature-accent-rgb: 78, 213, 138;
}
body.mode-mortar {
  --feature-accent: #dec44f;
  --feature-accent-rgb: 222, 196, 79;
}
html,
body {
  background: var(--bg);
}
html,
body {
  width: 100%;
  max-width: 100%;
}
body {
  color: var(--text);
  font-family: Pretendard, "Pretendard Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}
.app {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg);
}
.app > header {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 0 18px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #0d100f;
}
.brand {
  flex: 1 1 0;
  min-width: 0;
  gap: 10px;
  overflow: hidden;
}
.site-identity {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.site-logo-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #d7dfdb;
}
.site-logo-mark svg {
  width: 30px;
  height: 30px;
}
.brand-divider {
  width: 1px;
  height: 24px;
  flex: 0 0 auto;
  background: var(--line);
}
.tool-page-title {
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-page-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tool-badge-icon) center / contain no-repeat;
}
.brand h1 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 780;
  white-space: nowrap;
}
.brand .hint {
  display: none;
}
.app > header nav {
  flex: 0 1 auto;
  min-width: 0;
  gap: 16px;
}
.app > header nav a {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.app > header nav a:hover {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}
body.mode-drop .app > header nav a.active,
body.mode-mortar .app > header nav a.active {
  color: var(--text);
  border-color: transparent;
  border-bottom-color: var(--feature-accent);
  background: transparent;
}
.layout,
body.mode-drop:not(.has-analysis-image) .layout,
body.mode-mortar:not(.has-analysis-image) .layout {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: calc(100vh - 64px);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  background: var(--bg);
}
.stage {
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.layout > aside {
  min-width: 0;
}
.toolbar {
  min-height: 58px;
  padding: 10px 16px;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--line);
  background: #0d100f;
}
.tools-left,
.tools-right {
  gap: 8px;
}
.toolbar .hint {
  color: #7f8b86;
  font-size: 12px;
}
.btn,
.advanced-options summary,
.field-label select {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}
.btn:hover,
.advanced-options summary:hover,
.field-label select:hover {
  border-color: rgba(var(--feature-accent-rgb), .64);
}
.btn.primary,
.mode-toggle .btn.primary,
.view-toggle .btn.primary {
  border-color: rgba(var(--feature-accent-rgb), .42);
  background: rgba(var(--feature-accent-rgb), .1);
  color: var(--feature-accent);
}
.mode-toggle,
.view-toggle,
.manual-step-group,
.radio-group {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: transparent;
}
.mode-toggle {
  min-width: 230px;
}
.mode-toggle .btn,
.view-toggle .btn {
  min-width: 114px;
  flex: 1 1 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.mode-toggle .btn + .btn,
.view-toggle .btn + .btn,
.manual-step + .manual-step {
  border-left: 1px solid var(--line-strong);
}
.manual-map-controls {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.manual-step {
  color: var(--muted);
  font-weight: 700;
}
.manual-step.active {
  color: var(--feature-accent);
  background: rgba(var(--feature-accent-rgb), .1);
}
.check,
.radio {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.advanced-options-body {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #121614;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}
.viewer,
body.mode-drop:not(.has-analysis-image) .viewer,
body.mode-mortar:not(.has-analysis-image) .viewer {
  min-height: 0;
  background: var(--bg);
  box-shadow: none;
}
.viewer::before {
  display: none;
}
.dropzone,
body.mode-drop:not(.has-analysis-image) .dropzone,
body.mode-mortar:not(.has-analysis-image) .dropzone {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  padding: 20px;
}
@media (min-width: 981px) {
  body.mode-drop:not(.has-analysis-image) .viewer {
    background:
      linear-gradient(180deg, rgba(8, 12, 11, .98) 0%, rgba(8, 12, 11, .87) 46%, rgba(8, 12, 11, .97) 100%),
      url("/static/home-cards/drop-example.webp?v=20260723a") center 44% / cover no-repeat;
  }
  body.mode-mortar:not(.has-analysis-image) .viewer {
    background:
      linear-gradient(180deg, rgba(8, 12, 11, .98) 0%, rgba(8, 12, 11, .87) 46%, rgba(8, 12, 11, .97) 100%),
      url("/static/home-cards/mortar-example.webp?v=20260723a") center 46% / cover no-repeat;
  }
  body.mode-drop:not(.has-analysis-image) .dropzone,
  body.mode-mortar:not(.has-analysis-image) .dropzone {
    background: transparent;
  }}
.dropzone::before,
.empty-onboarding::before {
  display: none;
}
.empty-onboarding,
body.mode-drop:not(.has-analysis-image) .empty-onboarding,
body.mode-mortar:not(.has-analysis-image) .empty-onboarding {
  width: min(860px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 18px 24px;
  gap: 10px;
  align-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.empty-symbol,
body.mode-drop:not(.has-analysis-image) .empty-symbol,
body.mode-mortar:not(.has-analysis-image) .empty-symbol {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--tool-badge-icon) center / contain no-repeat;
  box-shadow: none;
  color: transparent;
}
.empty-title,
body.mode-drop:not(.has-analysis-image) .empty-title,
body.mode-mortar:not(.has-analysis-image) .empty-title {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 780;
  text-shadow: none;
}
.empty-title em,
body.mode-drop:not(.has-analysis-image) .empty-title em,
body.mode-mortar:not(.has-analysis-image) .empty-title em {
  color: var(--feature-accent);
}
.empty-lead,
body.mode-drop:not(.has-analysis-image) .empty-lead,
body.mode-mortar:not(.has-analysis-image) .empty-lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.empty-flow,
body.mode-drop:not(.has-analysis-image) .empty-flow,
body.mode-mortar:not(.has-analysis-image) .empty-flow {
  width: min(800px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 2px auto 0;
  overflow: visible;
}
.empty-flow-card,
body.mode-drop:not(.has-analysis-image) .empty-flow-card,
body.mode-mortar:not(.has-analysis-image) .empty-flow-card {
  min-height: 0;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.empty-flow-card:not(:last-child)::after {
  display: none;
  content: none;
}
.empty-step-num,
body.mode-drop:not(.has-analysis-image) .empty-step-num,
body.mode-mortar:not(.has-analysis-image) .empty-step-num {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(var(--feature-accent-rgb), .5);
  background: #0d100f;
  color: var(--feature-accent);
  font-size: 12px;
  box-shadow: none;
}
.empty-thumb,
.empty-step-thumb,
.empty-key-visual,
.empty-paste-visual,
body.mode-drop:not(.has-analysis-image) .empty-thumb,
body.mode-drop:not(.has-analysis-image) .empty-step-thumb,
body.mode-drop:not(.has-analysis-image) .empty-key-visual,
body.mode-drop:not(.has-analysis-image) .empty-paste-visual,
body.mode-mortar:not(.has-analysis-image) .empty-thumb,
body.mode-mortar:not(.has-analysis-image) .empty-step-thumb,
body.mode-mortar:not(.has-analysis-image) .empty-key-visual,
body.mode-mortar:not(.has-analysis-image) .empty-paste-visual {
  width: 100%;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101412;
  box-shadow: none;
}
.empty-thumb::after,
.empty-step-thumb::after {
  display: none;
}
.empty-thumb img,
.empty-step-thumb img {
  opacity: 1;
  filter: saturate(.88) contrast(1.02);
}
.empty-key-visual .keycap,
.empty-paste-visual .keycap {
  min-width: 58px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #171c19;
  box-shadow: none;
}
.empty-flow-card h3,
body.mode-drop:not(.has-analysis-image) .empty-flow-card h3,
body.mode-mortar:not(.has-analysis-image) .empty-flow-card h3 {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}
.empty-flow-card p,
body.mode-drop:not(.has-analysis-image) .empty-flow-card p,
body.mode-mortar:not(.has-analysis-image) .empty-flow-card p {
  min-height: 0;
  color: #83908a;
  font-size: 11px;
  line-height: 1.45;
}
.empty-actions,
body.mode-drop:not(.has-analysis-image) .empty-actions,
body.mode-mortar:not(.has-analysis-image) .empty-actions {
  width: min(580px, 100%);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 2px auto 0;
}
.empty-action,
body.mode-drop:not(.has-analysis-image) .empty-action,
body.mode-mortar:not(.has-analysis-image) .empty-action {
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  box-shadow: none;
  transform: none;
}
.empty-action:hover,
.empty-action:focus-visible {
  border-color: var(--green);
  transform: none;
}
.empty-action.primary,
body.mode-drop:not(.has-analysis-image) .empty-action.primary,
body.mode-mortar:not(.has-analysis-image) .empty-action.primary {
  border-color: #319c68;
  background: #1b7f50;
  color: #f4fff9;
}
.empty-action.secondary {
  background: #101412;
  padding-inline: 18px;
}
.empty-action.secondary span {
  display: none;
}
.empty-action span {
  color: #b3bdb8;
  font-size: 10px;
}
.empty-foot,
body.mode-drop:not(.has-analysis-image) .empty-foot,
body.mode-mortar:not(.has-analysis-image) .empty-foot {
  gap: 8px 16px;
  color: #75817c;
  font-size: 11px;
}
.empty-foot span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.empty-foot span::before {
  content: "·";
  margin-right: 6px;
  color: var(--feature-accent);
}
.layout > aside,
body.mode-drop aside,
body.mode-mortar aside {
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  padding: 14px;
  gap: 0;
  border-left: 1px solid var(--line);
  background: #0d100f;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4a5751 #0d100f;
}
.guide-card,
.status {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  box-shadow: none;
}
.guide-card strong,
.section-title {
  color: var(--text);
}
.result-preview-card,
body.mode-drop:not(.has-analysis-image) aside .result-preview-card,
body.mode-mortar:not(.has-analysis-image) aside .result-preview-card {
  order: -1;
  border-color: var(--line);
  background: var(--panel-2);
  box-shadow: none;
}
.result-preview-head {
  margin-bottom: 12px;
}
.result-preview-head .eye-mark,
body.mode-drop:not(.has-analysis-image) .result-preview-head .eye-mark {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--tool-badge-icon) center / contain no-repeat;
  box-shadow: none;
  opacity: 1;
}
.result-preview-head strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
}
.result-preview-head span {
  color: #7f8b86;
}
.preview-image,
body.mode-drop:not(.has-analysis-image) .result-preview-card .preview-image,
body.mode-mortar:not(.has-analysis-image) .result-preview-card .preview-image {
  max-height: none;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #080b0a;
}
.preview-image::after {
  display: none;
}
.preview-grid,
body.mode-drop:not(.has-analysis-image) .preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 13px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.preview-stat,
body.mode-drop:not(.has-analysis-image) .preview-stat {
  min-width: 0;
  padding: 9px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.preview-stat span {
  color: #7f8b86;
  font-size: 11px;
}
.preview-stat strong,
body.mode-drop:not(.has-analysis-image) .preview-stat strong {
  color: var(--text);
  font-size: 16px;
}
.preview-list {
  gap: 7px;
  color: #b8c1bd;
  font-size: 12px;
}
.preview-list li::before,
body.mode-drop:not(.has-analysis-image) .preview-list li::before {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  border: 0;
  background: var(--green);
  color: #07110c;
  box-shadow: none;
}
.contact-card {
  border-color: var(--line);
  background: transparent;
}
.contact-links {
  gap: 8px 16px;
}
.contact-link {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b9c2be;
}
.contact-link:hover {
  color: var(--text);
  border-color: transparent;
}
.usage-card-btn,
.usage-inline-btn,
.usage-help-btn {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}
.usage-modal {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0d100f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .52);
}
.usage-step-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  box-shadow: none;
}
.usage-step-card::before,
.usage-step-media::after {
  display: none;
}
.usage-step-media {
  border-color: var(--line);
  border-radius: 5px;
  box-shadow: none;
}
.clipboard-empty-card,
.loading-card,
.analysis-card {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #121614;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
}
.tool-content-below {
  width: min(1180px, calc(100% - 48px));
  max-width: calc(100% - 48px);
  margin: 40px auto 24px;
  gap: 20px;
}
.seo-copy {
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.bm-content-pack {
  gap: 20px;
  margin-top: 0;
}
.bm-content-section,
.bm-fan-notice,
body .bm-content-pack > aside.bm-fan-notice {
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.bm-info-card,
.bm-example-cases .bm-example-card,
.bm-accordion-item,
.bm-related-link {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  box-shadow: none;
}
.tool-footer {
  border-top: 1px solid var(--line);
  background: #0d100f;
}
@media (max-width: 980px) {
  body {
    overflow: auto;
  }
  .app > header {
    min-height: 0;
    padding: 11px 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .brand {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
  }
  .brand .hint {
    display: none;
  }
  .app > header nav {
    width: 100%;
    max-width: 100%;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .app > header nav::-webkit-scrollbar {
    display: none;
  }
  .app > header nav a {
    flex: 0 0 auto;
    min-height: 38px;
  }
  .layout,
  body.mode-drop:not(.has-analysis-image) .layout,
  body.mode-mortar:not(.has-analysis-image) .layout {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
  }
  .stage {
    min-height: 0;
    height: auto;
    border-right: 0;
  }
  .toolbar {
    min-height: 0;
    padding: 10px 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .tools-left {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
  .tools-right {
    width: 100%;
  }
  .mode-toggle {
    flex: 1 1 210px;
  }
  .mode-toggle .btn {
    flex: 1 1 0;
  }
  body:not(.has-analysis-image) .viewer,
  body.mode-drop:not(.has-analysis-image) .viewer,
  body.mode-mortar:not(.has-analysis-image) .viewer {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  body:not(.has-analysis-image) .dropzone,
  body.mode-drop:not(.has-analysis-image) .dropzone,
  body.mode-mortar:not(.has-analysis-image) .dropzone {
    position: relative;
    inset: auto;
    min-height: 0;
    padding: 18px 14px;
  }
  body.has-analysis-image .viewer {
    height: 68vh;
    min-height: 480px;
  }
  .empty-onboarding,
  body.mode-drop:not(.has-analysis-image) .empty-onboarding,
  body.mode-mortar:not(.has-analysis-image) .empty-onboarding {
    width: 100%;
    min-height: 0;
    padding: 20px 0;
    gap: 12px;
  }
  .empty-title,
  body.mode-drop:not(.has-analysis-image) .empty-title,
  body.mode-mortar:not(.has-analysis-image) .empty-title {
    width: 100%;
    max-width: 620px;
    font-size: 26px;
  }
  .empty-lead,
  body.mode-drop:not(.has-analysis-image) .empty-lead,
  body.mode-mortar:not(.has-analysis-image) .empty-lead {
    font-size: 13px;
  }
  .empty-flow,
  body.mode-drop:not(.has-analysis-image) .empty-flow,
  body.mode-mortar:not(.has-analysis-image) .empty-flow {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .empty-flow-card,
  body.mode-drop:not(.has-analysis-image) .empty-flow-card,
  body.mode-mortar:not(.has-analysis-image) .empty-flow-card {
    display: grid;
    grid-template-columns: 28px 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 10px;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }
  .empty-step-num {
    grid-column: 1;
    grid-row: 1 / 3;
    justify-self: start;
  }
  .empty-thumb,
  .empty-step-thumb,
  .empty-key-visual,
  .empty-paste-visual,
  body.mode-drop:not(.has-analysis-image) .empty-thumb,
  body.mode-drop:not(.has-analysis-image) .empty-step-thumb,
  body.mode-drop:not(.has-analysis-image) .empty-key-visual,
  body.mode-drop:not(.has-analysis-image) .empty-paste-visual,
  body.mode-mortar:not(.has-analysis-image) .empty-thumb,
  body.mode-mortar:not(.has-analysis-image) .empty-step-thumb,
  body.mode-mortar:not(.has-analysis-image) .empty-key-visual,
  body.mode-mortar:not(.has-analysis-image) .empty-paste-visual {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 96px;
    height: 64px;
  }
  .empty-flow-card h3,
  body.mode-drop:not(.has-analysis-image) .empty-flow-card h3,
  body.mode-mortar:not(.has-analysis-image) .empty-flow-card h3 {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    text-align: left;
  }
  .empty-flow-card p,
  body.mode-drop:not(.has-analysis-image) .empty-flow-card p,
  body.mode-mortar:not(.has-analysis-image) .empty-flow-card p {
    grid-column: 3;
    grid-row: 2;
    max-width: none;
    margin: 0;
    text-align: left;
  }
  .empty-actions,
  body.mode-drop:not(.has-analysis-image) .empty-actions,
  body.mode-mortar:not(.has-analysis-image) .empty-actions {
    width: min(100%, 620px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .empty-action,
  body.mode-drop:not(.has-analysis-image) .empty-action,
  body.mode-mortar:not(.has-analysis-image) .empty-action {
    min-height: 54px;
    padding-inline: 8px;
    font-size: 13px;
  }
  .layout > aside,
  body.mode-drop aside,
  body.mode-mortar aside {
    height: auto;
    max-height: none;
    padding: 12px;
    border-top: 1px solid var(--line);
    border-left: 0;
    overflow: visible;
  }
  .tool-content-below {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin: 34px 14px 18px !important;
    justify-self: start;
  }
  .tool-content-below > *,
  .tool-content-below .seo-copy,
  .tool-content-below .bm-content-pack,
  .tool-content-below .bm-content-section,
  .tool-content-below .bm-fan-notice {
    min-width: 0;
    max-width: 100%;
  }}
@media (max-width: 680px) {
  .site-identity,
  .brand-divider {
    display: none;
  }
  .brand {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  .site-logo-mark {
    width: 28px;
    height: 28px;
  }
  .site-logo-mark svg {
    width: 28px;
    height: 28px;
  }
  .tool-page-icon {
    width: 28px;
    height: 28px;
  }
  .brand h1 {
    font-size: 15px;
    white-space: normal;
  }
  .toolbar .hint {
    font-size: 11px;
  }
  .empty-symbol {
    width: 44px;
    height: 44px;
  }
  .empty-title,
  body.mode-drop:not(.has-analysis-image) .empty-title,
  body.mode-mortar:not(.has-analysis-image) .empty-title {
    font-size: 24px;
    line-height: 1.2;
  }
  .empty-flow-card,
  body.mode-drop:not(.has-analysis-image) .empty-flow-card,
  body.mode-mortar:not(.has-analysis-image) .empty-flow-card {
    grid-template-columns: 26px 82px minmax(0, 1fr);
    gap: 3px 8px;
  }
  .empty-thumb,
  .empty-step-thumb,
  .empty-key-visual,
  .empty-paste-visual,
  body.mode-drop:not(.has-analysis-image) .empty-thumb,
  body.mode-drop:not(.has-analysis-image) .empty-step-thumb,
  body.mode-drop:not(.has-analysis-image) .empty-key-visual,
  body.mode-drop:not(.has-analysis-image) .empty-paste-visual,
  body.mode-mortar:not(.has-analysis-image) .empty-thumb,
  body.mode-mortar:not(.has-analysis-image) .empty-step-thumb,
  body.mode-mortar:not(.has-analysis-image) .empty-key-visual,
  body.mode-mortar:not(.has-analysis-image) .empty-paste-visual {
    width: 82px;
    height: 58px;
  }
  body.mode-drop:not(.has-analysis-image) .empty-paste-visual .paste-visual-title,
  body.mode-mortar:not(.has-analysis-image) .empty-paste-visual .paste-visual-title {
    display: none;
  }
  body.mode-drop:not(.has-analysis-image) .empty-paste-visual .paste-visual-inner,
  body.mode-mortar:not(.has-analysis-image) .empty-paste-visual .paste-visual-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.mode-drop:not(.has-analysis-image) .empty-paste-visual .paste-visual-hint,
  body.mode-mortar:not(.has-analysis-image) .empty-paste-visual .paste-visual-hint {
    gap: 4px;
  }
  body.mode-drop:not(.has-analysis-image) .empty-paste-visual .keycap,
  body.mode-mortar:not(.has-analysis-image) .empty-paste-visual .keycap {
    width: 27px;
    height: 34px;
    min-width: 27px;
    min-height: 34px;
    padding: 4px 6px;
    font-size: 12px;
  }
  .empty-actions,
  body.mode-drop:not(.has-analysis-image) .empty-actions,
  body.mode-mortar:not(.has-analysis-image) .empty-actions {
    gap: 8px;
  }
  .tool-footer {
    padding: 14px;
  }}

.bm-mobile-menu { display:none; }
@media(max-width:520px) {
  .bm-site-header__inner { position:relative; }
  .bm-mobile-menu { display:block; position:absolute; top:8px; right:14px; z-index:12; }
  .bm-mobile-menu summary { display:flex; align-items:center; gap:8px; min-height:44px; box-sizing:border-box; padding:0 10px; border:1px solid #3b4b42; border-radius:6px; background:#121a16; color:#d3dfd9; cursor:pointer; font-size:12px; list-style:none; }
  .bm-mobile-menu summary::-webkit-details-marker { display:none; }
  .bm-mobile-menu nav { position:absolute; top:44px; right:0; width:190px; padding:6px; border:1px solid #3b4b42; border-radius:8px; background:#121a16; box-shadow:0 12px 30px #0008; }
  .bm-mobile-menu nav a { display:flex; align-items:center; min-height:44px; padding:0 12px; color:#d3dfd9; text-decoration:none; font-size:14px; border-radius:4px; }
  .bm-mobile-menu nav a[aria-current="page"] { background:#1c392a; color:#77e0b2; }}
:root {
  --bm-shell-bg: #0b0e0d;
  --bm-shell-line: #29312e;
  --bm-shell-text: #f0f3f1;
  --bm-shell-muted: #9ca8a3;
  --bm-shell-accent: #4ed58a;
  --bm-header-height: 65px;
}

.bm-visually-hidden {
  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;
}

.bm-site-header {
  box-sizing: border-box;
  position: sticky;
  z-index: 80;
  top: 0;
  width: 100%;
  min-width: 0;
  height: 65px;
  min-height: 65px;
  border-bottom: 1px solid var(--bm-shell-line);
  background: rgba(11, 14, 13, .97);
  backdrop-filter: blur(12px);
  font-family: Pretendard, "Pretendard Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.mode-zone > .bm-site-header {
  grid-area: header;
}

/* Tool workspaces have legacy direct-child header rules. Keep the shared
   shell authoritative without coupling it to each tool stylesheet. */
.app > .bm-site-header {
  min-height: 0;
  display: block;
  padding: 0;
  gap: 0;
}

.app > .bm-site-header .bm-site-header__inner {
  min-height: 64px;
}

.app > .bm-site-header .bm-site-nav {
  width: auto;
  overflow: visible;
  gap: 24px;
  color: var(--bm-shell-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.app > .bm-site-header .bm-site-nav a {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.bm-site-header__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 64px;
  min-height: 64px;
  margin: 0;
  padding-inline: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.bm-site-header__identity {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bm-site-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bm-shell-text);
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.bm-site-brand:hover,
.bm-site-brand:focus-visible {
  color: var(--bm-shell-text);
  text-decoration: none;
}

.bm-site-brand__mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid var(--bm-shell-accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--bm-shell-bg);
  background: var(--bm-shell-accent);
}

.bm-header-divider {
  width: 1px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--bm-shell-line);
}

.bm-header-context {
  overflow: hidden;
  margin: 0;
  color: var(--bm-shell-text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bm-site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--bm-shell-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.bm-site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.bm-site-nav a:hover,
.bm-site-nav a:focus-visible {
  color: var(--bm-shell-text);
  text-decoration: none;
}

.bm-site-nav a[aria-current="page"] {
  border-bottom-color: var(--bm-shell-accent);
  color: var(--bm-shell-text);
}

.bm-site-footer {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--bm-shell-line);
  background: #090c0b;
  color: #a8b2ae;
  font-family: Pretendard, "Pretendard Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

.bm-site-footer__inner {
  box-sizing: border-box;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 46px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(480px, 1.8fr);
  gap: 64px;
}

.bm-site-footer__about p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #a8b2ae;
  font-size: 13px;
  line-height: 1.7;
}

.bm-site-footer__brand {
  color: var(--bm-shell-text);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
}

.bm-site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.bm-site-footer__group {
  min-width: 0;
}

.bm-site-footer__group h2 {
  margin: 0 0 13px;
  color: var(--bm-shell-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.bm-site-footer__group a {
  min-height: 32px;
  display: flex;
  align-items: center;
  width: fit-content;
  color: #a8b2ae;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.bm-site-footer__group a:hover,
.bm-site-footer__group a:focus-visible,
.bm-site-footer__brand:hover,
.bm-site-footer__brand:focus-visible {
  color: var(--bm-shell-accent);
  text-decoration: none;
}

@media (max-width: 820px) {
  :root {
    --bm-header-height: 61px;
  }

  .bm-site-header {
    height: 61px;
    min-height: 61px;
  }

  .bm-site-header__inner {
    width: 100%;
    height: 60px;
    min-height: 60px;
    padding: 0 14px;
    gap: 18px;
  }

  .app > .bm-site-header .bm-site-header__inner {
    width: 100%;
    height: 60px;
    min-height: 60px;
    padding: 0 14px;
  }

  .app > .bm-site-header .bm-site-nav {
    overflow-x: auto;
  }

  .bm-header-divider,
  .bm-header-context {
    display: none;
  }

  .bm-site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(78, 213, 138, .42) transparent;
  }

  .bm-site-nav::-webkit-scrollbar {
    height: 3px;
  }

  .bm-site-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .bm-site-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(78, 213, 138, .42);
  }

  .bm-site-nav a {
    scroll-snap-align: start;
  }

  .bm-site-nav::after {
    content: "";
    flex: 0 0 calc(50% - 20px);
  }

  .bm-site-footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }}

@media (max-width: 520px) {
  :root {
    --bm-header-height: 90px;
  }

  .bm-site-header {
    height: auto;
    min-height: 89px;
  }

  /* Legacy tool styles still target the bare header element on small screens.
     Keep every page on the same shared shell dimensions. */
  body.mode-drop:not(.has-analysis-image) .app > .bm-site-header,
  body.mode-mortar:not(.has-analysis-image) .app > .bm-site-header {
    height: auto !important;
    min-height: 89px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .bm-site-header__inner {
    height: auto;
    display: block;
    padding: 8px 14px 0;
  }

  .app > .bm-site-header .bm-site-header__inner {
    height: auto;
    display: block;
    padding: 8px 14px 0;
  }

  .app > .bm-site-header .bm-site-nav {
    gap: 18px;
    padding: 0;
  }

  .app > .bm-site-header .bm-site-nav a {
    min-height: 44px;
  }

  .bm-site-brand {
    min-height: 44px;
    font-size: 16px;
  }

  .bm-site-nav {
    margin-top: 1px;
  }

  .bm-site-nav a {
    min-height: 44px;
  }

  .bm-site-footer__inner {
    width: 100%;
    padding: 30px 18px 36px;
  }

  .bm-site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }}

/* Shared automatic tool onboarding; never change analysis or manual canvas geometry. */
.bm-mobile-guide-toggle { display:none; }
body:is(.mode-drop,.mode-mortar):not(.has-analysis-image):not([data-input-mode="manual"]) aside .quick-start-card { display:none!important; }
body:is(.mode-drop,.mode-mortar,.mode-zone) { --drop-bg:#101416; --drop-surface:#171d20; --drop-line:#30383d; --drop-text:#f1f4f5; --drop-muted:#b4bec4; --drop-accent:#35d6a3; }
body:is(.mode-drop,.mode-mortar,.mode-zone):not(.has-analysis-image):not([data-input-mode="manual"]) {
  background:var(--drop-bg); color:var(--drop-text);
  font-family:Pretendard,"Pretendard Variable",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;
  & :is(.app,.layout,.stage,.viewer,.dropzone,.empty-onboarding,.toolbar) { width:100%!important; inline-size:100%!important; max-inline-size:100%!important; min-width:0!important; min-inline-size:0!important; box-sizing:border-box; }
  & .app { height:auto; min-height:100vh; }
  & .layout { grid-template-columns:minmax(0,1fr) 312px; height:auto; overflow:visible; align-items:start; gap:0; }
  & .stage { height:auto; }
  & .viewer { min-height:0; height:auto; background:var(--drop-bg); box-shadow:none; overflow:visible; }
  & :is(.viewer,.dropzone,.empty-onboarding)::before, & :is(.empty-symbol,.tools-right), & #warningBox:empty { display:none; }
  & .dropzone { position:relative; inset:auto; min-height:0; padding:32px; background:none; }
  & .empty-onboarding { inline-size:min(100%,1240px)!important; max-inline-size:1240px!important; min-height:0; padding:0; margin:auto; border:0; background:none; box-shadow:none; transform:none; gap:12px; }
  & .empty-title { max-width:none; color:var(--drop-text); font-size:36px; font-weight:700; letter-spacing:-.035em; line-height:1.25; margin:0; }
  & .empty-title em { display:inline; color:inherit; }
  & .empty-lead { max-width:760px; margin:0 auto; color:var(--drop-muted); font-size:16px; line-height:1.6; word-break:keep-all; }
  & .empty-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; width:100%; max-width:none; margin:24px 0 0; order:4; align-items:stretch; }
  & .empty-actions { order:5; width:min(100%,480px); display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px auto 0; }
  & .empty-actions button { display:flex; flex-direction:row; align-items:center; justify-content:center; gap:10px; padding:10px 12px; min-height:44px; border:1px solid #48545d; border-radius:8px; background:var(--drop-surface); color:var(--drop-text); font-family:inherit; font-size:14px; font-weight:600; line-height:1.5; cursor:pointer; box-shadow:none; transition:background-color .15s,border-color .15s,box-shadow .15s; }
  & :is(#pasteClipboardBtn,#autoPasteButton) { grid-column:1/-1; min-height:54px; background:var(--drop-accent); border-color:var(--drop-accent); color:#062a20; font-size:18px; font-weight:700; letter-spacing:-.02em; }
  & :is(#sampleAnalyzeBtn,#fileSelectBtn,#autoSampleButton,#zoneFileSelectBtn) { grid-column:auto; }
  & .empty-foot { order:7; width:100%; flex-direction:row; flex-wrap:wrap; justify-content:center; gap:4px 16px; margin:8px 0 0; }
  & .empty-foot span { padding:0; border:0; border-radius:0; background:none; color:var(--drop-muted); font-size:12px; line-height:1.6; }
  & .empty-foot span::before { display:none; }
  & .layout > aside { width:auto; max-width:none; min-width:0; height:auto; max-height:none; margin:0; padding:28px 24px; overflow:visible!important; background:#14191c; border-left:1px solid #262e33; }
  & aside .result-preview-card { padding:0; background:none; border:0; border-radius:0; box-shadow:none; }
  & .result-preview-head { min-height:0; }
  & .result-preview-head .eye-mark { display:none; }
  & .result-preview-head strong { color:var(--drop-text); font-size:18px; font-weight:600; line-height:1.5; }
  & .result-preview-head span { color:var(--drop-muted); font-size:13px; line-height:1.65; margin-top:6px; }
  & .preview-image { height:auto; aspect-ratio:1; margin:24px 0 0; border:1px solid #303a40; border-radius:8px; overflow:hidden; }
  & .preview-image img { width:100%; height:100%; object-fit:cover; }
  & .preview-grid { display:grid; grid-template-columns:1fr; gap:0; margin-top:20px; border:0; background:none; }
  & .preview-stat { padding:0; border:0; background:none; }
  & .preview-stat span { color:var(--drop-muted); font-size:13px; }
  & .preview-stat strong { color:var(--drop-text); font-size:17px; font-weight:600; }
  & .drop-primary-stat strong { font-size:32px; line-height:1.3; font-weight:650; letter-spacing:-.03em; }
  & .preview-list:empty, & .preview-list::before, & aside::after { display:none; }
  & .toolbar { background:#121719; border-color:#2b3237; }
  & .toolbar .btn { border-color:#465159; border-radius:7px; background:#171d20; color:#d0d7dc; box-shadow:none; font-weight:600; }
  & .toolbar .btn.primary { color:#7ce9c5; background:#1a302b; border-color:#386859; }
  & .toolbar .btn:disabled { color:#89969f; cursor:not-allowed; }
  & .toolbar .check { color:var(--drop-muted); }
  & :is(button,summary,a,input):focus-visible { outline:2px solid #7ce9c5; outline-offset:4px; }
  & .empty-actions button:active:not(:disabled) { box-shadow:inset 0 2px 5px #0004; }
  & .empty-actions button:disabled { opacity:.55; cursor:wait; }
}
.drop-guide-step { min-width:0; display:grid; grid-template-rows:1fr auto; text-align:left; cursor:default; }
.drop-step-heading { display:grid; grid-template-columns:24px minmax(0,1fr); align-content:start; align-items:baseline; gap:8px; padding-bottom:20px; }
.drop-step-number { color:#8e9ba4; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.drop-step-heading h3 { color:var(--drop-text); font-size:19px; font-weight:650; letter-spacing:-.035em; line-height:1.45; word-break:keep-all; margin:0; }
.drop-step-heading p { grid-column:2; margin:0; font-size:14px; line-height:1.65; color:#c1c9ce; word-break:keep-all; white-space:pre-line; }
.drop-guide-step kbd { display:inline-flex; justify-content:center; align-items:center; box-sizing:border-box; border:1px solid #5a656d; border-bottom-width:2px; border-radius:5px; background:#252d32; color:#f4f6f7; font-family:inherit; font-weight:600; box-shadow:0 1px 0 #080b0d; }
.drop-step-heading kbd { min-width:20px; height:21px; padding:0 4px; font-size:12px; vertical-align:1px; line-height:1; }
.drop-monitor-screen { position:relative; aspect-ratio:16/9; overflow:hidden; border:1px solid #414b52; border-radius:10px; background:#171d20; isolation:isolate; box-shadow:0 8px 20px #0002; }
.drop-monitor-screen > img { display:block; width:100%; height:100%; object-fit:contain; }
.drop-pin-label { position:absolute; left:53%; top:31%; padding:2px 5px; border:1px solid #d4c66e; border-radius:3px; color:#fff2ac; background:#20221c; font-size:10px; line-height:1.4; }
.drop-pin-label::before { content:''; position:absolute; left:-5px; bottom:-7px; height:8px; border-left:1px solid #d4c66e; transform:rotate(32deg); }
.drop-capture-overlay { position:absolute; inset:0; background:#0005; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:#edf0f2; font-size:12px; }
.drop-capture-overlay kbd,.drop-key-combination kbd { height:52px; min-width:52px; padding:0 16px; border-radius:8px; border-bottom-width:3px; font-size:22px; box-shadow:0 3px 0 #090d10,0 5px 12px #0003; }
.drop-key-combination { display:flex; align-items:center; gap:8px; }
.drop-key-combination > span { font-size:16px; color:var(--drop-muted); }
.drop-site-demo { position:absolute; inset:0; display:flex; flex-direction:column; background:#141a1e; padding:12px; gap:12px; }
.drop-demo-brand { display:flex; align-items:center; gap:7px; color:var(--drop-text); font-size:12px; font-weight:650; line-height:18px; }
.drop-demo-brand .bm-site-brand__mark { width:15px; height:15px; flex:0 0 15px; }
.drop-demo-paste { flex:1; min-height:0; border:1px dashed #4b5861; border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:var(--drop-muted); font-size:12px; }
.drop-demo-paste > svg { width:22px; height:22px; }
.drop-action-icon { width:20px; height:20px; flex:0 0 20px; }
.drop-save-note { grid-column:1/-1; margin:-3px 0 1px; color:var(--drop-muted); font-size:13px; line-height:1.5; text-align:center; }
.drop-capture-help { order:6; max-width:620px; margin:4px auto 0; color:var(--drop-muted); font-size:13px; line-height:1.7; }
.drop-capture-help p { text-align:left; }
.drop-capture-help summary,.drop-detail-stats summary,.drop-preview-note summary { list-style:none; display:flex; align-items:center; gap:7px; cursor:pointer; border-radius:3px; }
:is(.drop-capture-help,.drop-detail-stats,.drop-preview-note) summary::-webkit-details-marker { display:none; }
:is(.drop-capture-help,.drop-detail-stats,.drop-preview-note) summary::before { content:''; width:14px; height:14px; flex:0 0 14px; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m7 4 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition:transform .15s; }
:is(.drop-capture-help,.drop-detail-stats,.drop-preview-note)[open] summary::before { transform:rotate(90deg); }
.drop-primary-stat small { font-size:14px; font-weight:500; color:var(--drop-muted); margin-left:6px; letter-spacing:0; }
.drop-detail-stats { margin-top:16px; border-top:1px solid #30383d; font-size:13px; color:var(--drop-muted); }
.drop-detail-stats summary { padding:12px 0; }
.drop-detail-stats > div { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:4px 0 16px; }
.drop-preview-note { margin-top:0; font-size:12px; line-height:1.65; color:var(--drop-muted); }
@media(hover:hover) and (pointer:fine) {
  body:is(.mode-drop,.mode-mortar,.mode-zone):not(.has-analysis-image):not([data-input-mode="manual"]) {
    & .empty-actions button:hover:not(:disabled) { background:#252e34; border-color:#80919c; }
    & :is(#pasteClipboardBtn,#autoPasteButton):hover:not(:disabled) { background:#59e2b6; border-color:#59e2b6; }
    & .toolbar .btn:hover:not(:disabled) { border-color:#7b8c95; }
  }
  :is(.drop-capture-help,.drop-detail-stats,.drop-preview-note) summary:hover { color:#f1f4f5; }}
@media(min-width:1600px) {
  body:is(.mode-drop,.mode-mortar,.mode-zone):not(.has-analysis-image):not([data-input-mode="manual"]) {
    & .layout { grid-template-columns:minmax(0,1fr) 344px; }
    & .dropzone { padding:44px 40px 32px; }
    & .empty-flow { margin-top:32px; }
    & .empty-actions { margin-top:28px; }
  }
  .drop-step-heading { min-height:112px; }
  .drop-step-heading p { font-size:15px; }}
@media(max-width:1200px) {
  body:is(.mode-drop,.mode-mortar,.mode-zone):not(.has-analysis-image):not([data-input-mode="manual"]) {
    & .layout { grid-template-columns:minmax(0,1fr) 270px; }
    & .dropzone { padding:24px; }
    & .empty-flow { gap:16px; }
  }
  .drop-step-heading { grid-template-columns:1fr; }
  .drop-step-heading p { grid-column:1; }
  .drop-demo-paste > svg { display:none; }}
@media(min-width:801px) and (max-height:760px) {
  body:is(.mode-drop,.mode-mortar,.mode-zone):not(.has-analysis-image):not([data-input-mode="manual"]) {
    & .dropzone { padding-top:20px; }
    & .empty-flow { margin-top:16px; }
    & .empty-title { font-size:32px; }
    & .empty-actions { margin-top:12px; }
  }}
@media(max-width:800px) {
  body:is(.mode-drop,.mode-mortar,.mode-zone):not(.has-analysis-image):not([data-input-mode="manual"]) {
    & .layout,& .empty-flow { grid-template-columns:minmax(0,1fr); }
    & .dropzone { padding:28px 20px; }
    & .empty-onboarding { max-inline-size:560px!important; }
    & .empty-title { font-size:30px; }
    & .empty-lead { font-size:15px; }
    & .empty-flow { gap:28px; }
    & .layout > aside { width:min(100%,560px); margin:auto; padding:24px 20px; border:0; border-top:1px solid #30383d; }
    & .preview-image { max-width:320px; }
  }
  .drop-step-heading { grid-template-columns:24px minmax(0,1fr); padding-bottom:14px; }
  .drop-step-heading p { grid-column:2; }
  .drop-demo-paste > svg { display:block; }}
@media(prefers-reduced-motion:reduce) {
  body:is(.mode-drop,.mode-mortar,.mode-zone) .empty-actions button,:is(.drop-capture-help,.drop-detail-stats,.drop-preview-note) summary::before { transition:none; }}
@media(max-width:800px) {
  body:is(.mode-drop,.mode-mortar,.mode-zone):not(.has-analysis-image):not([data-input-mode="manual"]) {
    & .empty-onboarding { display:flex; flex-direction:column; align-items:center; }
    & .empty-title { order:0; }
    & .empty-lead { order:1; }
    & .bm-explain-entry { order:2; }
    & .empty-actions { order:3; margin-top:12px; grid-template-columns:1fr 1fr; width:100%; }
    & .empty-actions :is(#fileSelectBtn,#zoneFileSelectBtn) { order:-3; grid-column:1/-1; min-height:54px; font-size:17px; background:var(--drop-accent); border-color:var(--drop-accent); color:#062a20; }
    & .empty-actions :is(#pasteClipboardBtn,#autoPasteButton) { order:-1; grid-column:auto; min-height:48px; font-size:13px; background:var(--drop-surface); border-color:#48545d; color:var(--drop-text); }
    & .empty-actions :is(#sampleAnalyzeBtn,#autoSampleButton) { order:-2; min-height:48px; }
    & .empty-actions .drop-save-note { display:none; }
    & .bm-mobile-guide-toggle { order:4; display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px 16px; border:1px solid #48545d; border-radius:8px; background:transparent; color:var(--drop-muted); font:inherit; font-size:14px; cursor:pointer; }
    & .bm-mobile-guide-toggle::after { content:'⌄'; margin-left:10px; }
    & .bm-mobile-guide-toggle[aria-expanded="true"]::after { content:'⌃'; }
    & .empty-flow { order:5; display:none; margin-top:8px; }
    & .empty-onboarding[data-guide-expanded="true"] .empty-flow { display:grid; }
    & .drop-capture-help { width:100%; font-size:13px; }
    & .drop-step-heading p { font-size:15px; }
  }}
/* Zone owns a separate grid/canvas shell; adapt only the empty automatic state. */
body.mode-zone > .bm-site-footer { grid-area:footer; grid-column:1/-1; order:6; }
body.mode-zone:not(.has-analysis-image):not([data-input-mode="manual"]) {
  grid-template-columns:minmax(0,1fr) 312px;
  grid-template-rows:auto auto auto auto auto;
  & > .bm-site-footer { grid-area:footer; grid-column:1/-1; }
  & main { height:auto; min-height:0; overflow:visible; background:var(--drop-bg); border:0; }
  & #mapCanvas { display:none; }
  & .map-drop-panel { position:relative; inset:auto; padding:32px; min-height:0; height:auto; }
  & .map-drop-card { width:100%; max-width:none; padding:0; border:0; }
  & .map-drop-panel .drop-zone { padding:0; width:100%; border:0; background:none; }
  & .empty-onboarding { display:flex; flex-direction:column; align-items:center; }
  & > aside { align-self:stretch; height:auto; padding:28px 24px; background:#14191c; border-left:1px solid #262e33; }
  & > aside > :not(.result-preview-card), & main > .hud { display:none; }
  & .result-preview-card { display:block!important; }
  & .result-preview-card .preview-image { max-height:none; height:auto; aspect-ratio:1; }
  & .result-preview-card .preview-image img { height:100%; max-height:none; object-fit:contain; }
  & .empty-actions .empty-action { width:100%; }
  & .toolbar-note { display:none; }
  & .mode-tab { border-color:#465159; border-radius:7px; background:#171d20; color:#d0d7dc; box-shadow:none; font-weight:600; }
  & .mode-tab.active { color:#7ce9c5; background:#1a302b; border-color:#386859; }
}
body.mode-mortar:not(.has-analysis-image):not([data-input-mode="manual"]) aside .contact-card { display:none; }
.mortar-input-label { left:54%; top:52%; }
.zone-input-label { left:62%; top:29%; border-color:#bbc7cf; background:#20272c; color:#f2f5f7; }
.zone-input-label::before { border-color:#bbc7cf; }
@media(min-width:1600px) {
  body.mode-zone:not(.has-analysis-image):not([data-input-mode="manual"]) {
    grid-template-columns:minmax(0,1fr) 344px;
    & .map-drop-panel { padding:44px 40px 32px; }
  }}
@media(max-width:1200px) and (min-width:801px) {
  body.mode-zone:not(.has-analysis-image):not([data-input-mode="manual"]) {
    grid-template-columns:minmax(0,1fr) 270px;
    & .map-drop-panel { padding:24px; }
  }}
@media(min-width:801px) and (max-height:760px) {
  body.mode-zone:not(.has-analysis-image):not([data-input-mode="manual"]) .map-drop-panel { padding-top:20px; }}
@media(max-width:800px) {
  body.mode-zone:not(.has-analysis-image):not([data-input-mode="manual"]) {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"header" "toolbar" "map" "side" "content" "footer";
    grid-template-rows:repeat(6,auto);
    & .map-drop-panel { padding:28px 20px; }
    & > aside { width:min(100%,560px); box-sizing:border-box; margin:auto; padding:24px 20px; border:0; border-top:1px solid #30383d; }
  }}

.bm-explain-link{appearance:none;background:none;border:0;color:#8fd5bf;font:inherit;font-size:13px;cursor:pointer;padding:9px 4px;text-underline-offset:4px}
.bm-explain-link:hover{color:#c8ffec;text-decoration:underline}.bm-explain-link:focus-visible,.bm-explainer button:focus-visible{outline:2px solid #33dfad;outline-offset:4px}
.bm-explain-link.compact{padding:0 4px;font-size:15px}
#emptyGuide>#dropTitle{order:1}#emptyGuide>#dropDesc{order:2}#emptyGuide>.bm-explain-entry{order:3;align-self:center;margin:0 auto;display:block}
.bm-explainer{overscroll-behavior:contain;touch-action:pan-y}
.bm-explainer-preference{display:flex;align-items:center;gap:8px;font-size:13px;color:#b9ccc2;cursor:pointer;margin-right:auto;flex-wrap:wrap}.bm-explainer-preference input{width:16px;height:16px;accent-color:#34d59c;cursor:pointer}.bm-preference-status{font-size:11px;color:#ffcf9c}
.bm-explainer .bm-explainer-footer{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto}.bm-explainer-preference>span:not(.bm-preference-status),.bm-explainer-counter{white-space:nowrap}.bm-explainer-preference input{flex-shrink:0}
@media(max-width:540px){.bm-explainer .bm-explainer-footer{grid-template-columns:1fr auto 1fr;gap:10px}.bm-explainer .bm-explainer-preference{grid-column:1/-1;justify-self:start;flex-wrap:nowrap}.bm-explainer-footer [data-next]{justify-self:end}.bm-explainer-footer [data-prev]{justify-self:start}}
.bm-explainer{box-sizing:border-box;width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;color:#eef8f5;background:#101e1b;border:1px solid #38564d;border-radius:20px;box-shadow:0 24px 90px #0009;overflow:auto}
.bm-explainer::backdrop{background:#020a08bd;backdrop-filter:blur(5px)}
.bm-explainer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #2a4139;color:#a6c3b8;font-size:13px}
.bm-explainer button{font:inherit;cursor:pointer}.bm-explainer-close{background:transparent;color:#e9fff7;border:1px solid #466357;border-radius:50%;width:36px;height:36px;font-size:22px!important}
.bm-explainer-body{padding:24px}.bm-explainer h2{font-size:25px;line-height:1.4;margin:0 0 8px}.bm-explainer p{font-size:16px;line-height:1.75;color:#c6d8d1;margin:10px 0 18px}
.bm-explainer-figure{background:#091510;border:1px solid #2b473a;border-radius:14px;overflow:hidden}.bm-explainer svg{display:block;width:100%;height:auto}.bm-explainer svg text{font:16px sans-serif;fill:#d8eee4}.bm-explainer svg .accent{fill:#4ce0ad}.bm-explainer svg .muted{fill:#9cb6aa;font-size:13px}
.bm-explainer figcaption{padding:10px 16px;color:#9cb6aa;font-size:12px;border-top:1px solid #223a2e}.bm-explainer figure{margin:20px 0}
.bm-explainer-takeaway{padding:14px 16px;border-left:3px solid #34d59c;background:#172e24;color:#e2f9ec;line-height:1.7;border-radius:0 8px 8px 0}
.bm-explainer-footer{position:sticky;bottom:0;background:#101e1b;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid #2a4139}.bm-explainer-footer button{border:1px solid #476658;background:#193629;border-radius:9px;padding:10px 20px;color:#e9fff2;transition:background .15s,transform .15s}.bm-explainer-footer button:hover{background:#26523e;transform:translateY(-1px)}.bm-explainer-footer button:disabled{opacity:.35;cursor:default;transform:none}.bm-explainer-counter{font-size:13px;color:#a6c3b8}
@media(min-width:541px) and (max-height:820px){.bm-explainer-body{padding:18px 24px}.bm-explainer svg{max-height:240px}.bm-explainer figure{margin:12px 0}.bm-explainer p{margin:8px 0 12px}}
@media(max-width:540px){.bm-explainer-body{padding:18px}.bm-explainer h2{font-size:21px}.bm-explainer p{font-size:14px}.bm-explainer-head,.bm-explainer-footer{padding:14px 18px}.bm-explainer svg text{font-size:18px}}
@media(prefers-reduced-motion:reduce){.bm-explainer-footer button{transition:none;transform:none!important}}
.bm-explainer-photo{width:min(1040px,calc(100vw - 28px))}
.bm-explainer .route-after{display:none}.bm-explainer .show-route-after .route-after{display:inline}.bm-explainer .show-route-after .route-before{display:none}
.bm-route-toggle{background:#214737;color:#e4ffef;border:1px solid #52876e;border-radius:9px;padding:10px 16px}.bm-route-toggle:hover{background:#2e604a}
.bm-explainer,.bm-explainer.bm-explainer-photo{width:min(1240px,calc(100vw - 40px));border-color:#334b43;border-radius:16px;background:#101a17;font-family:inherit}
.bm-explainer-head{padding:12px 26px;font-size:12px;letter-spacing:.04em;background:#0c1512}
.bm-explainer-body{padding:24px 28px 28px}.bm-explainer .bm-brief-title{display:block;position:static;height:auto;min-height:0;padding:0;margin:0 0 24px;border:0;background:none;box-shadow:none}.bm-brief-kicker{display:block;font-size:10px;letter-spacing:.18em;color:#7db8a0;margin-bottom:10px;font-weight:700}
.bm-explainer .bm-brief-title h2{font-size:28px;letter-spacing:-.035em;line-height:1.35;margin:0 0 8px}.bm-explainer .bm-brief-title p{font-size:15px;margin:0;color:#9fb5ab}
.bm-brief-grid{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(240px,1fr);gap:28px;align-items:start}
.bm-brief-visual{min-width:0;border:1px solid #30473e;border-radius:12px;overflow:hidden;background:#0b1511}
.bm-visual-toolbar{min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;box-sizing:border-box;background:#15231c;color:#9fbaad;font-size:11px}
.bm-explainer .bm-explainer-figure{margin:0;border:0;border-radius:0;background:transparent}
.bm-explainer .bm-explainer-figure svg{max-height:none;min-width:0}.bm-explainer .bm-explainer-figure::before{display:none}
.bm-explainer .bm-explainer-figure figcaption{min-width:0;font-size:11px;color:#81998e;padding:10px 14px;border-color:#23392f}
.bm-route-controls{display:flex;background:#0a1510;padding:3px;border-radius:7px;flex-shrink:0}.bm-route-controls button{border:0;border-radius:5px;background:none;color:#93afa0;width:64px;padding:6px 0;font-size:12px;transition:background .15s,color .15s}.bm-route-controls button:hover{color:#fff}.bm-route-controls button[aria-pressed=true]{background:#315342;color:#e9fff2;box-shadow:0 1px 3px #0005}
.bm-brief-notes{padding:4px 0}.bm-brief-notes article{display:flex;gap:12px;padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid #293e34}.bm-note-index{font-size:11px;color:#7fa993;padding-top:5px;font-variant-numeric:tabular-nums}
.bm-brief-notes h3{margin:0 0 8px;font-size:16px;color:#edf8f2;font-weight:600;letter-spacing:-.02em}.bm-explainer .bm-brief-notes p{font-size:14px;line-height:1.8;margin:0;color:#acbfb5;word-break:keep-all;overflow-wrap:break-word}
.bm-explainer .bm-explainer-takeaway{border:1px solid #385843;border-radius:9px;background:#182a20;padding:16px}.bm-explainer-takeaway>span{display:block;font-size:11px;letter-spacing:.05em;color:#95cba9;margin-bottom:9px}.bm-explainer .bm-explainer-takeaway p{color:#dbeee1}
.bm-brief-detail{margin-top:18px;font-size:12px;color:#8ea89a}.bm-brief-detail summary{cursor:pointer;padding:4px 0}.bm-brief-detail summary:hover{color:#d9efdf}.bm-explainer .bm-brief-detail p{font-size:12px;margin-top:10px;line-height:1.75}
.bm-explainer-footer{padding:12px 26px;background:#0c1512}.bm-explainer-footer button{min-width:82px;font-size:13px;border-radius:7px}.bm-explainer-counter{font-variant-numeric:tabular-nums;letter-spacing:.12em;font-size:11px}
.bm-mobile-panels{display:none}.bm-mobile-panels svg{overflow:hidden}.bm-time-saving{display:block;margin-top:14px;font-size:18px;line-height:1.5;color:#77e1b7;font-variant-numeric:tabular-nums}
.bm-calculation-example{margin:18px 0 20px;padding:12px;border:1px solid #355044;border-radius:10px;background:#101f18}.bm-calculation-example table{border-collapse:collapse;width:100%;font-size:12px;font-variant-numeric:tabular-nums}.bm-calculation-example caption{text-align:left;font-size:13px;font-weight:600;color:#dceee3;padding-bottom:12px}.bm-calculation-example th,.bm-calculation-example td{padding:8px 3px;text-align:right;border-bottom:1px solid #294234;white-space:nowrap}.bm-calculation-example th:first-child{text-align:left}.bm-calculation-example thead th{color:#9cb3a6;font-weight:400}.bm-calculation-example tbody th{font-weight:400;color:#c5d8ce}.bm-calculation-example td{color:#77e1b7;font-weight:600}.bm-explainer .bm-calculation-example p{font-size:11px;line-height:1.5;margin:10px 0 0;color:#99afa3}
@media(max-width:850px){.bm-explainer,.bm-explainer.bm-explainer-photo{width:calc(100vw - 24px)}.bm-brief-grid{grid-template-columns:1fr;gap:22px}.bm-explainer-body{padding:20px}.bm-brief-notes{display:grid;grid-template-columns:1fr 1fr;gap:16px}.bm-brief-notes article{margin:0;padding-bottom:16px}.bm-explainer-takeaway,.bm-brief-detail{grid-column:1/-1}.bm-explainer .bm-brief-title h2{font-size:24px}}
@media(max-width:540px){.bm-explainer-body{padding:16px}.bm-brief-notes{display:block}.bm-brief-notes article{margin-bottom:18px}.bm-explainer .bm-brief-title h2{font-size:22px}.bm-explainer .bm-brief-title p{font-size:14px}.bm-wide-panels{display:none!important}.bm-mobile-panels{display:block}.bm-mobile-panels svg+svg{border-top:1px solid #30473e}.bm-visual-toolbar{font-size:10px;gap:6px;padding:8px}.bm-route-controls button{width:52px}}
.bm-explainer-photo svg{max-height:none!important}
.bm-explainer-photo svg text{font-size:21px;paint-order:stroke;stroke:#081a14;stroke-width:3px;stroke-linejoin:round}
.bm-explainer-photo svg .panel-title{font-size:23px;font-weight:700}
.bm-explainer-photo svg .diagram-note{font-size:19px;fill:#b3cfc1}
.bm-explainer-photo svg .map-tag{font-size:20px;font-weight:700;fill:#ffe49b;stroke:none}
.bm-explainer-photo svg text{stroke-width:1px;font-weight:400}.bm-explainer-photo svg .panel-title{font-size:22px;font-weight:600}.bm-explainer-photo svg .map-tag{font-size:19px;font-weight:600}
@media(prefers-reduced-motion:reduce){.bm-route-controls button{transition:none}}
.bm-explainer-footer button { word-break: keep-all; overflow-wrap: normal; }
.bm-explainer .bm-brief-title,.bm-explainer .bm-brief-title h2,.bm-explainer .bm-brief-title p{white-space:normal;min-width:0;max-width:100%;width:auto;overflow-wrap:anywhere;text-overflow:clip}
.bm-explainer-body,.bm-brief-title,.bm-brief-grid,.bm-brief-notes{box-sizing:border-box;min-width:0}.bm-explainer{overflow-x:hidden}
.bm-plane-origin path{fill:#10271c;fill-opacity:.4;stroke:#d6ecdf;stroke-width:2.2}
.bm-fire-control{border:1px solid #527564;border-radius:7px;background:#224634;color:#e6ffef;font:inherit;padding:6px 14px;min-width:96px;cursor:pointer}.bm-fire-control:hover{background:#315d45}.bm-fire-control:disabled{opacity:.6;cursor:default}
.bm-fire-status{display:block;min-height:18px;padding:8px 14px;color:#abc8b7;font-size:11px;background:#0d1b13}
@media(min-width:851px){.bm-brief-grid{min-height:420px}.bm-brief-visual{min-height:420px}.bm-explainer .bm-explainer-figure>svg{min-height:330px}}
@media(max-width:540px){.bm-mobile-ballistics section{padding:12px 0;border-bottom:1px solid #2c4436}.bm-mobile-ballistics h3{font-size:14px;margin:0 14px 6px;color:#e4f3e9}.bm-mobile-ballistics svg text{display:none}.bm-explainer .bm-mobile-ballistics svg{min-height:105px}.bm-mobile-ballistics section:last-child{border-bottom:0}}

.mortar-correction-help { margin-top:16px; padding:16px; border:1px solid #325346; border-radius:10px; background:#10221b; color:var(--text); }
.mortar-correction-help h4 { margin:0 0 6px; font-size:16px; }
.mortar-correction-help p { margin:0 0 12px; font-size:13px; color:var(--muted); line-height:1.6; }
.mortar-correction-actions { display:flex; gap:8px; flex-wrap:wrap; }
.mortar-correction-actions .btn { flex:1 1 100px; min-height:42px; }
.mortar-correction-actions .btn[aria-pressed="true"] { background:#245d47; border-color:var(--green); color:#8bffd0; }
.mortar-correction-links { display:flex; gap:8px 16px; flex-wrap:wrap; margin-top:12px; }
.mortar-correction-links button { border:0; padding:4px 0; background:none; color:#a0d9c0; font:inherit; font-size:12px; text-align:left; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.mortar-correction-help [data-correction-status] { margin:10px 0 0; color:#ffe49a; }
.mortar-correction-help [data-correction-status]:empty { display:none; }
.mortar-correction-links button[hidden] { display:none; }
.mortar-correction-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid #39795e; border-radius:8px; background:#142d22; margin-bottom:10px; }
.mortar-correction-bar strong { display:block; font-size:14px; color:#8bffd0; }
.mortar-correction-bar span { display:block; margin-top:4px; color:var(--muted); font-size:12px; line-height:1.5; }
.mortar-correction-bar .btn { flex-shrink:0; min-height:42px; }
.mortar-result-state { padding:9px 10px; margin-top:10px; border-radius:6px; background:#302a15; color:#ffe49a; font-size:13px; line-height:1.6; }
body.mortar-result-stale #resultBox .kv { opacity:.5; }
body.mortar-correction-active .manual-marker.selected-correction { outline:3px solid #fff; outline-offset:5px; }
.mortar-mobile-correction { display:none; }
.mortar-correction-help button:focus-visible, .mortar-correction-bar button:focus-visible { outline:2px solid #8bffd0; outline-offset:3px; }
[hidden].mortar-correction-bar, [hidden].mortar-mobile-correction { display:none!important; }
@media(max-width:980px) {
  .mode-mortar.has-analysis-image .stage > .viewer { min-height:380px; }
  .mortar-mobile-correction:not([hidden]) { display:block; margin-bottom:10px; }
  .mortar-mobile-correction .mortar-correction-help { margin-top:0; padding:12px; }
  .mortar-mobile-correction h4 { font-size:14px; }
  .mortar-mobile-correction p { margin-bottom:8px; }
  .mortar-correction-bar { align-items:flex-start; gap:8px; padding:10px; }
  .mortar-correction-bar strong { font-size:13px; }}
.mode-mortar .stage { display:flex; flex-direction:column; }
.mode-mortar .stage > :not(.viewer) { flex:0 0 auto; }
.mode-mortar .stage > .viewer { flex:1 1 auto; }
.mortar-map-readout { position:absolute; z-index:6; display:flex; flex-direction:column; align-items:center; gap:3px; width:max-content; max-width:calc(100% - 16px); cursor:default; }
.mortar-map-readout[hidden], .mortar-map-menu[hidden] { display:none!important; }
.mortar-map-distance { border:1px solid #4ba57c; border-radius:18px; background:rgba(6,22,16,.94); color:#8bffd0; padding:4px 10px; font-size:15px; line-height:1.3; box-shadow:0 2px 8px #0007; white-space:nowrap; }
.mortar-map-readout.is-stale .mortar-map-distance { border-color:#ac914d; color:#ffe49a; }
.mortar-map-edit-link { border:1px solid #385747; border-radius:5px; background:rgba(7,18,13,.91); color:#c3e8d5; padding:4px 7px; min-height:28px; font:inherit; font-size:11px; line-height:1.5; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.mortar-map-menu { display:flex; padding:5px; gap:5px; border:1px solid #39795e; border-radius:7px; background:#0c1c15; box-shadow:0 3px 12px #0007; }
.mortar-map-menu button { border:1px solid #3a5c4a; border-radius:5px; background:#142b20; color:#d6f4e5; padding:6px 12px; min-height:36px; font:inherit; font-size:12px; cursor:pointer; }
.mortar-map-menu button[aria-pressed="true"] { background:#245d47; border-color:#8bffd0; }
.mortar-map-readout button:focus-visible { outline:2px solid #8bffd0; outline-offset:2px; }
@media(pointer:coarse) { .mortar-map-edit-link { min-height:36px; } .mortar-map-menu button { min-height:44px; }}

/* Scoped result UI only. Wheel events and map transforms remain in each tool. */
body.bm-result-ui .toolbar { min-width:0; max-width:100%; flex-wrap:wrap; gap:8px 12px; }
body.bm-result-ui .stage { display:flex; flex-direction:column; min-width:0; }
body.bm-result-ui .stage>:not(.viewer) { flex:0 0 auto; }
body.bm-result-ui .stage>.viewer { flex:1 1 auto; min-height:0; }
body.bm-result-ui .tools-left { min-width:0; flex:1 1 350px; flex-wrap:wrap; max-width:100%; }
body.bm-result-ui .tools-right { min-width:0; flex:1 1 270px; max-width:100%; flex-wrap:wrap; justify-content:flex-end; }
body.bm-result-ui .tools-right .hint { flex:1 1 100%; overflow-wrap:anywhere; }
body.bm-result-ui :is(.mode-toggle,.manual-map-controls,.view-toggle,.image-actions,.toolbar .mode-panel.active) { min-width:0; max-width:100%; flex-wrap:wrap; }
body.bm-result-ui .toolbar :is(button,summary,select) { max-width:100%; }
body.bm-result-ui .toolbar .mode-toggle { flex-wrap:nowrap; flex:0 1 230px; }
body.bm-result-ui .toolbar .mode-toggle .btn { min-width:0; white-space:nowrap; }
.bm-result-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:7px; min-width:0; max-width:100%; }
.bm-result-actions>.btn { white-space:normal; min-height:38px; font-size:12px; }
.bm-result-actions [hidden],.bm-result-feedback[hidden],.bm-result-toast[hidden] { display:none!important; }
.bm-result-more { position:relative; }
.bm-result-more>summary { min-height:38px; display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #3a5145; border-radius:5px; color:#d4e7db; cursor:pointer; font-size:12px; list-style:none; }
.bm-result-more>summary::-webkit-details-marker { display:none; }
.bm-result-more>summary::after { content:'⌄'; font-size:14px; }
.bm-result-more[open]>summary::after { transform:rotate(180deg); }
.bm-result-more-panel { position:absolute; right:0; top:calc(100% + 5px); z-index:24; width:260px; max-width:calc(100vw - 24px); padding:10px; border:1px solid #3a5145; border-radius:6px; background:#101c15; box-shadow:0 8px 24px #0008; }
body.bm-result-ui .bm-result-more-panel :is(.image-actions,.view-toggle) { display:flex; flex-wrap:wrap; gap:7px; width:100%; border:0; }
body.bm-result-ui .bm-result-more-panel .hidden { display:none!important; }
body.bm-result-ui .bm-result-more-panel .btn { flex:1 1 110px; min-height:40px; font-size:12px; }
body.bm-result-ui .bm-result-more-panel .view-toggle { margin-top:7px; }
body.bm-result-ui .mobile-result-summary { min-width:0; max-width:100%; flex-wrap:wrap; gap:8px 12px; }
body.bm-result-ui .mobile-result-summary>div { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; }
body.bm-result-ui .mobile-result-summary>a { flex:0 0 auto; margin-left:auto; white-space:normal; }
body.bm-result-ui .mobile-result-summary>strong { flex:0 0 auto; }
body.bm-result-ui .grid-tune-panel { max-width:calc(100% - 16px); right:8px; }
body.bm-result-ui .toolbar .tool-row { flex-wrap:wrap; min-width:0; }
body.bm-result-ui .hud { max-width:calc(100% - 16px); gap:6px; flex-wrap:wrap; }
body.bm-result-ui .hud .pill { max-width:100%; overflow-wrap:anywhere; white-space:normal; }
body.bm-result-ui #loadingOverlay,body.bm-result-ui #analysisOverlay { display:none!important; }
.bm-result-feedback { position:fixed; z-index:60; display:grid; place-items:center; padding:12px; box-sizing:border-box; background:rgba(4,12,8,.75); overflow:auto; }
.bm-result-feedback-card { width:min(430px,100%); max-height:100%; overflow:auto; padding:24px; box-sizing:border-box; border:1px solid #3d6952; border-radius:8px; background:#101e16; color:#e7f2eb; box-shadow:0 8px 32px #0007; text-align:center; }
.bm-result-feedback-card>strong { display:block; font-size:18px; line-height:1.5; }
.bm-result-feedback-card>p { margin:9px 0 14px; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.bm-result-feedback-card>small { display:block; min-height:20px; color:#a3bdad; font-size:12px; }
.bm-feedback-spinner,.bm-action-progress::before { display:inline-block; width:25px; height:25px; margin-bottom:12px; border:3px solid #345b46; border-top-color:#61e99f; border-radius:50%; animation:bm-result-spin .85s linear infinite; }
.bm-action-progress { display:inline-flex; align-items:center; gap:5px; margin-left:6px; font-size:11px; }
.bm-action-progress::before { content:''; width:12px; height:12px; margin:0; border-width:2px; }
.bm-result-sequence { display:flex; justify-content:center; flex-wrap:wrap; gap:5px 14px; padding:0; margin:12px 0; color:#a3bdad; font-size:11px; list-style:none; }
.bm-result-sequence>li:not(:last-child)::after { content:'›'; padding-left:10px; }
.bm-result-feedback.is-error .bm-feedback-spinner,.bm-result-feedback.is-error .bm-result-sequence { display:none; }
.bm-result-error-actions { display:flex; justify-content:center; gap:8px; }
.bm-result-feedback.is-error { background:rgba(9,12,6,.72); }
.bm-result-feedback.is-error .bm-result-feedback-card { border-color:#997f45; }
.bm-result-toast { position:fixed; z-index:100; bottom:18px; left:50%; transform:translateX(-50%); max-width:calc(100vw - 28px); box-sizing:border-box; padding:11px 17px; border:1px solid #476853; border-radius:7px; background:#17291e; color:#e6f4eb; font-size:14px; line-height:1.5; box-shadow:0 6px 24px #0009; }
.bm-result-details { margin-top:12px; padding:10px 0; border-top:1px solid #304438; color:#b8cfc0; font-size:13px; line-height:1.7; }
.bm-result-details summary { cursor:pointer; color:#d9ecdf; min-height:36px; display:flex; align-items:center; }
.bm-result-details summary::after { content:'⌄'; margin-left:8px; }
body.bm-result-ui .bm-result-details #readout { margin:8px 0; overflow-wrap:anywhere; }
body.bm-result-ui #zoneBasicReadout { margin:8px 0; color:#bad5c6; font-size:13px; }
@keyframes bm-result-spin { to { transform:rotate(360deg); } }
@media(max-width:1100px) {
  body.bm-result-ui .layout { grid-template-columns:minmax(0,1fr); height:auto; overflow:visible; }
  body.bm-result-ui .stage { min-height:0; height:auto; overflow:visible; }
  body.bm-result-ui.has-analysis-image .stage>.viewer { height:clamp(320px,calc(100dvh - 260px),650px); min-height:320px; flex:none; overflow:hidden; }
  body.bm-result-ui .layout>aside { height:auto; max-height:none; overflow:visible; }
  body.bm-result-ui .tools-left { width:auto; flex:1 1 240px; }
  body.bm-result-ui .tools-right { width:auto; flex:1 1 270px; }
  body.bm-result-ui.mode-zone { grid-template-columns:minmax(0,1fr); }
  body.bm-result-ui.mode-zone.has-analysis-image main,
  body.bm-result-ui.mode-zone[data-input-mode="manual"] main { height:min(650px,calc(100dvh - 230px),100vw); min-height:330px; overflow:hidden; }
  body.bm-result-ui.mode-zone .toolbar { width:100%; box-sizing:border-box; }
  body.bm-result-ui.mode-zone .toolbar .mode-tabs { width:auto; flex:1 1 230px; }
  body.bm-result-ui.mode-zone .bm-result-actions { flex:1 1 280px; }
  body.bm-result-ui .mortar-mobile-correction { display:none!important; }}
@media(max-width:600px) {
  body.bm-result-ui .toolbar { padding:8px 10px; gap:6px; }
  body.bm-result-ui .tools-left,body.bm-result-ui .tools-right { flex-basis:100%; width:100%; }
  body.bm-result-ui .toolbar .mode-toggle { flex:1 1 100%; }
  body.bm-result-ui .tools-right .hint { display:none; }
  .bm-result-actions { width:100%; justify-content:flex-start; gap:6px; }
  .bm-result-actions>.btn { flex:1 1 100px; padding:8px; }
  .bm-result-more>summary { padding:8px 10px; }
  .bm-result-more-panel { right:0; }
  body.bm-result-ui.has-analysis-image .stage>.viewer { height:clamp(320px,calc(100dvh - 285px),540px); min-height:320px; }
  body.bm-result-ui.mode-zone .toolbar .mode-tabs { flex:1 1 100%; width:100%; }
  body.bm-result-ui.mode-zone.has-analysis-image main,
  body.bm-result-ui.mode-zone[data-input-mode="manual"] main { height:min(560px,calc(100dvh - 240px),100vw); min-height:320px; }
  .bm-result-feedback-card { padding:20px 15px; }}
@media(prefers-reduced-motion:reduce) { .bm-feedback-spinner,.bm-action-progress::before { animation-duration:1.8s; }}