@import url("stock_sheet_header.css?v=20261012-sheet-headers");
@import url("stock_indicator_guide.css?v=20261013-indicator-guide");
/* Shared top-layer sheet, hosted by the app shell or the standalone reader. */
html.tr-scores-sheet-open, html body.tr-scores-sheet-open { overflow:hidden !important; }
html body #tr-scores-dialog.tr-scores-sheet {
  position:fixed; inset:auto 0 var(--tr-scores-bottom-inset,0px); margin:0 auto; padding:0 16px max(18px,env(safe-area-inset-bottom));
  width:100%; max-width:460px; min-height:0; max-height:min(90dvh,calc(var(--tr-scores-available-height,100dvh) - 12px)); height:auto; box-sizing:border-box;
  overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin;
  border:1px solid #344751; border-bottom:0; border-radius:16px 16px 0 0;
  background:#101d24; color:#e5edf2; color-scheme:dark;
  box-shadow:0 -12px 48px rgba(0,0,0,.3);
  font:400 14px/1.4 "IBM Plex Sans",system-ui,sans-serif; text-align:left;
}
html body #tr-scores-dialog:not([open]) { display:none !important; }
html body #tr-scores-dialog[open] { display:block; }
html body #tr-scores-dialog::backdrop { background:rgba(0,0,0,.5); }
html body #tr-scores-dialog *,html body #tr-scores-dialog *::before { box-sizing:border-box; }
html body #tr-scores-dialog .tr-scores-sheet__heading {
  position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between;
  gap:12px; min-height:52px; margin:0; background:#101d24; border-bottom:1px solid #2a3b45;
}
html body #tr-scores-dialog #tr-scores-heading { margin:0; color:#e5edf2; font:600 17px/1.3 "IBM Plex Sans",system-ui,sans-serif; }
html body #tr-scores-dialog #tr-scores-heading:focus { outline:none; }
html body #tr-scores-dialog .tr-scores-sheet__close {
  flex:none; display:grid; place-items:center; min-width:44px; min-height:44px; padding:0;
  border:0; border-radius:8px; background:transparent; color:#bacbd5; font:400 26px/1 system-ui,sans-serif; cursor:pointer;
}
html body #tr-scores-dialog .tr-scores-sheet__close svg { width:16px; height:16px; }
html body #tr-scores-dialog .tr-scores-sheet__close:focus-visible { outline:2px solid #a5c9de; outline-offset:-4px; }
html body #tr-scores-dialog .tr-scores-sheet__body { padding:12px 0 0; overflow:visible; }
html body #tr-scores-dialog.tr-indicator-help { max-width:480px; border-color:#355056; background:#091216; }
html body #tr-scores-dialog.tr-indicator-help::backdrop { background:rgba(0,7,10,.58); }
html body #tr-scores-dialog.tr-indicator-help .tr-scores-sheet__heading { background:#091216; border-color:#263a40; }
html body #tr-scores-dialog.tr-indicator-help .tr-scores-sheet__body { padding-top:0; }
html body #tr-scores-dialog .tr-indicator-help__overview { padding:12px 0; }
html body #tr-scores-dialog .tr-indicator-help__intro { margin:8px 0 0; color:#a8bec5; font:400 13px/1.5 "IBM Plex Sans",system-ui,sans-serif; }
html body #tr-scores-dialog .tr-indicator-help__date { display:grid; gap:3px; margin:0; color:#9cb4bb; font:400 12px/1.4 "IBM Plex Sans",system-ui,sans-serif; }
html body #tr-scores-dialog .tr-indicator-help__date strong { color:#cde3e5; font-size:13px; font-weight:550; }
html body #tr-scores-dialog #tr-masthead-scores.tr-signal-strip {
  display:grid !important; position:static !important; inset:auto !important; transform:none !important;
  grid-template-columns:minmax(0,1fr); gap:12px; width:100%; height:auto; min-height:0;
  margin:0; padding:0; border:0; overflow:visible; text-align:left;
}
html body #tr-scores-dialog .tr-signal-cluster { display:block; padding:0; min-width:0; }
html body #tr-scores-dialog .tr-signal-cluster--ai::before { display:none; }
html body #tr-scores-dialog .tr-signal-cluster__label {
  display:block; margin:0 0 6px; color:#9baeb9; font:500 11px/16px "IBM Plex Sans",system-ui,sans-serif; letter-spacing:.04em;
}
html body #tr-scores-dialog .tr-signal-group { display:grid; grid-template-columns:minmax(0,1fr); gap:0; width:100%; height:auto; }
html body #tr-scores-dialog .tr-signal {
  position:static; display:grid; grid-template-columns:18px minmax(0,1fr) 76px 28px; grid-template-rows:auto;
  align-items:center; justify-items:start; gap:8px; width:100%; min-width:0; min-height:32px; height:auto;
  margin:0; padding:3px 0; border:0; border-radius:0; font:inherit; background:transparent;
}
html body #tr-scores-dialog.tr-scores-sheet--reader .tr-signal { color:var(--signal-color,#82929e); }
html body #tr-scores-dialog .tr-signal__icon { display:grid; place-items:center; grid-column:1; grid-row:1; width:18px; height:18px; }
html body #tr-scores-dialog .tr-signal__icon svg { display:block; width:18px; height:18px; }
html body #tr-scores-dialog .tr-signal__label { grid-column:2; grid-row:1; color:#d5e0e7; font:400 13px/16px "IBM Plex Sans",system-ui,sans-serif; overflow-wrap:normal; }
html body #tr-scores-dialog .tr-signal__value { grid-column:4; grid-row:1; justify-self:end; color:var(--signal-color); font:600 15px/18px "IBM Plex Sans",system-ui,sans-serif; font-variant-numeric:tabular-nums; }
html body #tr-scores-dialog .tr-signal__status { grid-column:3; grid-row:1; justify-self:end; color:#9baeb9; text-align:right; font:400 11px/13px "IBM Plex Sans",system-ui,sans-serif; }
html body #tr-scores-dialog .tr-signal__tooltip { display:none !important; }
html body #tr-scores-dialog .tr-signal-cluster--ai { padding-top:10px; border-top:1px solid #2a3b45; }
html body #tr-scores-dialog .tr-signal-group--ai { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
html body #tr-scores-dialog .tr-signal-group--ai .tr-signal {
  grid-template-columns:18px minmax(0,1fr); grid-template-rows:28px auto auto; gap:2px 6px; align-content:start; min-height:0; padding:0;
}
html body #tr-scores-dialog .tr-signal-group--ai .tr-signal__label { grid-column:1/-1; grid-row:2; font-size:11px; line-height:13px; align-self:start; }
html body #tr-scores-dialog .tr-signal-group--ai .tr-signal__value { grid-column:2; grid-row:1; justify-self:start; font-size:20px; line-height:24px; }
html body #tr-scores-dialog .tr-signal-group--ai .tr-signal__status { grid-column:1/-1; grid-row:3; justify-self:start; text-align:left; }


