/* Scene 3 visual refresh, scoped to the customer meeting briefing. */
body[data-scene="3"] {
  --briefing-ink: #0b1d48;
  --briefing-muted: #526284;
  --briefing-line: #dfe5ef;
  --briefing-blue: #075bff;
  background: #f8f9fb;
}

body[data-scene="3"] #main {
  max-width: 1500px;
  padding: 25px clamp(20px, 3vw, 42px) 42px;
  color: var(--briefing-ink);
}

body[data-scene="3"] #main::before {
  top: 0;
  right: 2%;
  left: 2%;
  height: 106px;
  margin: 0;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(105deg, #eaf5ff 0%, #f6fbff 56%, rgb(248 249 251 / 0%) 100%);
}

body[data-scene="3"] .page-heading,
body[data-scene="3"] .briefing-toolbar,
body[data-scene="3"] .briefing-layout {
  position: relative;
  z-index: 1;
}

body[data-scene="3"] .page-heading { margin-bottom: 16px; }
body[data-scene="3"] .page-heading h1,
body[data-scene="3"] .page-heading .title {
  margin-bottom: 5px;
  color: var(--briefing-ink);
  font-size: clamp(27px, 2.2vw, 35px);
  letter-spacing: -.9px;
}

body[data-scene="3"] .page-heading .lead {
  margin: 0;
  color: var(--briefing-muted);
  font-size: 14px;
}

body[data-scene="3"] .briefing-toolbar {
  min-height: 48px;
  margin: 0 0 17px;
  padding: 6px 0;
}

body[data-scene="3"] .briefing-toolbar .btn {
  min-height: 38px;
  border-color: #d0d9e7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

body[data-scene="3"] .briefing-toolbar .btn.primary { border-color: var(--navy); }
body[data-scene="3"] .briefing-toolbar .badge { padding: 6px 10px; border-radius: 7px; }

body[data-scene="3"] .briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(276px, 310px);
  gap: 18px;
  align-items: start;
}

body[data-scene="3"] .briefing-list-card,
body[data-scene="3"] .briefing-sidebar > .card {
  border: 1px solid var(--briefing-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(19 38 75 / 5%);
}

body[data-scene="3"] .briefing-list-card {
  padding: 0 16px;
  overflow: hidden;
}

body[data-scene="3"] .briefing-list-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 3px 13px;
  border-bottom: 1px solid var(--briefing-line);
}

body[data-scene="3"] .briefing-list-intro strong { font-size: 15px; }
body[data-scene="3"] .briefing-list-intro .small { font-size: 11px; }

body[data-scene="3"] .briefing-row {
  display: grid;
  grid-template-columns: minmax(245px, 1.1fr) minmax(0, 1.9fr);
  gap: 0 18px;
  padding: 18px 3px;
  border-bottom: 1px solid var(--briefing-line);
}

body[data-scene="3"] .briefing-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  grid-row: 1 / span 2;
  min-width: 0;
}

body[data-scene="3"] .briefing-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--briefing-blue);
  font-size: 15px;
  font-weight: 700;
}

