:root {
  --bg: #191a1c;
  --surface: #212224;
  --panel: #252628;
  --panel-alt: #2b2c2f;
  --line: #353639;
  --text: #d9dadd;
  --muted: #929399;
  --dim: #66686e;
  --accent: #e3b689;
  --accent-dark: #322b24;
  --green: #9aaa92;
  --radius: 5px;
  --sans: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono: "SFMono-Regular",Consolas,monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 12px/1.45 var(--sans);
  overflow: hidden;
}

button,input,select {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:hover {
  color: #fff;
}

input,select {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 0;
}

input[type=text],input:not([type]),select {
  padding: 7px 9px;
}

input[type=checkbox],input[type=radio] {
  accent-color: var(--accent);
}

input[type=range] {
  width: 100%;
  height: 16px;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: ew-resize;
  margin: 0;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--track,linear-gradient(90deg,#51545b,#b4b4b7));
  border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d1d2d4;
  box-shadow: 0 0 0 2px var(--panel);
  margin-top: -3px;
}

input[type=range]:hover::-webkit-slider-thumb {
  background: var(--accent);
  width: 11px;
  height: 11px;
  margin-top: -4px;
}

input[type=range]::-moz-range-track {
  height: 3px;
  background: #686a70;
}

input[type=range]::-moz-range-thumb {
  height: 9px;
  width: 9px;
  border: 0;
  background: #d1d2d4;
}

select {
  cursor: pointer;
  color: #c3c4c7;
}

svg.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}

i[data-icon] {
  display: inline-flex;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 7px 0;
}

kbd {
  font: 10px var(--sans);
  color: var(--muted);
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.wide {
  width: 100%;
}

.danger-text {
  color: #f3928a;
}

.small-dot {
  height: 5px;
  width: 5px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px;
  font-weight: 500;
  border-radius: var(--radius);
  white-space: nowrap;
}

.btn.accent {
  background: var(--accent);
  color: #27221f;
  border: 1px solid var(--accent);
  font-weight: 600;
}

.btn.accent:hover {
  background: #f1c99f;
}

.btn.subtle {
  background: #303134;
  border: 1px solid #414247;
}

.btn.subtle:hover {
  background: #3b3d41;
  border-color: #5c5e63;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex: none;
  color: var(--muted);
}

.icon-btn:hover,.icon-btn.active {
  background: #35373b;
  color: var(--accent);
}

.text-button {
  color: var(--accent);
  padding: 4px 6px;
  font-size: 11px;
}

.tiny {
  font-size: 10px;
}

.divider-v {
  height: 15px;
  width: 1px;
  background: var(--line);
  margin: 0 5px;
  display: inline-block;
  vertical-align: middle;
}

.slash {
  color: var(--dim);
  padding: 0 10px;
}

.file-tag {
  border: 1px solid #45464a;
  color: #a0a2a7;
  border-radius: 3px;
  padding: 1px 4px;
  font: 9px var(--mono);
  letter-spacing: .4px;
}

.section-eyebrow {
  font-size: 9px;
  letter-spacing: 1.25px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.check-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #b1b3b8;
  font-size: 11px;
  margin: 12px 0;
}

.check-label kbd {
  margin-left: auto;
}

.field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 11px;
  color: #b9bbc0;
  margin: 15px 0;
}

.field-label>input:not([type=checkbox]),.field-label>select {
  width: 100%;
}

.panel-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 18px;
}

#app {
  height: 100dvh;
  min-height: 580px;
  display: grid;
  grid-template-rows: 26px 72px minmax(0,1fr) 154px 26px;
}

.menubar {
  display: flex;
  align-items: center;
  padding: 0 17px;
  gap: 19px;
  background: #202123;
  border-bottom: 1px solid #2d2e31;
  font-size: 10px;
  color: #adafb3;
  z-index: 20;
}

.mini-brand {
  font-weight: 600;
  color: #d8d9dc;
  margin-right: 3px;
}

.menu-end {
  margin-left: auto;
  color: #6e7177;
  font-size: 9px;
  letter-spacing: .2px;
}

.menu {
  position: relative;
}

.menu>summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 0;
}

.menu-popup {
  position: absolute;
  top: 24px;
  left: -10px;
  background: #2a2c2f;
  border: 1px solid #45474d;
  box-shadow: 0 12px 32px #0006;
  border-radius: 6px;
  padding: 6px;
  min-width: 235px;
  color: var(--text);
  z-index: 99;
}

.menu-popup button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  padding: 8px;
  border-radius: 3px;
  font-size: 11px;
}

.menu-popup button:hover {
  background: #414348;
}

.app-header {
  display: flex;
  align-items: center;
  padding: 0 19px;
  gap: 25px;
  background: #252628;
  border-bottom: 1px solid #3b3c3f;
}

.identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 211px;
}

.brand-mark {
  width: 33px;
  height: 37px;
  color: var(--accent);
}

