@charset "UTF-8";

/* workspace-source:src/ui/styles/tokens.css */
:root {
  --color-bg-default: #f6f6f6;
  --color-surface-default: #ffffff;
  --color-surface-muted: #f1f3f4;
  --color-selection-border: #23a3f7;
  --color-selection-fill: #91d1fb26;
  --color-text-primary: #202124;
  --color-text-secondary: #6b7074;
  --color-text-disabled: #9aa0a6;
  --color-action-primary: #008ccb;
  --color-action-pressed: #0076c8;
  --color-action-soft: #eaf5fc;
  --color-nav-selected: #ebf4fd;
  --color-border-subtle: #e5e8ea;
  --color-action-disabled: #e5e8ea;
  --color-success: #248467;
  --color-success-soft: #edf8f2;
  --color-danger: #a8483b;
  --color-danger-soft: #fff3f0;
  --color-danger-border: #efd6cf;
  --color-demo: #806a38;
  --color-demo-soft: #f7f2e6;
  --reason-too-dark-fg: #a56600;
  --reason-too-dark-bg: #fff3e3;
  --reason-too-blurry-fg: var(--reason-too-dark-fg);
  --reason-too-blurry-bg: var(--reason-too-dark-bg);
  --reason-view-blocked-fg: var(--color-danger);
  --reason-view-blocked-bg: var(--color-danger-soft);
  --reason-camera-moved-fg: #6e56b5;
  --reason-camera-moved-bg: #f2eeff;
  --reason-image-unavailable-fg: #5f6368;
  --reason-image-unavailable-bg: #f1f3f4;
  --reason-no-reference-fg: #56717f;
  --reason-no-reference-bg: #eef4f7;
  --dark-background: #0f1113;
  --dark-surface: #1b1d1f;
  --dark-border: #303336;
  --dark-text: #ffffff;
  --dark-text-secondary: #a3a8ad;
  --dark-action: #4da3ff;
  --dark-overlay-chip: #000000b8;
  --dark-outline: #ebeef0;
  --dark-danger: #ff8a80;
  --font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro",
    "Segoe UI",
    sans-serif;
  --font-caption: 11px;
  --font-small: 13px;
  --font-body: 14px;
  --font-label: 16px;
  --font-title: 17px;
  --font-heading: 22px;
  --weight-regular: 400;
  --weight-medium: 510;
  --weight-semibold: 590;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius-card: 12px;
  --radius-control: 10px;
  --radius-button: 8px;
  --shadow-card: 0 2px 8px #0000000a;
  --shadow-menu: 0 8px 24px #2021241f;
  --page-gutter: 20px;
  --navigation-height: 72px;
  --ink: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: var(--color-border-subtle);
  --paper: var(--color-surface-default);
  --bg: var(--color-bg-default);
  --blue: var(--color-action-primary);
  --blue-dark: var(--color-action-pressed);
  --blue-light: var(--color-action-soft);
  --green: var(--color-success);
  --green-light: var(--color-success-soft);
  --radius: var(--radius-card);
  --shadow: var(--shadow-card);
  font-family: var(--font-family);
  font-size: var(--font-body);
  line-height: 1.4;
  font-synthesis: none;
  color: var(--color-text-primary);
  background: var(--color-bg-default);
}

/* workspace-source:src/ui/styles/base.css */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-action-primary) 45%, transparent);
  outline-offset: 4px;
}
input,
select {
  min-width: 0;
}
button:disabled:hover {
  transform: none;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: var(--weight-semibold);
}
button .icon,
a .icon {
  flex-shrink: 0;
}
button {
  border: 0;
  background: none;
}
a {
  text-decoration: none;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}
.icon.tiny {
  width: 14px;
  height: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  background: var(--ink);
  color: white;
  padding: 10px 20px;
  border-radius: 9px;
  z-index: 100;
}
.skip-link:focus {
  top: 15px;
}

/* workspace-source:src/ui/styles/typography.css */
h1,
h2,
h3,
h4 {
  font-weight: var(--weight-semibold);
}
h1 {
  font-size: var(--font-heading);
  line-height: 26px;
}
h2 {
  font-size: var(--font-title);
  line-height: 22px;
}
h3 {
  font-size: var(--font-label);
  line-height: 20px;
}
p {
  line-height: 1.4;
}
small,
time {
  font-size: var(--font-small);
}
.eyebrow,
.section-label {
  display: block;
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}
.truth-note,
.fine-print,
.policy-note {
  font-size: var(--font-caption);
  line-height: 16px;
  color: var(--color-text-secondary);
}
input,
select,
textarea {
  color: var(--color-text-primary);
  font: inherit;
}

