/* Photo 3001 V12 Product Reset shell
 * The recovered V11.1 engine remains byte-authoritative. This stylesheet owns
 * only the V12 application shell, workflow, review, and output presentation.
 */

body[data-photo3001-shell="v12"] {
  --v12-canvas: #ffffff;
  --v12-ink: #101116;
  --v12-ink-soft: #2d3038;
  --v12-muted: #686f7c;
  --v12-line: #dfe3e9;
  --v12-line-strong: #cbd1da;
  --v12-surface: #f5f6f8;
  --v12-surface-blue: #f3f6ff;
  --v12-accent: #1768e5;
  --v12-action: #0d50bd;
  --v12-success: #08776f;
  --v12-warning: #b84d00;
  --v12-danger: #b42318;
  --v12-header-h: 68px;
  --v12-workflow-h: 58px;
  --v12-panel-w: 360px;
  --v12-filmstrip-h: 92px;
  min-height: 100dvh;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  color: var(--v12-ink);
  background: var(--v12-canvas);
  font-family: "Segoe UI", "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}

body[data-photo3001-shell="v12"] *,
body[data-photo3001-shell="v12"] *::before,
body[data-photo3001-shell="v12"] *::after {
  box-sizing: border-box;
}

.v12-skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  border: 2px solid var(--v12-action);
  border-radius: 7px;
  background: #fff;
  color: var(--v12-action);
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.v12-skip-link:focus {
  transform: translateY(0);
}

body[data-photo3001-shell="v12"] :focus-visible {
  outline: 3px solid rgba(23, 104, 229, 0.38);
  outline-offset: 2px;
}

/* Header */
body[data-photo3001-shell="v12"] .topbar {
  position: relative !important;
  z-index: 700 !important;
  top: auto !important;
  width: 100%;
  height: var(--v12-header-h);
  min-height: var(--v12-header-h) !important;
  display: grid !important;
  grid-template-columns: auto minmax(220px, 520px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v12-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-photo3001-shell="v12"] .brand-block {
  min-width: 196px;
  display: block !important;
  margin: 0 !important;
}

.v12-brand-link {
  display: inline-grid;
  grid-template-columns: 40px auto;
  align-items: center;
  gap: 11px;
  color: var(--v12-ink);
  text-decoration: none;
}

.v12-brand-link img {
  width: 40px;
  height: 40px;
  display: block;
}

.v12-brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1;
}

.v12-brand-copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.v12-brand-copy small {
  color: var(--v12-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.v12-document-name {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-left: 18px;
  border-left: 1px solid var(--v12-line);
}

.v12-document-name span {
  color: var(--v12-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

body[data-photo3001-shell="v12"] #documentTitle {
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--v12-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
}

body[data-photo3001-shell="v12"] #documentTitle:hover,
body[data-photo3001-shell="v12"] #documentTitle:focus {
  border-color: var(--v12-line-strong);
  background: var(--v12-surface);
}

.v12-status-cluster {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

body[data-photo3001-shell="v12"] .privacy-pill,
body[data-photo3001-shell="v12"] .v8-autosave-pill {
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 9px !important;
  border: 1px solid var(--v12-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--v12-muted) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  white-space: nowrap;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .privacy-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--v12-success);
  stroke-width: 1.8;
}

body[data-photo3001-shell="v12"] .v8-autosave-pill[data-state="saved"],
body[data-photo3001-shell="v12"] .v8-autosave-pill.saved {
  border-color: rgba(8, 119, 111, 0.26) !important;
  color: var(--v12-success) !important;
}

body[data-photo3001-shell="v12"] .v7-runtime-pill,
body[data-photo3001-shell="v12"] .official-product-badge,
body[data-photo3001-shell="v12"] .toolbar-divider,
body[data-photo3001-shell="v12"] #v7DiagnosticsButton {
  display: none !important;
}

body[data-photo3001-shell="v12"] .top-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 5px !important;
  margin: 0 !important;
}

body[data-photo3001-shell="v12"] .top-actions button,
body[data-photo3001-shell="v12"] .brand-product-button {
  min-height: 38px;
  border-radius: 7px !important;
  box-shadow: none !important;
  white-space: nowrap;
}

body[data-photo3001-shell="v12"] .top-actions .icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--v12-ink-soft);
}