.brand-mark svg {
  width: 33px;
  height: 37px;
  stroke: currentColor;
  stroke-width: 1.2;
}

.identity h1 {
  margin: 0;
  font-weight: 550;
  font-size: 19px;
  letter-spacing: -.6px;
  color: #ececef;
}

.edition {
  font-size: 8px;
  color: #8b8c91;
  letter-spacing: 1.6px;
  margin-left: 8px;
  font-weight: 500;
  vertical-align: middle;
}

.identity-sub {
  color: #81838a;
  font-size: 10px;
  margin-top: 1px;
  letter-spacing: .15px;
}

.catalog-name {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #b2b3b8;
  flex: 1;
  min-width: 0;
}

.catalog-name>.icon {
  margin-right: 10px;
  width: 14px;
}

.catalog-name #header-collection {
  color: #777981;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modules {
  align-self: stretch;
  display: flex;
  gap: 22px;
  align-items: stretch;
}

.modules button {
  position: relative;
  padding: 0 2px;
  color: #91939a;
  font-size: 12px;
  font-weight: 500;
}

.modules button.active {
  color: var(--accent);
}

.modules button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: 4px;
}

.button-shortcut {
  padding-left: 10px;
  opacity: .7;
}

.header-actions .accent {
  height: 33px;
  padding: 0 16px;
}

.workspace {
  display: grid;
  grid-template-columns: 240px minmax(250px,1fr) 298px;
  min-height: 0;
}

.left-panel,.right-panel {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.left-panel {
  border-right: 1px solid #383a3e;
}

.right-panel {
  border-left: 1px solid #3a3b3e;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 39px;
  padding: 0 15px;
  font-size: 11px;
  color: #c4c5c9;
  font-weight: 500;
  flex: none;
}

.panel-heading>span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.panel-heading .icon {
  width: 11px;
  height: 11px;
  color: #81838b;
}

.nav-zooms {
  display: flex;
  gap: 7px;
}

.nav-zooms button {
  font-size: 8px;
  color: #71747b;
  padding: 2px;
}

.nav-zooms button.active {
  color: var(--accent);
}

.navigator-image {
  margin: 0 15px 15px;
  position: relative;
  height: 130px;
  background: #1d1e20;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  overflow: hidden;
}

.navigator-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nav-frame {
  position: absolute;
  border: 1px solid #ded9d080;
  inset: 8px 9px;
  pointer-events: none;
  display: none;
}

.navigator-panel {
  border-bottom: 1px solid var(--line);
}

.left-scroll {
  overflow: auto;
  flex: 1;
}

.collections {
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.collections .section-eyebrow {
  padding-left: 8px;
  margin: 0 0 4px;
}

.collection {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 9px;
  border-radius: 4px;
  text-align: left;
  font-size: 11px;
  color: #a4a6ac;
}

.collection .icon {
  width: 14px;
  color: #96999f;
}

.collection span {
  flex: 1;
}

.collection b {
  font-size: 10px;
  color: #6f7278;
  font-weight: 400;
}

.collection.active {
  background: #36322d;
  color: var(--accent);
}

.collection.active .icon,.collection.active b {
  color: var(--accent);
}

.collection:hover {
  background: #303235;
}

.album-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 8px 1px;
  color: #8c8f96;
  font-size: 10px;
}

.album-label .icon {
  width: 13px;
}

.demo-tag {
  font-size: 7px;
  letter-spacing: 1px;
  color: #72767f;
  background: #303236;
  padding: 2px 4px;
  border-radius: 2px;
  margin-left: auto;
}

.left-section {
  border-bottom: 1px solid var(--line);
}

.left-section>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  height: 40px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 500;
}

.left-section>summary:before,.adjust-section>summary:before {
  content: "›";
  font-size: 16px;
  color: #81838a;
  margin-right: 7px;
  transform: rotate(0deg);
  display: inline-block;
  font-weight: 400;
}

.left-section[open]>summary:before,.adjust-section[open]>summary:before {
  transform: rotate(90deg);
}

.left-section>summary>span:first-of-type {
  flex: 1;
}

.left-section>summary .muted {
  font-size: 9px;
}

.preset-filter {
  display: flex;
  margin: 0 14px 11px;
  gap: 10px;
}

.preset-filter button {
  padding: 2px 0 3px;
  color: #7d8087;
  font-size: 9px;
  border-bottom: 1px solid transparent;
}

.preset-filter button.active {
  color: var(--accent);
  border-color: var(--accent);
}

.presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 9px;
  padding: 0 14px 14px;
}

.preset {
  padding: 0;
  min-width: 0;
  text-align: left;
  color: #aaaeb5;
}

.preset .preset-image {
  height: 51px;
  background: #37383c;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid #4a4b4d;
  position: relative;
}

.preset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.preset:hover img {
  transform: scale(1.07);
}

.preset:hover .preset-image,.preset.active .preset-image {
  border-color: var(--accent);
}