/* Source dates use dense metadata, alongside each score group. */
html body #tr-scores-dialog .tr-signal-cluster__heading {
  display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:2px 12px; margin-bottom:6px;
}
html body #tr-scores-dialog .tr-signal-cluster__heading .tr-signal-cluster__label { margin:0; letter-spacing:normal; }
html body #tr-scores-dialog .tr-signal-cluster__date {
  color:#9baeb9; font:400 11px/16px "IBM Plex Sans",system-ui,sans-serif; letter-spacing:normal;
}

/* Availability details reuse the shared metadata type role. */
html body #tr-scores-dialog .tr-factor-availability { margin-top:8px; }
html body #tr-scores-dialog .tr-factor-availability summary {
  min-height:44px; align-content:center; cursor:pointer;
  font-family:var(--tr-type-family,"IBM Plex Sans",system-ui,sans-serif);
  font-size:var(--tr-type-meta-size,12px); line-height:var(--tr-type-meta-line,16px); font-weight:var(--tr-type-label-weight,500);
  letter-spacing:normal; text-transform:none;
}
html body #tr-scores-dialog .tr-factor-availability p {
  margin:0 0 10px; color:#b5c6d0;
  font-family:var(--tr-type-family,"IBM Plex Sans",system-ui,sans-serif);
  font-size:var(--tr-type-meta-size,12px); line-height:var(--tr-type-meta-line,16px); font-weight:var(--tr-type-body-weight,400);
  letter-spacing:normal; text-transform:none;
}
html body #tr-scores-dialog .tr-factor-availability strong { font-weight:var(--tr-type-label-weight,500); }
html body #tr-scores-dialog .tr-factor-availability summary:focus-visible { outline:2px solid #a5c9de; outline-offset:2px; }

/* Request failures offer an ordinary, accessible retry control. */
html body #tr-scores-dialog .tr-factor-load-error { margin:0; color:inherit; }
html body #tr-scores-dialog [data-profile-retry] {
  min-height:44px; margin-left:8px; padding:8px 12px; border:1px solid #344751;
  border-radius:5px; background:transparent; color:inherit; cursor:pointer;
  font:var(--tr-type-label-weight,500) var(--tr-type-meta-size,12px)/var(--tr-type-meta-line,16px) var(--tr-type-family,"IBM Plex Sans",system-ui,sans-serif);
  letter-spacing:normal; text-transform:none;
}
html body #tr-scores-dialog [data-profile-retry]:focus-visible { outline:2px solid #a5c9de; outline-offset:2px; }
