/* Phos Interactive Web Darkroom Studio — aligned with Phos v4.9.2 Liquid Glass darkroom */

.try-editor.page-width {
  margin-top: 52px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .10);
  background: linear-gradient(180deg, #131317 0%, #0d0d10 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 28px 72px -30px rgb(0 0 0 / .78);
  transition: border-color 220ms ease;
}
.try-editor.page-width[open] {
  border-color: rgb(255 255 255 / .13);
}

/* Disclosure summary bar */
.try-editor > summary.studio-disclosure-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 180ms ease;
}
.try-editor > summary.studio-disclosure-bar::-webkit-details-marker {
  display: none;
}
.try-editor > summary.studio-disclosure-bar:hover {
  background: rgb(255 255 255 / .025);
}
.try-editor .studio-disclosure-lead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-width: 0;
}
.try-editor .studio-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgb(201 168 118 / .55);
  flex: 0 0 auto;
}
.try-editor .studio-disclosure-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #f5f5f7;
}
.try-editor .studio-disclosure-sub {
  font-size: 13px;
  color: #8c8c96;
}
.try-editor .studio-disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .10);
  color: #e8e8ee;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.try-editor > summary.studio-disclosure-bar:hover .studio-disclosure-toggle {
  background: rgb(255 255 255 / .10);
  border-color: rgb(201 168 118 / .34);
  color: #ffffff;
}
.try-editor .studio-disclosure-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--accent-light);
  transition: transform 260ms var(--ease);
}
.try-editor .studio-toggle-close { display: none; }
.try-editor[open] .studio-toggle-open { display: none; }
.try-editor[open] .studio-toggle-close { display: inline; }
.try-editor[open] .studio-disclosure-toggle svg {
  transform: rotate(45deg);
}

/* Inner studio container */
.try-editor .editor-slot {
  padding: 0 20px 22px;
}
.try-editor .studio-section {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}
.try-editor .studio-noscript {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* macOS Darkroom Application Window */
.try-editor .demo.phos-studio {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #09090c;
  color: #f5f5f7;
  border: 1px solid rgb(255 255 255 / .11);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 24px 64px -22px rgb(0 0 0 / .85);
}

/* Top Window Toolbar */
.try-editor .studio-bar {
  height: 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #17171c 0%, #121216 100%);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  flex-shrink: 0;
}
.try-editor .studio-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.try-editor .studio-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.try-editor .studio-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / .14);
  transition: background-color 200ms ease;
}
.try-editor .studio-bar:hover .studio-dots i:nth-child(1) { background: #ff5f57; }
.try-editor .studio-bar:hover .studio-dots i:nth-child(2) { background: #febc2e; }
.try-editor .studio-bar:hover .studio-dots i:nth-child(3) { background: #28c840; }

.try-editor .studio-doc-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #c8c8d2;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.try-editor .studio-doc-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  color: #d8bc8e;
  background: rgb(201 168 118 / .11);
  border: 1px solid rgb(201 168 118 / .24);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Center Segmented Before/After Toggle */
.try-editor .studio-bar-center {
  display: flex;
  justify-content: center;
}
.try-editor .cmp {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 3px;
  border-radius: 999px;
  background: #09090c;
  border: 1px solid rgb(255 255 255 / .08);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .5);
}
.try-editor .cmp button {
  height: 28px;
  min-height: 28px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #8c8c96;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.try-editor .cmp button:hover {
  color: #f5f5f7;
}
.try-editor .cmp button[aria-pressed="true"] {
  color: #ffffff;
  background: linear-gradient(180deg, rgb(255 255 255 / .15) 0%, rgb(255 255 255 / .08) 100%);
  border-color: rgb(255 255 255 / .15);
  box-shadow: 0 2px 6px rgb(0 0 0 / .45);
}

/* Right Toolbar Actions */
.try-editor .studio-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.try-editor .studio-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #74747e;
  white-space: nowrap;
}
.try-editor .studio-kbd-hint kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .11);
  color: #b4b4c0;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
}
.try-editor .studio-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .10);
  color: #c2c2cc;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.try-editor .studio-reset-btn:hover {
  background: rgb(255 255 255 / .10);
  border-color: rgb(255 255 255 / .20);
  color: #ffffff;
}
.try-editor .studio-reset-btn svg {
  width: 13px;
  height: 13px;
}