/* workspace-source:src/ui/styles/layout.css */
.app-shell {
  position: relative;
  margin-left: 224px;
  min-height: var(--app-viewport-height, 100dvh);
}
main#main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 40px 40px;
  min-height: calc(var(--app-viewport-height, 100dvh) - 72px);
}
main#main:focus {
  outline: none;
}
.screen-header {
  position: relative;
  display: flex;
  gap: var(--space-3);
  align-items: center;
  min-height: 48px;
  margin-bottom: var(--space-6);
}
.screen-header-centered {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 4px;
}
.screen-heading {
  min-width: 0;
}
.screen-heading h1 {
  font-size: var(--font-title);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.screen-heading p {
  margin-top: 2px;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 1.4;
}
.screen-header-centered .screen-heading {
  text-align: center;
}
.screen-icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.screen-icon-button > img,
.screen-icon-button > span {
  display: block;
}
.back-icon .navigation-button-surface > img {
  transform: scaleX(-1);
}
.navigation-menu {
  position: relative;
}
.navigation-menu > summary {
  list-style: none;
  border-radius: 50%;
}
.navigation-menu > summary::-webkit-details-marker {
  display: none;
}
.navigation-button-surface {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 71px;
  background: #fdfdfd;
  box-shadow: 0 0 10.2px rgb(45 48 55 / 10%);
}
.navigation-button-surface > img {
  position: absolute;
  inset: -1px;
  display: block;
}
.navigation-panel {
  position: absolute;
  z-index: 45;
  top: 48px;
  min-width: 220px;
  padding: 6px;
  border-radius: var(--radius-control);
  background: var(--color-surface-default);
  box-shadow: var(--shadow-menu);
  border: 1px solid var(--color-border-subtle);
}
.navigation-panel {
  left: 0;
}
.navigation-panel button,
.navigation-panel a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  text-align: left;
  font-size: var(--font-small);
  border-radius: var(--radius-button);
}
.navigation-panel .icon {
  width: 16px;
  height: 16px;
}
.navigation-panel button:hover,
.navigation-panel a:hover {
  background: var(--color-action-soft);
}
.bottom-navigation {
  display: none;
}
.runtime-context {
  position: absolute;
  top: 12px;
  right: 40px;
  left: 40px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  line-height: 18px;
  z-index: 32;
}
.runtime-context .badge {
  padding: 2px 8px;
  font-size: var(--font-caption);
  line-height: 18px;
}
.demo-tools {
  position: relative;
}
.editor-demo-control {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 60;
}
#app .editor-demo-control ~ main .spot-editor-footer {
  padding-bottom: max(76px, env(safe-area-inset-bottom));
}
.demo-tools > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  background: var(--color-surface-default);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  color: var(--color-action-primary);
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
  list-style: none;
}
.demo-tools > summary::-webkit-details-marker {
  display: none;
}
.demo-tools > summary > .icon {
  width: 16px;
  height: 16px;
}
.demo-tools-panel {
  position: absolute;
  inset: auto;
  right: 0;
  top: 40px;
  width: 320px;
  max-width: calc(var(--app-viewport-width, 100vw) - 32px);
  max-height: calc(var(--app-viewport-height, 100dvh) - 72px);
  margin: 0;
  padding: var(--space-3);
  overflow: hidden;
  background: var(--color-surface-default);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-menu);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: var(--space-2);
  text-align: left;
}
.demo-tools:not([open]) > .demo-tools-panel {
  display: none;
}
.demo-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.demo-control-header h2 {
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
}
.demo-control-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-secondary);
}
.demo-control-close:hover {
  background: var(--color-surface-muted);
}
.demo-control-jump {
  display: grid;
  gap: 4px;
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}
.demo-control-note {
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  line-height: 1.5;
}
.demo-control-jump select {
  width: 100%;
  min-height: 36px;
  font-size: var(--font-small);
}
.demo-control-screens {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
  scrollbar-width: thin;
}
.demo-control-group + .demo-control-group {
  margin-top: var(--space-3);
}
.demo-control-group h3 {
  padding: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
}
.demo-control-guide {
  margin: var(--space-2) 0 0;
  padding-left: 26px;
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  line-height: 1.6;
}
.demo-control-guide li + li {
  margin-top: var(--space-1);
}
.demo-control-more > .demo-control-note {
  padding: 0 var(--space-2);
}
.demo-control-more {
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-2);
}
.demo-control-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  cursor: pointer;
  list-style: none;
}
.demo-control-more > summary::-webkit-details-marker {
  display: none;
}
.demo-control-more > summary .icon {
  width: 16px;
  height: 16px;
}
.demo-control-more[open] > summary .icon {
  transform: rotate(180deg);
}
.demo-control-more .demo-control-jump {
  padding: var(--space-2);
}
.demo-screen-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-button);
  color: var(--color-text-primary);
  font-size: var(--font-small);
  line-height: 1.4;
  text-align: left;
}
.demo-screen-button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.demo-screen-button > .icon {
  flex: none;
  width: 16px;
  height: 16px;
}
.demo-screen-button:hover,
.demo-screen-button.active {
  color: var(--color-action-primary);
  background: var(--color-action-soft);
}
.demo-screen-button.active {
  font-weight: var(--weight-semibold);
}
.demo-control-footer {
  display: grid;
  gap: var(--space-1);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-2);
}
.demo-control-footer .button {
  width: 100%;
}
.demo-control-footer small {
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  text-align: center;
}
@supports selector(:popover-open) {
  .demo-tools-panel[popover]:not(:popover-open) {
    display: none;
  }
  .demo-tools-panel:popover-open {
    position: fixed;
    top: calc(var(--app-frame-offset, 0px) + 48px);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  @media (min-width: 1100px) {
    .demo-tools-panel:popover-open {
      top: var(--app-frame-offset, 24px);
      left: calc(50% + var(--app-frame-width, 390px) / 2 + 24px);
      width: 280px;
      max-height: var(--app-viewport-height, calc(100dvh - 48px));
      transform: none;
    }
  }
}
.progress-strip {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  color: var(--color-action-primary);
  background: var(--color-action-soft);
  border-radius: var(--radius-control);
  font-size: var(--font-small);
}
.sidebar {
  position: fixed;
  width: 224px;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 16px;
  border-right: 1px solid var(--color-border-subtle);
  background: var(--color-surface-default);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--color-action-primary);
  color: #fff;
  border-radius: var(--radius-control);
}
.brand-mark .icon {
  width: 22px;
  height: 22px;
}
.brand-dot {
  color: var(--color-action-primary);
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  border-block: 1px solid var(--color-border-subtle);
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  background: var(--color-action-soft);
  color: var(--color-action-primary);
}
.workspace small {
  display: block;
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}
.workspace strong {
  display: block;
  font-size: var(--font-small);
  overflow-wrap: anywhere;
  max-width: 145px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  text-align: left;
  color: var(--color-text-secondary);
  font-size: var(--font-body);
}
.nav-item > .icon {
  width: 20px;
  height: 20px;
}
.nav-item.active {
  color: var(--color-action-pressed);
  background: var(--color-nav-selected);
  font-weight: var(--weight-semibold);
}
.nav-item:hover {
  background: var(--color-action-soft);
}
.nav-label {
  padding: 20px 12px 8px;
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}
.sidebar-bottom {
  margin-top: auto;
}
.sign-out-form {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
}
.quiet-note {
  padding: 14px 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
}
.quiet-note .icon {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 8px 0;
}
.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-action-soft);
  color: var(--color-action-primary);
}
.profile strong,
.profile small {
  display: block;
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}
.app-shell.editor-open {
  margin: 0;
}
.app-shell.editor-open main#main {
  padding: 0;
  max-width: none;
  min-height: var(--app-viewport-height, 100dvh);
}

/* workspace-source:src/ui/styles/components/controls.css */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-button);
  background: var(--color-surface-default);
  color: var(--color-text-primary);
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  line-height: 20px;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}
.button.primary {
  color: #fff;
  background: var(--color-action-primary);
  border-color: var(--color-action-primary);
}
.button.primary:not(:disabled):hover {
  background: var(--color-action-pressed);
  border-color: var(--color-action-pressed);
}
.button.secondary:not(:disabled):hover {
  background: var(--color-action-soft);
}
.button:disabled {
  background: var(--color-action-disabled);
  color: var(--color-text-disabled);
  border-color: transparent;
  opacity: 1;
}
.button .icon,
.text-button .icon {
  width: 16px;
  height: 16px;
}
.full-width {
  width: 100%;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-control);
  color: var(--color-text-secondary);
}
.icon-button:not(:disabled):hover {
  color: var(--color-action-primary);
  background: var(--color-action-soft);
}
.icon-button .icon {
  width: 20px;
  height: 20px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  color: var(--color-action-primary);
  font-size: var(--font-small);
  font-weight: var(--weight-medium);
}
.text-button:not(:disabled):hover {
  text-decoration: underline;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--color-action-primary);
}
.back-link .icon {
  width: 16px;
  height: 16px;
}
.menu-wrap {
  position: relative;
}
.popover {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 30;
  width: 220px;
  padding: var(--space-2);
  background: var(--color-surface-default);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-menu);
}
.popover button,
.popover a {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-button);
  text-align: left;
}
.popover button:hover,
.popover a:hover {
  background: var(--color-action-soft);
}
.popover .icon {
  width: 16px;
  height: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 8px;
  border-radius: var(--radius-card);
  font-size: var(--font-small);
  line-height: 16px;
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  background: var(--color-border-subtle);
}
.badge.demo {
  color: var(--color-demo);
  background: var(--color-demo-soft);
}
.badge.live {
  color: var(--color-success);
  background: var(--color-success-soft);
}
.badge.blue {
  color: var(--color-action-primary);
  background: var(--color-action-soft);
}
input,
select,
textarea {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-button);
  background: var(--color-surface-default);
  padding: 10px 12px;
  min-height: 44px;
}
input[type=checkbox],
input[type=radio] {
  min-height: 16px;
  accent-color: var(--color-action-primary);
}

/* workspace-source:src/ui/styles/components/camera-switcher.css */
.camera-switcher-group {
  min-width: 0;
}
.camera-switcher {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border-radius: var(--radius-button);
}
.camera-switcher-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: var(--space-2);
  pointer-events: none;
}
.camera-switcher-label > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.camera-switcher-label > img {
  flex: none;
  width: 16px;
  height: 16px;
}
.camera-switcher select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.camera-switcher:has(select:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--color-action-primary) 45%, transparent);
  outline-offset: 3px;
}
.camera-switcher-disabled > .camera-switcher-label > img {
  opacity: 0.4;
}
.camera-switcher-disabled select {
  cursor: default;
}
.camera-switcher-compact .camera-switcher-label {
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  font-weight: var(--weight-medium);
  line-height: 20px;
}
.camera-switcher-status {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 20px;
}
.camera-switcher-retry {
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  color: var(--color-action-primary);
  font-size: var(--font-small);
  text-decoration: underline;
}
.place-switcher .camera-switcher-label {
  gap: 0;
}
.place-switcher .camera-switcher-label > img {
  width: 24px;
  height: 24px;
}

