:root {
  color-scheme: light;
  --surface: #f4f6f5;
  --paper: #ffffff;
  --ink: #1d2927;
  --muted: #687875;
  --line: #dfe6e4;
  --teal: #176f67;
  --high: #a9443b;
  --high-soft: #f9e9e7;
  --low: #347550;
  --low-soft: #e6f1e9;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

button {
  color: inherit;
  font: inherit;
}

.app-shell {
  width: min(1160px, 100% - 64px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 20px;
}

.topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #90b5ad;
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  display: block;
  border: 1px solid var(--teal);
  border-radius: 50%;
  content: "";
}

.brand-mark::before {
  width: 21px;
  height: 21px;
}

.brand-mark::after {
  width: 8px;
  height: 8px;
  background: #cce1db;
}

.brand-mark span {
  width: 3px;
  height: 3px;
  border: 0;
  background: var(--teal);
}

.brand-name {
  font-size: 15px;
  font-weight: 650;
}

.brand-subtitle {
  color: #75837f;
  font-size: 11px;
}

.preview-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a6f6a;
  font-size: 12px;
}

.warning-mark {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #8ba49d;
  border-radius: 50%;
  color: #45655e;
  font-size: 11px;
  font-weight: 700;
}

.preview-toolbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.page-tabs,
.risk-tabs {
  display: flex;
  align-items: center;
}

.page-tabs {
  gap: 4px;
}

.page-tab {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #60716d;
  cursor: pointer;
  font-size: 13px;
}

.page-tab:hover {
  background: #e9eeec;
}

.page-tab.active {
  background: #dfece8;
  color: #165c54;
  font-weight: 650;
}

.risk-tabs {
  gap: 5px;
  padding: 4px;
  border: 1px solid #dbe3e0;
  border-radius: 9px;
  background: #eaf0ee;
}

.risk-tabs-label {
  padding: 0 7px;
  color: #687875;
  font-size: 11px;
}

.risk-tab {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #667570;
  cursor: pointer;
  font-size: 12px;
}

.risk-tab.selected-high {
  border-color: #ecc8c3;
  background: #fff8f7;
  color: var(--high);
  font-weight: 650;
}

.risk-tab.selected-low {
  border-color: #c3ddca;
  background: #f6fcf7;
  color: var(--low);
  font-weight: 650;
}

.stage {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 410px minmax(230px, 1fr);
  align-items: center;
  gap: 38px;
  min-height: calc(100vh - 165px);
  padding: 24px 0 16px;
}

.stage-copy {
  align-self: center;
  max-width: 300px;
  padding-bottom: 28px;
}

.stage-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #59726d;
  font-size: 12px;
  font-weight: 650;
}

.kicker-line {
  width: 18px;
  height: 2px;
  background: var(--teal);
}

.stage-copy h1 {
  margin: 18px 0 8px;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.25;
}

.stage-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.preview-state {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.state-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #354743;
  font-size: 13px;
  font-weight: 600;
}

.state-dot,
.caption-dot,
.footer-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #71978e;
}

.state-description {
  margin: 9px 0 0 17px;
  color: #71807d;
  font-size: 12px;
}

.preview-boundary {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 31px;
}

.boundary-rule {
  width: 3px;
  height: 42px;
  flex: 0 0 3px;
  background: #8caea5;
}

.preview-boundary p {
  margin: 0;
  color: #778581;
  font-size: 11px;
  line-height: 1.7;
}

.source-link {
  display: inline-block;
  margin: 16px 0 0 14px;
  color: #176f67;
  font-size: 11px;
  text-decoration: none;
}

.device-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: #657773;
  font-size: 11px;
}

.caption-dot {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
  background: #7c9b93;
}

.device-frame {
  display: flex;
  width: 390px;
  height: min(780px, calc(100vh - 175px));
  min-height: 660px;
  flex-direction: column;
  overflow: hidden;
  border: 8px solid #26332f;
  border-radius: 35px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(31, 53, 47, 0.16), 0 3px 10px rgba(31, 53, 47, 0.1);
}

.status-bar {
  display: flex;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 0 19px;
  background: var(--surface);
  color: #1e2926;
  font-size: 10px;
  font-weight: 650;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.signal-icon {
  display: flex;
  height: 11px;
  align-items: flex-end;
  gap: 1px;
}

.signal-icon i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: #26332f;
}

.signal-icon i:nth-child(1) { height: 4px; }
.signal-icon i:nth-child(2) { height: 6px; }
.signal-icon i:nth-child(3) { height: 8px; }
.signal-icon i:nth-child(4) { height: 10px; }

