.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.raid-hero { padding: 42px 0 30px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--brand); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: #98a2b3; }
.raid-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.raid-hero h1 { margin: 4px 0 0; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.raid-hero .lede { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.technical-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.13); }
.local-badge { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-top: 7px; padding: 12px 15px; border: 1px solid #b9ddd8; border-radius: 13px; color: #115e59; background: rgba(240,253,250,.88); }
.local-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.local-badge span { display: grid; }
.local-badge small { color: #42726e; }

.calculator { display: grid; gap: 24px; padding-bottom: 30px; }
.workspace-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.95); box-shadow: 0 18px 48px rgba(15,23,42,.075); }
.drive-stage { padding: clamp(20px, 3.2vw, 36px); }
.step-heading { display: flex; align-items: center; gap: 14px; }
.step-heading > div { min-width: 0; }
.step-heading p { margin: 0; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.step-heading h2 { margin: 1px 0 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.step-number { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 13px; color: #dff7ff; background: linear-gradient(145deg, #0a759d, #124b83); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; box-shadow: 0 8px 18px rgba(21,94,159,.22); }
.drive-limit { margin-left: auto; padding: 6px 10px; border-radius: 999px; color: var(--muted); background: #f0f3f7; font-size: 13px; font-weight: 600; }
.section-intro { max-width: 760px; margin: 18px 0 20px; color: var(--muted); }

.capacity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 9px; }
.capacity-button { min-height: 50px; padding: 9px 8px; border: 1px solid #cfd8e3; border-radius: 10px; color: #26384d; background: #fff; font-weight: 650; cursor: pointer; box-shadow: 0 2px 6px rgba(15,23,42,.025); transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.capacity-button:hover:not(:disabled) { transform: translateY(-2px); border-color: #70a9cf; color: var(--brand); background: #f7fbff; box-shadow: 0 8px 18px rgba(21,94,159,.1); }
.capacity-button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.capacity-button:disabled { opacity: .43; cursor: not-allowed; }
.custom-drive { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 16px; padding: 16px 18px; border: 1px solid #dbe3ec; border-radius: 13px; background: #f8fafc; }
.custom-drive label { color: #253244; font-weight: 650; }
.custom-drive p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.custom-control { display: grid; grid-template-columns: minmax(90px, 150px) 76px auto; gap: 8px; }
.custom-control input, .custom-control select, .advanced-content input, .advanced-content select { min-height: 46px; padding: 9px 11px; border: 1px solid #c8d0dc; border-radius: 9px; color: var(--ink); background: #fff; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .46; cursor: not-allowed; box-shadow: none; }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 8px 20px rgba(21,94,159,.2); }
.button-primary:hover:not(:disabled) { background: #124f87; }
.button-secondary { color: #344054; border-color: #cfd7e2; background: #fff; }
.button-secondary:hover:not(:disabled) { border-color: #9aabba; background: #f8fafc; }
.button-danger { color: #9c2a20; border-color: #edc6c2; background: #fff8f7; }
.button-danger:hover:not(:disabled) { border-color: #dc918a; background: #fff1f0; }
.presets { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.presets > span { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.presets > div { display: flex; flex-wrap: wrap; gap: 7px; }
.presets button, .text-button { min-height: 36px; padding: 6px 10px; border: 1px solid #d8e0e9; border-radius: 8px; color: #445468; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.presets button:hover, .text-button:hover { border-color: #94b5ce; color: var(--brand); background: #f7fbff; }

.nas-scene { margin-top: 27px; padding: 20px clamp(12px, 3vw, 30px) 28px; overflow: hidden; border: 1px solid #1d3346; border-radius: 18px; color: #dbe9f4; background: radial-gradient(circle at 50% -20%, #264459 0, #0c1d2a 43%, #07131e 100%); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.nas-label-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.nas-label-row > div:first-child { display: grid; }
.nas-label-row span { font-weight: 650; }
.nas-label-row small { color: #8097a9; font-size: 12px; }
.nas-health { display: flex; align-items: center; gap: 7px; color: #83d9b6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.nas-health i { width: 7px; height: 7px; border-radius: 50%; background: #38d994; box-shadow: 0 0 10px #38d994; }
.nas-shell { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 11px; width: min(100%, 940px); margin: 0 auto; padding: 15px 17px 17px; border: 1px solid #415364; border-bottom-color: #101b25; border-radius: 13px 13px 17px 17px; background: linear-gradient(145deg, #485866 0, #263541 16%, #17242e 54%, #111c25 100%); box-shadow: 0 24px 35px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.18), inset 0 -2px 4px rgba(0,0,0,.5); transition: max-width .25s ease; }
.nas-shell[data-bays="4"] { max-width: 620px; }
.nas-shell[data-bays="8"] { max-width: 760px; }
.nas-top-glint { position: absolute; inset: 3px 16px auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); }
.nas-side { position: relative; min-height: 140px; border: 1px solid #1a2833; border-radius: 8px; background: linear-gradient(155deg, #263642, #0f1921); box-shadow: inset 0 1px rgba(255,255,255,.07); }
.power-light { position: absolute; top: 14px; left: 14px; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 9px rgba(52,211,153,.8); }
.power-symbol { position: absolute; top: 10px; right: 12px; color: #7d91a0; font-size: 15px; }
.vent-grid { position: absolute; inset: 46px 13px 37px; opacity: .48; background-image: radial-gradient(circle, #789 1.2px, transparent 1.5px); background-size: 8px 8px; }
.model-mark { position: absolute; right: 8px; bottom: 10px; left: 8px; overflow: hidden; color: #617786; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 8px; letter-spacing: .09em; text-align: center; white-space: nowrap; }
.bay-grid { display: grid; grid-template-columns: repeat(var(--bay-columns, 4), minmax(42px, 1fr)); gap: 7px; align-content: stretch; }
.drive-bay { position: relative; min-width: 0; min-height: 140px; border: 1px solid #0b141b; border-radius: 7px; background: linear-gradient(155deg, #0b141b, #141f28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 7px 12px rgba(0,0,0,.32); }
.drive-bay.empty::before { content: ""; position: absolute; inset: 11px; border: 1px dashed rgba(116,139,156,.16); border-radius: 4px; }
.drive-bay.empty::after { content: attr(data-empty-label); position: absolute; inset: 0; display: grid; place-items: center; color: #3d5362; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 8px; letter-spacing: .12em; writing-mode: vertical-rl; }
.drive-tray { position: absolute; inset: 4px; display: grid; grid-template-rows: 16px 1fr 18px; width: calc(100% - 8px); margin: 0; padding: 7px; border: 1px solid #657584; border-radius: 5px; color: #edf5fa; background: linear-gradient(145deg, #4b5b67, #24333e 43%, #1a2731); box-shadow: 0 5px 10px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.16); font: inherit; cursor: pointer; animation: drive-in .28s cubic-bezier(.2,.8,.25,1) both; transition: opacity .16s ease, transform .16s ease, border-color .16s ease; }
.drive-tray:not(.is-new) { animation: none; }
.drive-tray.is-removing { animation: drive-out .2s ease-in both; }
.drive-tray:hover { border-color: #92afc3; }
.drive-bay.is-active .drive-tray { opacity: .12; transform: scale(.97); }
.tray-handle { display: block; width: 58%; height: 4px; margin: 2px auto 0; border-radius: 999px; background: #0d171e; box-shadow: inset 0 1px rgba(255,255,255,.1); }
.tray-capacity { display: grid; place-items: center; min-width: 0; font-size: clamp(.68rem, 1.5vw, 1rem); font-weight: 700; letter-spacing: -.02em; text-align: center; white-space: nowrap; }
.tray-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(190,212,225,.11); color: #8da2b1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 7px; }
.tray-led { width: 6px; height: 6px; border-radius: 50%; background: #45e09b; box-shadow: 0 0 7px rgba(69,224,155,.85); }
.drive-actions { position: absolute; z-index: 3; inset: 4px; display: flex; align-items: stretch; justify-content: stretch; border-radius: 5px; background: rgba(3,10,16,.94); animation: drive-controls-in .16s ease-out both; }
.drive-popover { width: 100%; min-width: 0; padding: 7px; border: 1px solid #50697c; border-radius: 5px; color: #e7f0f7; background: #102432; box-shadow: inset 0 1px rgba(255,255,255,.05); }
.drive-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.drive-popover strong { display: block; font-size: 13px; }
.drive-popover label { display: grid; gap: 2px; margin-top: 3px; color: #94aabd; font-size: 9px; }
.drive-popover select { width: 100%; min-width: 0; min-height: 31px; padding: 3px; border: 1px solid #587084; border-radius: 5px; color: #fff; background: #1b3344; font-size: 10px; }
.drive-close { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; padding: 0; border: 0; border-radius: 5px; color: #a9bfd0; background: transparent; font-size: 17px; cursor: pointer; }
.drive-close:hover { color: #fff; background: #294355; }
.drive-remove { width: 100%; min-height: 29px; margin-top: 4px; padding: 3px 4px; overflow: hidden; border: 1px solid #82554e; border-radius: 5px; color: #ffc9c3; background: #3b211f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.drive-remove:hover { background: #512925; }
.rack-feet { position: absolute; right: 18px; bottom: -7px; left: 18px; display: flex; justify-content: space-between; }
.rack-feet i { width: 32px; height: 7px; border-radius: 0 0 5px 5px; background: #080d12; }
@keyframes drive-in { from { opacity: 0; transform: translateY(-9px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes drive-out { to { opacity: 0; transform: translateY(-7px) scale(.95); } }
@keyframes drive-controls-in { from { opacity: 0; transform: scale(.97); } }

.drive-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; }
.drive-summary dl { display: grid; grid-template-columns: auto auto minmax(180px, 1fr); gap: 0; margin: 0; }
.drive-summary dl > div { min-width: 145px; padding: 2px 22px; border-left: 1px solid #dce3ea; }
.drive-summary dl > div:first-child { padding-left: 0; border-left: 0; }
.drive-summary dt { color: var(--muted); font-size: 12px; }
.drive-summary dd { margin: 2px 0 0; color: #203047; font-size: 1.08rem; font-weight: 700; }
.summary-actions { display: flex; gap: 8px; }

.advanced-card { margin-top: 22px; border: 1px solid #d9e1ea; border-radius: 13px; background: #fbfcfd; }
.advanced-card summary { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 17px; cursor: pointer; list-style: none; }
.advanced-card summary::-webkit-details-marker { display: none; }
.advanced-card summary span { display: grid; }
.advanced-card summary small { color: var(--muted); font-weight: 400; }
.advanced-card summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.advanced-card[open] summary svg { transform: rotate(180deg); }
.advanced-content { display: grid; gap: 18px; padding: 17px; border-top: 1px solid #dfe6ed; }
.switch-row { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.switch-row > input { position: absolute; opacity: 0; }
.switch { position: relative; width: 43px; height: 24px; flex: 0 0 43px; border-radius: 999px; background: #aeb9c5; transition: background-color .16s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .16s ease; }
.switch-row > input:checked + .switch { background: var(--brand); }
.switch-row > input:checked + .switch::after { transform: translateX(19px); }
.switch-row > input:focus-visible + .switch { outline: 3px solid rgba(14,116,144,.36); outline-offset: 3px; }
.switch-row > span:last-child { display: grid; }
.switch-row small, .reserved-field small { color: var(--muted); }
.advanced-fields { display: grid; grid-template-columns: minmax(220px, 360px) 180px; gap: 12px; }
.advanced-fields label, .reserved-field { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 600; }
#custom-overhead-label { position: relative; }
#custom-overhead-label span { position: absolute; right: 12px; bottom: 12px; color: var(--muted); }
.reserved-field { max-width: 360px; }
.reserved-field > span { display: grid; grid-template-columns: 1fr 55px; }
.reserved-field input { border-radius: 9px 0 0 9px; }
.reserved-field b { display: grid; place-items: center; border: 1px solid #c8d0dc; border-left: 0; border-radius: 0 9px 9px 0; color: var(--muted); background: #f1f4f7; font-weight: 600; }

.raid-config-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid #dce3ea; scroll-margin-top: 85px; }
.subsection-heading p { margin: 0; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.subsection-heading h2 { margin: 2px 0 0; font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -.02em; }
.subsection-heading > span { display: block; margin-top: 5px; color: var(--muted); }
.comparison-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin: 22px 0 16px; }
.display-control { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #d4dce6; border-radius: 9px; background: #f2f5f8; }
.display-control button { min-width: 52px; min-height: 36px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-weight: 650; cursor: pointer; }
.display-control button[aria-pressed="true"] { color: var(--brand-dark); background: #fff; box-shadow: 0 2px 7px rgba(15,23,42,.1); }
.equivalent-check { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; cursor: pointer; }
.equivalent-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.toolbar-actions { display: flex; gap: 7px; margin-left: auto; }
.raid-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.raid-choice { position: relative; display: flex; min-height: 72px; align-items: center; gap: 11px; padding: 12px; border: 1px solid #d5dee7; border-radius: 11px; background: #fff; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.raid-choice:has(input:checked) { border-color: #72a7cb; background: #f3f9fd; box-shadow: inset 0 0 0 1px rgba(21,94,159,.08); }
.raid-choice.is-invalid { color: #8793a2; background: #f7f8fa; }
.raid-choice > input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--brand); }
.raid-choice-text { display: grid; min-width: 0; }
.raid-choice-text strong { color: #24364a; }
.raid-choice.is-invalid strong { color: #697687; }
.raid-choice-text small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.info-tip { position: relative; display: grid; width: 28px; height: 28px; flex: 0 0 28px; margin-left: auto; place-items: center; border: 1px solid #cbd5df; border-radius: 50%; color: #5f7388; background: #fff; font-family: Georgia, serif; font-size: 12px; font-weight: 700; cursor: help; }
.info-tip span { position: absolute; z-index: 10; right: -5px; bottom: calc(100% + 8px); width: 245px; padding: 10px 12px; visibility: hidden; border-radius: 8px; color: #eaf2f7; background: #102a3d; box-shadow: 0 10px 25px rgba(15,23,42,.25); font-family: "Kanit", sans-serif; font-size: 11px; font-weight: 400; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.info-tip:hover span, .info-tip:focus span { visibility: visible; opacity: 1; transform: none; }
.smart-warning { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid #edcf91; border-radius: 11px; color: #734c0d; background: #fffaeb; }
.smart-warning svg { width: 21px; height: 21px; flex: 0 0 21px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.smart-warning strong { display: block; }
.smart-warning p { margin: 2px 0 0; color: #8a641e; font-size: 13px; }

.empty-results { display: grid; min-height: 275px; place-items: center; align-content: center; margin-top: 20px; padding: 30px; border: 1px dashed #ccd6e1; border-radius: 14px; color: #66778b; text-align: center; background: #fafbfd; }
.empty-results svg { width: 58px; height: 58px; fill: none; stroke: #91a2b3; stroke-width: 2; }
.empty-results h3 { margin: 13px 0 2px; color: #314256; }
.empty-results p { max-width: 500px; margin: 0; }
.raid-results { display: grid; gap: 13px; margin-top: 20px; }
.raid-result { overflow: hidden; border: 1px solid #d7e0e8; border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(15,23,42,.045); animation: result-in .2s ease-out both; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 10px; }
.result-title { display: flex; align-items: center; gap: 10px; }
.result-title h3 { margin: 0; font-size: 1.22rem; }
.result-title span { padding: 3px 7px; border-radius: 999px; color: #146c60; background: #eaf9f5; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.result-raw { color: var(--muted); font-size: 12px; text-align: right; }
.result-raw strong { display: block; color: #35465a; font-size: 14px; }
.result-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0 20px 16px; }
.result-metrics.has-system { grid-template-columns: repeat(5, 1fr); }
.metric { min-width: 0; padding: 11px 13px; border-left: 1px solid #e3e8ee; }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric span { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 2px; overflow: hidden; color: #24364a; font-size: clamp(.9rem, 2vw, 1.17rem); text-overflow: ellipsis; white-space: nowrap; }
.metric small { display: block; min-height: 1.3em; color: #8793a1; font-size: 10px; }
.capacity-visual { padding: 0 20px 18px; }
.capacity-bar { display: flex; height: 18px; overflow: hidden; border-radius: 999px; background: #e5eaf0; box-shadow: inset 0 1px 3px rgba(15,23,42,.14); }
.capacity-segment { position: relative; min-width: 0; height: 100%; transition: width .28s cubic-bezier(.2,.75,.25,1); }
.capacity-segment:not(:last-child)::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.55); }
.segment-usable { background: linear-gradient(90deg, #109f83, #35c7a1); }
.segment-protection { background: linear-gradient(90deg, #176eae, #3e92cf); }
.segment-unused { background: #aeb9c5; }
.segment-system { background: #d99a24; }
.bar-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bar-legend i { width: 8px; height: 8px; border-radius: 2px; }
.bar-legend .usable { background: #24b692; }.bar-legend .protection { background: #2f84c3; }.bar-legend .unused { background: #aeb9c5; }.bar-legend .system { background: #d99a24; }
.result-note { margin: 0; padding: 11px 20px; border-top: 1px solid #e4e9ef; color: #5f6f81; background: #f9fafb; font-size: 12px; }
@keyframes result-in { from { opacity: 0; transform: translateY(5px); } }
.backup-notice { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 13px 15px; border-left: 4px solid #dc6b32; border-radius: 4px 9px 9px 4px; color: #743d1e; background: #fff6ed; }
.backup-notice span { color: #8c6047; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 18px; padding: 18px; border: 1px solid #cfe0eb; border-radius: 12px; background: #f5fafe; }
.share-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.reference-section, .faq-section { padding-top: 50px; }
.compact-heading { margin-bottom: 22px; }
.compact-heading h2 { margin: 4px 0 0; font-size: clamp(1.6rem, 3.5vw, 2.35rem); }
.compact-heading > p:last-child { max-width: 720px; margin: 7px 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.93); box-shadow: 0 12px 32px rgba(15,23,42,.05); }
table { width: 100%; min-width: 820px; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 15px; border-bottom: 1px solid #e3e8ee; }
thead th { color: #435467; background: #f3f6f9; font-size: 12px; letter-spacing: .025em; text-transform: uppercase; }
tbody th { color: var(--brand); }
tbody td { color: #5b6979; font-size: 13px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.faq-section { padding-bottom: 70px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faq-grid details { border: 1px solid #d8e0e9; border-radius: 11px; background: rgba(255,255,255,.9); }
.faq-grid summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; color: #26384c; font-weight: 650; cursor: pointer; list-style: none; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid p { margin: 0; padding: 0 16px 15px; color: var(--muted); font-size: 14px; }
.raid-footer { padding-inline: max(16px, calc((100% - 1128px) / 2)); }
.raid-footer p { max-width: 980px; margin: 0 auto 8px; font-size: 12px; }
.raid-footer > span { display: block; margin-top: 17px; }
.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: min(380px, calc(100vw - 36px)); padding: 12px 16px; border-radius: 10px; color: #fff; background: #17324d; box-shadow: 0 12px 30px rgba(15,23,42,.22); animation: toast-in .2s ease-out; }
.toast.is-error { background: #7a271a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

:focus-visible { outline: 3px solid rgba(14,116,144,.42); outline-offset: 3px; }
@media (max-width: 900px) {
  .raid-title-row { display: block; }
  .local-badge { width: max-content; max-width: 100%; margin-top: 20px; }
  .raid-selector { grid-template-columns: 1fr 1fr; }
  .nas-shell { grid-template-columns: 66px minmax(0, 1fr); padding-inline: 11px; }
  .drive-summary { align-items: flex-end; }
  .drive-summary dl { grid-template-columns: 1fr 1fr; }
  .drive-summary dl > div { min-width: 0; }
  .drive-summary dl > div:nth-child(3) { grid-column: 1 / -1; margin-top: 10px; padding: 10px 0 0; border-top: 1px solid #dce3ea; border-left: 0; }
}
@media (max-width: 660px) {
  .raid-hero { padding-top: 28px; }
  .drive-stage { padding: 17px; border-radius: 15px; }
  .capacity-grid { grid-template-columns: repeat(3, 1fr); }
  .custom-drive { display: grid; gap: 12px; padding: 14px; }
  .custom-control { grid-template-columns: 1fr 72px; }
  .custom-control .button { grid-column: 1 / -1; }
  .presets { display: grid; }
  .nas-scene { margin-inline: -4px; padding-inline: 9px; }
  .nas-label-row { display: grid; gap: 8px; }
  .nas-shell { display: block; padding: 10px; }
  .nas-side { display: none; }
  .bay-grid { gap: 4px; }
  .drive-bay { min-height: 108px; }
  .drive-tray { grid-template-rows: 12px 1fr 15px; padding: 5px; }
  .tray-capacity { font-size: clamp(.58rem, 2.6vw, .85rem); white-space: normal; }
  .drive-popover { padding: 5px; }
  .drive-popover strong { font-size: 10px; }
  .drive-popover label { font-size: 8px; }
  .drive-popover select { min-height: 27px; font-size: 9px; }
  .drive-remove { min-height: 25px; font-size: 8px; }
  .drive-summary { display: grid; }
  .drive-summary dl { width: 100%; }
  .drive-summary dl > div { padding-inline: 12px; }
  .summary-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .raid-selector { grid-template-columns: 1fr; }
  .comparison-toolbar { align-items: flex-start; }
  .toolbar-actions { width: 100%; margin-left: 0; }
  .toolbar-actions button { flex: 1; }
  .result-head { padding: 15px 15px 9px; }
  .result-metrics { grid-template-columns: 1fr 1fr; padding: 0 15px 13px; }
  .result-metrics.has-system { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid #e3e8ee; }
  .metric:nth-child(4) { border-top: 1px solid #e3e8ee; }
  .capacity-visual { padding-inline: 15px; }
  .result-note { padding-inline: 15px; }
  .share-row { display: grid; }
  .share-row .button { width: 100%; }
  .faq-grid { grid-template-columns: 1fr; }
  .advanced-fields { grid-template-columns: 1fr; }
  .info-tip span { right: -10px; width: min(245px, calc(100vw - 58px)); }
}
@media (max-width: 390px) {
  .step-number { width: 41px; height: 41px; flex-basis: 41px; }
  .drive-limit { padding-inline: 7px; font-size: 11px; }
  .capacity-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .capacity-button { min-height: 46px; font-size: 13px; }
  .drive-summary dl { grid-template-columns: 1fr; }
  .drive-summary dl > div { padding: 8px 0; border-top: 1px solid #dce3ea; border-left: 0; }
  .drive-summary dl > div:first-child { border-top: 0; }
  .drive-summary dl > div:nth-child(3) { grid-column: auto; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