/* workspace-source:src/ui/styles/components/notices.css */
.error-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-card);
  background: var(--color-danger-soft);
  color: var(--color-danger);
}
.error-banner > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.error-banner strong {
  font-size: var(--font-body);
  font-weight: var(--weight-semibold);
}
.error-banner p {
  margin-top: var(--space-1);
  font-size: var(--font-small);
  line-height: 18px;
}
.error-banner > button:not(.icon-button) {
  min-height: 44px;
  font-size: var(--font-small);
  text-decoration: underline;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-bg-default);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 18px;
  overflow-wrap: anywhere;
}
.notice .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
@container scena (max-width: 480px) {
  .error-banner {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .error-banner > div {
    flex-basis: calc(100% - 32px);
  }
}

/* workspace-source:src/ui/styles/components/footer.css */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 1260px;
  margin: auto;
  padding: var(--space-5) var(--page-gutter);
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  line-height: 16px;
}
.page-footer > span:first-child {
  color: var(--color-text-primary);
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.5px;
}
.page-footer > span:last-child {
  text-align: right;
}
@container scena (max-width: 700px) {
  .page-footer {
    flex-wrap: wrap;
  }
}

/* workspace-source:src/ui/styles/components/status.css */
#toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  z-index: 80;
  max-width: calc(100vw - 40px);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-control);
  background: var(--color-text-primary);
  color: var(--color-surface-default);
  box-shadow: var(--shadow-menu);
  font-size: var(--font-body);
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s, transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.boot-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  min-height: var(--app-viewport-height, 100dvh);
  padding: var(--space-6);
  text-align: center;
}
.boot-screen h1 {
  color: var(--color-text-primary);
  font-size: var(--font-heading);
  line-height: 26px;
  font-weight: var(--weight-semibold);
}
.boot-screen p {
  max-width: 450px;
  color: var(--color-text-secondary);
  font-size: var(--font-body);
  line-height: 20px;
}
.boot-mark {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: var(--radius-card);
  background: var(--color-text-primary);
  color: var(--color-surface-default);
  font-size: 25px;
  font-weight: var(--weight-semibold);
}
@container scena (max-width: 700px) {
  #toast {
    bottom: calc(var(--navigation-height) + var(--space-4) + env(safe-area-inset-bottom));
  }
}

/* workspace-source:src/ui/styles/components/dialogs.css */
dialog {
  max-width: calc(100% - 40px);
  max-height: calc(var(--app-viewport-height, 100dvh) - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  background: var(--color-surface-default);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-menu);
}
dialog::backdrop {
  background: #00000050;
}
dialog.sheet {
  width: 530px;
  margin: auto auto var(--space-5);
  padding: 0 var(--space-5) var(--space-6);
  animation: sheet-in 0.2s ease-out;
}
.sheet-handle {
  position: relative;
  width: 36px;
  height: 4px;
  margin: 10px auto var(--space-6);
  border-radius: 3px;
  background: var(--color-border-subtle);
  touch-action: none;
  cursor: grab;
}
.sheet-handle::after {
  content: "";
  position: absolute;
  inset: -14px -25px;
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
}
.sheet-heading h2 {
  font-size: var(--font-heading);
  line-height: 26px;
  font-weight: var(--weight-semibold);
}
.sheet-heading .eyebrow {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}
.sheet-body {
  padding-top: var(--space-6);
}
.investigation-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--color-action-soft);
  color: var(--color-action-primary);
}
.sheet-body > .section-label {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}
.sheet-body > h3 {
  margin-top: var(--space-2);
  font-size: var(--font-heading);
  line-height: 26px;
}
.sheet-body > h3 > span {
  font-size: var(--font-title);
  color: var(--color-text-secondary);
  font-weight: var(--weight-regular);
}
.sheet-body > p {
  margin-top: var(--space-4);
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 20px;
}
.sheet-body > .notice {
  margin: var(--space-6) 0 var(--space-4);
  font-size: var(--font-small);
  line-height: 18px;
}
.sheet-body .badge {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}
dialog .button {
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-body);
}
dialog .icon-button {
  min-width: 44px;
  min-height: 44px;
}
.confirm-dialog {
  width: 420px;
  padding: var(--space-6);
}
.dialog-content > .empty-icon {
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-card);
}
.dialog-content h2 {
  font-size: var(--font-heading);
  line-height: 26px;
}
.dialog-content p {
  margin-top: var(--space-3);
  font-size: var(--font-body);
  line-height: 20px;
  color: var(--color-text-secondary);
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
@container scena (max-width: 700px) {
  dialog.sheet {
    width: 100%;
    max-width: 100%;
    max-height: 85dvh;
    margin: auto 0 0;
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(30px);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* workspace-source:src/ui/styles/components/settings.css */
.settings-dialog {
  width: 530px;
  padding: var(--space-6);
  max-height: calc(var(--app-viewport-height, 100dvh) - 40px);
  overflow: auto;
}
.settings-dialog form {
  padding-top: var(--space-5);
}
.settings-dialog label {
  display: block;
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.settings-dialog input,
.settings-dialog select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface-default);
  color: var(--color-text-primary);
  font-size: var(--font-body);
}
.settings-field-row {
  display: grid;
  grid-template-columns: 0.75fr 1.5fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.settings-help {
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 18px;
}
.settings-window {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-action-soft);
}
.settings-window > .section-label {
  font-size: var(--font-caption);
  color: var(--color-text-secondary);
}
.settings-window strong {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.settings-window small {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
}
.settings-automatic {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
}
.settings-automatic h3 {
  margin: 0 0 var(--space-4);
  color: var(--color-text-primary);
  font-size: var(--font-title);
}
.settings-dialog .settings-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  margin-bottom: var(--space-3);
  cursor: pointer;
}
.settings-dialog .settings-toggle input {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  min-height: 21px;
  margin: 0;
  padding: 0;
  accent-color: var(--color-action-primary);
}
.settings-dialog select:disabled,
.settings-toggle:has(input:disabled) {
  color: var(--color-text-disabled);
  cursor: default;
}
.settings-automatic-status {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-action-soft);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 18px;
}
.settings-automatic-status dl,
.settings-automatic-status p {
  margin: 0;
}
.settings-automatic-status dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
}
.settings-automatic-status dd {
  margin: 0;
  font-weight: var(--weight-semibold);
}
.settings-automatic-status p,
.settings-automatic-status a {
  display: block;
  margin-top: var(--space-2);
  overflow-wrap: anywhere;
}
.settings-automatic-status a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-action-primary);
}
.settings-schedule-pending {
  color: var(--color-action-pressed);
}
.settings-error {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-control);
  background: var(--color-danger-soft);
  color: var(--color-danger);
  font-size: var(--font-small);
  line-height: 18px;
}
.settings-schedule-pending[hidden],
.settings-error[hidden] {
  display: none;
}
.settings-dialog .dialog-actions {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
}
@container scena (max-width: 700px) {
  .settings-dialog {
    max-width: calc(100% - 28px);
    max-height: calc(var(--app-viewport-height, 100dvh) - 32px);
    padding: var(--space-5);
  }
  .settings-dialog input,
  .settings-dialog select {
    font-size: var(--font-label);
  }
  .settings-field-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* workspace-source:src/ui/styles/components/photo.css */
.photo {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-default);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-source {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-2);
  padding: 3px var(--space-1);
  border-radius: var(--radius-button);
  background: var(--dark-overlay-chip);
  color: var(--dark-text);
  font-size: var(--font-caption);
  line-height: 16px;
  pointer-events: none;
}
.view-region {
  position: absolute;
  border: 1px solid var(--dark-outline);
  background: color-mix(in srgb, var(--color-action-primary) 7%, transparent);
  border-radius: 3px;
  pointer-events: none;
}
.view-region.changed {
  border: 2px solid var(--color-action-primary);
  background: color-mix(in srgb, var(--color-action-primary) 7%, transparent);
}
.photo-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: 100%;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
}
.photo-unavailable > .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.1;
}
.photo.image-failed {
  display: grid;
  place-items: center;
  min-height: 140px;
}
.photo.image-failed img {
  object-fit: contain;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
}

