.production-shell { display:grid; grid-template-columns:230px 1fr; min-height:100vh; background:var(--paper); }
.production-nav { padding:32px 22px; background:var(--sidebar); color:#eee4d7; }
.production-nav a { display:block; padding:10px 0; color:inherit; text-decoration:none; }
.production-nav p { margin-top:26px; color:#bf9d74; font-size:12px; }
.production-main { padding:28px 4vw 70px; min-width:0; }
.production-main header { display:flex; align-items:center; gap:16px; margin-bottom:38px; }
.production-main header div { flex:1; }.production-main a { color:var(--oxide-dark); }
.production-main h1 { font:40px var(--serif); }.production-main h2 { font:25px var(--serif); }
.production-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:18px; }
.production-card { padding:20px; border:1px solid var(--line); background:var(--paper-light); overflow:hidden; }
.production-card img { width:100%; height:190px; object-fit:contain; background:#eae4d9; }
.production-card h2 { font-size:21px; overflow-wrap:anywhere; }.production-card p { overflow-wrap:anywhere; }
.production-preview { width:100%; max-height:520px; object-fit:contain; background:#eae4d9; }
.production-main pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; background:#ece7de; }
.production-main select,.production-main input,.production-main textarea { padding:11px; width:100%; margin:8px 0 16px; }
.production-main details { margin:20px 0; }.production-main label { display:block; }
.production-main button { margin-right:12px; }.production-muted { color:var(--muted); }
.film-dashboard { border-bottom:2px solid var(--line); padding-bottom:32px; margin-bottom:32px; }
.film-dashboard strong { font:36px var(--serif); }
.film-actions { display:flex; gap:10px; flex-wrap:wrap; }
.production-card video { width:100%; max-height:260px; background:#171b19; }
.production-main input[type=checkbox] { width:auto; margin-right:8px; }
.production-main select[multiple] { min-height:140px; }
#question-answer { max-height:450px; overflow:auto; }
@media(max-width:760px) { .production-shell { grid-template-columns:1fr; }.production-nav { display:flex; flex-wrap:wrap; gap:12px; padding:14px; }
.production-nav h1,.production-nav p { display:none; }.production-nav a { font-size:12px; }.production-main { padding:22px 18px; } }
.production-nav nav a[aria-current] { border-left:3px solid #a44429; background:#fff5e7; color:#244e47; font-weight:bold; }
.production-nav details { margin-top:2rem; padding-top:1rem; border-top:1px solid #d9d1bf; }
.production-nav details a { font-size:.9rem; }
.production-main header { position:sticky; top:0; z-index:5; background:#f6f2e8; padding:.6rem 0; }
#breadcrumb { display:flex; flex-wrap:wrap; gap:.4rem; }
#global-search { display:flex; gap:.6rem; max-width:800px; margin:1rem 0; }
#global-search input { flex:1; min-width:120px; }
#global-search-results:empty { display:none; }
#global-search-results { max-height:280px; overflow:auto; border-bottom:1px solid #c7bcaa; }
#project-navigation,.shot-tabs { display:flex; flex-wrap:wrap; gap:.5rem 1.2rem; padding:.8rem 0; border-bottom:1px solid #c7bcaa; }
.shot-tabs { position:sticky; top:88px; z-index:4; background:#f6f2e8; margin-bottom:1.4rem; }
.shot-tabs a { padding:.5rem .8rem; }
.shot-tabs a[aria-current] { color:#fff; background:#244e47; text-decoration:none; }
.context-return { margin-left:auto; font-size:.85rem; }
[data-shot-panel][hidden], [hidden] { display:none !important; }
.shot-summary { border-left:4px solid #a44429; padding:1rem 1.4rem; background:#fff9ed; }
.shot-summary > a { display:inline-block; background:#244e47; color:white; padding:.7rem 1.1rem; }
.recent-visits { border-top:1px solid #c7bcaa; margin-top:1.5rem; }
.production-main pre { white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width:1280px) { .production-shell { grid-template-columns:180px minmax(0,1fr); } .production-main { padding:1.5rem 2vw; } .shot-tabs { top:105px; } }
.production-main { padding:18px 3vw 48px; }
.production-main header { margin-bottom:16px; gap:10px; }
.production-main header > div { min-width:180px; }
.production-main h1 { font-size:34px; margin:16px 0 8px; }
.production-main h2 { font-size:22px; }
#global-search { width:320px; max-width:32vw; margin:0; align-items:center; }
#global-search input { margin:0; padding:8px; }
#global-search button { margin:0; padding:8px; }
.environment-badge { font-size:11px; color:var(--muted); white-space:nowrap; }
.nav-group { display:flex; align-items:center; gap:15px; font-size:13px; color:var(--muted); }
.nav-group + .nav-group { margin-left:24px; }
.nav-group a { font-size:14px; }
.home-project { display:flex; justify-content:space-between; align-items:center; margin:8px 0 20px; }
.home-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.home-metrics .production-card { padding:14px 18px; }
.home-metrics h3 { margin:0 0 8px; font-size:15px; }
.home-metrics strong { font:32px var(--serif); }
.home-metrics p { font-size:12px; color:var(--muted); margin-bottom:0; }
.home-brief { margin:20px 0; border-left:4px solid var(--oxide-dark); padding:4px 20px; background:var(--paper-light); }
.home-brief p { margin:8px 0; }
.overview-columns { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.overview-columns > section { padding:12px 18px; border:1px solid var(--line); background:var(--paper-light); }
.overview-columns p { margin:9px 0; }
.shot-status-bar { display:flex; flex-wrap:wrap; gap:12px 22px; padding:14px 18px; background:#e8eee8; border-left:3px solid #244e47; font-size:13px; }
.shot-latest { display:flex; align-items:center; justify-content:space-between; padding:10px 18px; margin-bottom:18px; background:var(--paper-light); border:1px solid var(--line); }
.shot-latest h2 { margin:8px 0; }.shot-latest p { margin:8px 0; }
.shot-tabs { top:65px; margin-bottom:16px; }
.shot-next { margin:0 0 18px; }
.button.primary { display:inline-block; text-decoration:none; background:#244e47; color:#fff; padding:10px 16px; white-space:nowrap; }
.shot-list { grid-template-columns:repeat(4,minmax(0,1fr)); }
.shot-list .production-card { padding:22px; }
.shot-list h2 { font-size:21px; line-height:1.45; margin:0 0 16px; overflow-wrap:normal; }
.shot-list p { font-size:14px; line-height:1.6; margin:9px 0; }
.shot-list .production-muted { font-size:12px; margin-top:16px; }
.asset-readiness { display:flex; flex-wrap:wrap; gap:4px 18px; margin-bottom:10px; }
.asset-readiness p { font-size:13px; }
.key-asset-links { font-size:14px; line-height:1.45; }
@media(max-width:1400px) { .shot-list { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1000px) { .shot-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .shot-list { grid-template-columns:minmax(0,1fr); } }
@media(max-width:1100px) { .production-main header { flex-wrap:wrap; } #global-search { max-width:45vw; }.home-metrics { gap:8px; }.nav-group + .nav-group { margin-left:0; }.shot-tabs { position:static; } }
@media(max-width:760px) { .home-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.overview-columns { grid-template-columns:1fr; } #global-search { width:100%;max-width:none; }.shot-latest { flex-wrap:wrap; }.production-main h1 { font-size:27px; } }
/* Keep the phone layout after the tablet rule; do not squeeze the Shot into a sidebar column. */
@media(max-width:760px) {
  .production-shell { grid-template-columns:minmax(0,1fr); }
  .production-nav { display:block; padding:12px 16px; min-width:0; }
  .production-nav h1 { display:block; margin:0 0 8px; font:24px var(--serif); }
  .production-nav nav { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; }
  .production-nav nav a { flex:0 0 auto; padding:8px 10px; white-space:nowrap; }
  .production-nav details { margin:8px 0; padding-top:8px; }
  .production-nav > a { padding:6px 0; }
  .production-main { padding:18px 16px 40px; }
  .production-main header { position:static; gap:8px; }
  .production-main header > div { flex-basis:100%; min-width:0; }
  #global-search { flex-basis:100%; width:100%; max-width:none; }
  #global-search input { min-width:0; }
  #project-navigation { gap:8px; }
  .nav-group { flex-wrap:wrap; gap:8px 14px; }
  .production-grid { grid-template-columns:minmax(0,1fr); }
  .production-main button,.production-main .button { max-width:100%; white-space:normal; }
  .production-main h1,.production-main code { overflow-wrap:anywhere; }
}
