:root {
  --accent: #6d28ff;
  --accent-dark: #4c16d7;
  --accent-soft: rgba(109, 40, 255, 0.1);
  --ink: #070817;
  --muted: #666d82;
  --line: #e8e9f2;
  --panel: #ffffff;
  --soft: #f7f8fc;
  --green: #0f9f6e;
  --blue: #1887e8;
  --orange: #f48118;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(25, 23, 49, 0.1);
}

.inbox-hero,
.inbox-stats,
.kpi-card,
.inbox-tabs,
.panel-title,
.filter-list button,
.worker-list article,
.feed-header,
.event-card,
.event-actions,
.timeline-header,
.timeline-list,
.briefing-list article,
.quick-actions a,
.status-panel {
  display: flex;
  align-items: center;
}

.inbox-orb,
.metric-icon,
.kpi-icon,
.mini-icon,
.event-icon,
.status-orb {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0a0b18, var(--accent));
  font-weight: 820;
}

.kpi-card,
.filter-panel,
.inbox-feed,
.timeline-panel,
.rail-panel {
  position: static;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inbox-main {
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px 30px 42px;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.inbox-primary,
.inbox-rail {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.inbox-rail {
  align-content: start;
}

.inbox-hero {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 24px;
  overflow: hidden;
  border-radius: 8px;
  padding: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 16%, rgba(109, 40, 255, 0.58), transparent 30%),
    linear-gradient(135deg, #070817, #1a0754 68%, #321094);
  box-shadow: 0 28px 80px rgba(25, 23, 49, 0.22);
}

.inbox-orb,
.inbox-copy,
.inbox-stats,
.hero-action {
  position: relative;
}

.inbox-orb {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(109, 40, 255, 0.38);
}

.inbox-orb span {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
}

.inbox-orb strong {
  position: relative;
  font-size: 24px;
}

.inbox-hero .eyebrow {
  color: #cfc4ff;
}

.inbox-copy h2 {
  margin: 4px 0 8px;
  font-size: 34px;
}

.inbox-copy h2 .inbox-status {
  display: inline-flex;
  margin-inline-start: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #d5ffe9;
  background: rgba(15, 159, 110, 0.22);
  font-size: 12px;
  vertical-align: middle;
}

.inbox-copy p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.45;
}

.hero-action {
  align-self: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 14px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-size: 13px;
  font-weight: 820;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.inbox-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.inbox-stats div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px 10px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
  padding-inline-start: 14px;
}

.metric-icon {
  grid-row: span 3;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #cfc4ff;
  background: rgba(109, 40, 255, 0.2);
  font-size: 10px;
}

.inbox-stats p,
.inbox-stats strong,
.inbox-stats small {
  display: block;
}

.inbox-stats p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 680;
}

.inbox-stats strong {
  color: #ffffff;
  font-size: 22px;
}

.inbox-stats small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.kpi-icon,
.mini-icon,
.event-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  font-size: 11px;
}

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 10px;
}

