.bo-cockpit-page .global-footer { margin-top:0; }
.bo-cockpit-page .page { position:relative; isolation:isolate; overflow:clip; max-width:none; min-height:calc(100svh - var(--header-height)); padding:52px 20px 70px; background:#06182d; }
.bo-cockpit-page .page::before { content:""; position:absolute; inset:-2px; z-index:-2; background:url('../images/tools/box-office-cockpit.webp') center 47% / cover no-repeat; filter:blur(1.2px) brightness(.85) saturate(.96); }
.bo-cockpit-page .page::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(1,10,29,.19),rgba(3,12,29,.07) 35%,rgba(0,6,18,.33)); pointer-events:none; }
:root[data-theme="dark"] .bo-cockpit-page .page::before { filter:blur(1.8px) brightness(.40) saturate(.88); }
:root[data-theme="dark"] .bo-cockpit-page .page::after { background:linear-gradient(180deg,rgba(0,5,17,.40),rgba(0,4,13,.25) 45%,rgba(0,3,12,.5)); }
.bo-calculator { --surface:#0e314c; --surface-alt:#0a2a44; --surface-hover:#225779; --text:#f2f8ff; --text-muted:#b5d5e5; --text-link:#65d6ff; --border:#62bfe7; max-width:810px; margin:0 auto; font-family:"Montserrat",sans-serif; font-size:14px; color:var(--text); color-scheme:dark; }
.bo-calculator > header { text-align:center; text-shadow:0 2px 16px #000b; margin-bottom:26px; }
.bo-calculator h1 { margin:0 0 10px; font-size:clamp(26px,3vw,38px); line-height:1.2; font-weight:700; letter-spacing:-1px; }
.bo-calculator header p { color:#e0edf6; font-size:13px; font-weight:500; line-height:1.65; margin:0; }
.bo-terminal { position:relative; padding:15px; border-radius:26px; background:linear-gradient(132deg,#8e9ba4 0%,#2b3440 11%,#69737c 22%,#141d29 35%,#3c4857 55%,#b08b64 74%,#1b2431 89%,#788895 100%); box-shadow:0 0 0 2px #101722,0 0 0 4px #8c715c,0 18px 60px #000c,inset 0 2px 3px #d2d5d5,inset 0 -3px 6px #04080d; }
.bo-terminal::before { content:""; position:absolute; inset:7px; border:2px solid #182331; border-radius:20px; pointer-events:none; box-shadow:inset 0 1px 2px #e2a36c80; }
.bo-screw { position:absolute; width:9px; height:9px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#a5b3bb,#3b4653 65%,#0a1019); border:1px solid #0c131c; z-index:3; box-shadow:0 1px 2px #000; pointer-events:none; }
.bo-screw::after { content:""; position:absolute; top:3px; left:1px; width:5px; height:1px; background:#17212b; transform:rotate(-35deg); }
.bo-screw-tl { top:5px; left:12px; } .bo-screw-tr { top:5px; right:12px; } .bo-screw-bl { bottom:5px; left:12px; } .bo-screw-br { bottom:5px; right:12px; }
.bo-panel { position:relative; border-radius:15px; padding:28px 32px 24px; background:radial-gradient(ellipse at 52% 16%,#123956 0%,#07243d 48%,#031a31 100%); border:2px solid #06101c; box-shadow:inset 0 0 0 1px #5085a780,inset 0 0 34px #0008,0 0 0 2px #151e29; }
.bo-panel::after { content:""; position:absolute; inset:2px; border-radius:12px; pointer-events:none; background:linear-gradient(135deg,#fff1,transparent 27%,transparent 70%,#28b9f509); }
.bo-panel label { display:block; margin-bottom:9px; font-size:13px; font-weight:700; line-height:1.5; }
.bo-panel :is(input,select) { width:100%; min-width:0; height:48px; box-sizing:border-box; border:1px solid var(--border); border-radius:8px; padding:0 15px; background:linear-gradient(180deg,#19415d,#0e314c); color:#f5fbff; font:inherit; font-size:16px; box-shadow:inset 0 1px 3px #0005; }
.bo-panel input::placeholder { color:#c2d2df; }
.bo-panel :is(button,summary) { font:inherit; cursor:pointer; color:var(--text); }
.bo-panel button { border:1px solid #5aaad3; border-radius:7px; background:#153c58; min-height:44px; padding:10px 17px; }
.bo-panel button:hover { background:#225779; }
.bo-panel :is(input,select,button,summary):focus-visible { outline:2px solid #a7ebff; outline-offset:3px; }
.bo-panel input:focus { border-color:#a7ebff; box-shadow:0 0 0 3px #40aee43d; }
.bo-hint { margin:8px 0 0; color:var(--text-muted); font-size:11px; }
.bo-years { display:grid; grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr); gap:12px; align-items:end; margin-top:21px; }
.bo-panel .bo-swap { display:flex; align-items:center; justify-content:center; padding:0; width:44px; height:48px; border-color:#3e718d; background:#15415f; }
.bo-panel .bo-swap:hover { background:#225779; }
.bo-result { border-top:1px solid #66b5d38a; margin-top:25px; padding-top:23px; }
.bo-result > p { margin:0; color:#a5d5e8; font-size:12px; line-height:1.5; }
#bo-amount, #bo-result, #bo-tickets, #bo-comparison, #bo-from, #bo-to, #bo-result-label, .bo-year-options { font-variant-numeric:tabular-nums; }
#bo-result { display:block; font-size:44px; font-weight:800; line-height:1.3; letter-spacing:-1.6px; margin-top:8px; color:#e8fbff; text-shadow:0 0 12px #23a8ff9c; overflow-wrap:anywhere; }
.bo-details { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; margin:19px 0 0; }
.bo-details div { min-width:0; }
.bo-details dt { font-size:12px; color:#a5d5e8; }
.bo-details dd { margin:8px 0 0; font-size:13px; font-weight:700; line-height:1.6; overflow-wrap:anywhere; }
.bo-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:24px; }
.bo-panel .bo-methodology-trigger { min-width:0; min-height:44px; padding:6px 0; border:0; background:none; color:#65d6ff; font-weight:600; font-size:12px; text-align:left; }
.bo-panel .bo-methodology-trigger:hover { background:none; text-decoration:underline; }
.bo-methodology { position:fixed; inset:auto; bottom:12px; left:12px; box-sizing:border-box; width:min(370px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; overscroll-behavior:contain; margin:0; padding:17px 20px; background:#eaf6ff; color:#0d2b43; border:1px solid #89d2f2; border-radius:11px; box-shadow:0 15px 35px #000a; font-family:"Montserrat",sans-serif; font-size:12px; line-height:1.65; color-scheme:light; }
.bo-methodology h2 { font-size:14px; line-height:1.5; margin:0 26px 12px 0; }
.bo-methodology p { margin:0 0 12px; } .bo-methodology p:last-child { margin-bottom:0; }
.bo-panel .bo-methodology-close { float:right; min-height:32px; width:32px; padding:0; margin:-8px -10px 0 0; font-size:24px; line-height:1; border:0; background:none; color:#24465e; }
.bo-panel .bo-methodology-close:hover { background:#d2eafb; }
.bo-notice { font-size:12px; line-height:1.6; color:#ffce9d; }
.bo-movie-search { position:relative; margin-bottom:21px; }
#bo-search-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; white-space:nowrap; }
#bo-search-status:empty { display:none; }
#bo-search-status.bo-search-feedback { top:calc(100% + 6px); inset-inline:0; z-index:20; width:auto; height:auto; clip-path:none; overflow:visible; white-space:normal; padding:12px; border:1px solid var(--border); border-radius:8px; background:#0b304d; box-shadow:0 8px 24px #0009; }
#bo-movie-results { position:absolute; top:calc(100% + 6px); inset-inline:0; z-index:10; max-height:min(260px,45vh); overflow-y:auto; overscroll-behavior:contain; margin:0; padding:4px; list-style:none; border:1px solid #55b9e8; border-radius:9px; background:#0b304d; box-shadow:0 14px 30px #000a; }
#bo-movie-results[hidden] { display:none; }
#bo-movie-results li { display:flex; justify-content:space-between; gap:12px; padding:12px; border-radius:5px; cursor:pointer; font-size:13px; line-height:1.5; }
#bo-movie-results li > span:first-child { min-width:0; overflow-wrap:anywhere; }
#bo-movie-results li > span:last-child { flex:0 0 4ch; text-align:right; font-variant-numeric:tabular-nums; color:#c0d2dc; }
#bo-movie-results li:hover, #bo-movie-results [aria-selected=true] { background:#1c5271; outline:1px solid #55b9e8; }
.bo-year-picker { position:relative; min-width:0; }
.bo-year-control { position:relative; }
.bo-year-control input { padding-right:30px; }
.bo-panel .bo-year-toggle { display:flex; align-items:center; justify-content:center; position:absolute; inset-inline-end:1px; top:1px; width:28px; height:46px; min-height:0; padding:0; border:0; border-radius:0 7px 7px 0; background:transparent; }
.bo-panel .bo-year-toggle:hover { background:#225779; }
.bo-year-options { position:absolute; top:calc(100% + 6px); inset-inline:0; z-index:10; max-height:216px; overflow-y:auto; overscroll-behavior:contain; padding:4px; margin:0; list-style:none; border:1px solid #64b8e1; border-radius:9px; background:#0a2a44; box-shadow:0 10px 25px #0009; }
.bo-year-options[hidden] { display:none; }
.bo-year-options li { padding:8px; font-size:13px; cursor:pointer; border-radius:4px; }
.bo-year-options li:hover, .bo-year-options [aria-selected=true] { background:#246080; outline:1px solid #64b8e1; }
:root[data-theme="dark"] .bo-terminal { background:linear-gradient(132deg,#687780 0%,#252e39 11%,#505c66 22%,#111a25 35%,#303c49 55%,#806b54 74%,#17202c 89%,#566875 100%); box-shadow:0 0 0 2px #101722,0 0 0 4px #625346,0 14px 44px #0009,inset 0 2px 3px #89969d,inset 0 -3px 6px #04080d; }
:root[data-theme="dark"] .bo-terminal::before { box-shadow:inset 0 1px 2px #b28b6559; }
:root[data-theme="dark"] .bo-panel :is(input,select) { background:#20242b; border-color:#559fbd; }
:root[data-theme="dark"] .bo-panel input:focus { border-color:#a7ebff; }
:root[data-theme="dark"] .bo-panel .bo-swap { background:#252d36; border-color:#5590aa; }
:root[data-theme="dark"] .bo-panel :is(.bo-swap,.bo-year-toggle):hover { background:#324351; }
@media(max-width:700px) {
 .bo-cockpit-page .page { padding:36px 12px 45px; }
 .bo-cockpit-page .page::before { background-position:47% center; }
 .bo-calculator h1 { font-size:27px; }
 .bo-terminal { padding:10px; border-radius:19px; }
 .bo-terminal::before { inset:5px; border-radius:15px; border-width:1px; }
 .bo-panel { padding:22px 17px; border-radius:10px; }
 .bo-panel::after { border-radius:8px; }
 .bo-years { gap:7px; }
 .bo-year-control input { padding-left:9px; padding-right:26px; }
 .bo-panel .bo-year-toggle { width:24px; }
 #bo-result { font-size:37px; }
 .bo-details { gap:10px; }
 .bo-details dd { font-size:11px; }
 .bo-screw-tl,.bo-screw-bl { left:8px; } .bo-screw-tr,.bo-screw-br { right:8px; }
}
@media(max-width:360px) { .bo-panel { padding:19px 12px; } .bo-details { grid-template-columns:minmax(0,1fr); } .bo-movie-search { margin-bottom:17px; } }

/* Historical source notice stays distinct from the calculator’s general warnings. */
#bo-historical-note { color:#ff9a9a; margin:8px 0 0; }
.bo-details dd.bo-comparison-note { margin-top:6px; font-size:11px; font-weight:400; line-height:1.6; color:#afd9e9; }