/* workspace-source:src/ui/styles/components/empty-state.css */
.empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-5);
  padding: 64px var(--space-6);
  border: 1px dashed var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
  text-align: center;
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--color-action-soft);
  color: var(--color-action-primary);
}
.empty-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.35;
}
.empty-panel h2 {
  color: var(--color-text-primary);
  font-size: var(--font-heading);
}
.empty-panel p {
  max-width: 390px;
  margin: var(--space-3) auto 0;
  color: var(--color-text-secondary);
  font-size: var(--font-body);
  line-height: 1.6;
}
.empty-panel > .button {
  margin-top: var(--space-6);
}
.loading-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 260px;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
}
.spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* workspace-source:src/ui/styles/pages/overview.css */
#app .overview-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
  color: var(--color-text-primary);
}
.home-asset {
  display: block;
  flex-shrink: 0;
}
#app .overview-page .home-summary h1,
#app .overview-page .home-clear-state h2 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  letter-spacing: 0;
}
#app .overview-page .home-summary p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 20px;
}
.home-results,
.home-similar-results {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.similar-disclosure {
  min-width: 0;
}
.similar-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 48px;
  padding: 12px 10px 12px 14px;
  border-radius: var(--radius-control);
  background: var(--color-surface-default);
  box-shadow: 0 2px 4px rgb(0 0 0 / 4%);
  color: var(--color-text-primary);
  font-size: var(--font-small);
  font-weight: var(--weight-regular);
  line-height: 18px;
  list-style: none;
  cursor: pointer;
}
.similar-disclosure > summary::-webkit-details-marker {
  display: none;
}
.similar-disclosure > summary:hover {
  background: var(--color-action-soft);
}
.similar-disclosure[open] > summary > img {
  transform: rotate(180deg);
}
.home-similar-results {
  margin-top: var(--space-3);
}
#app .overview-page .home-result-card,
#app .overview-page .home-unavailable-card {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
#app .overview-page .home-result-card {
  display: block;
}
#app .overview-page .home-result-card:hover,
#app .overview-page .home-unavailable-card:hover {
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
#app .overview-page .home-result-photo {
  width: 100%;
  height: 113px;
  aspect-ratio: auto;
  border-radius: 0;
}
.home-result-photo > img {
  position: absolute;
  inset: 0;
}
.home-result-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 12px 14px;
}
.home-result-copy,
.home-unavailable-copy {
  flex: 1;
  min-width: 0;
}
#app .overview-page .home-result-copy h3,
#app .overview-page .home-unavailable-copy h3 {
  margin: 0;
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
  line-height: 20px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
#app .overview-page .home-camera-name {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 16px;
  overflow-wrap: anywhere;
}
#app .overview-page .observation-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  color: var(--color-action-primary);
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  line-height: 18px;
  overflow-wrap: anywhere;
}
.home-result-copy > .badge {
  margin-top: 6px;
}
#app .overview-page .home-result-arrow {
  flex: 0 0 auto;
  margin-right: -4px;
}
#app .overview-page .home-unavailable-card {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 14px;
}
#app .overview-page .home-unavailable-card > .home-unavailable-copy {
  min-width: 0;
}
.home-unavailable-photo {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--radius-control);
}
#app .overview-page .home-unavailable-photo .photo {
  width: 100%;
  height: 64px;
  aspect-ratio: 1;
}
.home-unavailable-photo .photo-source,
.home-unavailable-photo .photo-unavailable {
  display: none;
}
.home-unavailable-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 40%);
}
.home-reason {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  max-width: 100%;
  margin-top: 6px;
  padding: 3px var(--space-2);
  border-radius: var(--radius-card);
  font-size: var(--font-small);
  font-weight: var(--weight-medium);
  line-height: 16px;
  overflow-wrap: anywhere;
}
.home-reason-dark {
  background: var(--reason-too-dark-bg);
  color: var(--reason-too-dark-fg);
}
.home-reason-blur {
  background: var(--reason-too-blurry-bg);
  color: var(--reason-too-blurry-fg);
}
.home-reason-blocked {
  background: var(--reason-view-blocked-bg);
  color: var(--reason-view-blocked-fg);
}
.home-reason-alignment {
  background: var(--reason-camera-moved-bg);
  color: var(--reason-camera-moved-fg);
}
.home-reason-neutral {
  background: var(--reason-image-unavailable-bg);
  color: var(--reason-image-unavailable-fg);
}
.home-reason-reference {
  background: var(--reason-no-reference-bg);
  color: var(--reason-no-reference-fg);
}
.home-reason > img {
  flex: none;
}
.home-spot-card {
  min-width: 0;
}
#app .home-spot-provenance {
  display: block;
  margin-top: 4px;
  color: var(--color-text-secondary);
  font-size: var(--font-caption);
  line-height: 16px;
}
#app .overview-page .home-unavailable-photo .photo.image-failed {
  min-height: 64px;
}
.home-setup-camera-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  color: var(--color-text-secondary);
}
.home-illustration {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 211.594px;
  height: 117.732px;
  overflow: hidden;
}
.home-illustration > img {
  position: absolute;
  top: -38.42%;
  left: 0;
  width: 100%;
  height: 179.73%;
  max-width: none;
}
.home-illustration-camera > img {
  top: -38.12%;
}
.home-clear-state,
.home-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 42px 0;
  text-align: center;
}
#app .overview-page .home-clear-state p,
#app .overview-page .home-empty-state p {
  margin: 7px 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-body);
  line-height: 20px;
}
#app .overview-page .home-empty-state p {
  width: min(290px, 100%);
  margin: 0;
}
.home-empty-state {
  padding-block: clamp(40px, 9vh, 88px);
}
.home-heading-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.home-check-action {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.home-check-action .button {
  min-height: 48px;
  white-space: nowrap;
}
#app .home-run-check {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  gap: 4px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
  color: var(--color-text-primary);
  line-height: 18px;
}
#app .home-run-check:hover:not(:disabled) {
  background: #fafafa;
  border-color: #d4d9dc;
}
.home-run-check > img {
  display: block;
  flex: none;
  transform: rotate(-90deg);
}
#app .home-run-check:disabled {
  color: var(--color-text-disabled);
}
.home-run-check:disabled > img {
  opacity: 0.45;
}
.home-camera-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
  box-shadow: var(--shadow-card);
}
.home-camera-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
}
.home-camera-link:hover {
  background: #fafafa;
}
.home-camera-preview {
  position: relative;
}
.home-camera-preview .photo-source {
  display: none;
}
.home-camera-photo-labels {
  position: absolute;
  inset: 7px 7px auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.home-camera-photo-labels > span {
  padding: 4px 7px;
  border-radius: 4px;
  background: rgb(0 0 0 / 70%);
  color: white;
  font-size: var(--font-caption);
  line-height: 1;
}
.home-camera-simulated {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgb(0 0 0 / 70%);
  color: white;
  font-size: var(--font-caption);
}
.home-camera-card .home-result-content {
  padding: 12px 14px;
}
#app .home-place-ready h1 {
  margin: 0;
  font-size: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: 26px;
}
.home-place-ready .home-clear-state {
  padding-block: 112px 42px;
}
@container scena (min-width: 800px) {
  #app .overview-page {
    max-width: 760px;
    margin-inline: auto;
  }
  #app .overview-page .home-result-photo {
    height: clamp(160px, 22vw, 245px);
    aspect-ratio: auto;
  }
}
@container scena (min-width: 1100px) {
  .home-heading-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .home-heading-row .home-check-action {
    flex: 0 0 230px;
  }
}