.preset span {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset.active span {
  color: var(--accent);
}

.history-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  width: 100%;
  font-size: 10px;
  color: #82858e;
  text-align: left;
}

.history-item .icon {
  width: 12px;
  height: 12px;
}

.history-item.active {
  background: #33302c;
  color: #c5ab90;
}

.history-item:hover {
  background: #303235;
}

.history-item span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item small {
  font: 9px var(--mono);
  color: #696d76;
}

.history-section {
  padding-bottom: 7px;
}

.left-bottom,.right-bottom {
  height: 47px;
  padding: 8px 12px;
  border-top: 1px solid #3d3f44;
  display: flex;
  gap: 8px;
  flex: none;
}

.left-bottom .btn,.right-bottom .btn {
  flex: 1;
  height: 29px;
  font-size: 10px;
}

.left-bottom .icon,.right-bottom .icon {
  width: 13px;
  height: 13px;
}

.center-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #1c1d1f;
}

.photo-toolbar {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #232426;
  border-bottom: 1px solid #303134;
  flex: none;
  gap: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 10px;
  color: #a5a7ae;
}

.breadcrumb>.icon {
  width: 13px;
  color: #747780;
}

.breadcrumb>span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-end {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nondestructive {
  font-size: 9px;
  color: #8b908d;
  white-space: nowrap;
  display: flex;
  gap: 6px;
  align-items: center;
}

.stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1c1d1f;
  touch-action: none;
  isolation: isolate;
}

.photo-wrap {
  position: relative;
  flex: none;
  background: repeating-conic-gradient(#26282b 0% 25%,#222426 0% 50%) 50%/16px 16px;
  box-shadow: 0 5px 28px #0004;
  will-change: transform;
  user-select: none;
  line-height: 0;
}

.photo-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#photo-canvas {
  position: absolute;
  inset: 0;
}

#interaction-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}

.stage-caption {
  position: absolute;
  bottom: 16px;
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 9px;
  color: #64676f;
  letter-spacing: .15px;
}

.stage-caption span:last-child {
  color: #54585f;
}

.tool-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #303236ef;
  border: 1px solid #4a4e55;
  color: #d7d9dc;
  padding: 9px 15px;
  border-radius: 5px;
  font-size: 11px;
  box-shadow: 0 4px 20px #0003;
  white-space: nowrap;
  z-index: 5;
}

.compare-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 1px solid #fff9;
  z-index: 4;
  cursor: ew-resize;
  display: none;
}

.compare-divider span {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: -13px;
  width: 26px;
  height: 26px;
  border: 1px solid #b9b9b9;
  background: #f3ece2;
  color: #282320;
  border-radius: 50%;
  font-size: 16px;
}

.compare-label {
  display: none;
  position: absolute;
  top: 13px;
  color: #fff;
  background: #17181988;
  border: 1px solid #ffffff30;
  border-radius: 3px;
  padding: 8px;
  font-size: 8px;
  letter-spacing: 1.2px;
  z-index: 3;
}

.before-label {
  left: 13px;
}

.after-label {
  right: 13px;
}

.comparing .compare-divider,.comparing .compare-label {
  display: block;
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #1c1d1fcc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #a8abb2;
  font-size: 11px;
}

.spinner {
  height: 26px;
  width: 26px;
  border: 2px solid #4d4740;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.drop-overlay {
  display: none;
  position: absolute;
  inset: 15px;
  background: #232426f5;
  z-index: 15;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--accent);
}

.drop-overlay>.icon {
  width: 40px;
  height: 40px;
}

.drop-overlay h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 15px 0 5px;
}

.drop-overlay p {
  font-size: 11px;
  color: #96999f;
}

.stage.dragging .drop-overlay {
  display: flex;
}

.image-bottom {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-top: 1px solid #333438;
  background: #242527;
  flex: none;
  gap: 8px;
}

.view-buttons,.rating-controls,.zoom-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.before-button {
  border: 1px solid #45464b;
  font-size: 9px;
  color: #b0b2b9;
  height: 20px;
  padding: 0 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.before-button.active {
  color: var(--accent);
  border-color: var(--accent);
}

.rating-stars {
  display: flex;
  gap: 2px;
  margin: 0 5px;
}

.rating-stars button {
  padding: 0;
  width: 16px;
  height: 22px;
  color: #5f636c;
  font-size: 17px;
}

.rating-stars button.filled {
  color: #d2b48f;
}

.color-labels {
  display: flex;
  gap: 4px;
  padding-left: 4px;
}

.color-labels button {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--label);
  opacity: .6;
  padding: 0;
}

.color-labels button.active {
  outline: 1px solid white;
  outline-offset: 2px;
  opacity: 1;
}

.zoom-controls button#zoom-label {
  font: 10px var(--mono);
  min-width: 42px;
  color: #a5a7ae;
}

.zoom-controls .icon {
  width: 12px;
  height: 12px;
}

