/* Public workspace only: the admin console retains its existing styles. */
body.studio-page {
  min-height: 100vh;
  --bg: #f6f8f5;
  --surface: #fff;
  --ink: #172b25;
  --muted: #62736b;
  --subtle: #6d7d74;
  --line: #dfe7df;
  --brand: #244d36;
  --tint: #eaf2eb;
  --success: #28725c;
  --success-bg: #edf5ef;
  --warning: #78501f;
  --warning-bg: #faf2e4;
  color: var(--ink);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
.studio-page button.primary:hover:not(:disabled) {
  background: #1b3e2b;
}
.studio-page button:hover {
  background: #edf4ee;
}
.studio-page :focus-visible {
  outline-color: #44987f;
}
.studio-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.studio-page .nav {
  min-height: 76px;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  justify-content: flex-start;
  gap: 48px;
}
.studio-page .logo {
  color: var(--ink);
  letter-spacing: -1.6px;
}
.studio-page .logo span {
  color: var(--brand);
}
.studio-page .nav nav {
  flex: 1;
  gap: 28px;
}
.studio-page #language {
  margin-inline-start: auto;
}
.studio-page .wrap {
  max-width: 1288px;
  padding: 28px 24px 20px;
}
.studio-page .workspace {
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  align-items: stretch;
  overflow: clip;
  min-height: 650px;
}
.studio-page .studio-sidebar {
  border-inline-end: 1px solid var(--line);
  min-width: 0;
}
.studio-page .sidebar-section {
  padding: 23px;
  border-bottom: 1px solid var(--line);
}
.studio-page .scenario h1 {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
.studio-page .sidebar-caption {
  margin-top: 6px;
  font-size: 12px;
}
.studio-page .field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.studio-page .scenario > .field-heading {
  margin-top: 26px;
}
.studio-page .field-heading h2 {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.studio-page .purpose-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
  padding: 12px;
  background: var(--bg);
}
.studio-page .purpose-button > span:first-child {
  min-width: 0;
}
.studio-page .purpose-button strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.studio-page .purpose-button small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.studio-page .purpose-spec {
  display: grid;
  gap: 4px;
  margin: 17px 0 6px;
}
.studio-page .purpose-spec #specSize {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: anywhere;
  margin: 0;
}
.studio-page .purpose-spec #specLimit {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.studio-page .disclosure > summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 12px;
  padding: 10px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-page .disclosure > summary::-webkit-details-marker {
  display: none;
}
.studio-page .disclosure > summary:after {
  content: "⌄";
  margin-inline-start: auto;
}
.studio-page .disclosure[open] > summary:after {
  content: "⌃";
}
.studio-page .disclosure-body {
  display: grid;
  gap: 14px;
  padding: 9px 0 2px;
}
.studio-page #ruleTitle {
  font-size: 12px;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  background: none;
}
.studio-page .specs {
  grid-template-columns: 1fr;
  background: transparent;
  border-radius: 0;
  padding: 0;
  gap: 13px;
}
.studio-page .specs dt {
  font-size: 11px;
}
.studio-page .specs dd {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.studio-page .source {
  padding-top: 12px;
  font-size: 12px;
}
.studio-page .small,
.studio-page small {
  font-size: 11px;
}
.studio-page #preparationChoice {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.studio-page #preparationChoice .background-mode-label {
  margin: 0;
}
.studio-page #preparationChoice select {
  font-size: 12px;
  padding-inline-start: 10px;
}
.studio-page #editingNotice {
  margin: 12px 0 0;
}
.studio-page .background-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.studio-page .background-swatches button {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
}
.studio-page .background-swatches button[aria-pressed="true"] {
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  background: var(--surface);
}
.studio-page .swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #b9c3bd;
  background: var(--swatch);
  flex-shrink: 0;
}
.studio-page #backgroundModeHint {
  margin-top: 12px;
  font-size: 11px;
}
.studio-page #adjustments > summary {
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}
.studio-page #adjustments[open] > summary {
  margin-bottom: 10px;
}
.studio-page #adjustments .button-row button,
.studio-page #autoCrop {
  font-size: 12px;
}
.studio-page .sidebar-privacy {
  padding: 22px;
  font-size: 11px;
}
.studio-page .sidebar-privacy:before {
  content: "◇";
  color: var(--brand);
  margin-inline-end: 7px;
}
.studio-page .studio-main {
  min-width: 0;
}
.studio-page #uploadCard,
.studio-page #editor,
.studio-page .guidance-card {
  padding: 27px 30px;
}
.studio-page .card-head {
  align-items: center;
  gap: 14px;
}
.studio-page .card-head h2 {
  font-size: 20px;
  font-weight: 600;
}
.studio-page .card-head > div {
  gap: 4px;
  min-width: 0;
}
.studio-page #resultRule {
  font-size: 11px;
  color: var(--muted);
}
.studio-page .upload-intro {
  font-size: 12px;
  margin: 10px 0 22px;
}
.studio-page .dropzone {
  background: var(--bg);
  border-color: #cbd8cf;
  min-height: 375px;
  justify-content: center;
  padding: 30px 24px;
  gap: 10px;
}
.studio-page .dropzone.dragging {
  background: var(--tint);
}
.studio-page .upload-icon {
  width: 58px;
  height: 58px;
  line-height: 58px;
  text-align: center;
  border-radius: 50%;
  background: var(--tint);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 3px;
}
.studio-page .dropzone h3 {
  font-size: 19px;
  font-weight: 600;
}
.studio-page #pick {
  margin-top: 10px;
  min-width: 200px;
}
.studio-page .upload-links {
  margin-top: 2px;
  gap: 20px;
  font-size: 12px;
}
.studio-page .quick-guide {
  margin-top: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.studio-page .quick-guide > span:before {
  content: "✓";
  color: var(--brand);
  margin-inline-end: 4px;
}
.studio-page .quick-guide button {
  font-size: 11px;
}
.studio-page .local-caption {
  margin-top: 9px;
  text-align: center;
  font-size: 11px;
}
.studio-page .photo-panel {
  margin-top: 21px;
  min-height: 398px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: var(--bg);
}
.studio-page .photo-stage {
  max-width: none;
  width: var(--preview-width, 340px);
  max-width: 100%;
  border: 5px solid white;
  background: white;
  box-shadow: 0 8px 24px #173e2420;
  margin: 0;
  flex: none;
}
.studio-page .photo-stage canvas {
  max-width: 100%;
}
.studio-page .sample-caption {
  text-align: center;
  font-size: 11px;
  margin-top: 9px;
  color: var(--muted);
}
.studio-page .photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 10px;
  color: var(--brand);
}
.studio-page .photo-toolbar button {
  font-size: 12px;
}
.studio-page #variantNotice {
  margin-top: 16px;
}
.studio-page .download-row {
  margin-top: 20px;
  gap: 10px 22px;
  align-items: center;
}
.studio-page .download-row .production-status {
  flex: 1 1 200px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: none;
}
.studio-page .production-status strong {
  font-size: 14px;
  font-weight: 500;
}
.studio-page .production-status p {
  margin-top: 5px;
}
.studio-page .download-row .download-actions {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 200px;
}
.studio-page .download-actions button {
  text-align: center;
}
.studio-page #printSheet {
  font-size: 12px;
}
.studio-page .download-row .task-status {
  flex: 1 1 100%;
  font-size: 11px;
}
.studio-page #printHint {
  margin-top: 8px;
}
.studio-page #checkDetails {
  border-top: 1px solid var(--line);
  margin: 0 30px 23px;
}
.studio-page #checkDetails summary {
  font-size: 12px;
  flex-wrap: wrap;
}
.studio-page #checkSummary {
  color: var(--warning);
  margin-inline-start: 10px;
}
.studio-page .checks > div {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.studio-page .completed-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--success);
  font-size: 11px;
}
.studio-page .completed-steps li:before {
  content: "✓ ";
}
.studio-page #attentionNotice {
  margin-top: 18px;
  margin-bottom: 0;
}
.studio-page #attentionText {
  color: inherit;
  font-size: 12px;
}
.studio-page #attentionNotice .button-row {
  margin-top: 12px;
}
.studio-page #message {
  margin: 0 30px 20px;
}
.studio-page .processing-panel {
  margin-top: 18px;
  padding: 14px;
}
.studio-page .spinner {
  border-color: #cadecf;
  border-top-color: var(--brand);
}
.studio-page .guidance-card .eyebrow {
  margin-bottom: 12px;
}
.studio-page .guidance-card h2 {
  font-size: 23px;
}
.studio-page .guidance-card > p {
  margin-top: 12px;
}
.studio-page .guide-list {
  font-size: 14px;
  line-height: 1.8;
}
.studio-page #startEditing {
  display: block;
  margin-top: 17px;
  font-size: 13px;
}
.studio-page .guidance-card.editing-guidance {
  padding: 20px 30px 0;
}
.studio-page .editing-guidance > h2 {
  font-size: 15px;
}
.studio-page .editing-guidance > .eyebrow,
.studio-page .editing-guidance > #guidanceIntro,
.studio-page .editing-guidance > #scenarioGuide,
.studio-page .editing-guidance > #officialAction {
  display: none;
}
.studio-page .original-check {
  display: grid;
  gap: 15px;
}
.studio-page .original-check h3 {
  font-size: 17px;
}
.studio-page #originalPreview {
  display: block;
  max-width: min(300px, 100%);
  max-height: 360px;
  object-fit: contain;
  margin: 0 auto;
}
.studio-page #saveOriginal {
  justify-self: start;
}
.studio-page .capabilities {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.studio-page .capabilities summary {
  cursor: pointer;
}
.studio-page .capabilities > div {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.studio-page footer {
  font-size: 11px;
  margin-top: 18px;
}
.studio-page footer .text-button {
  font-size: 11px;
}
.studio-page dialog {
  border-color: var(--line);
  border-radius: 14px;
  max-width: 600px;
}
.studio-page dialog::backdrop {
  background: #132e2470;
}
.studio-page #scenarioDialog {
  overflow-y: auto;
}
.studio-page #scenarioDialog .browse-scenarios {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}
.studio-page #applyScenario {
  width: 100%;
  margin-top: 17px;
}
.studio-page #scenarioResults {
  margin-top: 12px;
  margin-bottom: 0;
  max-height: 240px;
}
.studio-page #scenarioResults button {
  font-size: 13px;
}
.studio-page #scenarioDialog input,
.studio-page #scenarioDialog select {
  font-size: 14px;
}
@media (min-width: 761px) {
  .studio-page #adjustments {
    scroll-margin-top: 25px;
  }
}
@media (max-width: 760px) {
  .studio-page .nav {
    min-height: 64px;
    padding: 0 20px;
    gap: 20px;
  }
  .studio-page .logo {
    font-size: 27px;
  }
  .studio-page .nav nav {
    gap: 16px;
    justify-content: flex-end;
  }
  .studio-page .nav nav > a {
    display: none;
  }
  .studio-page .nav button {
    font-size: 12px;
  }
  .studio-page #language {
    margin-inline-start: 0;
  }
  .studio-page .wrap {
    padding: 16px 12px 24px;
  }
  .studio-page .workspace {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    min-height: 0;
  }
  .studio-page .studio-sidebar,
  .studio-page .studio-main {
    display: contents;
  }
  .studio-page .sidebar-section {
    padding: 19px;
  }
  .studio-page .scenario {
    order: 0;
  }
  .studio-page .scenario h1,
  .studio-page .sidebar-caption,
  .studio-page .sidebar-privacy {
    display: none;
  }
  .studio-page .scenario > .field-heading {
    margin-top: 0;
  }
  .studio-page .purpose-button {
    padding: 10px 12px;
  }
  .studio-page .purpose-spec {
    margin-top: 13px;
  }
  .studio-page #ruleDetails > summary {
    padding-bottom: 0;
  }
  .studio-page #guidanceCard {
    order: 1;
  }
  .studio-page #uploadCard {
    order: 2;
    padding: 22px 19px;
  }
  .studio-page #editor {
    order: 3;
    padding: 22px 19px;
  }
  .studio-page #backgroundSettings {
    order: 4;
    border-top: 1px solid var(--line);
  }
  .studio-page #adjustments {
    order: 5;
    scroll-margin-top: 20px;
  }
  .studio-page #checkDetails {
    order: 6;
    margin: 4px 19px 18px;
    border: 0;
  }
  .studio-page #message {
    order: 7;
    margin: 0 19px 18px;
  }
  .studio-page .card-head h2 {
    font-size: 18px;
  }
  .studio-page .card-head button {
    font-size: 12px;
  }
  .studio-page #resultRule {
    display: none;
  }
  .studio-page .dropzone {
    min-height: 315px;
    padding: 22px 14px;
  }
  .studio-page .dropzone .primary {
    min-width: 0;
    width: 100%;
  }
  .studio-page .quick-guide {
    gap: 9px 14px;
  }
  .studio-page .photo-panel {
    min-height: 280px;
    margin-top: 16px;
    padding: 18px;
  }
  .studio-page .photo-stage {
    width: var(--mobile-preview-width, 240px);
  }
  .studio-page .download-row {
    margin-top: 17px;
    gap: 10px;
  }
  .studio-page .download-row .download-actions {
    order: 0;
    flex: none;
    width: 100%;
  }
  .studio-page .download-row .production-status {
    order: 1;
    flex: none;
    text-align: center;
    width: 100%;
  }
  .studio-page .download-row .production-status strong {
    font-size: 12px;
  }
  .studio-page .download-row .task-status {
    order: 2;
    flex: none;
    width: 100%;
    text-align: center;
  }
  .studio-page .download-row .download-actions button.primary {
    min-height: 48px;
  }
  .studio-page .guidance-card {
    padding: 23px 19px;
  }
  .studio-page .guidance-card.editing-guidance {
    padding: 18px 19px 0;
  }
  .studio-page .processing-title {
    flex-wrap: wrap;
  }
  .studio-page .processing-title button {
    margin-inline-start: 26px;
  }
  .studio-page #checkSummary {
    margin-inline-start: 0;
    font-size: 11px;
  }
  .studio-page #attentionNotice .button-row {
    flex-direction: column;
  }
  .studio-page footer {
    padding: 0 5px;
    line-height: 1.8;
  }
  .studio-page footer > div {
    gap: 14px;
    flex-wrap: wrap;
  }
  .studio-page input:not([type="range"]),
  .studio-page select,
  .studio-page textarea,
  .studio-page #scenarioDialog input,
  .studio-page #scenarioDialog select {
    font-size: 16px;
  }
}
@media (pointer: coarse) {
  .studio-page .background-swatches button,
  .studio-page .text-button,
  .studio-page .disclosure > summary {
    min-height: 44px;
  }
}
/* National-standard workspace, aligned with the approved November mockup. */
.studio-page .wrap{max-width:1184px;padding:32px 24px 20px}
.studio-page .nav{min-height:70px;padding:0 max(24px,calc((100% - 1136px)/2))}
.studio-page .page-intro{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:26px}
.studio-page .page-intro h1{font-size:30px;letter-spacing:-.8px;line-height:1.3;margin:0 0 9px;font-weight:650}
.studio-page .workspace-view-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.studio-page .workspace-view-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 11px;
  border-radius: 7px;
  color: var(--brand);
  font-size: .875rem;
  font-weight: 600;
}
.studio-page .workspace-view-links a[aria-current] { background: var(--brand); color: #fff; }
.studio-page .workspace-view-links a:hover { text-decoration: underline; }
.studio-page .workspace{grid-template-columns:256px minmax(0,1fr);border-radius:16px;min-height:630px;box-shadow:0 12px 40px #203d2410}
.studio-page .studio-sidebar{background:#fcfdfa}
.studio-page .sidebar-section{padding:23px}
.studio-page .section-label{font-size:13px;font-weight:650;margin:0 0 20px;color:var(--ink)}
.studio-page .spec-selectors{display:grid;gap:18px}
.studio-page .spec-selectors label{display:grid;gap:8px;font-size:11px;color:var(--muted)}
.studio-page .spec-selectors select{font-size:13px;height:42px;padding:8px 10px;background:#fff;border-radius:8px;color:var(--ink);width:100%}
.studio-page .purpose-spec{padding:17px 0 4px;gap:6px;margin:4px 0 0}
.studio-page .purpose-spec #specSize{font-size:17px;letter-spacing:.1px}
.studio-page #backgroundSettings .field-heading .small{display:none}
.studio-page .background-swatches{gap:7px}
.studio-page .background-swatches button{font-size:11px;padding:9px 8px;min-height:36px;border-radius:7px;flex:1 1 42px}
.studio-page .swatch-dot{width:12px;height:12px}
.studio-page #backgroundModeHint{line-height:1.8}
.studio-page #uploadCard,.studio-page #editor{padding:27px 28px 22px}
.studio-page .card-head h2{font-size:21px;letter-spacing:-.4px}
.studio-page #resultRule{margin-top:5px;font-size:11px}
.studio-page .output-tabs{display:flex;justify-content:center;gap:4px;padding:4px;border:1px solid var(--line);background:var(--bg);border-radius:9px;width:max-content;max-width:100%;margin:22px auto 17px}
.studio-page .output-tabs button{font-size:12px;min-height:34px;padding:7px 22px;background:transparent;border:0;color:var(--muted);border-radius:6px;box-shadow:none;font-weight:500}
.studio-page .output-tabs button[aria-pressed=true]{background:#fff;color:var(--brand);box-shadow:0 1px 4px #203d2418}
.studio-page .photo-panel{margin-top:0;border:1px solid #e9ede6;min-height:356px;padding:24px;background:radial-gradient(#dce5d8 .7px,transparent .7px) 0 0/12px 12px,#f2f5ef;border-radius:12px}
.studio-page .photo-stage{border-width:5px;max-height:none;width:var(--preview-width);box-shadow:0 7px 20px #183e2425}
.studio-page .photo-toolbar{margin-top:13px}
.studio-page .photo-toolbar button{font-size:11px}
.studio-page .variant-field{display:flex;gap:10px;align-items:center;font-size:11px;margin:0 0 12px}
.studio-page .variant-field select{font-size:12px;padding:6px;width:auto;max-width:75%;height:36px}
.studio-page .print-options{display:flex;align-items:flex-end;gap:12px;margin:18px 0 14px;flex-wrap:wrap}
.studio-page .print-options label{font-size:11px;display:grid;gap:7px;color:var(--muted);flex:1}
.studio-page .print-options label:first-child{flex:2}
.studio-page .print-options select{font-size:12px;padding:7px;height:37px;min-width:0;background:#fff}
.studio-page .print-options .checkbox{display:flex;align-items:center;gap:7px;min-height:37px;white-space:nowrap;flex:0 0 auto}
.studio-page .print-options input{accent-color:var(--brand)}
.studio-page .paper-panel{min-height:350px;padding:24px;display:flex;justify-content:center;align-items:center;background:#edf1e9;border:1px solid #e5ebe1;border-radius:12px}
.studio-page #paperPreview{display:block;width:min(100%,500px);height:auto;box-shadow:0 6px 20px #183e2425;border:0}
.studio-page #paperPreview.a4{width:min(100%,228px)}
.studio-page #paperStatus{font-size:12px;color:var(--muted)}
.studio-page .download-row{margin-top:19px;padding-top:19px;border-top:1px solid var(--line);gap:12px 16px}
.studio-page .download-row .download-actions{min-width:210px}
.studio-page .download-actions button.primary{font-size:13px;min-height:45px;border-radius:8px;background:var(--brand);border-color:var(--brand);font-weight:550}
.studio-page #directPrint{font-size:11px;text-align:center}
.studio-page #taskStatus:empty{display:none}
.studio-page #taskStatus{color:var(--muted);font-size:10px}
.studio-page #productionTitle{font-size:13px;font-weight:600}
.studio-page #outputSummary{font-size:11px}
.studio-page #printHint{font-size:11px;color:var(--muted);line-height:1.6}
.studio-page #checkDetails{margin:0 28px 16px}
.studio-page .dropzone{min-height:350px;border:1px dashed #a8baac;border-radius:12px;background:radial-gradient(#dce5d8 .7px,transparent .7px) 0 0/12px 12px,#f5f7f1}
.studio-page #variantNotice{font-size:11px;background:#faf5e9;padding:11px 13px;line-height:1.7}
.studio-page button:disabled{cursor:default}
.studio-page [hidden]{display:none!important}
@media(max-width:760px){
.studio-page .wrap{padding:23px 12px}
.studio-page .page-intro{margin:0 6px 20px}
.studio-page .page-intro h1{font-size:25px}
.studio-page .privacy-pill{display:none}
.studio-page .workspace{min-height:0}
.studio-page .sidebar-section{padding:18px}
.studio-page .section-label{font-size:12px;margin-bottom:14px}
.studio-page .spec-selectors{grid-template-columns:1fr 1fr;gap:12px}
.studio-page .spec-selectors label{min-width:0}
.studio-page .spec-selectors select{font-size:16px;width:100%;padding-inline-start:8px;height:43px}
.studio-page .purpose-spec{padding-top:13px;display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 12px}
.studio-page .purpose-spec #specSize{font-size:16px}
.studio-page #uploadCard,.studio-page #editor{padding:21px 17px}
.studio-page .card-head h2{font-size:18px}
.studio-page .output-tabs{margin-top:17px;margin-bottom:13px}
.studio-page .output-tabs button{font-size:12px;min-height:36px;padding:7px 24px}
.studio-page .photo-panel{min-height:295px;padding:20px 16px}
.studio-page .photo-stage{width:var(--mobile-preview-width)}
.studio-page .paper-panel{min-height:250px;padding:15px}
.studio-page #paperPreview.a4{width:min(100%,210px)}
.studio-page .print-options{gap:12px 9px;margin-top:10px}
.studio-page .print-options select{font-size:14px}
.studio-page .print-options label:first-child{flex:2 1 170px}
.studio-page .print-options .checkbox{flex:1 1 100%;min-height:26px}
.studio-page .download-row{padding-top:16px;margin-top:17px}
.studio-page .download-row .download-actions{min-width:0}
.studio-page #checkDetails{margin:0 18px 17px}
.studio-page #backgroundSettings .background-swatches{justify-content:flex-start}
.studio-page #backgroundSettings .background-swatches button{flex:0 0 auto;min-width:59px}
}
@media(prefers-reduced-motion:reduce){.studio-page *{scroll-behavior:auto!important;transition:none!important}}
.studio-page .background-swatches button{flex-direction:column;white-space:nowrap;padding:7px 5px;min-height:51px;gap:5px}
.studio-page .background-swatches button[data-background=original]:before{content:'';width:12px;height:12px;border:1px solid #b9c3bd;border-radius:50%;background:linear-gradient(135deg,#d8dfd4 50%,white 50%)}
/* Searchable country picker: desktop popover and mobile sheet. */
.studio-page #countryPicker{height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:8px;text-align:start;font-size:13px;color:var(--ink);font-weight:400}
.studio-page #countryPickerLabel{min-width:0;overflow-wrap:anywhere}
.studio-page #countryPicker[aria-expanded=true]{border-color:var(--brand);box-shadow:0 0 0 2px var(--tint)}
.studio-page #countryDialog{position:fixed;inset:auto;margin:0;padding:0;width:min(400px,calc(100vw - 32px));max-width:none;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 12px 40px #203d2426}
.studio-page #countryDialog::backdrop{background:#172b2518}
.studio-page .country-menu-top{position:sticky;top:0;z-index:2;background:#fff;padding:16px 17px 12px;border-bottom:1px solid var(--line)}
.studio-page .country-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.studio-page .country-menu-heading h2{font-size:15px;font-weight:600}
.studio-page #countryClose,.studio-page #countryClearSearch{border:0;background:transparent;padding:4px;width:30px;height:30px;min-height:30px;font-size:22px;color:var(--muted)}
.studio-page .country-search{display:flex;align-items:center;gap:9px;padding:4px 9px;border:1px solid var(--brand);border-radius:8px;color:var(--muted);background:white}
.studio-page .country-search>span{font-size:22px}
.studio-page .country-search input{width:100%;min-width:0;font-size:13px;height:34px;border:0;background:transparent;padding:0 2px;box-shadow:none}
.studio-page .country-search:focus-within{box-shadow:0 0 0 2px var(--tint)}
.studio-page .country-search input:focus-visible{outline:none}
.studio-page .country-search input::-webkit-search-cancel-button{display:none}
.studio-page .country-menu-body{padding:0 17px 16px}
.studio-page .country-group-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin:17px 0 10px}
.studio-page .country-group-title small{font-size:11px}
.studio-page #countryClearHistory{border:0;background:transparent;padding:3px;color:var(--brand);font-size:11px}
.studio-page .country-chips{display:flex;flex-wrap:wrap;gap:8px}
.studio-page .country-chips button{padding:8px 12px;min-height:37px;font-size:12px;font-weight:400;border-radius:7px}
.studio-page #countryDialog button[aria-pressed=true]{color:var(--brand);border-color:var(--brand);background:var(--tint)}
.studio-page #countryAll{margin-top:20px;border-top:1px solid var(--line)}
.studio-page #countryAll summary{display:flex;align-items:center;gap:7px;padding:14px 0 3px;font-size:12px;color:var(--muted);list-style:none;cursor:pointer}
.studio-page #countryAll summary::-webkit-details-marker{display:none}
.studio-page #countryAll summary>span:last-child{margin-inline-start:auto}
.studio-page .country-list{display:grid;grid-template-columns:1fr;gap:3px;margin-top:10px}
.studio-page .country-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:8px 10px;text-align:start;border:1px solid transparent;background:transparent;font-weight:400}
.studio-page .country-list button:hover,.studio-page .country-list button:focus-visible{background:var(--tint)}
.studio-page .country-list button>span:first-child{min-width:0;display:grid;gap:1px}
.studio-page .country-list strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.studio-page .country-list small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.studio-page .country-code{font-size:11px;color:var(--muted)}
.studio-page .country-keyboard{border-top:1px solid var(--line);padding:12px 17px;font-size:11px;text-align:center;color:var(--muted);margin:0}
.studio-page #countryEmpty{display:grid;justify-items:center;gap:12px;padding:24px 5px;text-align:center}
.studio-page #countryEmpty strong{font-size:13px;font-weight:500}
.studio-page #countryEmpty p{font-size:12px;color:var(--muted)}
.studio-page #countryBrowseAll{font-size:12px;color:var(--brand)}
@media(max-width:760px){
.studio-page #countryPicker{font-size:16px;padding:8px;height:44px}
.studio-page #countryDialog{inset:auto 8px 8px;margin:0;width:calc(100vw - 16px);max-height:85vh;max-height:85dvh;border-radius:16px;padding-bottom:env(safe-area-inset-bottom,0px)}
.studio-page #countryDialog::backdrop{background:#172b2560}
.studio-page .country-menu-top{padding:14px 17px 12px}
.studio-page .country-menu-heading h2{font-size:16px}
.studio-page .country-search input{font-size:16px;height:40px}
.studio-page .country-chips button,.studio-page #countryClearHistory,.studio-page #countryAll summary{min-height:44px}
.studio-page #countryClose,.studio-page #countryClearSearch{height:40px;width:40px;min-height:40px}
.studio-page .country-list button{min-height:56px}
.studio-page .country-keyboard{display:none}
}

/* Photo-first editor: specification above, editing tools next to the image. */
.studio-page .wrap{max-width:1120px;padding-top:18px}
.studio-page .page-intro{margin-bottom:12px}
.studio-page .page-intro h1{font-size:22px;margin:0}
.studio-page .workspace{display:block;border:0;overflow:visible;background:transparent;box-shadow:none;min-height:0}
.studio-page .studio-main{display:block}
.studio-page .specbar{display:grid;grid-template-columns:minmax(280px,1.4fr) minmax(170px,1fr) auto;align-items:center;gap:12px 24px;padding:8px 16px;margin-bottom:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}
.studio-page .spec-selectors{grid-template-columns:1fr 1fr;gap:20px;min-width:0}
.studio-page .spec-selectors label{gap:4px;min-width:0}
.studio-page .spec-selectors label+label{border-inline-start:1px solid var(--line);padding-inline-start:20px}
.studio-page .spec-selectors select,.studio-page #countryPicker{height:32px;min-height:32px;background:var(--surface);border-color:transparent;padding:2px 0;font-size:14px}
.studio-page #countryPickerLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-page .purpose-spec{border-inline-start:1px solid var(--line);margin:0;padding:0;padding-inline-start:24px;gap:3px;min-width:0}
.studio-page .spec-values{display:flex;gap:2px 10px;align-items:baseline;flex-wrap:wrap}
.studio-page .spec-current-label{font-size:11px;color:var(--muted)}
.studio-page .purpose-spec #specSize{font-size:14px;font-weight:500}
.studio-page .purpose-spec #specLimit{font-size:11px}
.studio-page #showRequirements{display:inline-flex;align-items:center;font-size:12px;justify-self:end}
.studio-page #preparationChoice{grid-column:1/-1}
.studio-page #editor,.studio-page #uploadCard{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:0;overflow:hidden}
.studio-page #uploadCard{padding:26px}
.studio-page #editor .editor-head{min-height:68px;margin:0 24px;border-bottom:1px solid var(--line);padding:10px 0}
.studio-page .output-tabs{margin:0;padding:4px;border:0;justify-content:flex-start}
.studio-page .output-tabs button{padding:7px 15px;font-size:12px}
.studio-page #replace{font-size:12px}
.studio-page .editor-workspace{display:grid;grid-template-columns:minmax(0,352px) minmax(0,280px);justify-content:center;gap:24px;padding:24px;max-width:780px;margin:0 auto}
.studio-page .editor-preview{min-width:0;display:flex;flex-direction:column}
.studio-page .photo-panel{margin:0;min-height:386px;flex:1;padding:16px;border:0;background:#f2f5ef;border-radius:10px}
.studio-page .photo-stage{border:0;width:var(--preview-width,264px);max-width:100%;box-shadow:0 4px 16px #183e2418}
.studio-page .photo-toolbar{justify-content:space-between;gap:10px;margin-top:10px;flex-direction:row-reverse;flex-wrap:wrap}
.studio-page .photo-toolbar button{font-size:11px;padding:6px 0;min-height:32px}
.studio-page .drag-caption{font-size:11px;color:var(--muted)}
.studio-page .sample-caption{text-align:start;margin-top:8px;font-size:11px}
.studio-page .editor-tools{min-width:0;padding-top:0}
.studio-page #backgroundSettings{padding:0;border:0}
.studio-page .editor-tools .field-heading{margin:0 0 14px;min-height:24px}
.studio-page .editor-tools h2{font-size:14px;font-weight:600;line-height:1.5}
.studio-page .background-palette{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
.studio-page .background-swatches{flex:1;gap:7px;flex-wrap:wrap}
.studio-page #backgroundSettings .background-swatches button{border:0;box-shadow:none;background:transparent;min-width:40px;min-height:60px;flex:1 1 40px;padding:4px 0;gap:8px;font-weight:400;font-size:11px;border-radius:6px;color:var(--muted)}
.studio-page #backgroundSettings .background-swatches button[aria-pressed=true]{color:var(--brand);background:transparent;box-shadow:none}
.studio-page #backgroundSettings .swatch-dot,.studio-page #backgroundSettings button[data-background=original]:before{width:34px;height:34px;border:1px solid #bdc9be;border-radius:50%;position:relative;box-sizing:border-box}
.studio-page #backgroundSettings button[data-background=original]:before{background:linear-gradient(130deg,#b9c5b1,#dde2d6)}
.studio-page #backgroundSettings button[aria-pressed=true] .swatch-dot,.studio-page #backgroundSettings button[data-background=original][aria-pressed=true]:before{outline:2px solid var(--brand);outline-offset:3px}
.studio-page #backgroundSettings button[aria-pressed=true] .swatch-dot:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font-size:16px;color:#173a25;text-shadow:0 0 3px #fff,0 0 3px #fff}
.studio-page .custom-background{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;color:var(--muted);padding:4px 0;min-width:42px;min-height:60px;cursor:pointer}
.studio-page .custom-colour-dot{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;font-size:20px;color:var(--muted);background:var(--bg)}
.studio-page .custom-background input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.studio-page .custom-background.selected .custom-colour-dot{background:var(--custom-colour);outline:2px solid var(--brand);outline-offset:3px;color:#173a25;text-shadow:0 0 3px #fff}
.studio-page .custom-background:focus-within{outline:2px solid var(--brand);outline-offset:3px;border-radius:6px}
.studio-page #backgroundModeHint{margin-top:12px;line-height:1.7}
.studio-page #variantNotice{margin:12px 0 0;padding:0;background:transparent;color:var(--muted);font-size:11px;line-height:1.7;border:0}
.studio-page .crop-tools{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
.studio-page .joint-review {
  margin-block-start: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f8f3;
}
.studio-page .joint-review h2 { margin-block-end: 6px; }
.studio-page .joint-review .checkbox { align-items: start; gap: 8px; margin-block-start: 10px; }
.studio-page #jointPortraitHint { margin-block: 12px; color: var(--muted); }
.studio-page .crop-tools #reset{padding:0;min-height:28px;font-size:11px}
.studio-page .crop-tools .field-heading{margin-bottom:12px}
.studio-page .crop-range{display:block;font-size:11px;color:var(--muted);margin:0 0 15px}
.studio-page .crop-range>span{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}
.studio-page .crop-range output{color:var(--ink);font-variant-numeric:tabular-nums}
.studio-page .crop-range input{display:block;width:100%;height:22px;margin:0;padding:0;accent-color:var(--brand)}
.studio-page #adjustments{padding:0;border:0;margin:0}
.studio-page #adjustments>summary{font-size:11px;padding:4px 0;min-height:36px;font-weight:400}
.studio-page .position-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;padding-top:6px}
.studio-page .position-controls>.button-row{grid-column:1/-1;display:flex;gap:8px;margin:0}
.studio-page .position-controls button{font-size:11px!important;padding:7px 9px;min-height:36px;flex:1}
.studio-page .crop-guide-toggle{margin-top:12px;font-size:11px;min-height:32px;gap:7px;color:var(--muted)}
.studio-page .crop-guide-toggle input{accent-color:var(--brand)}
.studio-page .print-options{margin:0;display:grid;grid-template-columns:1fr;gap:18px}
.studio-page .print-options h2{margin:0}
.studio-page .print-options label{min-width:0;display:grid;gap:6px;flex:none}
.studio-page .print-options select{width:100%;height:40px;font-size:12px}
.studio-page .print-options .checkbox{display:flex;min-height:32px;white-space:normal}
.studio-page #editSingle{font-size:12px;min-height:40px}
.studio-page .paper-panel{margin:0;min-height:380px;height:100%;padding:16px;border:0;background:#f2f5ef;border-radius:10px}
.studio-page #paperPreview{max-width:100%}
.studio-page #paperPreview.a4{width:min(100%,240px)}
.studio-page .download-row{margin:0;padding:18px 24px;background:#f7f9f5;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:10px 16px}
.studio-page .download-row .download-actions{min-width:0;display:flex;flex-direction:row;align-items:center;gap:12px}
.studio-page .download-actions button.primary{min-width:180px;padding:12px 18px}
.studio-page #productionTitle{font-size:12px;font-weight:500}
.studio-page #outputSummary{margin-top:4px}
.studio-page #taskStatus{font-size:11px}
.studio-page #printHint{display:none}
.studio-page #processingPanel,.studio-page #attentionNotice{margin:16px 24px 0}
.studio-page #ruleDetails,.studio-page #checkDetails{margin:12px 0 0;border:0;padding:0 4px}
.studio-page #ruleDetails>.disclosure-body,.studio-page #checkDetails>.disclosure-body{background:var(--surface);padding:18px;border:1px solid var(--line);border-radius:10px;margin-top:8px}
.studio-page #ruleDetails .specs{grid-template-columns:repeat(3,minmax(0,1fr))}
.studio-page #message{margin:12px 0}
@media(min-width:761px){.studio-page #adjustments>summary{display:none}}
@media(max-width:760px){
.studio-page .wrap{padding:14px 12px 20px}
.studio-page .page-intro{margin:0 4px 10px;flex-wrap:wrap;gap:8px 12px}
.studio-page .page-intro h1{font-size:20px}
.studio-page .specbar{grid-template-columns:1fr;gap:6px;padding:8px 12px;margin-bottom:10px}
.studio-page .spec-selectors{gap:14px}
.studio-page .spec-selectors label+label{padding-inline-start:14px}
.studio-page .spec-selectors select,.studio-page #countryPicker{font-size:16px;min-height:36px}
.studio-page .purpose-spec{border-inline-start:0;border-top:1px solid var(--line);padding:6px 0 0;display:flex;gap:2px 9px;flex-wrap:wrap;align-items:baseline}
.studio-page .purpose-spec #specSize{font-size:13px}
.studio-page #showRequirements{min-height:44px}
.studio-page #editor{padding:0}
.studio-page #uploadCard{padding:20px 16px}
.studio-page #editor .editor-head{margin:0 14px;min-height:60px;padding:8px 0;gap:8px}
.studio-page .output-tabs{margin:0;gap:2px;flex-wrap:wrap}
.studio-page .output-tabs button{font-size:11px;padding:7px 10px;min-height:36px}
.studio-page #replace{font-size:11px;white-space:nowrap;padding:7px 0}
.studio-page .editor-workspace{display:flex;flex-direction:column;gap:20px;padding:16px 14px 18px;margin:0;max-width:none}
.studio-page .photo-panel{min-height:310px;flex:none;padding:14px;border:0}
.studio-page .photo-stage{width:var(--mobile-preview-width,212px)}
.studio-page .photo-toolbar{gap:6px;margin-top:8px}
.studio-page .photo-toolbar button{font-size:11px}
.studio-page .drag-caption{font-size:11px}
.studio-page .sample-caption{font-size:11px}
.studio-page .editor-tools{padding:0}
.studio-page #backgroundSettings{border:0;padding:0}
.studio-page .editor-tools h2{font-size:13px}
.studio-page #backgroundSettings .background-swatches button{min-width:40px;flex:1 1 40px}
.studio-page .background-palette{gap:10px}
.studio-page .background-swatches{gap:8px}
.studio-page .crop-tools{margin-top:17px;padding-top:15px}
.studio-page #adjustments{padding:0}
.studio-page #adjustments[open]>summary{margin-bottom:5px}
.studio-page .position-controls{padding-top:6px}
.studio-page .crop-guide-toggle{margin-top:7px}
.studio-page .download-row{padding:14px;margin:0;flex-direction:column;align-items:stretch;gap:11px}
.studio-page .download-row .production-status{order:0;text-align:start;width:100%;flex:none}
.studio-page .download-row .download-actions{order:1;width:100%;flex:none;display:flex;flex-wrap:wrap;gap:10px}
.studio-page .download-actions button.primary{flex:1;min-width:0;font-size:13px}
.studio-page .download-row .task-status{order:2;text-align:start}
.studio-page .paper-panel{min-height:270px;padding:15px}
.studio-page .print-options{gap:14px}
.studio-page .print-options select{font-size:16px}
.studio-page .print-options .checkbox{min-height:36px}
.studio-page #processingPanel,.studio-page #attentionNotice{margin:14px 14px 0}
.studio-page #ruleDetails,.studio-page #checkDetails{margin:12px 0 0;padding:0 3px}
.studio-page #ruleDetails .specs{grid-template-columns:1fr}
.studio-page .dropzone{min-height:290px}
}
@media(pointer:coarse){.studio-page .crop-range input{min-height:32px}.studio-page .position-controls button,.studio-page #adjustments>summary,.studio-page .crop-guide-toggle{min-height:44px}}

.studio-page .language-menu{position:relative;margin-inline-start:auto;flex-shrink:0}
.studio-page #language{display:flex;align-items:center;gap:6px;cursor:pointer;min-height:44px;font-size:13px;color:var(--brand);list-style:none}
.studio-page #language::-webkit-details-marker{display:none}
.studio-page #language::after{content:"⌄";color:var(--muted)}
.studio-page .language-links{position:absolute;z-index:5;inset-inline-end:0;top:100%;min-width:180px;max-height:min(520px,70vh);overflow-y:auto;overscroll-behavior:contain;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:0 5px 22px #203d2420}
.studio-page .language-links a{display:flex;align-items:center;min-height:44px;padding:6px 12px;border-radius:5px}
.studio-page .language-links a[aria-current],.studio-page .language-links a:hover{background:var(--tint);color:var(--brand)}
.studio-page .spec-selectors{grid-template-columns:repeat(2,minmax(0,1fr))}
.studio-page .spec-selectors label{grid-template-columns:minmax(0,1fr);overflow-wrap:anywhere}
.studio-page #countryPicker{min-width:0}

/* Keep photo coordinates and dimension notation independent of reading direction. */
.studio-page .logo{direction:ltr;unicode-bidi:isolate}
.studio-page .crop-range input,.studio-page .photo-stage,.studio-page #paperPreview{direction:ltr}
.studio-page #specSize,.studio-page #specLimit,.studio-page #requirementSize,.studio-page #outputSummary,.studio-page .crop-range output{direction:ltr;unicode-bidi:isolate}
[dir=rtl] .studio-page #requirementSize,[dir=rtl] .studio-page #outputSummary{text-align:right}
.studio-page[dir=rtl] .photo-warnings,[dir=rtl] .studio-page .photo-warnings{padding-left:0;padding-inline-start:28px}
[dir=rtl] .studio-page .print-options select{padding-right:12px;padding-left:26px;background-position:left 10px center}

/* Let translated colour labels determine their width and wrap as needed. */
.studio-page #backgroundSettings .background-swatches button{flex:1 1 auto;padding-inline:5px;white-space:normal;overflow-wrap:anywhere;justify-content:flex-start}
.studio-page #backgroundSettings .swatch-dot,.studio-page #backgroundSettings button[data-background=original]:before{flex-shrink:0}
.studio-page .custom-background{max-width:5rem;text-align:center;overflow-wrap:anywhere}

.studio-page [hidden].custom-settings,
.studio-page [hidden]#officialSpecbar { display: none; }
.studio-page #customWorkspaceLink[aria-current="page"] {
  color: var(--brand);
  font-weight: 650;
}
.studio-page .custom-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.studio-page .custom-settings {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.studio-page .custom-settings form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.studio-page .custom-settings h2,
.studio-page .custom-settings h3 { font-size: 14px; margin: 0; }
.studio-page .custom-settings label:not(.checkbox) { display: grid; gap: 4px; }
.studio-page .custom-settings input:not([type="checkbox"]),
.studio-page .custom-settings select { width: 100%; min-width: 0; }
.studio-page .custom-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-page .custom-presets button { padding: 5px 7px; min-height: 30px; font-size: 12px; }
.studio-page .custom-workspace .editor-head .output-tabs { display: none; }
.studio-page .custom-workspace .editor-workspace { padding-inline: 16px; gap: 14px; }
@media (max-width: 800px) {
  .studio-page .custom-workspace { grid-template-columns: minmax(0, 1fr); }
}
.studio-page .nav #officialWorkspaceLink,
.studio-page .nav #customWorkspaceLink { display: inline-block; white-space: nowrap; }
@media (max-width: 500px) {
  .studio-page .nav nav { flex-wrap: wrap; gap: 6px 12px; }
  .studio-page .nav #officialWorkspaceLink,
  .studio-page .nav #customWorkspaceLink { font-size: 12px; }
  .studio-page .nav { gap: 10px; padding-inline: 12px; }
}