/* workspace-source:src/ui/styles/pages/compare.css */
.compare-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  color: var(--color-text-primary);
}
.before-after {
  min-width: 0;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.compare-grid figure {
  margin: 0;
  min-width: 0;
}
.compare-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 28px;
  margin-bottom: var(--space-2);
}
.compare-photo-label {
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
  line-height: 20px;
}
.compare-grid time,
.compare-time-unavailable {
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 20px;
  text-align: right;
}
.compare-full-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: var(--color-surface-muted, #f1f3f4);
}
.compare-full-frame > img {
  display: block;
  width: 100%;
  height: auto;
}
.compare-full-frame > .photo-source {
  display: none;
}
.compare-focus-mat {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 196px;
  padding: var(--space-3);
  overflow: hidden;
  border-radius: var(--radius-control);
  background: var(--color-surface-muted, #f1f3f4);
}
.compare-focused-photo {
  position: relative;
  width: 100%;
  max-width: calc(300px * var(--focus-ratio));
  aspect-ratio: var(--focus-ratio);
  overflow: hidden;
}
.compare-focused-photo > img {
  position: absolute;
  max-width: none;
  object-fit: fill;
}
.before-after .view-region {
  position: absolute;
  pointer-events: none;
}
.before-after .compare-selection {
  border: 1.5px solid var(--color-selection-border, #23a3f7);
  border-radius: 4px;
  background: var(--color-selection-fill, #91d1fb26);
}
.before-after .compare-pixel-difference {
  border: 2px dashed var(--color-action-pressed);
  background: transparent;
}
.compare-missing {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 196px;
  aspect-ratio: 16 / 9;
}
.compare-missing-icon {
  width: 44px;
  height: 44px;
  background: url(/assets/figma-compare-history/missing-photo.svg) center no-repeat;
}
.compare-focused-photo.image-failed,
.compare-full-frame.image-failed {
  display: grid;
  place-items: center;
  min-height: 196px;
  padding: var(--space-5);
  aspect-ratio: 16 / 9;
}
.compare-image-error {
  color: var(--color-text-secondary);
  font-size: var(--font-body);
  line-height: 20px;
  text-align: center;
}
.compare-full-photos {
  margin-top: var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
}
.compare-full-photos > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 20px;
  cursor: pointer;
  list-style: none;
}
.compare-full-photos > summary::-webkit-details-marker {
  display: none;
}
.compare-detail-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  background: url(/assets/shared/chevron-down.svg) center no-repeat;
}
.compare-full-photos[open] .compare-detail-chevron {
  transform: rotate(180deg);
}
.compare-difference-key,
.compare-view-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 20px;
}
.compare-full-photos[open] {
  padding-bottom: var(--space-4);
}
.compare-result {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
}
.observation-panel,
.unavailable-compare,
.decision-panel {
  min-width: 0;
}
.compare-difference-key > span {
  flex: none;
  width: 14px;
  height: 12px;
  margin-top: 2px;
  border: 1.5px solid var(--color-selection-border, #23a3f7);
  border-radius: 2px;
}
.compare-difference-key > span {
  border-style: dashed;
}
.observation-panel h2,
.unavailable-compare h2,
.decision-panel h2 {
  font-size: var(--font-title);
  line-height: 24px;
  font-weight: var(--weight-semibold);
}
.observation-panel > p,
.unavailable-compare > p {
  margin-top: var(--space-2);
  font-size: var(--font-body);
  line-height: 24px;
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}
.compare-find-when {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-2);
  color: var(--color-action-primary);
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  line-height: 22px;
}
.compare-find-when > img {
  flex: none;
}
.comparison-evidence {
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.comparison-evidence summary {
  min-height: 44px;
  padding: var(--space-3) 0;
  cursor: pointer;
}
.comparison-evidence[open] {
  padding-bottom: var(--space-3);
}
.comparison-evidence .section-label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--font-caption);
  line-height: 16px;
  letter-spacing: 0.4px;
}
.analysis-details,
.truth-note {
  margin-top: var(--space-2);
  font-size: var(--font-small);
  line-height: 21px;
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}
.analysis-confidence {
  color: var(--color-text-primary);
}
.analysis-limitations {
  padding-left: 18px;
  margin: var(--space-2) 0;
}
.analysis-limitations li + li {
  margin-top: var(--space-1);
}
.analysis-model {
  display: block;
  font-size: var(--font-caption);
  margin-top: var(--space-2);
}
.decision-panel {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
}
.decision-intro {
  margin: var(--space-1) 0 var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.decision-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.decision-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
  color: var(--color-text-primary);
  font-size: var(--font-body);
  line-height: 18px;
  font-weight: var(--weight-medium);
}
.decision-button.selected:not(.quiet) {
  color: white;
  background: var(--color-action-pressed);
  border-color: var(--color-action-pressed);
}
.decision-button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--color-text-secondary);
}
.decision-button.quiet.selected {
  color: var(--color-action-pressed);
  background: var(--color-action-soft);
  border-color: var(--color-action-soft);
}
.decision-button:not(.selected):not(:disabled):hover {
  background: var(--color-action-soft);
  border-color: var(--color-action-soft);
}
.decision-button img {
  flex: none;
}
.decision-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.decision-note button {
  min-height: 44px;
  padding: 0;
  color: var(--color-action-primary);
  text-decoration: underline;
}
.compare-reason,
.history-reason {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-2);
  max-width: 100%;
  border-radius: 12px;
  color: var(--color-text-secondary);
  background: var(--color-surface-muted, #f1f3f4);
  font-size: var(--font-small);
  line-height: 20px;
  overflow-wrap: anywhere;
}
.compare-reason-dark,
.history-reason-dark {
  color: var(--reason-too-dark-fg, #a56600);
  background: var(--reason-too-dark-bg, #fff3e3);
}
.compare-reason-blur,
.history-reason-blur {
  color: var(--reason-too-blurry-fg);
  background: var(--reason-too-blurry-bg);
}
.compare-reason-blocked,
.history-reason-blocked {
  color: var(--reason-view-blocked-fg);
  background: var(--reason-view-blocked-bg);
}
.compare-reason-alignment,
.history-reason-alignment {
  color: var(--reason-camera-moved-fg);
  background: var(--reason-camera-moved-bg);
}
.compare-reason-reference,
.history-reason-reference {
  color: var(--reason-no-reference-fg);
  background: var(--reason-no-reference-bg);
}
.compare-reason > img,
.history-reason > img {
  flex: none;
}
.unavailable-compare h2 {
  margin-top: var(--space-2);
}
.compare-spot-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
}
.compare-spot-pager button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  color: var(--color-action-primary);
  padding: var(--space-2) 0;
}
@container scena (max-width: 700px) {
  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .compare-grid figcaption {
    align-items: baseline;
    flex-wrap: wrap;
  }
}

/* workspace-source:src/ui/styles/pages/photo-selection.css */
#app .photo-selection-page,
#app .care-spots-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: calc(var(--app-viewport-height, 100dvh) - 140px);
  gap: var(--space-6, 24px);
}
#app .setup-intro {
  display: grid;
  gap: 12px;
}
#app .setup-intro p,
#app .setup-intro-copy {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-body);
  line-height: 1.45;
}
#app .camera-picker {
  position: relative;
  min-width: 0;
  width: 100%;
}
#app .camera-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control, 10px);
  background: var(--color-surface-default, #fff);
  box-shadow: 0 2px 4px #0000000a;
  color: var(--color-text-primary);
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
}
#app .camera-trigger > span {
  flex: 1;
  text-align: left;
  overflow-wrap: anywhere;
}
#app .camera-trigger[aria-expanded=true] {
  border-color: var(--color-action-pressed);
}
#app .camera-trigger[aria-expanded=true] > img:last-child {
  transform: rotate(180deg);
}
#app .setup-icon {
  flex: none;
  display: block;
  max-width: none;
  pointer-events: none;
}
#app .camera-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 0;
  z-index: 20;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card, 12px);
  box-shadow: 0 4px 12px #00000014;
  padding: 0;
  overflow: hidden;
}
#app .camera-menu > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 10px 14px;
  min-height: 56px;
  text-align: left;
  border-radius: 0;
  background: var(--color-surface-default);
  color: var(--color-text-primary);
}
#app .camera-menu > button + button {
  border-top: 1px solid var(--color-border-subtle);
}
#app .camera-menu > button[aria-checked=true] {
  background: var(--color-action-soft);
}
#app .camera-menu > button > span {
  display: grid;
  gap: 2px;
}
#app .camera-menu strong {
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}
#app .camera-menu small {
  font-size: var(--font-small);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