/* Main Split Workspace */
.try-editor .studio-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  height: 608px;
  min-height: 0;
}

/* Left Photo Stage */
.try-editor .stage {
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #070709;
  user-select: none;
}
.try-editor .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Bottom-Center Liquid Glass HUD Chip */
.try-editor .badge {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgb(14 14 18 / .68);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgb(255 255 255 / .13);
  box-shadow: 0 8px 24px rgb(0 0 0 / .48);
  color: #f0f0f4;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.try-editor .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgb(201 168 118 / .65);
  flex: 0 0 auto;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.try-editor .badge[data-state="before"] .badge-dot {
  background: #8c8c96;
  box-shadow: none;
}

/* Right Phos Liquid Glass Inspector Panel */
.try-editor .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #131317 0%, #101014 100%);
  border-left: 1px solid rgb(255 255 255 / .08);
}

/* Always-Visible Top RGB Histogram (matches real Phos WorkspaceInspector) */
.try-editor .inspector-hist {
  flex-shrink: 0;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgb(255 255 255 / .06);
}
.try-editor .hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 500;
  color: #8c8c96;
  line-height: 1;
}
.try-editor .hist-channels {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.try-editor .hist-channels i {
  font-style: normal;
  opacity: .85;
}
.try-editor .hist-channels i:nth-child(1) { color: #e86f6f; }
.try-editor .hist-channels i:nth-child(2) { color: #64c47f; }
.try-editor .hist-channels i:nth-child(3) { color: #6ca4ef; }
.try-editor .real-hist {
  position: relative;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #09090c;
  border: 1px solid rgb(255 255 255 / .07);
}
.try-editor .real-hist canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Full-Width 4-Tab Segmented Bar (Exact 25% Equal Columns, Zero Misalignment) */
.try-editor .tabs {
  flex-shrink: 0;
  margin: 10px 14px 4px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  border-radius: 11px;
  background: #09090c;
  border: 1px solid rgb(255 255 255 / .07);
}
.try-editor .tabs button {
  height: 46px;
  min-height: 46px;
  width: 100%;
  padding: 4px 2px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #868692;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.try-editor .tabs button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  transition: color 160ms ease;
}
.try-editor .tabs button:hover {
  color: #e6e6ee;
  background: rgb(255 255 255 / .035);
}
.try-editor .tabs button[aria-selected="true"] {
  color: #f5f5f7;
  background: linear-gradient(180deg, rgb(255 255 255 / .12) 0%, rgb(255 255 255 / .06) 100%);
  border-color: rgb(255 255 255 / .13);
  box-shadow: 0 2px 7px rgb(0 0 0 / .44);
}
.try-editor .tabs button[aria-selected="true"] svg {
  color: #d8bc8e;
}

/* Scrollable Inspector Body */
.try-editor .panel > .body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / .14) transparent;
}
.try-editor .panel > .body::-webkit-scrollbar {
  width: 6px;
}
.try-editor .panel > .body::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / .14);
  border-radius: 999px;
}
.try-editor .pane {
  display: none;
}
.try-editor .pane.on {
  display: block;
  animation: studioPaneIn 180ms var(--ease);
}
@keyframes studioPaneIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}

/* Group Headers & Dividers */
.try-editor .pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 12px;
}
.try-editor .pane .control-heading {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #8c8c96;
  margin: 0;
  line-height: 1.2;
}
.try-editor .pane-tip {
  font-size: 10.5px;
  color: #666672;
}
.try-editor .pane-mini-btn {
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .09);
  color: #b4b4c0;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.try-editor .pane-mini-btn:hover {
  background: rgb(255 255 255 / .10);
  border-color: rgb(255 255 255 / .18);
  color: #ffffff;
}
.try-editor .sep {
  height: 1px;
  margin: 14px 0;
  background: rgb(255 255 255 / .07);
}

