/* 웰페어고 AI 사진 편집 스튜디오 — 깔끔한 스튜디오 중립 UI */

:root {
  --ps-bg: #f1f5f9;
  --ps-surface: #ffffff;
  --ps-surface-2: #f8fafc;
  --ps-border: #dbe3ee;
  --ps-text: #0f172a;
  --ps-muted: #475569;
  --ps-accent: #1d4ed8;
  --ps-accent-soft: #eff6ff;
  --ps-accent-hover: #1e40af;
  --ps-success: #059669;
  --ps-danger: #dc2626;
  --ps-bay: #1c232d;
}

.ps-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 55px);
  min-height: 620px;
  background: var(--ps-bg);
  color: var(--ps-text);
  overflow: hidden;
  user-select: none;
}

.ps-shell [hidden],
.ps-modal[hidden] {
  display: none !important;
}

/* === Top Action Bar === */
.ps-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  background: var(--ps-surface);
  border-bottom: 1px solid var(--ps-border);
  flex-wrap: wrap;
}

.ps-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ps-sep {
  width: 1px;
  height: 22px;
  background: var(--ps-border);
  margin: 0 3px;
}

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 33px;
  padding: 0 11px;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: var(--ps-surface);
  color: var(--ps-text);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.ps-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.ps-btn:hover:not(:disabled) {
  background: var(--ps-surface-2);
  border-color: #94a3b8;
}

.ps-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.ps-btn.is-active {
  background: var(--ps-accent-soft);
  border-color: var(--ps-accent);
  color: var(--ps-accent);
}

.ps-btn-primary {
  background: var(--ps-accent);
  border-color: var(--ps-accent);
  color: #fff;
}

.ps-btn-primary:hover:not(:disabled) {
  background: var(--ps-accent-hover);
  border-color: var(--ps-accent-hover);
}

.ps-btn-success {
  background: var(--ps-success);
  border-color: var(--ps-success);
  color: #fff;
}

.ps-btn-success:hover:not(:disabled) {
  background: #047857;
  border-color: #047857;
}

.ps-btn-danger {
  color: var(--ps-danger);
  border-color: #fecaca;
}

.ps-btn-danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #f87171;
}

.ps-btn-sm {
  height: 29px;
  padding: 0 9px;
  font-size: 0.8rem;
}

.ps-btn-full {
  width: 100%;
  height: 38px;
  font-size: 0.9rem;
}

.ps-dim-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ps-muted);
  background: var(--ps-surface-2);
  border: 1px solid var(--ps-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-variant-numeric: tabular-nums;
}

/* === Contextual Tool Options Bar === */
.ps-subbar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  padding: 5px 14px;
  background: var(--ps-surface-2);
  border-bottom: 1px solid var(--ps-border);
  min-height: 40px;
  overflow-x: auto;
  font-size: 0.82rem;
}

.ps-subbar label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--ps-muted);
  white-space: nowrap;
}

.ps-subbar input[type="range"] {
  width: 82px;
  accent-color: var(--ps-accent);
}

.ps-subbar input[type="color"] {
  width: 28px;
  height: 26px;
  padding: 1px;
  border: 1px solid var(--ps-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.ps-subbar select,
.ps-subbar input[type="number"],
.ps-subbar input[type="text"] {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--ps-border);
  border-radius: 6px;
  background: #fff;
  color: var(--ps-text);
  font-size: 0.82rem;
  width: auto;
}

.ps-swatches {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ps-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  padding: 0;
  transition: transform 0.1s;
}

.ps-swatch:hover {
  transform: scale(1.15);
}

/* === Main 3-Pane Studio Workspace === */
.ps-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 356px;
}

