/* IDResize site-wide UI system: calm paper surfaces, precise blue, compact tool-first rhythm. */
:root {
  --page-max: 1280px;
  --page-gutter: 24px;
  --page-width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  --bg: #fafaf8;
  --bg-soft: #f4f1ea;
  --surface: #fff;
  --ink: #1c1f24;
  --muted: #56616d;
  --line: #e4e0d8;
  --blue: #2f6fed;
  --blue-strong: #245bc4;
  --blue-soft: #e8f0fe;
  --gold: #c4a574;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --btn-h: 44px;
  --input-h: 40px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
  accent-color: var(--blue);
}

html { background: var(--bg); scroll-padding-top: 24px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Source Sans 3", system-ui, "Noto Sans", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #d7e5ff; color: #15243c; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { border: 3px solid var(--bg); border-radius: 99px; background: #b9c2cd; }
::-webkit-scrollbar-thumb:hover { background: #8996a5; }
a { color: var(--blue-strong); text-underline-offset: 3px; }
a:hover { color: #17489f; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.topbar,
.home,
.v2-home,
.guide-page,
.tool-page,
.footer { width: var(--page-width); margin-inline: auto; }
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand { gap: 10px; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark svg { width: 26px; height: 26px; }
.topbar nav { gap: 8px; }
.topbar nav a {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #4f5a67;
  font-size: 14px;
  transition: color 160ms ease, background-color 160ms ease;
}
.topbar nav a:hover,
.topbar nav a[aria-current="page"] { color: #1e56b7; background: #edf3ff; }
.footer {
  min-height: 64px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  color: #505b67;
  font-size: 13px;
}
.footer a { color: #315b9a; }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.footer-privacy {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow { display: none; }
.lead { color: #515d69; font-size: 16px; line-height: 1.65; }

/* Homepage: the current first-screen workbench remains the main event. */
.home, .v2-home { padding-bottom: 64px; }
.home-hero { padding: 40px 0 24px; text-align: left; }
.home-hero h1,
.v2-home .home-hero h1 {
  max-width: 780px;
  margin: 0 0 12px;
  color: var(--ink);
  font: 650 clamp(34px, 4vw, 48px)/1.12 "Manrope", "DM Sans", sans-serif;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.home-hero .lead { max-width: 720px; margin-inline: 0; }
.home-workbench { gap: 24px; align-items: stretch; }
.picker {
  border: 1px solid #dcd8cf;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(34, 44, 58, .055);
}
.workbench-top { min-height: 44px; border-bottom-color: var(--line); }
.workbench-top strong { color: #202833; font-weight: 650; }
.workbench-top span { border-radius: 6px; background: #f1f5fa; color: #3d536d; font-size: 12px; }
.v2-upload,
.upload-preview {
  border: 1px solid #cbd7e7;
  border-radius: 10px;
  background: #f7f9fc;
  color: #253247;
}
.v2-upload { min-height: 136px; }
.v2-upload:hover,
.upload-preview:hover { border-color: #7fa5e8; background: #f3f7ff; }
.v2-upload b { color: #202833; font-size: 15px; font-weight: 600; }
.v2-upload small { color: #526171; }
.upload-mark { color: var(--blue); }
.quick-sizes { gap: 8px; }
.quick-sizes a {
  min-height: 56px;
  border: 1px solid #e2dfd8;
  border-radius: 8px;
  background: #fff;
  color: #273341;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.quick-sizes a:hover { border-color: #94b1e3; background: #f5f8ff; }
.quick-sizes small { color: #596673; }
.quick-sizes .sheet-shortcut { background: #edf3fd; border-color: #d6e2f5; color: #254f8f; }
.home-side,
.sample-panel {
  border: 1px solid #e3dfd6;
  border-radius: 16px;
  background: #f4f1ea;
}
.sample-triptych figure,
.photo-sample { overflow: hidden; }
.home-side h2,
.sample-panel h2 { color: #202833; font-weight: 650; }
.home-side p { color: #505b67; }
.home-side > a { color: #245bc4; }
.features,
.country-directory,
.home-types,
.home-faq { margin-top: 40px; }
.features h2,
.country-directory h2,
.home-types h2,
.home-faq h2 {
  margin: 0 0 16px;
  color: #202833;
  font: 650 24px/1.3 "Manrope", "DM Sans", sans-serif;
  letter-spacing: -.02em;
}
.feature-grid { gap: 24px; }
.feature-card {
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid #c9c5bc;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.feature-card b { color: #242d38; font-size: 17px; font-weight: 600; }
.feature-card p,
.country-directory > p,
.home-types p { color: #505b67; font-size: 14px; line-height: 1.65; }
.country-directory { padding-top: 24px; border-top: 1px solid var(--line); }
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-top-color: #d9d5cc;
}
.country-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  color: #315fa9;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.country-grid a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.country-grid a > span > small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.country-grid a > small { flex: 0 0 auto; align-self: center; text-align: right; }
.country-grid a:hover { background: #f7f9fc; color: #1e56b7; }
.country-grid small { color: #828b96; font-variant-numeric: tabular-nums; }
.home-types { padding-top: 24px; border-top: 1px solid var(--line); }
.home-types h3 { margin: 20px 0 8px; color: #26313d; font-size: 16px; font-weight: 600; }
.home-types a { color: #28589f; }
.home-faq { padding-top: 24px; border-top: 1px solid var(--line); }
.home-faq details { padding: 14px 4px; border-top: 1px solid var(--line); color: #29333e; font-size: 14px; }
.home-faq summary { font-weight: 600; cursor: pointer; }
.home-faq p { max-width: 72ch; color: #505b67; }

/* Country directories, hubs and document reference pages. */
.guide-page { margin-top: 24px; margin-bottom: 64px; }
.breadcrumbs { margin: 0 0 20px; color: #58636f; font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 9px; color: #a6adb5; }
.breadcrumbs a { color: #48596d; }
.guide-page > h1 {
  max-width: 920px;
  margin: 0 0 12px;
  color: #1d242c;
  font: 650 clamp(30px, 3.2vw, 44px)/1.18 "Manrope", "DM Sans", sans-serif;
  letter-spacing: -.03em;
  text-wrap: pretty;
}
.guide-page > .lead { max-width: 72ch; margin: 0 0 24px; }
.country-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.doc-sidebar { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: none; }
.doc-sidebar h2 { color: #26313d; font-weight: 600; }
.doc-sidebar a { color: #48596d; }
.doc-sidebar a.active,
.doc-sidebar a:hover { background: #edf3fd; color: #214f9d; }
.document-content { min-width: 0; }
.document-card {
  padding: 24px;
  border: 1px solid #dedad2;
  border-radius: 14px;
  border-top-width: 1px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 44, 58, .045);
}
.document-card h2 { color: #222c37; font-size: 20px; font-weight: 650; }
.document-card p,
.document-card li,
.long-copy p { color: #3f4a56; }
.document-card a { color: #28589f; }
.guide-facts,
.spec-bar { border-color: #dedad2; border-radius: 10px; background: #faf9f6; }
.guide-facts span,
.spec-bar span { color: #52606d; }
.guide-facts strong,
.spec-bar strong { color: #25303b; font-variant-numeric: tabular-nums; }
.spec-bar { margin: 16px 0 24px; }
.spec-bar > div { padding: 16px; border-color: #dedad2; }
.guide-callout { border: 1px solid #e9e0ce; border-radius: 10px; background: #fbf8f1; color: #3d3a33; }
.guide-callout p { color: #514c42; }
.spoke-grid a { color: #28589f; }
.spoke-grid a:hover { background: #f4f7fb; }
.directory-letter { margin: 28px 0 8px; color: #273442; font-size: 22px; }
.related-countries { color: #4f5b67; }
.src-badge { color: #34495f; }
.src-official { color: #1e56b7; background: #edf3fd; border-color: #b7cbed; }
.spec-table th,
.spec-table td { padding: 12px 16px; border-color: var(--line); }
.long-copy { max-width: 75ch; line-height: 1.72; }
.guide-page details { border-top: 1px solid var(--line); padding: 14px 4px; color: #29333e; }
.guide-page details summary { font-weight: 600; cursor: pointer; }

/* Photo studio: consistent controls, calm canvas and clear active states. */
.tool-page { margin: 0 auto 64px; }
.tool-page .breadcrumbs { padding: 16px 0 8px; }
.tool-head { padding: 8px 0 24px; }
.tool-head h1 { color: #1d242c; font-size: clamp(30px, 3vw, 40px); font-weight: 650; letter-spacing: -.03em; }
.tool-head .lead { max-width: 72ch; color: #505b67; }
.studio { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); gap: 24px; }
.studio-controls,
.canvas-panel { border: 1px solid #dedad2; border-radius: 12px; box-shadow: 0 8px 24px rgba(34, 44, 58, .045); }
.studio-controls { background: #fff; padding: 0; overflow: hidden; }
.studio-stack { padding: 16px; }
.studio-block { border-top-color: var(--line); }
.studio-block:first-child { border-top: 0; }
.control-section-title { color: #202a35; font-weight: 650; font-size: 14px; }
.field-label,
.control-group { color: #34414e; }
.studio-controls select,
.studio-controls input[type="number"],
.sheet-settings select,
.sheet-summary select { border-color: #cfd4da; color: #202a35; }
.studio-controls select:focus,
.studio-controls input:focus,
.sheet-settings select:focus,
.sheet-summary select:focus { outline: 2px solid #2f6fed; outline-offset: 1px; }
.upload-button { border-color: #b7cae8; background: #f5f8fe; color: #214f9d; }
.upload-button:hover { background: #eaf1fd; }
.privacy-note,
.text-button { color: #505d69; }
.swatch,
.kb-chip { color: #34414e; }
.swatch.active,
.kb-chip.active { border-color: #2f6fed; background: #e8f0fe; color: #1e56b7; }
.remove-bg { border: 0; background: var(--blue); color: #fff; }
.remove-bg:hover { background: var(--blue-strong); }
.button { background: var(--blue); border-color: var(--blue); color: #fff; }
.button:hover { background: var(--blue-strong); border-color: var(--blue-strong); }
.secondary-button,
.step-button { border-color: #d3d7dc; color: #34414e; }
.secondary-button:hover,
.step-button:hover:not(:disabled) { border-color: #a9bedf; background: #f4f7fc; color: #214f9d; }
.canvas-toolbar,
.canvas-footer { color: #4f5b67; }
.canvas-toolbar { border-color: var(--line); }
.sample-tag { background: #f0f3f6; color: #405267; }
.canvas-stage { background-color: #f0f1f2; }
.preview-empty { color: #4f5b67; }
.preview-empty b { color: #26313d; }
.upload-icon { border-color: #d7dce2; color: #52606d; }
#preview { border-color: #c9d1db; box-shadow: 0 8px 20px rgba(30, 42, 58, .12); }
.guide-actions,
.canvas-footer { border-color: var(--line); }
.sheet-dialog { border-color: var(--line); border-radius: 16px; }
.sheet-dialog h2 { color: #202a35; }
.sheet-dialog > p:not(.eyebrow) { color: #505b67; }
.sheet-preview-wrap { border-color: #d9d7d1; background: #f3f2ee; }
.sheet-summary > span,
.sheet-summary > small { color: #505b67; }
.status { color: #465462; }
.smallprint { color: #505b67; }

@media (max-width: 900px) {
  :root { --page-gutter: 20px; }
  .home-workbench { grid-template-columns: minmax(0, 1fr); }
  .home-side { display: flex; flex-direction: column; }
  .sample-triptych { width: 100%; }
  .country-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .doc-sidebar { position: static; }
  .studio { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  :root { --page-gutter: 16px; }
  .topbar { height: auto; min-height: 64px; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; }
  .topbar nav { width: 100%; justify-content: space-between; gap: 2px; overflow-x: auto; }
  .topbar nav a { min-height: 38px; padding: 0 8px; white-space: nowrap; font-size: 13px; }
  .home-hero { padding: 28px 0 20px; }
  .home-hero h1, .v2-home .home-hero h1 { font-size: 36px; }
  .home-workbench { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .features, .country-directory, .home-types, .home-faq { margin-top: 32px; }
  .features h2, .country-directory h2, .home-types h2, .home-faq h2 { font-size: 22px; }
  .guide-page { margin-top: 20px; margin-bottom: 48px; }
  .guide-page > h1 { font-size: 32px; }
  .document-card { padding: 16px; }
  .spec-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-bar > div:nth-child(2) { border-right: 0; }
  .spec-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-head h1 { font-size: 30px; }
  .studio-controls { min-height: 0; }
  .canvas-panel { min-height: 420px; }
  .canvas-stage { min-height: 340px; padding: 20px; }
  .footer { padding-bottom: 20px; }
  .footer-privacy { flex-basis: auto; }
  .footer-links { gap: 14px; }
}
@media (max-width: 420px) {
  .country-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-home .home-side { grid-template-columns: minmax(0, 1fr); }
  .sample-triptych figure { height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Site chrome + editor shell */
.topbar--studio {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--page-gutter);
  height: 56px;
  border-bottom: 1px solid #2a2f38;
  background: #141820;
  color: #e8eaed;
}
.topbar--studio .brand { color: #f4f5f7; }
.topbar--studio .brand-mark { color: #6ea8ff; }
.topbar--studio nav a {
  color: #9aa3af;
  border-radius: 6px;
  padding: 0 10px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 500;
}
.topbar--studio nav a:hover,
.topbar--studio nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.page-editor .tool-head--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.page-editor .tool-head--compact h1 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 650;
  letter-spacing: -.03em;
}
.page-editor .tool-head-spec {
  margin: 4px 0 0;
  color: #5a6470;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.page-editor .local-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e8f0ea;
  color: #2d6a45;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.page-editor .tool-head-note {
  margin: 0;
  max-width: 36ch;
  font-size: 13px;
  color: var(--muted);
}
.page-editor .canvas-toolbar {
  background: #141820;
  color: #c8cdd4;
  border-bottom-color: #2a2f38;
  font-weight: 500;
}
.page-editor .canvas-toolbar #workspace-size {
  color: #9aa3af;
  font-family: var(--mono, ui-monospace, monospace);
}
.page-editor .live-dot { background: #5cb87a; }
.compliance-checklist {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #e4e0d8;
  border-radius: 8px;
  background: #faf9f6;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: #4a5563;
}
.compliance-checklist li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 6px;
}
.compliance-checklist li:last-child { margin-bottom: 0; }
.compliance-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid #9aa8b8;
  background: #fff;
}
.page-editor--studio .studio-controls {
  border-color: #d4d0c8;
  box-shadow: none;
}
.page-editor--studio .canvas-panel {
  border-color: #d4d0c8;
  box-shadow: 0 16px 40px rgba(18, 21, 26, .08);
}

/* Home workbench: one decision, one photo, one deliberate handoff to the editor. */
.v2-home .home-workbench { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.v2-home .picker {
  padding: 24px;
  border-color: #d8d4cb;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(32, 42, 55, .065);
}
.v2-home .workbench-top { margin-bottom: 20px; padding-bottom: 16px; }
.v2-home .workbench-top strong { font-size: 15px; }
.v2-home .workbench-top span { background: transparent; padding: 0; color: #495765; }
.home-workbench-head { margin: 0 0 18px; }
.home-workbench-head strong { display: block; color: #202a35; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.home-workbench-head small { display: block; margin-top: 4px; color: #53606d; font-size: 13px; line-height: 1.45; }
.home-group-label { margin: 0 0 8px; color: #344250; font-size: 13px; font-weight: 650; }
.v2-home .quick-size-heading { display: none; }
.v2-home .quick-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}
.v2-home .quick-sizes .home-size-option {
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid #d9d7d0;
  border-radius: 8px;
  background: #fff;
  color: #26313d;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.v2-home .quick-sizes .home-size-option > span { overflow: hidden; max-width: 100%; color: #344250; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.v2-home .quick-sizes .home-size-option > small { color: #53606d; font-size: 11px; font-weight: 400; line-height: 1.3; }
.v2-home .quick-sizes .home-size-option:hover { border-color: #8ea9d3; background: #f7f9fc; }
.v2-home .quick-sizes .home-size-option[aria-pressed="true"] {
  border-color: #376ebf;
  background: #edf3fc;
  color: #183e75;
  box-shadow: inset 0 0 0 1px #376ebf;
}
.v2-home .quick-sizes .home-size-option[aria-pressed="true"] > span,
.v2-home .quick-sizes .home-size-option[aria-pressed="true"] > small { color: #183e75; }
.v2-home .home-more-sizes { margin: -12px 0 12px 38px; }
.v2-home .home-more-sizes > summary { width: fit-content; min-height: 32px; color: #285a9e; font-size: 12px; font-weight: 600; cursor: pointer; }
.v2-home .home-more-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 0 8px; }
.v2-home .home-more-options .home-size-option {
  display: flex;
  min-width: 0;
  min-height: 54px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #d9d7d0;
  border-radius: 8px;
  background: #fff;
  color: #26313d;
  text-align: left;
  cursor: pointer;
}
.v2-home .home-more-options .home-size-option > span { overflow: hidden; max-width: 100%; color: #344250; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.v2-home .home-more-options .home-size-option > small { color: #53606d; font-size: 11px; }
.v2-home .home-more-options .home-size-option[aria-pressed="true"] { border-color: #376ebf; background: #edf3fc; box-shadow: inset 0 0 0 1px #376ebf; }
.v2-home .home-more-options .home-size-option[aria-pressed="true"] > span,
.v2-home .home-more-options .home-size-option[aria-pressed="true"] > small { color: #183e75; }
.home-photo-input { padding-top: 14px; border-top: 1px solid #e4e0d8; }
.home-photo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.home-photo-head > strong { color: #344250; font-size: 13px; font-weight: 650; }
.home-selected-size { padding: 4px 8px; border-radius: 6px; background: #f1f5fb; color: #244d84; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-home .v2-upload {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: start;
  gap: 3px 12px;
  min-height: 76px;
  height: auto;
  padding: 12px 14px;
  border: 1px dashed #9eafc4;
  border-radius: 9px;
  background: #f8f9f7;
  text-align: left;
}
.v2-home .v2-upload:hover { border-color: #376ebf; background: #f1f5fb; }
.v2-home .v2-upload .upload-mark {
  grid-row: 1 / span 2;
  align-self: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d4dce7;
  border-radius: 8px;
  background: #fff;
  color: #285a9e;
}
.v2-home .v2-upload .upload-mark svg { width: 18px; height: 18px; }
.v2-home .v2-upload b { min-width: 0; max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.v2-home .v2-upload small { color: #53606d; font-size: 12px; }
.home-file-status { min-height: 20px; margin: 8px 0 10px; color: #4c5967; font-size: 12px; line-height: 1.5; }
.v2-home .home-continue { width: 100%; justify-content: space-between; padding-inline: 16px; font-weight: 600; }
.v2-home .home-continue:disabled { border-color: #cbd2dc; background: #e9edf2; color: #56616d; opacity: 1; cursor: not-allowed; }
.v2-home .home-continue svg { width: 18px; height: 18px; }
.v2-home .home-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-color: #ded9cf;
  border-radius: 14px;
  background: #f1eee7;
}
.v2-home .sample-triptych { gap: 8px; margin-bottom: 18px; }
.v2-home .sample-triptych figure { height: 172px; border: 1px solid rgba(29, 43, 58, .12); border-radius: 7px; }
.v2-home .sample-triptych .white { border-color: #d8d6d0; }
.v2-home .sample-triptych figcaption { left: 6px; top: 6px; padding: 3px 6px; border: 1px solid rgba(30, 42, 56, .12); border-radius: 4px; background: #fff; color: #26313d; font-size: 10px; }
.v2-home .home-side h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.v2-home .home-side p { max-width: 30ch; margin: 0 0 14px; color: #46515e; font-size: 13px; line-height: 1.55; }
.v2-home .home-side > a { min-height: 42px; border-top: 1px solid #d8d3c9; padding-top: 12px; color: #214f94; font-size: 13px; }
.v2-home .home-side > a b { margin-left: auto; font-size: 16px; }
@media (max-width: 900px) {
  .v2-home .home-workbench { grid-template-columns: minmax(0, 1fr); }
  .v2-home .home-side { display: flex; grid-template-columns: none; }
  .v2-home .sample-triptych figure { height: 160px; }
}
@media (max-width: 640px) {
  .v2-home .picker { padding: 16px; }
  .v2-home .quick-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-home .quick-sizes .home-size-option { min-height: 54px; padding-inline: 8px; }
  .v2-home .home-more-sizes { margin-left: 0; }
  .v2-home .home-more-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-home .home-side { padding: 16px; }
  .v2-home .sample-triptych figure { height: 136px; }
  .home-photo-head { align-items: flex-start; flex-wrap: wrap; }
}

/* Keep the complete size → photo → editor handoff in the first viewport. */
@media (max-width: 900px) {
  .v2-home .home-hero { padding: 24px 0 10px; }
  .v2-home .home-hero h1 { font-size: 34px; }
  .v2-home .home-hero .lead { max-width: 54ch; }
  .v2-home .picker { padding: 18px; box-shadow: none; }
  .v2-home .quick-sizes { margin-bottom: 14px; }
  .v2-home .quick-sizes .home-size-option { min-height: 54px; }
  .home-workbench-head { margin-bottom: 14px; }
  .v2-home .home-more-sizes { margin-bottom: 8px; }
  .home-photo-input { padding-top: 12px; }
  .v2-home .v2-upload { min-height: 64px; padding-block: 9px; }
  .home-file-status { min-height: 18px; margin: 5px 0 8px; }
  .v2-home .home-continue { min-height: 42px; }
}
@media (max-width: 640px) {
  .v2-home .picker { padding: 16px; }
  .v2-home .home-hero h1 { font-size: 32px; }
}

@media (max-width: 900px) {
  .v2-home .home-hero { padding: 18px 0 8px; }
  .v2-home .home-hero .lead { font-size: 15px; line-height: 1.5; }
  .home-workbench-head { margin-bottom: 10px; }
  .home-group-label { margin-bottom: 6px; }
  .v2-home .quick-sizes { margin-bottom: 10px; }
  .v2-home .quick-sizes .home-size-option { min-height: 50px; }
  .v2-home .home-more-sizes { margin-bottom: 4px; }
  .home-photo-input { padding-top: 10px; }
  .home-photo-head { margin-bottom: 7px; }
  .v2-home .v2-upload { min-height: 58px; }
  .home-file-status { margin-block: 3px 4px; }
}

/* The home studio is one work surface: settings on the left, the photograph on the right. */
.v2-home .home-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #d8d6d0;
  border-radius: 16px;
  background: #fff;
}
.v2-home .picker { min-width: 0; padding: 32px; border: 0; border-radius: 0; box-shadow: none; }
.v2-home .home-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px;
  border: 0;
  border-left: 1px solid #d8d6d0;
  border-radius: 0;
  background: #f2f0ea;
}
.v2-home .home-side .sample-triptych,
.v2-home .home-side h2,
.v2-home .home-side p { display: none; }
.v2-home .home-hero { padding: 32px 0 24px; }
.v2-home .home-hero .eyebrow { display: none; }
.v2-home .home-hero h1 { max-width: 900px; font-size: clamp(32px, 4vw, 48px); }
.home-workbench-head { margin-bottom: 24px; }
.home-workbench-head strong { font-size: 22px; }
.home-workbench-head small { max-width: 44ch; font-size: 14px; }
.home-group-label { margin-bottom: 12px; font-size: 13px; }
.v2-home .quick-sizes { gap: 0; margin-bottom: 8px; border: 1px solid #d5d8dc; border-radius: 8px; overflow: hidden; }
.v2-home .quick-sizes .home-size-option,
.v2-home .home-more-options .home-size-option {
  min-height: 64px;
  padding: 12px;
  border: 0;
  border-right: 1px solid #d5d8dc;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.v2-home .quick-sizes .home-size-option:last-child { border-right: 0; }
.v2-home .quick-sizes .home-size-option[aria-pressed="true"],
.v2-home .home-more-options .home-size-option[aria-pressed="true"] { background: #eaf0f8; box-shadow: none; }
.v2-home .quick-sizes .home-size-option > span,
.v2-home .home-more-options .home-size-option > span { font-size: 13px; }
.v2-home .quick-sizes .home-size-option > small,
.v2-home .home-more-options .home-size-option > small { font-size: 12px; }
.v2-home .home-more-sizes { margin: 0 0 24px; }
.v2-home .home-more-sizes > summary { font-size: 13px; }
.v2-home .home-more-options { gap: 0; border: 1px solid #d5d8dc; border-radius: 8px; overflow: hidden; }
.v2-home .home-more-options .home-size-option:last-child { border-right: 0; }
.v2-home .home-edit-options { margin: 0 0 24px; gap: 16px; }
.v2-home .home-edit-options label { gap: 8px; color: #344250; font-size: 13px; }
.v2-home .home-edit-options select { height: 44px; border-color: #cbd2d9; border-radius: 8px; }
.v2-home .home-photo-input { padding-top: 20px; border-color: #d8d6d0; }
.v2-home .home-photo-head { margin-bottom: 12px; }
.v2-home .home-photo-head > strong { font-size: 13px; }
.v2-home .home-selected-size { background: transparent; color: #344250; }
.v2-home .v2-upload { min-height: 88px; padding: 16px; border: 1px solid #a9b9ca; background: #f8fafc; }
.v2-home .v2-upload:hover { background: #eef4fa; }
.v2-home .home-file-status { margin: 8px 0 16px; }
.v2-home .home-continue { min-height: 48px; }
.v2-home .home-live-preview { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.v2-home .home-live-preview > div:first-child { align-items: baseline; gap: 16px; color: #26313d; font-size: 14px; }
.v2-home .home-live-preview > div:first-child strong { font-weight: 650; }
.v2-home .home-preview-dimensions { color: #455363; font-size: 13px; }
.v2-home .home-preview-stage {
  position: relative;
  height: 400px;
  margin: 16px 0 12px;
  border: 1px solid #d9d6ce;
  border-radius: 8px;
  background: #e6e3dc;
}
.v2-home .home-preview-stage img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.v2-home .home-preview-stage > span { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 8px; border-radius: 4px; background: #fff; color: #344250; font-size: 12px; }
.v2-home .home-live-preview > small { display: block; max-width: 48ch; color: #455363; font-size: 12px; line-height: 1.5; }
.v2-home .home-side > a { margin-top: 24px; border-top: 1px solid #d0cdc5; color: #214f94; }
@media (max-width: 900px) {
  .v2-home .picker, .v2-home .home-side { padding: 20px; }
  .v2-home .home-preview-stage { height: 340px; }
}
@media (max-width: 600px) {
  .v2-home .home-workbench { grid-template-columns: minmax(0, 1fr); }
  .v2-home .home-side { border-left: 0; border-top: 1px solid #d8d6d0; }
  .v2-home .home-hero { padding: 24px 0 20px; }
  .v2-home .picker, .v2-home .home-side { padding: 20px; }
  .v2-home .home-edit-options { gap: 12px; }
  .v2-home .quick-sizes .home-size-option { padding: 8px; }
  .v2-home .home-preview-stage { height: 280px; }
}

/* Keep translated and long action labels readable at narrow widths. */
.button {
  height: auto;
  min-height: var(--btn-h);
  padding-block: 10px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.v2-home .quick-sizes .home-size-option > span,
.v2-home .home-more-options .home-size-option > span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.v2-home .home-selected-size {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
}

/* Navigation content stays in one compact group on wide screens. */
.topbar {
  justify-content: flex-start;
  gap: 44px;
}
.topbar nav { gap: 2px; }
.topbar--studio {
  padding-inline: max(var(--page-gutter), calc((100% - 1180px) / 2));
}
.topbar--studio nav a {
  min-height: 40px;
  padding-inline: 12px;
}
@media (max-width: 640px) {
  .topbar,
  .topbar--studio {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 2px 12px;
    padding-block: 8px;
  }
  .topbar--studio { padding-inline: var(--page-gutter); }
  .topbar nav { width: 100%; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: 0 0 auto; white-space: nowrap; }
}

.country-hub > .lead {
  max-width: 95ch;
  text-wrap: pretty;
}
.country-document-list {
  margin-top: 28px;
}
.country-hub-brief {
  margin-top: 20px;
  max-width: 95ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}
/* Keep a millimetre size on one line instead of breaking after the ×. */
.country-hub-brief .mm-size,
.country-document-copy small .mm-size,
.country-grid small .mm-size {
  white-space: nowrap;
}
.type-checklist {
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.type-checklist li {
  position: relative;
  padding-left: 22px;
  color: #3f4a56;
  font-size: 14px;
  line-height: 1.55;
}
.type-checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.country-document-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.country-document-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 650 20px/1.3 var(--font-display);
  letter-spacing: -.025em;
}
.country-document-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.country-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}.country-document-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 78px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.country-document-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.country-document-copy strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.country-document-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.country-document-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}
.country-document-status.is-official,
.country-document-status.is-checked { color: #3f6e4a; }
.country-document-status.is-estimate { color: #8a6424; }
.country-document-link:hover .country-document-copy strong {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.country-document-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Shared button feedback: calm press response, clear focus, legible disabled state. */
:where(button, .button) {
  -webkit-tap-highlight-color: transparent;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    transform 100ms cubic-bezier(.2, .7, .2, 1);
}
:where(button, .button):active:not(:disabled) {
  transform: translateY(1px);
}
:where(button, .button):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.button:disabled {
  border-color: #d3d9e1;
  background: #e7ebf0;
  color: #596574;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  :where(button, .button) {
    transition: none;
  }
  :where(button, .button):active:not(:disabled) {
    transform: none;
  }
}
@media (max-width: 780px) {
  .country-document-grid { grid-template-columns: 1fr; }
  .country-document-grid .country-document-link { min-height: 72px; }
}
@media (max-width: 420px) {
  .country-document-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .country-document-link { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .country-document-status { white-space: normal; max-width: 88px; }
}

/* Final product layer: a quiet print studio, with the photograph as the color. */
:root {
  --bg: #f7f7f5;
  --bg-soft: #f0efeb;
  --surface: #fff;
  --ink: #202329;
  --muted: #626873;
  --line: #e3e2dd;
  --blue: #2859a8;
  --blue-strong: #204987;
  --blue-soft: #eef3fb;
  --radius-control: 7px;
  --radius-card: 10px;
  --radius-panel: 12px;
}

body { background: var(--bg); color: var(--ink); }
.topbar,
.topbar--studio {
  color: var(--ink);
  background: rgba(250, 250, 248, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(32, 35, 41, .02);
}
.topbar--studio .brand { color: var(--ink); }
.topbar--studio .brand-mark { color: var(--blue); }
.topbar--studio nav a { color: #565d67; }
.topbar--studio nav a:hover,
.topbar--studio nav a[aria-current="page"] {
  color: var(--blue-strong);
  background: var(--blue-soft);
}
.topbar nav a[aria-current="page"] { font-weight: 600; }
.footer { color: var(--muted); }

.home-hero { padding-top: 48px; }
.home-hero h1,
.tool-head h1 {
  color: #202329;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.guide-page > h1 { color: #202329; letter-spacing: -.038em; text-wrap: pretty; }
.home-hero .lead,
.guide-page > .lead { color: #5c626c; }
.v2-home .picker,
.v2-home .home-side {
  border-color: #deded8;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(27, 32, 40, .035);
}
.v2-home .picker { background: #fff; }
.v2-home .home-side { background: #eeece6; }
.v2-home .home-preview-stage { background: #e4e2dc; }
.v2-home .quick-sizes .home-size-option,
.v2-home .home-more-options .home-size-option {
  min-width: 0;
  border-color: #deded8;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.v2-home .quick-sizes .home-size-option:hover,
.v2-home .home-more-options .home-size-option:hover {
  border-color: #aebed6;
  background: #f8fafe;
}
.v2-home .quick-sizes .home-size-option[aria-pressed="true"],
.v2-home .home-more-options .home-size-option[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: none;
}
.v2-home .home-continue,
.button,
.remove-bg {
  border-radius: 7px;
  font-weight: 600;
}
.v2-home .home-continue:not(:disabled):hover,
.button:not(:disabled):hover { filter: brightness(.96); }

.page-home {
  --home-ink: #202329;
  --home-muted: #626873;
  --home-line: #e1dfd9;
  --home-warm: #eeece6;
  --home-accent: #2859a8;
  --home-accent-dark: #204987;
}
.home-intro { border-bottom-color: var(--line); }
.home-desk {
  border-color: #deded8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(27, 32, 40, .055);
}
.home-desk-preview { background: #efede7; }
.preview-frame { box-shadow: 0 8px 24px rgba(24, 30, 38, .13); }
.home-desk-controls { background: #fff; }
.home-size-option { border-radius: 7px; background: #fff; }
.home-size-option[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: none;
}
.home-upload { border-radius: 7px; }
.home-example-link { gap: 0; }
.home-example-link [aria-hidden="true"] { display: none; }
.page-editor .canvas-toolbar {
  background: #f8f8f6;
  color: #3f4650;
  border-bottom-color: var(--line);
}
.page-editor .canvas-toolbar #workspace-size { color: #68717b; }
.page-editor .live-dot { background: #4c9562; }
.sheet-cta i,
.sheet-arrow { display: none !important; }
.sheet-cta { justify-content: flex-start; }
.home-continue { justify-content: center; }

.guide-page { margin-top: 30px; }
.breadcrumbs { color: #777c84; }
.breadcrumbs a { color: #555e69; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.document-card {
  border-color: #deded8;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(27, 32, 40, .035);
}
.spec-bar { background: #fff; }
.spec-bar > div { min-width: 0; }
.spec-bar span { font-size: 12px; letter-spacing: .015em; }
.spec-bar strong { overflow-wrap: anywhere; }
.country-grid a,
.country-document-link { text-decoration: none; }
.country-grid a:hover,
.country-document-link:hover { background: #f0f3f8; }
.country-document-link:hover .country-document-copy strong { text-decoration: none; }
.country-document-status { max-width: 110px; white-space: normal; }
.country-document-status.is-official,
.country-document-status.is-checked { color: #446a4c; }
.country-document-status.is-estimate { color: #806023; }

.studio-controls,
.canvas-panel {
  border-color: #dcdcd6;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(27, 32, 40, .035);
}
.studio-controls { background: #fff; }
.studio-stack { padding: 18px; }
.studio-block { padding-block: 16px; }
.studio-controls select,
.studio-controls input[type="number"],
.sheet-settings select,
.sheet-summary select {
  min-width: 0;
  min-height: 42px;
  border-radius: 7px;
  background-color: #fff;
}
.field-label,
.control-section-title { color: #303640; }
.upload-button,
.secondary-button,
.step-button,
.swatch,
.kb-chip {
  border-radius: 7px;
}
.swatch.active,
.kb-chip.active { box-shadow: inset 0 0 0 1px var(--blue); }
.canvas-panel { overflow: hidden; background: #fff; }
.canvas-toolbar,
.canvas-footer { background: #fff; }
.canvas-stage { background-color: #eeefed; }
.preview-empty { max-width: 34ch; text-wrap: balance; }
.sheet-dialog {
  border-color: #dadbd7;
  border-radius: 11px;
  box-shadow: 0 22px 70px rgba(24, 28, 34, .2);
}
.sheet-preview-wrap { background: #e9e9e5; }

:where(button, .button, select, input, summary, a) { -webkit-tap-highlight-color: transparent; }
:where(button, .button, select, input):focus-visible {
  outline: 2px solid #547dbb;
  outline-offset: 2px;
}
:where(button, .button) { overflow-wrap: anywhere; }
.country-document-status,
.country-document-copy,
.spec-bar > div,
.studio-controls { min-width: 0; }

@media (max-width: 900px) {
  .home-hero { padding-top: 36px; }
  .studio-stack { padding: 16px; }
}
@media (max-width: 640px) {
  .topbar,
  .topbar--studio { background: #fafaf8; }
  .topbar nav { gap: 0; overflow: visible; }
  .topbar nav a { min-width: 0; padding-inline: 5px; font-size: 11px; }
  .home-hero { padding-top: 28px; }
  .home-hero h1,
  .v2-home .home-hero h1,
  .guide-page > h1 { letter-spacing: -.035em; }
  .v2-home .picker,
  .v2-home .home-side { padding: 16px; }
  .spec-bar > div { padding: 12px; }
  .spec-bar strong { font-size: 14px; }
  .studio { gap: 12px; }
  .canvas-panel { min-height: 360px; }
  .canvas-stage { min-height: 280px; padding: 16px; }
}
