/* Storyverse / Cronologia: editorial journal design, responsive, theme-aware. */
#page-history{
  --sv-history-glow:color-mix(in srgb,var(--purple) 18%,transparent);
  --sv-history-line:color-mix(in srgb,var(--edge) 84%,var(--purple) 16%);
  width:100%;max-width:1080px;margin-inline:auto;padding-bottom:26px;
}
#page-history>.page-head{
  position:relative;overflow:hidden;isolation:isolate;
  padding:clamp(24px,4vw,42px) clamp(21px,4vw,44px);
  margin:0 0 17px;border:1px solid var(--sv-history-line);
  border-radius:clamp(21px,3vw,30px);
  background:
    radial-gradient(ellipse at 88% 2%,color-mix(in srgb,var(--purple) 26%,transparent),transparent 56%),
    linear-gradient(145deg,color-mix(in srgb,var(--panel) 94%,var(--purple) 6%),var(--panel));
  box-shadow:0 18px 48px rgba(0,0,0,.075);
}
#page-history>.page-head::after{
  content:'';position:absolute;right:-48px;top:-70px;width:240px;height:240px;
  border:1px solid color-mix(in srgb,var(--purple) 23%,transparent);
  border-radius:50%;pointer-events:none;box-shadow:0 0 0 28px color-mix(in srgb,var(--purple) 5%,transparent),0 0 0 58px color-mix(in srgb,var(--purple) 4%,transparent);z-index:-1;
}
#page-history>.page-head .eyebrow{display:inline-flex;align-items:center;gap:8px;letter-spacing:.16em;font-size:11px}
#page-history>.page-head .eyebrow::before{content:' ';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--purple);box-shadow:0 0 0 4px var(--sv-history-glow)}
#page-history>.page-head h1{font-size:clamp(30px,5vw,48px);font-weight:850;letter-spacing:-.055em;line-height:1.08;margin:12px 0 11px}
#page-history>.page-head p{max-width:620px;line-height:1.7;font-size:clamp(13px,1.8vw,15px);margin:0;color:var(--muted)}
#page-history .sv-history-nav{
  position:sticky;top:12px;z-index:12;display:flex;gap:7px;align-items:center;
  margin:0 0 20px;padding:7px;border:1px solid var(--sv-history-line);
  border-radius:18px;background:var(--panel);
  box-shadow:0 9px 24px rgba(0,0,0,.10);
  overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;
}
#page-history .sv-history-nav button{
  appearance:none;border:1px solid transparent;background:transparent;color:var(--muted);
  display:flex;gap:9px;align-items:center;justify-content:center;
  min-width:max-content;flex:1;padding:11px 13px;border-radius:12px;
  font-size:12px;font-weight:720;line-height:1.2;white-space:nowrap;
  transition:background .18s,border-color .18s,color .18s,transform .18s;
}
#page-history .sv-history-nav button:hover{color:var(--fg);background:var(--soft)}
#page-history .sv-history-nav button.is-active{
  background:color-mix(in srgb,var(--purple) 13%,var(--panel));
  color:var(--fg);border-color:color-mix(in srgb,var(--purple) 36%,var(--edge));
  box-shadow:0 3px 12px color-mix(in srgb,var(--purple) 10%,transparent);
}
#page-history .sv-history-nav-icon{
  display:grid;place-items:center;width:25px;height:25px;border-radius:9px;
  font-size:16px;line-height:1;background:var(--soft);color:var(--purple);
}
#page-history .sv-history-nav button.is-active .sv-history-nav-icon{background:color-mix(in srgb,var(--purple) 22%,var(--panel))}
#page-history :is(#sk-catalog-history,#sk-site-changes,#sk-automation-history,#sv-daily-progress){
  scroll-margin-top:100px;
  position:relative;margin:0 0 21px;padding:clamp(17px,2.8vw,27px);
  background:var(--panel);border:1px solid var(--sv-history-line);
  border-radius:24px;box-shadow:0 13px 34px rgba(0,0,0,.052);min-width:0;
}
#page-history :is(#sk-catalog-history,#sk-site-changes,#sk-automation-history,#sv-daily-progress)::before{
  content:'';position:absolute;top:0;left:29px;right:29px;height:2px;
  background:linear-gradient(90deg,var(--purple),color-mix(in srgb,var(--purple) 8%,transparent));
  border-radius:0 0 4px 4px;opacity:.65;
}
#page-history :is(.sk-ch-head,.sk-updates-head,.sk-auto-head,.sv-dp-header){
  display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin:0 0 17px;
}
#page-history :is(.sk-ch-head,.sk-updates-head,.sk-auto-head,.sv-dp-header) h2{
  font-size:clamp(19px,2.5vw,25px);letter-spacing:-.038em;line-height:1.2;margin:5px 0 7px;
}
#page-history :is(.sk-ch-head,.sk-updates-head,.sk-auto-head) p{
  font-size:13px;line-height:1.65;max-width:650px;margin:0;color:var(--muted);
}
#page-history :is(.sk-ch-head,.sk-updates-head,.sk-auto-head,.sv-dp-header) .eyebrow{
  color:var(--purple);font-weight:780;font-size:10px;letter-spacing:.13em;
}
#page-history :is(#historyChips,.sk-ch-status-filters,.sk-updates-filters,.sk-auto-filters){
  display:flex;align-items:center;flex-wrap:nowrap;overflow-x:auto;
  gap:8px;padding:3px 2px 10px;margin:8px 0 9px;
  scrollbar-width:thin;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
}
#page-history :is(#historyChips,.sk-ch-status-filters,.sk-updates-filters,.sk-auto-filters) .chip{
  flex:none;white-space:nowrap;overflow-wrap:normal;border-radius:999px;
  font-size:12px;font-weight:680;padding:9px 14px;min-height:38px;
  border:1px solid var(--edge);background:var(--soft);color:var(--muted);
  scroll-snap-align:start;transition:background .16s,border-color .16s,color .16s;
}
#page-history :is(#historyChips,.sk-ch-status-filters,.sk-updates-filters,.sk-auto-filters) .chip:hover{
  background:color-mix(in srgb,var(--purple) 9%,var(--panel));color:var(--fg);
}
#page-history :is(#historyChips,.sk-ch-status-filters,.sk-updates-filters,.sk-auto-filters) .chip.active{
  color:var(--fg);border-color:color-mix(in srgb,var(--purple) 43%,var(--edge));
  background:color-mix(in srgb,var(--purple) 16%,var(--panel));
}
#page-history :is(.sk-ch-note,.sk-auto-note,.sk-updates-note){
  color:var(--muted);font-size:11px;line-height:1.65;
  background:color-mix(in srgb,var(--soft) 78%,transparent);
  border-radius:11px;padding:11px 13px;margin:12px 0 17px;
}
#page-history :is(.sk-ch-list,.sk-updates-list,.sk-auto-list){display:grid;gap:10px;min-width:0}
#page-history .sv-history-day{
  display:flex;align-items:center;gap:10px;grid-column:1/-1;
  color:var(--fg);font-size:12px;font-weight:790;letter-spacing:.008em;
  padding:11px 4px 3px;margin-top:3px;
}
#page-history .sv-history-day::after{content:'';height:1px;background:var(--sv-history-line);flex:1;min-width:20px}
#page-history .sv-history-day-dot{width:9px;height:9px;border-radius:50%;background:var(--purple);box-shadow:0 0 0 4px var(--sv-history-glow);flex:none}
#page-history :is(.sk-ch-card,.sk-updates-card,.sk-auto-event){
  position:relative;min-width:0;max-width:100%;background:var(--soft);
  border:1px solid var(--sv-history-line);border-radius:17px;
  padding:15px 17px;box-shadow:none;
  transition:transform .18s,border-color .18s,box-shadow .18s;
}
#page-history :is(.sk-ch-card,.sk-updates-card,.sk-auto-event):hover{
  transform:translateY(-1px);border-color:color-mix(in srgb,var(--purple) 39%,var(--edge));
  box-shadow:0 9px 19px rgba(0,0,0,.065);
}
#page-history #sk-catalog-history .sk-ch-card{gap:15px;align-items:center}
#page-history #sk-catalog-history .sk-ch-card>img{
  width:62px;min-width:62px;height:82px;object-fit:cover;border-radius:11px;
  border:1px solid var(--edge);background:var(--panel);
}
#page-history #sk-catalog-history .sk-ch-body{gap:5px}
#page-history #sk-catalog-history .sk-ch-body strong{font-size:11px;letter-spacing:.03em}
#page-history #sk-catalog-history .sk-ch-title{font-size:15px;font-weight:770;letter-spacing:-.014em;line-height:1.4}
#page-history #sk-catalog-history .sk-ch-body p{font-size:12px;line-height:1.55}
#page-history :is(.sk-ch-body time,.sk-auto-event time,.sk-auto-event small,.sk-updates-card time){
  display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--faint);line-height:1.45;
}
#page-history #sk-site-changes .sk-updates-card{padding:17px 19px}
#page-history #sk-site-changes .sk-updates-card-head{gap:10px;align-items:baseline}
#page-history #sk-site-changes .sk-updates-card-head strong{font-size:15px;line-height:1.45;font-weight:770;letter-spacing:-.02em}
#page-history #sk-site-changes .sk-updates-summary{font-size:13px;color:var(--muted);margin:9px 0 3px;line-height:1.7}
#page-history .sv-history-details{margin:12px 0 0;border-top:1px solid var(--sv-history-line);padding-top:10px}
#page-history .sv-history-details summary{
  cursor:pointer;display:list-item;list-style-position:inside;color:var(--purple);
  font-size:12px;font-weight:750;min-height:26px;
}
#page-history .sv-history-details[open] summary{margin-bottom:10px}
#page-history .sv-history-details ul{margin:2px 0 0;padding-left:21px;line-height:1.7;font-size:12px}
#page-history .sv-history-details li+li{margin-top:5px}
#page-history .sv-history-details .sk-updates-message{display:block;margin:11px 0 0}
#page-history .sk-updates-link,#page-history .sk-auto-link{
  display:inline-flex;align-items:center;font-size:12px;font-weight:750;
  margin-top:12px;color:var(--purple);text-underline-offset:3px;
}
#page-history #sk-automation-history .sk-auto-summary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 16px;
}
#page-history #sk-automation-history .sk-auto-stat{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:5px;min-width:0;padding:14px 15px;border:1px solid var(--sv-history-line);
  background:var(--soft);border-radius:15px;font-size:11px;line-height:1.4;
}
#page-history #sk-automation-history .sk-auto-stat strong{font-size:clamp(21px,3vw,28px);font-weight:820;line-height:1.1;letter-spacing:-.04em}
#page-history #sk-automation-history .sk-auto-event{
  border-left:1px solid var(--sv-history-line);padding-left:21px;
}
#page-history #sk-automation-history .sk-auto-event::before{
  content:'';position:absolute;left:0;top:17px;bottom:17px;width:3px;border-radius:0 4px 4px 0;background:var(--purple);
}
#page-history #sk-automation-history .sk-auto-event.success::before{background:#39ac81}
#page-history #sk-automation-history .sk-auto-event.failure::before{background:#dc6267}
#page-history #sk-automation-history .sk-auto-event.warning::before{background:#d6a74b}
#page-history #sk-automation-history .sk-auto-event h3{font-size:14px;line-height:1.45;font-weight:760}
#page-history #sk-automation-history .sk-auto-detail{font-size:12px;line-height:1.65}
#page-history #sk-automation-history .sk-auto-badge{padding:4px 9px;border-radius:999px}
#page-history :is(.sk-updates-refresh,.sk-auto-reload,.sv-dp-refresh,.sk-updates-more,.sk-auto-more,.sk-ch-more){
  display:inline-flex;justify-content:center;align-items:center;gap:6px;
  color:var(--fg);border:1px solid var(--edge);background:var(--soft);
  border-radius:11px;padding:9px 12px;min-height:38px;
  font-size:12px;font-weight:740;text-decoration:none;
}
#page-history :is(.sk-updates-refresh,.sk-auto-reload,.sv-dp-refresh,.sk-updates-more,.sk-auto-more,.sk-ch-more):hover:not(:disabled){
  color:var(--fg);border-color:var(--purple);background:color-mix(in srgb,var(--purple) 10%,var(--soft));
}
#page-history :is(.sk-updates-more,.sk-auto-more,.sk-ch-more){justify-self:start;margin-top:7px}
#page-history #sv-daily-progress{margin-bottom:30px}
#page-history #sv-daily-progress .sv-dp-group{background:var(--soft);border-radius:18px;padding:17px}
#page-history #sv-daily-progress .sv-dp-stat{border-radius:13px;background:var(--panel)}
#page-history :is(.sk-ch-list,.sk-updates-list,.sk-auto-list)>.empty{
  border:1px dashed var(--sv-history-line);border-radius:14px;padding:24px;
}
@media(min-width:820px){
  #page-history #sk-catalog-history .sk-ch-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  #page-history #sk-catalog-history .sk-ch-card{height:100%}
}
@media(max-width:680px){
  #page-history>.page-head{padding:25px 21px}
  #page-history .sv-history-nav{top:6px;padding:6px;border-radius:15px;margin-bottom:15px}
  #page-history .sv-history-nav button{padding:9px 10px;font-size:11px;gap:6px}
  #page-history .sv-history-nav-icon{width:23px;height:23px}
  #page-history :is(#sk-catalog-history,#sk-site-changes,#sk-automation-history,#sv-daily-progress){
    padding:16px 14px;border-radius:20px;margin-bottom:16px;
  }
  #page-history :is(.sk-ch-head,.sk-updates-head,.sk-auto-head,.sv-dp-header){gap:8px;flex-wrap:wrap;margin-bottom:13px}
  #page-history :is(.sk-updates-refresh,.sk-auto-reload,.sv-dp-refresh){margin-left:auto}
  #page-history #sk-catalog-history .sk-ch-card{padding:12px;gap:11px}
  #page-history #sk-catalog-history .sk-ch-card>img{width:49px;min-width:49px;height:70px}
  #page-history #sk-site-changes .sk-updates-card{padding:14px}
  #page-history #sk-automation-history .sk-auto-summary{gap:6px}
  #page-history #sk-automation-history .sk-auto-stat{padding:12px 9px;font-size:10px}
}
@media(max-width:380px){
  #page-history #sk-automation-history .sk-auto-summary{grid-template-columns:1fr}
  #page-history #sk-automation-history .sk-auto-stat{flex-direction:row;justify-content:flex-start;align-items:baseline}
  #page-history .sv-history-nav{gap:3px}
}
@media(prefers-reduced-motion:reduce){
  #page-history :is(.sv-history-nav button,.sk-ch-card,.sk-updates-card,.sk-auto-event,.chip){transition:none!important;transform:none!important}
}
