:root {
  font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
  color: #eeeede;
  background: #171819;
  color-scheme: dark;
  font-synthesis: none;
  --bg: #171819;
  --panel: #202122;
  --line: #343536;
  --muted: #a0a29f;
  --ink: #eeeede;
  --accent: #e9ef9b;
  --danger: #f0ad96;
  --green: #b6d7bd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
body:not([data-remote="true"]) .remote-only,
body[data-remote="true"] [data-local-only] { display: none; }
.web-addresses { display: grid; gap: 6px; margin-top: 10px; user-select: text; }
.web-addresses code { overflow-wrap: anywhere; }
.upload-drop { padding: 20px; border: 1px dashed var(--muted); border-radius: 10px; }
.upload-drop input { margin-top: 10px; }
.upload-list { display: grid; gap: 12px; margin-top: 16px; }
.upload-row { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.upload-row small { color: var(--muted); }
.upload-row progress { width: 100%; accent-color: var(--accent); }
.upload-row button { margin-right: 6px; }
.error-box:empty { display: none; }
body[data-remote="true"] .traffic-space { height: 12px; }
button,input,select,textarea {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--ink);
  background: #2a2b2b;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s,border-color .15s,transform .15s;
}
button:hover {
  background: #383a37;
  border-color: #62655a;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: default;
  opacity: .38;
  transform: none;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #242615;
  font-weight: 650;
}
button.primary:hover {
  background: #f2f8b0;
}
button.quiet {
  border-color: transparent;
  background: transparent;
  color: #c3c5bd;
}
button.quiet:hover {
  background: #ffffff0b;
}
.large {
  padding: 13px 20px;
  font-size: 14px;
}
input,textarea,select {
  display: block;
  width: 100%;
  border: 1px solid #474a45;
  background: #1b1d1c;
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 12px;
  outline: none;
}
input:focus,textarea:focus,select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #e9ef9b15;
}
textarea {
  resize: vertical;
  min-height: 70px;
}
input::placeholder,textarea::placeholder {
  color: #7f837b;
}
button:focus-visible,[role=button]:focus-visible,a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input[type=checkbox] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--accent);
  margin: 3px 0;
}
input[type=range] {
  padding: 0;
  border: 0;
  box-shadow: none;
}
kbd {
  font-family: inherit;
  font-size: 10px;
  opacity: .6;
}
h1,h2,h3,p {
  margin: 0;
}
h1 {
  font-size: 21px;
  font-weight: 590;
  letter-spacing: -.6px;
}
h2 {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -.65px;
  font-weight: 600;
}
h3 {
  font-size: 12px;
  color: #b9bdb4;
  font-weight: 600;
  letter-spacing: .3px;
}
small {
  font-size: 11px;
}
.shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0,1fr);
}
.sidebar {
  background: #202221;
  border-right: 1px solid #303330;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.traffic-space {
  height: 58px;
  flex-shrink: 0;
  -webkit-app-region: drag;
}
.brand {
  padding: 8px 23px 29px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.brand b {
  display: block;
  font-size: 24px;
  letter-spacing: 4px;
  font-weight: 500;
}
.brand div span {
  font-size: 8px;
  letter-spacing: 2px;
  display: block;
  color: #b6baaa;
  margin-top: -2px;
}
.brand .version {
  margin-left: auto;
  color: #72786b;
  font-size: 10px;
}
.add-folder {
  margin: 0 18px 26px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
}
.add-folder>span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.add-folder kbd {
  margin-left: auto;
}
.nav-label {
  color: #93998e;
  display: flex;
  justify-content: space-between;
  padding: 0 23px 10px;
  font-size: 11px;
}
.nav-label span:last-child {
  color: #747d6b;
}
.sidebar nav {
  flex: 1;
  overflow: auto;
  padding: 0 10px 20px;
  min-height: 0;
}
.nav-empty {
  padding: 16px 13px;
  color: #70796c;
  font-size: 11px;
}
.job-nav {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  display: block;
  text-align: left;
  padding: 13px 12px;
  margin: 3px 0;
  color: #bfc4b7;
}
.job-entry { position: relative; }
.job-entry .job-nav-name { padding-right: 19px; }
.job-remove { position: absolute; top: 10px; right: 6px; padding: 1px 5px; border: 0; background: transparent; color: #929b87; font-size: 18px; line-height: 20px; }
.job-remove:hover, .job-remove:focus-visible { color: #ffd2b9; background: #4d382d; }
.job-nav.active {
  background: #30362b;
  border-color: #4a523e;
  color: #edf1df;
}
.job-nav:hover {
  background: #2d3229;
}
.job-nav-name {
  display: flex;
  gap: 9px;
  align-items: center;
}
.folder-icon {
  color: #afb987;
  font-size: 16px;
  line-height: 1;
}
.job-nav-name b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 165px;
}
.job-nav-info {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin: 7px 0 0 23px;
  color: #a1aa95;
}
.progress-track {
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: #131812;
  margin: 9px 0 1px 23px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .5s;
}
.sidebar-bottom {
  padding: 18px;
  border-top: 1px solid #303730;
}
.connection {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 4px 17px;
  cursor: pointer;
}
.connection b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.connection small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.connection>span:last-child {
  margin-left: auto;
  color: #a0ac8c;
}
.dot {
  height: 6px;
  width: 6px;
  border-radius: 100%;
  background: #72796d;
  display: inline-block;
  flex-shrink: 0;
}
.dot.connected {
  background: var(--accent);
  box-shadow: 0 0 9px #e9ef9b25;
}
.settings-button {
  background: transparent;
  border: 0;
  padding: 10px 3px;
  display: flex;
  align-items: center;
  width: 100%;
  color: #c6ccbf;
  gap: 9px;
}
.shortcut {
  margin-left: auto;
  font-size: 10px;
  color: #939a8e;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
}
.topbar {
  height: 100px;
  padding: 26px 33px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  -webkit-app-region: drag;
  flex-shrink: 0;
}
.topbar button {
  -webkit-app-region: no-drag;
}
.title {
  min-width: 0;
}
.title>span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .7px;
  margin-bottom: 5px;
}
.title h1 {
  max-width: 730px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.top-actions .primary {
  padding: 9px 17px;
}
.top-actions .primary span {
  margin-left: 18px;
}
.pipeline {
  margin: 0 32px 20px;
  display: flex;
  align-items: center;
  padding: 15px 19px;
  background: #202321;
  border: 1px solid #353b32;
  border-radius: 10px;
  gap: 18px;
  flex-shrink: 0;
}
.pipeline>div {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #cdd2c4;
  font-size: 11px;
}
.lane-index {
  font-size: 9px;
  color: #79856d;
}
.pipeline strong {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
}
.pipeline i {
  width: 14px;
  height: 1px;
  background: #4e5745;
}
.contextbar {
  margin: 0 32px 17px;
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}
.contextbar[hidden] {
  display: none;
}
.segmented {
  display: flex;
  background: #11150f;
  border: 1px solid #394030;
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
}
.segmented button {
  border: 0;
  background: transparent;
  color: #9ca98e;
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 11px;
}
.segmented button.active {
  background: #353e2b;
  color: var(--accent);
}
#search {
  max-width: 200px;
  padding: 8px 11px;
  font-size: 11px;
  background: #1d2219;
  border-color: #343d2b;
}
.context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-left: auto;
  white-space: nowrap;
}
.context-actions>span {
  font-size: 10px;
  color: #8b997d;
}
.context-actions button {
  font-size: 11px;
  padding: 7px 9px;
}
.empty {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px 30px 30px;
  text-align: center;
  overflow: auto;
}
.empty[hidden] {
  display: none;
}
.empty-art {
  width: 255px;
  height: 153px;
  position: relative;
  margin: 0 0 27px;
}
.frame {
  width: 194px;
  height: 131px;
  position: absolute;
  top: 14px;
  left: 30px;
  border-radius: 8px;
  background: #232921;
  border: 1px solid #4c5744;
}
.f-back {
  transform: rotate(-12deg);
  border-color: #38472b;
  background: #222e1c;
}
.f-front {
  transform: rotate(4deg);
  background: linear-gradient(140deg,#30392a,#1a2017);
  box-shadow: 0 14px 44px #0004;
  display: grid;
  place-items: center;
}
.viewfinder {
  width: 61px;
  height: 44px;
  border: 1px solid #c4d299;
  border-radius: 4px;
  position: relative;
  opacity: .85;
}
.viewfinder:before,.viewfinder:after {
  content: "";
  position: absolute;
  background: #c4d299;
  opacity: .6;
}
.viewfinder:before {
  width: 1px;
  height: 18px;
  left: 30px;
  top: 13px;
}
.viewfinder:after {
  height: 1px;
  width: 18px;
  left: 22px;
  top: 21px;
}
.frame-caption {
  position: absolute;
  bottom: 13px;
  font-size: 6px;
  color: #798b67;
  letter-spacing: 3px;
}
.small-orbit {
  height: 12px;
  width: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  right: 8px;
  top: 9px;
  box-shadow: 0 0 0 7px #e9ef9b08;
}
.eyebrow {
  font-size: 10px;
  color: #a1ae91;
  letter-spacing: 1.4px;
  display: block;
  margin-bottom: 10px;
}
.empty h2 {
  font-size: 34px;
  line-height: 1.45;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 0 0 13px;
  color: #f1f3e8;
}
.empty-copy {
  font-size: 12px;
  line-height: 1.9;
  color: #9ea991;
}
.empty-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 25px 0 20px;
}
.empty-actions .primary span {
  margin-left: 28px;
}
.empty-footnote {
  font-size: 9px;
  letter-spacing: .6px;
  color: #748267;
}
.photo-area {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 32px 16px;
}
.photo-area[hidden] {
  display: none;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 16px;
}
.photo-card {
  padding: 0;
  border: 1px solid #343e2c;
  background: #20261c;
  overflow: hidden;
  text-align: left;
  min-width: 0;
  border-radius: 9px;
  position: relative;
  transition: border-color .15s;
}
.photo-card:hover {
  background: #26301f;
  border-color: #96a47c;
}
.photo-card .thumb {
  aspect-ratio: 1.46;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #12170f;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb-fallback {
  font-size: 26px;
  color: #3d4c30;
  font-weight: 200;
}
.photo-card-info {
  padding: 10px 11px 11px;
}
.photo-card-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
}
.photo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 9px;
  color: #9fad8d;
}
.card-tag {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #182013df;
  font-size: 9px;
  color: #d5dfbf;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  padding: 24px 0 4px;
}
.pagination span {
  font-size: 10px;
  color: #8b9a7a;
  margin-right: auto;
}
.pagination button {
  font-size: 10px;
  padding: 5px 11px;
}
.no-results {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
.banner {
  margin: 0 32px 17px;
  padding: 10px 13px;
  border: 1px solid #5a6541;
  background: #29311d;
  border-radius: 8px;
  color: #dae5b9;
  font-size: 11px;
}
.banner.error {
  border-color: #755042;
  background: #362b23;
  color: var(--danger);
}
.statusbar {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-top: 1px solid #303b28;
  color: #899a76;
  font-size: 10px;
  flex-shrink: 0;
  gap: 20px;
}
.statusbar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
dialog {
  border: 1px solid #4a5140;
  color: var(--ink);
  background: #22291e;
  box-shadow: 0 28px 100px #0009;
  border-radius: 16px;
  padding: 0;
  max-height: calc(100vh - 54px);
  outline: none;
  -webkit-app-region: no-drag;
}
/* Electron hit testing otherwise lets the background title bar consume a
   pointer click on a dialog's close button, even in the top layer. */
body:has(dialog[open]) .topbar, body:has(dialog[open]) .traffic-space {
  -webkit-app-region: no-drag;
}
dialog::backdrop {
  background: #090e08bb;
  backdrop-filter: blur(5px);
}
.modal {
  width: 580px;
  padding: 28px;
  overflow: auto;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 23px;
}
.modal-head>div {
  flex: 1;
  min-width: 0;
}
.modal-head h2 {
  font-size: 22px;
  word-break: break-word;
}
.modal-head button {
  border: 0;
  padding: 4px 7px;
  background: transparent;
  color: #a9b797;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  -webkit-app-region: no-drag;
}
#settings-dialog .modal-head {
  position: sticky;
  top: -28px;
  z-index: 2;
  margin: -28px -28px 23px;
  padding: 20px 20px 16px 28px;
  background: #22291e;
  border-bottom: 1px solid #4a5140;
}
.model-selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.model-selectors select { width: 100%; min-width: 0; }
.model-catalog { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.model-catalog .field-note { flex: 1; min-width: 180px; margin: 0; }
@media (max-width: 560px) { .model-selectors { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.modal-head .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.modal label {
  display: block;
  font-size: 11px;
  color: #bfcbb1;
  margin-top: 17px;
}
.modal .composition-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #48523c; border-radius: 9px; margin: 15px 0; cursor: pointer; }
.composition-option input { width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--accent); }
.composition-option span { display: block; }
.composition-option small { display: block; color: var(--muted); margin-top: 5px; line-height: 1.6; font-weight: normal; }
.modal label input,.modal label textarea,.modal label select {
  margin-top: 7px;
}
.field-note {
  color: #93a180;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 8px;
}
.modal .consent {
  display: flex;
  gap: 11px;
  font-size: 10px;
  line-height: 1.8;
  color: #b4c29f;
  padding-top: 5px;
}
.consent input {
  margin: 3px 0 !important;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 23px;
}
.modal-actions>span {
  font-size: 10px;
  color: #9eae8a;
  max-width: 290px;
}
.model-details {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 18px;
  display: grid;
  gap: 6px;
}
.model-role {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-radius: 6px;
  background: #182113;
  padding: 8px 11px;
}
.model-role code {
  color: #d9e6bc;
  font-size: 10px;
  overflow-wrap: anywhere;
  text-align: right;
}
.settings-divider {
  height: 1px;
  background: #3c4930;
  margin: 24px 0;
}
.lr-setup h3 {
  margin-bottom: 7px;
  color: #cedbbd;
  font-size: 12px;
}
.lr-setup p,.help-content p {
  font-size: 11px;
  line-height: 1.9;
  color: #a6b596;
  margin-bottom: 14px;
}
.lr-setup>div {
  display: flex;
  gap: 6px;
}
.lr-setup button {
  font-size: 10px;
  padding: 7px 10px;
}
.asset-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #35412c;
}
.asset-row b {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.asset-row small {
  color: #9cac8a;
  font-size: 10px;
}
.asset-row button {
  font-size: 10px;
}
.help-content h3 {
  color: #d5dfc7;
  margin: 19px 0 8px;
}
.photo-dialog {
  width: calc(100vw - 58px);
  height: calc(100vh - 58px);
  max-width: 1800px;
  max-height: none;
  overflow: hidden;
  background: #191e16;
}
.photo-dialog-head {
  height: 77px;
  padding: 17px 23px;
  border-bottom: 1px solid #38442d;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.photo-dialog-head .eyebrow {
  font-size: 8px;
  margin: 0 0 3px;
}
.photo-dialog-head h2 {
  font-size: 18px;
}
.head-actions {
  display: flex;
  gap: 6px;
}
.head-actions button {
  padding: 6px 11px;
}
.photo-content {
  height: calc(100% - 77px);
  display: grid;
  grid-template-columns: minmax(0,1fr) 287px;
}
.viewer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #0d110b;
}
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  gap: 10px;
  flex-shrink: 0;
}
.viewer-toolbar>span {
  font-size: 10px;
  color: #81936c;
}
.comparison {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 20px;
  overflow: hidden;
  --split: 50%;
}
.comparison>img,.before-clip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.before-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.image-label {
  position: absolute;
  top: 16px;
  font-size: 9px;
  background: #0a0f08b3;
  padding: 4px 8px;
  color: #e0e9d3;
  border-radius: 4px;
  pointer-events: none;
}
.image-label.before {
  left: 13px;
}
.image-label.after {
  right: 13px;
}
.comparison-line {
  position: absolute;
  left: var(--split);
  width: 1px;
  top: 0;
  bottom: 0;
  background: #e4edd6bb;
  pointer-events: none;
}
.comparison-line span {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%,-50%);
  background: #e8efdc;
  color: #28321e;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.comparison input[type=range] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}