#app .component-select {
  display: grid;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
}
#app .component-select select {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  min-height: 44px;
  padding: 8px 12px;
  font-size: var(--font-label);
}
#app .setup-photo-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 24px;
}
#app .setup-photo-preview {
  display: grid;
  gap: 8px;
}
#app .setup-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
}
#app .setup-section-heading h2,
#app .setup-recent-photos h2,
#app .setup-photo-empty h2 {
  margin: 0;
  font-size: var(--font-label);
  line-height: 1.45;
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}
#app .setup-section-heading time,
#app .setup-section-heading > span {
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 1.4;
  text-align: right;
}
#app .reference-preview {
  overflow: hidden;
  border-radius: 6px;
}
#app .reference-preview .photo-source {
  display: none;
}
#app .setup-recent-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 10px;
}
#app .setup-photo-caption {
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 1.45;
}
#app .photo-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 16px) / 3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  gap: 8px;
}
#app .photo-thumbnails::-webkit-scrollbar {
  display: none;
}
#app .photo-thumb {
  display: grid;
  width: auto;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 6px;
  text-align: left;
  min-width: 0;
  scroll-snap-align: start;
}
#app .photo-thumb:focus-visible {
  outline-offset: -3px;
}
#app .photo-thumb-image {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
#app .photo-thumb.selected .photo-thumb-image {
  outline: 2px solid var(--color-action-pressed);
  outline-offset: -2px;
}
#app .photo-thumb .photo {
  border-radius: 6px;
}
#app .photo-thumb .photo-source {
  display: none;
}
#app .photo-thumb time {
  display: grid;
  gap: 4px;
  padding: 0;
  color: var(--color-text-primary);
  font-size: 12px;
  line-height: 1.4;
}
#app .photo-thumb time > span:first-child {
  color: var(--color-text-secondary);
}
#app .selection-check {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-action-pressed);
  border: 0;
}
#app .setup-photo-empty {
  display: grid;
  gap: 24px;
}
#app .setup-photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid #eef0f2;
  border-radius: 6px;
  background: #f1f3f4;
}
#app .setup-photo-empty p {
  color: var(--color-text-secondary);
  font-size: var(--font-body);
  line-height: 22px;
  margin-top: 4px;
}
#app .setup-actions {
  margin-top: auto;
  padding-top: 20px;
  padding-bottom: 24px;
  display: grid;
  gap: 8px;
}
#app .setup-actions > .button {
  width: 100%;
  min-height: 48px;
  font-size: var(--font-label);
  border-radius: var(--radius-card, 12px);
  justify-content: center;
}
@media (hover: hover) and (pointer: fine) {
  #app .camera-trigger:not(:disabled):hover,
  #app .camera-menu > button:not(:disabled):hover {
    background: var(--color-action-soft);
  }
  #app .photo-thumb:not(:disabled):hover .photo-thumb-image {
    outline: 2px solid var(--color-action-primary);
    outline-offset: -2px;
  }
}
#app .setup-actions > p {
  margin: 0;
  text-align: center;
  font-size: var(--font-small);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
@container scena (min-width: 701px) {
  #app .photo-selection-page,
  #app .care-spots-page {
    max-width: 700px;
    margin-inline: auto;
  }
  #app .setup-actions {
    max-width: 100%;
  }
}

/* workspace-source:src/ui/styles/pages/care-spot-editor.css */
#app .spot-editor {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--dark-background, #0f1113);
  color: var(--dark-text, #fff);
}
#app .spot-editor-inner {
  min-height: var(--app-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin-inline: auto;
}
#app .spot-editor-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  min-height: 88px;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  background: var(--dark-background, #0f1113);
  border-bottom: 1px solid var(--dark-border, #303336);
  flex: none;
}
#app .spot-editor-header h1 {
  font-size: var(--font-title);
  font-weight: var(--weight-semibold);
  line-height: 22px;
  text-align: center;
  color: var(--dark-text, white);
}
#app .spot-editor-header p {
  color: var(--dark-text-secondary, #a3a8ad);
  font-size: var(--font-small);
  line-height: 1.4;
  text-align: center;
  margin-top: 4px;
}
#app .spot-editor-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--dark-border, #303336);
  background: var(--dark-surface, #1b1d1f);
  border-radius: 50%;
  position: relative;
  padding: 0;
}
#app .spot-editor-close img {
  position: absolute;
  top: -1px;
  left: -1px;
}
#app .spot-editor-done {
  color: var(--dark-action, #4da3ff);
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  min-height: 44px;
}
#app .spot-editor-done:disabled {
  color: var(--dark-text-secondary, #a3a8ad);
  opacity: 1;
}
#app .spot-editor button:focus-visible,
#app .spot-editor input:focus-visible,
#app .spot-editor summary:focus-visible {
  outline-color: var(--dark-action, #4da3ff);
}
#app .spot-editor-viewport {
  position: relative;
  background: var(--dark-surface, #1b1d1f);
  min-height: 350px;
  display: grid;
  align-content: center;
}
#app .spot-canvas {
  position: relative;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}
#app .spot-canvas > img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
#app .spot-canvas.image-failed {
  min-height: 350px;
  display: grid;
  place-items: center;
  cursor: default;
  padding: 64px 24px;
}
#app .spot-canvas.image-failed > img,
#app .spot-canvas.image-failed > [data-roi],
#app .editor-image-failed .spot-editor-hint,
#app .editor-image-failed .spot-editor-help {
  display: none;
}
#app .spot-editor-image-error {
  max-width: 36ch;
  text-align: center;
  color: var(--dark-text-secondary, #a3a8ad);
  font-size: var(--font-body);
  line-height: 1.6;
}
#app .editor-image-failed input:disabled,
#app .editor-image-failed .delete-spot:disabled {
  opacity: 0.45;
}
#app .spot-editor-camera {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow-wrap: anywhere;
  font-size: var(--font-small);
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--dark-overlay-chip, #000000b8);
  color: white;
  pointer-events: none;
}
#app .spot-editor-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  text-align: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--dark-overlay-chip, #000000b8);
  color: white;
  font-size: var(--font-small);
  line-height: 1.4;
  pointer-events: none;
}
#app .spot-editor-fields {
  padding: 20px;
}
#app .spot-editor-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  min-height: 44px;
}
#app .spot-editor-name-row label {
  color: var(--dark-text-secondary, #a3a8ad);
  font-size: var(--font-small);
  line-height: 1.4;
}
#app .spot-editor .delete-spot {
  min-height: 44px;
  color: var(--dark-danger, #ff8a80);
  font-size: var(--font-body);
  margin: 0;
}
#app .spot-editor-fields > input {
  height: 48px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--dark-border, #303336);
  border-radius: var(--radius-card);
  background: var(--dark-surface, #1b1d1f);
  color: white;
  font-size: var(--font-label);
  line-height: 1.45;
}
#app .spot-editor-help {
  color: var(--dark-text-secondary, #a3a8ad);
  font-size: var(--font-small);
  line-height: 17px;
  text-align: center;
  margin-top: 16px;
}
#app .spot-editor-geometry {
  margin-top: 16px;
  color: var(--dark-text-secondary, #a3a8ad);
  font-size: 12px;
}
#app .spot-editor-geometry summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#app .spot-editor-geometry summary > span {
  font-size: var(--font-caption);
}
#app .spot-editor-geometry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#app .spot-editor-geometry-grid input {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid var(--dark-border, #303336);
  border-radius: 6px;
  background: var(--dark-surface, #1b1d1f);
  color: white;
  padding: 8px;
  font-size: var(--font-label);
}
#app .spot-editor-geometry small {
  display: block;
  margin-top: 12px;
  color: var(--dark-text-secondary, #a3a8ad);
  font-size: 12px;
}
#app .spot-editor-footer {
  margin-top: auto;
  padding: 20px 20px max(24px, env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
}
#app .spot-editor-draft-note {
  color: var(--dark-text-secondary, #a3a8ad);
  font-size: var(--font-small);
  line-height: 1.5;
  text-align: center;
}
#app .spot-editor-add {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--dark-outline, #ebeef0);
  border-radius: var(--radius-card);
  color: white;
  font-size: var(--font-body);
}
#app .spot-editor-add:disabled {
  opacity: 0.35;
}
@container scena (min-width: 701px) {
  #app .spot-editor-viewport {
    min-height: 420px;
  }
}
@container scena (max-width: 359px) {
  #app .spot-editor-geometry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* workspace-source:src/ui/styles/pages/care-spots.css */
#app .care-spots-page {
  gap: 24px;
}
#app .care-reference {
  display: grid;
  gap: 7px;
}
#app .care-reference-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: var(--font-small);
  line-height: 1.4;
  color: var(--color-text-primary);
}
#app .care-reference-heading time {
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 1.4;
  text-align: right;
}
#app .care-reference-image {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
#app .care-reference-image > img {
  display: block;
  width: 100%;
  height: auto;
}
#app .care-edit-spots {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  background: var(--color-surface-default);
  color: var(--color-action-primary);
  font-size: var(--font-small);
}
#app .care-spots-explanation {
  margin: -8px 0 -10px;
  font-size: var(--font-small);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