.histogram-panel {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.histogram-panel .panel-heading {
  height: 37px;
}

.hist-space {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #797d85;
}

.hist-space span {
  color: #555a65;
}

.hist-space .icon {
  width: 9px;
  height: 9px;
}

.histogram-chart {
  margin: 0 17px;
  position: relative;
  height: 80px;
  background: #202123;
  border: 1px solid #343539;
}

.histogram-chart canvas {
  width: 100%;
  height: 100%;
}

.clipping {
  position: absolute;
  top: 2px;
  color: #777a83;
  font-size: 12px;
  padding: 0 3px;
}

.clipping.shadow {
  left: 1px;
}

.clipping.highlight {
  right: 1px;
}

.clipping.active {
  color: var(--accent);
}

.hist-meta {
  display: flex;
  justify-content: space-between;
  margin: 9px 17px 0;
  font-size: 8px;
  color: #8b8e95;
  font-family: var(--mono);
}

.tool-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  height: 47px;
  border-bottom: 1px solid var(--line);
  background: #232426;
  flex: none;
}

.tool-strip>span {
  flex: 1;
}

.tool {
  height: 33px;
  width: 29px;
  display: grid;
  place-items: center;
  color: #999ca4;
  position: relative;
  padding: 0;
  border-radius: 4px;
}

.tool .icon {
  width: 19px;
  height: 19px;
}

.tool.active {
  color: var(--accent);
  background: #383129;
}

.tool.active:after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.tool:hover {
  background: #34363a;
}

.adjustment-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.edit-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px 10px;
}

.edit-title h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  color: #e0e1e4;
  letter-spacing: -.2px;
}

.edit-title>div {
  display: flex;
  align-items: center;
  gap: 3px;
}

.edit-title .text-button {
  font-size: 10px;
  color: #c5ab8d;
}

.edit-title .icon-btn {
  width: 24px;
  height: 24px;
}

.edit-title .icon {
  width: 13px;
  height: 13px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 17px 13px;
  font-size: 10px;
  color: #888c94;
}

.profile-row select {
  flex: 1;
  background: #303134;
  border-color: #404246;
  padding: 5px 8px;
  color: #c0c2c8;
  font-size: 10px;
}

.profile-row .icon {
  width: 14px;
  height: 14px;
  color: #8b8f97;
}

.adjust-section {
  border-top: 1px solid var(--line);
}

.adjust-section>summary {
  height: 39px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: #c6c8cc;
}

.adjust-section>summary>span:first-of-type {
  flex: 1;
}

.adjust-section>summary>.icon {
  width: 13px;
  height: 13px;
  color: #757983;
}

.section-status {
  font: 8px var(--sans);
  color: #7b7e85;
  letter-spacing: 1px;
}

.adjust-body {
  padding: 0 18px 12px;
}

.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 11px 0 7px;
  color: #71757f;
  font-size: 8px;
  letter-spacing: 1.1px;
  font-weight: 500;
  height: 15px;
}

.subheading select {
  border: 0;
  background: none;
  font-size: 9px;
  padding: 0;
  color: #9b9fa7;
  letter-spacing: 0;
}

.slider-control {
  height: 38px;
  position: relative;
  margin: 2px 0 0;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  font-size: 10px;
  color: #a8abb2;
  gap: 8px;
}

.slider-top label {
  cursor: default;
  white-space: nowrap;
  flex: 1;
}

.slider-value {
  border: 1px solid transparent;
  background: none;
  width: 53px;
  text-align: right;
  padding: 0 0 0 3px;
  font: 10px var(--mono);
  color: #c2c4c9;
  height: 19px;
  border-radius: 2px;
  -moz-appearance: textfield;
}

.slider-value::-webkit-inner-spin-button,.slider-value::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.slider-value:hover,.slider-value:focus {
  background: #1d1e20;
  border-color: #4b4f57;
  outline: none;
}

.slider-control.modified .slider-value {
  color: var(--accent);
}

.slider-control input[type=range] {
  height: 17px;
}