body[data-photo3001-shell="v12"] .top-actions .icon-button:hover {
  border-color: var(--v12-line);
  background: var(--v12-surface);
}

body[data-photo3001-shell="v12"] .top-actions .ghost-button,
body[data-photo3001-shell="v12"] .brand-product-button {
  min-height: 38px !important;
  padding: 0 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--v12-ink-soft) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

body[data-photo3001-shell="v12"] .top-actions .ghost-button:hover,
body[data-photo3001-shell="v12"] .brand-product-button:hover {
  border-color: var(--v12-line) !important;
  background: var(--v12-surface) !important;
}

body[data-photo3001-shell="v12"] .top-actions .primary-button {
  min-height: 40px !important;
  padding: 0 15px !important;
  border: 1px solid var(--v12-action) !important;
  background: var(--v12-action) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Product family menu */
body[data-photo3001-shell="v12"] .brand-product-menu {
  position: fixed !important;
  z-index: 900 !important;
  top: 58px !important;
  right: 20px !important;
  left: auto !important;
  width: min(620px, calc(100vw - 40px)) !important;
  max-height: calc(100dvh - 82px);
  padding: 0 !important;
  overflow: hidden auto;
  border: 1px solid var(--v12-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 28px 80px rgba(24, 37, 61, 0.14) !important;
}

body[data-photo3001-shell="v12"] .brand-product-menu-head {
  min-height: 64px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--v12-line);
}

body[data-photo3001-shell="v12"] .brand-product-menu-head strong {
  color: var(--v12-ink);
  font-size: 15px;
}

body[data-photo3001-shell="v12"] .brand-product-menu-head span {
  color: var(--v12-muted);
}

body[data-photo3001-shell="v12"] .brand-product-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
}

body[data-photo3001-shell="v12"] .brand-product-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 17px 18px !important;
  border: 0 !important;
  border-right: 1px solid var(--v12-line) !important;
  border-bottom: 1px solid var(--v12-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--v12-ink) !important;
  text-decoration: none;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .brand-product-card:nth-child(2n) {
  border-right: 0 !important;
}

body[data-photo3001-shell="v12"] .brand-product-card:hover {
  background: var(--v12-surface) !important;
}

body[data-photo3001-shell="v12"] .brand-product-card.current {
  box-shadow: inset 4px 0 0 var(--v12-accent) !important;
  background: var(--v12-surface-blue) !important;
}

body[data-photo3001-shell="v12"] .brand-product-card strong {
  font-size: 14px;
}

body[data-photo3001-shell="v12"] .brand-product-card small {
  color: var(--v12-muted);
  line-height: 1.45;
}

body[data-photo3001-shell="v12"] .brand-product-menu-foot {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-top: 0 !important;
  background: var(--v12-surface);
}

/* Workflow */
.v12-workflow {
  position: relative;
  z-index: 650;
  height: var(--v12-workflow-h);
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(180px, auto);
  align-items: stretch;
  padding: 0 20px;
  border-bottom: 1px solid var(--v12-line);
  background: #fff;
}

.v12-workflow-step {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 8px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--v12-line);
  background: transparent;
  color: var(--v12-muted);
  text-align: left;
  cursor: pointer;
}

.v12-workflow-step::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  background: transparent;
}

.v12-workflow-step .v12-step-index {
  grid-row: 1 / 3;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid var(--v12-line-strong);
  border-radius: 50%;
  color: var(--v12-muted);
  font-size: 10px;
  font-weight: 850;
}

