/* Ruction Elements v0.2.45 — timeline spacing, note interaction and unified sticky header.
   Presentation-only changes; no changes to stored notes or Google metrics. */
#appShell .page-top {
  position: sticky!important;
  top: 0!important;
  z-index: 45!important;
  background:#050608!important;
  border:0!important;
  border-bottom:1px solid #203040!important;
  border-radius:0!important;
  box-shadow:0 4px 15px #000a!important;
  backdrop-filter:none!important;
  margin:-13px -18px 16px!important;
  padding:13px 18px!important;
  min-height:72px!important;
  box-sizing:border-box;
}
#appShell .page-top #pageTitle,#appShell .page-top h1{color:#f6fbff!important}
#appShell .page-top #pageSubtitle{color:#aabecd!important}
/* 48px is the outer height of every selection and header action. */
#appShell .page-top .top-controls {display:flex;align-items:center;gap:8px!important;flex-wrap:nowrap;max-width:none!important}
#appShell .page-top .top-controls .control-field,
#appShell .page-top .top-controls .owner-customer-wrap,
#appShell .page-top .premium-signout,
#appShell .page-top .theme-toggle{
  height:48px!important;min-height:48px!important;max-height:48px!important;
  box-sizing:border-box!important;align-self:center!important;margin:0!important;
  border:1px solid #294055!important;border-radius:10px!important;
  background:#0e1c2a!important;color:#eef8ff!important;box-shadow:none!important;
}
#appShell .page-top .top-controls .website-picker{width:230px!important;min-width:198px!important}
#appShell .page-top .top-controls .date-control{width:185px!important;min-width:165px!important}
#appShell .page-top .top-controls .owner-customer-wrap{width:176px!important;min-width:164px!important;max-width:176px!important;position:relative}
#appShell .page-top .premium-signout{width:48px!important;min-width:48px!important;flex:0 0 48px!important;display:flex!important}
#appShell .page-top .theme-toggle{min-width:80px!important;flex:0 0 80px!important;padding:0 10px!important}
#appShell .page-top .top-controls .control-field select,
#appShell .page-top .top-controls .owner-customer-wrap select{
  appearance:none!important;-webkit-appearance:none!important;
  background:transparent!important;color:#e5f1fc!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
  height:100%!important;max-height:100%!important;
  padding:0 23px 0 3px!important;line-height:1.3;
}
#appShell .page-top .website-picker::after,
#appShell .page-top .date-control::after,
#appShell .page-top .owner-customer-wrap::after{
  content:''!important;position:absolute!important;right:13px!important;
  top:50%!important;width:8px!important;height:8px!important;
  border:0!important;border-right:2px solid #80def4!important;border-bottom:2px solid #80def4!important;
  background:none!important;transform:translateY(-67%) rotate(45deg)!important;
  pointer-events:none!important;z-index:6!important;border-radius:0!important;
}
#appShell .page-top .website-picker .top-control-primary,
#appShell .page-top .date-control .top-control-primary {color:#f2f9ff!important;padding-right:21px}
#appShell .page-top .website-picker .top-control-secondary,
#appShell .page-top .date-control .top-control-secondary {color:#aac2d3!important}
#appShell .page-top .top-controls .owner-customer-wrap>label{color:#87cdeb!important}
#appShell .page-top .theme-toggle:hover,#appShell .page-top .premium-signout:hover,
#appShell .page-top .top-controls .control-field:hover{border-color:#2c9dc0!important;background:#14283b!important}
/* Timeline: all plot elements stay in the chart; the rest follows in normal flow. */
#appShell .impact-first-view .premium-traffic-card{overflow:hidden!important;min-height:0!important}
#appShell .impact-first-view .premium-chart-well{
  display:block!important;position:relative!important;
  height:390px!important;min-height:390px!important;
  overflow:hidden!important;margin:9px 0 0!important;padding:0!important;
  border:0!important;border-radius:8px!important;box-sizing:border-box!important;
}
#appShell .impact-first-view .premium-chart-well .live-chart{
  position:relative!important;display:block!important;width:100%!important;
  height:390px!important;min-height:390px!important;max-height:390px!important;
  overflow:hidden!important;contain:layout!important;
}
#appShell .impact-first-view .premium-chart-well .live-chart[hidden],
#appShell .impact-first-view .premium-chart-well .premium-empty[hidden]{display:none!important}
#appShell .impact-first-view .premium-chart-well .live-chart>svg{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;max-height:100%!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
#appShell .impact-first-view .premium-chart-well .premium-empty{height:100%!important}
#appShell .live-chart .timeline-marker{z-index:9!important}
#appShell .timeline-marker-label{max-width:122px!important;white-space:nowrap!important}
#appShell .timeline-chart-caption{padding:15px 0 8px!important;border-top:1px solid #22384a!important;margin-top:11px!important;gap:10px}
#appShell .timeline-manage-notes{
  min-height:36px;background:transparent;color:#9fdef4;border:1px solid #31536a;
  font-size:12px;font-weight:750;padding:7px 11px;cursor:pointer;border-radius:10px!important;
}
#appShell .timeline-manage-notes:hover,#appShell .timeline-manage-notes[aria-expanded="true"]{background:#143347;color:#e6f7ff}
#appShell .timeline-notes-drawer{padding:12px 14px;border:1px solid #294b60;border-radius:12px;background:#0c2030;margin:8px 0 13px}
#appShell .timeline-notes-drawer[hidden]{display:none!important}
#appShell .timeline-notes-drawer-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#e4f6ff;font-size:13px}
#appShell .timeline-notes-list{margin:0 0 2px!important}
#appShell .timeline-note-row{font-size:12px!important;padding:7px 11px!important}
#appShell .timeline-no-notes{font-size:12px;color:#b3c9d9}
#appShell .impact-first-view .premium-chart-bottom{margin-top:16px!important;padding-top:14px!important;gap:12px!important;flex-wrap:wrap}
@media(max-width:1260px){
 #appShell .page-top{align-items:flex-start!important;flex-wrap:wrap!important}
 #appShell .page-top .page-header-title{flex:1 1 100%!important}
 #appShell .page-top .top-controls{flex:1 1 auto!important;max-width:100%!important;flex-wrap:wrap!important}
}
@media(max-width:760px){
 #appShell .page-top{margin:-13px -18px 14px!important;padding:12px 14px!important}
 #appShell .page-top .top-controls .website-picker,
 #appShell .page-top .top-controls .date-control,
 #appShell .page-top .top-controls .owner-customer-wrap{flex:1 1 175px!important;width:auto!important;max-width:none!important;min-width:0!important}
 #appShell .impact-first-view .premium-chart-well,
 #appShell .impact-first-view .premium-chart-well .live-chart{height:340px!important;min-height:340px!important;max-height:340px!important}
}
