/* public/styles.css */
:root {
  color-scheme: dark;
  --background: #1b1d21;
  --surface: #24272c;
  --surface-raised: #2e3238;
  --border: #3a3f46;
  --text: #d9dce1;
  --text-muted: #8a919b;
  --accent: #4c9aff;
  --error: #ff6b6b;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  overflow: hidden;
}
.app {
  display: grid;
  grid-template-areas: "left viewport right" "footer footer footer";
  grid-template-columns: 250px 1fr 250px;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}
button {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  user-select: none;
}
button:hover:not(:disabled) {
  border-color: var(--accent);
}
button[aria-pressed=true] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.toolbar,
.viewport-bar,
.footer {
  box-sizing: border-box;
  height: 30px;
  padding: 3px 8px;
}
.toolbar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.toolbar-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: transparent;
  border-color: transparent;
  font-size: 11px;
  transition:
    background-color 120ms,
    border-color 120ms,
    color 120ms;
}
.toolbar-button svg {
  width: 16px;
  height: 16px;
}
.toolbar-button:hover:not(:disabled) {
  background: var(--surface-raised);
  border-color: var(--border);
}
.toolbar-button[aria-pressed=true] {
  background: rgb(76 154 255 / 12%);
  border-color: rgb(76 154 255 / 35%);
  color: var(--text);
}
.toolbar-button:active:not(:disabled) {
  background: rgb(76 154 255 / 18%);
  border-color: rgb(76 154 255 / 45%);
}
.toolbar-button.drop-target {
  background: rgb(76 154 255 / 18%);
  border-color: var(--accent);
  border-style: dashed;
}
.toolbar-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.thumbnail-panel {
  grid-area: left;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.thumbnail-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 8px;
  overflow-y: auto;
}
.thumbnail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.thumbnail-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: 4px;
  background: none;
  color: var(--text-muted);
}
.thumbnail-box:has(canvas) {
  border-style: solid;
}
.thumbnail-box[aria-pressed=true] {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.thumbnail-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.thumbnail-crosshair {
  position: absolute;
  pointer-events: none;
}
.thumbnail-crosshair[hidden] {
  display: none;
}
.thumbnail-crosshair-vertical {
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgb(255 255 255 / 25%);
}
.thumbnail-crosshair-horizontal {
  right: 0;
  left: 0;
  border-top: 1px dashed rgb(255 255 255 / 25%);
}
.viewport {
  grid-area: viewport;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.viewport-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}
.viewport-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
}
.viewport-bar:first-child {
  border-bottom: 1px solid var(--border);
}
.viewport-bar:last-child {
  border-top: 1px solid var(--border);
}
.viewport-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 80%;
  text-align: center;
  color: var(--text-muted);
  user-select: none;
}
.viewport-status[hidden],
.viewport-spinner[hidden] {
  display: none;
}
.viewport-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: viewport-spin 0.8s linear infinite;
}
@keyframes viewport-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .viewport-spinner {
    animation-duration: 3s;
  }
}
.process-log {
  grid-area: right;
  padding: 8px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
}
.log-block {
  margin-bottom: 16px;
}
.log-block h2 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  padding: 4px 0;
  font-size: inherit;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.log-clock {
  font-variant-numeric: tabular-nums;
  font-weight: normal;
  color: var(--text-muted);
}
.log-heading {
  margin: 8px 0 2px;
  font-size: inherit;
  font-weight: 600;
  color: var(--text-muted);
}
.log-line {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 8px;
  padding: 1px 0;
}
.log-line time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.log-line span {
  overflow-wrap: anywhere;
}
.log-line a {
  color: var(--accent);
}
.footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: pre;
}
.footer > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-view {
  text-align: right;
}
dialog {
  min-width: 360px;
  max-width: 560px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop {
  background: rgb(0 0 0 / 50%);
}
dialog h2 {
  margin: 0 0 12px;
  font-size: 15px;
}
.error-dialog h2 {
  color: var(--error);
}
.error-dialog p {
  margin: 0 0 16px;
  white-space: pre-wrap;
}
.error-dialog form {
  display: flex;
  justify-content: flex-end;
}
.analysis-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
}
.analysis-image[hidden] {
  display: none;
}
.view-bar,
.zoom-bar,
.progress-bar {
  display: flex;
  align-items: center;
  gap: 4px;
}
.progress-bar[hidden] {
  display: none;
}
.progress-slider {
  width: min(200px, 40vw);
  margin: 0;
}
.view-button,
.zoom-button {
  justify-content: center;
  min-width: 26px;
  font-variant-numeric: tabular-nums;
}
.layers-panel {
  display: flex;
}
.layers-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 120ms ease;
}
.layers-toggle[aria-expanded=true] .layers-chevron {
  transform: rotate(180deg);
}
.layers-dropdown {
  position: fixed;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 260px;
  max-width: 360px;
  max-height: 50vh;
  padding: 6px;
  overflow-y: auto;
  background: rgb(36 39 44 / 97%);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 35%);
}
.layers-dropdown[hidden] {
  display: none;
}
.layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  user-select: none;
}
.layer-row:hover {
  background: var(--surface-raised);
}
.layer-label {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layer-label:disabled {
  cursor: default;
}
.layer-opacity {
  flex: none;
  width: 100px;
  margin: 0;
}
/*# sourceMappingURL=styles.css.map */
