/* ── Briefing Dashboard Refresh ───────────────────────────────── */
.app-shell {
  max-width: 920px;
  padding: 20px 16px 40px;
}

.dashboard-header {
  margin-bottom: 14px;
}

.briefing-date-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #2b2d31;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.briefing-date-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.briefing-date-time {
  margin: 0;
  color: #b5bac1;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.briefing-date-title {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.briefing-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scanner-link,
.browser-notification-toggle,
.cache-badge {
  background: #232428;
  border-color: transparent;
  color: #b5bac1;
}

.scanner-link:hover,
.browser-notification-toggle:hover {
  background: #2b2d31;
  border-color: #4e5058;
}

.browser-notification-toggle {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
}

.browser-notification-toggle[hidden] {
  display: none;
}

.dashboard {
  display: grid;
  gap: 16px;
}

.dashboard-section {
  position: relative;
  background: #2b2d31;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  padding: 20px 20px 20px 24px;
  overflow: hidden;
}

.dashboard-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #8f96a3;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.section-toggle {
  appearance: none;
  border: 0;
  background: #232428;
  color: #b5bac1;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.section-toggle:hover {
  background: #2b2d31;
  border-color: #4e5058;
  color: #f2f3f5;
}

.section-toggle:focus-visible {
  outline: 2px solid #57a6ff;
  outline-offset: 2px;
}

.section-content {
  display: block;
}

.collapsible-section.is-collapsed .section-content {
  display: none;
}

.section-heading-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.section-icon {
  font-size: 18px;
}

.section-title {
  margin: 0;
  color: #f2f3f5;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.pick-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #3f4147;
}

.pick-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pick-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #232428;
  color: #b5bac1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pick-main-line,
.pick-sub-line,
.asset-headline {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.pick-main-line {
  justify-content: space-between;
  gap: 12px;
}

.pick-name,
.pick-main-line strong,
.asset-name,
.index-label,
.index-change {
  font-weight: 800;
}

.pick-main-line strong,
.asset-name {
  color: #f2f3f5;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.pick-target,
.asset-price,
.asset-change {
  font-size: 14px;
  font-weight: 800;
  font-feature-settings: "tnum";
}

.pick-target-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  text-align: right;
}

.pick-target-label {
  color: #949ba4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pick-target-price {
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 800;
  font-feature-settings: "tnum";
}

.pick-target-change,
.pick-sector-change {
  font-size: 14px;
  font-weight: 800;
  font-feature-settings: "tnum";
}

.pick-sector-change {
  font-size: 13px;
  font-weight: 500;
  color: #b5bac1;
}

.pick-target-change.up {
  color: var(--up);
}

.pick-target-change.down {
  color: var(--down);
}

.pick-sub-line {
  margin-top: 5px;
  color: #b5bac1;
  font-size: 13px;
  line-height: 1.5;
}

.pick-sector {
  color: #b5bac1;
}

.pick-sub-line {
  justify-content: flex-start;
  gap: 6px;
}

.indices-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sector-movers-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.sector-movers-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #232428;
  border: 0;
  border-radius: 8px;
}

.sector-movers-title {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.sector-movers-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  list-style: decimal;
  color: #efefef;
  font-size: 14px;
  line-height: 1.65;
}

.sector-movers-list li::marker {
  color: #ffffff;
  font-weight: 700;
}

.sector-movers-item {
  display: list-item;
}

.sector-movers-name {
  color: #f2f3f5;
  font-weight: 700;
}

.sector-movers-meta {
  margin-left: 6px;
}

.sector-movers-symbol {
  color: #949ba4;
  margin-right: 6px;
}

.sector-movers-change {
  font-weight: 800;
}

.sector-movers-empty {
  margin: 0;
  color: #efefef;
  font-size: 14px;
  line-height: 1.6;
}

.sector-movers-summary-card {
  margin-bottom: 12px;
}

.index-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #dcddde;
  font-size: 14px;
  line-height: 1.55;
  flex-wrap: wrap;
}