.slider-control[data-key=temperature] {
  --track: linear-gradient(90deg,#627eac,#aab2bd,#d6b664);
}

.slider-control[data-key=tint] {
  --track: linear-gradient(90deg,#69845e,#919294,#9d6b99);
}

.slider-control[data-key=saturation],.slider-control[data-key=vibrance] {
  --track: linear-gradient(90deg,#696c72,#aa6675,#c69260);
}

.slider-control[data-key=exposure] {
  --track: linear-gradient(90deg,#46494f,#777b83,#c5c7ca);
}

.slider-control[data-key=shadowHue],.slider-control[data-key=highlightHue] {
  --track: linear-gradient(90deg,#b26c6c,#b5b563,#71a972,#699da5,#6f7bac,#a078ad,#b26c6c);
}

.curve-channels {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 7px;
}

.curve-channels>button {
  height: 22px;
  min-width: 22px;
  font: 9px var(--mono);
  color: #9297a1;
  border-radius: 3px;
}

.curve-channels>button.active {
  background: #43454b;
  color: white;
}

.curve-channels>.icon-btn {
  margin-left: auto;
}

.curve-channels .red {
  color: #c77a7a;
}

.curve-channels .green {
  color: #88b691;
}

.curve-channels .blue {
  color: #729cd5;
}

#curve-canvas {
  width: 100%;
  height: 180px;
  border: 1px solid #3c3f45;
  cursor: crosshair;
  touch-action: none;
}

.curve-note {
  font-size: 8px;
  color: #747a86;
  margin: 8px 0 2px;
  line-height: 1.6;
}

.hsl-swatches {
  display: flex;
  justify-content: space-between;
  padding: 6px 0 17px;
}

.hsl-swatches button {
  height: 14px;
  width: 14px;
  background: var(--swatch);
  border-radius: 50%;
  border: 2px solid var(--panel);
  outline: 1px solid transparent;
  padding: 0;
}

.hsl-swatches button.active {
  outline-color: #d4d6da;
}

.grading-wheels {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 0 0 12px;
}

.grading-wheels canvas {
  height: 99px;
  width: 99px;
  touch-action: none;
  cursor: crosshair;
}

.grading-wheels span {
  display: block;
  font-size: 9px;
  color: #8e929c;
  margin-top: 5px;
}

.special-panel {
  padding: 0 17px 20px;
}

.special-panel .edit-title {
  padding-left: 0;
  padding-right: 0;
}

.special-panel .field-label {
  margin: 18px 0;
}

.transform-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.transform-buttons button {
  font-size: 10px;
}

.crop-info {
  font: 11px var(--mono);
  color: #888d96;
  text-align: center;
  padding: 15px;
}

.special-panel>.btn.accent {
  margin: 8px 0;
}

.special-panel .text-button.wide {
  margin-top: 7px;
}

.mask-create {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}

.mask-create .btn {
  height: 31px;
  font-size: 9px;
  gap: 5px;
  padding: 0 8px;
  flex: 1;
}

.mask-create .icon {
  height: 12px;
  width: 12px;
}

.mask-create .active {
  color: var(--accent);
  border-color: #806c56;
}

.mask-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #2f3136;
  margin: 7px 0;
  border-radius: 4px;
  border: 1px solid #41444b;
  min-height: 34px;
  padding: 0 3px;
  font-size: 10px;
}

.mask-row.active {
  border-color: #93816a;
  background: #35322e;
}

.mask-row .mask-name {
  flex: 1;
  text-align: left;
  padding: 8px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mask-row .icon-btn {
  width: 24px;
  height: 24px;
}

.mask-row .icon {
  width: 12px;
  height: 12px;
}

.mask-hint {
  padding: 14px 0;
  color: #797f89;
  font-size: 10px;
  line-height: 1.6;
}

.info-table {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 13px 10px;
  margin: 13px 0 24px;
  font-size: 10px;
}

.info-table dt {
  color: #7c818c;
}

.info-table dd {
  margin: 0;
  color: #bcc0c8;
  overflow-wrap: anywhere;
}

.library-view {
  flex: 1;
  overflow: auto;
  padding: 27px;
  min-height: 0;
}

.library-header .section-eyebrow {
  color: #aa9278;
  font-size: 8px;
  letter-spacing: 1.8px;
}

.library-header h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.7px;
  margin: 6px 0 21px;
}

.library-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 23px;
}

.search {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #25272b;
  border: 1px solid #3e4148;
  border-radius: 5px;
  padding: 0 10px;
  flex: 1;
  min-width: 50px;
  height: 33px;
}

.search .icon {
  width: 13px;
  color: #7a808a;
}

.search input {
  border: 0;
  background: none;
  width: 100%;
  padding: 7px 0;
  font-size: 10px;
  outline: none;
}

.library-controls select {
  font-size: 9px;
  height: 33px;
  width: 94px;
  padding: 5px;
}

.library-controls .btn {
  font-size: 10px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(168px,1fr));
  gap: 17px;
}

.library-card {
  background: #282a2e;
  border: 1px solid #383c43;
  padding: 6px;
  border-radius: 5px;
  text-align: left;
  min-width: 0;
  position: relative;
}

.library-card.selected {
  border-color: var(--accent);
  background: #342f29;
}

.library-card img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.library-card .card-caption {
  padding: 9px 5px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.library-card .card-title {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c3c7cf;
}

.card-rating {
  font-size: 9px;
  color: #bea685;
  margin: 0 5px 3px;
  letter-spacing: 1px;
  min-height: 13px;
}

.library-card .card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 7px;
  letter-spacing: .7px;
  background: #1a1a1ac9;
  color: #ded5c7;
  padding: 3px 5px;
  border-radius: 2px;
}

.card-pick {
  font-size: 9px;
  color: #d7b181;
}

.empty-state {
  text-align: center;
  color: #9298a3;
  padding: 40px 0;
}

.empty-state>.icon {
  width: 35px;
  height: 35px;
}

.empty-state h3 {
  font-weight: 400;
  font-size: 18px;
}

.empty-state p {
  font-size: 11px;
}

.empty-state .btn {
  margin-top: 10px;
}

.filmstrip-section {
  background: #222325;
  border-top: 1px solid #3b3d42;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.filmstrip-heading {
  height: 34px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #26272a;
  border-bottom: 1px solid #33363c;
  flex: none;
}

.filmstrip-heading>div {
  display: flex;
  align-items: center;
  font-size: 9px;
  color: #777d88;
}

.filmstrip-heading .icon-btn {
  height: 24px;
  width: 24px;
  margin-right: 7px;
}

.filmstrip-heading .icon {
  width: 12px;
  height: 12px;
}

.filmstrip-collection {
  color: #b0b5bf;
  margin-left: 3px;
  font-weight: 500;
}

.filmstrip-current {
  margin-left: 24px;
  font: 9px var(--mono);
  color: #7e828c;
}

.filmstrip-filters {
  gap: 7px;
}

.filmstrip-filters>span:first-child {
  margin-right: 4px;
}

.filmstrip-filters .icon-btn {
  margin: 0;
}

.filmstrip-filters select {
  font-size: 9px;
  height: 23px;
  padding: 2px 8px;
  color: #a1a6af;
  background: #222429;
  border-color: #3d4148;
}

.filmstrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 15px 8px;
  min-height: 0;
  flex: 1;
  align-items: flex-start;
}