.wifi-icon {
  width: 12px;
  height: 9px;
  border-top: 2px solid #26332f;
  border-radius: 50%;
  transform: rotate(-8deg);
}

.battery-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 8px;
  border: 1px solid #26332f;
  border-radius: 2px;
}

.battery-icon::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 3px;
  background: #26332f;
  content: "";
}

.battery-icon i {
  display: block;
  width: 10px;
  height: 4px;
  margin: 1px;
  background: #26332f;
}

.mini-nav {
  display: flex;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid #e6ebe9;
  background: var(--surface);
}

.mini-back {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mini-back span {
  width: 9px;
  height: 9px;
  border-bottom: 1.5px solid #344641;
  border-left: 1.5px solid #344641;
  transform: rotate(45deg);
}

.mini-nav-title {
  overflow: hidden;
  color: #263631;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-menu {
  display: flex;
  width: 48px;
  height: 25px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #cbd4d1;
  border-radius: 14px;
}

.mini-menu i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #5b6c67;
}

.mini-screen {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  scrollbar-width: thin;
}

.mini-page {
  min-height: 100%;
  padding: 20px 18px 34px;
  color: var(--ink);
  font-size: 14px;
}

.mini-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #58706c;
  font-size: 11px;
  font-weight: 600;
}

.mini-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1c8176;
}

.mini-title {
  margin-top: 9px;
  color: #172724;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.25;
}

.mini-subtitle {
  margin-top: 6px;
  color: #687875;
  font-size: 13px;
  line-height: 1.55;
}

.mini-section-heading,
.mini-preview-heading,
.mini-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-section-heading {
  margin-top: 23px;
}

.mini-section-label {
  color: #263b37;
  font-size: 13px;
  font-weight: 600;
}

.mini-meta {
  color: #7b8986;
  font-size: 11px;
}

.mini-sample-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}

.mini-sample-choice {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 7px;
  border: 1px solid #d3ddda;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.mini-sample-choice.selected {
  border-color: #43877d;
  background: #f1f8f6;
}

.mini-sample-image {
  display: block;
  width: 100%;
  height: 107px;
  border-radius: 5px;
  background: #e8edeb;
  object-fit: contain;
}

.mini-sample-caption {
  margin-top: 4px;
  color: #354541;
  font-size: 12px;
}

.mini-sample-button {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  border: 1px solid #cbd8d4;
  border-radius: 5px;
  color: #28514b;
  font-size: 11px;
  font-weight: 600;
}

.mini-demo-note {
  margin-top: 7px;
  color: #74827e;
  font-size: 11px;
}

.mini-capture-choices {
  margin-top: 7px;
}

.mini-empty-preview {
  display: grid;
  min-height: 88px;
  margin: 8px 0;
  place-items: center;
  border: 1px dashed #cbd6d2;
  border-radius: 6px;
  background: #eef2f0;
  color: #788682;
  font-size: 11px;
  text-align: center;
}

.mini-note {
  margin-top: 2px;
  color: #81908c;
  font-size: 10px;
}

.mini-primary,
.mini-secondary,
.mini-risk-action,
.mini-risk-switch {
  width: 100%;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
}

.mini-primary {
  min-height: 50px;
  margin-top: 17px;
  background: #176f67;
  color: #ffffff;
  font-size: 15px;
}

.mini-preview-section {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #e0e6e4;
}

.mini-preview-heading {
  color: #263b37;
  font-size: 13px;
  font-weight: 600;
}

.mini-preview-actions,
.mini-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.mini-risk-action {
  min-height: 40px;
  background: #fae9e7;
  color: #a13f37;
  font-size: 12px;
}

.mini-risk-action.low {
  background: #e5f1e9;
  color: #31734c;
}

.mini-step-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 19px;
  color: #8a9794;
  font-size: 10px;
  white-space: nowrap;
}

.mini-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-step.active {
  color: #176f67;
  font-weight: 600;
}

.mini-step-number {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid #c4d0cd;
  border-radius: 50%;
  font-size: 9px;
}

.mini-step.active .mini-step-number {
  border-color: #176f67;
  background: #176f67;
  color: white;
}

.mini-step-line {
  width: 14px;
  height: 1px;
  flex: 0 0 14px;
  background: #d7dfdd;
}

.mini-source-list {
  margin-top: 23px;
  border-top: 1px solid #dfe6e4;
}