/* Left Tool Rail */
.ps-rail {
  background: var(--ps-surface);
  border-right: 1px solid var(--ps-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  overflow-y: auto;
}

.ps-tool {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ps-muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.ps-tool svg {
  width: 18px;
  height: 18px;
}

.ps-tool:hover {
  background: var(--ps-surface-2);
  color: var(--ps-text);
}

.ps-tool.is-active {
  background: var(--ps-accent-soft);
  border-color: #bfdbfe;
  color: var(--ps-accent);
}

/* Center Canvas Bay + Multi-Photo Filmstrip */
.ps-stage-wrap {
  position: relative;
  background: var(--ps-bay);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.ps-stage-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ps-canvas-scroll {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.ps-canvas-frame {
  position: relative;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #f8fafc;
  transform-origin: center center;
}

.ps-canvas-frame canvas {
  display: block;
}

#psOverlayCanvas {
  position: absolute;
  inset: 0;
  touch-action: none;
}

/* Empty Dropzone */
.ps-empty {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
}

.ps-empty[hidden] {
  display: none;
}

.ps-empty-card {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border: 2px dashed #93c5fd;
  border-radius: 20px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ps-empty-card h2 {
  font-size: 1.32rem;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.ps-empty-card p {
  font-size: 0.91rem;
  color: var(--ps-muted);
  margin-bottom: 18px;
  line-height: 1.55;
}

.ps-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ps-feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.ps-feature-pills span {
  font-size: 0.77rem;
  font-weight: 600;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 4px 10px;
}

/* AI Loading & Batch Progress Overlay */
.ps-busy {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-busy[hidden] {
  display: none;
}

.ps-busy-box {
  background: #fff;
  color: var(--ps-text);
  padding: 20px 26px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  width: min(440px, 92%);
}

.ps-busy-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-busy-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-busy-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.ps-busy-bar-fill {
  height: 100%;
  background: var(--ps-accent);
  border-radius: 999px;
  transition: width 0.18s ease;
}

.ps-busy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ps-muted);
  font-weight: 600;
}

.ps-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #dbeafe;
  border-top-color: var(--ps-accent);
  border-radius: 50%;
  animation: psSpin 0.8s linear infinite;
  flex-shrink: 0;
}

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

/* Floating Bottom Status & Compare Pill */
.ps-stage-hud {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-toast {
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ps-toast:empty {
  display: none;
}

/* === Right Feature Panel === */
.ps-inspector {
  background: var(--ps-surface);
  border-left: 1px solid var(--ps-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ps-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--ps-surface-2);
  border-bottom: 1px solid var(--ps-border);
}

.ps-tab {
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ps-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.ps-tab:hover {
  background: #e2e8f0;
  color: var(--ps-text);
}

.ps-tab.is-active {
  background: var(--ps-surface);
  border-color: var(--ps-border);
  color: var(--ps-accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ps-tab-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.ps-pane[hidden] {
  display: none;
}

.ps-sec {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.ps-sec:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.ps-sec-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ps-text);
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ps-hint {
  font-size: 0.78rem;
  color: var(--ps-muted);
  line-height: 1.5;
  margin: 6px 0 0;
}

.ps-slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  margin-bottom: 10px;
}

.ps-slider-row label {
  font-size: 0.81rem;
  font-weight: 600;
  color: #334155;
}

.ps-slider-row output {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ps-accent);
  font-variant-numeric: tabular-nums;
}

.ps-slider-row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: var(--ps-accent);
}

.ps-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ps-select {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: var(--ps-surface-2);
  font-size: 0.83rem;
}

/* Face Mosaic Cards */
.ps-face-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.ps-face-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: var(--ps-surface-2);
}

.ps-face-item.is-masked {
  border-color: #93c5fd;
  background: #eff6ff;
}

.ps-face-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--ps-border);
  background: #cbd5e1;
  flex-shrink: 0;
}

.ps-face-meta {
  flex: 1;
  min-width: 0;
}

.ps-face-meta strong {
  display: block;
  font-size: 0.83rem;
}

.ps-face-meta small {
  color: var(--ps-muted);
  font-size: 0.74rem;
}

/* Sticker Picker */
.ps-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.ps-cat-pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--ps-border);
  background: var(--ps-surface-2);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ps-muted);
}

.ps-cat-pill.is-active {
  background: var(--ps-accent);
  border-color: var(--ps-accent);
  color: #fff;
}

.ps-sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.ps-sticker-btn {
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  background: var(--ps-surface-2);
  display: grid;
  place-items: center;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}

.ps-sticker-btn:hover {
  transform: scale(1.06);
  border-color: var(--ps-accent);
  background: #eff6ff;
}

.ps-sticker-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Background Presets & Filter Presets */
.ps-bg-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.ps-bg-chip {
  height: 30px;
  border-radius: 7px;
  border: 2px solid var(--ps-border);
  padding: 0;
}

.ps-bg-chip.is-active {
  border-color: var(--ps-accent);
  box-shadow: 0 0 0 2px #bfdbfe;
}

.ps-bg-chip.checker {
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-color: #fff;
}

.ps-preset-btn {
  padding: 8px 6px;
  border: 1px solid var(--ps-border);
  border-radius: 9px;
  background: var(--ps-surface-2);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ps-text);
  text-align: center;
}

