/* Models and measurements, with the same diagram scale on all three axes. */
.storage-section { background: var(--soft); padding-block: 80px; overflow-anchor: none; }
.storage-heading { margin-bottom: 30px; }
.storage-heading h2 { font-size: clamp(2.25rem, 4vw, 3.2rem); }
.storage-heading p { margin: 16px 0 0; color: var(--muted); font-size: 1rem; }
.storage-workbench { border: 1px solid #cfd9e7; border-radius: 16px; background: var(--paper); box-shadow: 0 12px 36px #203d7506; }
.storage-tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 8px; padding: 4px; background: #edf2fa; border-radius: 10px; }
.storage-tabs button { position: relative; z-index: 1; min-height: 48px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: #304b7f; font-size: 1rem; font-weight: 700; transition: color 0.44s ease; }
.storage-tabs button small { display: block; margin-top: 2px; font-size: .875rem; font-weight: 400; white-space: nowrap; }
.storage-tabs button:hover:not([aria-selected=true]) { color: #0b3186; }
.storage-tabs button[aria-selected=true] { background: transparent; color: white; }
.storage-tab-indicator { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 7px; background: var(--blue); box-shadow: 0 3px 8px #12368522; transition: transform 0.76s cubic-bezier(.22,.75,.2,1), width 0.6s ease; pointer-events: none; }
.storage-picker { margin: 0; padding: 4px 16px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-bottom: 1px solid #dce3ee; }
.storage-picker > p { margin: 0; font-size: .875rem; color: #47566f; }
.storage-models { display: flex; flex-wrap: wrap; gap: 8px; }
.storage-model-choice { min-height: 44px; min-width: 88px; padding: 8px 16px; background: var(--paper); border: 1px solid #c1cfe3; border-radius: 9px; color: var(--blue); font-size: .9375rem; font-weight: 700; transition: background 0.36s ease, color 0.36s ease, box-shadow 0.36s ease; }
.storage-model-choice[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: white; }
.storage-model-choice:hover { box-shadow: 0 0 0 1px var(--blue); }
.storage-card { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto 1fr; border-radius: 0 0 16px 16px; overflow: hidden; background: var(--paper); }
.storage-model-heading { grid-column: 2; padding: 32px 36px 0; }
.storage-model-heading h3 { margin: 0; font-size: 2.25rem; line-height: 1.1; }
.storage-badge { display: inline-block; color: var(--blue); background: #edf2fa; border-radius: 5px; padding: 4px 9px; font-size: .75rem; margin-top: 10px; }
.storage-badge[hidden] { display: none; }
.storage-visual { grid-column: 1; grid-row: 1 / 4; margin: 0; background: radial-gradient(ellipse at 45% 40%, #fff 0%, #f1f5fc 80%); display: flex; flex-direction: column; justify-content: center; padding: 18px 14px; min-width: 0; }
.storage-visual-tools { display: flex; align-items: center; gap: 7px; padding-inline: 3px; }
.storage-view-toggle { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 9px 13px; color: #39527d; border: 1px solid #d3ddeb; background: #ffffffc7; border-radius: 9px; font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background 0.44s, border-color 0.44s, color 0.44s; }
.storage-view-toggle .icon { width: 17px; height: 17px; }
.storage-view-toggle[aria-pressed=true] { color: #fff; background: var(--blue); border-color: var(--blue); }
.storage-view-toggle:hover { border-color: var(--blue); }
.storage-replay { margin-left: auto; width: 44px; min-height: 44px; flex-shrink: 0; display: grid; place-items: center; background: transparent; border: 0; border-radius: 50%; color: #39527d; }
.storage-replay:hover { background: #e3ebf8; }
.storage-replay svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
#storage-figure { width: 100%; height: 290px; }
.storage-diagram { width: 100%; height: 100%; display: block; overflow: visible; }
.storage-visual figcaption { text-align: center; color: #5c6d89; font-size: .8125rem; line-height: 1.5; padding: 0 8px; }
.storage-contents-detail { margin: 11px 8px 0; font-size: .8125rem; color: #52627a; }
.storage-contents-detail[hidden] { display: none; }
.storage-contents-detail summary { width: fit-content; min-height: 32px; margin-inline: auto; cursor: pointer; color: var(--blue); padding: 4px; }
.storage-contents-detail p { margin: 8px 0; font-size: .8125rem; }
.storage-contents-detail ul { padding-left: 20px; margin: 0; line-height: 1.8; }
.diagram-shadow { fill: #1d3e75; fill-opacity: .17; filter: url(#box-soft-shadow); }
.diagram-floor { fill: url(#box-floor); stroke: #bfc9d7; stroke-width: 1; }
.diagram-base-left { fill: #a5b2cb; }
.diagram-base-right { fill: #6f87af; }
.diagram-grid { stroke: #bfbba9; stroke-width: .8; stroke-opacity: .5; }
.diagram-wall-left { fill: url(#box-left); stroke: #829ac1; stroke-width: .8; }
.diagram-wall-right { fill: url(#box-right); stroke: #adbed8; stroke-width: .8; }
.diagram-edge-left { fill: #5778b2; }
.diagram-edge-right { fill: #7896c6; }
.diagram-cap { fill: #43649c; }
.diagram-seam { stroke: #fff; stroke-opacity: .45; stroke-width: 1; }
.diagram-front { stroke: #a3b0c5; stroke-width: 1; }
.diagram-dimension { stroke: #35568b; stroke-width: 1.3; }
.diagram-label { fill: #173b77; font: 600 20px var(--body); paint-order: stroke; stroke: #f5f8fc; stroke-width: 5px; stroke-linejoin: round; }
.diagram-object { stroke: #31446630; stroke-width: .6; stroke-linejoin: round; }
.diagram-object-line { fill: none; stroke-width: 1.3; stroke-linecap: round; }
.carton-left { fill: #e79a4c; }.carton-right { fill: #c47a38; }.carton-top { fill: #ffc17e; }.carton-tape { fill: #ffe3ac; stroke: none; }.carton-mark { stroke: #8b562f; }
.case-left { fill: #184eb1; }.case-right { fill: #123377; }.case-top { fill: #4b7bd0; }.case-handle { stroke: #233454; stroke-width: 2; }.case-ridge { stroke: #8aace4; }
.fabric-left { fill: #5174b3; }.fabric-right { fill: #345892; }.fabric-top { fill: #7696cc; }
.cushion-left { fill: #d7c6a5; }.cushion-right { fill: #bfae8a; }.cushion-top { fill: #f5e8cc; }
.wood-left { fill: #72563d; }.wood-right { fill: #4e3d2f; }.wood-top { fill: #957754; }
.cabinet-door { stroke: #a8bde0; }.cabinet-handle { stroke: #f5e8cc; stroke-width: 2; }
.storage-details { grid-column: 2; padding: 24px 36px 18px; }
.storage-measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.storage-measures > div { min-width: 0; }
.storage-measures dd, .storage-model-choice { font-variant-numeric: tabular-nums; }
.storage-measures dt { font-size: .875rem; color: #59667b; margin-bottom: 5px; }
.storage-measures dd { margin: 0; color: var(--ink); font-family: var(--heading); font-size: 1.375rem; font-weight: 600; white-space: nowrap; }
.storage-volume { margin: 17px 0 0; color: #59667b; font-size: .875rem; }
.storage-volume strong { color: #273f65; margin-left: 5px; }
.storage-actions { grid-column: 2; padding: 0 36px 24px; align-self: end; }
.storage-actions .button { width: 100%; font-size: 1rem; }
.storage-other { display: block; min-height: 44px; margin: 8px auto 0; padding: 10px 3px; border: 0; background: none; color: var(--blue); font-size: .875rem; text-decoration: underline; text-underline-offset: 5px; }
.storage-footer { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 22px; }
.storage-note { max-width: 400px; color: #5b687e; font-size: .8125rem; line-height: 1.65; margin: 0; }
.storage-help { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.storage-help-portrait { position: relative; width: 120px; height: 118px; overflow: hidden; flex-shrink: 0; }
.storage-help-portrait img { position: absolute; max-width: none; width: 126px; left: -5px; top: -28px; }
.storage-help-speech { background: #fff; border: 1.5px solid #242824; border-radius: 12px; padding: 9px 13px; color: #242824; font-family: var(--heading); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; margin: 0; position: relative; }
.storage-help-speech:before { content: ''; position: absolute; width: 10px; height: 10px; background: white; border-left: 1.5px solid #242824; border-bottom: 1.5px solid #242824; left: -6px; bottom: 12px; transform: rotate(45deg); }
.storage-help .subtle-link { min-height: 44px; padding-block: 10px 4px; font-size: .875rem; }
.storage-help.is-entered .storage-help-portrait { transform-origin: 50% 90%; animation: numb-enter 1.6s cubic-bezier(.22,.75,.25,1) both; }
.storage-help.is-entered .storage-help-speech { transform-origin: 0 80%; animation: numb-speech 0.84s 0.7s ease-out both; }
.storage-help.is-entered .subtle-link { animation: numb-speech 0.7s 1s ease-out both; }
@keyframes numb-enter { 0% { opacity: 0; transform: translateX(-15px) rotate(-7deg); } 65% { opacity: 1; transform: translateX(2px) rotate(3deg); } 100% { opacity: 1; transform: none; } }
@keyframes numb-speech { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.storage-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.quote-model-detail { color: #46536a; font-size: .875rem; line-height: 1.6; margin: 10px 0 0; }
.quote-model-detail[hidden] { display: none; }
.form-columns > div { min-width: 0; }
.dialog-inner select { text-overflow: ellipsis; }
@media(max-width: 1000px) {
  .storage-card { grid-template-columns: 1fr 1fr; }
  .storage-model-heading { padding: 26px 24px 0; }
  .storage-model-heading h3 { font-size: 2rem; }
  .storage-details { padding: 22px 24px 16px; }
  .storage-actions { padding: 0 24px 24px; }
  .storage-measures { gap: 9px; }
  .storage-measures dt { font-size: .8125rem; }
  .storage-measures dd { font-size: 1.1875rem; }
  .storage-footer { gap: 20px; }
}
@media(max-width: 680px) {
  .storage-section { padding-block: 46px 38px; }
  .storage-heading { margin-bottom: 24px; }
  .storage-heading h2 { font-size: clamp(2rem, 8.2vw, 2.5rem); }
  .storage-heading p { margin-top: 13px; line-height: 1.6; }
  .storage-tabs { padding: 4px; gap: 2px; border-radius: 11px; }
  .storage-tabs button { min-height: 48px; padding: 5px 2px; font-size: .875rem; border-radius: 7px; }
  .storage-tabs button small { font-size: .75rem; }
  .storage-tab-indicator { top: 4px; bottom: 4px; border-radius: 8px; }
  .storage-picker { margin: 0; padding: 4px 12px 12px; gap: 6px; }
  .storage-picker > p { margin: 0; width: 100%; }
  .storage-models { gap: 7px; }
  .storage-model-choice { min-width: 0; padding: 8px 13px; font-size: .875rem; }
  .storage-card { display: flex; flex-direction: column; }
  .storage-model-heading { padding: 19px 18px 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .storage-model-heading h3 { font-size: 1.75rem; }
  .storage-badge { margin: 0; }
  .storage-visual { padding: 12px 8px 14px; }
  .storage-visual-tools { gap: 5px; }
  .storage-view-toggle { padding: 8px 9px; gap: 6px; }
  .storage-replay { width: 36px; }
  #storage-figure { height: 245px; }
  .diagram-label { font-size: 28px; }
  .storage-details { padding: 16px 18px 14px; }
  .storage-measures { gap: 10px; }
  .storage-measures dt { font-size: .8125rem; }
  .storage-measures dd { font-size: 1.25rem; }
  .storage-volume { margin-top: 12px; }
  .storage-actions { padding: 0 20px 14px; }
  .storage-actions .button { padding-inline: 8px; font-size: .9375rem; min-height: 50px; }
  .storage-footer { flex-direction: column-reverse; align-items: stretch; gap: 17px; margin-top: 18px; }
  .storage-note { max-width: none; }
  .storage-help { justify-content: center; gap: 10px; }
  .storage-help-speech { font-size: 1rem; }
}
@media(max-width: 370px) {
  .storage-tabs { margin-inline: 4px; gap: 0; }
  .storage-tabs button { letter-spacing: -.035em; }
  .storage-tabs button small { font-size: .6875rem; }
  .storage-view-toggle { padding-inline: 6px; font-size: .8125rem; gap: 4px; }
  .storage-view-toggle .icon { display: none; }
  .storage-measures { grid-template-columns: 1fr 1.2fr 1fr; gap: 6px; }
  .storage-measures dt { font-size: .75rem; }
  .storage-measures dd { font-size: 1.0625rem; }
  .storage-model-heading, .storage-details { padding-inline: 15px; }
  .storage-actions { padding-inline: 15px; }
  .storage-help-portrait { width: 96px; height: 98px; }
  .storage-help-portrait img { width: 104px; left: -5px; top: -24px; }
}
@media(prefers-reduced-motion: reduce) {
  .storage-section *, .storage-section *:before { animation: none !important; transition: none !important; }
}

/* Desktop workspace fits the available height without scaling text or controls. */
@media(min-width: 901px) {
  .storage-section { padding-block: 16px; }
  .storage-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
  .storage-heading h2 { font-size: 2rem; flex-shrink: 0; }
  .storage-heading p { max-width: 370px; margin: 0; font-size: 1rem; line-height: 1.5; }
  .storage-tabs { margin: 6px; }
  .storage-tabs button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; min-height: 44px; padding: 5px 8px; }
  .storage-tabs button small { margin: 0; }
  .storage-picker { padding: 2px 14px 10px; }
  .storage-model-heading { padding: 20px 24px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
  .storage-model-heading h3 { font-size: 1.75rem; }
  .storage-badge { margin: 0; }
  .storage-visual { padding: 10px 12px; }
  #storage-figure { height: clamp(160px, calc(100svh - 540px), 240px); }
  .storage-details { padding: 16px 24px; }
  .storage-volume { margin-top: 10px; }
  .storage-actions { padding: 0 24px 14px; }
  .storage-actions .button { min-height: 46px; padding-block: 10px; }
  .storage-other { margin-top: 0; padding-block: 6px; }
  .storage-footer { margin-top: 10px; gap: 24px; }
  .storage-note { max-width: 500px; }
  .storage-help { gap: 8px; }
  .storage-help-portrait { width: 74px; height: 70px; }
  .storage-help-portrait img { width: 80px; left: -3px; top: -18px; }
  .storage-help-speech { font-size: .875rem; padding: 6px 10px; }
  .storage-help .subtle-link { padding-block: 5px; min-height: 32px; }
}

/* Keep the mobile comparison tools, diagram and quote action together. */
@media(max-width: 680px) {
  .storage-section { padding-block: 16px 24px; scroll-margin-top: 0; }
  .storage-section > .wrap { width: calc(100% - 28px); }
  .storage-heading { margin-bottom: 10px; }
  .storage-heading h2 { font-size: clamp(1.5rem, 6.8vw, 1.875rem); line-height: 1.15; }
  .storage-heading p { display: none; }
  .storage-tabs { margin: 5px; padding: 3px; }
  .storage-tabs button { min-height: 50px; padding: 3px 1px; }
  .storage-tabs button small { margin-top: 0; }
  .storage-tab-indicator { top: 3px; bottom: 3px; }
  .storage-picker { padding: 3px 10px 8px; gap: 4px; }
  .storage-picker > p { font-size: .875rem; line-height: 1.3; }
  .storage-models { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
  .storage-model-choice { min-width: 0; min-height: 44px; padding: 5px 2px; font-size: .875rem; white-space: nowrap; border-radius: 7px; }
  .storage-model-heading { padding: 9px 12px; gap: 6px; }
  .storage-model-heading h3 { font-size: 1.25rem; }
  .storage-badge { font-size: .75rem; padding: 2px 6px; }
  .storage-visual { padding: 5px 8px 7px; }
  .storage-visual-tools { padding: 0; gap: 5px; }
  .storage-view-toggle { min-height: 44px; padding: 5px 8px; font-size: .875rem; }
  .storage-replay { width: 44px; }
  #storage-figure { height: clamp(120px, calc(100svh - 470px), 190px); }
  .storage-visual figcaption { font-size: .75rem; line-height: 1.3; }
  .storage-details { padding: 8px 12px; }
  .storage-measures { gap: 8px; }
  .storage-measures dt { margin-bottom: 0; font-size: .8125rem; line-height: 1.4; }
  .storage-measures dd { font-size: 1.125rem; line-height: 1.4; }
  .storage-volume { margin-top: 3px; font-size: .8125rem; line-height: 1.4; }
  .storage-actions { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 8px; padding: 2px 12px 10px; }
  .storage-actions .button { min-height: 48px; padding: 5px 8px; font-size: .875rem; line-height: 1.3; }
  .storage-other { min-height: 48px; margin: 0; padding: 4px; font-size: .875rem; line-height: 1.35; }
  .storage-footer { margin-top: 12px; gap: 10px; }
  .storage-help-portrait { width: 72px; height: 76px; }
  .storage-help-portrait img { width: 82px; left: -4px; top: -20px; }
  .storage-help-speech { padding: 5px 10px; font-size: .875rem; }
  .storage-help .subtle-link { padding-block: 4px; min-height: 44px; }
}
@media(max-width: 680px) {
  .storage-section { scroll-margin-top: -24px; }
  .storage-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px; grid-template-rows: auto; }
  .storage-model-heading { grid-column: 1 / -1; grid-row: 1; padding-block: 7px; }
  .storage-visual { display: contents; }
  .storage-visual-tools { grid-column: 1 / -1; grid-row: 2; padding: 0 10px; background: #f1f5fc; }
  #storage-figure { grid-column: 1; grid-row: 3; height: clamp(145px, calc(100svh - 440px), 190px); background: #f1f5fc; }
  .storage-details { grid-column: 2; grid-row: 3; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 6px 8px; background: #f1f5fc; }
  .storage-measures { grid-template-columns: 1fr; gap: 6px; }
  .storage-measures dt { font-size: .8125rem; }
  .storage-measures dd { font-size: 1rem; }
  .storage-volume { margin-top: 7px; font-size: .8125rem; }
  .storage-volume strong { display: block; margin-left: 0; }
  .storage-visual figcaption { grid-column: 1 / -1; grid-row: 4; padding: 4px 8px 7px; background: #f1f5fc; }
  .storage-contents-detail { grid-column: 1 / -1; grid-row: 5; margin: 5px 12px; }
  .storage-actions { grid-column: 1 / -1; grid-row: 6; padding-top: 8px; }
}
@media(max-width: 680px) {
  .storage-details { display: contents; }
  .storage-measures { grid-column: 2; grid-row: 3; align-self: stretch; align-content: center; padding: 6px 8px; background: #f1f5fc; }
  .storage-volume { grid-column: 2; grid-row: 4; margin: 0; padding: 4px 8px 7px; background: #f1f5fc; align-self: stretch; font-size: .75rem; }
  .storage-volume strong { display: inline; margin-left: 3px; white-space: nowrap; }
  .storage-visual figcaption { grid-column: 1; font-size: .75rem; }
}
@media(max-width: 680px) and (max-height: 650px) {
  #storage-figure { height: 145px; }
  .storage-model-heading { padding-block: 5px; }
}

/* Published monthly source prices. */
.storage-prices { flex-basis: 100%; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; color: #52627a; font-size: .875rem; line-height: 1.5; }
.storage-prices strong { color: var(--blue); font-weight: 700; }
.storage-price-table { margin-top: 16px; color: #46536a; font-size: .875rem; }
.storage-price-table > summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--blue); font-weight: 600; }
.storage-price-table > p { margin: 8px 0 12px; }
.storage-price-scroll { overflow-x: auto; border: 1px solid #cfd9e7; border-radius: 8px; }
.storage-price-table table { border-collapse: collapse; width: 100%; background: var(--paper); }
.storage-price-table caption { text-align: left; padding: 10px 12px; font-weight: 700; }
.storage-price-table th, .storage-price-table td { padding: 9px 12px; text-align: left; border-top: 1px solid #dce3ee; }
.storage-price-table th { background: #edf2fa; color: var(--blue); }
.storage-price-table td, .storage-price-table th { white-space: nowrap; }
@media(max-width: 680px) {
  .storage-prices { margin: 0; gap: 2px 12px; font-size: .875rem; }
  .storage-badge { display: none; }
  .storage-price-table { margin-top: 10px; }
  #storage-figure { height: clamp(125px, calc(100svh - 475px), 170px); }
}

/* Keep the speech bubble and its call to action aligned with the mascot. */
.storage-help { min-width: 0; }
.storage-help > div:last-child { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.storage-help-speech { width: max-content; max-width: 100%; text-align: center; }
.storage-help-speech > span { display: block; }
.storage-help-speech:before { top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); }
.storage-help .subtle-link { align-self: center; text-align: center; }

.storage-account-link { display: block; text-align: center; padding: 10px 4px; min-height: 44px; font-size: .875rem; font-weight: 650; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; grid-column: 1 / -1; }

.storage-buy { grid-column: 1 / -1; width: 100%; margin-top: 10px; }
@media(max-width:680px) { .storage-buy { margin-top: 0; } }

.storage-actions .storage-other { grid-column: 1 / -1; }
@media(max-width:680px){.storage-models{grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(65px,1fr));grid-auto-columns:auto}}
.storage-availability{font-size:1rem;font-weight:650;color:#0d3288;margin:12px 0 4px}.storage-availability-note{font-size:.875rem;line-height:1.4;color:#526078;margin:0 0 12px}