#app .care-spots-list {
  display: grid;
  gap: 12px;
}
#app .care-spot-row,
#app .care-add-spot {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  box-shadow: 0 2px 8px #0000000a;
  font-size: var(--font-body);
  text-align: left;
}
#app .care-spot-row > strong {
  font-weight: var(--weight-medium);
  flex: 1;
  overflow-wrap: anywhere;
}
#app .care-add-spot {
  color: var(--color-action-primary);
}
#app .care-spot-number {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-action-primary);
  color: white;
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
}
#app .care-saved-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 1.4;
  margin-bottom: 8px;
}
#app .care-spots-missing {
  padding-top: clamp(48px, 15dvh, 128px);
}
#app .care-spots-missing-content {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  max-width: 310px;
  margin-inline: auto;
}
#app .care-spots-missing-content h2 {
  font-size: 18px;
  line-height: 22px;
}
#app .care-spots-missing-content p {
  color: var(--color-text-secondary);
  font-size: var(--font-body);
  line-height: 1.45;
}
#app .roi-box {
  position: absolute;
  border: 1.5px solid var(--color-action-primary);
  border-radius: 4px;
  background: transparent;
  min-width: 3px;
  min-height: 3px;
  cursor: pointer;
}
#app .roi-box.active {
  border-width: 2px;
  border-color: var(--color-action-pressed);
  background: #0076c80a;
  cursor: move;
}
#app .roi-number {
  position: absolute;
  left: 4px;
  top: 4px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-action-primary);
  color: white;
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
  pointer-events: none;
}
#app .roi-box.active .roi-number {
  background: var(--color-action-pressed);
}
#app .resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  display: block;
}
#app .resize-handle::after {
  content: "";
  position: absolute;
  inset: -10px;
}
#app .resize-handle.nw {
  left: -9px;
  top: -9px;
  cursor: nw-resize;
}
#app .resize-handle.ne {
  right: -9px;
  top: -9px;
  cursor: ne-resize;
}
#app .resize-handle.sw {
  left: -9px;
  bottom: -9px;
  cursor: sw-resize;
}
#app .resize-handle.se {
  right: -9px;
  bottom: -9px;
  cursor: se-resize;
}
@media (hover: hover) and (pointer: fine) {
  #app .care-spot-row:not(:disabled):hover,
  #app .care-add-spot:not(:disabled):hover,
  #app .care-edit-spots:not(:disabled):hover {
    background: var(--color-action-soft);
    border-color: var(--color-action-primary);
  }
}

/* workspace-source:src/ui/styles/pages/history.css */
.history-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-6);
}
.history-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.history-filter {
  position: relative;
  flex: 1 1 180px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface-default);
}
.history-filter:focus-within {
  border-color: var(--color-action-pressed);
  outline: 2px solid var(--color-action-soft);
}
.history-filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 10px 10px 13px;
  pointer-events: none;
}
.history-filter-label strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text-primary);
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
  line-height: 20px;
}
.history-filter-label > span,
.history-filter-label > small {
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 20px;
}
.history-filter-label > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-filter-label img {
  margin-left: auto;
  flex: none;
}
.history-filter select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.history-summary h2 {
  color: var(--color-text-primary);
  font-size: var(--font-heading);
  line-height: 32px;
  font-weight: var(--weight-semibold);
}
.history-summary p {
  margin-top: var(--space-1);
  color: var(--color-text-primary);
  font-size: var(--font-body);
  line-height: 23px;
}
.history-summary small {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.history-summary-insufficient h2 {
  font-size: var(--font-label);
  line-height: 24px;
}
.history-summary-insufficient p {
  max-width: 38ch;
  margin-top: 6px;
}
.history-summary-insufficient small {
  margin-top: 6px;
}
.history-results > h2 {
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
  line-height: 24px;
}
.history-list {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
  overflow: hidden;
}
.history-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
  text-align: left;
}
.history-row:last-child {
  border-bottom: 0;
}
.history-row:hover {
  background: var(--color-action-soft);
}
.history-row:focus-visible {
  outline-offset: -2px;
}
.history-thumbnail.photo {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 81.778px;
  width: 81.778px;
  height: 46px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-surface-muted, #f1f3f4);
}
.history-thumbnail.photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-thumbnail.photo.image-failed > img {
  display: none;
}
.history-missing-icon,
.history-thumbnail.photo.image-failed::after {
  display: block;
  width: 24px;
  height: 24px;
  background: url(/assets/figma-compare-history/missing-thumbnail.svg) center no-repeat;
}
.history-thumbnail.photo.image-failed::after {
  content: "";
}
.history-observation {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 2px;
}
.history-observation time,
.history-observation small {
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 16px;
  overflow-wrap: anywhere;
}
.history-result {
  font-size: var(--font-body);
  line-height: 18px;
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}
.history-result.different {
  color: var(--color-action-primary);
}
.history-result.unavailable {
  color: var(--reason-too-dark-fg, #a56600);
}
.history-reason {
  line-height: 16px;
}
.history-chevron {
  flex: none;
}
.history-explainer {
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.history-explainer summary {
  cursor: pointer;
  min-height: 44px;
  padding: var(--space-3) 0;
}
.history-explainer p {
  margin-top: var(--space-2);
}
.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 73px 0 84px;
  text-align: center;
}
.history-empty > img {
  width: 211.594px;
  height: 117.732px;
  object-fit: cover;
  margin-bottom: 14px;
}
.history-empty h2 {
  font-size: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: 32px;
  color: var(--color-text-primary);
}
.history-empty p {
  max-width: 310px;
  margin-top: 7px;
  color: var(--color-text-secondary);
  font-size: var(--font-body);
  line-height: 23px;
}
@container scena (min-width: 701px) {
  .history-page {
    max-width: 760px;
  }
  .history-thumbnail.photo {
    flex-basis: 108px;
    width: 108px;
    height: 61px;
  }
}

/* workspace-source:src/ui/styles/pages/find-when.css */
dialog.sheet:has(.find-when-content) {
  width: 530px;
  max-width: calc(100% - 40px);
  max-height: calc(var(--app-viewport-height, 100dvh) - 48px);
  margin: auto;
  padding: 0 var(--space-6) var(--space-6);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  background: var(--color-surface-default);
}
dialog.sheet:has(.find-when-content)::backdrop {
  background: #00000050;
  backdrop-filter: none;
}
dialog.sheet:has(.find-when-content) .sheet-handle {
  width: 36px;
  height: 4px;
  margin: 12px auto var(--space-4);
  background: #cdd4d8;
  border-radius: 3px;
}
dialog.sheet:has(.find-when-content) .sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
}
dialog.sheet:has(.find-when-content) .sheet-heading h2 {
  color: var(--color-text-primary);
  font-size: var(--font-title);
  font-weight: var(--weight-semibold);
  line-height: 26px;
  letter-spacing: 0;
}
.find-when-content {
  min-width: 0;
  padding-top: var(--space-3);
  overflow-wrap: anywhere;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.find-when-content > .event-window-label {
  font-size: var(--font-small);
  line-height: 21px;
  color: var(--color-text-secondary);
}
.find-when-content > h3 {
  margin-top: 6px;
  color: var(--color-text-primary);
  font-size: var(--font-heading);
  line-height: 32px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}
.find-when-content > h3 > span {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: var(--weight-medium);
}
.find-when-content > h3:focus {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 5px;
}
.find-when-content > p {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.event-scope {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-control);
  background: var(--color-bg-default);
}
.event-scope p,
.event-scope small {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.event-scope small {
  font-size: var(--font-caption);
}
.event-list {
  margin: var(--space-4) 0 0;
  padding: 0 var(--space-3);
  list-style: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-surface-default);
}
.event-list > li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.event-list > li:last-child {
  border-bottom: 0;
}
.event-list > li > span {
  min-width: 0;
}
.event-list .icon {
  color: var(--color-text-secondary);
  flex: none;
  width: 20px;
  height: 20px;
}
.event-list strong {
  display: block;
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  line-height: 22px;
  color: var(--color-text-primary);
}
.event-list small {
  display: block;
  margin-top: 2px;
  font-size: var(--font-small);
  line-height: 21px;
  color: var(--color-text-secondary);
}
.event-empty {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
}
.event-empty h4 {
  color: var(--color-text-primary);
  font-size: var(--font-body);
  font-weight: var(--weight-semibold);
  line-height: 20px;
}
.event-empty p,
.event-more {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.find-when-content > .notice {
  margin: var(--space-4) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-small);
  line-height: 21px;
}
.find-when-content > .button {
  margin-top: var(--space-5);
  min-height: 48px;
  border-radius: var(--radius-card);
  font-size: var(--font-label);
  line-height: 20px;
}
@container scena (max-width: 700px) {
  dialog.sheet:has(.find-when-content) {
    width: 100%;
    max-width: 100%;
    max-height: 80dvh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  }
}
@container scena (min-width: 701px) {
  dialog.sheet:has(.find-when-content) {
    padding-top: var(--space-5);
  }
  dialog.sheet:has(.find-when-content) .sheet-handle {
    display: none;
  }
}

/* workspace-source:src/ui/styles/responsive/desktop.css */
@container scena (min-width: 701px) {
  main#main[data-page=history] > .screen-header {
    max-width: 760px;
  }
  main#main[data-page=select-photo] > .screen-header,
  main#main[data-page=care-spots] > .screen-header {
    max-width: 700px;
    margin-inline: auto;
  }
  .screen-header-centered {
    grid-template-columns: minmax(0, 1fr);
  }
  .screen-header-centered .navigation-menu {
    display: none;
  }
  .screen-header-centered .screen-heading {
    text-align: left;
  }
  .screen-icon-button {
    border-radius: var(--radius-control);
  }
  .screen-icon-button:hover {
    background: var(--color-border-subtle);
  }
  dialog.sheet {
    margin: auto;
  }
}
@container scena (min-width: 800px) {
  main#main[data-page=home] > .screen-header {
    max-width: 760px;
    margin-inline: auto;
  }
}
@container scena (min-width: 701px) and (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding-inline: 12px;
  }
  .app-shell {
    margin-left: 190px;
  }
  main#main {
    padding-inline: 24px;
  }
  .runtime-context {
    left: 24px;
    right: 24px;
  }
  .workspace strong {
    max-width: 115px;
  }
  .page-footer {
    padding-inline: 24px;
  }
  .page-footer > span:nth-child(2) {
    display: none;
  }
}

