/* Unified production workbench. Visual language follows the reviewed prototype. */
.shell { grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { padding: 30px 18px; background: #ffffff32; max-height: 100vh; position: sticky; top: 0; overflow: auto; }
.workspace { margin: 30px 0 20px; border-radius: 18px; box-shadow: inset 1px 1px 0 #fff; }
.nav-group { margin: 0 0 15px; }
.group { margin: 0 10px 6px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: 1.2px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; font-size: .92rem; }
.nav-status { font-size: .68rem; line-height: 1.1; color: #8799a9; border: 1px solid #d5e0ea; border-radius: 999px; padding: 4px 6px; background: #e4edf5; }
.nav-status.live { color: #246c5a; background: #dceee8; border-color: #c8e2d9; }
.sidebar footer { padding-top: 18px; }
.sidebar footer a { color: inherit; }
.overview-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 22px; }
.overview-primary > p, .overview-primary > .overview-actions { margin-left: 24px; margin-right: 24px; }
.overview-primary > p { max-width: 760px; }
.overview-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.status-list { display: grid; gap: 13px; padding: 0 24px 24px; }
.status-list > div { display: grid; grid-template-columns: 12px 110px 1fr; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #ffffff55; }
.status-list small { line-height: 1.35; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #8fa1b2; }
.status-dot.live { background: #35a67d; }
.status-dot.partial { background: #d9953f; }
.status-dot.planned { background: #8799aa; }
.planned-page { padding: 34px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; }
.planned-mark { display: grid; place-items: center; min-height: 105px; border-radius: 22px; background: linear-gradient(145deg, #f3e6cf, #e8d7bb); color: #7b581e; font-weight: 750; box-shadow: var(--inset); }
.planned-page h2 { font-size: 27px; margin: 8px 0; }
.integration-note { margin: 20px 0; padding: 15px 18px; border-left: 4px solid #be7399; border-radius: 0 14px 14px 0; background: #f4e8ef; color: #75405c; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
.status-card { padding-bottom: 22px; }
.status-card .panel-head { padding-bottom: 8px; }
.status-card p { min-height: 78px; margin: 0; padding: 0 24px; color: var(--muted); font-size: .9rem; }
.status-card > button { margin: 18px 24px 0; }
.revenue-stats { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0 24px; }
.revenue-stats .stat { box-shadow: inset 1px 1px 0 #fff; background: #ffffff45; border-radius: 18px; }
.revenue-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 22px; border-top: 1px solid var(--line); }
.provider-list { display: grid; gap: 10px; padding: 0 24px 24px; }
.provider-list > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px; border-radius: 14px; background: #ffffff55; }
.provider-list > div strong { grid-column: 1 / -1; font-size: 1.2rem; }
.revenue-boundary { margin: 24px; }
.revenue-config { margin: 0 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff52; }
.revenue-config .panel-head { padding-bottom: 12px; }
.revenue-config form { padding: 0 20px 20px; }
.config-fields { display: grid; grid-template-columns: repeat(5,minmax(130px,1fr)); gap: 12px; align-items: end; }
.config-remainder { display: grid; gap: 8px; padding: 12px; border-radius: 13px; background: #ffffff77; }
.config-remainder span { color: var(--muted); font-size: .8rem; }
.config-remainder strong { font-size: 1.15rem; }
@media (max-width: 1100px) {
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revenue-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .revenue-grid { grid-template-columns: 1fr; }
  .config-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) { .shell { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .sidebar { position: static; max-height: none; overflow: visible; }
  .sidebar nav { display: flex; overflow: auto; gap: 6px; padding-bottom: 5px; }
  .nav-group { display: contents; }
  .group, .nav-status { display: none; }
  .nav { flex: 0 0 auto; }
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planned-page { grid-template-columns: 1fr; }
  .planned-mark { min-height: 70px; }
  .status-card p { min-height: 0; }
  .config-fields { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .overview-stats { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .revenue-stats { grid-template-columns: 1fr; } }