.comparison.single .before-clip,.comparison.single .comparison-line,.comparison.single .before,.comparison.single input {
  display: none;
}
.comparison.zoomed {
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.comparison.zoomed>img {
  width: auto;
  height: auto;
  max-width: none;
  object-fit: initial;
  flex-shrink: 0;
}
.comparison.zoomed .before-clip,.comparison.zoomed .comparison-line,.comparison.zoomed .before,.comparison.zoomed input {
  display: none;
}
.viewer-bottom {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #81936c;
  flex-shrink: 0;
}
.viewer-bottom button {
  font-size: 10px;
  padding: 3px 0;
}
.inspector {
  padding: 20px;
  overflow: auto;
  background: #20291a;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.badge {
  border-radius: 5px;
  display: inline-flex;
  padding: 4px 8px;
  font-size: 9px;
  color: #d6e4bb;
  background: #374929;
  width: max-content;
}
.badge.error {
  color: #f0b79c;
  background: #50362a;
}
.badge.done {
  color: #c6e8be;
  background: #30462c;
}
.inspector h3 {
  font-size: 10px;
  color: #98aa85;
  margin-top: 7px;
}
.reason {
  font-size: 12px;
  line-height: 1.85;
  color: #d6e0c9;
}
.photo-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.photo-buttons button {
  font-size: 10px;
  padding: 7px 9px;
}
.parameters {
  display: grid;
  gap: 0;
  font-size: 10px;
}
.parameter {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid #34452a;
}
.parameter span:first-child {
  color: #a7ba93;
}
.parameter span:last-child {
  color: #dbe7ca;
  font-variant-numeric: tabular-nums;
}
.versions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.version-row {
  font-size: 10px;
  border-left: 1px solid #6c8355;
  padding-left: 10px;
  color: #b7c9a1;
}
.version-row small {
  display: block;
  color: #81996d;
  font-size: 9px;
}
.inspector-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.inspector-foot button {
  font-size: 10px;
}
.error-box {
  padding: 11px 12px;
  border: 1px solid #725640;
  border-radius: 7px;
  color: #f0bf9e;
  background: #3b2d21;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.toasts {
  position: fixed;
  bottom: 50px;
  left: calc(50% + 122px);
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
  pointer-events: none;
}
.toast {
  padding: 12px 17px;
  background: #e1e8cf;
  border: 1px solid #f0f6e4;
  box-shadow: 0 6px 36px #0007;
  color: #28331c;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 10px;
  animation: toast-in .2s ease;
}
.toast.error {
  background: #f0c8ac;
  border-color: #ffe0c5;
  color: #412c1b;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[hidden] {
  display: none !important;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: #677a4a66;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}
@media (max-width:1190px) {
  .shell {
    grid-template-columns: 216px minmax(0,1fr);
  }
  .brand {
    padding-left: 20px;
  }
  .job-nav-name b {
    max-width: 145px;
  }
  .pipeline {
    gap: 9px;
    padding: 13px;
  }
  .pipeline>div {
    gap: 6px;
  }
  .lane-index {
    display: none;
  }
  .topbar {
    padding-left: 26px;
    padding-right: 26px;
  }
  .pipeline,.contextbar {
    margin-left: 26px;
    margin-right: 26px;
  }
  .context-actions>span {
    display: none;
  }
  .photo-area {
    padding-left: 26px;
    padding-right: 26px;
  }
  .photo-content {
    grid-template-columns: minmax(0,1fr) 260px;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill,minmax(155px,1fr));
    gap: 12px;
  }
  .toasts {
    left: calc(50% + 108px);
  }
}
@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* Neutral photographic surround: accents remain yellow; image judgment is never
   made against a green-tinted canvas. */
:root {
  --bg: #171819;
  --panel: #202122;
  --line: #393b38;
  --muted: #a2a59e;
  --ink: #eeeede;
}
.sidebar {
  background: #202221;
}
.job-nav.active {
  background: #30332c;
  border-color: #4b5141;
}
.job-nav:hover {
  background: #2d302a;
}
.empty-art .f-back {
  background: #262925;
}
.empty-art .f-front {
  background: linear-gradient(140deg,#343831,#1f211e);
}
.pipeline {
  background: #212320;
  border-color: #3c4037;
}
.segmented {
  background: #171a14;
}
.photo-card {
  background: #252722;
  border-color: #3a4033;
}
.thumb {
  background: #141511 !important;
}
.modal {
  background: #272b24;
}
.photo-dialog {
  background: #1c1e1a;
}
.inspector {
  background: #282c24;
}
.viewer {
  background: #11120f;
}
.frame-caption {
  color: #9ba48e;
}
.field-note {
  color: #a8b099;
}
.lr-setup p,.help-content p {
  color: #b5bda8;
}

/* Browser touch layouts; the native desktop window keeps its existing layout. */
.mobile-navigation,.mobile-backdrop,.mobile-progress,.mobile-inspector-head { display: none; }
.photo-load-status { padding: 20px; color: var(--muted); text-align: center; }
body[data-remote="true"] button { touch-action: manipulation; }
@media (max-width: 900px) {
  /* One document scrolls on a phone. A shrinking nested photo pane can otherwise
     lose its entire height to wrapped controls and Safari's browser chrome. */
  body[data-remote="true"] { overflow-x: hidden; overflow-y: auto; }
  body[data-remote="true"].navigation-open, body[data-remote="true"]:has(dialog[open]) { overflow: hidden; }
  body[data-remote="true"] .shell { display: block; height: auto; min-height: 100svh; }
  body[data-remote="true"] .workspace { height: auto; min-height: 100svh; }
  body[data-remote="true"] .sidebar { position: fixed; inset: 0 auto 0 0; width: min(310px,88vw); height: 100dvh; z-index: 21; transform: translateX(-100%); visibility: hidden; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  body[data-remote="true"].navigation-open .sidebar { transform: none; visibility: visible; }
  body[data-remote="true"].navigation-open .mobile-backdrop { display: block; position: fixed; inset: 0; border: 0; border-radius: 0; background: #0009; z-index: 20; width: 100%; height: 100dvh; }
  body[data-remote="true"] .mobile-navigation { display: block; min-width: 44px; min-height: 44px; }
  body[data-remote="true"] #mobile-nav-close { margin: 6px 16px; align-self: flex-end; }
  body[data-remote="true"] .traffic-space { display: none; }
  body[data-remote="true"] .topbar { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; height: auto; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left)); }
  body[data-remote="true"] .title h1 { font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
  body[data-remote="true"] .top-actions { display: none; }
  body[data-remote="true"] .mobile-progress { display: block; margin: 0 12px 12px; color: var(--muted); font-size: 12px; }
  body[data-remote="true"] .pipeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 12px; margin: 0 12px 12px; }
  body[data-remote="true"] .pipeline i { display: none; }
  body[data-remote="true"] .pipeline>div { font-size: 12px; min-width: 0; }
  body[data-remote="true"] .contextbar { display: grid; grid-template-columns: minmax(0,1fr) auto; margin: 0 12px 12px; gap: 10px; }
  body[data-remote="true"] .contextbar[hidden] { display: none; }
  body[data-remote="true"] #filters { width: 100%; grid-column: 1 / -1; }
  body[data-remote="true"] #filters button { flex: 1; }
  body[data-remote="true"] #search { max-width: none; width: 100%; font-size: 16px; }
  body[data-remote="true"] .context-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column: 1 / -1; width: 100%; margin: 0; gap: 6px; }
  body[data-remote="true"] .context-actions>span { grid-column: 1 / -1; }
  body[data-remote="true"]:not(.project-tools-open) .pipeline,
  body[data-remote="true"]:not(.project-tools-open) .context-actions,
  body[data-remote="true"]:not(.project-tools-open) #workflow-info { display: none; }
  body[data-remote="true"] .context-actions button { white-space: normal; font-size: 12px; min-width: 0; }
  body[data-remote="true"] button,body[data-remote="true"] [role="button"] { min-height: 44px; }
  body[data-remote="true"] .photo-area { flex: none; overflow: visible; padding: 0 12px 20px; }
  body[data-remote="true"] .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1px; column-gap: 10px; row-gap: 0; align-items: start; }
  body[data-remote="true"] .photo-card .thumb { aspect-ratio: var(--photo-ratio, 4 / 3); background: #101211; }
  body[data-remote="true"] .photo-card-info { padding: 9px 10px; display: block; }
  body[data-remote="true"] .photo-card-name { min-width: 0; font-size: 12px; }
  body[data-remote="true"] .photo-card-meta { gap: 6px; margin-top: 4px; }
  body[data-remote="true"].gallery-large .photo-grid { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; gap: 16px; }
  body[data-remote="true"].gallery-large .photo-card-info { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
  body[data-remote="true"].gallery-large .photo-card-name { flex: 1; font-size: 13px; }
  body[data-remote="true"].gallery-large .photo-card-meta { margin: 0; flex: none; }
  body[data-remote="true"] .banner,body[data-remote="true"] .workflow-info { margin-left: 12px; margin-right: 12px; }
  body[data-remote="true"] .statusbar { position: static; height: auto; min-height: 38px; margin-top: auto; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 4px; }
  body[data-remote="true"] .statusbar span { white-space: normal; overflow-wrap: anywhere; }
  body[data-remote="true"] #status-detail { display: none; }
  body[data-remote="true"] .modal { width: calc(100vw - 16px); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 20px 16px; }
  body[data-remote="true"] #settings-dialog .modal-head { top: -20px; margin: -20px -16px 20px; padding: 16px; }
  body[data-remote="true"] input,body[data-remote="true"] textarea,body[data-remote="true"] select { font-size: 16px; }
  body[data-remote="true"] .photo-dialog { position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; border-radius: 0; border: 0; }
  body[data-remote="true"] .photo-dialog[open] { display: flex; flex-direction: column; }
  body[data-remote="true"] .photo-dialog-head { flex: none; height: auto; min-height: calc(64px + env(safe-area-inset-top)); padding: calc(8px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left)); gap: 8px; }
  body[data-remote="true"] .photo-dialog-head>div:first-child { min-width: 0; }
  body[data-remote="true"] .photo-dialog-head h2 { font-size: 14px; overflow-wrap: anywhere; }
  body[data-remote="true"] .head-actions { flex: none; }
  body[data-remote="true"] .head-actions button { min-width: 44px; padding: 6px; }
  body[data-remote="true"] .photo-content { display: flex; position: relative; flex: 1; min-height: 0; height: auto; overflow: hidden; }
  body[data-remote="true"] .viewer { width: 100%; height: 100%; min-height: 0; position: relative; padding-bottom: env(safe-area-inset-bottom); }
  body[data-remote="true"] .viewer-toolbar { order: 2; padding: 8px 12px; flex-wrap: wrap; justify-content: center; background: #191d18; }
  body[data-remote="true"] .viewer-toolbar>span { display: none; }
  body[data-remote="true"] .viewer-toolbar .segmented { display: flex; gap: 8px; }
  body[data-remote="true"] .viewer-toolbar .segmented button { min-width: 72px; font-size: 13px; }
  body[data-remote="true"] .viewer-bottom { order: 3; padding: 3px 12px 8px; justify-content: center; }
  body[data-remote="true"] .comparison { margin: 0; transform: translateX(var(--photo-drag, 0px)); }
  body[data-remote="true"] .comparison.single:not(.zoomed) { touch-action: pan-y pinch-zoom; }
  body[data-remote="true"] .comparison.zoomed { touch-action: auto; }
  body[data-remote="true"] .photo-load-status { position: absolute; top: 45%; left: 0; right: 0; z-index: 1; pointer-events: none; background: #101510d9; }
  body[data-remote="true"] .comparison input[type="range"] { touch-action: pan-y; }
  body[data-remote="true"] .inspector { display: none; }
  body[data-remote="true"] .details-open .inspector { display: flex; position: absolute; inset: auto 0 0; z-index: 3; max-height: 75%; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border-top: 1px solid #68745f; background: #20271ff5; box-shadow: 0 -16px 40px #0008; }
  body[data-remote="true"] .mobile-inspector-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; padding: 12px 0; background: #20271f; }
  body[data-remote="true"] .toasts { max-width: calc(100vw - 24px); right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  body[data-remote="true"] .field-note,body[data-remote="true"] .consent { font-size: 13px; line-height: 1.65; }
  body[data-remote="true"] .upload-row small { font-size: 12px; }
  body[data-remote="true"] .reason { font-size: 14px; }
  body[data-remote="true"] #raw-upload-dialog .modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  body[data-remote="true"] #raw-upload-summary { grid-column: 1 / -1; max-width: none; font-size: 12px; }
  body[data-remote="true"] .empty { flex: none; padding-left: 16px; padding-right: 16px; overflow: visible; }
}
@media (max-width: 900px) and (orientation: landscape) {
  body[data-remote="true"] .photo-dialog-head { min-height: 48px; padding-top: env(safe-area-inset-top); padding-bottom: 0; }
  body[data-remote="true"] .viewer-toolbar { padding: 2px 12px; }
  body[data-remote="true"] .viewer-bottom { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-remote="true"] .comparison { transform: none; }
}

.folder-dialog { width: min(620px,calc(100vw - 32px)); }
.folder-shortcuts,.folder-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.folder-location>div,.folder-create>div { display: flex; gap: 8px; margin-top: 6px; }
.folder-location input,.folder-create input { flex: 1; min-width: 0; }
.folder-location button,.folder-create button { flex: none; min-height: 44px; }
.folder-current { overflow-wrap: anywhere; }
.folder-list { max-height: min(30dvh,280px); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 6px; }
.folder-entry { width: 100%; min-height: 44px; text-align: left; overflow-wrap: anywhere; }
.folder-create { margin-top: 18px; }
.folder-dialog .modal-actions { position: sticky; bottom: -32px; background: var(--panel,#20261c); padding: 12px 0; }
@media (max-width: 900px) {
  body[data-remote="true"] .folder-dialog .modal-actions { bottom: -20px; }
  body[data-remote="true"] .folder-dialog .modal-actions button { width: 100%; }
  body[data-remote="true"] .folder-location>div,body[data-remote="true"] .folder-create>div { gap: 6px; }
  body[data-remote="true"] .folder-location button,body[data-remote="true"] .folder-create button { padding: 8px; font-size: 13px; }
}

.folder-shortcuts button { font-size: 12px; padding: 8px 10px; }
