.app-shell { min-height: 100vh; display: flex; background: var(--paper); }
.sidebar { width: 244px; flex: 0 0 244px; min-height: 100vh; background: var(--sidebar); color: #f6f0e4; padding: 24px 14px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-logo { display: flex; align-items: center; gap: 11px; padding: 2px 10px 25px; }
.logo-wordmark { font-family: Manrope, sans-serif; font-size: 14px; line-height: 1.12; font-weight: 750; }
.logo-wordmark small { display: block; font-size: 9px; color: #aeb8a9; letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
.sidebar-caption { padding: 0 11px 11px; color: #8e9a8f; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.nav-stack { display: grid; gap: 4px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #acb4aa; display: flex; align-items: center; gap: 11px; text-align: left; padding: 11px; border-radius: 9px; font-size: 13px; text-decoration: none; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #f8f0df; }
.nav-item.active { background: #3a463c; color: #fff8e8; box-shadow: inset 3px 0 0 var(--red); }
.nav-icon { width: 16px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { border-top: 1px solid rgba(255,255,255,.08); padding: 15px 11px 0; color: #99a497; font-size: 11px; line-height: 1.65; }
.sidebar-note strong { color: #f7eee0; }
.main-area { min-width: 0; flex: 1; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(250,246,236,.88); position: sticky; top: 0; z-index: 20; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 12px; }
.breadcrumb-marker { width: 22px; height: 9px; background: repeating-linear-gradient(90deg, #b8583d 0 5px, #f2dcc1 5px 10px); transform: skewX(-18deg); }
.breadcrumb strong { color: var(--ink); }
.slash { color: #a7a091; }
.top-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 8px; cursor: pointer; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff9eb; background: var(--rice); font: 800 11px Manrope, sans-serif; text-decoration: none; }
.content-wrap { max-width: 1540px; margin: 0 auto; padding: 38px 42px 54px; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; margin-bottom: 26px; }
.page-title { font-family: Manrope, sans-serif; font-weight: 760; font-size: clamp(27px, 3vw, 43px); letter-spacing: -.055em; line-height: 1.05; margin: 8px 0 9px; }
.page-subtitle { color: var(--ink-soft); font-size: 14px; max-width: 650px; margin: 0; }
.hero-strip { aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; position: relative; background: var(--ink); color: #fbf5e9; margin-bottom: 24px; }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; opacity: .76; }
.hero-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,33,29,.92), rgba(29,33,29,.05) 78%); }
.hero-tape { position: absolute; z-index: 2; right: 24px; top: 18px; padding: 5px 9px; color: #665e52; background: rgba(248,235,205,.82); font: 800 9px Manrope, sans-serif; letter-spacing: .12em; transform: rotate(2deg); }
.hero-content { position: absolute; z-index: 1; inset: 0; padding: 30px 34px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #e8b08a; font-family: Manrope, sans-serif; font-weight: 800; }
.hero-title { font-family: Manrope, sans-serif; font-size: 25px; line-height: 1.06; max-width: 460px; margin: 7px 0; }
.hero-copy { font-size: 12px; color: #ded8c9; max-width: 430px; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 17px; position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--rice); }
.stat-card:nth-child(2)::before { background: var(--mustard); }
.stat-card:nth-child(3)::before { background: var(--red); }
.stat-label { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.stat-value { font-family: Manrope, sans-serif; font-size: 30px; font-weight: 800; margin: 8px 0 2px; }
.stat-note { color: #8e877b; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .8fr); gap: 18px; }
.column-stack { display: grid; gap: 18px; }
.paper-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.panel-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; }
.panel-title { font-family: Manrope, sans-serif; font-size: 15px; margin: 0; }
.panel-desc { color: #8b8275; font-size: 11px; margin: 5px 0 0; }
.text-btn { color: var(--rice); font-size: 11px; font-weight: 800; text-decoration: none; }
.overall-track { padding: 17px 20px 20px; }
.track-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; }
.track-meta strong { color: var(--rice); font-family: Manrope, sans-serif; font-size: 19px; }
.progress-track { height: 8px; background: #e6dfd2; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--rice); }
.rice-rail { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 4px; margin-top: 17px; }
.rail-stop { display: grid; gap: 5px; justify-items: center; color: #9c9284; font-size: 9px; text-decoration: none; }
.rail-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d8cebd; background: #f5efe3; }
.rail-stop.done .rail-dot { background: var(--rice); border-color: var(--rice); }
.rail-stop.active .rail-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px #f0d4c7; }
.rail-stop.active { color: var(--red); font-weight: 800; }
.episode-list { padding: 5px 0 7px; }
.episode-row { display: grid; grid-template-columns: 52px minmax(0,1fr) 150px 92px 18px; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid rgba(67,59,47,.08); text-decoration: none; border-left: 3px solid transparent; }
.episode-row:hover, .episode-row.selected { background: #f1ece1; border-left-color: var(--red); }
.episode-num { font-family: Manrope, sans-serif; color: #a3998b; font-size: 11px; font-weight: 800; }
.episode-title { display: block; font-size: 12px; font-weight: 800; }
.episode-sub { display: block; color: #928778; font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-progress { height: 5px; background: #e4dbcb; border-radius: 99px; overflow: hidden; }
.mini-progress > i { display: block; height: 100%; background: var(--rice); }
.status-pill { font-size: 10px; border-radius: 999px; padding: 5px 7px; font-weight: 800; text-align: center; }
.status-pill.done { color: #406249; background: #dce6d8; }
.status-pill.active { color: #98503a; background: #f0d4c7; }
.status-pill.ready { color: #7e652d; background: #eee0b9; }
.status-pill.queued { color: #786f65; background: #e8e1d7; }
.activity-list { padding: 6px 20px 14px; }
.activity-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(67,59,47,.08); }
.activity-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--rice); box-shadow: 0 0 0 4px #dce6d8; }
.activity-dot.red { background: var(--red); box-shadow: 0 0 0 4px #f0d4c7; }
.activity-dot.mustard { background: var(--mustard); box-shadow: 0 0 0 4px #eee0b9; }
.activity-text { font-size: 11px; }
.activity-time { color: #a1988c; font-size: 10px; margin-top: 3px; }
.asset-preview { display: block; padding: 14px 20px 18px; text-decoration: none; }
.asset-thumb { height: 145px; border-radius: 5px; overflow: hidden; position: relative; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; color: #fff8e9; background: linear-gradient(transparent, rgba(25,31,28,.7)); }
.asset-name { font-size: 11px; font-weight: 800; }
.asset-kind { font-size: 9px; color: #d8d5ca; }
.mobile-menu, .mobile-close { display: none; }
@media (max-width: 1080px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .content-wrap, .topbar { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 560px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.is-open { transform: none; }
  .mobile-menu, .sidebar.is-open .mobile-close { display: grid; }
  .episode-row { grid-template-columns: 42px 1fr 18px; }
  .mini-progress, .status-pill { display: none; }
  .page-intro { flex-direction: column; align-items: flex-start; }
}
