:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --surface: #fffefa;
  --ink: #262820;
  --muted: #62645a;
  --line: #d8d5ca;
  --olive: #4c5836;
  --olive-dark: #354027;
  --olive-pale: #eef0e6;
  --rose: #ba736c;
  --rose-pale: #f5e8e4;
  --lilac: #8d7c9e;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #aab28b; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 47%) 1fr; background: var(--surface); }
.auth-card { width: min(460px, calc(100% - 64px)); margin: auto; padding: 64px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 600 22px var(--serif); letter-spacing: -.6px; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50% 50% 48% 15%; background: var(--olive); color: #fffef8; font: italic 600 18px var(--serif); transform: rotate(-8deg); }
.auth-intro { margin: 80px 0 38px; }
.eyebrow { margin: 0 0 11px; color: var(--olive); font: 500 10px var(--mono); letter-spacing: 1.6px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.auth-intro h1, .welcome-row h1 { margin: 0; color: var(--ink); font: 500 clamp(38px, 4.4vw, 56px)/1.11 var(--serif); letter-spacing: -1.8px; }
h1 em, h2 em { color: var(--olive); font-weight: 500; }
.muted { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form > label:not(.check-label) { margin-top: 8px; color: #55574d; font-size: 12px; font-weight: 600; }
.auth-form input[type=url], .auth-form input[type=password], .auth-form input[type=text] { width: 100%; height: 49px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 14px; color: var(--ink); font-size: 13px; }
.auth-form input::placeholder { color: #68695f; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px !important; }
.password-toggle { position: absolute; right: 8px; top: 5px; width: 38px; height: 38px; }
.check-label { display: flex; align-items: center; gap: 9px; margin: 8px 0 7px; color: #5f6157; font-size: 12px; cursor: pointer; }
.check-label input { width: 15px; height: 15px; margin: 0; accent-color: var(--olive); }
.button { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .16s ease, transform .16s ease, border-color .16s ease; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: .72; }
.button-primary { background: var(--olive); color: #fffef9; }
.button-primary:hover:not(:disabled) { background: var(--olive-dark); }
.button-wide { width: 100%; min-height: 48px; margin-top: 4px; }
.button-quiet { min-height: 35px; background: transparent; color: var(--muted); border-color: var(--line); }
.button-quiet:hover { background: #fff; color: var(--ink); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 4px; background: #f8e9e6; color: #9c4941; font-size: 12px; }
.privacy-note { margin: 24px 0 0; display: flex; gap: 8px; align-items: center; color: #68695f; font-size: 11px; }
.privacy-note span { font-size: 15px; }

.auth-art { position: relative; display: grid; place-items: center; overflow: hidden; background: #e8e9de; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 55% 43%, rgba(255,255,255,.66), transparent 48%), radial-gradient(ellipse at 85% 12%, rgba(255,255,255,.4), transparent 35%); }
.art-orbit { position: absolute; width: 540px; height: 540px; border: 1px solid rgba(94,104,69,.13); border-radius: 50%; }
.orbit-one { transform: scaleX(1.45) rotate(-27deg); }
.orbit-two { transform: scaleX(1.1) rotate(58deg); }
.art-book { position: relative; width: 288px; height: 385px; overflow: hidden; border-radius: 7px 16px 16px 7px; background: #7c8563; box-shadow: 24px 30px 55px rgba(46,52,37,.2), inset 7px 0 8px rgba(255,255,255,.13); transform: rotate(6deg); }
.art-book::before { content: ''; position: absolute; inset: 11px 12px 11px 13px; border: 1px solid rgba(251,246,220,.37); border-radius: 3px 11px 11px 3px; }
.book-spine { position: absolute; inset: 0 auto 0 20px; width: 5px; background: rgba(49,58,40,.14); box-shadow: 2px 0 rgba(255,255,255,.1); }
.book-sun { position: absolute; width: 112px; height: 112px; left: 94px; top: 65px; border-radius: 50%; background: #efdfad; }
.book-hill { position: absolute; left: -27px; right: -20px; bottom: -55px; border-radius: 50% 50% 0 0; }
.hill-one { height: 212px; background: #b6a980; transform: rotate(-13deg); }
.hill-two { bottom: -112px; height: 234px; background: #47533d; transform: rotate(15deg); }
.book-star { position: absolute; color: #f2e6c4; font: 20px var(--serif); }
.star-one { top: 79px; left: 47px; }.star-two { right: 47px; top: 142px; font-size: 13px; }
.art-caption { position: absolute; bottom: 40px; display: flex; gap: 14px; align-items: center; color: #6b735b; font: 9px var(--mono); letter-spacing: 1px; }
.caption-line { display: inline-block; width: 38px; height: 1px; background: #afb49d; }
.art-note { position: absolute; color: #737b63; }
.note-one { left: 11%; top: 24%; font: italic 17px/1.3 var(--serif); transform: rotate(-10deg); }
.note-two { right: 13%; top: 21%; font-size: 26px; }

.app-shell { min-height: 100vh; }
.topbar { height: 70px; padding: 0 max(5vw, 26px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.7); }
.topbar .wordmark { font-size: 20px; }
.topbar-right { display: flex; align-items: center; gap: 13px; }
.connection-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 10px var(--mono); }
.connection-state.connecting i { background: #b39758; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: #8ba16e; box-shadow: 0 0 0 3px #e8eddf; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 50%; color: #727567; background: transparent; font-size: 20px; cursor: pointer; }
.icon-button:hover { border-color: var(--line); background: #fff; color: var(--olive-dark); }
.page-wrap { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.welcome-row { position: relative; display: flex; justify-content: space-between; align-items: end; padding: 54px 0 33px; border-bottom: 1px solid var(--line); }
.welcome-row h1 { font-size: clamp(35px, 4vw, 46px); letter-spacing: -1.4px; }
.welcome-subtitle { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.today-mark { display: flex; align-items: center; gap: 9px; margin: 0 7px 4px 0; color: #65704a; }
.today-mark > span { font-size: 37px; }
.today-mark small { font: 9px/1.5 var(--mono); letter-spacing: .7px; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1.45fr; gap: 12px; padding: 21px 0 36px; }
.stat-card { display: flex; align-items: center; gap: 13px; min-height: 80px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,254,250,.63); }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 16px; }
.icon-cream { color: #887d56; background: #f1edda; }.icon-rose { color: #aa6861; background: #f4e8e3; }.icon-lilac { color: #807192; background: #eeebf3; }
.stat-card strong { display: block; font: 600 20px var(--serif); line-height: 1.2; }
.stat-card div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.stat-note { display: flex; align-items: center; justify-content: center; gap: 13px; color: #626650; font: italic 15px/1.35 var(--serif); }
.note-spark { color: #ab9c73; font-size: 22px; }
.library-section { padding-top: 7px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.section-head h2 { margin: 0; font: 500 28px var(--serif); letter-spacing: -.5px; }
.add-form { display: flex; align-items: center; gap: 9px; width: min(665px, 68%); padding: 5px; border: 1px solid #e2dfd5; border-radius: 7px; background: #fffefa; box-shadow: 0 2px 10px rgba(55,54,45,.025); }
.add-form input { flex: 1; min-width: 40px; height: 34px; padding: 0 4px; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.add-form input::placeholder { color: #68695f; }
.add-form select { max-width: 145px; height: 34px; padding: 0 21px 0 8px; border: 0; border-left: 1px solid var(--line); outline: 0; background: #fffefa; color: #77796f; font-size: 10px; }
.youtube-mark { display: grid; width: 27px; height: 22px; place-items: center; border-radius: 6px; background: #f6e9e5; color: #b5625b; font-size: 10px; }
.add-form .button { min-height: 36px; gap: 9px; white-space: nowrap; font-size: 11px; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 27px 0 17px; }
.filter-tabs { display: flex; align-items: center; gap: 23px; }
.filter-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #62645a; font-size: 11px; cursor: pointer; }
.filter-tab span { min-width: 18px; padding: 3px 5px; border-radius: 10px; background: #eeece5; color: #77796d; font: 9px var(--mono); text-align: center; }
.filter-tab:hover, .filter-tab.active { color: var(--olive-dark); }
.filter-tab.active { border-bottom-color: var(--olive); }
.filter-tab.active span { background: var(--olive-pale); color: var(--olive-dark); }
.search-box { display: flex; align-items: center; gap: 9px; width: 225px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,254,250,.75); color: #8f9084; }
.search-box > span { font-size: 20px; transform: rotate(-15deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 10px; }
.search-box kbd { flex-shrink: 0; padding: 3px 4px; border: 1px solid #e7e4db; border-radius: 3px; color: #a3a397; font: 8px var(--mono); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 36px; }
.video-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); transition: box-shadow .18s ease, transform .18s ease; }
.video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(49,51,42,.07); }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.card-image { position: relative; height: 166px; overflow: hidden; background: #e5e3d9; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-card:hover .card-image img { transform: scale(1.025); }
.card-image::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(25,28,24,.45)); pointer-events: none; }
.duration-chip { position: absolute; z-index: 1; right: 9px; bottom: 9px; padding: 4px 6px; border-radius: 3px; background: rgba(29,31,27,.8); color: white; font: 9px var(--mono); }
.card-image-placeholder { display: grid; height: 100%; place-items: center; color: #7d8468; font: 56px var(--serif); background: radial-gradient(circle at 65% 35%, #f2e7c4 0 13%, transparent 13.5%), linear-gradient(145deg, #d8d9cb, #aab197); }
.status-chip { position: absolute; z-index: 1; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 3px; background: rgba(255,254,250,.93); color: #6b7058; font: 9px var(--mono); }
.status-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.status-active { color: #897849; }.status-chip.status-active::before { animation: breathe 1.3s ease-in-out infinite; }
.status-chip.status-failed { color: #b25b51; }.status-chip.status-failed::before { background: #b25b51; }
.status-chip.status-ready { color: #66806a; }
.card-body { padding: 14px 15px 12px; }
.card-kicker { display: flex; justify-content: space-between; align-items: center; min-height: 15px; color: #696a5f; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .55px; }
.unread-mark { display: flex; align-items: center; gap: 5px; color: #9b725d; font-size: 8px; letter-spacing: .3px; }
.unread-mark::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.card-title { display: -webkit-box; min-height: 45px; margin: 8px 0; overflow: hidden; color: #303126; font: 600 15px/1.45 var(--serif); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-author { overflow: hidden; color: #62635a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-summary { display: -webkit-box; min-height: 42px; margin: 12px 0 0; overflow: hidden; color: #595a51; font: 11px/1.55 var(--serif); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e2dfd5; color: #62635a; font: 9px var(--mono); }
.card-foot .read-link { color: var(--olive); font: 600 10px var(--sans); }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; min-height: 270px; padding: 35px; border: 1px dashed #d9d8ca; border-radius: 7px; text-align: center; }
.empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; background: #edeedf; color: var(--olive); font-size: 22px; }
.empty-state h3 { margin: 0 0 7px; font: 500 21px var(--serif); }
.empty-state p { max-width: 330px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.library-message { margin: 12px 0; padding: 12px 14px; border: 1px solid #ebd3ce; border-radius: 4px; background: #faf0ed; color: #8e574f; font-size: 12px; }
.page-footer { display: flex; justify-content: space-between; padding: 15px 0 25px; border-top: 1px solid var(--line); color: #62635a; font: 9px var(--mono); }
.footer-dot { margin: 0 5px; color: #a99467; }

.detail-dialog { position: fixed; width: min(900px, calc(100% - 32px)); max-width: none; max-height: min(92vh, 940px); padding: 0; overflow: auto; border: 1px solid #e3e0d7; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 90px rgba(29,31,25,.25); }
.detail-dialog::backdrop { background: rgba(34,37,30,.5); backdrop-filter: blur(3px); }
.detail-view { min-height: 450px; }
.detail-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 12px 21px; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.95); backdrop-filter: blur(8px); }
.detail-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.detail-header .eyebrow { margin: 0; white-space: nowrap; }
.detail-title-small { max-width: 55vw; overflow: hidden; color: #797a70; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.detail-close { flex: 0 0 auto; font-size: 22px; }
.detail-hero { display: grid; grid-template-columns: minmax(180px, 32%) 1fr; gap: 25px; padding: 24px 27px 20px; border-bottom: 1px solid var(--line); }
.detail-thumbnail { position: relative; min-height: 155px; overflow: hidden; border-radius: 4px; background: #dedfd4; }
.detail-thumbnail img { width: 100%; height: 100%; min-height: 155px; object-fit: cover; }
.detail-meta { display: flex; flex-direction: column; justify-content: center; }
.detail-meta h2 { margin: 0; font: 500 clamp(21px, 3vw, 30px)/1.24 var(--serif); letter-spacing: -.5px; }
.detail-byline { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.detail-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.detail-controls .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.button-secondary { border-color: var(--line); background: #fffefa; color: #686b5e; }
.button-secondary:hover { background: #f5f4ed; }
.button-danger { border-color: #efdcd7; background: #fbf3f1; color: #a45e55; }
.detail-style { min-height: 34px; max-width: 140px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fffefa; color: #77796f; font-size: 10px; }
.detail-story { padding: 22px 35px 34px; }
.story-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 15px; }
.story-tabs { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: #f7f6f0; }
.story-tab { min-height: 28px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: #898a7f; font-size: 10px; cursor: pointer; }
.story-tab.active { background: #fffefa; color: var(--olive-dark); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.story-model { color: #68695f; font: 9px var(--mono); }
.story-copy { white-space: pre-wrap; color: #424339; font: 16px/1.85 var(--serif); }
.story-empty { padding: 30px 20px; border-radius: 5px; background: #f7f6f0; color: #62635a; text-align: center; font: 13px/1.6 var(--serif); }
.transcript-panel { margin-top: 26px; border-top: 1px solid var(--line); }
.transcript-panel summary { padding: 17px 0 12px; color: #74766a; font-size: 11px; font-weight: 600; cursor: pointer; }
.transcript-content { max-height: 340px; overflow: auto; padding-right: 9px; color: #595a51; font: 11px/1.7 var(--sans); }
.transcript-segment { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f0eee8; }
.transcript-time { color: #a4a395; font: 9px var(--mono); }
.detail-loading { display: grid; min-height: 420px; place-items: center; color: #8b8c80; font: 13px var(--serif); }
.toast { position: fixed; right: 25px; bottom: 24px; z-index: 9; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #d9ddcb; border-radius: 5px; background: #fffefa; color: #4c583d; box-shadow: 0 8px 30px rgba(38,40,32,.13); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #ecd1cb; color: #a14f45; }
@keyframes breathe { 0%,100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.2); } }

@media (max-width: 850px) {
  .auth-shell { grid-template-columns: minmax(350px, 52%) 1fr; }
  .auth-card { width: min(420px, calc(100% - 45px)); }
  .art-book { transform: scale(.83) rotate(6deg); }
  .art-note { display: none; }
  .page-wrap { width: min(720px, calc(100% - 42px)); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat-note { display: none; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: start; flex-direction: column; }
  .add-form { width: 100%; }
}
@media (max-width: 620px) {
  .auth-shell { display: block; background: var(--paper); }
  .auth-card { width: min(440px, calc(100% - 44px)); min-height: 100vh; padding: 31px 0; display: flex; flex-direction: column; justify-content: center; }
  .auth-intro { margin: 58px 0 32px; }
  .auth-intro h1 { font-size: 43px; }
  .auth-art { display: none; }
  .topbar { height: 60px; padding: 0 18px; }
  .connection-state { display: none; }
  .topbar-right { gap: 5px; }
  .topbar .button-quiet { font-size: 10px; }
  .page-wrap { width: calc(100% - 34px); }
  .welcome-row { padding: 38px 0 23px; }
  .welcome-row h1 { font-size: 34px; }
  .welcome-subtitle { max-width: 280px; font-size: 11px; line-height: 1.5; }
  .today-mark { display: none; }
  .stats-row { gap: 7px; padding: 15px 0 26px; }
  .stat-card { min-height: 70px; padding: 9px 8px; gap: 7px; }
  .stat-icon { width: 28px; height: 28px; font-size: 13px; }
  .stat-card strong { font-size: 17px; }
  .stat-card div > span { font-size: 8px; }
  .section-head h2 { font-size: 25px; }
  .add-form { flex-wrap: wrap; gap: 7px; padding: 6px; }
  .add-form input { flex-basis: calc(100% - 42px); }
  .add-form select { flex: 1; max-width: none; border-left: 0; border-top: 1px solid var(--line); }
  .add-form .button { flex: 0 0 auto; }
  .library-toolbar { align-items: start; flex-direction: column-reverse; gap: 12px; margin: 20px 0 13px; }
  .search-box { width: 100%; }
  .filter-tabs { width: 100%; justify-content: space-between; gap: 10px; }
  .filter-tab { gap: 5px; font-size: 10px; }
  .video-grid { grid-template-columns: 1fr; gap: 12px; }
  .video-card { display: grid; grid-template-columns: 39% 1fr; min-height: 138px; }
  .card-open { display: contents; }
  .card-image { height: 100%; min-height: 138px; }
  .card-image::after { inset: 45% 0 0; }
  .status-chip { left: 6px; top: 6px; gap: 4px; padding: 5px 6px; font-size: 7px; }
  .duration-chip { right: 5px; bottom: 5px; padding: 3px 4px; font-size: 7px; }
  .card-body { align-self: center; padding: 10px 11px; }
  .card-kicker { font-size: 7px; }
  .card-title { min-height: unset; margin: 6px 0; font-size: 13px; line-height: 1.35; }
  .card-author { font-size: 9px; }
  .card-summary { display: none; }
  .card-foot { margin-top: 9px; padding-top: 8px; font-size: 7px; }
  .card-foot .read-link { font-size: 9px; }
  .page-footer { gap: 12px; flex-direction: column; font-size: 8px; }
  .detail-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); border-radius: 7px; }
  .detail-header { padding: 11px 13px; }
  .detail-header .eyebrow { display: none; }
  .detail-title-small { max-width: 70vw; }
  .detail-hero { grid-template-columns: 1fr; gap: 15px; padding: 14px 15px 16px; }
  .detail-thumbnail { min-height: 150px; max-height: 190px; }
  .detail-thumbnail img { min-height: 150px; max-height: 190px; }
  .detail-meta h2 { font-size: 23px; }
  .detail-controls { gap: 6px; margin-top: 12px; }
  .detail-controls .button { min-height: 32px; }
  .detail-story { padding: 17px 18px 25px; }
  .story-copy { font-size: 15px; line-height: 1.75; }
  .story-tools { align-items: start; flex-direction: column; gap: 10px; }
}
