:root {
    --ink: #101214;
    --paper: #f5f6f2;
    --white: #fff;
    --line: #c9ccc8;
    --muted: #61676a;
    --cut: #ef382f;
    --cut-text: #b52a23;
    --sound: #00a8c6;
    --mark: #f0d800;
    --mint: #78d7b4;
    color: var(--ink);
    background: var(--paper);
    font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body { min-width: 0; min-height: 100vh; margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1:focus { outline: none; }
:where(a, button, summary):focus-visible { outline: 3px solid var(--sound); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 30; display: flex; align-items: stretch; justify-content: space-between; height: 82px; border-bottom: 1px solid var(--ink); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 275px; padding: 0 34px; }
.brand-mark { position: relative; display: block; width: 34px; height: 38px; overflow: hidden; background: var(--ink); transform: skew(-20deg); }
.brand-mark::before { content: ""; position: absolute; inset: 0 0 0 17px; background: var(--cut); }
.brand-mark span { position: absolute; right: 2px; bottom: 2px; width: 7px; height: 7px; background: var(--mark); }
.brand strong { display: block; font: 900 22px/1 "Arial Narrow", "Yu Gothic UI", sans-serif; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font: 700 9px/1 Consolas, monospace; }
.desktop-nav { display: flex; align-items: stretch; border-left: 1px solid var(--ink); }
.desktop-nav a { position: relative; display: grid; min-width: 88px; place-items: center; padding: 0 18px; border-right: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.desktop-nav a.active::after { content: ""; position: absolute; right: 14px; bottom: 0; left: 14px; height: 5px; background: var(--cut); }
.desktop-nav a:hover { background: var(--white); }
.desktop-nav .nav-search { min-width: 92px; background: var(--ink); color: white; border-right: 0; }
.mobile-nav { display: none; }
.signal-strip { display: flex; align-items: center; gap: 28px; height: 34px; overflow: hidden; padding: 0 24px; background: var(--mark); color: var(--ink); font: 800 11px/1 Consolas, monospace; white-space: nowrap; }
.signal-strip i { width: 6px; height: 6px; flex: 0 0 auto; background: var(--ink); transform: rotate(45deg); }

.page-shell { width: min(100% - 64px, 1320px); margin-inline: auto; }
.feature-hero { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(330px, .9fr); height: clamp(480px, calc(100vh - 180px), 620px); min-height: 0; background: var(--ink); color: white; }
.feature-art { position: relative; min-width: 0; overflow: hidden; border-right: 1px solid #505457; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.feature-art:hover img { transform: scale(1.015); }
.feature-art::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.6); pointer-events: none; }
.feature-badge { position: absolute; z-index: 2; top: 28px; left: 28px; padding: 10px 12px; background: var(--mark); color: var(--ink); font: 900 11px/1 Consolas, monospace; }
.play-mark { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 68px; height: 68px; place-items: center; border: 1px solid white; background: rgba(16,18,20,.78); font-size: 20px; transform: translate(-50%, -50%); }
.feature-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 38px 40px; }
.feature-label { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--cut); font-size: 12px; font-weight: 800; }
.feature-label span { width: 38px; height: 3px; background: var(--cut); }
.feature-copy h1 { overflow-wrap: anywhere; margin: 0; font: 900 52px/1.05 "Arial Narrow", "Yu Gothic UI", sans-serif; }
.feature-copy > p:not(.feature-label) { display: -webkit-box; overflow: hidden; margin: 24px 0; color: #d9dcdd; font-size: 14px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.feature-copy dl { margin: 0; border-top: 1px solid #4c5052; }
.feature-copy dl div { display: grid; grid-template-columns: 90px 1fr; padding: 12px 0; border-bottom: 1px solid #4c5052; }
.feature-copy dt { color: #8f969a; font: 700 10px/1.4 Consolas, monospace; }
.feature-copy dd { overflow-wrap: anywhere; margin: 0; font-size: 12px; font-weight: 700; }
.feature-link { align-self: flex-start; margin-top: 18px; padding-bottom: 5px; border-bottom: 2px solid var(--sound); font-size: 13px; font-weight: 800; }
.waveform { display: flex; align-items: center; gap: 4px; height: 48px; margin-top: 12px; overflow: hidden; }
.waveform i { width: 3px; height: calc(var(--bar) * 2px); background: var(--sound); animation: pulse-bar 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--bar) * -45ms); }
.waveform i:nth-child(4n) { background: var(--cut); }
@keyframes pulse-bar { to { transform: scaleY(.45); } }

.content-band { padding-top: 72px; padding-bottom: 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading p, .page-title-block > p, .admin-page-header p, .admin-panel header p { margin: 0 0 8px; color: var(--cut-text); font: 800 11px/1.2 Consolas, monospace; }
.section-heading h2 { margin: 0; font: 900 44px/1 "Arial Narrow", "Yu Gothic UI", sans-serif; }
.section-heading > a { padding-bottom: 5px; border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 800; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.content-card { min-width: 0; border: 1px solid var(--line); border-top: 5px solid var(--sound); background: var(--white); }
.content-card:nth-child(3n+2) { border-top-color: var(--cut); }
.content-card:nth-child(3n) { border-top-color: var(--mark); }
.card-visual { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.card-visual:hover img { transform: scale(1.035); opacity: .88; }
.frame-number { position: absolute; bottom: 0; left: 0; min-width: 48px; padding: 7px 9px; background: var(--ink); color: white; font: 800 10px/1 Consolas, monospace; }
.card-body { min-height: 150px; padding: 18px; }
.card-kicker { min-height: 18px; margin: 0 0 10px; color: var(--muted); font: 700 10px/1.4 Consolas, monospace; }
.card-body h3 { margin: 0; overflow-wrap: anywhere; font-size: 20px; line-height: 1.35; }
.card-summary { display: -webkit-box; overflow: hidden; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; color: var(--muted); font: 700 9px/1 Consolas, monospace; }

.event-band { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 2fr); background: var(--ink); color: white; }
.event-intro { padding: 64px max(36px, calc((100vw - 1320px) / 2)); border-right: 1px solid #484d50; }
.event-intro p { margin: 0; color: var(--cut); font: 800 11px/1 Consolas, monospace; }
.event-intro > strong { display: block; margin: 10px 0; color: var(--mark); font: 900 82px/1 "Arial Narrow", sans-serif; }
.event-intro h2 { margin: 0 0 24px; font-size: 36px; }
.event-intro span { color: #b9bec0; font-size: 13px; line-height: 1.7; }
.event-rows { align-self: center; padding: 32px max(36px, calc((100vw - 1320px) / 2)) 32px 42px; }
.event-rows a { display: grid; grid-template-columns: 76px 1fr 28px; align-items: center; gap: 18px; min-height: 84px; border-bottom: 1px solid #44494c; }
.event-rows time { color: var(--sound); font: 900 16px/1 Consolas, monospace; }
.event-rows strong { display: block; font-size: 19px; }
.event-rows small { display: block; overflow: hidden; margin-top: 7px; color: #aeb4b7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.event-rows b { font-size: 24px; }
.event-empty { color: #aeb4b7; }

.two-column-band { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.reading-list { border-top: 4px solid var(--ink); }
.reading-list a { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 16px; min-height: 82px; border-bottom: 1px solid var(--line); }
.reading-list time, .reading-list span { color: var(--muted); font: 700 10px/1 Consolas, monospace; }
.reading-list strong { overflow-wrap: anywhere; font-size: 16px; }
.accent-list { border-top-color: var(--cut); }
.muted-copy { padding: 24px 0; color: var(--muted); }
.tag-band { padding-top: 30px; padding-bottom: 90px; }
.tag-cloud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.tag-cloud a { display: flex; min-width: 0; min-height: 68px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); }
.tag-cloud a:hover { background: var(--mark); }
.tag-cloud span { overflow-wrap: anywhere; font-size: 14px; font-weight: 800; }
.tag-cloud b { color: var(--muted); font: 700 10px/1 Consolas, monospace; }

.page-title-block { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; padding: 60px 0 42px; border-bottom: 1px solid var(--ink); }
.page-title-block > p { grid-column: 1 / -1; }
.page-title-block h1 { margin: 0; font: 900 64px/1 "Arial Narrow", "Yu Gothic UI", sans-serif; }
.page-title-block > span { color: var(--muted); font-size: 14px; line-height: 1.8; }
.compact-title { padding-bottom: 32px; }
.filter-bar { display: grid; grid-template-columns: 2fr .65fr 1fr auto; align-items: end; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.filter-bar label, .search-console label, .admin-filter label, .user-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
input, select { min-width: 0; height: 44px; border: 1px solid #979c9e; border-radius: 0; background: var(--white); color: var(--ink); padding: 0 12px; }
input:focus, select:focus { outline: 3px solid rgba(0,168,198,.25); border-color: var(--sound); }
.button { display: inline-grid; min-height: 44px; place-items: center; padding: 0 18px; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; font-size: 12px; font-weight: 800; }
.button:disabled { cursor: not-allowed; opacity: .52; }
.button-dark { background: var(--ink); color: white; }
.button-outline { background: white; color: var(--ink); }
.button-signal { background: var(--mark); color: var(--ink); }
.result-count { margin: 24px 0; color: var(--muted); font: 700 11px/1 Consolas, monospace; }
.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 20px; }
.listing-grid .card-body { min-height: 174px; }
.listing-page, .search-page, .tag-page { padding-bottom: 90px; }
.pagination { display: grid; grid-template-columns: 100px 1fr 100px; align-items: center; width: min(100%, 420px); margin: 42px auto 0; border: 1px solid var(--ink); }
.pagination button { height: 46px; border: 0; background: var(--white); cursor: pointer; font-weight: 800; }
.pagination button:first-child { border-right: 1px solid var(--ink); }
.pagination button:last-child { border-left: 1px solid var(--ink); }
.pagination button:disabled { color: #9ba0a2; cursor: not-allowed; }
.pagination span { text-align: center; font: 700 11px/1 Consolas, monospace; }
.timeline-list { border-top: 5px solid var(--cut); }
.timeline-list a { display: grid; grid-template-columns: 110px 1fr 30px; align-items: center; min-height: 116px; border-bottom: 1px solid var(--line); }
.timeline-list time { display: flex; align-items: baseline; gap: 8px; color: var(--sound); }
.timeline-list time strong { font-size: 28px; }
.timeline-list time span { font: 700 12px/1 Consolas, monospace; }
.timeline-list > a > span { min-width: 0; padding: 18px; border-left: 1px solid var(--line); }
.timeline-list small { display: block; color: var(--cut); font: 700 10px/1 Consolas, monospace; }
.timeline-list b { display: block; margin: 8px 0; overflow-wrap: anywhere; font-size: 20px; }
.timeline-list em { display: block; overflow: hidden; color: var(--muted); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.search-console { padding: 26px; border: 1px solid var(--ink); border-top: 6px solid var(--sound); background: var(--white); margin: 28px 0 38px; }
.search-primary input { height: 58px; font-size: 18px; }
.search-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.search-console > .button { min-width: 150px; }
.search-result-head { display: flex; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.tag-index { margin-top: 34px; }
.tag-loading { display: flex; gap: 12px; margin-top: 34px; border: 0; }
.tag-loading i { width: 120px; height: 56px; background: #dfe1de; animation: skeleton-pulse 1s infinite alternate; }

.state-shell { padding-top: 70px; padding-bottom: 100px; }
.state-panel { display: grid; grid-template-columns: 180px 1fr; align-items: center; min-height: 260px; border: 1px solid var(--ink); border-top: 7px solid var(--mark); background: white; }
.state-error { border-top-color: var(--cut); }
.state-code { display: grid; height: 100%; place-items: center; border-right: 1px solid var(--ink); color: var(--sound); font: 900 64px/1 "Arial Narrow", sans-serif; }
.state-error .state-code { color: var(--cut); }
.state-panel > div { padding: 34px; }
.state-panel h2 { margin: 0 0 12px; font-size: 27px; }
.state-panel p { margin: 0 0 22px; color: var(--muted); line-height: 1.7; }
.hero-skeleton, .detail-loading { display: grid; grid-template-columns: 2fr 1fr; height: 520px; background: var(--ink); }
.skeleton-block, .detail-loading div { margin: 30px; background: #282c2f; animation: skeleton-pulse 1s infinite alternate; }
.skeleton-lines { width: 70%; height: 220px; align-self: center; background: #282c2f; animation: skeleton-pulse 1s infinite alternate; }
.loading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.loading-grid > div { height: 300px; border: 1px solid var(--line); background: white; }
.loading-grid span { display: block; height: 170px; background: #dfe1de; animation: skeleton-pulse 1s infinite alternate; }
.loading-grid i { display: block; width: 72%; height: 14px; margin: 22px; background: #dfe1de; }
@keyframes skeleton-pulse { to { opacity: .45; } }

.detail-header { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; padding-top: 58px; padding-bottom: 42px; }
.detail-title > p:first-child { margin: 0 0 14px; color: var(--cut-text); font: 800 11px/1 Consolas, monospace; }
.detail-title h1 { overflow-wrap: anywhere; margin: 0; font: 900 58px/1.12 "Arial Narrow", "Yu Gothic UI", sans-serif; }
.detail-title > p:last-child { margin: 22px 0 0; color: var(--muted); line-height: 1.8; }
.detail-meta { margin: 0; border-top: 3px solid var(--ink); }
.detail-meta div { display: grid; grid-template-columns: 110px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-meta dt { color: var(--muted); font: 700 9px/1.5 Consolas, monospace; }
.detail-meta dd { overflow-wrap: anywhere; margin: 0; font-size: 12px; font-weight: 700; }
.detail-visual { position: relative; margin: 0; height: min(66vw, 720px); overflow: hidden; background: var(--ink); }
.detail-visual > img { width: 100%; height: 100%; object-fit: cover; }
.detail-visual figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 5vw; background: rgba(16,18,20,.9); color: white; font: 700 10px/1 Consolas, monospace; }
.mini-wave { height: 38px; margin: 0; }
.detail-content { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 70px; padding-top: 64px; padding-bottom: 84px; }
.detail-content aside { align-self: start; position: sticky; top: 18px; padding-top: 12px; border-top: 4px solid var(--cut); }
.detail-content aside > p { font: 800 10px/1 Consolas, monospace; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.detail-tags span { padding: 7px 9px; border: 1px solid var(--line); background: white; font-size: 11px; font-weight: 700; }
.detail-content aside > a { display: block; margin-top: 28px; color: var(--muted); font-size: 11px; line-height: 1.5; text-decoration: underline; }
.rich-content { min-width: 0; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.rich-content h2 { margin: 2.2em 0 .7em; padding-left: 14px; border-left: 5px solid var(--sound); font-size: 27px; line-height: 1.4; }
.rich-content h3 { margin-top: 1.8em; font-size: 20px; }
.rich-content a { color: #006d83; text-decoration: underline; }
.rich-content img { height: auto; margin: 26px auto; }
.rich-content iframe, .rich-content video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rich-content th, .rich-content td { padding: 10px; border: 1px solid var(--line); }
.related-band { border-top: 1px solid var(--ink); }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 48px max(32px, calc((100vw - 1320px) / 2)); background: var(--ink); color: white; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { font-size: 22px; }
.site-footer span { margin-top: 8px; color: #aeb4b7; font-size: 11px; }
.site-footer nav { display: flex; gap: 24px; font-size: 11px; }
.site-footer small { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid #44494c; color: #899194; font: 700 9px/1 Consolas, monospace; }

/* Administration */
.admin-shell { min-height: 100vh; background: #f0f2ef; }
.admin-sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 232px; flex-direction: column; background: var(--ink); color: white; }
.admin-brand { height: 92px; padding: 24px 20px; border-bottom: 1px solid #4a4e51; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font: 900 20px/1 "Arial Narrow", sans-serif; }
.admin-brand small { margin-top: 8px; color: var(--sound); font: 700 9px/1 Consolas, monospace; }
.admin-sidebar nav { padding: 20px 0; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 20px; border-left: 5px solid transparent; color: #c8ccce; font-size: 13px; font-weight: 700; }
.admin-sidebar nav a span { color: #697074; font: 700 9px/1 Consolas, monospace; }
.admin-sidebar nav a.active { border-left-color: var(--cut); background: #272b2e; color: white; }
.admin-back { margin-top: auto; padding: 22px 20px; border-top: 1px solid #4a4e51; color: var(--mark); font-size: 11px; font-weight: 700; }
.admin-workspace { min-width: 0; margin-left: 232px; }
.admin-topbar { display: flex; height: 92px; align-items: stretch; justify-content: flex-end; border-bottom: 1px solid var(--ink); background: white; }
.admin-topbar details { display: none; }
.environment-badge { display: grid; min-width: 150px; place-items: center; background: var(--mark); font: 900 10px/1 Consolas, monospace; }
.admin-account { display: grid; min-width: 180px; place-items: center; padding: 0 18px; border-left: 1px solid var(--ink); overflow-wrap: anywhere; font-size: 11px; font-weight: 700; }
.admin-main { width: min(100% - 56px, 1320px); margin: 0 auto; padding-bottom: 70px; }
.admin-page-header { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 24px; }
.admin-page-header h1 { margin: 0; font-size: 34px; }
.admin-page-header > span, .admin-page-header > a { color: var(--muted); font: 700 10px/1 Consolas, monospace; }
.admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 22px; }
.admin-actions > div { min-width: 0; margin-right: auto; }
.admin-actions strong, .admin-actions span { display: block; }
.admin-actions strong { font-size: 13px; }
.admin-actions span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink); background: white; }
.metric-card { min-height: 138px; padding: 24px 20px; border-top: 6px solid var(--ink); border-right: 1px solid var(--ink); }
.metric-card:last-child { border-right: 0; }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 10px; }
.metric-card strong { display: block; margin: 14px 0 10px; font: 900 38px/1 "Arial Narrow", sans-serif; }
.signal-cyan { border-top-color: var(--sound); }
.signal-yellow { border-top-color: var(--mark); }
.signal-red { border-top-color: var(--cut); }
.signal-black { border-top-color: var(--ink); }
.admin-panel { margin-top: 22px; border: 1px solid var(--line); background: white; }
.admin-panel > header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.admin-panel > header h2 { margin: 0; font-size: 18px; }
.admin-panel > header a { font-size: 10px; font-weight: 700; }
.latest-run { display: grid; grid-template-columns: 14px 140px 90px 150px 1fr; align-items: center; gap: 16px; min-height: 70px; padding: 0 20px; font-size: 11px; }
.status-dot-square { width: 8px; height: 8px; background: var(--muted); }
.status-succeeded, .status-published { color: #167c5b; }
.status-dot-square.status-succeeded { background: var(--mint); }
.status-running, .status-queued { color: #007c94; }
.status-dot-square.status-running, .status-dot-square.status-queued { background: var(--sound); }
.status-failed, .status-partial_failed, .status-conversion_failed { color: #b72821; }
.status-dot-square.status-failed, .status-dot-square.status-partial_failed { background: var(--cut); }
.admin-empty { padding: 24px; color: var(--muted); }
.job-notice { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; padding: 18px 20px; border: 1px solid var(--ink); border-left: 7px solid var(--sound); background: white; }
.job-notice div span, .job-notice div strong { display: block; }
.job-notice div span { color: var(--muted); font: 700 9px/1 Consolas, monospace; }
.job-notice div strong { margin-top: 6px; }
.job-notice p { flex: 1; margin: 0; color: var(--muted); font-size: 11px; }
.job-notice a { font-size: 11px; font-weight: 700; }
.job-notice.status-failed, .job-notice.status-partial_failed { border-left-color: var(--cut); }
.admin-inline-error, .admin-inline-success { margin: 12px 0; padding: 12px 14px; border-left: 5px solid var(--cut); background: #fff; color: #9f251f; font-size: 12px; }
.admin-inline-success { border-left-color: var(--mint); color: #126447; }
.admin-loading { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.admin-loading i { height: 150px; background: white; animation: skeleton-pulse 1s infinite alternate; }
.admin-access-state { display: grid; grid-template-columns: 190px 1fr; min-height: 320px; border: 1px solid var(--ink); background: white; }
.admin-access-state > span { display: grid; place-items: center; background: var(--cut); color: white; font: 900 58px/1 "Arial Narrow", sans-serif; }
.admin-access-state > div { align-self: center; padding: 40px; }
.admin-access-state h1 { margin: 0 0 12px; }
.admin-access-state p { margin: 0 0 22px; color: var(--muted); }
.table-panel { margin-top: 0; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; }
.admin-table th { height: 46px; padding: 0 14px; background: var(--ink); color: white; font: 700 9px/1 Consolas, monospace; }
.admin-table td { min-height: 60px; padding: 14px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { max-width: 370px; margin-top: 5px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.admin-table td > a, .table-action { border: 0; background: transparent; color: #006d83; cursor: pointer; font-size: 10px; font-weight: 700; }
.table-status { display: inline-block; min-width: 64px; font-size: 10px; font-weight: 800; }
.run-status-hero { display: grid; grid-template-columns: 230px 1fr; border: 1px solid var(--ink); border-left: 8px solid var(--sound); background: white; }
.run-status-hero > div { padding: 28px; border-right: 1px solid var(--line); }
.run-status-hero p { margin: 0; color: var(--muted); font: 700 9px/1 Consolas, monospace; }
.run-status-hero h2 { margin: 12px 0 0; font-size: 32px; }
.run-status-hero dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.run-status-hero dl div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.run-status-hero dt { color: var(--muted); font-size: 9px; }
.run-status-hero dd { margin: 7px 0 0; font-size: 12px; font-weight: 700; }
.compact-metrics { margin-top: 22px; }
.run-counters, .preview-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.run-counters div, .preview-meta div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.run-counters dt, .preview-meta dt { color: var(--muted); font-size: 9px; }
.run-counters dd, .preview-meta dd { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.admin-filter { display: grid; grid-template-columns: minmax(220px, 440px) auto; align-items: end; gap: 10px; margin-bottom: 20px; }
.preview-summary { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 24px; border: 1px solid var(--ink); background: white; }
.preview-summary h2 { margin: 14px 0 8px; }
.preview-summary p { margin: 0; color: var(--muted); font-size: 11px; }
.preview-summary dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.preview-summary dl div { padding: 10px; border-left: 1px solid var(--line); }
.preview-summary dt { color: var(--muted); font-size: 9px; }
.preview-summary dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 700; }
.admin-preview-grid { display: grid; grid-template-columns: 310px 1fr; gap: 22px; }
.preview-frame .rich-content { max-height: 720px; overflow: auto; padding: 26px; }
.admin-external-link { display: block; padding: 18px; color: #006d83; font-size: 10px; font-weight: 700; }
.user-create-panel { margin-top: 0; }
.user-form { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1.4fr .7fr auto; align-items: end; gap: 10px; padding: 20px; }
.user-form input, .user-form select { width: 100%; }
.user-table select { width: 105px; height: 36px; }
.switch { display: flex; align-items: center; gap: 7px; }
.switch input { width: 18px; height: 18px; }

#blazor-error-ui { position: fixed; z-index: 3000; right: 0; bottom: 0; left: 0; display: none; padding: 14px 48px 14px 18px; background: var(--cut-text); color: white; }
#blazor-error-ui a { text-decoration: underline; }
#blazor-error-ui .dismiss { position: absolute; top: 10px; right: 16px; cursor: pointer; }
.loading-progress { position: absolute; inset: 24vh 0 auto; width: 92px; height: 92px; margin: auto; }
.loading-progress circle { fill: none; stroke: #d9dcda; stroke-width: .55rem; transform: rotate(-90deg); transform-origin: 50% 50%; }
.loading-progress circle:last-child { stroke: var(--sound); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%; }
.loading-progress-text { position: absolute; inset: calc(24vh + 105px) 0 auto; text-align: center; font: 700 11px/1 Consolas, monospace; }
.loading-progress-text::after { content: var(--blazor-load-percentage-text, "読み込み中"); }
.validation-message { color: #b72821; font-size: 11px; }
.valid.modified:not([type=checkbox]) { outline: 2px solid var(--mint); }
.invalid { outline: 2px solid var(--cut); }

@media (max-width: 1100px) {
    .desktop-nav a { min-width: 70px; padding: 0 10px; font-size: 11px; }
    .desktop-nav a:nth-child(5), .desktop-nav a:nth-child(6) { display: none; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-copy { padding: 30px; }
    .feature-copy h1 { font-size: 42px; }
    .tag-cloud { grid-template-columns: repeat(3, 1fr); }
    .admin-main { width: min(100% - 36px, 1320px); }
    .user-form { grid-template-columns: repeat(2, 1fr); }
    .user-form .button { align-self: end; }
}

@media (max-width: 720px) {
    .site-header { height: 64px; }
    .brand { min-width: 0; padding: 0 14px; gap: 9px; }
    .brand-mark { width: 25px; height: 29px; }
    .brand-mark::before { left: 13px; }
    .brand strong { font-size: 17px; }
    .brand small { margin-top: 4px; font-size: 7px; }
    .desktop-nav { display: none; }
    .mobile-nav { display: block; position: relative; }
    .mobile-nav summary { display: grid; height: 64px; min-width: 88px; place-items: center; border-left: 1px solid var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; list-style: none; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav nav { position: absolute; top: 64px; right: 0; display: grid; width: min(90vw, 320px); border: 1px solid var(--ink); background: white; }
    .mobile-nav nav a { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
    .signal-strip { height: 28px; gap: 16px; padding: 0 12px; font-size: 9px; }
    .page-shell { width: min(100% - 28px, 1320px); }
    .feature-hero { display: block; height: auto; }
    .feature-art { display: block; height: auto; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid #505457; }
    .feature-art::after { inset: 8px; }
    .feature-badge { top: 14px; left: 14px; padding: 7px 8px; font-size: 8px; }
    .play-mark { width: 46px; height: 46px; font-size: 13px; }
    .feature-copy { min-height: 300px; padding: 22px 18px; }
    .feature-label { margin-bottom: 12px; font-size: 10px; }
    .feature-copy h1 { font-size: 34px; }
    .feature-copy > p:not(.feature-label) { margin: 12px 0; font-size: 12px; -webkit-line-clamp: 2; }
    .feature-copy dl { display: grid; grid-template-columns: repeat(3, 1fr); }
    .feature-copy dl div { display: block; min-width: 0; padding: 8px; border-right: 1px solid #4c5052; }
    .feature-copy dd { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .waveform { height: 30px; margin-top: 8px; }
    .feature-link { margin-top: 10px; }
    .content-band { padding-top: 48px; padding-bottom: 52px; }
    .section-heading { align-items: center; margin-bottom: 22px; }
    .section-heading h2 { font-size: 32px; }
    .section-heading > a { font-size: 10px; }
    .card-grid, .listing-grid { grid-template-columns: 1fr; gap: 16px; }
    .card-body { min-height: 132px; }
    .event-band { grid-template-columns: 1fr; }
    .event-intro { padding: 42px 18px; border-right: 0; border-bottom: 1px solid #484d50; }
    .event-intro > strong { font-size: 62px; }
    .event-rows { padding: 18px; }
    .event-rows a { grid-template-columns: 58px 1fr 20px; min-height: 78px; }
    .event-rows strong { font-size: 15px; }
    .two-column-band { grid-template-columns: 1fr; gap: 54px; }
    .reading-list a { grid-template-columns: 78px 1fr; }
    .reading-list a span { display: none; }
    .tag-band { padding-bottom: 58px; }
    .tag-cloud { grid-template-columns: 1fr 1fr; }
    .tag-cloud a { min-height: 58px; padding: 12px; }
    .page-title-block { display: block; padding: 42px 0 28px; }
    .page-title-block h1 { font-size: 44px; }
    .page-title-block > span { display: block; margin-top: 16px; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar label:first-child { grid-column: 1 / -1; }
    .filter-bar .button { width: 100%; }
    .timeline-list a { grid-template-columns: 78px 1fr 18px; }
    .timeline-list > a > span { padding: 14px; }
    .timeline-list time { display: block; }
    .timeline-list time strong, .timeline-list time span { display: block; font-size: 17px; }
    .timeline-list b { font-size: 16px; }
    .search-console { padding: 18px; }
    .search-fields { grid-template-columns: 1fr; }
    .state-panel { grid-template-columns: 1fr; }
    .state-code { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--ink); font-size: 48px; }
    .state-panel > div { padding: 24px; }
    .hero-skeleton, .detail-loading { grid-template-columns: 1fr; height: 500px; }
    .loading-grid { grid-template-columns: 1fr; }
    .detail-header { grid-template-columns: 1fr; gap: 34px; padding-top: 38px; }
    .detail-title h1 { font-size: 40px; }
    .detail-visual { height: 56.25vw; min-height: 180px; }
    .detail-visual figcaption { min-height: 42px; padding: 0 14px; }
    .detail-content { grid-template-columns: 1fr; gap: 36px; padding-top: 42px; }
    .detail-content aside { position: static; }
    .site-footer { grid-template-columns: 1fr; padding: 36px 18px; }
    .site-footer nav { flex-wrap: wrap; }
    .site-footer small { grid-column: auto; }

    .admin-sidebar { display: none; }
    .admin-workspace { margin-left: 0; }
    .admin-topbar { height: 64px; justify-content: space-between; }
    .admin-topbar details { display: block; position: relative; }
    .admin-topbar details summary { display: grid; height: 64px; padding: 0 16px; place-items: center; cursor: pointer; font-size: 11px; font-weight: 800; }
    .admin-topbar details nav { position: absolute; z-index: 50; top: 64px; left: 0; display: grid; width: 210px; border: 1px solid var(--ink); background: white; }
    .admin-topbar details nav a { padding: 14px; border-bottom: 1px solid var(--line); font-size: 11px; }
    .environment-badge { margin-left: auto; min-width: 100px; }
    .admin-account { display: none; }
    .admin-main { width: min(100% - 24px, 1320px); }
    .admin-page-header { min-height: 82px; }
    .admin-page-header h1 { font-size: 28px; }
    .admin-actions { flex-wrap: wrap; }
    .admin-actions > div { width: 100%; margin-bottom: 8px; }
    .admin-actions .button { flex: 1; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-card { min-height: 118px; }
    .metric-card:nth-child(2) { border-right: 0; }
    .latest-run { grid-template-columns: 10px 1fr auto; padding: 14px; }
    .latest-run time, .latest-run > span:last-child { grid-column: 2 / -1; }
    .job-notice { display: block; }
    .job-notice p { margin: 12px 0; }
    .admin-loading { grid-template-columns: 1fr 1fr; }
    .admin-access-state { grid-template-columns: 1fr; }
    .admin-access-state > span { min-height: 110px; }
    .run-status-hero { grid-template-columns: 1fr; }
    .run-status-hero > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .compact-metrics { grid-template-columns: 1fr 1fr; }
    .run-counters { grid-template-columns: 1fr 1fr; }
    .admin-filter { grid-template-columns: 1fr auto; }
    .preview-summary { grid-template-columns: 1fr; }
    .preview-summary dl { border-top: 1px solid var(--line); }
    .admin-preview-grid { grid-template-columns: 1fr; }
    .user-form { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .tag-cloud { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr; }
    .filter-bar label:first-child { grid-column: auto; }
    .metric-grid, .compact-metrics { grid-template-columns: 1fr; }
    .metric-card { border-right: 0; }
    .environment-badge { min-width: 86px; font-size: 8px; }
    .admin-topbar details summary { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