/* Precision Stacked Darkroom Sliders */
.try-editor .ctrl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label value"
    "range range";
  align-items: center;
  gap: 3px 8px;
  margin: 0 0 13px;
}
.try-editor .ctrl:last-child {
  margin-bottom: 2px;
}
.try-editor .ctrl label {
  grid-area: label;
  font-size: 12.5px;
  font-weight: 500;
  color: #dcdce4;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: color 150ms ease;
}
.try-editor .ctrl label:hover {
  color: #ffffff;
}
.try-editor .ctrl output {
  grid-area: value;
  min-width: 44px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgb(255 255 255 / .04);
  border: 1px solid rgb(255 255 255 / .06);
  color: #8c8c96;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.try-editor .ctrl[data-active="true"] output {
  color: #e2caa0;
  background: rgb(201 168 118 / .09);
  border-color: rgb(201 168 118 / .24);
}
.try-editor .ctrl input[type="range"],
.try-editor .paint-tools input[type="range"],
.try-editor .curve-access input[type="range"] {
  grid-area: range;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
}

/* Bipolar & unipolar active champagne fill tracks */
.try-editor input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgb(255 255 255 / .12) 0%,
      rgb(255 255 255 / .12) var(--f0, 0%),
      #c9a876 var(--f0, 0%),
      #dec294 var(--f1, 0%),
      rgb(255 255 255 / .12) var(--f1, 0%),
      rgb(255 255 255 / .12) 100%);
}
.try-editor .ctrl[data-bipolar="true"] input[type="range"]::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      transparent calc(50% - 0.75px),
      rgb(255 255 255 / .36) calc(50% - 0.75px),
      rgb(255 255 255 / .36) calc(50% + 0.75px),
      transparent calc(50% + 0.75px)),
    linear-gradient(90deg,
      rgb(255 255 255 / .12) 0%,
      rgb(255 255 255 / .12) var(--f0, 50%),
      #c9a876 var(--f0, 50%),
      #dec294 var(--f1, 50%),
      rgb(255 255 255 / .12) var(--f1, 50%),
      rgb(255 255 255 / .12) 100%);
}
/* White balance / Temperature optical blue-to-amber track */
.try-editor input#rTem::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      transparent calc(50% - 0.75px),
      rgb(255 255 255 / .52) calc(50% - 0.75px),
      rgb(255 255 255 / .52) calc(50% + 0.75px),
      transparent calc(50% + 0.75px)),
    linear-gradient(90deg,
      rgb(92 154 236 / .55) 0%,
      rgb(255 255 255 / .16) 50%,
      rgb(236 172 96 / .62) 100%);
}
.try-editor input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f5f5f7;
  border: 1.5px solid #0b0b0f;
  margin-top: -5px;
  box-shadow: 0 1px 4px rgb(0 0 0 / .7);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.try-editor input[type="range"]:hover::-webkit-slider-thumb,
.try-editor input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.16);
  box-shadow: 0 0 0 4px rgb(201 168 118 / .24), 0 2px 6px rgb(0 0 0 / .75);
}