.film-card {
  padding: 5px 5px 3px;
  background: #2b2d31;
  border: 1px solid #393c43;
  flex: 0 0 128px;
  height: 91px;
  border-radius: 3px;
  position: relative;
  text-align: left;
  overflow: hidden;
}

.film-card.selected {
  border-color: var(--accent);
  background: #4a4035;
  box-shadow: 0 0 0 1px #e3b68912;
}

.film-card.active {
  background: #595149;
}

.film-card img {
  height: 62px;
  width: 100%;
  object-fit: contain;
  background: #1b1c1f;
  display: block;
}

.film-card .film-card-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font: 8px var(--mono);
  color: #8b919b;
}

.film-card.selected .film-card-caption {
  color: #d6c4ac;
}

.film-card .film-num {
  position: absolute;
  top: 8px;
  left: 9px;
  background: #141416b3;
  border-radius: 2px;
  font: 7px var(--mono);
  padding: 1px 3px;
  color: #d6d7db;
}

.film-card .film-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  color: #f1cf9f;
  line-height: 12px;
}

.film-card .film-label {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  display: inline-block;
  margin-left: 4px;
}

.film-card .film-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.film-card .film-stars {
  font-size: 6px;
  letter-spacing: 0;
  color: #d8b07f;
}

.statusbar {
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6f7580;
  background: #1b1c1f;
  font-size: 9px;
  border-top: 1px solid #31343a;
  gap: 16px;
}

.statusbar>div {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.engine-dot {
  height: 5px;
  width: 5px;
  background: #797f87;
  border-radius: 50%;
  box-shadow: 0 0 5px #89978644;
}

.engine-dot.gpu {
  background: #9ba990;
}

.engine-dot.cpu {
  background: #c5a06f;
}

#engine-label {
  color: #919b98;
}

.status-separator {
  color: #424851;
}

#save-status {
  font-size: 8px;
  color: #7a847b;
}

#save-status .icon {
  width: 10px;
  height: 10px;
}

.status-shortcuts {
  font-size: 8px;
  gap: 6px !important;
}

.status-shortcuts kbd {
  font-size: 8px;
  margin-left: 8px;
  color: #959aa3;
}

.status-shortcuts>button {
  font-size: 9px;
  border: 1px solid #4b505a;
  border-radius: 50%;
  height: 14px;
  width: 14px;
  padding: 0;
  margin-left: 8px;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #454950;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #717680;
}

[hidden] {
  display: none !important;
}

.panels-hidden .workspace {
  grid-template-columns: 0 minmax(0,1fr) 0;
}

.panels-hidden .left-panel,.panels-hidden .right-panel {
  visibility: hidden;
}

dialog {
  border: 1px solid #4b4e55;
  border-radius: 12px;
  box-shadow: 0 22px 120px #000a;
  background: #282a2e;
  color: var(--text);
  padding: 0;
  width: 470px;
  max-width: 95vw;
  max-height: 93dvh;
}

dialog::backdrop {
  background: #0b0d11b8;
  backdrop-filter: blur(5px);
}

.dialog-shell {
  padding: 27px;
  overflow: auto;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 23px;
}

.dialog-header h2 {
  font-size: 24px;
  letter-spacing: -.7px;
  font-weight: 500;
  margin: 6px 0 0;
  color: #f0f0f1;
}

