@font-face {
  font-family: 'GMarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GMarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GMarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


:root{color-scheme:light;font-family:'GMarketSans', Pretendard, 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif}
*{box-sizing:border-box}body{margin:0;background:light-dark(#f8f9fc,#12141a);color:light-dark(#202330,#f3f4f8);line-height:1.55}
.top{border-bottom:1px solid light-dark(#e7e8ee,#333642);background:light-dark(#fff,#191c23)}.top-inner{max-width:1040px;margin:auto;min-height:58px;padding:12px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;letter-spacing:.12em;color:light-dark(#777d8a,#aaadb9)}.back{text-decoration:none;color:inherit;font-size:13px;letter-spacing:0}.back:hover{text-decoration:underline}.wrap{max-width:1040px;margin:0 auto;padding:36px 22px 65px}.intro .eyebrow{font-size:11px;letter-spacing:.17em;font-weight:800;color:light-dark(#6b6e86,#adaad2)}h1{margin:8px 0 3px;font-size:clamp(28px,5vw,38px);letter-spacing:-.05em}.intro p{color:light-dark(#707580,#aaadba);font-size:14px}
.notice{margin:25px 0 25px;padding:14px 16px;border:1px solid light-dark(#e0e3eb,#404453);border-radius:12px;font-size:12px;color:light-dark(#585f6b,#b8bdc8);background:light-dark(#fff,#1b1d25)}
.chapter-overline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:11px;font-size:13px}.all-chapters{border:0;background:transparent;color:light-dark(#355d9c,#b8c9f3);font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.chapter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:24px}.chapter{cursor:pointer;text-align:left;min-width:0;padding:14px 13px;border:1px solid light-dark(#dfe2ea,#3c404d);border-radius:13px;background:light-dark(#fff,#1b1d25);color:inherit;transition:border-color .12s,background .12s}.chapter:hover,.chapter:focus-visible{border-color:light-dark(#8798c7,#899ad1)}.chapter.active{border-color:light-dark(#627eb7,#9db8fa);background:light-dark(#eff4ff,#242d42)}.chapter .number{display:block;font-size:11px;letter-spacing:.08em;color:light-dark(#61759f,#abbdea);font-weight:800}.chapter strong{display:block;font-size:13px;margin:6px 0 4px;line-height:1.38}.chapter .desc{display:block;color:light-dark(#737984,#aaadbb);font-size:11px;line-height:1.42}.chapter .count{display:block;margin-top:7px;font-size:12px;font-variant-numeric:tabular-nums}
.filters{display:flex;gap:9px;flex-wrap:wrap;align-items:end}.filters label{font-size:11px;color:light-dark(#666,#aaa);display:flex;flex-direction:column;gap:5px}.filters select,.filters input{min-height:39px;background:light-dark(#fff,#222530);color:inherit;border:1px solid light-dark(#d9dce5,#454959);border-radius:10px;padding:0 11px;font:inherit;font-size:13px;min-width:126px}.filters .search{flex:1}.filters input{width:100%;min-width:170px}
.summary{margin:23px 0 15px;font-size:13px;color:light-dark(#777,#aaa)}.month-title{font-size:17px;letter-spacing:-.02em;margin:30px 0 9px}.item{display:grid;grid-template-columns:57px minmax(0,1fr);gap:15px;padding:15px 3px;border-top:1px solid light-dark(#e5e6ec,#363946)}.date{font-variant-numeric:tabular-nums;font-size:13px;color:light-dark(#697186,#b2b6c5);font-weight:700;padding-top:2px}.item-main{min-width:0}.name{font-size:14px;font-weight:650;word-break:keep-all;overflow-wrap:anywhere}.meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:7px;font-size:11px;color:light-dark(#7d8290,#a4a7b4)}.tag{border-radius:5px;padding:2px 6px;background:light-dark(#ecedf3,#2b2e3a)}.inexact,.conflict,.unconfirmed{display:inline-flex;align-items:center;gap:3px;color:light-dark(#875b20,#e7c08a)}.conflict{font-weight:700;color:light-dark(#a34937,#f0a79d)}.video{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:light-dark(#345b99,#a1bff6);padding:3px 7px;border:1px solid light-dark(#ccd9f0,#3c5172);border-radius:7px}.candidates{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.candidate{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;font-size:12px;border-radius:7px;padding:5px 8px;background:light-dark(#edf2ff,#252f44);color:light-dark(#274b87,#b8d1fa)}.candidate:hover{text-decoration:underline}.candidate small{font-size:10px;opacity:.75}.candidate-more{font-size:11px;padding:5px;color:light-dark(#626b80,#a8b3c9)}.source-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.source-link{font-size:12px;color:light-dark(#3c5595,#b6caff);text-underline-offset:2px}.detail-note{font-size:11px;color:light-dark(#797e8b,#a6aab8);margin-top:6px}.empty{padding:24px 0;color:light-dark(#777,#bbb)}.load-more{display:block;margin:25px auto 0;border:1px solid light-dark(#d0d5e1,#3f4a64);border-radius:11px;background:light-dark(#fff,#282e3b);color:inherit;padding:11px 26px;font-size:13px;cursor:pointer}.load-more[hidden]{display:none}.date-filter-hint{margin:12px 0 16px;padding:9px 12px;font-size:12px;border-radius:8px;background:light-dark(#edf2fa,#232d43)}.date-filter-hint a{margin-left:10px;color:inherit}.focused-event{outline:2px solid light-dark(#98a5e3,#6e83ca);outline-offset:3px;border-radius:6px}footer{margin-top:38px;font-size:11px;color:light-dark(#999,#888)}
@media(max-width:790px){.chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.wrap{padding:23px 16px 48px}.chapter-grid{gap:8px}.chapter{padding:12px 10px}.item{grid-template-columns:45px minmax(0,1fr);gap:10px}.top-inner{padding:12px 16px}.filters label{flex:1 1 130px}.filters .search{flex:1 1 100%}}

/* 출처 증거 미니 팝오버: hover + keyboard focus + touch/click */
.notice{position:relative}.research-guide{display:inline-flex;vertical-align:middle;margin-left:7px}
.source-widget{display:inline-flex;position:relative;vertical-align:middle;max-width:100%;font-size:11px;isolation:isolate}
.source-trigger{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:0 4px;border:1px solid light-dark(#d3d9e6,#535e75);border-radius:99px;background:light-dark(#f8faff,#252c3d);color:light-dark(#637392,#c1cdeb);font-size:11px;font-family:inherit;font-weight:700;line-height:1;cursor:pointer}
.source-trigger:hover,.source-trigger:focus-visible,.source-widget.is-open .source-trigger{border-color:light-dark(#698bc8,#a6bcf3);color:light-dark(#29548f,#d6e4ff)}
.source-panel{display:none;position:absolute;left:0;top:calc(100% + 1px);z-index:30;width:min(355px,calc(100vw - 34px));max-height:min(440px,65vh);overflow:auto;padding:12px 13px;border:1px solid light-dark(#cfd6e5,#525c71);border-radius:11px;box-shadow:0 10px 30px #0002;background:light-dark(#fff,#222633);color:light-dark(#283344,#e1e5ef);white-space:normal;line-height:1.45;text-align:left;font-size:11px;font-weight:400;letter-spacing:normal}
.source-panel strong{font-size:12px;display:block;margin-bottom:6px}.source-panel p{font-size:11px;line-height:1.45;margin:5px 0;color:light-dark(#596579,#abb5ca)}
.source-panel ul{list-style:none;padding:0;margin:8px 0 0}.source-panel li{margin:0;padding:7px 0;border-top:1px solid light-dark(#eef0f4,#434858);overflow-wrap:anywhere}.source-panel li:first-child{border-top:0}
.source-panel a{color:light-dark(#315d99,#bfd4fd);font-size:11px;text-decoration:underline;text-underline-offset:2px}
.source-panel small{display:block;margin-top:3px;color:light-dark(#717b8c,#aeb4c3);font-size:10px}
.source-panel .source-kind{font-weight:700;font-size:10px;color:light-dark(#50678b,#b3c7f0);padding-right:4px}
.source-status{display:inline-flex;font-size:10px;padding:2px 6px;border-radius:5px;background:light-dark(#f3f1e8,#42403b);color:light-dark(#7f642e,#ead19a)}
.source-widget:hover .source-panel,.source-widget:focus-within .source-panel,.source-widget.is-open .source-panel{display:block}
.source-catalog .source-panel{right:-8px;left:auto;width:min(420px,calc(100vw - 34px))}.source-catalog-trigger{font-size:10px;padding:3px 7px;border-radius:7px}
.item-main .meta{overflow:visible}.item{overflow:visible}.source-widget:has(.source-panel:hover){z-index:50}
@media(max-width:550px){
 .source-widget .source-panel,.source-catalog .source-panel{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto;max-height:58vh;box-shadow:0 6px 38px #0004}
 .source-widget:hover,.source-widget.is-open,.source-widget:focus-within{z-index:110}
}

/* 중복 통합 세부 정보 */
.item .detail-note{line-height:1.65;overflow-wrap:anywhere}.item .detail-note.conflict{color:light-dark(#a34c42,#f5aaa0)}
.candidate small{margin-left:5px;font-weight:600}.candidate{white-space:normal;line-height:1.4}

/* 출처 팝업 레이어: 목록의 stacking context 밖에 렌더링, 다른 항목에 가려지지 않음 */
.source-widget .source-panel{display:none!important}
.source-float{display:none;position:fixed;z-index:2147483000;box-sizing:border-box;width:min(390px,calc(100vw - 24px));max-height:min(470px,70vh);overflow:auto;overscroll-behavior:contain;padding:13px 15px;border:1px solid light-dark(#bfc9df,#63708c);border-radius:12px;background:light-dark(#ffffff,#222633);color:light-dark(#283344,#e1e5ef);box-shadow:0 18px 55px #0005,0 2px 8px #0002;line-height:1.5;font-size:11px;letter-spacing:normal;text-align:left;white-space:normal;opacity:1;isolation:isolate}
.source-float.is-visible{display:block}
.source-float strong{font-size:12px;display:block;margin-bottom:6px}.source-float p{font-size:11px;line-height:1.5;margin:6px 0;color:light-dark(#596579,#abb5ca)}
.source-float ul{list-style:none;padding:0;margin:8px 0 0}.source-float li{margin:0;padding:7px 0;border-top:1px solid light-dark(#e9edf4,#434858);overflow-wrap:anywhere}.source-float li:first-child{border-top:0}
.source-float a{color:light-dark(#315d99,#bfd4fd);font-size:11px;text-decoration:underline;text-underline-offset:2px}
.source-float small{display:block;margin-top:3px;color:light-dark(#717b8c,#aeb4c3);font-size:10px}
.source-float .source-kind{font-weight:700;font-size:10px;color:light-dark(#50678b,#b3c7f0);padding-right:4px}


/* Access to matching schedules without scrolling through thousands of unmatched records. */
.video-only-filter{display:inline-flex;align-items:center;gap:7px;margin:14px 0 0;font-size:12px;font-weight:650;color:light-dark(#355884,#b5c8ea);cursor:pointer}
.video-only-filter input{margin:0;width:15px;height:15px;accent-color:light-dark(#436fb3,#95afe1);cursor:pointer}
.video-only-filter:focus-within{outline:2px solid light-dark(#9db9df,#8599c2);outline-offset:3px;border-radius:4px}

/* 월별 달력은 기존 목록/필터와 같은 데이터 및 출처 팝업을 재사용 */
.view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.view-heading{font-size:12px;font-weight:650;color:light-dark(#687186,#b5bdcc)}
.view-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid light-dark(#dfe3ec,#494f5e);border-radius:10px;background:light-dark(#f3f5f9,#252a35)}
.view-option{font:inherit;font-size:12px;font-weight:650;line-height:1.4;color:light-dark(#667188,#aab6cc);padding:7px 12px;border:0;border-radius:7px;background:transparent;cursor:pointer}
.view-option:hover{color:light-dark(#244f88,#d4e1fc)}.view-option.is-active{background:light-dark(#fff,#3a465e);color:light-dark(#2a528b,#eef4ff);box-shadow:0 1px 5px #0001}
.view-option:focus-visible,.cal-nav:focus-visible,.cal-day:focus-visible,.calendar-view select:focus-visible{outline:2px solid light-dark(#5c7fc1,#abc5fa);outline-offset:2px}
.calendar-view[hidden],.events[hidden],.view-toolbar[hidden]{display:none!important}
.calendar-view{border:1px solid light-dark(#dee3ec,#434957);background:light-dark(#fff,#1b1d25);border-radius:15px;padding:20px;margin-bottom:18px}
.cal-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}
.cal-month-select{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.cal-month-select select{border:1px solid light-dark(#d9dfe8,#515869);border-radius:8px;background:light-dark(#fff,#222733);color:inherit;font:inherit;font-size:13px;font-weight:700;padding:7px 9px;max-width:126px;min-height:37px}
.cal-nav{min-width:37px;min-height:37px;background:light-dark(#f5f7fb,#292f3b);border:1px solid light-dark(#dfe3ed,#484f60);border-radius:9px;color:inherit;cursor:pointer;font-size:19px;line-height:1}
.cal-weekdays,.cal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-weekdays{margin-bottom:6px}.cal-weekdays span{text-align:center;font-size:11px;color:light-dark(#7a8292,#a1adbd);font-weight:650;padding:6px 0}
.cal-day{min-width:0;min-height:70px;text-align:left;position:relative;padding:9px 8px;border:1px solid light-dark(#edf0f5,#303744);border-radius:9px;color:inherit;background:light-dark(#fff,#202430);cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.cal-day:hover{background:light-dark(#f5f8fe,#293247);border-color:light-dark(#b4c6e8,#6882b1)}
.cal-day.has-events{background:light-dark(#f7f9fe,#242c3e);border-color:light-dark(#d5e0f2,#52627d)}
.cal-day.is-selected{border-color:light-dark(#4d76bb,#9fbcf2);background:light-dark(#eaf2ff,#303f5e);box-shadow:inset 0 0 0 1px light-dark(#7399d9,#9dbdf5)}
.cal-day-number{font-variant-numeric:tabular-nums;font-size:12px;font-weight:650}
.cal-day-count{font-size:10px;line-height:1.2;color:light-dark(#456fa6,#b3cafa);white-space:nowrap}
.cal-video-dot{width:7px;height:7px;background:light-dark(#466fae,#9dbdf5);border-radius:50%;position:absolute;right:8px;bottom:9px}
.cal-blank{min-height:70px}
.cal-hint{font-size:11px;margin:12px 2px 0;color:light-dark(#778092,#a1abbf)}
.cal-detail{margin-top:20px;padding-top:18px;border-top:1px solid light-dark(#e5e8f0,#464c5a)}
.cal-detail-title{font-size:15px;margin:0 0 8px;letter-spacing:-.02em}
.cal-detail .item{margin:0;grid-template-columns:53px minmax(0,1fr)}
.cal-no-day{padding:16px 2px;font-size:12px;color:light-dark(#737d8d,#aeb7c4)}
.cal-month-unknown{margin-top:16px;padding:13px;border-radius:10px;background:light-dark(#f7f8fb,#252a35)}
.cal-month-unknown h3{font-size:12px;margin:0 0 5px}.cal-month-unknown .item{padding:10px 0}.cal-month-unknown .date{font-size:11px}
@media(max-width:550px){.view-toolbar{margin-bottom:12px}.calendar-view{padding:10px;border-radius:12px}.cal-controls{margin:5px 2px 10px}.cal-days,.cal-weekdays{gap:2px}.cal-day{min-height:52px;padding:7px 3px;align-items:center;gap:5px;border-radius:6px}.cal-day-number{font-size:11px}.cal-day-count{font-size:9px}.cal-video-dot{right:4px;bottom:5px;width:5px;height:5px}.cal-blank{min-height:52px}.cal-month-select select{font-size:12px;max-width:112px;min-height:35px}.cal-nav{min-width:33px;min-height:35px}.cal-detail{margin-top:15px;padding:13px 4px 0}.cal-detail .item{grid-template-columns:42px minmax(0,1fr);gap:7px}.cal-hint{font-size:10px}}

.cal-nav:disabled{opacity:.35;cursor:default}.cal-month-select select{min-width:0;cursor:pointer}.cal-month-select select#calMonth{max-width:87px}
@media(max-width:550px){.cal-month-select{gap:5px}.cal-month-select select{padding:6px 8px}.cal-month-select select#calMonth{max-width:67px}}

/* 2026-10-23: 은은한 연보라 필새 워터마크 (텍스트와 링크는 선명하게 유지) */
.history-brand{font-weight:700;color:light-dark(#726689,#d8c9ef);letter-spacing:.045em;text-align:right}
.history-brand-divider{padding:0 4px;color:light-dark(#bba7d5,#9b87b5)}
.events .item,.calendar-view .item{position:relative;isolation:isolate}
.events .item::before,.calendar-view .item::before{
  content:'pilsae';position:absolute;top:50%;right:3%;transform:translateY(-50%) rotate(-11deg);
  font:700 clamp(15px,2.7vw,23px)/1 'GMarketSans',sans-serif;letter-spacing:.15em;
  color:light-dark(#af9acb,#b8a3d9);opacity:.075;pointer-events:none;user-select:none;z-index:0
}
.events .item>.date,.events .item>.item-main,.calendar-view .item>.date,.calendar-view .item>.item-main{position:relative;z-index:1}
/* 말풍선 PIL + 고양이, 별도 에셋/네트워크 요청이 없는 장식 스탬프 */
.cat-seal{position:fixed;z-index:20;top:69px;right:14px;width:90px;height:90px;pointer-events:none;user-select:none;opacity:.89;filter:drop-shadow(0 5px 10px #a58fc022)}
.cat-seal svg{display:block;width:100%;height:100%}
/* 우측 하단 페이지 상단 이동 */
.back-to-top{position:fixed;z-index:40;right:22px;bottom:calc(22px + env(safe-area-inset-bottom,0px));width:50px;height:50px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;border:1px solid light-dark(#d6c8ea,#66547e);border-radius:16px;background:light-dark(#fbf8ff,#2e2738);color:light-dark(#866ab2,#d5bcef);box-shadow:0 5px 18px #38235018;font:inherit;cursor:pointer;transition:transform .16s,box-shadow .16s}
.back-to-top:hover{transform:translateY(-3px);box-shadow:0 8px 22px #38235029}
.back-to-top:focus-visible{outline:3px solid light-dark(#bfa5e2,#cfb7f3);outline-offset:3px}
.back-to-top>span{font:500 22px/1 'GMarketSans',sans-serif}.back-to-top>small{font:700 9px/1.2 'GMarketSans',sans-serif;letter-spacing:.08em}
.back-to-top[hidden]{display:none!important}
@media(max-width:550px){.history-brand{font-size:10px;letter-spacing:0}.history-brand-divider{padding:0 2px}.cat-seal{top:67px;right:5px;width:72px;height:72px;opacity:.77}.back-to-top{right:14px;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:44px;height:44px;border-radius:14px}.events .item::before,.calendar-view .item::before{right:2%;font-size:15px;opacity:.06}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}}

.live-list-link{display:inline-block;margin-top:7px;padding:4px 8px;border:1px solid light-dark(#e3d9ef,#615274);border-radius:7px;text-decoration:none;background:light-dark(#f9f5ff,#2e2939);color:light-dark(#876db1,#ddc8f6)}
.live-list-link:hover,.live-list-link:focus-visible{text-decoration:underline;border-color:light-dark(#bba5d9,#a58cb9)}
/* Long verification labels must not widen mobile viewports. */
@media(max-width:550px){.filters label{min-width:0;max-width:100%}.filters label>select,.filters label>input{min-width:0;width:100%;max-width:100%}}


/* 2026-10-23: mobile viewport/popup stability. No changes to event content. */
html,body{max-width:100%;overflow-x:clip}
.top-inner,.wrap,.filters,.summary,.view-toolbar,.events,.calendar-view{min-width:0;max-width:100%}
.source-float-content{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.source-float-content a{overflow-wrap:anywhere;word-break:break-word}
.source-float-toolbar{display:none}
.source-float.is-keyboard-dialog .source-float-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.source-float.is-keyboard-dialog .source-close{width:30px;height:30px;border:1px solid var(--history-line);border-radius:8px;font:inherit;font-size:18px;cursor:pointer}
.source-backdrop{display:none}
@media(max-width:700px){
  /* iOS Safari needs a fixed body to prevent scroll through a modal. */
  html.source-dialog-open{overflow:hidden}
  body.source-dialog-open{position:fixed;top:var(--source-lock-offset,0px);left:0;right:0;width:100%;overflow:hidden}
  .source-backdrop.is-visible{display:block;position:fixed;inset:0;z-index:2147482999;background:#1612258c;touch-action:none}
  .source-float.is-visible.is-mobile-dialog{
    left:50%!important;right:auto!important;top:50dvh!important;bottom:auto!important;
    transform:translate(-50%,-50%);width:min(480px,calc(100vw - 28px))!important;
    max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);
    display:flex;flex-direction:column;overflow:hidden;padding:0;border-radius:17px;
    box-shadow:0 24px 70px #0007;
  }
  .source-float-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;
    padding:13px 14px 12px 17px;border-bottom:1px solid light-dark(#e8e3f1,#484154);
    font-size:13px;font-weight:700;line-height:1.5;color:light-dark(#514166,#e1d2ef)}
  .source-close{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;padding:0;border:1px solid light-dark(#e7dff0,#665876);
    border-radius:10px;background:light-dark(#faf7ff,#393044);color:inherit;font-size:23px;font-weight:400;line-height:1;cursor:pointer}
  .source-close:focus-visible{outline:3px solid light-dark(#bbaaee,#ccb6eb);outline-offset:2px}
  .source-float-content{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    padding:12px 16px max(17px,env(safe-area-inset-bottom,0px));font-size:12px}
  .source-float-content strong:first-child{display:none}
  .source-float-content p,.source-float-content a,.source-float-content li{font-size:12px;line-height:1.65}
  .source-float-content small{font-size:11px;line-height:1.55}
  .source-float-content li{padding:10px 0}
}


/* 2026-10-23: 메인 영상 아카이브와 톤 통일 + 중앙 워터마크 확장 */
:root{
  --history-bg:#fcfcfa;
  --history-surface:#ffffff;
  --history-surface-soft:#fafaf8;
  --history-text:#292722;
  --history-muted:#706f6b;
  --history-line:#e9e9e4;
  --history-soft:#f4f4f0;
  --history-accent:#1f1f1f;
  --history-lavender:#b9a3e1;
  --history-lavender-deep:#8d74b9;
  --history-lavender-soft:#f7f1ff;
  --history-shadow:0 6px 20px rgba(61,49,27,.035),0 1px 3px rgba(61,49,27,.025);
  --history-watermark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='220' viewBox='0 0 340 220'%3E%3Ctext x='170' y='110' text-anchor='middle' dominant-baseline='middle' fill='%23bea9dc' fill-opacity='0.13' font-family='Arial,sans-serif' font-size='40' font-weight='700' letter-spacing='5' transform='rotate(-12 170 110)'%3Epilsae%3C/text%3E%3C/svg%3E");
}
html{background:var(--history-bg)}
body{
  background:var(--history-bg);
  color:var(--history-text);
}
.top{
  position:sticky;top:0;z-index:45;
  background:rgba(252,252,250,.95);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--history-line);
}
.top-inner,.wrap{max-width:1180px}
.top-inner{
  min-height:68px;
  padding:12px 18px;
  color:var(--history-muted);
  font-size:12px;
}
.back{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 14px;border:1px solid var(--history-line);border-radius:999px;
  background:var(--history-surface);box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.back:hover{text-decoration:none;border-color:#d8d8d2;background:var(--history-surface-soft)}
.wrap{padding:46px 0 74px;width:min(1180px,calc(100% - 36px))}
.intro{max-width:760px;margin-bottom:10px}
.intro .eyebrow{color:var(--history-lavender-deep)}
h1{margin:8px 0 8px;font-size:clamp(31px,5vw,42px);letter-spacing:-.05em;color:var(--history-text)}
.intro p,.summary,.view-heading,.date,.detail-note,footer,.source-panel p,.source-float p{color:var(--history-muted)}
.notice,.chapter,.filters select,.filters input,.calendar-view,.view-switch,.load-more,.source-float,.source-trigger,.date-filter-hint{
  border-color:var(--history-line)!important;
  background:var(--history-surface);
}
.notice,.calendar-view,.chapter,.item,.load-more,.date-filter-hint{
  box-shadow:var(--history-shadow);
}
.notice{
  margin:25px 0 26px;padding:16px 18px;border-radius:18px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.96)),
    var(--history-watermark);
  background-repeat:no-repeat,no-repeat;
  background-position:0 0,center center;
  background-size:auto,290px 180px;
}
.chapter-overline{margin-bottom:13px;font-size:14px;color:var(--history-text)}
.all-chapters,.view-option:hover,.source-link,.live-list-link,.source-trigger:hover,.source-trigger:focus-visible,.source-widget.is-open .source-trigger{
  color:var(--history-lavender-deep);
}
.chapter-grid{gap:12px;margin-bottom:26px}
.chapter{
  padding:16px 15px;border-radius:18px;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.chapter:hover,.chapter:focus-visible{transform:none;border-color:#d8cfeb;background:#fffefd}
.chapter.active{border-color:#d2c5ea;background:linear-gradient(180deg,#fff,#fbf7ff);box-shadow:0 6px 20px rgba(137,112,174,.09)}
.chapter .number{color:var(--history-lavender-deep)}
.chapter .desc{color:var(--history-muted)}
.filters{gap:12px}
.filters label{font-size:12px;color:var(--history-muted);gap:7px}
.filters select,.filters input{
  min-height:46px;padding:0 14px;border-radius:16px;font-size:14px;color:var(--history-text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
.filters select:focus-visible,.filters input:focus-visible,.view-option:focus-visible,.cal-nav:focus-visible,.cal-day:focus-visible,.calendar-view select:focus-visible,.back-to-top:focus-visible,.source-close:focus-visible{
  outline:2px solid #cbb8ea;outline-offset:2px;
}
.video-only-filter{margin:16px 0 0;color:var(--history-lavender-deep)}
.video-only-filter input{accent-color:var(--history-lavender-deep)}
.view-toolbar{margin:0 0 16px}
.view-switch{padding:4px;border-radius:14px;background:var(--history-surface-soft)}
.view-option{font-size:12px;color:var(--history-muted);padding:8px 13px;border-radius:10px}
.view-option.is-active{background:var(--history-surface);color:var(--history-text);box-shadow:0 2px 7px rgba(0,0,0,.06)}
.events,.calendar-view{
  position:relative;
  background-image:var(--history-watermark),var(--history-watermark);
  background-repeat:repeat-y,repeat-y;
  background-position:center top,calc(100% - 12px) 58px;
  background-size:340px 220px,300px 220px;
}
.events{padding-top:4px}
.month-title{font-size:18px;margin:34px 0 12px;color:var(--history-text)}
.item{
  margin:0 0 12px;padding:16px 16px;border:1px solid var(--history-line);
  border-radius:18px;background:rgba(255,255,255,.96);
}
.item:last-child{margin-bottom:0}
.name{font-size:15px;color:var(--history-text)}
.meta{margin-top:8px;gap:8px;color:var(--history-muted)}
.tag{background:var(--history-soft);border:1px solid var(--history-line);padding:4px 8px;border-radius:999px}
.video,.candidate,.live-list-link{
  border-radius:999px;
}
.video{color:var(--history-lavender-deep);border-color:#e1d8f3;background:#faf6ff}
.candidate{background:#faf7ff;color:#5e4688;border:1px solid #e9e1f7;padding:6px 10px}
.candidate:hover,.live-list-link:hover,.source-link:hover{text-decoration:none;background:#f6f1ff}
.source-link{color:var(--history-lavender-deep)}
.load-more{
  margin-top:28px;border-radius:16px;padding:12px 28px;color:var(--history-text);background:var(--history-surface-soft);cursor:pointer;
}
.load-more:hover{background:var(--history-surface)}
.date-filter-hint{background:#fbfaf7;border-radius:14px}
.calendar-view{border-radius:22px;padding:22px;background-color:rgba(255,255,255,.88)}
.cal-nav,.cal-month-select select,.cal-day,.cal-month-unknown{
  border-color:var(--history-line)!important;background:var(--history-surface)!important;color:var(--history-text)!important;
}
.cal-day:hover{background:#fcfbff!important;border-color:#d9cceb!important}
.cal-day.has-events{background:#fdfbff!important;border-color:#e5ddf4!important}
.cal-day.is-selected{border-color:#cdbde8!important;background:#f7f2ff!important;box-shadow:inset 0 0 0 1px #d8caef}
.cal-day-count,.cal-video-dot,.chapter .number{color:var(--history-lavender-deep)!important}
.cal-video-dot{background:var(--history-lavender-deep)!important}
.cal-detail{border-top-color:var(--history-line)}
.events .item::before,.calendar-view .item::before{
  right:3.3%;opacity:.055;
}
.events .item::after,.calendar-view .item::after{
  content:'pilsae';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-12deg);
  font:700 clamp(16px,2.5vw,21px)/1 'GMarketSans',sans-serif;letter-spacing:.14em;
  color:#bea9dc;opacity:.03;pointer-events:none;user-select:none;z-index:0
}
.source-trigger{background:var(--history-surface-soft);color:var(--history-lavender-deep)}
.source-status{background:#f4efe8;color:#83672f}
.source-float,.source-panel{
  border-color:var(--history-line)!important;border-radius:16px!important;background:var(--history-surface)!important;color:var(--history-text)!important;
  box-shadow:0 24px 60px rgba(30,22,12,.14),0 2px 10px rgba(30,22,12,.08)!important;
}
.source-float-toolbar{color:#57486f;background:linear-gradient(180deg,#fff,#fcf9ff)}
.source-close{background:var(--history-surface-soft)!important;color:#5f4a86!important;border-color:#e7dff0!important}
.history-brand{color:var(--history-text);letter-spacing:.02em}
.history-brand-divider{color:#bba7d5}
.cat-seal{top:78px;right:18px;opacity:.82;filter:drop-shadow(0 7px 18px rgba(128,100,173,.15))}
.back-to-top{
  border-color:#ded4ec;background:#fff;color:#775fa0;box-shadow:0 10px 28px rgba(35,27,17,.12)
}
.back-to-top:hover{box-shadow:0 14px 32px rgba(35,27,17,.16)}
@media(max-width:790px){.top-inner,.wrap{max-width:100%}}
@media(max-width:700px){
  .wrap{width:min(100%,calc(100% - 28px));padding-top:30px;padding-bottom:60px}
  .top-inner{padding:12px 14px;min-height:62px}
  .back{padding:8px 12px}
  .notice{background-size:auto,240px 150px}
  .events,.calendar-view{background-position:center top,calc(100% - 8px) 48px;background-size:280px 180px,240px 180px}
}
@media(max-width:550px){
  .wrap{padding:24px 0 52px;width:min(100%,calc(100% - 24px))}
  .history-brand{font-size:11px}
  .chapter-grid{gap:9px}
  .filters{gap:9px}
  .filters select,.filters input{min-height:43px;border-radius:14px;font-size:13px}
  .notice,.item,.calendar-view,.chapter{border-radius:16px}
  .events,.calendar-view{background-position:center 14px,calc(100% - 4px) 44px;background-size:230px 150px,200px 150px}
  .events .item::before,.calendar-view .item::before{right:2.4%;font-size:14px;opacity:.045}
  .events .item::after,.calendar-view .item::after{font-size:13px;opacity:.026}
  .cat-seal{top:70px;right:6px;width:70px;height:70px;opacity:.72}
}


/* 2026-10-23: 목록만 이전 줄 구분형 UI로 복원 (상단/달력/팝업 변경 금지) */
.events{
  padding-top:0;
  background-image:none;
}
.events .month-title{
  font-size:17px;
  margin:30px 0 9px;
  color:inherit;
}
.events .item{
  margin:0;
  padding:15px 3px;
  border:0;
  border-top:1px solid light-dark(#e5e6ec,#363946);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
.events .item:last-child{margin-bottom:0}
.events .item .date{color:light-dark(#697186,#b2b6c5)}
.events .item .name{font-size:14px;color:inherit}
.events .item .meta{
  margin-top:7px;
  gap:7px;
  color:light-dark(#7d8290,#a4a7b4);
}
.events .item .tag{
  padding:2px 6px;
  border:0;
  border-radius:5px;
  background:light-dark(#ecedf3,#2b2e3a);
}
.events .item .video{
  border-color:light-dark(#ccd9f0,#3c5172);
  border-radius:7px;
  background:transparent;
  color:light-dark(#345b99,#a1bff6);
}
.events .item .candidate{
  border:0;
  border-radius:7px;
  padding:5px 8px;
  background:light-dark(#edf2ff,#252f44);
  color:light-dark(#274b87,#b8d1fa);
}
.events .item .candidate:hover{text-decoration:underline;background:light-dark(#edf2ff,#252f44)}
.events .item .source-link{color:light-dark(#3c5595,#b6caff)}
.events .item .detail-note{color:light-dark(#797e8b,#a6aab8)}
.events .item .source-trigger{
  background:light-dark(#f8faff,#252c3d);
  color:light-dark(#637392,#c1cdeb);
  border-color:light-dark(#d3d9e6,#535e75)!important;
}
.events .item .live-list-link{
  border-radius:7px;
  background:light-dark(#f9f5ff,#2e2939);
  color:light-dark(#876db1,#ddc8f6);
}
.events .item .live-list-link:hover{text-decoration:underline}
.events .item::before{right:3%;opacity:.075}
/* 가운데의 서명은 남기되, 목록의 이전 줄 구분 레이아웃 위에서 아주 연하게만 표시 */
.events .item::after{font-size:clamp(16px,2.5vw,21px);opacity:.028}
@media(max-width:550px){
  .events .item{padding:15px 3px;border-radius:0}
  .events .item::before{right:2%;font-size:15px;opacity:.06}
  .events .item::after{font-size:13px;opacity:.022}
}

/* v22: keep undated items in a genuine selectable calendar cell, even after the 31st. */
.cal-day-unknown{border-style:dashed;justify-content:center;background:light-dark(#f7f7fa,#282b36);gap:6px}
.cal-day-unknown .cal-day-number{font-size:11px;white-space:normal;overflow-wrap:anywhere}
.cal-day-unknown .cal-day-count{font-weight:650}
.source-merged-title{font-size:12px;margin:12px 0 6px}
.source-merged-list{padding-left:21px;margin:0 0 10px}
.source-merged-list li{margin:0 0 9px}
.source-merged-list li strong{display:block;font-size:12px}
.source-merged-list li small{display:block;margin-top:3px;line-height:1.45}
@media(max-width:550px){.cal-day-unknown{padding:5px 2px}.cal-day-unknown .cal-day-number{font-size:10px;text-align:center}}


/* Subtle navigation feedback, with no animation on individual schedule rows. */
.month-title,.calendar-view{scroll-margin-top:90px}
.reading-year{position:fixed;bottom:20px;left:16px;z-index:40;padding:7px 12px;border:1px solid var(--history-border,#d6cbe6);border-radius:999px;background:var(--history-surface,#fff);color:var(--history-lavender-deep,#665182);box-shadow:0 3px 14px #0001;font-size:12px;pointer-events:none}
.reading-year[hidden]{display:none}
.source-float.is-visible{animation:history-popup-in 180ms ease-out}
.history-arrival{animation:history-arrival 1300ms ease-out}
@keyframes history-popup-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@keyframes history-arrival{from{background-color:#bfa2e84d;box-shadow:0 0 0 6px #bfa2e826}to{background-color:transparent;box-shadow:0 0 0 6px transparent}}
@media(max-width:600px){.reading-year{bottom:14px;left:12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.source-float.is-visible,.history-arrival{animation:none}}

/* A small keepsake motif: decorative motion stays outside the records. */
.history-keepsake{display:flex;align-items:center;gap:10px;width:174px;margin:14px 0 12px;color:var(--history-lavender-deep);pointer-events:none;user-select:none}
.keepsake-line{height:1px;flex:1;background:linear-gradient(90deg,transparent,#b9a3e18c,transparent)}
.keepsake-paw{width:28px;height:28px;rotate:-12deg;animation:keepsake-sway 6s ease-in-out 3}
.keepsake-star{font-size:17px;animation:keepsake-twinkle 4s ease-in-out 4}
.keepsake-star:last-child{animation-delay:1.3s;font-size:13px}
.history-loader{display:flex;min-height:190px;align-items:center;justify-content:center;flex-direction:column;gap:22px;color:var(--history-muted);font-size:13px;text-align:center;padding:24px}
.loader-cards{position:relative;width:72px;height:54px;display:block}
.loader-cards i{position:absolute;inset:4px 13px;border:1px solid #b9a3e1;border-radius:6px;background:var(--history-surface);box-shadow:0 3px 9px #8d74b914;animation:keepsake-card 1.8s ease-in-out infinite;--tilt:-14deg;--shift:-10px}
.loader-cards i:nth-child(2){--tilt:13deg;--shift:10px;animation-delay:.18s}
.loader-cards i:nth-child(3){--tilt:0deg;--shift:0px;animation-delay:.36s;background:var(--history-lavender-soft)}
.loader-cards i::after{content:'';position:absolute;left:9px;right:9px;top:15px;height:2px;background:#b9a3e17a;box-shadow:0 7px #b9a3e14d,0 14px #b9a3e133}
.loader-cards b{position:absolute;right:0;top:-10px;color:var(--history-lavender-deep);font-size:20px;animation:keepsake-twinkle 1.8s ease-in-out infinite}
.loader-dots{display:inline-flex;margin-left:4px;gap:2px}.loader-dots i{font-style:normal;animation:keepsake-twinkle 1.2s ease-in-out infinite}.loader-dots i:nth-child(2){animation-delay:.2s}.loader-dots i:nth-child(3){animation-delay:.4s}
.events.history-enter>.item:nth-of-type(-n+8){animation:keepsake-reveal 420ms ease-out both}
.events.history-enter>.item:nth-of-type(2){animation-delay:35ms}.events.history-enter>.item:nth-of-type(3){animation-delay:70ms}.events.history-enter>.item:nth-of-type(4){animation-delay:105ms}.events.history-enter>.item:nth-of-type(n+5){animation-delay:140ms}
@keyframes keepsake-sway{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(5deg) translateY(-2px)}}
@keyframes keepsake-twinkle{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:1;transform:scale(1.08)}}
@keyframes keepsake-card{0%,100%{transform:translateX(var(--shift)) rotate(var(--tilt))}50%{transform:translate(var(--shift),-5px) rotate(var(--tilt))}}
@keyframes keepsake-reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.history-keepsake *,.history-loader *,.events.history-enter>.item:nth-of-type(n){animation:none}}

/* A visible, playful header; the timeline itself stays still. */
.intro{position:relative;isolation:isolate;}
.intro> :not(.history-stardust){position:relative;z-index:1}
.history-stardust{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:0}
.history-stardust i{position:absolute;font-style:normal;color:#a184cb;font-size:22px;left:57%;top:22%;animation:history-star-float 5s ease-in-out infinite}
.history-stardust i:nth-child(2){left:78%;top:60%;font-size:30px;animation-delay:-1.5s;animation-duration:7s}
.history-stardust i:nth-child(3){left:91%;top:18%;font-size:13px;animation-delay:-3s}
.history-stardust i:nth-child(4){left:43%;top:74%;font-size:14px;animation-delay:-2s;animation-duration:6s}
.history-stardust i:nth-child(5){left:68%;top:40%;font-size:12px;animation-delay:-4s;animation-duration:8s}
.keepsake-paw{animation:keepsake-sway 3s ease-in-out infinite}
.keepsake-star{animation-iteration-count:infinite}
.cat-seal svg{animation:history-cat-sway 5s ease-in-out infinite;transform-origin:50% 75%}
.cat-seal svg ellipse{transform-box:fill-box;transform-origin:center;animation:history-cat-blink 5.5s infinite}
.chapter{position:relative;transition:transform 200ms ease,box-shadow 200ms ease,border-color 200ms ease}
.chapter:hover,.chapter:focus-visible{transform:none}
@keyframes history-star-float{0%,100%{transform:translateY(5px) rotate(-10deg);opacity:.35}50%{transform:translateY(-9px) rotate(12deg);opacity:.85}}
@keyframes history-cat-sway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(5deg) translateY(-3px)}}
@keyframes history-cat-blink{0%,43%,47%,100%{scale:1 1}45%{scale:1 .12}}
@media(max-width:550px){.history-stardust i{font-size:18px}.history-stardust i:nth-child(2){font-size:22px;top:40%}.history-stardust i:nth-child(4){top:57%}}
@media(prefers-reduced-motion:reduce){.history-stardust i,.cat-seal svg,.cat-seal svg ellipse,.keepsake-paw,.keepsake-star{animation:none}.chapter,.chapter::after{transition:none}.chapter:hover,.chapter:focus-visible{transform:none}}

.chapter-toggle{display:none}
#chapters[hidden]{display:none}
@media(max-width:550px){.chapter-toggle{display:block;width:100%;padding:12px;margin:0 0 16px;border:1px solid var(--history-line);border-radius:12px;background:var(--history-surface);color:var(--history-lavender-deep);font:inherit;font-size:12px;text-align:left;cursor:pointer}.chapter-toggle:focus-visible{outline:2px solid var(--history-lavender-deep);outline-offset:3px}}

.source-section-title{margin:13px 0 5px;font-size:11px;color:var(--history-text)}
.verification-help{padding:8px 9px;border-left:2px solid var(--history-lavender);background:var(--history-lavender-soft);border-radius:0 6px 6px 0}
.verification-label{white-space:nowrap}.verification-label.confirmed{color:#3b7162}

.data-load-status{margin:14px 0;padding:10px 12px;border:1px solid var(--history-line);border-radius:10px;color:var(--history-muted);font-size:12px;line-height:1.6}
.data-load-status[hidden]{display:none}
.data-load-status button,#retryHistory{padding:6px 10px;border:1px solid var(--history-line);border-radius:7px;background:var(--history-surface);color:var(--history-lavender-deep);font:inherit;cursor:pointer}

.reset-filters{display:block;margin:0 0 12px auto;padding:6px 10px;border:1px solid var(--history-line);border-radius:8px;background:var(--history-surface);color:var(--history-muted);font:inherit;font-size:12px;cursor:pointer}

.scope-help{font-size:12px;color:var(--history-muted);line-height:1.6;margin:4px 0 8px}.history-scope{font-size:12px;color:var(--history-lavender-deep);line-height:1.6;margin:0 0 18px;overflow-wrap:anywhere}.all-chapters[aria-pressed="true"]{font-weight:700}

/* Keep filter actions aligned and comfortably tappable on narrow screens. */
.filter-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-top:12px}
.filter-actions .video-only-filter{display:flex;flex:1 1 185px;min-width:0;min-height:44px;box-sizing:border-box;margin:0;padding:8px 0;line-height:1.5}
.filter-actions .video-only-filter input{flex:none;width:18px;height:18px}
.filter-actions .video-only-filter span{min-width:0;overflow-wrap:anywhere}
.filter-actions .reset-filters{flex:none;min-height:44px;margin:0 0 0 auto;box-sizing:border-box}
.filter-actions .reset-filters:focus-visible{outline:2px solid var(--history-lavender-deep);outline-offset:3px}

/* Warm ivory paper with restrained card edges; preserve the lavender identity. */
.notice{line-height:1.7}
.month-title{padding-bottom:10px;border-bottom:1px solid var(--history-line);letter-spacing:-.025em}
.item .name{line-height:1.65;letter-spacing:-.02em}
.item .date{color:#73716c}
.chapter .desc{line-height:1.6}
.filters select,.filters input{border-radius:12px}
.view-switch{border:1px solid var(--history-line)}
.calendar-view{background-color:var(--history-surface)}
.source-float-toolbar{background:linear-gradient(180deg,#ffffff,#fafaf8)}
@media(max-width:550px){.filters select,.filters input{border-radius:11px}.item .name{line-height:1.6}.month-title{padding-bottom:8px}}

/* 2026-10-30: conservative history UX improvements. Always use the site's bright theme. */
.category-detail-filter[hidden]{display:none!important}
.empty p{margin:0 0 10px}
.search-all-periods{padding:8px 12px;border:1px solid var(--history-line);border-radius:9px;background:var(--history-surface);color:var(--history-lavender-deep);font:inherit;cursor:pointer}
.search-all-periods:focus-visible,.events .item:focus-visible{outline:2px solid var(--history-lavender-deep);outline-offset:2px}
.verification-note{margin:16px 0 0;color:var(--history-muted);font-size:11px;line-height:1.75}
.source-trigger-labeled{min-height:24px;padding:3px 8px;white-space:nowrap;border-radius:7px}
.catalog-search-label{display:flex;flex-direction:column;gap:5px;margin:12px 0 6px;color:var(--history-muted);font-size:11px}
.catalog-search{width:100%;min-height:38px;padding:8px 11px;border:1px solid var(--history-line);border-radius:9px;background:#fff;color:var(--history-text);font:inherit;font-size:13px}
.catalog-count{margin:4px 0 8px;font-size:11px}
.catalog-more{display:block;margin:11px auto 2px;padding:8px 13px;border:1px solid var(--history-line);border-radius:9px;background:var(--history-surface);color:var(--history-lavender-deep);font:inherit;cursor:pointer}
.catalog-more[hidden]{display:none}
.cal-year-unknown{display:block;width:100%;margin:12px 0 0;padding:10px 12px;border:1px dashed var(--history-lavender);border-radius:10px;background:var(--history-lavender-soft);color:var(--history-lavender-deep);font:inherit;font-size:12px;text-align:left;cursor:pointer}
.cal-year-unknown.is-selected{border-style:solid;background:#eee5fb;font-weight:700}
.cal-year-unknown:focus-visible,.catalog-more:focus-visible,.catalog-search:focus-visible,.source-trigger-labeled:focus-visible{outline:2px solid var(--history-lavender-deep);outline-offset:2px}

/* 2026-11-03 | Public history notes: preserve narrative detail and source-specific context. */
.source-public-story{line-height:1.75!important;color:var(--history-text)!important;word-break:keep-all;overflow-wrap:anywhere}
.source-public-caveat{line-height:1.6!important;word-break:keep-all;overflow-wrap:anywhere}
.source-float .source-public-story,.source-float .source-public-caveat{font-size:12px}
.source-panel .source-section-title{margin-top:13px}






/* 2026-11-18 — minimal history filter: one toolbar, no nested cards */
.history-scope{
  margin:3px 0 16px;
  color:#89858d;
  font-size:12px;
  line-height:1.5;
}
.history-filterbar{
  margin:12px 0 23px;
  padding:0 0 13px;
  background:transparent;
  border:0;
  border-bottom:1px solid #e8e5e6;
  border-radius:0;
  box-shadow:none;
}
.history-filterbar .filters{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  column-gap:12px;
  row-gap:13px;
}
.history-filterbar .filters label{
  flex:1 1 142px;
  min-width:0;
  max-width:none;
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.history-filterbar .filters .category-detail-filter{flex:1 1 144px}
.history-filterbar .filters label.search{flex:2 1 228px}
.history-filterbar .filter-label{
  display:block;
  padding-left:1px;
  font-size:12px;
  font-weight:600;
  color:#6e6b72;
  letter-spacing:0;
}
.history-filterbar .filters select,
.history-filterbar .filters input{
  box-sizing:border-box;
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  height:44px;
  min-height:44px;
  padding:0 13px;
  border:1px solid #e2dfe5!important;
  border-radius:10px;
  background:#fff!important;
  color:#312e35;
  box-shadow:none!important;
  font-size:13px;
  font-weight:500;
}
.history-filterbar .filters select:hover,
.history-filterbar .filters input:hover{border-color:#cfc8d7!important}
.history-filterbar .filters select:focus-visible,
.history-filterbar .filters input:focus-visible{
  border-color:#a992cb!important;
  outline:2px solid rgba(177,148,213,.28);
  outline-offset:1px;
}
.history-filterbar .filters input::placeholder{color:#aaa5af;opacity:1}
.history-filterbar .filter-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px 24px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #f0edf1;
}
.history-filterbar .filter-actions{
  display:flex;
  flex:0 1 auto;
  gap:11px 22px;
  flex-wrap:wrap;
  align-items:center;
  margin:0;
}
.history-filterbar .filter-actions .video-only-filter{
  display:inline-flex;
  align-items:center;
  flex:0 1 auto;
  min-width:0;
  min-height:0;
  gap:7px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#77737b;
  font-size:12px;
  font-weight:500;
  line-height:1.4;
  cursor:pointer;
}
.history-filterbar .filter-actions .video-only-filter input{
  flex:none;
  width:15px;
  height:15px;
  margin:0;
  accent-color:#8d74b9;
}
.history-filterbar .filter-actions .video-only-filter span{
  line-height:1.4;
  word-break:keep-all;
}
.history-filterbar .filter-feedback{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:13px;
  margin-left:auto;
}
.history-filterbar .summary{
  margin:0;
  font-size:12px;
  font-weight:500;
  color:#77727d;
  white-space:nowrap;
}
.history-filterbar .reset-filters{
  margin:0;
  padding:4px 2px;
  min-width:0;
  min-height:0;
  border:none;
  border-radius:0;
  background:transparent;
  color:#8976a0;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}
.history-filterbar .reset-filters:hover{
  text-decoration:underline;
  text-underline-offset:3px;
  color:#6c4a96;
}
.history-filterbar .reset-filters:focus-visible,
.history-filterbar .filter-actions input:focus-visible{
  outline:2px solid #bba5d8;
  outline-offset:3px;
}
.history-filterbar .verification-details{
  margin-top:6px;
  font-size:11px;
  color:#9a959f;
  line-height:1.6;
}
.history-filterbar .verification-details summary{
  display:inline-block;
  cursor:pointer;
  color:#9892a0;
  text-decoration:underline;
  text-decoration-color:transparent;
  text-underline-offset:3px;
}
.history-filterbar .verification-details summary:hover{
  text-decoration-color:currentColor;
}
.history-filterbar .verification-details p{
  max-width:680px;
  margin:5px 0 0;
  font-size:11px;
}
.history-filterbar .data-load-status{margin-top:10px}
/* Existing resource notice should not look like another giant card. */
.notice{
  padding:0;
  margin:22px 0 25px;
  border:0!important;
  border-radius:0;
  box-shadow:none;
  background:transparent!important;
  color:#878189;
  font-size:12px;
}
@media (max-width:720px){
  .history-filterbar .filters label{flex:1 1 calc(50% - 8px)}
  .history-filterbar .filters label.search{flex:1 1 100%}
  .history-filterbar .filter-feedback{margin-left:0}
}
@media (max-width:520px){
  .history-filterbar .filters{gap:12px 10px}
  .history-filterbar .filters label{flex:1 1 calc(50% - 5px)}
  .history-filterbar .filters .category-detail-filter{flex:1 1 calc(50% - 5px)}
  .history-filterbar .filters .search{flex:1 1 100%}
  .history-filterbar .filters select,
  .history-filterbar .filters input{height:42px;min-height:42px;border-radius:9px}
  .history-filterbar .filter-bottom{align-items:flex-start}
  .history-filterbar .filter-actions{gap:10px 15px}
  .history-filterbar .filter-feedback{width:100%;justify-content:space-between}
}

/* Respect hidden filter controls. */
.history-filterbar .filter-actions .video-only-filter[hidden]{display:none!important}

/* 2026-11-26: denser, staggered archive watermark; never intercept interaction. */
:root{
  --history-watermark-dense:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='152' viewBox='0 0 320 152'%3E%3Cg fill='%23ad96d0' fill-opacity='.14' font-family='Arial,sans-serif' font-size='21' font-weight='700' letter-spacing='3' text-anchor='middle'%3E%3Ctext x='79' y='42' transform='rotate(-12 79 42)'%3Epilsae%3C/text%3E%3Ctext x='239' y='118' transform='rotate(-12 239 118)'%3Epilsae%3C/text%3E%3C/g%3E%3C/svg%3E");
}
.events,.calendar-view{
  background-image:var(--history-watermark-dense);
  background-repeat:repeat;
  background-position:20px 0;
  background-size:320px 152px;
}
.calendar-view .item{
  background-image:var(--history-watermark-dense);
  background-repeat:repeat;
  background-size:320px 152px;
}
.events .item::before,.calendar-view .item::before{opacity:.10}
.events .item::after,.calendar-view .item::after{opacity:.07}
@media(max-width:550px){
  .events,.calendar-view,.calendar-view .item{background-size:240px 114px}
  .events .item::before,.calendar-view .item::before{opacity:.085}
  .events .item::after,.calendar-view .item::after{opacity:.05}
}
/* Discourage ordinary copying while retaining form editing, focus and scrolling. */
body.history-copy-protected{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
body.history-copy-protected :is(input,textarea,select,option,[contenteditable]:not([contenteditable="false"])),
body.history-copy-protected [contenteditable]:not([contenteditable="false"]) *{
  -webkit-user-select:text;user-select:text;-webkit-touch-callout:default;
}
body.history-copy-protected :is(a,img){-webkit-user-drag:none}

/* Calendar: preserve seven-column grid; offer month overview and explicit detail jump. */
.cal-month-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.cal-all,.cal-jump{font:inherit;font-size:12px;min-height:40px;padding:8px 12px;border:1px solid var(--history-line);border-radius:8px;color:var(--history-lavender-deep);background:light-dark(#fff,#252333);cursor:pointer}
.cal-all.is-selected{background:var(--history-lavender-soft);border-color:var(--history-lavender-deep);font-weight:700}
.cal-all:focus-visible,.cal-jump:focus-visible{outline:2px solid var(--history-lavender-deep);outline-offset:2px}
.cal-day.is-selected{outline:2px solid var(--history-lavender-deep);outline-offset:-2px}
.cal-detail-title{scroll-margin-top:90px}
@media(max-width:550px){.cal-nav,.cal-month-select select{min-height:44px}.cal-nav{min-width:44px}.cal-month-actions{gap:6px}.cal-all,.cal-jump{min-height:44px;padding:7px 8px}.cal-all{flex:1 1 auto}.cal-jump{flex:1 1 auto}.cal-hint{font-size:11px;line-height:1.6}}