.index-label {
  min-width: 0;
  color: #f2f3f5;
}

.index-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.index-value {
  color: #efefef;
  font-weight: 500;
}

.index-mood {
  margin-left: 4px;
  font-weight: 800;
}

.neutral {
  color: #f2f3f5;
}

.briefing-card {
  display: grid;
  gap: 14px;
}

.briefing-title {
  margin: 0;
  color: #f2f3f5;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.briefing-summary {
  margin: 0;
  color: #efefef;
  font-size: 14px;
  line-height: 1.7;
}

.briefing-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #232428;
  border: 0;
  border-radius: 8px;
}

.briefing-label {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.briefing-bullets,
.asset-bullets {
  margin: 0;
  padding-left: 18px;
  color: #efefef;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.65;
}

.briefing-bullets li::marker,
.asset-bullets li::marker {
  color: #ffffff;
}

.asset-list {
  display: grid;
  gap: 12px;
}

.asset-card {
  background: #232428;
  border: 0;
  border-radius: 8px;
  padding: 16px;
}

.asset-sector {
  margin-top: 6px;
  color: #949ba4;
  font-size: 12px;
  line-height: 1.45;
}

.asset-position-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.asset-position-label {
  color: #949ba4;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.asset-position-price,
.asset-position-gap {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
  font-feature-settings: "tnum";
}

.asset-position-price {
  color: #f2f3f5;
}

.asset-bullets {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
}

.asset-bullets li {
  color: #efefef;
}

.asset-bullet-tag {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(87, 166, 255, 0.16);
  color: #d7e8ff;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.asset-bullet-text {
  color: #efefef;
}

.asset-inline-link {
  color: #f2f3f5;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.asset-inline-link:hover {
  color: #ffffff;
}

.asset-news-box {
  margin-top: 14px;
  padding: 12px;
  background: #2b2d31;
  border: 0;
  border-radius: 8px;
}

.asset-news-label {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.asset-news-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  color: #efefef;
  font-size: 14px;
  line-height: 1.65;
}

.asset-news-item {
  display: list-item;
  font-size: inherit;
  line-height: inherit;
}

.asset-news-item::marker {
  color: #ffffff;
}

.asset-news-link {
  color: #f2f3f5;
  font-size: 14px;
  line-height: 1.65;
  text-decoration: underline;
  display: inline;
  text-underline-offset: 2px;
}

.asset-news-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.asset-news-date {
  display: block;
  margin-top: 2px;
  color: #949ba4;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-section p,
.dashboard-section li {
  color: #efefef;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 0 0;
  color: #949ba4;
  text-align: left;
}

.empty-icon {
  display: none;
}

@media (max-width: 767px) {
  .app-shell {
    padding: 12px 10px 32px;
  }

  .briefing-date-card {
    padding: 16px 72px 16px 18px;
    border-radius: 8px;
  }

  .briefing-date-title {
    font-size: 21px;
  }

  .briefing-tools {
    position: absolute;
    top: 16px;
    right: 14px;
    width: auto;
    justify-content: flex-end;
  }

  .dashboard {
    gap: 12px;
  }

  .dashboard-section {
    padding: 16px 14px 16px 18px;
    border-radius: 8px;
  }

  .section-heading {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 14px;
  }

  .section-title {
    font-size: 17px;
  }

  .section-toggle {
    font-size: 11px;
    padding: 4px 9px;
    align-self: auto;
  }

  .pick-main-line,
  .pick-sub-line,
  .asset-headline {
    flex-wrap: wrap;
  }

  .pick-main-line strong,
  .asset-name {
    font-size: 15px;
  }

  .pick-target,
  .asset-change,
  .asset-price,
  .asset-position-price,
  .asset-position-gap,
  .index-row,
  .briefing-summary,
  .briefing-bullets,
  .asset-bullets {
    font-size: 13px;
  }

  .index-row {
    grid-template-columns: minmax(78px, auto) 1fr;
  }

  .sector-movers-grid {
    grid-template-columns: 1fr;
  }
}
