/* The customisation workbench keeps the real print artwork beside its controls. */
@media screen {
  .md-shell .md-customisation { --customisation-paper: #fffefa; padding: 0; }
  .md-shell .md-customisation-controls { padding: 0; }
  .md-shell .md-customisation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
  .md-shell .md-customisation-heading h3 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
  .md-shell .md-customisation-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 28px; }
  .md-shell .md-customisation-sidebar { min-width: 0; }
  .md-shell .md-customisation-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--md-line); margin-bottom: 20px; }
  .md-shell .md-customisation-tabs > button { border: 0; border-radius: 0; background: transparent; color: #526154; padding: 12px 6px; min-height: 46px; border-bottom: 2px solid transparent; }
  .md-shell .md-customisation-tabs > button[aria-pressed="true"] { color: var(--md-green); border-bottom-color: var(--md-green); }
  .md-shell .md-customisation-tabs > button:hover { background: #e6ece2; }
  .md-shell .md-customisation-pending { font-size: 10px; font-weight: 500; }
  .md-shell .md-customisation-scope, .md-shell .menu-brand-scope { margin: 0 0 22px; color: #526154; font-size: 12px; line-height: 1.5; }
  .md-shell .md-customisation fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
  .md-shell .md-customisation legend { padding: 0; margin: 0 0 12px; font-size: 13px; font-weight: 650; line-height: 1.4; color: var(--md-ink); }
  .md-shell .md-format-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .md-shell .md-format-choice { position: relative; display: grid; align-content: start; gap: 7px; margin: 0; padding: 12px; border: 1px solid #bdc8ba; border-radius: 8px; background: var(--customisation-paper); cursor: pointer; }
  .md-shell .md-format-choice:has(input:checked), .md-shell .menu-brand-style:has(input:checked) { border-color: var(--md-green); background: #e8f0e6; box-shadow: inset 0 0 0 1px var(--md-green); }
  .md-shell .md-format-choice:hover, .md-shell .menu-brand-style:hover { border-color: var(--md-green); }
  .md-shell .md-format-choice input[type="radio"], .md-shell .menu-brand-style input[type="radio"] { position: absolute; top: 12px; right: 10px; margin: 0; padding: 0; width: 16px; height: 16px; min-height: 0; accent-color: var(--md-green); }
  .md-shell .md-format-choice strong { font-size: 13px; line-height: 1.35; }
  .md-shell .md-format-choice small { font-size: 11px; color: #526154; font-weight: 400; line-height: 1.45; }
  .md-shell .md-format-thumb { display: block; height: 100px; padding: 18px 10px 8px; margin-bottom: 5px; background: white; border: 1px solid #dae0d6; border-radius: 2px; }
  .md-shell .md-format-thumb-title { display: block; width: 48%; height: 5px; background: #384b3e; margin-bottom: 7px; }
  .md-shell .md-format-thumb-rule { display: block; height: 2px; background: #2d5c40; margin-bottom: 7px; }
  .md-shell .md-format-thumb-table { display: grid; grid-template-columns: 2.5fr repeat(3, 1fr); border-top: 1px solid #bec9bc; border-left: 1px solid #bec9bc; }
  .md-shell .md-format-thumb-table i { height: 13px; border-right: 1px solid #bec9bc; border-bottom: 1px solid #bec9bc; }
  .md-shell .md-format-thumb-table i:nth-child(-n+4) { background: #e7eee4; }
  .md-shell .md-format-thumb-dish { display: block; width: 58%; height: 4px; background: #62725d; margin: 9px 0 5px; }
  .md-shell .md-format-thumb-line { display: block; width: 88%; height: 2px; background: #c5cec1; margin-bottom: 4px; }
  .md-shell .md-customisation-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
  .md-shell .md-page-count { min-width: 8ch; color: #526154; font: 400 13px/1.5 var(--font); font-variant-numeric: tabular-nums; }
  .md-shell .md-customisation-page { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
  .md-shell .md-customisation-page label, .md-shell .md-customisation-details label { display: block; margin: 0; color: var(--md-ink); font-size: 13px; font-weight: 600; }
  .md-shell .md-customisation input[type="text"], .md-shell .md-customisation input:not([type]), .md-shell .md-customisation select, .md-shell .md-customisation textarea { width: 100%; margin-top: 8px; padding: 10px 12px; min-height: 44px; border: 1px solid #aebca9; border-radius: 6px; background: var(--customisation-paper); color: var(--md-ink); font: 400 14px/1.45 var(--font); box-sizing: border-box; caret-color: var(--md-green); }
  .md-shell .md-customisation textarea { resize: vertical; }
  .md-shell .md-customisation input::placeholder { color: #63705f; }
  .md-shell .md-customisation-details, .md-shell .menu-brand-recovery { border-top: 1px solid var(--md-line); }
  .md-shell .md-customisation-details > summary, .md-shell .menu-brand-recovery > summary { cursor: pointer; min-height: 44px; padding: 13px 0; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--md-green); }
  .md-shell .md-customisation-details > div { display: grid; gap: 18px; padding: 6px 0 18px; }
  .md-shell .md-footer-options { display: grid; gap: 0; }
  .md-shell .md-customisation-details .md-customisation-checkbox { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; font-weight: 400; cursor: pointer; }
  .md-shell .md-customisation-details .md-customisation-checkbox input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--md-green); }
  .md-shell .md-customisation-footer-field textarea { margin-top: 0; }
  .md-shell .md-customisation .field-help { color: #526154; font-size: 12px; line-height: 1.5; }
  .md-shell .md-customisation .md-editor-actions, .md-shell .md-customisation .menu-brand-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; padding-top: 18px; border-top: 1px solid var(--md-line); }
  .md-shell .md-customisation .md-editor-actions button, .md-shell .md-customisation .menu-brand-actions button { width: 100%; min-height: 44px; margin: 0; padding: 11px 14px; font-size: 13px; }
  .md-shell .md-customisation .md-proof-zone { position: sticky; top: 24px; border-radius: 8px; background: #e4e8df; padding: 18px; width: 100%; }
  .md-shell .md-customisation .md-artwork-scroll { max-height: 76vh; scrollbar-color: #8b9a84 #e4e8df; scrollbar-width: thin; }
  .md-shell .md-customisation .md-proof-controls button { min-height: 36px; }
  .md-shell .md-customisation-mobile { display: none; }
  .md-shell .md-customisation :is(button, input, select, textarea, summary):focus-visible { outline: 3px solid #bc623b; outline-offset: 3px; }
  .md-shell .md-customisation :is(.md-format-choice, .menu-brand-style):focus-within { outline: 3px solid #bc623b; outline-offset: 3px; }
  .md-shell .md-customisation :is(.md-format-choice, .menu-brand-style) input:focus-visible { outline: 0; }
  .md-shell .md-customisation [hidden] { display: none !important; }
  .md-shell .md-customisation ::selection { background: #cedfc7; color: #193221; }

  /* Branding uses the same quiet rhythm as menu layout. */
  .md-shell .md-customisation .md-branding-editor { max-width: none; margin: 0; }
  .md-shell .md-customisation .menu-branding { margin: 0; padding: 0; }
  .md-shell .menu-brand-editor [data-brand-status] { min-height: 18px; margin: 0 0 16px; color: #526154; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .md-shell .menu-brand-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .md-shell .menu-brand-style { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 12px; border: 1px solid #bdc8ba; border-radius: 8px; background: var(--customisation-paper); }
  .md-shell .menu-brand-thumbnail { display: block; padding: 16px 10px 8px; margin: 0; width: 100%; height: 96px; border: 1px solid #dae0d6; border-radius: 2px; background: white; box-sizing: border-box; }
  .md-shell .menu-brand-thumbnail-business { display: block; font: 7px/1.3 Arial, sans-serif; color: #17211c; }
  .md-shell .menu-brand-thumbnail-title { display: block; margin: 3px 0 7px; font: 700 13px/1.2 Arial, sans-serif; color: #17211c; }
  .md-shell .menu-brand-thumbnail-rule { display: block; height: 2px; margin-bottom: 8px; background: #46524b; }
  .md-shell .menu-brand-thumbnail-row { display: flex; justify-content: space-between; height: 13px; border-bottom: 1px solid #ced5ca; font: 7px/13px Arial, sans-serif; color: #526154; }
  .md-shell .menu-brand-thumbnail-classic { text-align: center; }
  .md-shell .menu-brand-thumbnail-classic .menu-brand-thumbnail-title { font: 400 15px/1.2 Georgia, serif; }
  .md-shell .menu-brand-thumbnail-classic .menu-brand-thumbnail-rule { height: 4px; border-top: 1px solid #46524b; border-bottom: 1px solid #46524b; background: none; }
  .md-shell .menu-brand-style-copy strong { display: block; font-size: 13px; line-height: 1.4; }
  .md-shell .menu-brand-style-copy small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.45; color: #526154; font-weight: 400; }
  .md-shell .menu-brand-logo-field { display: block; margin: 20px 0; }
  .md-shell .menu-brand-logo-control { display: block; color: var(--md-ink); font-size: 13px; font-weight: 600; }
  .md-shell .menu-brand-logo-control > span > small { display: inline; font-size: 12px; font-weight: 400; }
  .md-shell .menu-brand-logo-control input { display: block; width: 100%; min-height: 44px; margin-top: 10px; color: #526154; font-size: 12px; border: 0; padding: 0; }
  .md-shell .menu-brand-logo-control input::file-selector-button { min-height: 44px; margin-right: 10px; padding: 8px 12px; background: var(--customisation-paper); border: 1px solid #aebca9; border-radius: 6px; color: var(--md-ink); font: 600 12px var(--font); cursor: pointer; }
  .md-shell .menu-brand-logo-control small { display: block; margin-top: 8px; color: #526154; font-size: 11px; font-weight: 400; line-height: 1.5; }
  .md-shell .menu-brand-logo-proof { display: flex; align-items: center; gap: 16px; margin: 12px 0 0; }
  .md-shell .menu-brand-logo-proof img { max-width: 100px; max-height: 64px; padding: 5px; background: white; border: 1px solid #dae0d6; }
  .md-shell .menu-brand-logo-proof button, .md-shell .menu-brand-recovery button { min-height: 44px; padding: 8px; font-size: 12px; }
  .md-shell .menu-brand-recovery .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
}
@media screen and (max-width: 1100px) and (min-width: 801px) {
  .md-shell .md-customisation-grid { grid-template-columns: 292px minmax(0, 1fr); gap: 20px; }
  .md-shell .md-customisation .md-proof-zone { padding: 12px; }
}
@media screen and (max-width: 800px) {
  .md-shell .md-customisation-heading { flex-wrap: wrap; margin-bottom: 16px; padding: 12px 0; gap: 12px; }
  .md-shell .md-customisation-heading h3 { font-size: 21px; }
  .md-shell .md-customisation-mobile { display: flex; gap: 4px; }
  .md-shell .md-customisation-mobile button { min-height: 44px; padding: 8px 12px; background: transparent; border-color: transparent; }
  .md-shell .md-customisation-mobile button[aria-pressed="true"] { border-color: #b1bea9; background: #e1eadb; }
  .md-shell .md-customisation-grid { display: block; }
  .md-shell .md-customisation[data-customisation-view="settings"] .md-proof-zone { display: none; }
  .md-shell .md-customisation[data-customisation-view="preview"] .md-customisation-sidebar { display: none; }
  .md-shell .md-customisation .md-proof-zone { position: static; padding: 10px; }
  .md-shell .md-customisation .md-artwork-scroll { max-height: 68vh; }
  .md-shell .md-customisation-tabs { margin-bottom: 16px; }
  .md-shell .md-customisation-scope, .md-shell .menu-brand-scope { margin-bottom: 18px; }
  .md-shell .md-customisation .md-editor-actions, .md-shell .md-customisation .menu-brand-actions { padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
}