.dialog-header .section-eyebrow {
  font-size: 8px;
  color: #b3997e;
  letter-spacing: 1.6px;
}

.dialog-header .icon-btn {
  margin: -7px -8px 0 0;
}

.export-summary {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 23px;
  background: #222428;
  border-radius: 6px;
  padding: 11px;
}

.export-summary img {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 3px;
}

.export-summary strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.export-summary p {
  font: 9px var(--mono);
  color: #8c939f;
  margin: 6px 0;
}

.export-color {
  font-size: 8px;
  color: #b29d84;
}

.format-picker {
  display: flex;
  gap: 9px;
  margin: 17px 0;
}

.format-picker label {
  flex: 1;
  cursor: pointer;
}

.format-picker input {
  position: absolute;
  opacity: 0;
}

.format-picker span {
  display: flex;
  flex-direction: column;
  border: 1px solid #484d56;
  border-radius: 5px;
  padding: 12px 9px;
  gap: 4px;
  background: #24262b;
}

.format-picker input:checked+span {
  background: #39322b;
  border-color: var(--accent);
}

.format-picker strong {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3px;
}

.format-picker small {
  font-size: 8px;
  color: #8f969f;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dialog-shell .field-label {
  margin: 15px 0;
  color: #acb1ba;
  font-size: 10px;
}

.dialog-shell .field-label>input:not([type=range]),.dialog-shell .field-label select {
  height: 34px;
  background: #222429;
  font-size: 11px;
}

.form-columns .field-label {
  margin: 0 0 12px;
}

.export-note {
  font-size: 9px;
  color: #7f8793;
  line-height: 1.6;
  margin: 17px 0;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #3c4149;
  padding-top: 19px;
  margin-top: 22px;
}

.dialog-footer .btn {
  height: 35px;
  font-size: 11px;
}

.help-shell {
  padding: 29px;
}

.help-intro {
  font-size: 12px;
  color: #aeb4bf;
  line-height: 1.7;
  margin-bottom: 23px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  font-size: 10px;
  color: #a4adba;
}

.shortcut-grid>span:nth-child(2n) {
  text-align: right;
}

.shortcut-grid kbd {
  padding: 3px 5px;
  border: 1px solid #4c5260;
  border-radius: 3px;
  background: #22262c;
  font-size: 9px;
  line-height: 1.8;
}

.help-shell>.panel-note {
  font-size: 10px;
  margin-top: 21px;
}

.help-engine {
  padding: 12px 14px;
  background: #242821;
  border: 1px solid #414738;
  border-radius: 5px;
  color: #abb7a2;
  font: 10px/1.7 var(--mono);
}