/* Firefox range parity */
.try-editor input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgb(255 255 255 / .12) 0%,
      rgb(255 255 255 / .12) var(--f0, 0%),
      #c9a876 var(--f0, 0%),
      #dec294 var(--f1, 0%),
      rgb(255 255 255 / .12) var(--f1, 0%),
      rgb(255 255 255 / .12) 100%);
}
.try-editor .ctrl[data-bipolar="true"] input[type="range"]::-moz-range-track {
  background:
    linear-gradient(90deg,
      transparent calc(50% - 0.75px),
      rgb(255 255 255 / .36) calc(50% - 0.75px),
      rgb(255 255 255 / .36) calc(50% + 0.75px),
      transparent calc(50% + 0.75px)),
    linear-gradient(90deg,
      rgb(255 255 255 / .12) 0%,
      rgb(255 255 255 / .12) var(--f0, 50%),
      #c9a876 var(--f0, 50%),
      #dec294 var(--f1, 50%),
      rgb(255 255 255 / .12) var(--f1, 50%),
      rgb(255 255 255 / .12) 100%);
}
.try-editor input#rTem::-moz-range-track {
  background:
    linear-gradient(90deg,
      rgb(92 154 236 / .55) 0%,
      rgb(255 255 255 / .16) 50%,
      rgb(236 172 96 / .62) 100%);
}
.try-editor input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f5f5f7;
  border: 1.5px solid #0b0b0f;
  box-shadow: 0 1px 4px rgb(0 0 0 / .7);
}
.try-editor input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Quick Look Presets (Light Tab) */
.try-editor .quick-looks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.try-editor .quick-look-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: #17171d;
  border: 1px solid rgb(255 255 255 / .08);
  color: #d6d6de;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.try-editor .quick-look-btn:hover {
  background: #1e1e26;
  border-color: rgb(255 255 255 / .16);
  color: #ffffff;
}
.try-editor .quick-look-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, rgb(201 168 118 / .15), rgb(201 168 118 / .07));
  border-color: rgb(201 168 118 / .58);
  color: #f5f5f7;
}
.try-editor .quick-look-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / .22);
}
.try-editor .quick-look-btn[data-preset="cinema"] .quick-look-swatch {
  background: linear-gradient(135deg, #d79c5a 0%, #2f6c78 100%);
}
.try-editor .quick-look-btn[data-preset="nordic"] .quick-look-swatch {
  background: linear-gradient(135deg, #69a7c7 0%, #244056 100%);
}
.try-editor .quick-look-btn[data-preset="golden"] .quick-look-swatch {
  background: linear-gradient(135deg, #f0ba73 0%, #8b4c28 100%);
}
.try-editor .quick-look-btn[data-preset="mono"] .quick-look-swatch {
  background: linear-gradient(135deg, #f2f2f4 0%, #1c1c20 100%);
}

/* Tone Curve Box */
.try-editor .curve-box {
  padding: 8px;
  border-radius: 10px;
  background: #09090c;
  border: 1px solid rgb(255 255 255 / .08);
  overflow: hidden;
}
.try-editor .curve-box svg {
  width: 100%;
  height: 132px;
  display: block;
}
.try-editor .curve-access {
  display: grid;
  grid-template-columns: auto 66px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgb(255 255 255 / .03);
  border: 1px solid rgb(255 255 255 / .06);
  font-size: 11px;
  color: #8c8c96;
}
.try-editor .curve-access label {
  font-size: 11px;
  color: #8c8c96;
  white-space: nowrap;
}
.try-editor .curve-access select {
  height: 26px;
  min-height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  background: #17171d;
  border: 1px solid rgb(255 255 255 / .10);
  color: #ececf2;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.try-editor .curve-access .curve-input {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

/* Film Stock Cards */
.try-editor .films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.try-editor .films button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 11px 11px;
  min-height: 62px;
  border-radius: 10px;
  background: #17171d;
  border: 1px solid rgb(255 255 255 / .08);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: background 170ms ease, border-color 170ms ease, transform 150ms ease;
}
.try-editor .films button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2.5px;
  opacity: .72;
  transition: opacity 160ms ease;
}
.try-editor .films button[data-film="none"]::before  { background: linear-gradient(90deg, #52525c, #828290); }
.try-editor .films button[data-film="k2383"]::before { background: linear-gradient(90deg, #2d7a88, #d99f5c); }
.try-editor .films button[data-film="k2393"]::before { background: linear-gradient(90deg, #8b4a26, #e0a76a); }
.try-editor .films button[data-film="f3510"]::before { background: linear-gradient(90deg, #2f8b76, #6ec4d8); }
.try-editor .films button:hover {
  background: #1d1d25;
  border-color: rgb(255 255 255 / .16);
}
.try-editor .films button:hover::before { opacity: 1; }
.try-editor .films b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #f2f2f6;
  line-height: 1.25;
}
.try-editor .films span {
  display: block;
  font-size: 11px;
  color: #8a8a95;
  line-height: 1.3;
  margin-top: 0;
}
.try-editor .films button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgb(201 168 118 / .16) 0%, rgb(201 168 118 / .07) 100%);
  border-color: rgb(201 168 118 / .62);
  box-shadow: inset 0 1px 0 rgb(201 168 118 / .24);
}
.try-editor .films button[aria-pressed="true"]::before { opacity: 1; }
.try-editor .films button[aria-pressed="true"] b { color: #ffffff; }
.try-editor .films button[aria-pressed="true"] span { color: #d6c3a1; }

/* Local Mask 2-Column Tool Grid */
.try-editor .masklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.try-editor .maskrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 8px 10px;
  margin: 0;
  border-radius: 9px;
  background: #17171d;
  border: 1px solid rgb(255 255 255 / .08);
  cursor: pointer;
  user-select: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.try-editor .maskrow:hover {
  background: #1e1e26;
  border-color: rgb(255 255 255 / .16);
}
.try-editor .maskrow-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #ececf2;
  line-height: 1.25;
}
.try-editor .maskrow-title svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #9e9ea8;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.try-editor .maskrow em {
  font-style: normal;
  font-size: 10.5px;
  color: #7c7c88;
  line-height: 1.2;
  padding-left: 19px;
}
.try-editor .maskrow[aria-pressed="true"] {
  background: linear-gradient(180deg, rgb(201 168 118 / .16) 0%, rgb(201 168 118 / .07) 100%);
  border-color: rgb(201 168 118 / .62);
}
.try-editor .maskrow[aria-pressed="true"] .maskrow-title { color: #ffffff; }
.try-editor .maskrow[aria-pressed="true"] .maskrow-title svg { stroke: #d8bc8e; }
.try-editor .maskrow[aria-pressed="true"] em { color: #d6c3a1; }

/* Brush / Depth Paint Sub-tools */
.try-editor .paint-tools {
  margin: 12px 0 0;
  padding: 10px 11px;
  border-radius: 9px;
  background: rgb(255 255 255 / .03);
  border: 1px solid rgb(255 255 255 / .07);
}
.try-editor .paint-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #d4d4dc;
  margin-bottom: 4px;
}
.try-editor .paint-tools-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.try-editor .paint-tools-actions button {
  height: 30px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .10);
  color: #dcdce4;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.try-editor .paint-tools-actions button:hover {
  background: rgb(255 255 255 / .10);
  border-color: rgb(255 255 255 / .20);
  color: #ffffff;
}

/* Contextual Hint Card */
.try-editor .hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgb(255 255 255 / .03);
  border: 1px solid rgb(255 255 255 / .06);
  font-size: 11.5px;
  line-height: 1.55;
  color: #8c8c96;
}
.try-editor .hint strong {
  color: #e2caa0;
  font-weight: 500;
}

/* Discreet Footer Note Below Window */
.try-editor .demo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px 0;
  font-size: 12px;
  color: #767680;
}
.try-editor .demo-actions p {
  font-size: 12px;
  line-height: 1.5;
  color: #767680;
  margin: 0;
}
.try-editor .demo-actions-tip {
  white-space: nowrap;
  color: #8c8c96;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 1020px) {
  .try-editor .studio-workspace {
    grid-template-columns: minmax(0, 1fr) 308px;
    height: 576px;
  }
  .try-editor .studio-kbd-hint,
  .try-editor .studio-doc-tag {
    display: none;
  }
}

@media (max-width: 820px) {
  .try-editor.page-width {
    margin-top: 36px;
    border-radius: 18px;
  }
  .try-editor > summary.studio-disclosure-bar {
    padding: 16px 18px;
  }
  .try-editor .studio-disclosure-sub {
    display: none;
  }
  .try-editor .editor-slot {
    padding: 0 12px 14px;
  }
  .try-editor .studio-bar {
    height: 44px;
    padding: 0 12px;
    grid-template-columns: auto 1fr auto;
  }
  .try-editor .studio-dots { display: none; }
  .try-editor .studio-doc-name { font-size: 11.5px; max-width: 96px; }
  .try-editor .studio-workspace {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .try-editor .stage {
    height: 270px;
  }
  .try-editor .panel {
    height: auto;
    max-height: 560px;
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / .08);
  }
  .try-editor .demo-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .try-editor .pane.on { animation: none; }
  .try-editor .studio-disclosure-toggle svg { transition: none; }
}
