/*
 * DB-V04-PENDING-TYPOGRAPHY-05
 * Local refinement for the real two-column inbox page only. The Figma
 * takeover remains an opt-in experiment and is intentionally not targeted by
 * these selectors. This file changes typography and action control geometry;
 * it does not change the inbox DOM, API state, or the review layout.
 */
.inbox-section {
  --pending-type-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  --pending-heading-size: 18px;
  --pending-heading-weight: 600;
  --pending-heading-leading: 1.3;
  --pending-body-size: 12px;
  --pending-body-weight: 400;
  --pending-body-leading: 1.45;
  --pending-meta-size: 11px;
  --pending-meta-weight: 400;
  --pending-meta-leading: 1.4;
}

/* Right-panel section titles: one shared hierarchy, without changing order. */
.inbox-section .visual-type-head > span,
.inbox-section .professional-traits-heading,
.inbox-section .creative-method-heading > span,
.inbox-section .inbox-judgment-note > span {
  font-family: var(--pending-type-family);
  font-size: var(--pending-heading-size);
  font-weight: var(--pending-heading-weight);
  line-height: var(--pending-heading-leading);
  letter-spacing: -.15px;
}

/* The formal page's stored-analysis surfaces are the AI-analysis equivalent.
   Keep their semantic content and status treatment; change only title scale
   and supporting-copy scale. */
.inbox-section .p5-live-visual > b,
.inbox-section .p5-live-visual header > b,
.inbox-section .inbox-understanding-head > div > b {
  font-family: var(--pending-type-family);
  font-size: var(--pending-heading-size);
  font-weight: var(--pending-heading-weight);
  line-height: var(--pending-heading-leading);
}

/* Labels, tags, choices and judgment copy stay regular; selection is carried
   by color/background/aria state rather than a heavier weight. */
.inbox-section .identity-editor-row-trigger,
.inbox-section .identity-editor-row-trigger > span:first-child,
.inbox-section .identity-editor-row-value,
.inbox-section .identity-editor-popover button,
.inbox-section .inbox-unified-card .trait-dimension,
.inbox-section .inbox-unified-card .aesthetic-axis button,
.inbox-section .inbox-unified-card .aesthetic-signal,
.inbox-section .inbox-unified-card .aesthetic-signal .signal-label,
.inbox-section .creative-method-heading > button,
.inbox-section .creative-method-selected > span,
.inbox-section .creative-method-selected > span button,
.inbox-section .creative-method-picker button,
.inbox-section .inbox-judgment-note textarea,
.inbox-section .p5-live-visual p,
.inbox-section .p5-live-visual button,
.inbox-section .inbox-understanding,
.inbox-section .inbox-understanding button {
  font-family: var(--pending-type-family);
  font-size: var(--pending-body-size);
  font-weight: var(--pending-body-weight);
  line-height: var(--pending-body-leading);
}

.inbox-section .identity-editor-popover button.active,
.inbox-section .identity-editor-popover button[aria-pressed="true"],
.inbox-section .trait-value.active,
.inbox-section .trait-value[aria-pressed="true"],
.inbox-section .asset-type-family button.active,
.inbox-section .asset-usage-options button.active {
  font-weight: var(--pending-body-weight);
}

/* Auxiliary explanations and provenance notes match the reference's quiet
   supporting scale. */
.inbox-section .identity-editor-row-value small,
.inbox-section .inbox-judgment-note > span small,
.inbox-section .creative-method-selected > span small,
.inbox-section .creative-method-selected > small,
.inbox-section .creative-method-groups > div > span,
.inbox-section .p5-live-visual small,
.inbox-section .inbox-understanding-head small,
.inbox-section .understanding-ai-note,
.inbox-section .understanding-empty,
.inbox-section .understanding-error,
.inbox-section .understanding-boundary {
  font-family: var(--pending-type-family);
  font-size: var(--pending-meta-size);
  font-weight: var(--pending-meta-weight);
  line-height: var(--pending-meta-leading);
}

/* Keep pills compact after the type reduction; colors and selected states are
   inherited from the existing visual system. */
.inbox-section .inbox-unified-card .aesthetic-signal,
.inbox-section .inbox-unified-card .aesthetic-axis button,
.inbox-section .creative-method-selected > span,
.inbox-section .identity-editor-row-value {
  min-height: 30px;
  border-radius: 9px;
}
.inbox-section .inbox-unified-card .aesthetic-signal {
  gap: 6px;
  padding-inline: 9px;
}
.inbox-section .inbox-unified-card .aesthetic-axis button,
.inbox-section .creative-method-selected > span {
  padding-inline: 9px;
}

/* Bottom review actions: same in-rail footer, now text + icon with a real
   click target. No fixed/floating positioning is introduced. */