body[data-scene="3"] .briefing-row-2 .briefing-number,
body[data-scene="3"] .briefing-row-5 .briefing-number { background: #e0f6f4; color: #078d91; }
body[data-scene="3"] .briefing-row-3 .briefing-number,
body[data-scene="3"] .briefing-row-6 .briefing-number { background: #eeebff; color: #5e54cd; }
body[data-scene="3"] .briefing-row-4 .briefing-number { background: #fff0dc; color: #df7b00; }

body[data-scene="3"] .briefing-item h2 {
  margin: 1px 0 5px;
  color: var(--briefing-ink);
  font-size: 14px;
  letter-spacing: -.1px;
}

body[data-scene="3"] .briefing-item p {
  margin: 0;
  color: #435274;
  font-size: 12px;
  line-height: 1.55;
}

body[data-scene="3"] .briefing-row-head,
body[data-scene="3"] .briefing-source-entry {
  display: grid;
  grid-template-columns: minmax(100px, 1.14fr) minmax(80px, .82fr) minmax(125px, 1.28fr) minmax(86px, .94fr) minmax(78px, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

body[data-scene="3"] .briefing-row-head {
  padding-bottom: 7px;
  color: #26385f;
  font-size: 11px;
}

body[data-scene="3"] .briefing-source-list { min-width: 0; }
body[data-scene="3"] .briefing-source-entry {
  min-height: 42px;
  padding: 6px 0;
  color: #334568;
  font-size: 12px;
}

body[data-scene="3"] .briefing-source-entry + .briefing-source-entry {
  border-top: 1px solid #edf0f4;
}

body[data-scene="3"] .briefing-source-name,
body[data-scene="3"] .briefing-owner {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

body[data-scene="3"] .briefing-source-name > span:last-child,
body[data-scene="3"] .briefing-owner > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-scene="3"] .briefing-source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 6px;
  background: #e6f0ff;
  color: #1671ce;
}

body[data-scene="3"] .briefing-source-icon svg { width: 22px; height: 22px; }
body[data-scene="3"] .briefing-source-outlook { background: #e4f1ff; color: #087bd5; }
body[data-scene="3"] .briefing-source-sharepoint { background: #e2f6f1; color: #078a78; }
body[data-scene="3"] .briefing-source-excel { background: #e8f5e9; color: #11854b; }
body[data-scene="3"] .briefing-source-haiilo { background: #e9efff; color: #3e59c8; }
body[data-scene="3"] .briefing-source-teams { background: #eeeaff; color: #6259c9; }
body[data-scene="3"] .briefing-source-people { background: #f0edff; color: #5e54cd; }

body[data-scene="3"] .briefing-type,
body[data-scene="3"] .briefing-date { color: #455575; line-height: 1.35; }

body[data-scene="3"] .briefing-owner-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dce7f7;
  color: #1c4b79;
  box-shadow: 0 0 0 1px #cbd7e8;
  font-size: 9px;
  font-weight: 700;
}

body[data-scene="3"] .briefing-source-entry:nth-child(2n) .briefing-owner-avatar { background: #f2e6da; color: #855022; }
body[data-scene="3"] .briefing-source-entry:nth-child(3n) .briefing-owner-avatar { background: #e5ebdc; color: #42652d; }
body[data-scene="3"] .briefing-source-entry .btn.link {
  justify-self: start;
  padding: 0;
  color: var(--briefing-blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

body[data-scene="3"] .briefing-source-note {
  justify-self: start;
  color: #70809d;
  font-size: 11px;
  line-height: 1.35;
}

body[data-scene="3"] .briefing-permission {
  margin: 15px 3px 17px;
  padding: 12px 14px;
  background: #f0f8f4;
  border-color: #d6ebdf;
  color: #1c624d;
}

body[data-scene="3"] .briefing-permission p { margin-top: 3px; }
body[data-scene="3"] .briefing-sidebar { display: grid; gap: 16px; }
body[data-scene="3"] .briefing-sidebar > .card { padding: 17px 18px; }

body[data-scene="3"] .briefing-hero {
  display: grid;
  gap: 12px;
}

body[data-scene="3"] .briefing-hero img {
  display: block;
  width: 100%;
  height: 138px;
  object-fit: cover;
  border-radius: 9px;
}

body[data-scene="3"] .briefing-hero strong { display: block; margin: 5px 0 4px; color: var(--briefing-ink); font-size: 15px; }
body[data-scene="3"] .briefing-hero p { margin: 0; color: var(--briefing-muted); line-height: 1.45; }
body[data-scene="3"] .briefing-about { gap: 12px; }
body[data-scene="3"] .briefing-about .card-header { margin-bottom: 0; }
body[data-scene="3"] .briefing-about p { color: #435274; font-size: 13px; line-height: 1.55; }
body[data-scene="3"] .briefing-about .btn.link { padding: 0; font-size: 12px; font-weight: 600; }
body[data-scene="3"] .briefing-question-card { gap: 11px; }
body[data-scene="3"] .briefing-question-card > strong { font-size: 15px; }
body[data-scene="3"] .briefing-question-card .field { margin: 0; color: #435274; font-size: 12px; }
body[data-scene="3"] .briefing-question-card input { margin-top: 6px; min-height: 47px; }
body[data-scene="3"] .briefing-question-card .btn.primary { width: 100%; }
body[data-scene="3"] .briefing-question-card p { margin: 0; line-height: 1.45; }

@media (max-width: 1180px) {
  body[data-scene="3"] .briefing-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 290px); }
  body[data-scene="3"] .briefing-row { grid-template-columns: minmax(215px, .94fr) minmax(0, 1.8fr); gap: 0 13px; }
  body[data-scene="3"] .briefing-row-head,
  body[data-scene="3"] .briefing-source-entry { grid-template-columns: minmax(86px, 1fr) minmax(72px, .8fr) minmax(108px, 1.2fr) minmax(78px, .85fr) minmax(72px, auto); gap: 7px; }
}

@media (max-width: 900px) {
  body[data-scene="3"] .briefing-layout { grid-template-columns: 1fr; }
  body[data-scene="3"] .briefing-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  body[data-scene="3"] .briefing-hero { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body[data-scene="3"] #main { padding: 21px 14px 34px; }
  body[data-scene="3"] #main::before { right: 0; left: 0; height: 101px; border-radius: 0 0 22px 22px; }
  body[data-scene="3"] .briefing-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  body[data-scene="3"] .briefing-toolbar > .row { width: 100%; }
  body[data-scene="3"] .briefing-toolbar > .row .btn { flex: 1; padding: 8px 9px; font-size: 11px; }
  body[data-scene="3"] .briefing-list-card { padding: 0 12px; }
  body[data-scene="3"] .briefing-list-intro { display: block; padding: 15px 3px 11px; }
  body[data-scene="3"] .briefing-list-intro .small { display: block; margin-top: 3px; }
  body[data-scene="3"] .briefing-row { display: block; padding: 16px 3px; }
  body[data-scene="3"] .briefing-item { margin-bottom: 13px; }
  body[data-scene="3"] .briefing-item h2 { font-size: 14px; }
  body[data-scene="3"] .briefing-row-head { display: none; }
  body[data-scene="3"] .briefing-source-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 9px 0; }
  body[data-scene="3"] .briefing-source-name { grid-column: 1; }
  body[data-scene="3"] .briefing-type { grid-column: 2; }
  body[data-scene="3"] .briefing-owner { grid-column: 1; }
  body[data-scene="3"] .briefing-date { grid-column: 2; }
  body[data-scene="3"] .briefing-source-entry .btn.link { grid-column: 1 / -1; }
  body[data-scene="3"] .briefing-sidebar { grid-template-columns: 1fr; }
  body[data-scene="3"] .briefing-hero { grid-column: auto; }
}

@media (max-width: 390px) {
  body[data-scene="3"] .briefing-toolbar > .row { display: grid; grid-template-columns: 1fr 1fr; }
  body[data-scene="3"] .briefing-toolbar > .row .btn:last-child { grid-column: 1 / -1; }
  body[data-scene="3"] .briefing-hero img { height: 132px; }
}