.mini-source-option {
  display: flex;
  width: 100%;
  min-height: 59px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #dfe6e4;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mini-source-option:hover { background: #eaf2ee; }
.mini-source-option:focus-visible,
.mini-real-roi:focus-visible { outline: 2px solid #176f67; outline-offset: 3px; }
.risk-tab:disabled { cursor: default; opacity: 0.4; }
.mini-photo-message {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #d1dfd9;
  border-radius: 6px;
  background: #eaf3ef;
  color: #385d53;
  font-size: 11px;
  line-height: 1.6;
}
.mini-photo-message[hidden] { display: none; }
.mini-roi-instruction {
  margin-top: 9px;
  color: #657a73;
  font-size: 11px;
}
.mini-roi-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}
.mini-real-frame .mini-confirm-image { image-orientation: from-image; user-select: none; }
.mini-roi.mini-real-roi {
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border: 2px solid #13776a;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 999px rgba(20, 40, 33, 0.22);
  cursor: move;
  touch-action: none;
  user-select: none;
}
.mini-roi-handle {
  position: absolute;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: none;
}
.mini-roi-handle::after {
  position: absolute;
  inset: 6px;
  border: 1px solid #13776a;
  border-radius: 2px;
  background: white;
  content: "";
}
.mini-roi-handle.nw { top: -12px; left: -12px; cursor: nwse-resize; }
.mini-roi-handle.ne { top: -12px; right: -12px; cursor: nesw-resize; }
.mini-roi-handle.sw { bottom: -12px; left: -12px; cursor: nesw-resize; }
.mini-roi-handle.se { bottom: -12px; right: -12px; cursor: nwse-resize; }

.mini-source-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border: 1px solid #afbfba;
  border-radius: 7px;
  background: #edf2f0;
  color: #54706a;
  font-size: 15px;
}

.mini-source-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-left: 11px;
}

.mini-source-title {
  color: #253833;
  font-size: 14px;
  font-weight: 600;
}

.mini-source-status {
  margin-top: 1px;
  color: #7b8986;
  font-size: 11px;
}

.mini-source-arrow {
  padding-right: 3px;
  color: #9aa7a3;
  font-size: 21px;
}

.mini-capture-note,
.mini-confirm-note {
  margin-top: 11px;
  color: #687875;
  font-size: 11px;
}

.mini-capture-preview {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #dfe6e4;
}

.mini-capture-image {
  display: block;
  width: 100%;
  height: 184px;
  margin: 8px 0 10px;
  border-radius: 6px;
  background: #e8edeb;
  object-fit: contain;
}

.mini-secondary {
  min-height: 45px;
  border: 1px solid #c9d5d2;
  background: #ffffff;
  color: #28514b;
  font-size: 13px;
}

.mini-secondary:disabled,
.mini-primary:disabled,
.mini-debug-button:disabled {
  background: #b8c5c1;
  color: #f5f7f6;
  cursor: default;
}

.mini-capture-note {
  margin-top: 8px;
}

.mini-photo-frame {
  position: relative;
  display: flex;
  height: 295px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 13px;
  border-radius: 6px;
  background: #e8edeb;
}

