:root {
  --ink: #152421;
  --forest: #16352f;
  --forest-deep: #0b1715;
  --sage: #a9c3a8;
  --paper: #f3efe5;
  --paper-bright: #fbf9f3;
  --coral: #ef6d4d;
  --orange: #dc8d3b;
  --cream: #f4dca9;
  --blue: #386d80;
  --muted: #6f7d78;
  --line: rgba(21, 36, 33, .11);
  --shadow: 0 22px 60px rgba(20, 36, 31, .11);
  --sans: "Manrope", sans-serif;
  --serif: "Fraunces", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.ambient { position: fixed; border-radius: 50%; filter: blur(4px); pointer-events: none; z-index: -1; }
.ambient-one { width: 430px; height: 430px; right: 3%; top: -170px; background: rgba(239,109,77,.14); }
.ambient-two { width: 360px; height: 360px; left: 12%; bottom: -180px; background: rgba(169,195,168,.22); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font: 700 22px var(--serif); color: var(--paper-bright); background: var(--forest); transform: rotate(-4deg); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .13em; font-size: 14px; }
.brand small { color: var(--muted); font-size: 9px; margin-top: 2px; }

.app-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; padding: 34px 25px 25px; display: flex; flex-direction: column; background: rgba(251,249,243,.86); backdrop-filter: blur(20px); border-right: 1px solid var(--line); z-index: 10; }
.side-nav { display: grid; gap: 7px; margin-top: 50px; }
.side-nav a { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 13px; color: var(--muted); font-size: 13px; font-weight: 700; }
.side-nav a span { width: 22px; text-align: center; font-size: 18px; }
.side-nav a:hover, .side-nav a.active { color: var(--forest); background: #e5ece2; }
.daily-goal { margin-top: auto; display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 17px; background: var(--forest); color: white; }
.daily-goal strong { font-size: 11px; }
.daily-goal p { color: rgba(255,255,255,.62); font-size: 9px; margin: 3px 0 0; }
.goal-ring { width: 45px; height: 45px; flex: 0 0 45px; border: 3px solid var(--coral); border-left-color: rgba(255,255,255,.2); border-radius: 50%; display: grid; place-content: center; text-align: center; }
.goal-ring span, .goal-ring small { display: block; line-height: 1; }
.goal-ring span { font-weight: 800; }
.goal-ring small { font-size: 7px; margin-top: 2px; }
.admin-shortcut { display: flex; justify-content: space-between; margin-top: 13px; padding: 10px 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.admin-shortcut:hover { color: var(--coral); }

.app-main { margin-left: 250px; min-height: 100vh; }
.topbar { height: 90px; padding: 21px clamp(24px, 5vw, 72px); display: flex; align-items: center; gap: 15px; }
.search-box { width: min(530px, 55vw); display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.62); border-radius: 15px; }
.search-box span { font-size: 22px; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box kbd { padding: 4px 7px; border-radius: 6px; background: white; border: 1px solid var(--line); color: var(--muted); font-size: 8px; white-space: nowrap; }
.icon-button { position: relative; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.62); color: var(--ink); }
.notification-dot { position: absolute; width: 7px; height: 7px; right: 8px; top: 7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--coral); }
.profile-chip { display: grid; grid-template-columns: 36px auto; grid-template-rows: auto auto; column-gap: 9px; text-align: left; border: 0; background: transparent; }
.profile-chip > span { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: white; background: var(--coral); font-weight: 800; font-size: 11px; }
.profile-chip strong { font-size: 11px; }
.profile-chip small { color: var(--muted); font-size: 8px; }