.ps-preset-btn:hover {
  border-color: var(--ps-accent);
  background: #eff6ff;
  color: var(--ps-accent);
}

.ps-preset-btn.is-active {
  background: var(--ps-accent);
  border-color: var(--ps-accent);
  color: #fff;
}

/* Layer List */
.ps-layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-layer-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--ps-border);
  border-radius: 9px;
  background: var(--ps-surface-2);
  font-size: 0.81rem;
}

.ps-layer-row.is-selected {
  border-color: var(--ps-accent);
  background: #eff6ff;
}

.ps-layer-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

/* Dialog Modal */
.ps-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ps-modal[hidden] {
  display: none;
}

.ps-modal-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.ps-modal-card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.ps-field {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ps-field input,
.ps-field select {
  padding: 8px 10px;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: var(--ps-surface-2);
}

.ps-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* License strip */
.ps-license-box {
  font-size: 0.75rem;
  color: var(--ps-muted);
  background: var(--ps-surface-2);
  border: 1px solid var(--ps-border);
  border-radius: 9px;
  padding: 10px;
  line-height: 1.55;
}

.ps-license-box a {
  color: var(--ps-accent);
  text-decoration: underline;
}

/* === Batch Tab & Callout === */
.ps-topbar .ps-btn {
  padding: 0 9px;
  font-size: 0.81rem;
}

.ps-tab-batch {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
  padding: 7px 8px;
  white-space: nowrap;
}

.ps-tab-batch:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

.ps-tab-batch.is-active {
  background: var(--ps-accent);
  border-color: var(--ps-accent);
  color: #fff;
}

.ps-tab-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.14);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.ps-tab-batch.is-active .ps-tab-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.ps-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ps-accent-soft);
  color: var(--ps-accent);
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ps-batch-callout {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 11px;
}

/* === Bottom Multi-Photo Filmstrip Dock === */
.ps-batch-strip {
  flex-shrink: 0;
  background: var(--ps-surface);
  border-top: 1px solid var(--ps-border);
  display: flex;
  flex-direction: column;
  z-index: 8;
}

.ps-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 10px;
  background: var(--ps-surface-2);
  border-bottom: 1px solid var(--ps-border);
  flex-wrap: wrap;
}

.ps-batch-bar .ps-btn-sm {
  height: 27px;
  padding: 0 8px;
  font-size: 0.76rem;
}

.ps-batch-bar-left,
.ps-batch-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ps-batch-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ps-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ps-batch-title span {
  color: var(--ps-accent);
}

.ps-batch-sel-info {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ps-muted);
  background: #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}

.ps-batch-thumbs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #f8fafc;
}

.ps-batch-item {
  width: 124px;
  flex-shrink: 0;
  border: 2px solid var(--ps-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.14s, box-shadow 0.14s, opacity 0.14s;
}

.ps-batch-item:hover {
  border-color: #93c5fd;
}

.ps-batch-item.is-active {
  border-color: var(--ps-accent);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.22);
}

.ps-batch-item.is-unchecked {
  opacity: 0.56;
}

.ps-batch-thumb-box {
  position: relative;
  width: 100%;
  height: 68px;
  background: #0f172a;
  overflow: hidden;
}

.ps-batch-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-batch-check {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.ps-batch-check input {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--ps-accent);
  cursor: pointer;
}

.ps-batch-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ps-batch-del:hover {
  background: var(--ps-danger);
}

.ps-batch-idx {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.ps-batch-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
  background: rgba(71, 85, 105, 0.88);
  white-space: nowrap;
}

.ps-batch-status.is-detected {
  background: rgba(5, 150, 105, 0.92);
}

.ps-batch-status.is-masked {
  background: rgba(29, 78, 216, 0.94);
}

.ps-batch-fname {
  padding: 4px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ps-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
}

/* Responsive */
@media (max-width: 1060px) {
  .ps-shell {
    height: auto;
    overflow: visible;
  }
  .ps-workspace {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: minmax(520px, 70vh) auto;
  }
  .ps-inspector {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--ps-border);
  }
}

@media (max-width: 640px) {
  .ps-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(420px, 60vh) auto;
  }
  .ps-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ps-border);
    padding: 6px;
  }
  .ps-tool {
    width: auto;
    min-width: 56px;
    flex-shrink: 0;
  }
  .ps-batch-item {
    width: 108px;
  }
}