.v12-workflow-step strong {
  min-width: 0;
  overflow: hidden;
  color: var(--v12-ink-soft);
  font-size: 12.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-workflow-step small {
  min-width: 0;
  overflow: hidden;
  color: var(--v12-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-workflow-step:hover {
  background: var(--v12-surface);
}

.v12-workflow-step.active {
  color: var(--v12-accent);
}

.v12-workflow-step.active::after {
  background: var(--v12-accent);
}

.v12-workflow-step.active .v12-step-index,
.v12-workflow-step.complete .v12-step-index {
  border-color: var(--v12-accent);
  background: var(--v12-accent);
  color: #fff;
}

.v12-workflow-summary {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 2px;
  padding-left: 18px;
}

.v12-workflow-summary strong {
  max-width: 260px;
  overflow: hidden;
  color: var(--v12-ink-soft);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-workflow-summary span {
  color: var(--v12-muted);
  font-size: 10px;
}

/* Studio layout */
body[data-photo3001-shell="v12"] .mobile-toolbar,
body[data-photo3001-shell="v12"] .sidebar,
body[data-photo3001-shell="v12"] .workflow-bar,
body[data-photo3001-shell="v12"] .v7-quick-dock,
body[data-photo3001-shell="v12"] .v7-drawer-backdrop,
body[data-photo3001-shell="v12"] #v10PreviewStrip,
body[data-photo3001-shell="v12"] #v10Dock,
body[data-photo3001-shell="v12"] .brand-layout-notice {
  display: none !important;
}

body[data-photo3001-shell="v12"] .app-shell {
  width: 100% !important;
  max-width: none !important;
  height: calc(100dvh - var(--v12-header-h) - var(--v12-workflow-h)) !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: var(--v12-panel-w) minmax(0, 1fr);
  align-items: stretch;
  margin: 0 !important;
  overflow: hidden !important;
  background: #fff;
}

.v12-control-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-right: 1px solid var(--v12-line);
  background: #fff;
}

.v12-control-head {
  grid-row: 1;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--v12-line);
}

.v12-control-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.v12-control-head strong {
  color: var(--v12-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.v12-control-head span {
  overflow: hidden;
  color: var(--v12-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-panel-close {
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  border: 1px solid var(--v12-line);
  border-radius: 7px;
  background: #fff;
  color: var(--v12-ink-soft);
}

.v12-document-subnav {
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--v12-line);
  background: #fff;
}

.v12-document-subnav.hidden {
  display: none;
}

.v12-document-subnav button {
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 6px 3px;
  border: 0;
  border-right: 1px solid var(--v12-line);
  background: #fff;
  color: var(--v12-muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.v12-document-subnav button:last-child {
  border-right: 0;
}

.v12-document-subnav button::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  background: transparent;
}

.v12-document-subnav button:hover {
  background: var(--v12-surface);
}

.v12-document-subnav button.active {
  color: var(--v12-accent);
}

.v12-document-subnav button.active::after {
  background: var(--v12-accent);
}

.v12-panel-region {
  grid-row: 3;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

body[data-photo3001-shell="v12"] .v10-sheet,
body[data-photo3001-shell="v12"] .v10-photo-sheet {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 120ms ease, visibility 120ms ease !important;
}

body[data-photo3001-shell="v12"] .v10-sheet.open,
body[data-photo3001-shell="v12"] .v10-photo-sheet.open {
  opacity: 1 !important;
  visibility: visible !important;
}

body[data-photo3001-shell="v12"] .v10-sheet.v12-custom-panel {
  grid-template-rows: minmax(0, 1fr) !important;
}

body[data-photo3001-shell="v12"] .v10-sheet.v12-custom-panel > .v10-sheet-head {
  display: none !important;
}

body[data-photo3001-shell="v12"] .v10-sheet-head {
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--v12-line);
  background: var(--v12-surface);
}

body[data-photo3001-shell="v12"] .v10-sheet-head strong {
  color: var(--v12-ink);
  font-size: 14px;
}

body[data-photo3001-shell="v12"] .v10-sheet-head span {
  color: var(--v12-muted);
  font-size: 10.5px;
}

body[data-photo3001-shell="v12"] .v10-sheet-head .v10-close {
  display: none;
}

body[data-photo3001-shell="v12"] .v10-sheet-body,
body[data-photo3001-shell="v12"] .v10-photo-body {
  min-height: 0;
  padding: 16px 16px 28px !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  background: #fff;
}

body[data-photo3001-shell="v12"] .v10-photo-body .inspector {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .v10-photo-body .aside-header {
  display: none !important;
}

body[data-photo3001-shell="v12"] .v10-photo-body .inspector-content,
body[data-photo3001-shell="v12"] .v10-photo-body .inspector-empty {
  overflow: visible !important;
  padding: 0 !important;
}

.v12-product-footer {
  grid-row: 4;
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 16px;
  border-top: 1px solid var(--v12-line);
  background: var(--v12-surface);
  color: var(--v12-muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.v12-product-footer a {
  color: var(--v12-ink-soft);
  font-weight: 800;
  text-decoration: none;
}

/* Re-style the reused V11 controls */
body[data-photo3001-shell="v12"] .v10-panel-grid,
body[data-photo3001-shell="v12"] .v10-card-grid,
body[data-photo3001-shell="v12"] .v10-field-list {
  gap: 10px;
}

body[data-photo3001-shell="v12"] .v10-field > span,
body[data-photo3001-shell="v12"] .v10-range > span,
body[data-photo3001-shell="v12"] .field-label {
  color: var(--v12-ink-soft);
  font-size: 11px;
}

body[data-photo3001-shell="v12"] .control,
body[data-photo3001-shell="v12"] input.control,
body[data-photo3001-shell="v12"] select.control,
body[data-photo3001-shell="v12"] textarea.control,
body[data-photo3001-shell="v12"] .v10-field .control {
  min-height: 42px;
  border: 1px solid var(--v12-line-strong) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--v12-ink) !important;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .v10-color {
  height: 42px;
  border: 1px solid var(--v12-line-strong);
  border-radius: 7px;
}

body[data-photo3001-shell="v12"] .v10-card {
  min-height: 96px;
  border: 1px solid var(--v12-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .v10-card:hover {
  border-color: var(--v12-line-strong) !important;
  background: var(--v12-surface) !important;
}

body[data-photo3001-shell="v12"] .v10-card.active {
  border-color: var(--v12-accent) !important;
  box-shadow: inset 3px 0 0 var(--v12-accent) !important;
  background: var(--v12-surface-blue) !important;
}

body[data-photo3001-shell="v12"] .v10-layout-mini,
body[data-photo3001-shell="v12"] .v10-template-icon {
  border-radius: 4px;
}

body[data-photo3001-shell="v12"] .v10-tip,
body[data-photo3001-shell="v12"] .v10-layout-status,
body[data-photo3001-shell="v12"] .v11-grid-summary,
body[data-photo3001-shell="v12"] .v10-details,
body[data-photo3001-shell="v12"] .v11-stepper {
  border: 1px solid var(--v12-line) !important;
  border-radius: 7px !important;
  background: var(--v12-surface) !important;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .v10-tip strong,
body[data-photo3001-shell="v12"] .v10-range output,
body[data-photo3001-shell="v12"] .v11-grid-summary {
  color: var(--v12-accent);
}

body[data-photo3001-shell="v12"] .v10-choice-toggle,
body[data-photo3001-shell="v12"] .v11-stepper button,
body[data-photo3001-shell="v12"] .secondary-button,
body[data-photo3001-shell="v12"] .text-button {
  border-radius: 7px !important;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .primary-button {
  border-radius: 7px !important;
  background: var(--v12-action) !important;
  box-shadow: none !important;
}

/* Canvas */
body[data-photo3001-shell="v12"] .workspace {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid !important;
  grid-template-rows: 54px minmax(0, 1fr) auto;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--v12-surface);
}

body[data-photo3001-shell="v12"] .workspace-head {
  position: relative !important;
  z-index: 3;
  min-height: 54px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v12-line) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .workspace-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

body[data-photo3001-shell="v12"] #workspaceTitle {
  overflow: hidden;
  color: var(--v12-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-photo3001-shell="v12"] #workspaceSummary {
  overflow: hidden;
  color: var(--v12-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-photo3001-shell="v12"] .workspace-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

body[data-photo3001-shell="v12"] .workspace-tools .icon-button,
body[data-photo3001-shell="v12"] .workspace-tools .secondary-button {
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--v12-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--v12-ink-soft) !important;
}

body[data-photo3001-shell="v12"] #previewZoomRange {
  width: 96px;
}

body[data-photo3001-shell="v12"] .workspace-scroll {
  position: relative;
  min-height: 0;
  padding: 28px 24px 110px !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  background: var(--v12-surface) !important;
}

body[data-photo3001-shell="v12"] .pages-stage {
  min-height: 100%;
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 0 0 36px !important;
}

body[data-photo3001-shell="v12"] .document-page {
  box-shadow: 0 18px 50px rgba(24, 37, 61, 0.12) !important;
}

.v12-empty-guide {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  width: 260px;
  display: none;
  padding: 18px;
  border: 1px solid var(--v12-line);
  border-left: 4px solid var(--v12-accent);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(25, 35, 52, 0.08);
}

.v12-empty-guide.show {
  display: grid;
  gap: 8px;
}

.v12-empty-guide strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.v12-empty-guide p {
  margin: 0;
  color: var(--v12-muted);
  font-size: 11px;
  line-height: 1.55;
}

.v12-empty-guide .v12-button-row {
  margin-top: 4px;
}

.v12-filmstrip {
  min-height: var(--v12-filmstrip-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--v12-line);
  background: #fff;
}

.v12-filmstrip.hidden {
  display: none;
}

.v12-filmstrip-action {
  width: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px;
  border: 0;
  border-right: 1px solid var(--v12-line);
  background: #fff;
  color: var(--v12-ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.v12-filmstrip-action:last-child {
  border-right: 0;
  border-left: 1px solid var(--v12-line);
}

.v12-filmstrip-action:hover {
  background: var(--v12-surface);
}

.v12-filmstrip-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.v12-filmstrip-track {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.v12-film-thumb {
  position: relative;
  flex: 0 0 78px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--v12-line-strong);
  border-radius: 7px;
  background: var(--v12-surface);
  cursor: pointer;
}

.v12-film-thumb.selected {
  border-color: var(--v12-accent);
  box-shadow: 0 0 0 2px rgba(23, 104, 229, 0.16);
}

.v12-film-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.v12-film-thumb span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(16, 17, 22, 0.8);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

/* Custom panels */
.v12-panel-stack {
  display: grid;
  gap: 18px;
}

.v12-panel-section {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--v12-line);
}

.v12-panel-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.v12-panel-section > header {
  display: grid;
  gap: 3px;
}

.v12-panel-section > header strong {
  color: var(--v12-ink);
  font-size: 12px;
  font-weight: 850;
}

.v12-panel-section > header span,
.v12-panel-copy {
  color: var(--v12-muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.v12-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.v12-action-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--v12-line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--v12-ink-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.v12-action-button:hover {
  background: var(--v12-surface);
}

.v12-action-button.primary {
  border-color: var(--v12-action);
  background: var(--v12-action);
  color: #fff;
}

.v12-action-button.danger {
  color: var(--v12-danger);
}

.v12-action-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.v12-stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--v12-line);
  color: var(--v12-muted);
  font-size: 10.5px;
}

.v12-stat-line strong {
  color: var(--v12-ink-soft);
  font-size: 11px;
}

.v12-photo-library {
  display: grid;
  border-top: 1px solid var(--v12-line);
}

.v12-photo-empty {
  padding: 26px 12px;
  color: var(--v12-muted);
  font-size: 11px;
  text-align: center;
}

.v12-photo-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--v12-line);
}

.v12-photo-row.selected {
  box-shadow: inset 3px 0 0 var(--v12-accent);
  background: var(--v12-surface-blue);
}

.v12-photo-select {
  display: contents;
}

.v12-photo-select img {
  width: 52px;
  height: 44px;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  background: var(--v12-surface);
}

.v12-photo-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.v12-photo-copy strong,
.v12-photo-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-photo-copy strong {
  color: var(--v12-ink-soft);
  font-size: 10.5px;
}

.v12-photo-copy span {
  color: var(--v12-muted);
  font-size: 9px;
}

.v12-photo-row-actions {
  display: flex;
  gap: 3px;
}

.v12-icon-action {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--v12-muted);
}

.v12-icon-action:hover {
  border-color: var(--v12-line);
  background: #fff;
  color: var(--v12-ink-soft);
}

.v12-icon-action.danger:hover {
  color: var(--v12-danger);
}

.v12-icon-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.v12-review-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--v12-line);
  border-radius: 7px;
  overflow: hidden;
}

.v12-review-summary div {
  display: grid;
  gap: 2px;
  padding: 11px;
  border-right: 1px solid var(--v12-line);
  background: #fff;
}

.v12-review-summary div:last-child {
  border-right: 0;
}

.v12-review-summary strong {
  font-size: 17px;
}

.v12-review-summary span {
  color: var(--v12-muted);
  font-size: 9.5px;
}

.v12-review-summary .error strong { color: var(--v12-danger); }
.v12-review-summary .warning strong { color: var(--v12-warning); }
.v12-review-summary .ready strong { color: var(--v12-success); }

.v12-review-list {
  display: grid;
  border-top: 1px solid var(--v12-line);
}

.v12-review-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--v12-line);
}

.v12-review-item .v12-review-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v12-surface);
  color: var(--v12-muted);
  font-size: 10px;
  font-weight: 900;
}

.v12-review-item.error .v12-review-mark {
  background: #fff0ef;
  color: var(--v12-danger);
}

.v12-review-item.warning .v12-review-mark {
  background: #fff4e8;
  color: var(--v12-warning);
}

.v12-review-item.ok .v12-review-mark {
  background: #eaf7f4;
  color: var(--v12-success);
}

.v12-review-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.v12-review-item strong {
  color: var(--v12-ink-soft);
  font-size: 10.5px;
}

.v12-review-item span {
  color: var(--v12-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.v12-review-item button {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--v12-line);
  border-radius: 6px;
  background: #fff;
  color: var(--v12-ink-soft);
  font-size: 9.5px;
  font-weight: 800;
}

.v12-output-groups {
  display: grid;
  gap: 16px;
}

.v12-output-group {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--v12-line);
}

.v12-output-group:last-child {
  border-bottom: 0;
}

.v12-output-group header {
  display: grid;
  gap: 2px;
}

.v12-output-group header strong {
  font-size: 12px;
}

.v12-output-group header span {
  color: var(--v12-muted);
  font-size: 10px;
  line-height: 1.45;
}

.v12-output-choice {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--v12-line);
  border-radius: 7px;
  background: #fff;
  color: var(--v12-ink-soft);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.v12-output-choice:hover {
  border-color: var(--v12-line-strong);
  background: var(--v12-surface);
}

.v12-output-choice.featured {
  border-color: rgba(23, 104, 229, 0.42);
  box-shadow: inset 3px 0 0 var(--v12-accent);
  background: var(--v12-surface-blue);
}

.v12-output-choice > svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.v12-output-choice > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.v12-output-choice strong {
  font-size: 11px;
}

.v12-output-choice span {
  overflow: hidden;
  color: var(--v12-muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-output-choice b {
  color: var(--v12-accent);
  font-size: 10px;
}

/* Export dialog */
body[data-photo3001-shell="v12"] .export-modal .modal-card {
  width: min(980px, calc(100vw - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  border: 1px solid var(--v12-line);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(24, 37, 61, 0.14);
}

body[data-photo3001-shell="v12"] .export-modal .modal-header {
  min-height: 70px;
  border-bottom: 1px solid var(--v12-line);
  background: #fff;
}

.v12-export-review {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--v12-line);
  border-radius: 7px;
  overflow: hidden;
}

.v12-export-review div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-right: 1px solid var(--v12-line);
  background: var(--v12-surface);
}

.v12-export-review div:last-child { border-right: 0; }
.v12-export-review strong { font-size: 12px; }
.v12-export-review span { color: var(--v12-muted); font-size: 9px; }

body[data-photo3001-shell="v12"] .export-summary {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-photo3001-shell="v12"] .quality-box {
  border: 1px solid var(--v12-line);
  border-radius: 7px;
  background: #fff;
}

body[data-photo3001-shell="v12"] .export-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px !important;
}

.v12-export-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.v12-export-group > header {
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--v12-line);
}

.v12-export-group > header strong {
  color: var(--v12-ink);
  font-size: 12px;
}

.v12-export-group > header span {
  color: var(--v12-muted);
  font-size: 9.5px;
}

.v12-export-options {
  display: grid;
  gap: 7px;
}

body[data-photo3001-shell="v12"] .export-option {
  min-height: 68px;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px !important;
  border: 1px solid var(--v12-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--v12-ink-soft) !important;
  text-align: left;
  box-shadow: none !important;
}

body[data-photo3001-shell="v12"] .export-option:hover {
  border-color: var(--v12-line-strong) !important;
  background: var(--v12-surface) !important;
}

body[data-photo3001-shell="v12"] .export-option.featured {
  border-color: rgba(23, 104, 229, 0.42) !important;
  box-shadow: inset 3px 0 0 var(--v12-accent) !important;
  background: var(--v12-surface-blue) !important;
}

body[data-photo3001-shell="v12"] .export-option svg {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
}

body[data-photo3001-shell="v12"] .export-option strong {
  font-size: 11px;
}

body[data-photo3001-shell="v12"] .export-option span {
  font-size: 9.5px;
}

.v12-pdf-continuation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 104, 229, 0.28);
  border-radius: 7px;
  background: var(--v12-surface-blue);
}

