.flash-page { background: #f4f4f1; }
.flash-shell { margin: 0 auto; max-width: 1540px; padding: 24px 36px 64px; }
.flash-intro { align-items: end; background: white; border-top: 4px solid var(--lime); display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr) auto; padding: 28px 32px; }
.flash-intro h1 { margin-top: 4px; }
.flash-intro p { color: #4f4f48; line-height: 1.5; max-width: 76ch; }
.flash-intro dl { display: grid; gap: 8px; grid-template-columns: repeat(3, 96px); margin: 0; }
.flash-intro dl div { border-left: 3px solid var(--teal); padding-left: 12px; }
.flash-intro dd { color: var(--navy); font-family: "Arial Narrow", Arial, sans-serif; font-size: 28px; font-weight: 700; }
.report-history { align-items: center; background: var(--navy); color: white; display: grid; gap: 12px; grid-template-columns: auto minmax(220px, 340px) 1fr; padding: 13px 18px; }
.report-history label { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.report-history select { background: white; border: 0; border-radius: 0; color: var(--ink); font: inherit; min-height: 36px; padding: 7px 10px; }
.report-history span { color: #d6dee8; font-size: 11px; }
.flash-dashboard { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); margin-top: 18px; }
.event-feed { display: grid; gap: 18px; }
.event-section { background: white; border: 1px solid var(--line); }
.section-heading { align-items: end; border-bottom: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; padding: 20px 24px; }
.section-heading h2 { font-size: 19px; margin: 3px 0 0; }
.section-heading > strong { color: var(--navy); font-family: "Arial Narrow", Arial, sans-serif; font-size: 30px; }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-card { border-bottom: 1px solid var(--line); padding: 20px 24px; }
.event-card:nth-child(odd) { border-right: 1px solid var(--line); }
.event-card h3 { color: var(--navy); font-size: 16px; margin: 8px 0 6px; }
.event-card p { color: #4f4f48; font-size: 13px; line-height: 1.5; margin: 0; }
.event-card__meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 8px; text-transform: uppercase; }
.event-kind { background: #eef2df; color: #3e4712; font-weight: 700; padding: 4px 6px; }
.event-card__actions { align-items: end; display: flex; gap: 12px; justify-content: space-between; margin-top: 14px; }
.source-link { color: var(--teal); font-size: 12px; font-weight: 700; }
.impacted-accounts { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.impacted-accounts span { color: var(--muted); flex-basis: 100%; font-size: 9px; text-align: right; text-transform: uppercase; }
.impacted-accounts a { background: #e5eff0; color: var(--teal); font-size: 10px; padding: 4px 6px; text-decoration: none; }
.event-feedback-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.event-feedback-link { background: var(--navy); color: white; font-family: "Arial Narrow", Arial, sans-serif; font-size: 11px; font-weight: 700; padding: 8px 10px; text-decoration: none; text-transform: uppercase; }
.event-feedback-link:hover, .event-feedback-link:focus-visible { background: var(--teal); color: white; }
.empty-state { color: var(--muted); font-size: 13px; margin: 0; padding: 20px 24px; }
.account-section { margin-top: 24px; }
.account-section > .section-heading { background: white; border: 1px solid var(--line); }
.account-section__note { background: #fffdf3; border: 1px solid var(--line); color: #4f4f48; font-size: 12px; line-height: 1.5; margin: 12px 0 0; padding: 12px 14px; }
.flash-toolbar { background: white; border: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: minmax(220px, 1fr) 220px 220px; margin-top: 16px; padding: 14px; }
.flash-toolbar input, .flash-toolbar select, #qa-form input { background: white; border: 1px solid #b9b9b0; border-radius: 0; color: var(--ink); font: inherit; min-height: 40px; padding: 9px 11px; width: 100%; }
.flash-list { display: grid; gap: 14px; margin-top: 18px; }
.flash-card { background: white; border: 1px solid var(--line); padding: 22px 24px; }
.flash-card[hidden] { display: none; }
.flash-card__top { align-items: start; display: flex; gap: 18px; justify-content: space-between; }
.flash-card h2 { font-size: 24px; margin: 3px 0 0; }
.flash-score { text-align: right; }
.flash-score strong { color: var(--navy); display: block; font-family: "Arial Narrow", Arial, sans-serif; font-size: 30px; }
.flash-score span { color: var(--muted); font-size: 11px; }
.flash-status { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; margin: 14px 0; padding-bottom: 13px; }
.flash-status p { color: var(--muted); font-size: 12px; margin: 0; }
.status { background: #eef2df; color: #3e4712; font-size: 10px; font-weight: 700; padding: 5px 7px; text-transform: uppercase; }
.status--changed { background: #fff2d5; color: #61440b; }
.status--no-material-change { background: #eeeeea; color: #55554d; }
.flash-grid { display: grid; gap: 18px; grid-template-columns: 1.5fr 1fr 1fr; }
.flash-grid strong { color: var(--navy); display: block; font-size: 14px; margin-top: 4px; }
.flash-grid p { color: #4f4f48; font-size: 12px; line-height: 1.45; margin: 5px 0; }
.flash-source-row { align-items: center; display: flex; gap: 8px; }
.flash-source-row a { font-size: 10px; }
.flash-source-row span { color: var(--muted); font-size: 10px; }
.flash-card__actions { align-items: center; display: flex; gap: 8px; margin-top: 16px; }
.flash-card__actions a, .flash-card__actions button, .quick-questions button, #qa-form button { border: 1px solid var(--teal); border-radius: 0; cursor: pointer; font: inherit; font-size: 12px; padding: 8px 10px; }
.flash-card__actions button, .quick-questions button { background: white; color: var(--teal); }
.flash-card__actions .primary-link, #qa-form button { background: var(--teal); color: white; text-decoration: none; }
.qa-panel { background: white; border: 1px solid var(--line); position: sticky; top: 18px; }
.qa-panel__head { background: var(--navy); color: white; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; padding: 20px; }
.qa-panel__head h2 { color: white; font-size: 22px; margin: 4px 0; }
.qa-panel__head p { color: #d6dee8; font-size: 12px; grid-column: 1 / -1; line-height: 1.45; margin: 0; }
#qa-clear { align-self: start; background: transparent; border: 1px solid #96a9bc; color: white; cursor: pointer; font: inherit; font-size: 11px; padding: 6px 8px; }
.quick-questions { display: grid; gap: 6px; padding: 14px 14px 0; }
.quick-questions button { text-align: left; }
.qa-log { display: grid; gap: 9px; max-height: 430px; overflow-y: auto; padding: 14px; }
.qa-question { background: var(--navy); color: white; justify-self: end; max-width: 85%; padding: 9px 11px; }
.qa-answer { background: #f4f4f1; color: #3f3f38; font-size: 12px; line-height: 1.5; padding: 11px 12px; }
.qa-answer ol, .qa-answer ul { padding-left: 20px; }
#qa-form { border-top: 1px solid var(--line); padding: 14px; }
#qa-form label { color: var(--muted); display: block; font-size: 10px; margin-bottom: 5px; text-transform: uppercase; }
#qa-form div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 1040px) { .flash-dashboard { grid-template-columns: 1fr; } .qa-panel { grid-row: 1; position: static; } }
@media (max-width: 720px) { .flash-shell { padding: 14px 14px 40px; } .flash-intro { align-items: start; grid-template-columns: 1fr; padding: 22px 20px; } .flash-intro dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } .report-history { align-items: stretch; grid-template-columns: 1fr; } .report-history span { display: none; } .event-list { grid-template-columns: 1fr; } .event-card:nth-child(odd) { border-right: 0; } .event-card__actions { align-items: flex-start; flex-direction: column; } .impacted-accounts { align-items: flex-start; justify-content: flex-start; } .impacted-accounts span { text-align: left; } .event-feedback-actions { display: grid; grid-template-columns: 1fr; } .event-feedback-link { text-align: center; } .flash-toolbar, .flash-grid { grid-template-columns: 1fr; } .flash-card { padding: 18px; } .flash-card__top { align-items: flex-start; flex-direction: column; } .flash-score { text-align: left; } }

/* Reporting period: link to the Triggers Log */
.report-history { grid-template-columns: auto minmax(220px, 340px) 1fr auto; }
.triggers-link { background: white; color: var(--navy); font-size: 11px; font-weight: 700; padding: 9px 12px; text-decoration: none; text-transform: uppercase; }
.triggers-link:hover, .triggers-link:focus-visible { background: var(--lime); color: var(--navy); }

/* Add Contact to Account: options menu */
.add-contact { position: relative; }
.add-contact > summary { cursor: pointer; list-style: none; }
.add-contact > summary::-webkit-details-marker { display: none; }
.add-contact > summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.add-contact__menu { background: white; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 48, 94, 0.18); display: grid; gap: 0; left: 0; list-style: none; margin: 4px 0 0; min-width: 260px; padding: 4px; position: absolute; top: 100%; z-index: 20; }
.add-contact__option { color: var(--ink); display: grid; gap: 2px; padding: 9px 10px; text-decoration: none; }
.add-contact__option strong { color: var(--navy); font-size: 13px; }
.add-contact__option span { color: #5a6573; font-size: 11px; }
.add-contact__option:hover, .add-contact__option:focus-visible { background: #eef2df; }

/* Triggers Log */
.triggers-toolbar { align-items: end; grid-template-columns: 1.1fr 1.1fr 1fr 1.2fr auto; }
.triggers-toolbar label { color: #5a6573; display: grid; font-size: 11px; font-weight: 700; gap: 4px; text-transform: uppercase; }
.triggers-toolbar button { background: white; border: 1px solid var(--navy); color: var(--navy); cursor: pointer; font: inherit; font-weight: 700; min-height: 40px; padding: 0 16px; }
.trigger-count { color: #5a6573; font-size: 12px; margin: 12px 2px 8px; }
.triggers-table-wrap { background: white; border: 1px solid var(--line); }
@media (max-width: 1100px) and (min-width: 721px) { .triggers-table-wrap { overflow-x: auto; padding-bottom: 130px; margin-bottom: -130px; } }
.triggers-table { border-collapse: collapse; font-size: 13px; width: 100%; }
.triggers-table th { background: var(--navy); color: white; font-size: 11px; padding: 10px 12px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.triggers-table th button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-transform: inherit; }
.triggers-table th[aria-sort="ascending"] button::after { content: " \25B2"; }
.triggers-table th[aria-sort="descending"] button::after { content: " \25BC"; }
.triggers-table td { border-top: 1px solid var(--line); padding: 12px; vertical-align: top; }
.triggers-table tr[hidden] { display: none; }
.triggers-table td p { color: #3b4654; margin: 4px 0 0; max-width: 460px; }
.triggers-table td:first-child { white-space: nowrap; }
.account-pills, .period-links { display: flex; flex-wrap: wrap; gap: 6px; }
.account-pill { background: #eef2f6; color: var(--navy); font-size: 12px; font-weight: 700; padding: 3px 7px; text-decoration: none; }
.account-pill:hover { background: var(--lime); }
.period-links a { color: var(--teal); font-size: 12px; }
.triggers-table .event-feedback-actions { margin-top: 0; }
@media (max-width: 720px) {
  .report-history { grid-template-columns: 1fr; }
  .triggers-toolbar { grid-template-columns: 1fr; }
  .triggers-table thead { display: none; }
  .triggers-table, .triggers-table tbody, .triggers-table tr, .triggers-table td { display: block; width: 100%; }
  .triggers-table tr { border-top: 8px solid var(--canvas); padding: 8px 0; }
  .triggers-table td { border-top: 0; padding: 6px 12px; white-space: normal !important; }
  .triggers-table td::before { color: #5a6573; content: attr(data-label); display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; }
  .triggers-table td:empty { display: none; }
}
.triggers-table[hidden] { display: none !important; }

.triggers-table .add-contact__menu { left: auto; right: 0; }
.triggers-table .event-kind { display: inline-block; white-space: nowrap; }

/* Demo interactive styles */
.demo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  background: #4f46e5;
  color: #fff;
  border-radius: 9999px;
  margin-right: 12px;
}
.demo-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #1e1b4b;
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
  font-size: 0.875rem;
  z-index: 9999;
  display: none;
  max-width: 24rem;
  line-height: 1.4;
  border-left: 4px solid #6366f1;
}
.brand__logo-wrap {
  background: transparent !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.brand__logo--revenueinsight {
  height: 20px !important;
  width: auto !important;
  max-width: 170px !important;
  vertical-align: middle;
}
.brand__logo--ri {
  height: 22px !important;
  width: auto !important;
  max-width: 170px !important;
  vertical-align: middle;
}
.header-logo-inline {
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.02em;
  margin-left: 4px;
}
.index-logo {
  height: 38px !important;
  width: auto !important;
  margin-bottom: 24px !important;
}