/* workspace-source:src/ui/styles/responsive/mobile.css */
@container scena (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .app-shell {
    margin-left: 0;
  }
  main#main {
    padding: 48px var(--page-gutter) 32px;
    min-height: var(--app-viewport-height, 100dvh);
  }
  main#main[data-page=home],
  main#main[data-page=history] {
    padding-bottom: calc(var(--navigation-height) + env(safe-area-inset-bottom, 0px) + 24px);
  }
  .screen-header {
    margin-bottom: 24px;
  }
  .runtime-context {
    left: var(--page-gutter);
    right: var(--page-gutter);
  }
  .bottom-navigation {
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 8px var(--page-gutter) calc(8px + env(safe-area-inset-bottom, 0px));
    min-height: var(--navigation-height);
    border-top: 1px solid var(--color-border-subtle);
    background: var(--color-surface-default);
  }
  .bottom-navigation button {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 56px;
    min-width: 0;
    padding: 8px;
    color: var(--color-text-secondary);
    font-size: var(--font-caption);
    line-height: 16px;
    border-radius: var(--radius-control);
  }
  .bottom-navigation button.active {
    color: var(--color-action-pressed);
    background: var(--color-nav-selected);
  }
  .navigation-icon {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
  }
  .page-footer {
    display: none;
  }
  .error-banner {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  .error-banner > div {
    flex-basis: calc(100% - 44px);
  }
  .progress-strip {
    align-items: flex-start;
  }
  #toast {
    left: 50%;
    bottom: calc(var(--navigation-height) + 12px);
    max-width: calc(100vw - 32px);
  }
  dialog.sheet {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    margin: auto 0 0;
    padding: 0 20px 24px;
  }
  dialog.confirm-dialog {
    width: calc(100% - 32px);
    padding: 24px;
  }
  .app-shell.editor-open main#main {
    padding: 0;
  }
  input:not([type=checkbox]):not([type=radio]),
  select,
  textarea {
    font-size: 16px;
  }
}

/* workspace-source:src/ui/styles/responsive/reduced-motion.css */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* workspace-source:src/ui/styles/responsive.css */

/* workspace-source:src/ui/styles/responsive/app-frame.css */
:root {
  --app-frame-width: 390px;
  --app-frame-height: 844px;
  --app-frame-gutter: 24px;
  --app-viewport-width: min(var(--app-frame-width), 100vw);
  --app-viewport-height: min(var(--app-frame-height), calc(100dvh - 48px));
  --app-frame-offset: max(var(--app-frame-gutter), calc((100dvh - var(--app-frame-height)) / 2));
}
html,
html:has(body.login-page) {
  min-height: 100%;
  background: #e9edef;
}
body,
body.login-page {
  position: relative;
  container: scena / inline-size;
  width: var(--app-viewport-width);
  height: var(--app-viewport-height);
  margin: var(--app-frame-offset) auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgb(32 41 56 / 12%);
}
#app {
  height: 100%;
  overflow: hidden;
  transform: translateZ(0);
}
.app-shell,
.app-shell.editor-open {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  margin: 0;
}
main#main,
.app-shell.editor-open main#main {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
main#main::-webkit-scrollbar,
#app .spot-editor::-webkit-scrollbar,
.login-content::-webkit-scrollbar {
  display: none;
}
#app .spot-editor {
  scrollbar-width: none;
}
main#main[data-page=home],
main#main[data-page=history] {
  padding-bottom: 24px;
}
.bottom-navigation {
  position: relative;
  flex: none;
}
.login-page .login-content {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.login-content > :not(.login-artwork) {
  flex-shrink: 0;
}
dialog,
dialog.settings-dialog,
dialog.confirm-dialog {
  max-width: calc(var(--app-viewport-width) - 32px);
  max-height: calc(var(--app-viewport-height) - 32px);
  margin: auto;
}
dialog.sheet,
dialog.sheet:has(.find-when-content) {
  width: var(--app-viewport-width);
  max-width: var(--app-viewport-width);
  max-height: calc(var(--app-viewport-height) - 24px);
  margin: auto auto var(--app-frame-offset);
  border-radius: 20px 20px 0 0;
}
#toast {
  left: 50%;
  bottom: calc(var(--app-frame-offset) + var(--navigation-height) + 12px);
  max-width: calc(var(--app-viewport-width) - 32px);
}
.skip-link {
  left: max(16px, calc((100vw - var(--app-viewport-width)) / 2 + 16px));
}
.skip-link:focus {
  top: calc(var(--app-frame-offset) + 12px);
}
@media (max-width: 700px) {
  :root {
    --app-viewport-width: 100vw;
    --app-viewport-height: 100dvh;
    --app-frame-offset: 0px;
  }
  body,
  body.login-page {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
@media (min-width: 391px) and (max-width: 700px) {
  :root[data-demo-frame] {
    --app-viewport-width: min(var(--app-frame-width), 100vw);
    --app-viewport-height: min(var(--app-frame-height), calc(100dvh - 48px));
    --app-frame-offset: max(var(--app-frame-gutter), calc((100dvh - var(--app-frame-height)) / 2));
  }
  :root[data-demo-frame] body {
    margin: var(--app-frame-offset) auto;
    border-radius: 16px;
    box-shadow: 0 8px 36px rgb(32 41 56 / 12%);
  }
}

/* workspace-source:src/ui/styles/index.css */
