:root {
    color-scheme: light;
    --ink: #202d29;
    --muted: #56665e;
    --teal: #285850;
    --teal-dark: #204941;
    --brand: #407f77;
    --sand: #eedbca;
    --paper: #fcfbf8;
    --line: #dedfd5;
    font-family: Lato, system-ui, sans-serif;
    color: var(--ink);
    background: #f4f2eb;
    line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, dl { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -.055em; line-height: 1.07; }
h2 { font-size: 1.3rem; letter-spacing: -.026em; line-height: 1.2; }
p, dl { overflow-wrap: anywhere; }
p + p, h2 + p { margin-top: .55rem; }
a { color: var(--teal); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #8a5529; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.sidebar {
    min-height: 100vh; position: sticky; top: 0; align-self: start;
    display: flex; flex-direction: column; gap: 2.4rem; padding: 28px 20px 20px;
    background: #faf8f2; border-right: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); width: fit-content; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand > span { font-size: 1.29rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: var(--teal); font-size: .74rem; font-weight: 600; letter-spacing: .09em; }
nav { display: grid; gap: 6px; }
nav a { display: flex; gap: 12px; align-items: center; border-radius: 9px; padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 650; }
nav a span { color: var(--teal); font-size: 1.15rem; width: 22px; }
nav a:hover, nav a[aria-current] { background: #e3ebe3; color: var(--teal-dark); }
.identity { display: flex; gap: 9px; margin-top: auto; align-items: center; border-top: 1px solid var(--line); padding-top: 15px; }
.avatar { flex: 0 0 34px; height: 34px; display: grid; place-items: center; background: var(--sand); color: var(--teal-dark); border-radius: 50%; font-weight: 800; }
.name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.name small { display: block; color: var(--muted); }
.content { width: min(100%, 1250px); margin-inline: auto; padding: clamp(20px, 4vw, 56px); min-width: 0; }
.content > section, .content > div, .content > .filter-bar { margin-top: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head p:last-child { margin-top: 10px; color: var(--muted); }
.overline { color: var(--teal); font-size: .71rem; font-weight: 800; text-transform: uppercase; letter-spacing: .115em; margin-bottom: .55rem; }
.channel, .pill {
    display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 100px; width: fit-content;
    color: var(--teal-dark); background: #e7eee6; font-size: .77rem; font-weight: 750; white-space: nowrap;
}
.channel { border: 1px solid #d1ddd2; }
.pill.pending { background: #f1e5d5; color: #754921; }
.pill.rejected { background: #f0dcd7; color: #793c33; }
.feature { position: relative; overflow: hidden; isolation: isolate; color: #fffdf8; background: linear-gradient(115deg, #204941 8%, #326961 60%, #407f77); border-radius: 18px; min-height: 208px; display: flex; align-items: center; }
.feature-body { max-width: 670px; padding: clamp(23px, 4vw, 40px); position: relative; z-index: 1; }
.feature h2 { font-size: clamp(1.55rem, 4vw, 2.4rem); }
.feature .overline { color: #e9e0c9; }
.feature p:not(.overline) { color: #ecf1eb; }
.feature .button { margin-top: 20px; }
.feature.quiet { background: #e5e9df; color: var(--ink); }
.feature.quiet p { color: var(--teal-dark); }
.cover-lines { position: absolute; inset: 0 0 0 53%; z-index: 0; pointer-events: none; opacity: .62; background: repeating-radial-gradient(ellipse 88% 138% at 86% 105%, transparent 0 20px, #f2db9a66 21px, transparent 22px 38px); mask-image: linear-gradient(90deg, transparent, #111 58%); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.studio-grid, .admin-grid { align-items: start; }
.card { min-width: 0; padding: clamp(18px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 5px 16px #33332406; }
.card > p, .card > details, .card > form, .card > a { margin-top: 10px; }
.card > p.overline { margin-top: 0; }
.section-head, .video-summary, .filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.video-summary { background: #f1e9dd; box-shadow: none; }
.video-summary > a { margin: 0; }
.tier-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 17px; }
.tier-list span { text-align: center; font-size: clamp(.65rem, 1.7vw, .83rem); font-weight: 700; background: #efefe9; border-radius: 5px; padding: 7px 2px; }
.tier-list .current { background: var(--teal); color: white; }
.progress-copy { font-weight: 750; }
progress { width: 100%; height: 12px; margin: 11px 0 2px; accent-color: var(--teal); }
.metric { font-size: clamp(1.75rem, 3.5vw, 2.45rem); font-weight: 800; letter-spacing: -.05em; margin: 9px 0 0; overflow-wrap: anywhere; }
.button {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: fit-content; min-height: 42px;
    text-decoration: none; font-weight: 750; color: #fff; border: 1px solid transparent;
    border-radius: 8px; background: var(--teal-dark); padding: 8px 14px;
}
.button:hover { filter: brightness(.9); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.light { color: var(--teal-dark); background: #f9f5ea; }
.secondary { color: var(--teal-dark); background: #edf0e8; border-color: #d9dfd3; }
.text-button { color: var(--teal-dark); background: transparent; border: 0; padding: 6px 9px; font-weight: 750; }
label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
input:not([type=checkbox]), textarea, select {
    width: 100%; min-height: 42px; color: var(--ink); border: 1px solid #cbd0c4;
    border-radius: 7px; background: #fffefc; padding: 8px 10px; font-weight: 400;
}
textarea { resize: vertical; }
.stack { display: grid; gap: 14px; }
.actions, .check { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.check { flex-wrap: nowrap; font-weight: 400; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hint { color: var(--muted); font-size: .87rem; font-weight: 400; }
.brief dt { color: var(--teal-dark); font-weight: 750; margin-top: 13px; }
.brief dd { margin: 3px 0 0; }
.brief > a { display: inline-block; }
.notice { padding: 12px 15px; border-left: 4px solid var(--brand); background: #e4eee7; border-radius: 6px; margin-bottom: 18px; }
.notice.error { border-color: #8d4f40; background: #f5e4de; }
.script-list, .video-list { display: grid; gap: 11px; margin-top: 14px; }
.script { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; overflow-wrap: anywhere; }
summary { font-weight: 750; padding-block: 4px; }
summary .pill { margin-left: 6px; }
.script > form, .video-form { margin-top: 12px; }
.video-form { border-top: 1px solid var(--line); padding-top: 12px; }
.filter-bar { justify-content: flex-start; align-items: end; }
.filter-bar .hint { align-self: center; }
.mini-metrics { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; }
.mini-metrics dt { font-size: .8rem; color: var(--muted); }
.mini-metrics dd { font-weight: 800; margin: 0; }
.entry { min-height: 100vh; display: grid; align-items: center; background: #f0ece2; }
.entrance { width: min(920px, 100%); margin: auto; padding: clamp(16px, 5vw, 42px); }
.entry-grid { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 22px 60px #433f2521; }
.entry-cover { isolation: isolate; overflow: hidden; position: relative; min-height: 430px; display: flex; flex-direction: column; gap: 13px; padding: clamp(22px, 5vw, 46px); background: linear-gradient(135deg, #eedbca, #dec4aa); }
.entry-cover .brand { margin-bottom: auto; }
.entry-cover h1 { color: #203f37; position: relative; z-index: 1; }
.entry-cover p { color: #2c4d44; position: relative; z-index: 1; }
.entry-cover .cover-lines { inset: 38% 0 0 0; opacity: .75; background: repeating-radial-gradient(ellipse 78% 90% at 105% 130%, transparent 0 14px, #755e4855 15px, transparent 16px 27px); }
.entry-form { align-self: center; padding: clamp(22px, 5vw, 42px); }
.entry-form p { color: var(--muted); }
.entry-form form { margin: 18px 0 11px; }
.entry-form .button { width: 100%; }
@media (max-width: 820px) {
    .workspace { grid-template-columns: minmax(0, 1fr); }
    .sidebar { min-height: auto; position: static; gap: 12px 18px; display: grid; grid-template-columns: 1fr auto; padding: 14px 20px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
    .identity { grid-row: 1; grid-column: 2; margin: 0; border: 0; padding: 0; max-width: 43vw; }
    nav { display: flex; grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; }
    nav a { padding: 6px 8px; gap: 4px; font-size: .88rem; }
}
@media (max-width: 620px) {
    .dashboard-grid, .entry-grid { grid-template-columns: minmax(0, 1fr); }
    .entry-cover { min-height: 220px; }
    .entry-cover .brand { margin-bottom: 6px; }
    .entry-cover .cover-lines { inset: 20% 0 0 0; }
    .page-head { align-items: flex-start; flex-wrap: wrap; margin-bottom: 17px; }
}