.purple { background: linear-gradient(135deg, #6d28ff, #4c16d7); }
.violet { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.blue { background: linear-gradient(135deg, #1887e8, #60a5fa); }
.green { background: linear-gradient(135deg, #0f9f6e, #34d399); }
.orange { background: linear-gradient(135deg, #f48118, #fb923c); }
.teal { background: linear-gradient(135deg, #12a8c7, #0c7e91); }
.red { background: linear-gradient(135deg, #ef4444, #f97316); }
.pink { background: linear-gradient(135deg, #f43f7d, #f97316); }
.dark { background: linear-gradient(135deg, #0a0b18, #12a8c7); }

.kpi-card strong,
.kpi-card small {
  display: block;
}

.kpi-card strong {
  font-size: 24px;
}

.kpi-card small {
  color: #283052;
  font-size: 12px;
  font-weight: 720;
}

.inbox-tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.inbox-tabs button {
  min-height: 44px;
  border: 1px solid rgba(109, 40, 255, 0.14);
  border-radius: 8px;
  padding: 10px 13px;
  color: #283052;
  background: #ffffff;
  font-size: 12px;
  font-weight: 780;
  box-shadow: 0 12px 26px rgba(24, 29, 54, 0.05);
}

.inbox-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(109, 40, 255, 0.22);
}

.inbox-tabs span,
.filter-list strong,
.worker-list em {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 820;
}

.inbox-board {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.inbox-filters,
.inbox-feed {
  min-width: 0;
}

.inbox-filters {
  display: grid;
  align-content: start;
  gap: 16px;
}

.filter-panel,
.inbox-feed,
.timeline-panel,
.rail-panel {
  padding: 18px;
}

.panel-title,
.feed-header,
.timeline-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-title h2,
.feed-header h2,
.timeline-header h2,
.rail-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.panel-title button,
.soft-button,
.timeline-header a,
.period-button {
  min-height: 44px;
  border: 1px solid rgba(109, 40, 255, 0.14);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--accent);
  background: #ffffff;
  font-size: 12px;
  font-weight: 780;
}

.filter-list,
.worker-list,
.event-list,
.briefing-list,
.quick-actions {
  display: grid;
  gap: 10px;
}

.filter-list button {
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #283052;
  background: transparent;
  font-size: 13px;
  font-weight: 720;
}

.filter-list button.active {
  background: rgba(109, 40, 255, 0.09);
}

.filter-list strong,
.worker-list em {
  color: var(--accent);
  background: rgba(109, 40, 255, 0.1);
}

.worker-list article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
}

.worker-list strong {
  font-size: 12px;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 5px 56px minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.event-indicator {
  align-self: stretch;
  border-radius: 999px;
  background: var(--accent);
}

.event-card.red .event-indicator { background: var(--red); }
.event-card.green .event-indicator { background: var(--green); }
.event-card.orange .event-indicator { background: var(--orange); }
.event-card.blue .event-indicator { background: var(--blue); }
.event-card.violet .event-indicator { background: #8b5cf6; }
.event-card.purple .event-indicator { background: var(--accent); }

.event-copy {
  min-width: 0;
}

.event-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.event-copy small,
.event-card time {
  color: #283052;
  font-size: 12px;
  font-weight: 720;
}

.event-copy em {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--red);
  background: rgba(239, 68, 68, 0.09);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.event-copy h3 {
  margin: 5px 0 4px;
  font-size: 16px;
}

.event-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.event-card time {
  justify-self: end;
}

.event-actions {
  grid-column: 4;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.event-actions button {
  min-width: 92px;
  min-height: 44px;
  border: 1px solid rgba(109, 40, 255, 0.16);
  border-radius: 8px;
  padding: 9px 12px;
  color: #283052;
  background: #ffffff;
  font-size: 12px;
  font-weight: 820;
}

.event-actions button:first-child {
  color: var(--green);
}

.event-actions button:last-child:nth-child(3) {
  color: var(--red);
}

.event-actions button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.72;
}

.inbox-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.timeline-panel {
  overflow: hidden;
}

.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 14px;
}

.timeline-list::before {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 8px;
  inset-inline-start: 16px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}

.timeline-list article {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-bottom: 24px;
}

.timeline-list article::after {
  position: absolute;
  bottom: 3px;
  inset-inline-start: 28px;
  width: 11px;
  height: 11px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  content: "";
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(109, 40, 255, 0.25);
}

.timeline-list time {
  color: #283052;
  font-size: 12px;
  font-weight: 820;
}

.timeline-list strong {
  color: #283052;
  font-size: 12px;
  line-height: 1.35;
}

.rail-panel {
  display: grid;
  gap: 14px;
}

.rail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.briefing-head {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.briefing-head span {
  color: #283052;
  font-weight: 720;
}

.briefing-head strong {
  color: var(--accent);
  font-size: 28px;
}

.briefing-list article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
}

.briefing-list strong,
.quick-actions strong {
  font-size: 13px;
}

.briefing-list em {
  color: #283052;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.quick-actions a {
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.quick-actions small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  overflow: hidden;
}

.status-copy h2 {
  margin: 14px 0 8px;
  color: var(--green);
  font-size: 16px;
}

.status-copy p:not(.eyebrow) {
  margin: 0;
  color: #283052;
  font-size: 13px;
  line-height: 1.5;
}

.status-copy .eyebrow span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-start: 6px;
  border-radius: 999px;
  background: var(--green);
}

.status-copy a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.status-orb {
  width: 88px;
  height: 88px;
  align-self: center;
  border-radius: 999px;
  box-shadow: 0 24px 52px rgba(109, 40, 255, 0.28);
}

@media (max-width: 1400px) {
.inbox-layout {
    grid-template-columns: 1fr;
  }

  .inbox-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
.inbox-board {
    grid-template-columns: 1fr;
  }

  .inbox-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-rail {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
.inbox-main {
    padding: 18px 18px 104px;
  }

  .inbox-hero,
.inbox-stats,
.inbox-filters,
.inbox-rail {
    grid-template-columns: 1fr;
  }

  .hero-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .inbox-orb {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .inbox-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .inbox-tabs::-webkit-scrollbar {
    display: none;
  }

  .inbox-tabs button {
    flex: 0 0 auto;
  }

  .event-card {
    grid-template-columns: 5px 46px minmax(0, 1fr);
  }

  .event-card time,
.event-actions {
    grid-column: 3;
    justify-self: start;
  }

  .event-actions {
    justify-content: flex-start;
  }

  .timeline-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-list::before {
    display: none;
  }

  .timeline-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
  }

  .timeline-list article::after {
    display: none;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

  .status-orb {
    justify-self: start;
  }
}

@media (max-width: 560px) {
.inbox-primary,
.inbox-layout,
.inbox-rail,
.inbox-board {
    gap: 16px;
  }

  .inbox-hero,
.filter-panel,
.inbox-feed,
.timeline-panel,
.rail-panel {
    padding: 16px;
  }

  .inbox-copy h2 {
    font-size: 28px;
  }

  .kpi-grid,
.timeline-list {
    grid-template-columns: 1fr;
  }

  .event-actions button {
    min-width: 0;
    flex: 1 1 96px;
  }
}