.v12-pdf-continuation div {
  display: grid;
  gap: 2px;
}

.v12-pdf-continuation strong {
  font-size: 11px;
}

.v12-pdf-continuation span {
  color: var(--v12-muted);
  font-size: 9.5px;
}

.v12-pdf-continuation a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--v12-accent);
  border-radius: 7px;
  color: var(--v12-accent);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

/* Dialogs and notifications */
body[data-photo3001-shell="v12"] dialog.modal::backdrop,
body[data-photo3001-shell="v12"] dialog.brand-product-info::backdrop {
  background: rgba(16, 17, 22, 0.36);
  backdrop-filter: blur(3px);
}

body[data-photo3001-shell="v12"] .modal-card,
body[data-photo3001-shell="v12"] .brand-info-card {
  border-radius: 12px !important;
}

body[data-photo3001-shell="v12"] .toast {
  border-radius: 7px !important;
}

/* Tablet */
@media (max-width: 1180px) {
  body[data-photo3001-shell="v12"] {
    --v12-panel-w: 320px;
  }

  body[data-photo3001-shell="v12"] .topbar {
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 10px;
  }

  .v12-status-cluster {
    display: none;
  }

  body[data-photo3001-shell="v12"] .top-actions .ghost-button {
    display: none !important;
  }

  .v12-workflow {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .v12-workflow-summary {
    display: none;
  }
}

/* Mobile */
@media (max-width: 760px) {
  body[data-photo3001-shell="v12"] {
    --v12-header-h: 60px;
    --v12-workflow-h: 66px;
    --v12-filmstrip-h: 78px;
    overflow: hidden;
  }

  body[data-photo3001-shell="v12"] .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    height: var(--v12-header-h);
    min-height: var(--v12-header-h) !important;
    padding: 0 10px !important;
  }

  body[data-photo3001-shell="v12"] .brand-block {
    min-width: 0;
  }

  .v12-brand-link {
    grid-template-columns: 34px auto;
    gap: 8px;
  }

  .v12-brand-link img {
    width: 34px;
    height: 34px;
  }

  .v12-brand-copy strong {
    font-size: 13px;
  }

  .v12-brand-copy small {
    font-size: 7.5px;
  }

  .v12-document-name {
    padding-left: 8px;
    border-left: 0;
  }

  .v12-document-name span {
    display: none;
  }

  body[data-photo3001-shell="v12"] #documentTitle {
    height: 34px;
    min-height: 34px;
    padding: 0 7px;
    font-size: 11px;
  }

  body[data-photo3001-shell="v12"] .top-actions #undoButton,
  body[data-photo3001-shell="v12"] .top-actions #redoButton,
  body[data-photo3001-shell="v12"] .top-actions #newProjectButton,
  body[data-photo3001-shell="v12"] .top-actions #openProjectButton,
  body[data-photo3001-shell="v12"] .top-actions #saveProjectButton,
  body[data-photo3001-shell="v12"] .brand-product-button span,
  body[data-photo3001-shell="v12"] #openExportButton span.v12-wide-label {
    display: none !important;
  }

  body[data-photo3001-shell="v12"] .brand-product-button,
  body[data-photo3001-shell="v12"] .top-actions .primary-button {
    width: 38px;
    min-width: 38px;
    padding: 0 !important;
  }

  body[data-photo3001-shell="v12"] .brand-product-menu {
    top: 52px !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
  }

  body[data-photo3001-shell="v12"] .brand-product-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-photo3001-shell="v12"] .brand-product-card {
    min-height: 72px;
    border-right: 0 !important;
  }

  .v12-workflow {
    position: fixed;
    z-index: 800;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--v12-workflow-h);
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    border-top: 1px solid var(--v12-line);
    border-bottom: 0;
    box-shadow: 0 -8px 30px rgba(25, 35, 52, 0.08);
  }

  .v12-workflow-step {
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 4px 2px;
    border-right: 1px solid var(--v12-line);
    text-align: center;
  }

  .v12-workflow-step::after {
    top: 0;
    right: 8px;
    bottom: auto;
    left: 8px;
    height: 3px;
  }

  .v12-workflow-step .v12-step-index {
    grid-row: auto;
    width: 22px;
    height: 22px;
    font-size: 8px;
  }

  .v12-workflow-step strong {
    font-size: 10px;
  }

  .v12-workflow-step small {
    display: none;
  }

  body[data-photo3001-shell="v12"] .app-shell {
    position: relative;
    height: calc(100dvh - var(--v12-header-h) - var(--v12-workflow-h));
    display: block !important;
  }

  .v12-control-column {
    position: fixed;
    z-index: 780;
    top: var(--v12-header-h);
    bottom: var(--v12-workflow-h);
    left: 0;
    width: min(100%, 430px);
    border-right: 1px solid var(--v12-line);
    box-shadow: 24px 0 60px rgba(24, 37, 61, 0.16);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.v12-panel-open .v12-control-column,
  body.v10-photo-open .v12-control-column {
    transform: translateX(0);
  }

  .v12-panel-close {
    display: grid;
  }

  body[data-photo3001-shell="v12"] .v10-sheet-head .v10-close {
    display: grid;
    width: 36px;
    height: 36px;
    border-radius: 7px;
  }

  body[data-photo3001-shell="v12"] .workspace {
    height: 100%;
    grid-template-rows: 48px minmax(0, 1fr) auto;
  }

  body[data-photo3001-shell="v12"] .workspace-head {
    min-height: 48px !important;
    padding: 0 10px !important;
  }

  body[data-photo3001-shell="v12"] .workspace-tools #previewZoomRange,
  body[data-photo3001-shell="v12"] .workspace-tools #previewZoomOutput,
  body[data-photo3001-shell="v12"] .workspace-tools #zoomOutButton,
  body[data-photo3001-shell="v12"] .workspace-tools #zoomInButton {
    display: none;
  }

  body[data-photo3001-shell="v12"] .workspace-scroll {
    padding: 16px 8px 90px !important;
  }

  .v12-empty-guide {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 16px);
    margin: 0 8px 14px;
  }

  .v12-filmstrip-action {
    width: 66px;
  }

  .v12-film-thumb {
    flex-basis: 66px;
    height: 58px;
  }

  .v12-export-review,
  body[data-photo3001-shell="v12"] .export-grid {
    grid-template-columns: 1fr !important;
  }

  .v12-export-review div {
    border-right: 0;
    border-bottom: 1px solid var(--v12-line);
  }

  .v12-export-review div:last-child {
    border-bottom: 0;
  }

  .v12-pdf-continuation {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v12-skip-link,
  body[data-photo3001-shell="v12"] .v10-sheet,
  body[data-photo3001-shell="v12"] .v10-photo-sheet,
  .v12-control-column {
    transition: none !important;
  }
}

@media print {
  body[data-photo3001-shell="v12"] .topbar,
  body[data-photo3001-shell="v12"] .v12-workflow,
  body[data-photo3001-shell="v12"] .v12-control-column,
  body[data-photo3001-shell="v12"] .workspace-head,
  body[data-photo3001-shell="v12"] .v12-filmstrip,
  body[data-photo3001-shell="v12"] .v12-empty-guide {
    display: none !important;
  }

  body[data-photo3001-shell="v12"] .app-shell,
  body[data-photo3001-shell="v12"] .workspace,
  body[data-photo3001-shell="v12"] .workspace-scroll {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
  }
}