.mini-confirm-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-roi {
  position: absolute;
  top: 39%;
  left: 30%;
  width: 40%;
  height: 25%;
  border: 1.5px dashed #176f67;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-roi-label,
.mini-photo-source {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(24, 42, 38, 0.78);
  color: white;
  font-size: 10px;
}

.mini-image-caption {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: #41534f;
  font-size: 12px;
}

.mini-image-caption .caption-dot {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  margin-right: 6px;
  background: #d8dedb;
}

.mini-image-caption .mini-meta {
  margin-left: auto;
}

.mini-confirm-note {
  color: #788682;
}

.mini-processing,
.mini-error {
  display: flex;
  min-height: 58px;
  align-items: center;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 6px;
}

.mini-processing {
  background: #e8f0ed;
  color: #276e63;
}

.mini-spinner {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  margin-right: 10px;
  border: 2px solid #a7c4bc;
  border-top-color: #176f67;
  border-radius: 50%;
  animation: preview-spin 0.9s linear infinite;
}

.mini-processing strong,
.mini-processing small,
.mini-error strong,
.mini-error small {
  display: block;
}

.mini-processing strong,
.mini-error strong {
  font-size: 12px;
}

.mini-processing small,
.mini-error small {
  margin-top: 2px;
  color: #6d7c78;
  font-size: 10px;
}

@keyframes preview-spin {
  to { transform: rotate(360deg); }
}

.mini-error {
  border: 1px solid #efcfcb;
  background: #fff4f2;
}

.mini-error > span:first-child {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  margin-right: 10px;
  place-items: center;
  border: 1px solid #ac554d;
  border-radius: 50%;
  color: #a9443b;
  font-weight: 700;
}

.mini-debug-button {
  width: 100%;
  min-height: 33px;
  margin-top: 7px;
  border: 1px dashed #c7b7a9;
  border-radius: 5px;
  background: transparent;
  color: #705c4f;
  cursor: pointer;
  font-size: 10px;
}

.mini-debug-note {
  margin-top: 4px;
  color: #7b6255;
  font-size: 10px;
}

.mini-result-actions {
  margin-top: 14px;
}

.mini-risk-action.solid-high,
.mini-risk-action.solid-low {
  min-height: 46px;
  background: #a9443b;
  color: #ffffff;
}

.mini-risk-action.solid-low {
  background: #347550;
}

.mini-result-status {
  display: flex;
  min-height: 103px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 13px;
  border-radius: 7px;
}

.mini-result-status.high { background: #f9e9e7; color: #973d36; }
.mini-result-status.low { background: #e6f1e9; color: #2f704a; }

.mini-result-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 600;
}

.mini-result-copy {
  min-width: 0;
  flex: 1;
  margin-left: 11px;
}

.mini-result-label {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.mini-result-caption {
  margin-top: 4px;
  color: #5f6d69;
  font-size: 11px;
}

.mini-result-mark {
  width: 3px;
  height: 47px;
  flex: 0 0 3px;
  margin-left: 6px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.65;
}

.mini-result-explainer {
  margin-top: 17px;
}

.mini-result-photo-wrap {
  position: relative;
  display: flex;
  height: 230px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 11px;
  border-radius: 6px;
  background: #e8edeb;
}

.mini-result-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-result-divider {
  height: 1px;
  margin: 16px 0 11px;
  background: #dfe6e4;
}

.mini-risk-switch {
  min-height: 44px;
  font-size: 13px;
}

.mini-risk-switch.high { background: #a9443b; color: white; }
.mini-risk-switch.low { background: #347550; color: white; }

.mini-text-button {
  display: block;
  width: 100%;
  min-height: 36px;
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.mini-sampling-debug {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 10px;
  border-radius: 6px;
  background: #edf3ef;
  color: #36524b;
  font-size: 10px;
  line-height: 1.5;
}

.page-footer {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #72817d;
  font-size: 10px;
  text-align: center;
}

.footer-dot {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  background: #8ca69e;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(680px, 100% - 36px);
  }

  .stage {
    grid-template-columns: minmax(185px, 0.75fr) 390px;
    gap: 18px;
  }

  .stage-copy {
    max-width: 235px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: 100%;
    min-height: 100dvh;
    padding-bottom: 0;
  }

  .topbar {
    min-height: 58px;
    padding: 0 15px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .brand-mark::before {
    width: 18px;
    height: 18px;
  }

  .brand-name {
    font-size: 13px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .preview-warning {
    max-width: 145px;
    gap: 5px;
    font-size: 9px;
    line-height: 1.35;
    text-align: right;
  }

  .warning-mark {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    font-size: 9px;
  }

  .preview-toolbar {
    min-height: 94px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
  }

  .page-tabs {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }

  .page-tab {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .risk-tabs {
    align-self: flex-end;
  }

  .risk-tab {
    min-height: 25px;
    padding: 0 10px;
    font-size: 11px;
  }

  .risk-tabs-label {
    font-size: 10px;
  }

  .stage {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .stage-copy,
  .page-footer,
  .device-caption {
    display: none;
  }

  .device-area {
    display: block;
  }

  .device-frame {
    width: 100%;
    height: calc(100dvh - 152px);
    min-height: 500px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mini-screen {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 360px) {
  .preview-warning {
    max-width: 125px;
  }

  .page-tab {
    padding: 0 7px;
    font-size: 10px;
  }

  .mini-page {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* B05 actual-photo outcome keeps the exact analyzed region visible. */
.mini-result-status.unable { color: #786246; background: #f3eee7; border-color: #e0d4c3; }
.mini-result-roi { position: absolute; border: 2px solid #eaf9f4; box-shadow: 0 0 0 1px #287e69, 0 0 0 999px #152c2a30; pointer-events: none; }
.mini-result-roi::after { content: "分析选区"; position: absolute; left: -2px; top: -20px; padding: 2px 5px; color: white; background: #287e69; font-size: 9px; white-space: nowrap; }
