@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #152c3a;
  --muted: #8a9499;
  --line: #e5e7e6;
  --paper: #fff;
  --ground: #faf9f6;
  --green: #1c725b;
  --green-light: #edf5f0;
  --amber: #8d6e37;
  --font: Inter, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 13px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .35; }
a { color: var(--green); }
button, select, input, a, summary { touch-action: manipulation; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #59a98c; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; background: #fff; padding: 10px 15px; z-index: 20; border-radius: 4px; }
.skip-link:focus { top: 12px; }

/* A small editorial masthead gives the calendar the available space. */
.masthead { border-bottom: 1px solid var(--line); background: #fbfaf7; }
.masthead-inner { max-width: 1744px; min-height: 83px; margin: 0 auto; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 25px; flex: 0 0 auto; }
.brand-mark i { display: block; width: 5px; border-radius: 1px; background: var(--green); }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 25px; }
.brand h1 { margin: 0; font-size: 18px; letter-spacing: -.6px; font-weight: 650; line-height: 1.35; }
.masthead-right { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
.timezone-badge { color: #516570; font-size: 10px; font-weight: 650; letter-spacing: .7px; white-space: nowrap; }
.timezone-badge span { color: #a3aaac; font-size: 9px; font-weight: 400; margin-left: 5px; letter-spacing: 0; }
.language-control select { color: #52636d; border: 0; border-left: 1px solid #dde2e1; border-radius: 0; padding: 5px 23px 5px 18px; background: transparent; font-size: 11px; max-width: 148px; }
.language-control option { color: var(--ink); background: #fff; }
.page-shell { max-width: 1744px; margin: 0 auto; padding: 22px 40px 18px; min-width: 0; }

/* Tabs, date and filters form one calm control strip. */
.calendar-tabs { display: flex; gap: 27px; border-bottom: 1px solid #dce1df; margin: 0 0 22px; }
.calendar-tab { display: inline-flex; align-items: center; gap: 9px; position: relative; padding: 10px 0 15px; margin: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #90999e; font-size: 13px; font-weight: 550; white-space: nowrap; }
.calendar-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green); }
.calendar-tab:hover { color: var(--ink); }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 17px; padding: 0 5px; background: #edf0ee; color: #91a097; border-radius: 4px; font-size: 9px; font-weight: 450; }
.calendar-tab[aria-selected="true"] .tab-count { background: #e6f0e9; color: var(--green); }
.calendar-panel { background: var(--paper); border: 1px solid #dfe4e1; border-radius: 6px; overflow: hidden; min-width: 0; }
.week-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 21px 24px 18px; }
.week-title-wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; }
.week-title-wrap > .section-kicker { display: none; }
.section-kicker { margin: 0; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
#weekLabel { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.85px; line-height: 1.4; }
.week-year { color: #9ba4a8; font-size: 11px; font-weight: 450; }
.week-navigation { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.week-arrows { display: flex; flex: 0 0 auto; }
.arrow-button { border: 0; background: white; width: 33px; height: 32px; color: #73818a; font-size: 18px; line-height: 1; border-radius: 4px; }
.arrow-button:hover { color: var(--ink); background: #f2f5f2; }
.today-button { height: 32px; border: 1px solid #dce3de; background: #fff; border-radius: 4px; padding: 0 13px; font-size: 10px; white-space: nowrap; flex-shrink: 0; }
.today-button:hover { border-color: #91af9f; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 0 24px; padding: 0 0 18px; }
.filter-field { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.filter-field > span { font-size: 10px; color: #89959a; white-space: nowrap; }
.filter-field select { border: 1px solid #e3e8e4; border-radius: 4px; background: #fff; color: #536772; height: 30px; padding: 0 24px 0 9px; font-size: 10px; max-width: 260px; }
.grade-field { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.grade-field button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 8px; border: 1px solid #e2e7e5; border-radius: 5px; background: #fff; color: #52636b; font-size: 11px; }
.grade-field button[aria-pressed="true"] { border-color: #94b5a7; background: #eef6f1; color: #194a3c; }
.grade-field button:hover { border-color: #759b8c; }
.grade-count { font-size: 10px; font-variant-numeric: tabular-nums; }
.reset-button { margin-left: auto; padding: 3px 0 3px 9px; color: #8d9b9d; background: none; border: 0; font-size: 9px; text-decoration: underline; text-decoration-color: #d1dad4; text-underline-offset: 3px; }
.coverage-banner { display: flex; align-items: flex-start; gap: 7px; margin: 0 24px 16px; padding: 8px 10px; border-left: 2px solid #c6a868; background: #faf7ee; color: var(--amber); font-size: 10px; line-height: 1.6; }
.coverage-banner.is-complete { display: none; }
.status-icon { flex: 0 0 auto; font-size: 12px; line-height: 1.4; }
.notice { margin: 0 0 15px; padding: 10px 13px; border: 1px solid #ebdfc5; border-radius: 4px; color: #927637; background: #fffaf0; font-size: 11px; }

/* Five days stay together. Only this inner surface scrolls on narrow screens. */
.calendar-scroller { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #cad6cc #f4f6f4; }
.calendar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 388px; border-top: 1px solid var(--line); outline-offset: -3px; }
.day-column { display: flex; flex-direction: column; min-width: 0; position: relative; border-right: 1px solid var(--line); }
.day-column:last-child { border-right: 0; }
.day-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 16px 14px; border-bottom: 1px solid var(--line); background: #fdfefd; }
.day-header-main { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.day-name { color: #8d989a; font-size: 10px; letter-spacing: .75px; font-weight: 550; text-transform: uppercase; }
.day-number { color: #324b59; font-size: 22px; line-height: 1; font-weight: 550; letter-spacing: -.65px; }
.day-today-tag { color: var(--green); font-size: 8px; background: #e9f4ec; border-radius: 3px; padding: 2px 5px; }
.day-count { font-size: 9px; font-weight: 450; color: #adb8b2; font-variant-numeric: tabular-nums; }
.is-today > .day-header { box-shadow: inset 0 2px var(--green); background: #f8fcf8; }
.is-today .day-number { color: var(--green); }
.day-events { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 18px 12px 20px; min-width: 0; }
.day-event-group { min-width: 0; }
.day-group-title { margin: 0 1px 11px; display: flex; align-items: center; justify-content: space-between; color: #9ba5a8; font-size: 9px; font-weight: 450; line-height: 1.4; }
.day-group-title > span { font-size: 8px; color: #b0b7b9; }
.day-group-cards, .earnings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; row-gap: 13px; min-width: 0; }
#calendarPanel[data-view="earnings"] .day-group-title { display: none; }
#calendarPanel[data-view="economic"] .day-group-title { display: none; }
.event-card { width: 100%; min-width: 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.event-card.earnings { display: flex; flex-direction: column; align-items: center; position: relative; padding: 9px 3px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; min-height: 123px; transition: background .15s, border-color .15s; }
.event-card.earnings:hover { background: #fbfcf9; border-color: #e1e8df; }
.event-card.earnings > .company-logo { margin-bottom: 8px; }
.tile-marker { position: absolute; right: 4px; top: 4px; font-size: 8px; line-height: 1; color: #80a286; }
.company-line { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; min-width: 0; order: 1; }
.company-logo { position: relative; display: flex; align-items: center; justify-content: center; width: 88px; height: 64px; max-width: 100%; flex: 0 0 64px; overflow: hidden; color: #718895; background: transparent; }
.company-logo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; object-fit: contain; padding: 0; background: #fff; }
.company-logo-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; padding: 3px; font-size: 22px; font-weight: 750; line-height: 1; color: #648293; letter-spacing: -1px; }
.wordmark-fallback { max-width: 100%; text-align: center; padding: 3px 1px; font-size: 18px; line-height: 1.1; letter-spacing: -.7px; font-weight: 800; color: #315369; overflow-wrap: anywhere; }
.company-name { display: block; width: 100%; min-width: 0; text-align: center; }
.event-title { display: block; font-size: 10px; line-height: 1.4; font-weight: 550; letter-spacing: -.1px; overflow-wrap: anywhere; }
.earnings .event-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 14px; }
.company-code { display: block; margin-top: 3px; color: #9aa4aa; font-size: 8px; line-height: 1.4; letter-spacing: .15px; font-weight: 450; font-variant-numeric: tabular-nums; }
.event-topline { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 8px; color: #8c979b; font-size: 9px; }
.earnings .event-topline { order: 2; margin-top: 3px; margin-bottom: 0; width: 100%; justify-content: center; }
.earnings .country-tag, .earnings .event-period, .earnings .original-tag, .earnings .event-bottomline { display: none; }
.event-time { font-size: 8px; font-variant-numeric: tabular-nums; color: #98a4aa; white-space: nowrap; font-weight: 450; }
.tile-meta { display: flex; align-items: center; justify-content: center; gap: 6px; color: #9ba6ac; font-size: 8px; line-height: 1.4; font-variant-numeric: tabular-nums; margin-top: 4px; }
.tile-meta .company-code, .tile-meta .event-time { margin: 0; display: inline; }
.original-tag { color: #a5adb0; font-size: 8px; margin-top: 4px; }
.event-period, .event-bottomline { display: none; }

.country-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; color: #9aa5a9; }
.country-tag .flag { font-size: 10px; }
.event-chip { font-size: 8px; padding: 2px 4px; border-radius: 3px; color: #739383; background: #edf5ef; }
.day-empty { display: flex; flex-direction: column; align-items: center; padding: 48px 8px 75px; gap: 9px; text-align: center; color: #aeb6b8; font-size: 10px; }
.empty-symbol { color: #c9d1ce; font-size: 22px; line-height: 1; }
.empty-copy { max-width: 130px; line-height: 1.6; }
.weekend-section { padding: 18px 24px; border-top: 1px solid var(--line); background: #fdfefd; }
.weekend-section h3 { margin: 0 0 13px; color: #96a3a4; font-size: 10px; font-weight: 500; }
.weekend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.weekend-grid .day-column { border: 1px solid var(--line); background: #fff; border-radius: 3px; }
.weekend-grid .day-header { padding: 11px 13px; }
.weekend-grid .day-number { font-size: 18px; }
.weekend-grid .day-events { padding: 13px; }
.weekend-grid .day-group-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.calendar-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 9px; color: #9ba6a9; }
.calendar-timezone { letter-spacing: .7px; }
.scroll-hint { display: none; align-items: center; gap: 6px; font-size: 9px; color: #899c92; }
.scroll-hint > span:first-child { font-size: 15px; line-height: 1; }

/* Source status stays available, but folded out of the main calendar. */
.undated-section { margin-top: 15px; padding: 0 17px; border: 1px solid #e1e5df; border-radius: 4px; background: #fff; }
.undated-section summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: #84938c; font-size: 10px; }
.undated-section details > p { margin: 0 0 15px; font-size: 10px; color: #9ca6a2; }
.undated-list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; padding-bottom: 16px; max-height: 370px; overflow: auto; }
.data-section { margin-top: 17px; }
.source-panel { font-size: 10px; color: #98a3a3; }
.source-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 1px; color: #899890; font-size: 10px; }
#updateStatus { margin: 10px 0 14px; font-size: 10px; color: #94a49b; line-height: 1.7; }
#updateStatus.is-stale { color: #9f8350; }
.source-status { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 1px; }
.source-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(65px, auto); padding: 12px 0; border-top: 1px solid var(--line); gap: 4px 10px; }
.source-name { font-size: 10px; font-weight: 550; color: #7b8d89; }
.source-name a { color: inherit; text-decoration: none; }
.source-name a:hover { text-decoration: underline; }
.source-health { font-size: 9px; text-align: right; }
.source-health.ok { color: #81a38f; }
.source-health.error, .source-health.unavailable, .source-health.is-stale { color: #b19a74; }
.source-coverage { grid-column: 1 / -1; font-size: 9px; line-height: 1.7; color: #a1aca7; }
.universe-status, .data-disclaimer { font-size: 9px; line-height: 1.7; color: #a1aca7; margin: 12px 0; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 25px; padding-top: 14px; border-top: 1px solid #e4e8e2; font-size: 8px; color: #acb4ae; }
.page-footer > span:last-child { font-size: 8px; letter-spacing: 1.3px; }

/* Details retain the complete source facts and original wording. */
.event-dialog { border: 0; border-radius: 11px; max-width: 510px; width: calc(100% - 32px); max-height: calc(100dvh - 40px); padding: 27px; color: var(--ink); box-shadow: 0 25px 100px #132c4850; overflow: auto; background: #fff; }
.event-dialog::backdrop { background: #162b4166; backdrop-filter: blur(3px); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog-close { display: flex; justify-content: center; align-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #8e9d9c; font-size: 22px; line-height: 1; }
.detail-type { color: var(--green); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.detail-title { margin: 7px 0 18px; font-size: 24px; line-height: 1.3; letter-spacing: -.6px; font-weight: 600; overflow-wrap: anywhere; }
.detail-company { display: flex; gap: 17px; align-items: center; margin-bottom: 15px; }
.detail-company .company-logo { flex: 0 0 88px; width: 88px; height: 64px; }
.detail-company .detail-title { font-size: 22px; margin: 0; }
.detail-company .company-code { font-size: 11px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin: 22px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts dt { font-size: 10px; color: #9ba6a9; margin-bottom: 5px; }
.detail-facts dd { margin: 0; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.detail-source { margin: 15px 0 0; font-size: 11px; line-height: 1.7; color: #829691; overflow-wrap: anywhere; }
.detail-source strong { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 450; color: #9ca9a6; }
.detail-source a { font-size: 11px; text-underline-offset: 3px; }
.detail-original { margin-top: 16px; padding: 12px 14px; border-radius: 5px; background: #f7f9f6; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.detail-original strong { display: block; font-size: 9px; color: #9aa6a1; margin-bottom: 5px; font-weight: 450; }
.detail-logo-note, .detail-caution { margin: 16px 0 0; font-size: 10px; line-height: 1.7; color: #9ba7a2; }

@media (min-width: 1650px) {
  .day-group-cards, .earnings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px; }
  .company-logo { width: 84px; }
  .event-title { font-size: 10px; }
  .undated-list { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .masthead-inner { padding-right: 28px; padding-left: 28px; }
  .page-shell { padding-right: 28px; padding-left: 28px; }
  .day-events { padding-right: 9px; padding-left: 9px; }
  .day-group-cards, .earnings-grid { column-gap: 5px; }
  .company-logo { width: 80px; }
  .day-header { padding-right: 12px; padding-left: 12px; }
  .undated-list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .calendar-grid { min-width: 980px; }
  .scroll-hint { display: flex; margin: 0 24px 9px; }
  .calendar-timezone { display: none; }
  .undated-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .masthead-inner { min-height: 72px; padding: 17px 19px; gap: 12px; }
  .brand { gap: 10px; }
  .brand h1 { font-size: 15px; letter-spacing: -.5px; max-width: 230px; }
  .brand-mark { height: 22px; gap: 2px; }
  .brand-mark i { width: 4px; }
  .brand-mark i:nth-child(1) { height: 9px; }
  .brand-mark i:nth-child(2) { height: 15px; }
  .brand-mark i:nth-child(3) { height: 22px; }
  .masthead-right { gap: 0; }
  .timezone-badge { display: none; }
  .language-control select { max-width: 107px; padding: 4px 13px 4px 10px; font-size: 10px; }
  .page-shell { padding: 14px 15px 18px; }
  .calendar-tabs { gap: 25px; margin-bottom: 16px; }
  .calendar-tab { gap: 7px; padding-top: 8px; padding-bottom: 12px; font-size: 12px; }
  .tab-count { font-size: 8px; height: 16px; min-width: 19px; }
  .week-toolbar { gap: 8px; padding: 17px 15px 15px; }
  #weekLabel { font-size: 18px; letter-spacing: -.5px; }
  .week-year { font-size: 9px; }
  .week-title-wrap { gap: 5px; }
  .week-navigation { gap: 5px; }
  .arrow-button { width: 26px; height: 29px; font-size: 16px; }
  .today-button { height: 28px; padding: 0 8px; font-size: 9px; }
  .filter-bar { margin: 0 15px; gap: 11px 15px; padding-bottom: 15px; }
  .filter-field { gap: 7px; }
  .filter-field > span { font-size: 9px; }
  .filter-field select { height: 28px; font-size: 9px; padding-left: 7px; max-width: 230px; }
  .grade-field { flex: 1 0 100%; order: 2; }
  .reset-button { font-size: 8px; }
  .coverage-banner { margin: 0 15px 13px; padding: 7px 9px; font-size: 9px; }
  .calendar-grid { width: 900px; min-width: 900px; grid-template-columns: repeat(5, 180px); min-height: 348px; }
  .day-header { padding: 13px 11px; }
  .day-name { font-size: 9px; }
  .day-number { font-size: 20px; }
  .day-today-tag { font-size: 7px; padding: 2px 4px; }
  .day-events { padding: 15px 7px 19px; }
  .day-group-cards, .earnings-grid { gap: 13px 4px; }
  .event-card.earnings { padding: 7px 2px; min-height: 117px; }
  .company-logo { width: 74px; height: 60px; flex-basis: 60px; }
  .company-logo-fallback { font-size: 22px; }
  .wordmark-fallback { font-size: 16px; }
  .company-line { gap: 8px; }
  .event-title { font-size: 10px; line-height: 1.45; }
  .company-code, .event-time, .tile-meta { font-size: 8px; }
  .day-empty { font-size: 9px; padding-top: 44px; }
  .empty-copy { max-width: 125px; }
  .weekend-section { padding: 15px; }
  .weekend-section h3 { font-size: 9px; }
  .weekend-grid { grid-template-columns: 1fr; gap: 12px; }
  .weekend-grid .day-group-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calendar-bottom { padding: 9px 14px; font-size: 8px; gap: 12px; }
  .scroll-hint { font-size: 8px; margin-right: 15px; margin-left: 15px; }
  .undated-section { margin-top: 13px; padding: 0 13px; }
  .undated-section summary, .undated-section details > p { font-size: 9px; }
  .undated-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .data-section { margin-top: 11px; }
  .source-panel summary { font-size: 9px; }
  .source-status { grid-template-columns: 1fr; gap: 0; }
  .source-row { padding: 10px 0; }
  .source-name, #updateStatus { font-size: 9px; }
  .source-health, .source-coverage, .universe-status, .data-disclaimer { font-size: 8px; }
  .page-footer { font-size: 8px; margin-top: 21px; padding-top: 12px; }
  .page-footer > span:last-child { font-size: 7px; letter-spacing: .9px; }
  .event-dialog { padding: 22px; border-radius: 9px; }
  .detail-title { font-size: 22px; }
  .detail-company { gap: 13px; }
  .detail-company .company-logo { width: 76px; flex-basis: 76px; }
  .detail-company .detail-title { font-size: 20px; }
  .detail-facts { gap: 14px 17px; }
  .detail-facts dd { font-size: 11px; }
  .detail-source, .detail-source a { font-size: 10px; }
  .detail-logo-note, .detail-caution { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Economic release cards share their grade colors with the filter and details. */
[data-grade="A"] { --grade-ink: #774017; --grade-bg: #ffedd6; --grade-edge: #d49557; }
[data-grade="B"] { --grade-ink: #244e73; --grade-bg: #eaf3fb; --grade-edge: #a4bed8; }
[data-grade="C"], [data-grade="unrated"] { --grade-ink: #4e5d65; --grade-bg: #eef1f2; --grade-edge: #c8d0d4; }
.grade-badge { display: inline-grid; place-items: center; min-width: 20px; min-height: 19px; padding: 1px 5px; border-radius: 3px; color: var(--grade-ink); background: var(--grade-bg); font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.indicator-count { display: inline-block; margin-top: 5px; color: #53656a; font-size: 10px; line-height: 1.4; }
.detail-impact { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--grade-edge); border-radius: 0 5px 5px 0; background: var(--grade-bg); }
.detail-impact h3 { margin: 0; color: var(--grade-ink); font-size: 13px; }
.detail-impact p { margin: 5px 0 0; font-size: 12px; line-height: 1.55; }
.detail-impact .detail-impact-context { color: var(--grade-ink); font-size: 11px; }
.detail-indicators { margin-top: 20px; }
.detail-indicators h3 { font-size: 11px; font-weight: 600; }
.detail-indicators ul { list-style: none; padding: 0; }
.detail-indicators li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.detail-indicators small { display: block; color: #6b7771; font-size: 10px; }
.detail-series-name { font-weight: 600; }
.economic .original-tag { display: block; color: #53656a; font-size: 10px; }
#calendarPanel[data-view="economic"] .calendar-scroller { overflow: visible; }
#calendarPanel[data-view="economic"] .calendar-grid { width: 100%; min-width: 0; min-height: 240px; }
#calendarPanel[data-view="economic"] .day-header { min-height: 53px; padding: 12px; background: #f7f9f8; }
#calendarPanel[data-view="economic"] .is-today .day-header { background: #eaf5ef; }
#calendarPanel[data-view="economic"] .day-name, #calendarPanel[data-view="economic"] .day-count { color: #52656a; font-size: 11px; }
#calendarPanel[data-view="economic"] .day-events { padding: 10px; }
#calendarPanel[data-view="economic"] .day-group-cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.event-card.economic { display: block; min-height: 61px; padding: 8px 9px; border: 1px solid #e5e9e8; border-left: 3px solid var(--grade-edge); border-radius: 5px; background: #fff; }
.event-card.economic[data-grade="A"] { background: #fffbf5; }
.event-card.economic:hover { border-color: var(--grade-edge); background: var(--grade-bg); }
.economic .event-topline { justify-content: flex-start; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 4px; }
.economic .event-topline .grade-badge { margin-left: auto; }
.economic .event-time { color: #354f5d; font-size: 11px; font-weight: 650; white-space: normal; }
.economic .country-tag { color: #4d626b; font-size: 10px; }
.economic .event-title { font-size: 12px; font-weight: 650; line-height: 1.45; }
#calendarPanel[data-view="economic"] .day-empty { min-height: 36px; padding: 7px 2px; color: #596a71; font-size: 11px; }
#calendarPanel[data-view="economic"] .scroll-hint { display: none; }
#calendarPanel[data-view="economic"] .calendar-timezone { display: inline; }

@media (min-width: 1280px) {
  #calendarPanel[data-view="earnings"] .day-events { padding-right: 8px; padding-left: 8px; }
  #calendarPanel[data-view="earnings"] .day-group-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px; }
  #calendarPanel[data-view="earnings"] .company-logo { width: 88px; max-width: 100%; }
  #calendarPanel[data-view="earnings"] .company-logo img { object-fit: contain; }
}
@media (max-width: 959px) {
  #calendarPanel[data-view="economic"] .calendar-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  #calendarPanel[data-view="economic"] .calendar-grid .day-column { border-right: 0; border-bottom: 1px solid var(--line); }
  #calendarPanel[data-view="economic"] .calendar-grid .day-column:last-child { border-bottom: 0; }
  #calendarPanel[data-view="economic"] .day-header { min-height: 42px; }
  #calendarPanel[data-view="economic"] .day-empty { min-height: 28px; padding: 3px 2px; }
  #calendarPanel[data-view="economic"] .weekend-grid { grid-template-columns: minmax(0, 1fr); }
  .event-card.economic { min-height: 54px; }
}
