:root {
  --mm-aqua: #4fb2cf;
  --mm-aqua-deep: #2199bb;
  --mm-aqua-soft: #eaf7fa;
  --mm-yellow: #f3d44a;
  --mm-ink: #5b5b5b;
  --mm-muted: #828282;
  --mm-line: #dedede;
  --mm-paper: #f7f7f7;
  --white: #fff;
  --shadow: 0 14px 42px rgba(70, 85, 90, 0.13);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--mm-ink); background: #eceff0; font-family: "Mulish", Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: default; }
.mm-logo { position: relative; display: block; flex: 0 0 auto; }
.mm-logo img { display: block; width: 100%; clip-path: inset(0 5% 0 0); }
.mm-logo small { position: absolute; top: 0; right: 0; color: #299fc0; font: 600 18px/1 Arial, sans-serif; }

main, .mockup { min-height: 100vh; }

.focused-header { min-height: 88px; padding: 8px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; background: white; border-bottom: 1px solid #e5e5e5; }
.focused-brand { min-width: 0; display: flex; align-items: center; gap: 20px; }
.focused-brand .mm-logo { width: 270px; }
.focused-brand-copy { min-width: 0; display: grid; transform: translateY(5px); }
.focused-brand-title { color: #69777a; font-family: "Sen", sans-serif; font-size: 18px; line-height: 1.2; white-space: nowrap; }
.focused-header-meta { display: flex; align-items: center; justify-self: end; gap: 20px; white-space: nowrap; }
.focused-header-link { padding: 7px 9px; border: 0; background: transparent; color: var(--mm-aqua-deep); font-size: 14px; cursor: pointer; }
.focused-header-link:hover, .focused-header-link:focus-visible { text-decoration: underline; }
.focused-version { color: #778488; font-size: 13px; }
.mobile-menu-trigger, .mobile-actions { display: none; }
.mobile-actions[hidden] { display: none !important; }
.planner-flow-hint { min-height: 42px; padding: 7px 28px; display: flex; align-items: center; justify-content: center; gap: 16px; border-bottom: 1px solid #d8e9ed; background: #eef9fb; color: #42636b; font-size: 12px; line-height: 1.45; text-align: center; }
.planner-flow-hint[hidden] { display: none; }
.planner-flow-hint-label { color: #218aa4; font-size: 10px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.planner-flow-hint b { margin: 0 5px; color: #2b9cba; font-size: 15px; font-weight: 500; }
.planner-flow-hint button { margin-left: 8px; padding: 0 4px; border: 0; background: transparent; color: #4e737c; font-size: 20px; line-height: 1; cursor: pointer; }
.planner-flow-hint button:hover, .planner-flow-hint button:focus-visible { color: #116c85; }
.focused-commandbar { min-height: 59px; display: grid; grid-template-columns: 270px minmax(440px, 1fr) 250px; align-items: center; background: #f8f9f9; border-bottom: 1px solid #dedede; }
.focused-command-main { grid-column: 2; width: min(650px, calc(100% - 58px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.focused-command-actions { margin-left: auto; }
.focused-pattern-info, .focused-command-actions { display: flex; align-items: center; gap: 10px; }
.focused-pattern-info { min-width: 0; }
.focused-pattern-info strong { white-space: nowrap; }
.focused-commandbar span { color: #888; font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mm-aqua); }
.focused-commandbar button { min-height: 35px; padding: 8px 11px; border: 1px solid var(--mm-aqua); border-radius: 4px; background: white; color: var(--mm-aqua-deep); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.focused-commandbar .focused-pattern-button { min-width: 126px; }
.focused-commandbar .focused-pattern-button.needs-pattern-choice { background: #eaf7fb; border-color: #268eac; box-shadow: 0 0 0 3px rgba(79,178,207,.2); }
.focused-commandbar button:hover, .focused-commandbar button:focus-visible { border-color: var(--mm-aqua-deep); background: #eef8fa; }
.page-reset-actions { grid-column: 3; justify-self: end; margin-right: 24px; display: flex; align-items: center; gap: 8px; }
.focused-workspace { min-height: 715px; display: grid; grid-template-columns: 270px minmax(440px, 1fr) 250px; background: #eceff0; }
.focused-rail { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: white; border-right: 1px solid #dadada; }
.focused-rail-heading { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.focused-rail-heading span { color: var(--mm-aqua-deep); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.focused-rail-heading b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #edf5f7; color: var(--mm-aqua-deep); font-size: 11px; }
.focused-add { width: 100%; height: 41px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed var(--mm-aqua); background: #f3fbfc; color: var(--mm-aqua-deep); font-size: 12px; cursor: pointer; }
.focused-add span { font-size: 20px; line-height: 1; }
.focused-add:hover, .focused-add:focus-visible { background: #e8f7fa; border-color: var(--mm-aqua-deep); }
.focused-photo-grid { min-height: 0; flex: 1 1 0; padding-right: 3px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9d9dc transparent; }
@media (min-width: 1101px) {
  .focused-rail { height: var(--pattern-rail-height, 715px); align-self: start; }
}
.focused-photo-card { min-width: 0; aspect-ratio: 1; position: relative; }
.focused-thumb { width: 100%; height: 100%; padding: 0; overflow: hidden; border: 2px solid transparent; background: #eef1f2; cursor: grab; }
.focused-thumb:active { cursor: grabbing; }
.focused-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.focused-thumb.current { border-color: var(--mm-aqua); box-shadow: 0 0 0 2px rgba(79,178,207,.16); }
.ipad-chrome-finger-drag .focused-thumb,
.ipad-chrome-finger-drag .focused-thumb img,
.ipad-chrome-finger-drag .color-source-trigger,
.ipad-chrome-finger-drag .color-source-trigger * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ipad-chrome-finger-drag .finger-drag-source,
.ipad-chrome-finger-drag .finger-drag-source img { -webkit-user-drag: none; }
.planner-finger-drag-preview { position: fixed; top: 0; left: 0; width: 72px; height: 72px; z-index: 10000; overflow: hidden; border: 2px solid white; border-radius: 5px; background: #ffffff; box-shadow: 0 5px 20px rgba(25,45,50,.35); opacity: .92; pointer-events: none; }
.planner-finger-drag-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-rotate { width: 25px; height: 25px; position: absolute; top: 0; right: 0; z-index: 2; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: rgba(42,85,95,.8); font-size: 17px; line-height: 1; text-shadow: 0 1px 1px rgba(255,255,255,.9); cursor: pointer; }
.photo-rotate:hover, .photo-rotate:focus-visible { background: transparent; color: #187e99; }
.photo-rotate:focus-visible { outline: 1px solid rgba(24,126,153,.7); outline-offset: -2px; }
.photo-rotate:disabled { opacity: .45; cursor: wait; }
.photo-delete { width: 25px; height: 25px; position: absolute; top: 0; left: 0; z-index: 2; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: #315a64; cursor: pointer; }
.photo-delete svg { width: 14px; height: 14px; pointer-events: none; }
.photo-delete:hover, .photo-delete:focus-visible { background: transparent; color: #a33f4c; }
.photo-delete:focus-visible { outline: 2px solid #a55555; outline-offset: -2px; }
.photo-size-badge { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); pointer-events: none; color: #315a64; background: rgba(255,255,255,.92); border-radius: 2px; padding: 1px 3px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.photo-size-badge.is-portrait { left: auto; right: 0; top: 50%; bottom: auto; padding: 2px 0; background: transparent; writing-mode: vertical-rl; transform: translateY(-50%); }
.photo-delete:disabled { opacity: .45; cursor: wait; }
.focused-color-source { position: relative; z-index: 20; flex: 0 0 auto; padding-top: 9px; border-top: 1px solid #e5eaeb; }
.color-source-trigger { width: 100%; min-height: 44px; margin-top: 6px; padding: 6px 8px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; border: 1px solid #d9dfe1; border-radius: 3px; background: #fff; color: #5f6769; text-align: left; font-size: 12px; cursor: pointer; }
.paper-color-chip.color-source-chip { width: 30px; height: 30px; }
.color-source-trigger.is-selected { border: 2px solid var(--mm-aqua-deep); background: #eaf7fa; color: #1c6e84; box-shadow: 0 0 0 2px rgba(79,178,207,.14); font-weight: 700; }
.color-source-trigger:hover, .color-source-trigger[aria-expanded="true"] { border-color: var(--mm-aqua); box-shadow: 0 0 0 2px rgba(79,178,207,.12); }
.color-source-trigger[draggable="true"] { cursor: grab; }
.color-source-trigger[draggable="true"]:active { cursor: grabbing; }
.paper-color-popover.color-source-popover { top: auto; right: auto; bottom: calc(100% + 7px); left: 0; max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; opacity: 1; }
.color-source-popover .paper-hex-control { grid-template-columns: auto 1fr; }
.color-source-done { min-height: 36px; padding: 8px 14px; border: 1px solid var(--mm-aqua-deep); border-radius: 3px; background: #eaf7fa; color: #1c6e84; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.color-source-done:hover, .color-source-done:focus-visible { background: #d9eff5; }
.focused-rail-help { color: #6d797c; font-size: 13px; line-height: 1.45; }
.focused-stage { min-width: 0; margin: 14px; padding: 14px; display: grid; grid-template-rows: auto 1fr; align-self: start; border: 1px solid #d5dfe1; border-radius: 5px; background: #f8fafb; box-shadow: 0 8px 26px rgba(62,75,80,.08); }
.focused-stage-heading { min-height: 24px; display: flex; align-items: center; justify-content: center; }
.visually-hidden { width: 1px; height: 1px; position: absolute; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.focused-session-notice { width: 100%; margin: 0; color: #687477; font-size: 13px; line-height: 1.4; text-align: center; }
.focused-session-notice strong { color: #8a671c; font-weight: 700; }
.focused-canvas-zone { min-width: 0; display: grid; justify-items: center; align-items: start; }
.focused-pattern { --paper-color: #fff; width: min(100%, 650px); box-sizing: border-box; aspect-ratio: 1; position: relative; overflow: hidden; background-color: var(--paper-color); background-size: 100% 100%; background-repeat: no-repeat; box-shadow: 0 18px 48px rgba(69,77,80,.16); transition: background-color .15s ease; }
/* All page layers share the full 12-inch sheet coordinate system. */
.focused-pattern.has-grid-paper:not(.page-preview-pattern) .pattern-base rect { opacity: 1; }
.focused-pattern.page-preview-pattern.has-grid-paper .pattern-base rect { opacity: 0; }
/* The design geometry is fixed across all background choices and viewport sizes. */
.pattern-base, .planner-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.grid-mark-overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; user-select: none; }
.pattern-base { display: block; z-index: 1; }
.planner-overlay { z-index: 2; overflow: visible; touch-action: none; }
.page-watermark { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; user-select: none; }
.page-watermark img { display: block; width: 100%; height: 100%; object-fit: fill; }
.region-image { display: none; pointer-events: none; }
.photo-region.has-photo .region-image { display: block; }
.region-color { display: none; pointer-events: none; }
.photo-region.has-color .region-color { display: block; }
.region-color-marker { display: none; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(32,49,53,.25)); }
.photo-region.has-color .region-color-marker { display: block; }
.region-mat { display: none; pointer-events: none; }
.photo-region.has-mat .region-mat { display: block; }
.region-hit { fill: transparent; stroke: transparent; stroke-width: 7; vector-effect: non-scaling-stroke; cursor: copy; transition: fill .15s ease, stroke .15s ease; }
.photo-region.has-photo .region-hit { cursor: move; }
.photo-region.has-color .region-hit { cursor: pointer; }
.photo-region.has-color:hover:not(.is-selected) .region-hit { fill: rgba(50,159,189,.08); }
.pattern-is-dragging .region-hit { fill: rgba(79,178,207,.13); stroke: rgba(79,178,207,.92); }
.photo-region.is-over .region-hit { fill: rgba(243,212,74,.25); stroke: #e0bd1c; stroke-width: 10; }
.photo-region.is-over.is-replacing .region-hit { fill: rgba(240,112,168,.18); stroke: #c7447e; }
.photo-region.is-selected .region-hit { stroke: #008aad; stroke-width: 6; }
.photo-region:focus { outline: none; }
.photo-region:focus-visible .region-hit { stroke: #008aad; stroke-width: 6; }
.drop-instruction { position: absolute; left: 50%; bottom: 21px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: 82%; padding: 9px 14px; display: grid; gap: 2px; text-align: center; border: 1px solid rgba(79,178,207,.35); border-radius: 4px; background: rgba(255,255,255,.94); color: #55676c; box-shadow: 0 5px 18px rgba(45,66,71,.13); pointer-events: none; }
.drop-instruction strong { font-size: 12px; }
.drop-instruction span { color: #819094; font-size: 10px; }
.drop-instruction.is-hidden { opacity: 0; }
.focused-tools { position: relative; padding: 13px 15px; background: white; border-left: 1px solid #dadada; }
.focused-tools-heading { padding: 8px 9px 9px; border-left: 3px solid #78bac9; border-bottom: 1px solid #dce9ec; background: #f4f9fa; }
.focused-tools-heading > span { color: var(--mm-aqua-deep); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.focused-tools-heading h2 { margin: 4px 0 2px; color: #595959; font-size: 18px; }
.focused-tools-heading p { margin: 0; color: #68777b; font-size: 11px; line-height: 1.3; }
.focused-tools-heading button { margin-top: 7px; padding: 5px 7px; border: 1px solid var(--mm-aqua-deep); border-radius: 3px; background: white; color: #1d768e; font-size: 11px; font-weight: 700; }
.focused-tools-heading button[hidden] { display: none; }
.paper-color-control, .mat-control, .spot-color-control { position: relative; padding: 8px 0; border-bottom: 1px solid #ececec; }
.page-background-control { padding-top: 0; padding-bottom: 11px; margin-bottom: 9px; border-bottom-color: #d8e3e6; }
.paper-control-label { display: block; color: var(--mm-aqua-deep); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.paper-color-trigger { width: 100%; min-height: 37px; margin-top: 6px; padding: 6px 8px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 7px; border: 1px solid #d9dfe1; border-radius: 3px; background: white; color: #5f6769; text-align: left; font-size: 12px; cursor: pointer; }
.paper-color-trigger:hover, .paper-color-trigger[aria-expanded="true"] { border-color: var(--mm-aqua); box-shadow: 0 0 0 2px rgba(79,178,207,.12); }
.paper-color-trigger:disabled { opacity: .48; cursor: not-allowed; }
.paper-color-trigger #paper-color-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper-color-chip { width: 24px; height: 24px; border: 1px solid rgba(52,63,66,.24); border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.spot-color-chip.is-empty, .color-source-chip.is-empty { background: linear-gradient(135deg, #fff 47%, #c4ced0 48%, #c4ced0 52%, #fff 53%); }
.paper-color-chevron { color: #899396; font-size: 15px; }
.paper-color-popover { position: absolute; top: calc(100% - 8px); right: 0; z-index: 12; width: min(270px, calc(100vw - 30px)); padding: 14px; display: grid; gap: 11px; border: 1px solid #cfdadd; border-radius: 5px; background: white; box-shadow: 0 16px 38px rgba(44,58,62,.2); }
.paper-color-popover[hidden] { display: none; }
.paper-popover-heading { display: flex; align-items: center; justify-content: space-between; }
.paper-popover-heading strong { color: #566164; font-size: 14px; }
.paper-popover-heading button { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: #829094; font-size: 20px; line-height: 1; cursor: pointer; }
.paper-color-popover > p { margin: -3px 0 0; color: #8b9597; font-size: 10px; }
.paper-color-popover > .color-preview-note { margin: 0; color: #647277; font-size: 12px; line-height: 1.4; }
.paper-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.paper-swatch { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(48,58,61,.22); border-radius: 50%; background: var(--swatch); cursor: pointer; }
.paper-swatch:hover { transform: scale(1.08); }
.paper-swatch.is-selected { outline: 2px solid var(--mm-aqua-deep); outline-offset: 2px; }
.paper-custom-control { display: grid; grid-template-columns: 1fr 42px; align-items: center; color: #687174; font-size: 11px; }
.paper-custom-control input[type="color"] { width: 42px; height: 30px; padding: 2px; border: 1px solid #cfd7d9; border-radius: 3px; background: white; cursor: pointer; }
.paper-hex-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; color: #687174; font-size: 11px; }
.paper-hex-control input { min-width: 0; padding: 7px 8px; border: 1px solid #cfd7d9; border-radius: 3px; color: #4f595b; font-size: 11px; text-transform: uppercase; }
.paper-hex-control input[aria-invalid="true"] { border-color: #b65f5f; }
.paper-hex-control button, .paper-color-reset { padding: 7px 9px; border: 1px solid #cfd7d9; border-radius: 3px; background: #f9fbfb; color: #5f6b6e; font-size: 10px; cursor: pointer; }
.paper-color-error { min-height: 12px; margin-top: -7px; color: #a55555; font-size: 10px; }
.paper-color-reset { width: 100%; }
.grid-paper-chooser { position: fixed; inset: 50% 16px auto auto; transform: translateY(-50%); z-index: 60; width: min(360px, calc(100vw - 28px)); max-height: min(86vh, 850px); overflow: auto; padding: 16px; gap: 11px; }
.grid-paper-chooser .paper-popover-heading strong { font-size: 19px; }
.grid-paper-chooser > p { margin: 0; font-size: 12px; }
.grid-paper-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.grid-paper-filters label:first-child { grid-column: 1 / -1; }
.grid-paper-filters label { display: grid; gap: 4px; color: #657174; font-size: 11px; }
.grid-paper-filters input, .grid-paper-filters select { width: 100%; min-width: 0; height: 35px; padding: 5px 8px; border: 1px solid #ccd7da; border-radius: 3px; background: #fff; color: #48565a; font: inherit; font-size: 13px; }
.grid-paper-count { color: #738084; font-size: 11px; }
.grid-paper-cards { max-height: min(36vh, 370px); padding: 3px; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 7px; overflow-y: auto; align-content: start; }
.grid-paper-card { min-width: 0; padding: 6px; display: grid; gap: 4px; align-content: start; border: 1px solid #d4dfe2; border-radius: 4px; background: #fff; color: #526065; text-align: left; cursor: pointer; }
.grid-paper-card:hover, .grid-paper-card:focus-visible, .grid-paper-card.is-selected { border-color: #268eac; box-shadow: 0 0 0 2px rgba(38,142,172,.17); }
.grid-paper-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #e0e5e5; }
.grid-paper-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.grid-paper-card span { color: #79878a; font-size: 10px; line-height: 1.2; }
.grid-paper-custom-heading { margin-top: 2px; padding-top: 10px; border-top: 1px solid #e3e9ea; color: #59676b; font-size: 12px; font-weight: 700; }
.mat-popover { top: calc(100% - 8px); }
.spot-color-popover { top: calc(100% - 8px); }
.mat-sizes { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 6px; }
.mat-sizes button { padding: 7px 4px; border: 1px solid #cfd7d9; border-radius: 3px; background: #f9fbfb; color: #606b6d; font-size: 10px; cursor: pointer; }
.mat-sizes button.is-selected { border-color: var(--mm-aqua-deep); background: #eaf7f9; color: #247a90; box-shadow: 0 0 0 1px rgba(79,178,207,.16); }
.mat-sizes button.fits-standard:not(.is-selected) { border-color: #68adbc; background: #f0f9fa; }
.mat-sizes button:disabled { opacity: .42; cursor: not-allowed; }
.full-4x6-options { margin: 10px 0; }
.full-4x6-options[hidden], .full-4x6-options [hidden], .focused-command-actions [hidden], .mobile-actions [hidden], .print-notice[hidden], .photo-coverage[hidden], #adjust-photo-framing[hidden] { display: none !important; }
.full-4x6-options button { width: 100%; padding: 11px; border: 2px solid #6daebb; border-radius: 5px; background: #e9f5f8; color: #245969; text-align: center; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 #c2dce3; }
.full-4x6-options button:hover:not(:disabled) { background: #d9eef3; }
.full-4x6-options button:disabled { opacity: .5; cursor: default; box-shadow: none; }
.full-4x6-options button.is-selected { border-color: #246d7f; background: #277482; color: white; box-shadow: none; }
.full-4x6-options label { display: grid; gap: 5px; margin-top: 8px; color: #5d6a6d; font-size: 12px; }
.full-4x6-options select { padding: 6px; }
.mat-color-disabled { opacity: .42; pointer-events: none; }
.photo-print-controls { margin-top: 9px; padding: 8px 9px; border: 1px solid #dae9ed; border-radius: 4px; background: #f9fcfc; }
.focused-tool-group { display: grid; gap: 5px; color: #56676b; font-size: 13.5px; }
.focused-tool-group > div { display: flex; justify-content: space-between; color: #52696f; font-weight: 700; }
.print-notice { margin: 8px 0 0; padding: 7px; border-left: 3px solid #95bac0; background: #f4f9fa; color: #4e656b; font-size: 12px; line-height: 1.4; }
.print-notice strong { display: block; color: #315a64; font-size: 12px; letter-spacing: -0.02em; white-space: nowrap; }
.print-notice span { display: block; }
.print-notice.is-warning { border-left-color: #d6943c; background: #fff2db; color: #6a5132; }
#zoom-baseline { color: #668088; font-size: 11px; }
.photo-coverage { margin: 8px 0 0; padding: 8px; background: #f1f8f9; border-left: 3px solid #64adbd; color: #45636b; font-size: 12px; }
.photo-coverage p { margin: 0 0 8px; }
.photo-coverage > div { display: flex; flex-wrap: wrap; gap: 5px; }
.photo-coverage button { padding: 6px; border: 1px solid #a9cbd2; background: white; color: #276b7c; cursor: pointer; }
.photo-framing-dialog { width: min(480px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 20px; border: 0; border-radius: 8px; color: #496168; }
.photo-framing-dialog::backdrop { background: rgba(35,45,48,.65); }
.photo-framing-dialog h2 { margin: 0 0 7px; }
.photo-framing-dialog p { font-size: 13px; line-height: 1.4; }
.photo-framing-preview { position: relative; width: min(100%, 360px); margin: 12px auto; overflow: hidden; }
.photo-framing-preview img { display: block; width: 100%; height: auto; }
.photo-framing-preview span { position: absolute; border: 2px dashed #187e99; box-shadow: 0 0 0 999px rgba(20,40,45,.28); pointer-events: none; }
.photo-framing-dialog label { display: flex; justify-content: space-between; font-size: 12px; }
.photo-framing-dialog input { width: 100%; margin: 12px 0; }
.photo-framing-actions { display: flex; justify-content: flex-end; gap: 8px; }
.photo-framing-actions button { padding: 8px 12px; border: 1px solid #a9cbd2; background: white; color: #276b7c; cursor: pointer; }
.focused-tool-button { width: 100%; margin-top: 8px; padding: 9px; border: 1px solid #ddd; background: white; color: #656565; font-size: 12.5px; }
.spot-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.spot-actions .focused-tool-button { min-height: 36px; padding: 7px 2px; font-size: 12px; font-weight: 700; }
.focused-tool-button:not(:disabled), #clear-page, #start-over { cursor: pointer; }
.focused-tool-button:disabled, #focused-zoom:disabled { opacity: .42; }
.focused-tool-button.remove { color: #a55555; }
.focused-footer { min-height: 70px; padding: 12px 28px; display: grid; grid-template-columns: minmax(175px, 1fr) minmax(220px, 1.35fr) minmax(360px, 1fr); align-items: center; gap: 20px; border-top: 1px solid #d7dcdd; background: #f8f9f9; color: #5b6264; }
.focused-footer-summary { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.focused-footer strong { font-size: 15px; }
.focused-footer span { color: #7f8a8d; font-size: 12px; }
.focused-footer-status { width: 100%; max-width: 520px; min-width: 0; margin: 0; justify-self: center; overflow: hidden; color: #6f7b7e; font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.focused-footer-policies { display: flex; align-items: center; justify-self: end; gap: 15px; white-space: nowrap; }
.focused-footer-policies .focused-copyright { color: #7f8a8d; font-size: 11px; }
.focused-footer-policies button { padding: 6px 0; border: 0; background: transparent; color: #718084; font-size: 13px; cursor: pointer; }
.focused-footer-policies button:hover, .focused-footer-policies button:focus-visible { color: var(--mm-aqua-deep); text-decoration: underline; }

.info-dialog { width: min(880px, calc(100vw - 32px)); max-width: none; max-height: min(90vh, 900px); padding: 0; border: 0; border-radius: 8px; color: #4f5c5f; background: white; box-shadow: 0 24px 70px rgba(27,40,44,.33); }
.info-dialog::backdrop { background: rgba(43,53,56,.61); backdrop-filter: blur(2px); }
.info-dialog-shell { max-height: min(90vh, 900px); display: flex; flex-direction: column; }
.info-dialog-header { flex: 0 0 auto; min-height: 84px; padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #dce3e5; background: white; }
.info-dialog-header span { color: var(--mm-aqua-deep); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.info-dialog-header h2 { margin: 3px 0 0; color: #4f585a; font-family: "Sen", sans-serif; font-size: 26px; font-weight: 500; }
.info-dialog-close { width: 38px; height: 38px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: #f1f5f6; color: #667477; font-size: 27px; line-height: 1; cursor: pointer; }
.info-dialog-close:hover, .info-dialog-close:focus-visible { background: #e5f3f6; color: #197f9a; }
.info-dialog-body { overflow-y: auto; padding: 26px clamp(20px, 4vw, 38px) 36px; font-size: 16px; line-height: 1.6; }
.info-dialog-body h3 { margin: 22px 0 7px; color: #42555a; font-family: "Sen", sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3; }
.info-dialog-body p { margin: 0 0 13px; }
.info-dialog-body a { color: #197f9a; }
.feedback-dialog { width: min(720px, calc(100vw - 24px)); }
.feedback-dialog-body { padding-top: 17px; }
.feedback-dialog-body > p:first-child { margin-bottom: 10px; color: #5d6b6e; font-size: 14px; line-height: 1.5; }
.feedback-form-launch { padding: 22px; border: 1px solid #d8e9ed; border-radius: 5px; background: #f4fafb; text-align: center; }
.feedback-form-launch p { margin-bottom: 16px; }
.feedback-form-launch a { display: inline-block; padding: 10px 18px; border-radius: 4px; background: var(--mm-aqua-deep); color: white; font-weight: 700; text-decoration: none; }
.feedback-form-launch a:hover, .feedback-form-launch a:focus-visible { background: #187f9e; }
.info-lead { color: #617174; }
.info-acceptance { padding: 14px 17px; border-left: 4px solid var(--mm-aqua); background: #eef8fa; color: #365b64; font-weight: 700; }
.policy-copy { max-width: 72ch; padding-top: 32px; padding-bottom: 42px; color: #536164; }
.policy-copy .policy-intro { max-width: 58ch; margin-bottom: 12px; color: #344e55; font-family: "Sen", sans-serif; font-size: clamp(19px, 2.5vw, 23px); line-height: 1.42; }
.policy-copy .policy-updated { margin-bottom: 30px; color: #7d8a8e; font-size: 12px; line-height: 1.5; }
.policy-copy h3 { margin: 27px 0 9px; padding-top: 18px; border-top: 1px solid #e3eaeb; color: #345a64; font-size: 19px; }
.policy-copy h3 + p { margin-bottom: 0; }
.policy-copy .info-acceptance { margin-bottom: 16px; font-family: "Sen", sans-serif; font-size: 18px; line-height: 1.45; }
.help-dialog { width: min(960px, calc(100vw - 32px)); }
.help-body { padding: 30px clamp(22px, 4vw, 44px) 50px; color: #58666a; }
.help-body p { max-width: 72ch; line-height: 1.67; }
.help-eyebrow { display: block; margin-bottom: 7px; color: var(--mm-aqua-deep); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.help-flow { margin-bottom: 20px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 13px; border: 1px solid #d8e9ed; border-radius: 5px; background: #f8fcfd; color: #35626c; font-family: "Sen", sans-serif; font-size: 14px; font-weight: 600; text-align: center; }
.help-flow b { color: var(--mm-aqua-deep); font-size: 18px; font-weight: 500; }
.help-intro { padding: 27px 31px 25px; border-left: 5px solid var(--mm-aqua); border-radius: 0 6px 6px 0; background: #f1f9fa; }
.help-intro h3 { margin: 0 0 12px; color: #31545c; font-size: clamp(23px, 3vw, 29px); font-weight: 500; }
.help-intro p { margin: 0 0 12px; }
.help-intro p:last-child { margin-bottom: 0; }
.help-section { padding: 36px 0 38px; border-bottom: 1px solid #dfe8ea; }
.help-section > h3 { margin: 0 0 15px; color: #34555d; font-size: 24px; font-weight: 500; }
.help-section > p { margin-bottom: 19px; }
.help-basics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.help-basics-grid > div { padding: 19px; border: 1px solid #dce8ea; border-radius: 5px; background: #f9fcfc; }
.help-basics-grid span { color: var(--mm-aqua-deep); font-family: "Sen", sans-serif; font-size: 13px; font-weight: 600; }
.help-basics-grid h4 { margin: 7px 0 9px; color: #34555d; font-family: "Sen", sans-serif; font-size: 17px; }
.help-basics-grid p { margin: 0; font-size: 14px; line-height: 1.6; }
.help-layering-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 30px; }
.help-layering-layout p:last-child { margin-bottom: 0; }
.help-layering-example { margin: 0; }
.help-layering-base { width: 100%; aspect-ratio: 4 / 3; padding: 16px; display: grid; border-radius: 4px; background: #d6ac5c; box-shadow: 0 0 0 1px rgba(63, 74, 72, .18), 0 12px 26px rgba(50, 67, 69, .13); }
.help-layering-photo { background: url("assets/park-ball-landscape.png") center / cover no-repeat, #a8c3b8; }
.help-pattern-example { margin: 22px 0; display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); align-items: center; gap: clamp(22px, 4vw, 42px); }
.help-pattern-example figure, .help-choose-layout figure { margin: 0; min-width: 0; }
.help-pattern-example img { width: 100%; display: block; border: 1px solid #dde7e9; border-radius: 4px; }
.help-body figcaption { margin-top: 7px; color: #778589; font-size: 12px; line-height: 1.5; }
.help-example-copy { padding: 18px 0; border-top: 1px solid #dfe8ea; border-bottom: 1px solid #dfe8ea; }
.help-example-copy strong { color: #365d66; font-family: "Sen", sans-serif; font-size: 18px; }
.help-example-copy p { margin: 8px 0 0; }
.help-die-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.help-die-key > div { min-width: 0; padding: 12px; display: grid; grid-template-columns: 27px minmax(0, 1fr); column-gap: 9px; align-items: center; border: 1px solid #dfe7e8; border-radius: 5px; background: #fff; }
.help-die-swatch { width: 27px; height: 27px; grid-row: span 2; border: 1px solid rgba(35, 55, 60, .17); border-radius: 4px; }
.help-die-key strong { overflow: hidden; color: #40575c; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.help-die-key small { color: #778589; font-size: 11px; }
.help-die-swatch.die-a { background: #1c97b6; }
.help-die-swatch.die-b { background: #8325c1; }
.help-die-swatch.die-c { background: #df10b8; }
.help-die-swatch.die-d { background: #f37e2d; }
.help-die-swatch.die-e { background: #efd633; }
.help-die-swatch.die-mm { background: #89c052; }
.help-die-swatch.die-sc { background: #3d4cbe; }
.help-die-swatch.die-hc { background: #87683c; }
.help-section .help-color-note { margin: 13px 0 0; color: #758286; font-size: 13px; }
.help-choose-layout { display: grid; gap: 14px; }
.help-choose-layout p { margin: 0 0 13px; }
.help-choose-layout img { width: 100%; display: block; border: 1px solid #dfe7e8; border-radius: 4px; }
.help-step-list { margin: 8px 0 0; padding: 0; list-style: none; }
.help-step-list li { padding: 22px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 18px; border-bottom: 1px solid #e5ebec; }
.help-step-list li:last-child { border-bottom: 0; }
.help-step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #e7f6f9; color: #287f96; font-family: "Sen", sans-serif; font-size: 18px; font-weight: 600; }
.help-step-list h4 { margin: 1px 0 6px; color: #34555d; font-family: "Sen", sans-serif; font-size: 19px; font-weight: 600; }
.help-step-list p { margin: 0; }
.help-step-figure { width: min(100%, 640px); margin: 18px 0 2px; }
.help-step-figure img { width: 100%; display: block; border: 1px solid #d5e2e5; border-radius: 5px; }
.help-video { width: min(100%, 640px); margin: 18px 0 2px; }
.help-video video { width: 100%; aspect-ratio: 16 / 9; display: block; border: 1px solid #cddfe3; border-radius: 5px; background: #26383d; box-shadow: 0 10px 28px rgba(44, 65, 70, .13); }
.help-video figcaption { margin-top: 8px; }
.help-video-placeholder { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; border: 1px solid #cddfe3; border-radius: 5px; background: #f0f8fa; color: #34555d; text-align: center; }
.help-video-placeholder strong { font-family: "Sen", sans-serif; font-size: clamp(20px, 3vw, 28px); }
.help-video-placeholder span { font-size: 14px; color: #607c84; }
.help-finishing { border-bottom: 0; padding-bottom: 0; }
.help-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; }
.help-action-grid p { margin: 0; }
.help-section .help-final-reminder { max-width: none; margin: 26px 0 0; padding: 15px 18px; border-left: 4px solid #d9ad36; background: #fff9e9; color: #615a49; }

.page-view-dialog { max-width: none; max-height: none; width: min(96vw, 1100px); height: min(96vh, 1120px); padding: 14px; border: 0; border-radius: 8px; background: #f3f6f7; box-shadow: 0 22px 70px rgba(27,40,44,.35); }
.page-view-dialog::backdrop, .page-reset-dialog::backdrop { background: rgba(35,45,48,.75); }
.page-view-header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; }
.page-view-header h2 { margin: 0; color: #4f5b5e; font-size: 18px; }
.page-view-header button { width: 34px; height: 34px; border: 0; background: transparent; color: #637276; font-size: 28px; cursor: pointer; }
.page-view-stage { height: calc(100% - 49px); display: grid; place-items: center; overflow: auto; }
.page-view-stage .focused-pattern { width: min(100%, calc(96vh - 104px), 1000px); max-height: 100%; box-shadow: 0 8px 25px rgba(45,65,69,.17); }
.page-view-stage .region-hit, .page-view-stage .region-color-marker, .page-view-stage .drop-instruction { display: none !important; }
.print-guide-dialog { width: min(980px, calc(100vw - 28px)); max-width: none; max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: 8px; background: #fff; color: #4f5c5f; }
.print-guide-dialog::backdrop { background: rgba(35,45,48,.7); }
.print-guide-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid #dce3e5; }
.print-guide-header span { color: #2786a0; font-size: 10px; letter-spacing: .12em; }
.print-guide-header h2 { margin: 3px 0 0; font-size: 22px; }
.print-guide-header button { border: 0; background: transparent; color: #637276; font-size: 28px; cursor: pointer; }
.print-guide-intro { margin: 0; padding: 18px 22px; font-size: 13px; line-height: 1.5; }
.print-guide-content { padding: 12px 22px 18px; }
.print-guide-pdf { max-height: min(77vh, 950px); overflow: auto; padding: 16px; border: 1px solid #dce3e5; background: #f2f5f5; text-align: center; }
.print-guide-pdf-page { display: block; max-width: 100%; height: auto; margin: 0 auto 16px; background: white; box-shadow: 0 2px 12px rgba(35, 45, 48, .15); }
.print-guide-pdf-page:last-child { margin-bottom: 0; }
.print-guide-page { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.print-guide-page img { width: min(190px, 40%); aspect-ratio: 1; object-fit: cover; border: 1px solid #dce3e5; }
.print-guide-page p { margin: 0; font-size: 13px; line-height: 1.5; }
.print-guide-entry { display: flex; gap: 16px; margin: 12px 0; padding: 12px; border: 1px solid #e1e8e9; border-radius: 5px; }
.print-guide-entry img { width: 140px; max-width: 35%; object-fit: contain; }
.print-guide-entry h3 { margin: 0 0 6px; font-size: 14px; }
.print-guide-entry p { margin: 3px 0; font-size: 12px; line-height: 1.4; }
.print-guide-entry .print-guide-mat-cut { margin: 7px 0; padding: 7px 9px; border-left: 3px solid var(--mm-aqua); background: #eff7f8; font-weight: 700; }
.print-guide-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 12px 22px; border-top: 1px solid #dce3e5; background: white; }
.print-guide-actions button { padding: 10px 16px; border: 0; border-radius: 4px; background: #2786a0; color: white; font-weight: 700; cursor: pointer; }
.print-guide-actions button:disabled { opacity: .45; cursor: not-allowed; }
.membership-test-dialog { width: min(500px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; padding: 0; border: 0; border-radius: 8px; color: #4f5c5f; background: white; box-shadow: 0 24px 70px rgba(27,40,44,.33); }
.membership-test-dialog::backdrop { background: rgba(35,45,48,.7); }
.membership-test-dialog form { display: grid; gap: 11px; padding: 25px; }
.membership-test-dialog .membership-test-eyebrow { color: #2786a0; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.membership-test-dialog h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.membership-test-dialog p { margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
.membership-test-dialog label { margin-top: 6px; font-size: 13px; font-weight: 700; }
.membership-test-dialog input { width: 100%; padding: 10px; border: 1px solid #bac9cc; border-radius: 4px; font: inherit; }
.membership-test-dialog .membership-test-note { font-size: 12px; color: #69777a; }
.membership-test-dialog .membership-test-result { color: #8a5729; }
.membership-test-dialog .membership-test-result:empty { display: none; }
.membership-test-dialog .membership-test-signup { margin-top: 3px; padding: 12px; border-radius: 4px; background: #eff7f8; }
.membership-test-dialog .membership-test-signup a { color: #146b85; font-weight: 700; }
.membership-test-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.membership-test-actions button { padding: 10px 14px; border: 1px solid #cbd8db; border-radius: 4px; background: white; color: #526064; font: inherit; cursor: pointer; }
.membership-test-actions #membership-test-submit { border-color: #2786a0; background: #2786a0; color: white; font-weight: 700; }
.membership-test-actions button:disabled { opacity: .55; cursor: wait; }
.page-reset-dialog { width: min(460px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 8px; }
.page-reset-content { padding: 25px; background: white; }
.page-reset-content h2 { margin: 0 0 10px; color: #4e585a; font-size: 22px; }
.page-reset-content p { margin: 0; color: #667275; font-size: 15px; line-height: 1.55; }
.page-reset-content .photo-size-opt-out { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: #4e5e62; font-size: 14px; }
.page-reset-content .photo-size-opt-out input { width: 17px; height: 17px; accent-color: #277482; }
.page-reset-content > div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.page-reset-content button { padding: 10px 14px; border: 1px solid #cfd8da; border-radius: 4px; background: white; color: #5f696b; font-size: 14px; cursor: pointer; }
.page-reset-content #page-reset-confirm, .page-reset-content #photo-delete-confirm { border-color: #a55555; background: #a55555; color: white; }

.photo-fit-dialog .photo-fit-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.photo-fit-actions button { text-align: left; color: #346675; font-weight: 600; }
.photo-fit-actions button[hidden] { display: none; }
.photo-fit-actions button:hover { background: #eef8fa; border-color: #7cb6c5; }
.photo-fit-actions #photo-fit-enlarge { background: #eaf6f9; border-color: #68aabd; }
.photo-fit-actions #photo-fit-cancel { color: #626d70; font-weight: 400; }
.photo-fit-actions button:focus-visible { outline: 2px solid #277482; outline-offset: 2px; }

.add-photos-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow-y: auto; border: 0; border-radius: 8px; color: #4f5c5f; background: white; box-shadow: 0 24px 70px rgba(27,40,44,.33); }
.add-photos-dialog::backdrop { background: rgba(43,53,56,.58); backdrop-filter: blur(2px); }
.add-photos-shell { overflow: hidden; border-radius: 8px; }
.add-photos-header { min-height: 80px; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce3e5; }
.add-photos-header span, .example-set-panel > span { color: var(--mm-aqua-deep); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.add-photos-header h2 { margin: 3px 0 0; color: #4f585a; font-family: "Sen", sans-serif; font-size: 24px; font-weight: 500; }
.add-photos-header button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #f1f5f6; color: #667477; font-size: 27px; line-height: 1; cursor: pointer; }
.add-photos-header button:hover, .add-photos-header button:focus-visible { background: #e5f3f6; color: #197f9a; }
.add-photos-content { padding: 24px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 20px; }
.photo-drop-zone { min-height: 284px; padding: 26px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #81c5d6; border-radius: 7px; background: #f3fafc; text-align: center; transition: background .15s ease, border-color .15s ease; }
.photo-drop-zone.is-over { border-color: #238ba5; background: #dff3f8; }
.photo-drop-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #b7dfe8; border-radius: 13px; background: white; color: var(--mm-aqua-deep); font-size: 33px; line-height: 1; }
.photo-drop-zone strong { margin-top: 14px; color: #4d5d61; font-size: 18px; }
.photo-drop-zone p { margin: 6px 0 19px; color: #718085; font-size: 14px; line-height: 1.45; }
.photo-drop-zone button { max-width: 100%; padding: 11px 14px; border: 1px solid var(--mm-aqua-deep); border-radius: 4px; background: var(--mm-aqua); color: white; font-size: 14px; font-weight: 700; cursor: pointer; }
.photo-drop-zone button:hover { background: var(--mm-aqua-deep); }
.example-set-panel { padding: 15px 2px; display: flex; flex-direction: column; }
.example-set-panel p { margin: 9px 0 12px; color: #6d7a7d; font-size: 14px; line-height: 1.45; }
.example-set-list { max-height: 340px; padding: 1px 6px 1px 1px; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; scrollbar-color: #aacdd5 transparent; }
.example-set-scroll-hint { margin-top: 7px; color: #7d898c; font-size: 11px; text-align: right; }
.example-set-card { width: 100%; padding: 12px; display: grid; grid-template-columns: 96px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid #d7e2e4; border-radius: 6px; background: #fff; color: #4f5c5f; text-align: left; cursor: pointer; }
.example-set-card:hover, .example-set-card:focus-visible { border-color: var(--mm-aqua-deep); background: #f2fafb; }
.example-set-card:disabled { opacity: .6; cursor: default; }
.example-set-images { height: 55px; display: flex; overflow: hidden; border-radius: 3px; }
.example-set-images img { width: 34px; height: 55px; object-fit: cover; }
.example-set-card strong { display: block; font-size: 15px; }
.example-set-card small { display: block; margin-top: 4px; color: #7d898c; font-size: 12px; }
.example-set-card > span:last-child { color: var(--mm-aqua-deep); font-size: 20px; }
.add-photos-footer { min-height: 45px; padding: 12px 24px; border-top: 1px solid #e5eaeb; background: #f8fafb; color: #6c797c; font-size: 13px; }

.pattern-dialog, .pattern-confirm-dialog { padding: 0; border: 0; color: var(--mm-ink); background: transparent; }
.pattern-dialog::backdrop, .pattern-confirm-dialog::backdrop { background: rgba(43, 53, 56, .58); backdrop-filter: blur(2px); }
.pattern-dialog { width: min(1240px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); }
.pattern-dialog-shell { max-height: calc(100vh - 40px); overflow: hidden; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); border-radius: 8px; background: white; box-shadow: 0 24px 70px rgba(27, 40, 44, .32); }
.pattern-dialog-header { min-height: 82px; padding: 12px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 15px; border-bottom: 1px solid #dce3e5; }
.pattern-dialog-logo { width: min(100%, 225px); }
.pattern-dialog-heading { text-align: center; }
.pattern-dialog-kicker { color: var(--mm-aqua-deep); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.pattern-dialog-header h2 { margin: 3px 0 0; color: #4f585a; font-family: "Sen", sans-serif; font-size: 24px; font-weight: 500; }
.pattern-dialog-close { width: 38px; height: 38px; justify-self: end; padding: 0; border: 0; border-radius: 50%; background: #f1f5f6; color: #667477; font-size: 27px; line-height: 1; cursor: pointer; }
.pattern-dialog-close:hover, .pattern-dialog-close:focus-visible { background: #e5f3f6; color: #197f9a; }
.pattern-dialog-search { padding: 13px 22px; display: grid; grid-template-columns: auto minmax(220px, 430px) 1fr; align-items: center; gap: 12px; border-bottom: 1px solid #e5eaeb; background: #f8fafb; }
.pattern-dialog-search label { color: #626d70; font-size: 14px; font-weight: 600; }
.pattern-dialog-search input { width: 100%; padding: 10px 12px; border: 1px solid #cfdadc; border-radius: 4px; background: white; color: #4f595b; font-size: 15px; }
.pattern-dialog-search input:focus { outline: 2px solid rgba(79,178,207,.3); border-color: var(--mm-aqua-deep); }
.pattern-dialog-search span { justify-self: end; color: #7c888b; font-size: 13px; }
.pattern-dialog-filters { position: relative; z-index: 2; padding: 10px 22px 10px 238px; display: flex; align-items: end; gap: 10px; border-bottom: 1px solid #e5eaeb; background: white; }
.pattern-filter-heading { align-self: center; margin-right: 5px; color: #657377; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pattern-die-filter { position: relative; }
.pattern-filter-button, .pattern-filter-field select { min-height: 39px; padding: 8px 11px; border: 1px solid #cfdadc; border-radius: 4px; background: white; color: #526063; font: inherit; font-size: 14px; }
.pattern-filter-button { min-width: 132px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.pattern-filter-button.is-active { border-color: var(--mm-aqua-deep); background: #eef8fa; color: #247e94; }
.pattern-die-menu { position: absolute; top: calc(100% + 6px); left: 0; width: 286px; padding: 8px; border: 1px solid #ccd8da; border-radius: 6px; background: white; box-shadow: 0 12px 30px rgba(38, 55, 59, .18); }
.pattern-die-all { width: 100%; min-height: 34px; padding: 6px 7px; border: 0; border-radius: 4px; background: transparent; color: #536063; font-size: 14px; text-align: left; cursor: pointer; }
.pattern-die-all:hover, .pattern-die-all.is-active { background: #f0f7f8; color: #247e94; }
.pattern-die-menu label { min-height: 34px; padding: 6px 7px; display: flex; align-items: center; gap: 9px; border-radius: 4px; color: #536063; font-size: 14px; cursor: pointer; }
.pattern-die-menu label:hover { background: #f0f7f8; }
.pattern-die-menu label.is-unavailable { color: #9da7a9; cursor: default; }
.pattern-die-menu input { width: 16px; height: 16px; accent-color: var(--mm-aqua-deep); }
.pattern-die-match { margin: 8px 0 0; padding: 9px 7px 3px; display: grid; gap: 3px; border: 0; border-top: 1px solid #e4e9ea; }
.pattern-die-match legend { padding: 0; color: #536063; font-size: 12px; font-weight: 700; }
.pattern-die-match label { min-height: 0; padding: 5px 0; display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 8px; }
.pattern-die-match label:hover { background: transparent; }
.pattern-die-match span { display: grid; gap: 1px; color: #556164; font-size: 12px; }
.pattern-die-match em { color: #8a9597; font-size: 10px; font-style: normal; line-height: 1.3; }
.pattern-filter-field { display: grid; gap: 3px; color: #677477; font-size: 12px; font-weight: 700; }
.pattern-filter-field select { min-width: 132px; cursor: pointer; }
.pattern-clear-filters { min-height: 39px; padding: 8px 4px; border: 0; background: transparent; color: #247e94; font-size: 14px; font-weight: 700; cursor: pointer; }
.pattern-clear-filters:hover { text-decoration: underline; }
.pattern-dialog-content { min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; }
.pattern-photo-panel { min-width: 0; min-height: 0; padding: 18px 12px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid #dce3e5; background: #fff; }
.pattern-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #4d5759; font-size: 15px; }
.pattern-photo-heading span { min-width: 23px; padding: 3px 6px; border-radius: 99px; background: #edf5f7; color: var(--mm-aqua-deep); font-size: 11px; font-weight: 700; text-align: center; }
.pattern-photo-feature { min-width: 0; padding: 6px; display: grid; gap: 5px; border: 1px solid #dce5e7; border-radius: 5px; background: #f6f9fa; }
.pattern-photo-feature[hidden] { display: none; }
.pattern-photo-feature img { width: 100%; height: 150px; display: block; object-fit: contain; background: #e9eef0; }
.pattern-photo-feature span { overflow: hidden; color: #536063; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pattern-photo-empty { margin: 12px 0; color: #758184; font-size: 13px; line-height: 1.4; }
.pattern-photo-empty[hidden] { display: none; }
.pattern-photo-list { min-height: 0; padding: 2px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 7px; overflow-y: auto; scrollbar-width: thin; }
.pattern-photo-item { min-width: 0; padding: 2px; border: 2px solid transparent; border-radius: 4px; background: #eef2f3; cursor: pointer; }
.pattern-photo-item img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; }
.pattern-photo-item:hover, .pattern-photo-item:focus-visible, .pattern-photo-item.is-selected { border-color: var(--mm-aqua-deep); }
.pattern-card-list { min-height: 0; padding: 18px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; background: #f3f6f7; }
.pattern-card { min-width: 0; padding: 10px; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; border: 1px solid #d6dfe1; border-radius: 6px; background: white; color: #535d5f; text-align: left; cursor: pointer; }
.pattern-card:hover { border-color: #9bcbd7; box-shadow: 0 4px 14px rgba(65, 94, 101, .09); }
.pattern-card.is-selected { border-color: var(--mm-aqua-deep); box-shadow: 0 0 0 2px rgba(79,178,207,.18); }
.pattern-card-thumbnail { width: 92px; aspect-ratio: 1; display: grid; place-items: center; padding: 5px; background: white; border: 1px solid #e0e5e6; }
.pattern-card-thumbnail svg { width: 100%; height: 100%; display: block; }
.pattern-card-copy { min-width: 0; display: grid; gap: 4px; }
.pattern-card-copy strong { color: #485255; font-size: 16px; }
.pattern-card-copy span { overflow: hidden; color: #748083; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pattern-card-copy .pattern-card-current { width: max-content; padding: 2px 7px; border-radius: 999px; background: #e7f5f8; color: #247e94; font-size: 12px; font-weight: 700; }
.pattern-die-usage { margin-top: 12px; padding: 10px; border: 1px solid #e0e6e7; border-radius: 5px; background: #f8fafb; }
.pattern-die-usage > strong { display: block; margin-bottom: 7px; color: #596568; font-size: 13px; }
.pattern-die-usage table { width: 100%; table-layout: fixed; border-collapse: collapse; color: #5f6b6e; font-size: 11px; }
.pattern-die-usage th, .pattern-die-usage td { padding: 3px 3px; border-bottom: 1px solid #e4e9ea; text-align: left; white-space: nowrap; }
.pattern-die-usage th { color: #788487; font-size: 9px; letter-spacing: .03em; text-transform: uppercase; }
.pattern-die-usage th:nth-child(1), .pattern-die-usage td:nth-child(1) { width: 29%; padding-left: 0; color: #475558; font-weight: 700; }
.pattern-die-usage th:nth-child(2), .pattern-die-usage td:nth-child(2) { width: 29%; }
.pattern-die-usage th:nth-child(3), .pattern-die-usage td:nth-child(3), .pattern-die-usage th:nth-child(4), .pattern-die-usage td:nth-child(4) { width: 21%; text-align: center; }
.pattern-die-usage > small { display: block; margin-top: 7px; color: #8a9597; font-size: 9px; line-height: 1.3; }
.pattern-no-results { grid-column: 1 / -1; margin: 22px; color: #6f7b7e; font-size: 15px; text-align: center; }
.pattern-preview-panel { min-width: 0; min-height: 0; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; border-left: 1px solid #dce3e5; background: white; }
.pattern-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.pattern-preview-heading > div { display: grid; gap: 3px; }
.pattern-preview-heading h3 { margin: 0; color: #4d5759; font-family: "Sen", sans-serif; font-size: 21px; font-weight: 500; }
.pattern-preview-heading span { color: #7b8789; font-size: 13px; }
#pattern-preview-current { min-height: 17px; color: var(--mm-aqua-deep); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.pattern-preview-canvas { width: min(100%, 292px); aspect-ratio: 1; align-self: center; padding: 8px; border: 1px solid #dce3e5; background: white; box-shadow: 0 8px 20px rgba(55, 74, 79, .1); }
.pattern-preview-canvas svg { width: 100%; height: 100%; display: block; }
.pattern-preview-details { margin: 0; display: grid; gap: 8px; }
.pattern-preview-details > div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; }
.pattern-preview-details dt { color: #879194; font-size: 13px; }
.pattern-preview-details dd { margin: 0; color: #525d5f; font-size: 14px; }
.pattern-use-button { width: 100%; margin-top: auto; padding: 12px 15px; border: 1px solid var(--mm-aqua-deep); border-radius: 4px; background: var(--mm-aqua); color: white; font-size: 15px; font-weight: 700; cursor: pointer; }
.pattern-use-button:hover:not(:disabled), .pattern-use-button:focus-visible:not(:disabled) { background: var(--mm-aqua-deep); }
.pattern-use-button:disabled { border-color: #cfd7d9; background: #e7ebec; color: #8b9597; cursor: not-allowed; }
.pattern-confirm-dialog { width: min(460px, calc(100vw - 32px)); max-width: none; }
.pattern-confirm-content { padding: 25px; border-radius: 8px; background: white; box-shadow: 0 22px 60px rgba(27, 40, 44, .34); }
.pattern-confirm-content h2 { margin: 0 0 10px; color: #4e585a; font-family: "Sen", sans-serif; font-size: 22px; font-weight: 500; }
.pattern-confirm-content p { margin: 0; color: #667275; font-size: 15px; line-height: 1.55; }
.pattern-confirm-content > div { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }
.pattern-confirm-content button { padding: 10px 14px; border: 1px solid #cfd8da; border-radius: 4px; background: white; color: #5f696b; font-size: 14px; cursor: pointer; }
.pattern-confirm-content .pattern-confirm-change { border-color: var(--mm-aqua-deep); background: var(--mm-aqua); color: white; font-weight: 700; }

@media (max-height: 800px) and (min-width: 721px) {
  .pattern-preview-panel { padding: 14px 18px; gap: 10px; }
  .pattern-preview-canvas { width: min(100%, 185px); }
  .pattern-die-usage { margin-top: 2px; padding: 9px 10px; }
  #pattern-preview-die-usage { gap: 3px; }
}

@media (max-width: 1100px) {
  .grid-paper-chooser { position: absolute; inset: calc(100% + 8px) 0 auto auto; transform: none; max-height: 74vh; }
  .focused-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .focused-commandbar { grid-template-columns: 220px minmax(0, 1fr); padding-block: 8px; }
  .focused-command-main { width: min(650px, calc(100% - 58px)); }
  .page-reset-actions { grid-column: 2; margin: 2px 42px 0 0; }
  .focused-rail { grid-row: 1 / span 2; }
  .focused-stage { grid-column: 2; grid-row: 1; }
  .focused-tools { grid-column: 2; grid-row: 2; border-left: 0; border-top: 1px solid #ddd; }
}

@media (max-width: 900px) {
  .pattern-dialog-content { grid-template-columns: 160px minmax(0, 1fr) 260px; }
  .pattern-dialog-filters { padding-left: 178px; }
  .pattern-photo-feature img { height: 110px; }
  .pattern-card-list { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .focused-commandbar { display: grid; grid-template-columns: 220px minmax(0, 1fr); padding-inline: 0; }
  .focused-command-main { width: min(650px, calc(100% - 58px)); }
}

@media (min-width: 601px) and (max-width: 720px) {
  .focused-command-main { width: min(520px, calc(100% - 50px)); margin-inline: auto; flex-wrap: nowrap; }
}

@media (max-width: 800px) and (min-width: 681px) {
  .focused-header { padding-inline: 15px; gap: 10px; }
  .focused-brand { gap: 10px; }
  .focused-brand .mm-logo { width: 210px; }
  .focused-brand-title { font-size: 16px; }
  .focused-header-meta { gap: 12px; }
}

@media (max-width: 720px) {
  .help-basics-grid { grid-template-columns: 1fr; }
  .help-layering-layout { grid-template-columns: 1fr; }
  .help-layering-example { max-width: 260px; }
  .help-pattern-example, .help-choose-layout, .help-action-grid { grid-template-columns: 1fr; }
  .help-pattern-example figure { max-width: 290px; }
  .help-die-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focused-workspace { display: block; min-height: 0; }
  .focused-rail { padding: 16px; display: block; border-right: 0; border-bottom: 1px solid #dadada; }
  .focused-rail-heading, .focused-add { margin-bottom: 12px; }
  .focused-photo-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 4px; }
  .focused-photo-card { flex: 0 0 112px; }
  .focused-color-source { margin-top: 12px; }
  .paper-color-popover.color-source-popover { bottom: auto; top: calc(100% + 7px); }
  .focused-rail-help { display: block; margin-top: 12px; }
  .focused-stage { margin: 12px; padding: 18px 12px; }
  .focused-pattern { width: min(100%, 520px); }
  .focused-tools { border-left: 0; border-top: 1px solid #ddd; }
  .focused-footer { grid-template-columns: 1fr; align-items: flex-start; gap: 10px; }
  .focused-footer-status { max-width: none; justify-self: start; text-align: left; white-space: normal; }
  .focused-footer-policies { justify-self: start; }
  .pattern-dialog { width: 100vw; max-height: 100vh; margin: 0; }
  .pattern-dialog-shell { height: 100vh; max-height: 100vh; border-radius: 0; }
  .pattern-dialog-search { grid-template-columns: 1fr auto; }
  .pattern-dialog-search label { grid-column: 1 / -1; }
  .pattern-dialog-search span { align-self: center; }
  .pattern-dialog-filters { padding-left: 22px; align-items: stretch; flex-wrap: wrap; }
  .pattern-die-filter, .pattern-filter-field { flex: 1 1 140px; }
  .pattern-filter-button, .pattern-filter-field select { width: 100%; }
  .pattern-dialog-content { overflow-y: auto; display: flex; flex-direction: column; }
  .pattern-photo-panel { order: -2; flex: 0 0 auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid #dce3e5; }
  .pattern-photo-feature { grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .pattern-photo-feature img { height: 95px; }
  .pattern-photo-list { max-width: 100%; display: flex; overflow-x: auto; overflow-y: hidden; }
  .pattern-photo-item { flex: 0 0 88px; }
  .pattern-preview-panel { order: -1; flex: 0 0 auto; border-left: 0; border-bottom: 1px solid #dce3e5; }
  .pattern-preview-canvas { width: min(58vw, 230px); }
  .pattern-use-button { margin-top: 0; }
  .pattern-card-list { flex: 0 0 auto; overflow: visible; }
}

@media (max-width: 680px) {
  .grid-paper-chooser { padding: 13px; }
  .grid-paper-filters { grid-template-columns: 1fr 1fr; }
  .grid-paper-filters label:first-child { grid-column: 1 / -1; }
  .grid-paper-cards { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
  .focused-header { padding-inline: 15px; }
  .focused-brand { gap: 10px; }
  .focused-brand .mm-logo { width: min(42vw, 175px); }
  .mm-logo small { font-size: 12px; }
  .focused-brand-title { font-size: 15px; }
  .focused-brand-copy { transform: translateY(5px); }
  .focused-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  .focused-header-meta { margin-left: auto; }
  .planner-flow-hint { padding-inline: 15px; gap: 8px; }
  .focused-commandbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 9px 15px; }
  .focused-command-main { width: 100%; flex-wrap: wrap; }
  .page-reset-actions { margin: 0 0 0 auto; }
  .help-intro { padding: 22px; }
  .info-dialog-header { padding: 15px 18px; }
  .info-dialog-body { padding: 19px 18px 26px; }
  .focused-footer { grid-template-columns: 1fr; align-items: flex-start; gap: 10px; }
  .focused-footer-status { max-width: none; justify-self: start; text-align: left; white-space: normal; }
  .focused-footer-policies { justify-self: start; flex-wrap: wrap; gap: 14px; }
  .add-photos-content { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .photo-drop-zone { min-height: 230px; }
  .example-set-panel { padding: 10px 2px 5px; }
}

/* Compact navigation is limited to phone-size portrait and short landscape viewports. */
@media (max-width: 600px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .focused-header { position: relative; z-index: 70; min-height: 56px; padding: 5px 12px; display: flex; flex-wrap: nowrap; align-items: center; gap: 7px; }
  .focused-brand { flex: 1 1 auto; gap: 8px; }
  .focused-brand .mm-logo { width: clamp(125px, 33vw, 175px); }
  .focused-brand-copy { transform: translateY(4px); }
  .focused-brand-title { font-size: clamp(14px, 3.5vw, 17px); }
  .focused-header-meta, .planner-flow-hint { display: none !important; }
  .mobile-menu-trigger { width: 42px; height: 42px; flex: 0 0 auto; padding: 9px; display: grid; align-content: center; justify-items: center; gap: 5px; border: 1px solid #bdd7de; border-radius: 5px; background: #f2fafb; color: #227f99; cursor: pointer; }
  .mobile-menu-trigger span { width: 20px; height: 2px; display: block; border-radius: 2px; background: currentColor; }
  .mobile-menu-trigger[aria-expanded="true"] { background: #e2f4f8; border-color: #43aac5; }
  .mobile-actions:not([hidden]) { position: absolute; top: calc(100% - 1px); right: 9px; z-index: 80; width: min(236px, calc(100vw - 18px)); padding: 8px; display: grid; gap: 2px; border: 1px solid #c8d9dd; border-radius: 0 0 7px 7px; background: white; box-shadow: 0 15px 34px rgba(35,55,61,.2); }
  .mobile-actions button { min-height: 39px; padding: 8px 11px; border: 0; border-radius: 3px; background: white; color: #42656e; font-size: 14px; text-align: left; cursor: pointer; }
  .mobile-actions button:hover, .mobile-actions button:focus-visible { background: #eaf7fa; color: #147e9b; }
  .mobile-actions button[data-mobile-action="start-over"] { color: #a34f56; }
  .mobile-actions span { padding: 6px 11px 2px; border-top: 1px solid #e3ebed; color: #8b989b; font-size: 11px; }
  .focused-command-actions, .page-reset-actions { display: none; }
  .focused-commandbar { min-height: 31px; padding: 4px 12px; }
  .focused-command-main { width: 100%; margin: 0; }
  .focused-pattern-info { gap: 7px; }
  .focused-pattern-info #current-pattern-details { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 600px) and (orientation: portrait) {
  .focused-commandbar { display: flex; }
  .focused-workspace { min-height: 0; display: flex; flex-direction: column; }
  .focused-rail { display: contents; }
  .focused-rail-heading, .focused-add, .focused-rail-help { display: none; }
  .focused-photo-grid { order: 1; width: 100%; min-height: 70px; max-height: 86px; flex: 0 0 auto; padding: 6px 9px; display: flex; align-items: flex-start; gap: 7px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid #dbe3e5; background: white; }
  .focused-photo-grid:empty::after { content: "Add photos from the menu to begin"; align-self: center; padding: 0 5px; color: #748487; font-size: 12px; }
  .focused-photo-card { flex: 0 0 74px; }
  .photo-rotate, .photo-delete { width: 24px; height: 24px; }
  .focused-stage { order: 2; align-self: stretch; margin: 5px 6px; padding: 5px; }
  .focused-stage-heading { min-height: 20px; }
  .focused-session-notice { font-size: 10px; }
  .focused-pattern { width: min(100%, 520px); }
  .drop-instruction { bottom: 10px; padding: 5px 8px; }
  .focused-color-source { order: 3; margin: 0; padding: 10px 13px 12px; border-top: 1px solid #e0e7e9; background: white; }
  .focused-color-source .color-source-trigger { margin-top: 5px; }
  .focused-tools { order: 4; padding: 10px 13px 16px; }
  .page-background-control { margin-bottom: 4px; padding-bottom: 10px; }
  .focused-tools-heading { padding-bottom: 8px; }
  .focused-tools-heading h2 { margin-top: 4px; font-size: 16px; }
  .spot-color-control, .mat-control { padding: 8px 0; }
  .focused-tool-group { gap: 5px; }
  .print-guide-page, .print-guide-entry { gap: 10px; }
  .grid-paper-chooser { position: fixed; inset: 50% 8px auto 8px; transform: translateY(-50%); width: auto; max-height: calc(100dvh - 16px); }
  .grid-paper-cards { max-height: min(29dvh, 290px); }
  .focused-footer { min-height: 0; padding: 10px 13px; }
}

@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .focused-header { min-height: 48px; }
  .focused-workspace { min-height: 0; display: grid; grid-template-columns: 142px minmax(0, 1fr); }
  .focused-rail { grid-column: 1; grid-row: 1 / span 2; padding: 7px; display: flex; flex-direction: column; gap: 6px; }
  .focused-rail-heading, .focused-add, .focused-rail-help { display: none; }
  .focused-photo-grid { max-height: calc(100dvh - 105px); min-height: 72px; flex: 0 1 auto; padding: 2px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; overflow-x: hidden; overflow-y: auto; }
  .focused-photo-card { width: 100%; }
  .focused-color-source { margin-top: 0; padding-top: 7px; }
  .focused-stage { grid-column: 2; grid-row: 1; margin: 5px; padding: 5px; }
  .focused-pattern { width: min(100%, calc(100dvh - 105px), 520px); }
  .focused-session-notice { font-size: 10px; }
  .focused-tools { grid-column: 2; grid-row: 2; padding: 10px 13px; }
  .grid-paper-chooser { position: fixed; inset: 50% 8px auto auto; transform: translateY(-50%); max-height: calc(100dvh - 16px); }
}

/* Selection lists remain in the page, with the same controls on every browser. */
.planner-select-control { position: relative; display: block; min-width: 0; }
.planner-select-control.is-open { z-index: 4; }
.planner-select-trigger { width: 100%; min-height: 35px; padding: 5px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #ccd7da; border-radius: 3px; background: #fff; color: #48565a; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.pattern-filter-field .planner-select-trigger { min-width: 132px; min-height: 39px; padding: 8px 11px; border-radius: 4px; font-size: 14px; }
.planner-select-trigger > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planner-select-trigger[aria-expanded="true"], .planner-select-trigger:focus-visible { border-color: var(--mm-aqua-deep); outline: 2px solid #4fb2cf55; outline-offset: 1px; }
.planner-select-options { position: absolute; z-index: 80; left: 0; right: 0; min-width: 100%; padding: 4px; display: block; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #bccfd4; border-radius: 4px; box-shadow: 0 8px 22px #24414a26; background: #fff; }
.planner-select-options[hidden], .planner-select-control > select[hidden] { display: none; }
.planner-select-options .planner-select-option { display: block; width: 100%; min-height: 32px; padding: 6px 9px; border: 0; border-radius: 2px; background: #fff; color: #48565a; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.planner-select-options .planner-select-option[aria-selected="true"] { background: #eaf7fa; font-weight: 700; }
.planner-select-options .planner-select-option:hover, .planner-select-options .planner-select-option:focus { background: #d9eff5; outline: 1px solid #2786a0; outline-offset: -1px; }
.planner-select-trigger:disabled, .planner-select-options .planner-select-option:disabled { opacity: .5; cursor: not-allowed; }
.staff-access-dialog { width: min(420px, calc(100vw - 28px)); padding: 22px; border: 1px solid #bdd8df; border-radius: 7px; background: #fff; color: #36545d; }
.staff-access-dialog::backdrop { background: #183c4b80; }
.staff-access-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.staff-access-heading h2 { margin: 0; font-family: "Sen", sans-serif; font-size: 22px; }
.staff-access-heading button { border: 0; background: transparent; color: #637276; font-size: 24px; cursor: pointer; }
.staff-access-dialog p { font-size: 14px; line-height: 1.5; }
#staff-access-email { overflow-wrap: anywhere; font-weight: 700; }
.staff-access-dialog label { display: block; margin-bottom: 7px; font-size: 14px; }
.staff-access-dialog input { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #bdd8df; border-radius: 4px; font: inherit; }
.staff-access-dialog input:focus-visible, .staff-access-dialog button:focus-visible { outline: 2px solid #2786a0; outline-offset: 2px; }
#staff-access-result { min-height: 21px; color: #a13239; }
.staff-access-actions { display: flex; justify-content: flex-end; gap: 10px; }
.staff-access-actions button { padding: 9px 14px; border: 1px solid #bdd8df; border-radius: 4px; background: white; color: #226b7e; font: inherit; cursor: pointer; }
#staff-access-submit { background: #226b7e; color: white; }
#staff-access-submit:disabled { opacity: .6; }
/* Keep the brand pointer throughout the planner while preserving useful editing cues. */
@media (pointer: fine) {
  .mm-custom-cursor, .mm-custom-cursor * { cursor: url("assets/mm-cursor-arrow.svg") 2 2, auto !important; }
  .mm-custom-cursor input:is([type="text"], [type="search"], [type="number"], [type="email"], [type="url"]),
  .mm-custom-cursor textarea,
  .mm-custom-cursor [contenteditable] { cursor: text !important; }
  .mm-custom-cursor .focused-thumb,
  .mm-custom-cursor [draggable="true"] { cursor: grab !important; }
  .mm-custom-cursor .focused-thumb:active,
  .mm-custom-cursor [draggable="true"]:active { cursor: grabbing !important; }
  .mm-custom-cursor .photo-region.has-photo .region-hit { cursor: move !important; }
  .mm-custom-cursor .pattern-is-dragging .region-hit { cursor: copy !important; }
  .mm-custom-cursor :disabled { cursor: not-allowed !important; }
}

.example-set-panel .sample-photo-ai-note, .help-dialog .sample-photo-ai-note { margin: 10px 0 14px; font-size: 12px; line-height: 1.5; color: #617174; }

.photo-zoom-baseline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.photo-zoom-baseline #focused-zoom-value { font-size: 12px; }
.photo-zoom-baseline #zoom-baseline { font-size: 11px; }

.warning-preferences { border-top: 1px solid #d9e2e4; margin-top: 16px; padding-top: 10px; font-size: 11px; color: #53696f; }
.warning-preferences label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.warning-preferences input { margin: 0; accent-color: var(--mm-aqua-deep); }
.focused-footer > * { min-width: 0; }
.focused-footer-policies { flex-wrap: wrap; white-space: normal; justify-content: flex-end; }
@media (max-width: 900px) { .focused-footer { grid-template-columns: 1fr; } .focused-footer-policies { justify-self: start; justify-content: flex-start; } }

/* Help reference sections: contained within the Help dialog. */
.help-die-key { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.help-die-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.help-die-photos figure { margin: 0; min-width: 0; }
.help-die-photos img { width: 100%; height: 230px; object-fit: contain; background: white; border: 1px solid #dfe7e8; border-radius: 5px; }
.help-die-photos figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.help-explanations { margin: 0; }
.help-explanations dt { margin-top: 18px; font-weight: 700; color: #34555d; }
.help-explanations dd { margin: 5px 0 0; line-height: 1.7; }
.help-guide-points { padding-left: 23px; }
.help-guide-points li { margin: 12px 0; line-height: 1.7; }
.help-step-list p + p { margin-top: 12px; }
@media (max-width: 680px) { .help-die-photos { grid-template-columns: 1fr; } .help-die-key { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Single-height toolbar: pattern information occupies the previously empty left section. */
.focused-commandbar { display:flex; flex-wrap:nowrap; height:59px; min-height:59px; padding:0 20px; gap:14px; }
.focused-commandbar > .focused-pattern-info { flex:0 1 220px; display:grid; grid-template-columns:8px minmax(0,1fr); column-gap:7px; row-gap:1px; align-items:center; min-width:150px; }
.focused-commandbar > .focused-pattern-info .live-dot { grid-row:1 / 3; }
.focused-commandbar > .focused-pattern-info strong { grid-column:2; line-height:18px; font-size:13px; }
.focused-commandbar > .focused-pattern-info #current-pattern-details { grid-column:2; font-size:11px; line-height:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.focused-command-main { flex:1 1 auto; width:auto; margin:0; min-width:0; justify-content:center; flex-wrap:nowrap; }
.focused-command-actions { flex-wrap:nowrap !important; justify-content:center !important; margin:0; gap:7px; }
.focused-commandbar button { padding-inline:8px; }
.focused-commandbar .focused-pattern-button { min-width:0; }
.page-reset-actions { flex:0 0 auto; margin:0 0 0 auto; gap:7px; }
.toolbar-measure { display:flex !important; width:max-content !important; position:absolute !important; visibility:hidden !important; pointer-events:none !important; }
body.toolbar-overflow .focused-command-actions, body.toolbar-overflow .page-reset-actions { display:none; }
body.toolbar-overflow .mobile-menu-trigger { width:42px; height:42px; flex:0 0 auto; padding:9px; display:grid; align-content:center; justify-items:center; gap:5px; border:1px solid #bdd7de; border-radius:5px; background:#f2fafb; color:#227f99; cursor:pointer; }
body.toolbar-overflow .mobile-menu-trigger span { width:20px; height:2px; display:block; background:currentColor; border-radius:2px; }
body.toolbar-overflow .focused-header { position:relative; z-index:70; }
body.toolbar-overflow .mobile-actions:not([hidden]) { position:absolute; top:calc(100% - 1px); right:9px; z-index:80; width:min(236px,calc(100vw - 18px)); padding:8px; display:grid; gap:2px; border:1px solid #c8d9dd; border-radius:0 0 7px 7px; background:white; box-shadow:0 15px 34px #23373d33; }
body.toolbar-overflow .mobile-actions button { min-height:42px; padding:8px 11px; border:0; border-radius:3px; background:white; color:#42656e; font-size:14px; text-align:left; cursor:pointer; }
@media (max-width:600px), (max-width:950px) and (max-height:500px) and (orientation:landscape) {
  .focused-commandbar { height:31px; min-height:31px; padding:0 12px; }
  .focused-commandbar > .focused-pattern-info { display:flex; flex:1; gap:7px; }
  .focused-commandbar > .focused-pattern-info strong { font-size:12px; }
  .focused-commandbar > .focused-pattern-info #current-pattern-details { font-size:11px; }
  .focused-command-main { display:none; }
}

/* Approved Help videos play in place; larger view stays inside this window. */
.help-video-launch { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #cddfe3; border-radius: 5px; background: #fff; color: #226b7e; text-align: left; cursor: pointer; box-shadow: 0 10px 28px rgba(44,65,70,.13); }
.help-video-launch[hidden] { display: none; }
.help-video-launch img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.help-video-watch { display: flex; align-items: center; gap: 8px; padding: 12px 15px; font-weight: 700; background: #edf8fa; }
.help-video-watch small { margin-left: auto; color: #526d75; font-size: 12px; font-weight: 400; }
.help-video-launch:hover, .help-video-launch:focus-visible { outline: 2px solid #268eac; outline-offset: 2px; }
.help-video { width: min(100%, 640px, max(160px, calc((100dvh - 280px) * 16 / 9))); }
.help-inline-player { width: 100%; overflow: hidden; border: 1px solid #cddfe3; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgba(44,65,70,.13); }
.help-inline-picture { position: relative; aspect-ratio: 16 / 9; background: #fff; }
.help-inline-picture img, .help-inline-picture canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.help-inline-picture canvas { position: absolute; inset: 0; visibility: hidden; }
.help-inline-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px; }
.help-inline-controls button { padding: 7px 12px; border: 1px solid #bdd8e0; border-radius: 20px; background: #edf8fa; color: #226b7e; font: inherit; font-size: 13px; cursor: pointer; }
.help-inline-controls button:disabled { opacity: .55; cursor: default; }
.help-inline-controls button:focus-visible { outline: 2px solid #008aad; outline-offset: 2px; }
.help-inline-seek { display: flex; flex: 1 1 100%; align-items: center; gap: 9px; min-width: 0; }
.help-inline-seek input { flex: 1; min-width: 30px; }
.help-inline-time { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.help-inline-sound { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.help-inline-sound label { font-size: 12px; }
.help-inline-sound input { width: 70px; }
.help-inline-controls input { accent-color: #2b9dbb; cursor: pointer; }
.help-inline-status { margin: 0 !important; padding: 0 12px; color: #617174; font-size: 12px; }
.help-inline-status:not(:empty) { padding-bottom: 12px; }
.help-video-large-placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1px solid #cddfe3; border-radius: 5px; background: #f0f8fa; color: #526d75; font-size: 14px; }
.help-video-large-placeholder[hidden] { display: none; }
.help-video-dialog { width: min(960px, calc(100vw - 64px), calc((100dvh - 220px) * 16 / 9)); max-width: none; max-height: calc(100dvh - 64px); padding: 0; border: 0; border-radius: 9px; background: #fff; color: #345660; box-shadow: 0 20px 70px #17343c66; }
.help-video-dialog::backdrop { background: #17343c99; }
.help-video-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding: 10px 16px; border-bottom: 1px solid #dce9eb; }
.help-video-dialog-heading h2 { margin: 0; font: 600 16px/1.4 "Sen", sans-serif; }
.help-video-dialog-close { flex: 0 0 auto; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #edf8fa; color: #226b7e; font-size: 23px; cursor: pointer; }
.help-video-dialog .help-inline-player { border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 600px) {
  .help-video-dialog { width: min(calc(100vw - 32px), calc((100dvh - 220px) * 16 / 9)); }
  .help-inline-controls { gap: 7px; padding: 9px; }
  .help-inline-controls button { padding: 6px 9px; font-size: 12px; }
  .help-inline-sound { margin-left: 0; }
}

/* Local two-page trial: keep the page controls visible when other actions use the menu. */
.page-editor-controls, .page-view-controls { display: flex; align-items: center; gap: 5px; }
.page-editor-controls { margin-left: 12px; flex-shrink: 0; }
.focused-commandbar .focused-command-main { display: flex; }
.page-editor-controls button, .page-view-controls button { padding: 7px 10px; border: 1px solid #bdcfd4; border-radius: 4px; background: white; color: #36545d; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.page-editor-controls button[aria-pressed="true"], .page-view-controls button[aria-pressed="true"] { background: #d4eff3; border-color: #2786a0; color: #164b5a; font-weight: 700; }
.editing-page-label { margin: 0; color: #637276; font-size: 11px; white-space: nowrap; flex: 0 0 auto; }
.focused-stage-heading { gap: 12px; }
.focused-stage-heading .focused-session-notice { width: auto; flex: 1 1 auto; min-width: 0; }
.planner-version-button { border: 0; padding: 0; background: transparent; font: inherit; font-size: 13px; color: #778488; cursor: help; white-space: nowrap; }
.planner-version-button:focus-visible { outline: 2px solid #2786a0; outline-offset: 4px; border-radius: 2px; }
.version-details { position: fixed; z-index: 20; width: min(305px, calc(100vw - 24px)); padding: 12px 15px; border: 1px solid #bdd8df; border-radius: 7px; box-shadow: 0 8px 24px #24414a22; background: #fff; color: #36545d; font-size: 13px; line-height: 1.5; }
.version-details[hidden] { display: none; }
.two-page-intro { width: min(470px, calc(100vw - 32px)); padding: 22px; }
.two-page-intro .info-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.two-page-intro h2 { font-family: "Sen", sans-serif; font-size: 22px; }
.two-page-intro h2 { margin: 0; padding-right: 28px; }
.two-page-intro p { line-height: 1.6; }
.two-page-intro-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.two-page-intro-actions button { border: 1px solid #bdd8df; border-radius: 5px; padding: 9px 16px; font: inherit; background: #fff; color: #226b7e; cursor: pointer; }
.two-page-intro-actions button:last-child { background: #226b7e; color: #fff; }
.photo-page-usage { position: absolute; top: 3px; left: 3px; z-index: 2; border-radius: 3px; background: #164b5a; color: white; padding: 2px 4px; font-size: 9px; pointer-events: none; }
.photo-page-usage[hidden] { display: none; }
.page-view-dialog { display: none; }
.page-view-dialog[open] { display: flex; flex-direction: column; }
.page-view-controls { padding: 0 8px 12px; flex-wrap: wrap; flex-shrink: 0; }
#switch-pages { margin-left: 12px; }
.page-view-stage { flex: 1; min-height: 0; height: auto; grid-template-columns: minmax(0,1fr); gap: 16px; }
.page-view-stage.is-spread { grid-template-columns: repeat(2,minmax(0,1fr)); }
.page-preview-sheet { margin: 0; width: min(100%, calc(96vh - 175px), 1000px); }
.page-preview-sheet figcaption { text-align: center; margin: 0 0 8px; font-size: 12px; color: #53666c; }
.page-view-stage .focused-pattern { width: 100%; max-height: none; }
@media(max-width:600px) {
  .page-editor-controls { margin-left: 4px; }
  .page-editor-controls button { padding: 6px 7px; font-size: 11px; }
  .toolbar-overflow .focused-pattern-info { min-width: 0; flex: 1; overflow: hidden; }
  .toolbar-overflow .focused-command-main { flex-shrink: 0; }
  .focused-command-main { display: flex; flex: 0 0 auto; width: auto; }
  .focused-commandbar { height: auto; min-height: 38px; padding: 4px 8px; }
  .page-view-stage { gap: 8px; }
  .focused-stage-heading { flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .paper-color-popover.color-source-popover {
    position: fixed;
    top: 64px;
    bottom: auto;
    left: 12px;
    max-height: calc(100vh - 76px);
  }
  .color-source-done { position: sticky; bottom: 0; z-index: 1; }
}