.inbox-section .inbox-unified-card .inbox-queue-actions {
  gap: 10px;
  justify-content: center;
}
.inbox-section .inbox-unified-card .inbox-queue-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--pending-type-family);
  font-size: var(--pending-body-size);
  font-weight: var(--pending-body-weight);
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.inbox-section .inbox-queue-actions span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
.inbox-section .inbox-queue-actions svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}
.inbox-section .inbox-queue-actions small {
  position: static;
  width: auto;
  font-family: inherit;
  font-size: var(--pending-body-size);
  font-weight: var(--pending-body-weight);
  line-height: 1;
}
.inbox-section .inbox-queue-actions .queue-discard {
  border-color: #efd2ce;
  background: #f8e7e5;
  color: #9d4d4a;
}
.inbox-section .inbox-queue-actions .queue-later {
  border-color: #d5dfeb;
  background: #e8eef5;
  color: #506a88;
}
.inbox-section .inbox-queue-actions .queue-keep {
  border-color: #cde7d7;
  background: #e5f4eb;
  color: #387153;
}
.inbox-section .inbox-queue-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(46, 61, 91, .12);
}
.inbox-section .inbox-queue-actions button:focus-visible {
  outline: 3px solid rgba(91, 122, 186, .22);
  outline-offset: 2px;
  box-shadow: 0 5px 14px rgba(46, 61, 91, .12);
}
.inbox-section .inbox-queue-actions button:disabled {
  opacity: .45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1040px) {
  .inbox-section .inbox-unified-card .inbox-queue-actions button {
    min-width: 78px;
    padding-inline: 10px;
  }
}

/* DB-V04-T-INBOX-INTEGRATION-02 · formal inbox uses the verified Figma
   inspector structure while retaining the existing real data/event owners. */
.inbox-section .inbox-aesthetic-panel.inspector-v2 {
  /* The shared inspector base is hidden by default for the detail overlay.
     The inbox rail is an always-visible flex child in the two-column queue. */
  display: block;
  padding: 14px 20px 20px;
  background: rgba(251, 252, 254, .42);
}

/* Keep the existing feedback toast lightweight while allowing a single,
   non-modal context jump after a real inbox resolve. */
.toast.has-action {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.toast.has-action .toast-action {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, .1);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.toast.has-action .toast-action:hover,
.toast.has-action .toast-action:focus-visible {
  background: rgba(255, 255, 255, .18);
  outline: none;
}
.inbox-section .inbox-aesthetic-panel.inspector-v2 .inspector-actions-top {
  height: 38px;
  margin-bottom: 2px;
}
.inbox-section .inbox-aesthetic-panel.inspector-v2 .confirm-library {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #cbd9e8;
  border-radius: 8px;
  background: #e8f0fb;
  color: #315a88;
  font-size: 12px;
  font-weight: 400;
}
.inbox-section .inbox-aesthetic-panel.inspector-v2 .confirm-library:hover,
.inbox-section .inbox-aesthetic-panel.inspector-v2 .confirm-library:focus-visible {
  border-color: #aebfd5;
  background: #dfeaf7;
  outline: 2px solid rgba(79, 108, 145, .18);
  outline-offset: 2px;
}
.inbox-section .inbox-design-panel {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(111, 129, 158, .13);
}
.inbox-section .inbox-design-panel + .inbox-design-panel { margin-top: 2px; }
.inbox-section .inbox-design-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 8px 2px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--inspector-heading);
  text-align: left;
}
.inbox-section .inbox-design-panel-title > span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.inbox-section .inbox-design-panel-title b {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.inbox-section .inbox-design-panel-title em {
  overflow: hidden;
  color: var(--inspector-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-section .inbox-design-panel-title > strong {
  flex: 0 0 auto;
  color: var(--inspector-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}
.inbox-section .inbox-design-panel-title:hover,
.inbox-section .inbox-design-panel-title:focus-visible {
  background: rgba(232, 238, 246, .32);
  outline: none;
}
.inbox-section .inbox-design-panel-title:focus-visible {
  box-shadow: 0 0 0 2px rgba(79, 108, 145, .18);
}
.inbox-section .inbox-design-panel-content {
  min-width: 0;
  padding: 1px 0 12px;
  color: var(--inspector-text);
}
.inbox-section .inbox-design-panel-content > .inbox-understanding,
.inbox-section .inbox-design-panel-content > .p5-live-visual {
  margin-bottom: 9px;
}
.inbox-section .inbox-design-panel-content > .inbox-understanding:last-child,
.inbox-section .inbox-design-panel-content > .p5-live-visual:last-child {
  margin-bottom: 0;
}
.inbox-section .inbox-design-panel-content .visual-type-field {
  padding-top: 1px;
}
.inbox-section .inbox-design-panel-content .visual-type-field > .visual-type-head {
  display: none;
}
.inbox-section .inbox-design-panel-content .professional-traits-empty {
  margin-top: 4px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(239, 242, 247, .68);
  color: var(--inspector-muted);
  font-size: 11px;
  line-height: 1.5;
}
.inbox-section .inbox-design-panel-content .aesthetic-signal-groups {
  margin-top: 0;
  margin-bottom: 12px;
}
.inbox-section .inbox-design-panel-content .inbox-judgment-note {
  display: block;
  margin-top: 0;
}

@media (max-width: 760px) {
  .inbox-section .inbox-aesthetic-panel.inspector-v2 { padding-inline: 14px; }
  .inbox-section .inbox-design-panel-title b { font-size: 16px; }
  .inbox-section .inbox-design-panel-title em { font-size: 10px; }
}