.toast {
  position: fixed;
  bottom: 195px;
  left: 50%;
  transform: translate(-50%,12px);
  background: #34363cef;
  color: #e6e6e8;
  padding: 11px 19px;
  border: 1px solid #5a5e67;
  border-radius: 6px;
  font-size: 11px;
  z-index: 200;
  box-shadow: 0 6px 24px #0005;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s,transform .18s;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

@media (min-width:1600px) {
  .workspace {
    grid-template-columns: 258px minmax(250px,1fr) 318px;
  }
  .navigator-image {
    height: 147px;
  }
  .presets .preset-image {
    height: 60px;
  }
  .slider-control {
    height: 41px;
  }
  .stage-caption {
    bottom: 21px;
  }
}

@media (max-width:1200px) {
  .workspace {
    grid-template-columns: 215px minmax(240px,1fr) 280px;
  }
  .app-header {
    gap: 15px;
    padding: 0 15px;
  }
  .identity {
    min-width: 188px;
  }
  .catalog-name {
    display: none;
  }
  .modules {
    margin-left: auto;
  }
  .tool-strip {
    gap: 13px;
  }
  .presets {
    gap: 9px;
    padding: 0 12px 12px;
  }
  .preset-filter {
    gap: 7px;
    margin-left: 12px;
  }
  .navigator-image {
    height: 117px;
  }
  .stage-caption span:last-child {
    display: none;
  }
  .color-labels {
    display: none;
  }
  .nondestructive {
    display: none;
  }
  .library-view {
    padding: 20px;
  }
  .filmstrip-current {
    display: none;
  }
}

@media (max-width:950px) {
  .workspace {
    grid-template-columns: 0 minmax(240px,1fr) 268px;
  }
  .left-panel {
    visibility: hidden;
  }
  .identity {
    min-width: 180px;
  }
  .edition {
    display: none;
  }
  .app-header {
    gap: 8px;
  }
  .modules {
    gap: 17px;
  }
  .header-actions {
    gap: 9px;
  }
  .photo-toolbar {
    padding: 0 12px;
  }
  .stage-caption {
    left: 15px;
  }
  .image-bottom {
    padding: 0 7px;
  }
  .image-bottom .divider-v {
    display: none;
  }
  .rating-controls {
    gap: 0;
  }
  .before-button {
    display: none;
  }
  .status-shortcuts {
    display: none !important;
  }
  .library-controls .btn {
    padding: 0 8px;
  }
  .library-controls select {
    display: none;
  }
}

@media (max-width:650px) {
  #app {
    grid-template-rows: 24px 59px minmax(0,1fr) 121px 24px;
  }
  .menubar {
    gap: 16px;
    padding: 0 10px;
  }
  .menu-end {
    display: none;
  }
  .app-header {
    padding: 0 10px;
  }
  .identity {
    min-width: 130px;
    gap: 7px;
  }
  .identity h1 {
    font-size: 16px;
  }
  .brand-mark,.brand-mark svg {
    width: 27px;
    height: 30px;
  }
  .identity-sub {
    font-size: 8px;
  }
  .modules {
    gap: 10px;
  }
  .modules button {
    font-size: 10px;
  }
  .modules button:last-child {
    display: none;
  }
  .header-actions>.icon-btn {
    display: none;
  }
  .header-actions .btn {
    height: 29px;
    padding: 0 9px;
    font-size: 10px;
  }
  .button-shortcut {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0,1fr) 220px;
  }
  .left-panel {
    display: none;
  }
  .tool-strip {
    padding: 0 10px;
    gap: 9px;
  }
  .tool-strip>span {
    display: none;
  }
  .tool-strip .tool {
    width: 26px;
  }
  .hist-meta {
    font-size: 7px;
    margin: 9px 10px 0;
  }
  .histogram-chart {
    margin: 0 10px;
  }
  .histogram-panel .panel-heading {
    padding: 0 10px;
  }
  .hist-space {
    font-size: 8px;
    gap: 4px;
  }
  .adjust-body {
    padding: 0 11px 10px;
  }
  .edit-title {
    padding: 12px 11px 8px;
  }
  .profile-row {
    margin: 0 11px 12px;
  }
  .adjust-section>summary {
    padding: 0 11px;
  }
  .slider-control {
    height: 38px;
  }
  .slider-top {
    font-size: 9px;
  }
  .photo-toolbar {
    height: 37px;
    padding: 0 9px;
  }
  .photo-toolbar .breadcrumb>.icon,.photo-toolbar .file-tag,.toolbar-end {
    display: none;
  }
  .photo-title {
    font-size: 8px;
  }
  .image-bottom {
    justify-content: space-between;
  }
  .rating-controls {
    display: none;
  }
  .stage-caption {
    display: none;
  }
  .view-buttons {
    gap: 0;
  }
  .view-buttons .icon-btn {
    width: 25px;
  }
  .filmstrip-heading {
    padding: 0 8px;
    height: 29px;
  }
  .filmstrip-filters>span:first-child {
    display: none;
  }
  .filmstrip-filters {
    gap: 3px;
  }
  .filmstrip-filters .divider-v {
    display: none;
  }
  .filmstrip-heading .slash {
    padding: 0 6px;
  }
  .filmstrip {
    padding: 7px 8px;
    gap: 5px;
  }
  .film-card {
    flex-basis: 101px;
    height: 76px;
    padding: 4px;
  }
  .film-card img {
    height: 49px;
  }
  .statusbar {
    padding: 0 8px;
    font-size: 7px;
    gap: 5px;
  }
  .statusbar>div {
    gap: 4px;
  }
  .statusbar #render-size {
    display: none;
  }
  .library-view {
    padding: 12px;
  }
  .library-header h2 {
    font-size: 19px;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .library-controls {
    flex-wrap: wrap;
  }
  .library-controls .search {
    flex-basis: 100%;
  }
  .library-controls .btn {
    width: 100%;
    font-size: 9px;
  }
  .right-bottom {
    padding: 8px;
    gap: 5px;
  }
  .right-bottom .btn {
    padding: 0 6px;
    font-size: 9px;
  }
  .right-bottom .icon {
    width: 11px;
  }
  .curve-note {
    font-size: 7px;
  }
  .grading-wheels canvas {
    height: 85px;
    width: 85px;
  }
  .special-panel {
    padding: 0 10px 15px;
  }
  .special-panel .edit-title h2 {
    font-size: 13px;
  }
  .mask-create .btn {
    padding: 0 4px;
    font-size: 8px;
  }
  .mask-create .icon {
    display: none;
  }
  .filmstrip-filters select {
    width: 77px;
    font-size: 8px;
  }
  .panels-hidden .workspace {
    grid-template-columns: minmax(0,1fr) 0;
  }
  .toast {
    bottom: 160px;
    font-size: 10px;
  }
  .dialog-shell {
    padding: 21px;
  }
}

#quick-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.sample-credits { margin: 16px 0; color: var(--text-muted); font-size: 11px; line-height: 1.65; }
.sample-credits summary { cursor: pointer; padding: 8px 0; }
.sample-credits a { color: #e8b783; }