.hero-section { position: relative; min-height: 430px; margin: 0 clamp(18px, 3.3vw, 52px); padding: clamp(38px, 6vw, 75px); border-radius: 34px; overflow: hidden; display: flex; align-items: center; color: white; background: var(--forest); box-shadow: var(--shadow); }
.hero-section::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(to right, black, transparent 70%); }
.hero-copy { position: relative; z-index: 2; width: 52%; }
.eyebrow { display: block; color: var(--coral); font-size: 9px; font-weight: 800; letter-spacing: .18em; margin-bottom: 11px; }
.eyebrow.light { color: var(--cream); }
.hero-copy h1 { font: 700 clamp(38px, 5vw, 69px)/.98 var(--serif); letter-spacing: -.04em; margin: 0 0 22px; }
.hero-copy p { max-width: 480px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 27px; }
.button { border: 0; border-radius: 13px; padding: 13px 18px; font-size: 10px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-coral { background: var(--coral); color: white; box-shadow: 0 10px 25px rgba(239,109,77,.28); }
.button-ghost-light { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.button-cream { color: var(--forest); background: var(--cream); }
.button-dark { color: white; background: var(--forest); }
.button-soft { color: var(--forest); background: #e7eee8; }
.hero-art { position: absolute; width: 52%; height: 120%; right: -4%; top: -10%; }
.hero-sun { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: var(--coral); right: 25%; top: 18%; box-shadow: 0 0 90px rgba(239,109,77,.35); }
.orbit { position: absolute; border: 1px solid rgba(244,220,169,.35); border-radius: 50%; transform: rotate(-28deg); }
.orbit-one { width: 520px; height: 260px; right: -20px; top: 20%; }
.orbit-two { width: 600px; height: 330px; right: -90px; top: 9%; }
.hero-book { position: absolute; width: 185px; height: 245px; right: 17%; top: 19%; padding: 28px; display: flex; align-items: flex-end; border-radius: 4px 18px 18px 4px; transform: rotate(7deg); color: var(--forest); background: var(--cream); box-shadow: -15px 25px 55px rgba(0,0,0,.28); }
.hero-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(22,53,47,.18); }
.hero-book span { font: 700 19px/1.15 var(--serif); }

.content-section { padding: 62px clamp(24px, 5vw, 72px) 5px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h2, .audio-shelf h2 { font: 700 clamp(25px, 3vw, 39px)/1.05 var(--serif); letter-spacing: -.035em; margin: 0; }
.section-heading > a { font-size: 10px; font-weight: 800; color: var(--forest); }
.continue-card { min-height: 185px; display: grid; grid-template-columns: 125px 1fr auto; gap: 24px; align-items: center; padding: 18px 24px 18px 18px; background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; box-shadow: 0 12px 35px rgba(20,36,31,.06); }
.mini-cover { position: relative; align-self: stretch; min-height: 145px; padding: 17px; border-radius: 12px 18px 18px 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.mini-cover span { font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.mini-cover strong { position: relative; z-index: 1; font: 700 18px/1.05 var(--serif); }
.mini-cover i { position: absolute; width: 90px; height: 90px; right: -26px; bottom: -22px; border: 18px solid rgba(255,255,255,.25); border-radius: 50%; }
.cover-sage { background: var(--sage); color: var(--forest); }
.continue-copy { max-width: 680px; }
.format-tag, .card-body > span { color: var(--coral); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.continue-copy h3 { font: 700 24px var(--serif); margin: 8px 0; }
.continue-copy p, .card-body p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; margin: 20px 0 7px; }
.progress-track, .player-progress { height: 4px; overflow: hidden; border-radius: 99px; background: #dce2dc; }
.progress-track i, .player-progress i { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
.round-play { width: 48px; height: 48px; border: 0; border-radius: 50%; color: white; background: var(--forest); font-size: 20px; }

.filter-pills { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.58); }
.filter-pills button { border: 0; border-radius: 9px; padding: 8px 12px; color: var(--muted); background: transparent; font-size: 8px; font-weight: 800; }
.filter-pills button.active { color: white; background: var(--forest); }
.content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.content-card { cursor: pointer; transition: transform .24s ease; }
.content-card:hover { transform: translateY(-7px); }
.book-cover { position: relative; aspect-ratio: 4 / 5.2; padding: 20px; border-radius: 8px 22px 22px 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 17px 34px rgba(20,36,31,.13); }
.book-cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; background: rgba(0,0,0,.12); }
.book-cover span { font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.book-cover strong { margin-top: auto; position: relative; z-index: 1; font: 700 clamp(21px, 2.2vw, 33px)/.98 var(--serif); }
.book-cover i { margin-top: 12px; font-style: normal; font-size: 8px; font-weight: 800; }
.cover-orange { color: #4d2618; background: var(--orange); }
.cover-orange::before { content:""; position:absolute; width:180px; height:180px; border:35px solid rgba(255,245,220,.24); border-radius:50%; right:-75px; top:22px; }
.cover-ink { color: white; background: #1a282d; }
.cover-ink::before { content:""; position:absolute; width:1px; height:150%; background: var(--coral); left:63%; top:-25%; transform:rotate(28deg); box-shadow: -40px 0 0 rgba(239,109,77,.45), 40px 0 0 rgba(239,109,77,.2); }
.cover-cream { color: #5c2f24; background: #ecd9b7; }
.cover-cream::before { content:"A"; position:absolute; right:-5px; top:4px; font:700 160px var(--serif); color:rgba(92,47,36,.08); }
.cover-blue { color: white; background: var(--blue); }
.cover-blue::before { content:""; position:absolute; width:150px; height:150px; left:50%; top:10%; transform:translateX(-50%); border:1px solid rgba(255,255,255,.38); border-radius:50%; box-shadow: 0 0 0 24px rgba(255,255,255,.05), 0 0 0 48px rgba(255,255,255,.04); }
.card-body { padding: 15px 7px 0; }
.card-body h3 { min-height: 40px; font: 700 17px/1.1 var(--serif); margin: 7px 0; }
.empty-state { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; }

.audio-shelf { position: relative; margin: 75px clamp(18px, 3.3vw, 52px); padding: 48px 52px; overflow: hidden; border-radius: 30px; color: white; background: #af513a; }
.audio-shelf p { max-width: 530px; color: rgba(255,255,255,.7); font-size: 11px; }
.audio-shelf .button { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); z-index: 2; }
.audio-shelf .button:hover { transform: translateY(calc(-50% - 2px)); }
.wave { position: absolute; right: 250px; bottom: 0; height: 82%; display: flex; align-items: center; gap: 6px; opacity: .25; }
.wave i { display: block; width: 3px; height: 20%; border-radius: 99px; background: white; animation: wave 1.2s ease-in-out infinite alternate; }
.wave i:nth-child(2n) { height: 72%; animation-delay: -.5s; }
.wave i:nth-child(3n) { height: 42%; animation-delay: -.9s; }
@keyframes wave { to { transform: scaleY(1.8); } }
.app-footer { margin: 0 5%; padding: 28px 0 100px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.app-footer strong { color: var(--forest); letter-spacing: .13em; }
.app-footer p { margin: 0; }
.mobile-nav { display: none; }
.library-section { padding-bottom: 65px; }
.saved-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.saved-list button { min-height: 82px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 14px; text-align: left; border: 1px solid rgba(255,255,255,.82); border-radius: 17px; color: var(--ink); background: rgba(255,255,255,.55); }
.saved-list button:hover { background: white; }
.saved-list strong, .saved-list small { display: block; }
.saved-list strong { font: 600 14px var(--serif); }
.saved-list small { color: var(--muted); font-size: 7px; margin-top: 4px; }
.saved-list i { color: var(--coral); font-style: normal; font-size: 8px; font-weight: 800; }
.saved-number { width: 32px; height: 42px; display: grid; place-items: center; border-radius: 5px 10px 10px 5px; color: var(--cream); background: var(--forest); font: 600 12px var(--serif); }

.mini-player { position: fixed; left: calc(250px + 4%); right: 4%; bottom: 20px; z-index: 20; min-height: 66px; display: grid; grid-template-columns: 42px 1fr auto 30px; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 18px; color: white; background: rgba(11,23,21,.94); backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.mini-player[hidden] { display: none; }
.player-cover { width: 42px; height: 42px; border: 0; border-radius: 11px; color: var(--forest); background: var(--cream); font-weight: 800; }
.mini-player small, .mini-player strong { display: block; }
.mini-player small { color: var(--sage); font-size: 7px; letter-spacing: .12em; }
.mini-player strong { font-size: 10px; margin: 3px 0 6px; }
.mini-player > span { color: rgba(255,255,255,.65); font-size: 8px; }
.player-progress { background: rgba(255,255,255,.16); }
.player-progress i { width: 8%; }
.player-close { border: 0; color: white; background: transparent; font-size: 20px; }

.content-dialog { width: min(520px, calc(100vw - 30px)); padding: 38px; border: 0; border-radius: 28px; color: var(--ink); background: var(--paper-bright); box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.content-dialog::backdrop { background: rgba(7,19,16,.65); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 25px; }
.content-dialog h2 { font: 700 36px/1.05 var(--serif); margin: 8px 0 14px; }
.content-dialog > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.dialog-insight { padding: 18px; margin: 24px 0; border-left: 4px solid var(--coral); border-radius: 0 13px 13px 0; background: #eef1e9; }
.dialog-insight small, .dialog-insight strong { display: block; }
.dialog-insight small { color: var(--coral); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.dialog-insight strong { font: 600 17px/1.35 var(--serif); margin-top: 6px; }
.dialog-actions { display: flex; gap: 8px; }
.dialog-note { display: block; color: var(--muted); font-size: 7px; margin-top: 20px; }

/* Admin */
.admin-app { color: #e5eee9; background: #08110f; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 245px; padding: 28px 20px; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.07); background: #0b1715; z-index: 10; }
.brand-dark .brand-mark { color: var(--forest-deep); background: var(--cream); }
.brand-dark strong { color: white; }
.brand-dark small { color: #71807b; }
.admin-nav { display: grid; gap: 4px; margin-top: 38px; }
.admin-nav > span { margin: 22px 12px 6px; color: #53625e; font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.admin-nav a { padding: 10px 12px; border-radius: 10px; color: #85938e; font-size: 10px; font-weight: 700; }
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,.065); }
.admin-nav a.active { box-shadow: inset 3px 0 var(--coral); }
.system-badge { margin-top: auto; padding: 13px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.025); }
.system-badge > i { width: 8px; height: 8px; border-radius: 50%; background: #5ec491; box-shadow: 0 0 12px #5ec491; }
.system-badge strong, .system-badge small { display: block; }
.system-badge strong { font-size: 8px; }
.system-badge small { color: #687772; font-size: 7px; margin-top: 3px; }

.admin-main { margin-left: 245px; min-height: 100vh; padding: 0 clamp(22px, 3vw, 48px) 40px; background: radial-gradient(circle at 95% 0, rgba(220,141,59,.07), transparent 24%), #08110f; }
.admin-topbar { min-height: 105px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }
.breadcrumb { color: #61706b; font-size: 8px; }
.admin-topbar h1 { font: 600 25px var(--serif); margin: 4px 0 0; }
.admin-actions { display: flex; align-items: center; gap: 9px; }
.admin-actions > a { color: #8d9b96; font-size: 8px; margin-right: 8px; }
.avatar { width: 38px; height: 38px; border: 0; border-radius: 12px; color: white; background: #233530; font-size: 9px; font-weight: 800; }
.menu-toggle { display: none; }
.period-bar { display: flex; justify-content: space-between; align-items: center; padding: 21px 0; color: #788681; font-size: 8px; }
.live-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #5ec491; box-shadow: 0 0 9px #5ec491; }
.period-tabs { display: flex; padding: 3px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; }
.period-tabs button { border: 0; padding: 6px 10px; color: #70807a; background: transparent; font-size: 7px; font-weight: 800; }
.period-tabs button.active { border-radius: 6px; color: white; background: #23332f; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card, .panel { border: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: rgba(17,31,27,.72); box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.metric-card { position: relative; min-height: 164px; padding: 18px; overflow: hidden; }
.metric-card > div:first-child span, .panel-head span { display: block; color: #63736e; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.metric-card > div:first-child strong { display: block; margin-top: 6px; font: 600 29px var(--serif); color: white; }
.metric-card > small { position: absolute; left: 18px; bottom: 14px; color: #5c6a66; font-size: 6.5px; }
.trend { position: absolute; right: 16px; top: 18px; padding: 4px 6px; border-radius: 6px; font-style: normal; font-size: 7px; font-weight: 800; }
.trend.up { color: #72d1a0; background: rgba(94,196,145,.1); }
.trend.stable { color: var(--cream); background: rgba(244,220,169,.08); }
.sparkline { position: absolute; left: 18px; right: 18px; bottom: 36px; height: 34px; display: flex; align-items: end; gap: 4px; }
.sparkline i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(94,196,145,.08), #5ec491); }
.donut { --value: 40; position: absolute; width: 56px; height: 56px; right: 19px; bottom: 34px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) calc(var(--value) * 1%), #263732 0); }
.donut::before { content:""; position:absolute; inset:7px; border-radius:50%; background:#11201c; }
.donut span { position:relative; font-size:9px; font-weight:800; }
.format-bars { margin-top: 17px; display: grid; gap: 7px; }
.format-bars span { position: relative; height: 12px; padding-left: 6px; overflow: hidden; border-radius: 3px; color: white; font-size: 6px; line-height: 12px; background: #23322e; }
.format-bars i { position: absolute; inset: 0 auto 0 0; opacity: .26; background: var(--coral); }
.health-line { height: 38px; margin-top: 17px; display: flex; align-items: center; gap: 3px; }
.health-line i { flex: 1; height: 25%; border-radius: 2px; background: #5ec491; }
.health-line i:nth-child(4), .health-line i:nth-child(8) { height: 63%; }

.admin-grid { display: grid; gap: 12px; margin-top: 12px; }
.admin-grid.two-one { grid-template-columns: 1.65fr 1fr; }
.admin-grid.one-one { grid-template-columns: 1fr 1fr; }
.panel { padding: 19px; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-head h2 { font: 600 18px var(--serif); margin: 5px 0 0; }
.panel-head button, .panel-head a, .alert-list button { border: 0; color: #8b9a94; background: transparent; font-size: 7px; font-weight: 800; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.funnel > div { position: relative; min-height: 100px; padding: 13px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.025); }
.funnel strong, .funnel span { position: relative; z-index: 1; display: block; }
.funnel strong { font: 600 20px var(--serif); }
.funnel span { color: #71807b; font-size: 7px; margin-top: 5px; }
.funnel i { position: absolute; left: 0; bottom: 0; width: var(--funnel); height: 7px; border-radius: 0 6px 0 0; background: var(--coral); opacity: .7; }
.integration-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.055); }
.integration-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--cream); background: #253631; font-size: 7px; font-weight: 800; }
.integration-row strong, .integration-row small { display: block; }
.integration-row strong { font-size: 8px; }
.integration-row small { color: #62706c; font-size: 6px; margin-top: 3px; }
.status { width: max-content; padding: 4px 6px; border-radius: 6px; font-size: 6.5px; font-weight: 800; }
.status.success { color: #79d5a7; background: rgba(94,196,145,.1); }
.status.warning { color: #efba68; background: rgba(220,141,59,.11); }
.status.neutral { color: #a8b5b0; background: rgba(255,255,255,.07); }
.catalog-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 16px; }
.catalog-stats div { padding: 10px; border-radius: 8px; background: rgba(255,255,255,.025); }
.catalog-stats strong, .catalog-stats span { display: block; }
.catalog-stats strong { font: 600 17px var(--serif); }
.catalog-stats span { color: #64736e; font-size: 6px; margin-top: 3px; }
.content-table { display: grid; }
.table-row { min-height: 42px; display: grid; grid-template-columns: 1.6fr .6fr .7fr .8fr; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.05); color: #87958f; font-size: 6.5px; }
.table-row > span:first-child { display: flex; align-items: center; gap: 8px; }
.table-row b { color: #dce5e0; font-size: 7px; }
.table-header { color: #53625d; font-weight: 800; }
.table-cover { width: 23px; height: 29px; border-radius: 2px 5px 5px 2px; }
.table-cover.orange { background: var(--orange); }.table-cover.green { background: var(--sage); }.table-cover.blue { background: var(--blue); }
.rights-score { display: flex; align-items: center; gap: 15px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.025); }
.score-ring { width: 61px; height: 61px; flex: 0 0 61px; display: grid; place-content: center; text-align: center; border: 4px solid #5ec491; border-left-color: #263a34; border-radius: 50%; }
.score-ring strong { font: 600 18px var(--serif); }.score-ring small { color: #667570; font-size: 6px; }
.rights-score > div:last-child strong { font-size: 8px; }.rights-score p { color: #64736e; font-size: 6.5px; line-height: 1.5; margin: 4px 0 0; }
.alert-list { display: grid; margin-top: 8px; }
.alert-list > div { display: grid; grid-template-columns: 8px 1fr auto; gap: 9px; align-items: center; padding: 9px 3px; border-top: 1px solid rgba(255,255,255,.045); }
.alert-dot { width: 6px; height: 6px; border-radius: 50%; }.alert-dot.amber { background: #efba68; }.alert-dot.coral { background: var(--coral); }.alert-dot.green { background: #5ec491; }
.alert-list strong, .alert-list small { display: block; }.alert-list strong { font-size: 7px; }.alert-list small { color: #62706c; font-size: 6px; margin-top: 3px; }
.tenant-panel { margin-top: 12px; }
.tenant-table { display: grid; }
.tenant-row { min-height: 54px; display: grid; grid-template-columns: 1.5fr repeat(4,.65fr) 30px; gap: 9px; align-items: center; border-top: 1px solid rgba(255,255,255,.05); color: #899791; font-size: 7px; }
.tenant-row > span:first-child { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; }
.tenant-row > span:first-child i { grid-row: 1/3; }
.tenant-row > span:first-child b { color: #e3ece7; }
.tenant-row > span:first-child small { color: #5e6d68; font-size: 6px; }
.tenant-logo { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--forest); background: var(--cream); font-style: normal; font-size: 7px; font-weight: 800; }
.tenant-logo.alt { color: white; background: var(--blue); }
.tenant-row > button { border: 0; color: #7d8b86; background: transparent; }
.tenant-header { min-height: 30px; color: #52605c; font-size: 6px; font-weight: 800; }
.ops-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.ops-card { min-height: 185px; }
.campaign-preview, .report-ready, .audit-line { display: flex; align-items: center; gap: 10px; }
.campaign-preview > i { width: 39px; height: 45px; display: grid; place-items: center; border-radius: 8px; color: var(--forest-deep); background: var(--cream); font: 600 17px var(--serif); font-style: normal; }
.campaign-preview strong, .campaign-preview small, .report-ready strong, .report-ready small, .audit-line strong, .audit-line small { display: block; }
.campaign-preview strong, .report-ready strong, .audit-line strong { font-size: 7px; }
.campaign-preview small, .report-ready small, .audit-line small { color: #62716c; font-size: 6px; margin-top: 4px; }
.ops-progress { margin-top: 17px; }
.ops-progress span { display: block; height: 4px; overflow: hidden; border-radius: 9px; background: #263731; }
.ops-progress span i { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
.ops-progress small { display: block; color: #5d6d67; font-size: 5.5px; margin-top: 7px; }
.report-ready { min-height: 48px; border-top: 1px solid rgba(255,255,255,.05); }
.report-ready > span { width: 28px; color: var(--cream); font-size: 6px; font-weight: 800; }
.report-ready > div { flex: 1; }
.report-ready > i { padding: 4px 6px; border-radius: 6px; color: #79d5a7; background: rgba(94,196,145,.1); font-size: 6px; font-style: normal; font-weight: 800; }
.audit-line { min-height: 40px; border-top: 1px solid rgba(255,255,255,.05); }
.audit-line > i { width: 7px; height: 7px; flex: 0 0 7px; border: 2px solid #5ec491; border-radius: 50%; }
.admin-footer { display: flex; justify-content: space-between; padding: 25px 0 0; color: #485752; font-size: 6px; }
.audio-studio { margin-top: 12px; }
.voice-chip { align-self: center; padding: 8px 11px; border: 1px solid rgba(239,109,77,.28); border-radius: 999px; color: #f19a82; background: rgba(239,109,77,.08); font-size: 8px; font-weight: 800; }
.audio-studio-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(420px,1.2fr); gap: 18px; }
.audio-upload { padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(5,14,12,.38); }
.audio-upload-copy strong, .audio-upload-copy small { display: block; }.audio-upload-copy strong { font: 600 17px var(--serif); }.audio-upload-copy small { margin-top: 5px; color: #74847e; font-size: 8px; }
.audio-upload label { display: grid; gap: 7px; margin-top: 15px; color: #91a09b; font-size: 8px; font-weight: 800; }
.audio-upload select { width: 100%; padding: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #e5eee9; background: #13241f; }
.file-drop { padding: 15px; border: 1px dashed rgba(239,109,77,.45); border-radius: 12px; text-align: center; cursor: pointer; }.file-drop input { width: 100%; color: #91a09b; font-size: 8px; }.file-drop span { color: #f19a82; }
.audio-rights-check { grid-template-columns: 17px 1fr !important; align-items: start; line-height: 1.5; font-weight: 600 !important; }.audio-rights-check input { margin: 2px 0 0; }
.audio-upload > button { width: 100%; margin-top: 12px; }
.audio-queue { min-width: 0; }.audio-queue-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.audio-queue-head strong, .audio-queue-head small { display: block; }.audio-queue-head strong { font-size: 11px; }.audio-queue-head small { margin-top: 3px; color: #65756f; font-size: 7px; }.audio-queue-head > i { width: 8px; height: 8px; border-radius: 50%; background: #42504c; }.audio-queue-head > i.active { background: #7fd29b; box-shadow: 0 0 0 5px rgba(127,210,155,.08); animation: livePulse 1.5s infinite; }
.audio-job-list { display: grid; gap: 8px; max-height: 430px; overflow: auto; }.audio-empty { display: grid; place-items: center; min-height: 130px; border: 1px dashed rgba(255,255,255,.08); border-radius: 13px; color: #5e6e68; font-size: 9px; }
.audio-job { padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: #0d1b18; }.audio-job > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.audio-job strong, .audio-job small { display: block; }.audio-job strong { font-size: 10px; }.audio-job small { margin-top: 3px; color: #6f7f79; font-size: 7px; }
.audio-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; color: #91a09b; background: rgba(255,255,255,.06); font-size: 7px; font-weight: 800; }.audio-status.processing, .audio-status.queued { color: #efbb73; background: rgba(239,187,115,.1); }.audio-status.review { color: #8cc5ee; background: rgba(80,153,208,.12); }.audio-status.published { color: #8bdba5; background: rgba(80,190,116,.12); }.audio-status.failed { color: #ff8f83; background: rgba(239,80,70,.12); }
.audio-progress { height: 4px; margin-top: 11px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.06); }.audio-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--coral),#f2b56a); transition: width .4s ease; }
.audio-error { margin: 9px 0 0; color: #ff8f83; font-size: 8px; }.audio-job-actions { display: flex !important; align-items: center; gap: 8px; margin-top: 11px; }.audio-job-actions audio { width: min(100%,340px); height: 32px; }.audio-job-actions button { flex: 0 0 auto; }
.content-approve { display: block; margin-top: 6px; padding: 6px 8px; border: 1px solid rgba(239,109,77,.32); border-radius: 8px; color: #f19a82; background: rgba(239,109,77,.08); font-size: 7px; font-weight: 800; }
@keyframes livePulse { 50% { opacity: .45; } }

.login-app { min-height: 100vh; color: var(--ink); background: #08110f; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr); }
.login-story { min-height: 100vh; padding: clamp(38px, 6vw, 86px); display: flex; flex-direction: column; justify-content: space-between; color: white; background: radial-gradient(circle at 80% 20%, rgba(239,109,77,.32), transparent 28%), linear-gradient(145deg, #102b25, #08110f 70%); }
.login-story h1 { max-width: 760px; margin: 20px 0; font: 700 clamp(42px, 5.5vw, 82px)/.98 var(--serif); }
.login-story p { max-width: 540px; color: #aebbb6; line-height: 1.7; }
.login-story > small { color: #5d7069; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.login-panel { display: grid; place-items: center; padding: 32px; background: var(--paper); }
.login-form { width: min(420px, 100%); padding: clamp(28px, 5vw, 54px); border: 1px solid rgba(22,53,47,.1); border-radius: 28px; background: rgba(255,255,255,.72); box-shadow: 0 30px 90px rgba(8,17,15,.11); }
.login-form h2, .admin-dialog h2 { margin: 8px 0; font: 700 36px/1.1 var(--serif); }
.login-form > p, .admin-dialog > p { margin: 0 0 28px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-form label, .admin-form label { display: grid; gap: 7px; margin-top: 16px; color: inherit; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-form input, .admin-form input, .admin-form select, .admin-form textarea { width: 100%; border: 1px solid rgba(22,53,47,.15); border-radius: 11px; padding: 12px 13px; color: var(--ink); background: rgba(255,255,255,.9); outline: none; text-transform: none; letter-spacing: 0; }
.login-form input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(239,109,77,.12); }
.login-form .button { width: 100%; margin-top: 24px; }
.form-message { min-height: 18px; margin-top: 13px; color: var(--muted); font-size: 9px; text-transform: none; letter-spacing: 0; }
.form-message.error { color: #c84435; }.form-message.success { color: #4da078; }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.admin-dialog { width: min(760px, calc(100vw - 28px)); padding: 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; color: #e5eee9; background: #10201c; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.admin-dialog::backdrop { background: rgba(3,8,7,.78); backdrop-filter: blur(5px); }
.admin-dialog .dialog-close { color: #9ca9a4; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.admin-form textarea { min-height: 92px; resize: vertical; }
.admin-form .full-field { grid-column: 1 / -1; }
.admin-form .checkbox-field { display: flex; grid-template-columns: 18px 1fr; align-items: center; text-transform: none; letter-spacing: 0; }
.admin-form .checkbox-field input { width: 16px; height: 16px; padding: 0; }

@media (max-width: 1050px) {
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid.two-one, .admin-grid.one-one { grid-template-columns: 1fr; }
  .audio-studio-grid { grid-template-columns: 1fr; }
  .hero-art { right: -12%; }
}

@media (max-width: 760px) {
  .login-shell { display: block; }.login-story { min-height: 280px; padding: 28px; }.login-story h1 { font-size: 42px; }.login-story > small { display: none; }.login-panel { padding: 18px; }.login-form { padding: 28px 22px; margin-top: -34px; position: relative; }
  .admin-form { grid-template-columns: 1fr; }.admin-form .full-field { grid-column: auto; }.admin-dialog { padding: 28px 20px; }
  .app-sidebar { display: none; }
  .app-main { margin-left: 0; padding-bottom: 68px; }
  .topbar { height: 75px; padding: 14px 16px; }
  .search-box { width: auto; flex: 1; }.search-box kbd { display: none; }
  .profile-chip strong, .profile-chip small { display: none; }.profile-chip { display: block; }.profile-chip > span { display: grid; }
  .hero-section { min-height: 500px; margin: 0 12px; padding: 35px 26px 240px; align-items: start; border-radius: 27px; }
  .hero-copy { width: 100%; }.hero-copy h1 { font-size: 42px; }.hero-copy p { font-size: 11px; }.hero-actions { flex-wrap: wrap; }
  .hero-art { width: 100%; height: 260px; top: auto; right: 0; bottom: -15px; }
  .hero-sun { width: 155px; height: 155px; right: 24%; top: 15%; }.hero-book { width: 135px; height: 185px; right: 18%; top: 15%; padding: 20px; }.hero-book span { font-size: 14px; }
  .content-section { padding: 45px 16px 0; }.section-heading { align-items: start; flex-direction: column; }.section-heading h2 { font-size: 29px; }
  .continue-card { grid-template-columns: 90px 1fr; gap: 15px; padding: 13px; }.continue-copy h3 { font-size: 19px; }.continue-copy p { display: none; }.round-play { display: none; }.mini-cover { min-height: 125px; padding: 12px; }.mini-cover strong { font-size: 14px; }
  .filter-pills { width: 100%; overflow-x: auto; }.content-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.book-cover { padding: 14px; border-radius: 6px 16px 16px 6px; }.book-cover strong { font-size: 22px; }.card-body { padding: 11px 3px 0; }.card-body h3 { min-height: 45px; font-size: 15px; }.card-body p { display: none; }
  .audio-shelf { margin: 50px 12px; padding: 34px 25px 95px; }.audio-shelf .button { left: 25px; right: auto; top: auto; bottom: 27px; transform: none; }.audio-shelf .button:hover { transform: translateY(-2px); }.wave { right: 20px; bottom: 15px; height: 80px; }
  .app-footer { margin: 0 18px; padding-bottom: 30px; grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(4,1fr); left: 10px; right: 10px; bottom: 8px; z-index: 18; padding: 8px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(251,249,243,.9); backdrop-filter: blur(18px); box-shadow: 0 10px 35px rgba(20,36,31,.16); }.mobile-nav a { display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: 15px; }.mobile-nav a.active { color: var(--forest); }.mobile-nav small { font-size: 6px; font-weight: 800; }
  .mini-player { left: 10px; right: 10px; bottom: 74px; grid-template-columns: 38px 1fr 24px; }.mini-player > span { display: none; }.player-cover { width: 38px; height: 38px; }
  .content-dialog { padding: 30px 24px; }.content-dialog h2 { font-size: 30px; }
  .saved-list { grid-template-columns: 1fr; }

  .admin-sidebar { transform: translateX(-100%); transition: transform .25s; }.admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 0 14px 30px; }.admin-topbar { min-height: 85px; justify-content: flex-start; gap: 12px; }.admin-topbar h1 { font-size: 19px; }.menu-toggle { display: block; border: 0; color: white; background: transparent; font-size: 20px; }.admin-actions { margin-left: auto; }.admin-actions > a { display: none; }
  .admin-actions #new-content-button { display: block; width: 40px; height: 40px; padding: 0; overflow: hidden; font-size: 0; border-radius: 50%; }
  .admin-actions #new-content-button::before { content: "+"; font-size: 22px; line-height: 40px; }
  .metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 150px; }.admin-grid { display: block; }.panel { margin-top: 10px; overflow: hidden; }.funnel { grid-template-columns: repeat(2,1fr); }.catalog-stats { grid-template-columns: repeat(2,1fr); }.ops-modules { grid-template-columns: 1fr; }
  .content-table, .tenant-table { overflow-x: auto; }.table-row { min-width: 620px; }.tenant-row { min-width: 700px; }.admin-footer { flex-direction: column; gap: 5px; }
  .audio-studio .panel-head { align-items: flex-start; flex-direction: column; }.audio-studio-grid { display: block; }.audio-queue { margin-top: 18px; }.audio-job-actions { align-items: stretch !important; flex-direction: column; }.audio-job-actions audio { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
