.admin-app {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f2eb;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 26px 18px;
  color: white;
  background: var(--forest);
}

.admin-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--gold);
  font: 700 20px var(--font-editorial);
}

.admin-brand > div {
  display: grid;
}

.admin-brand strong {
  font-size: 14px;
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.admin-sidebar > p {
  margin: 24px 10px 8px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.admin-sidebar nav {
  display: grid;
  gap: 7px;
}

.admin-sidebar nav button,
.back-resident {
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
  font-size: 13px;
}

.admin-sidebar nav button.active {
  color: var(--forest);
  background: var(--gold);
  font-weight: 700;
}

.back-resident {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.admin-main {
  min-width: 0;
  padding: 34px clamp(24px, 4vw, 58px) 50px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-header p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.admin-header h1 {
  margin: 0;
  color: var(--forest);
  font: 700 clamp(25px, 2.4vw, 36px)/1.2 var(--font-editorial);
}

.admin-header > span,
.admin-panel header > span {
  color: var(--muted);
  font-size: 11px;
}

.admin-metrics,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-metrics > article,
.metric-card {
  padding: 20px;
  border-top: 3px solid var(--gold);
  background: var(--paper);
}

.admin-metrics small,
.metric-card small {
  color: var(--muted);
  font-size: 10px;
}

.admin-metrics strong,
.metric-card > strong {
  display: block;
  margin: 8px 0 1px;
  color: var(--forest);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
}

.admin-metrics p,
.metric-card h3 {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.admin-two-column {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  margin-top: 16px;
}

.admin-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.admin-panel > header,
.metric-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel header p,
.metric-section header p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.admin-panel h2,
.metric-section h2 {
  margin: 0;
  color: var(--forest);
  font-size: 18px;
}

.admin-panel header button,
.civil-conclusion button {
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--forest);
  font-size: 11px;
  font-weight: 700;
}

.today-flow ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.today-flow li {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.today-flow li:last-child {
  border-bottom: 0;
}

.today-flow time {
  color: var(--forest);
  font-weight: 700;
}

.today-flow strong {
  color: var(--forest);
  font-size: 13px;
}

.today-flow p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.today-flow li > span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brick);
  background: #f9e3de;
  font-size: 9px;
}

.today-flow li > span.done {
  color: var(--forest);
  background: var(--forest-soft);
}

.event-focus > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
}

.event-focus__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.event-focus__facts span {
  display: grid;
  color: var(--muted);
  font-size: 9px;
}

.event-focus__facts strong {
  color: var(--forest);
  font-size: 15px;
}

.alert-panel {
  margin-top: 16px;
}

.alert-panel ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alert-panel li {
  padding: 14px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  background: #f8f4eb;
  font-size: 11px;
}

.execution-head .execution-summary {
  display: flex;
  gap: 22px;
}

.execution-summary span {
  display: grid;
  color: var(--muted);
  font-size: 9px;
}

.execution-summary strong {
  color: var(--forest);
  font-size: 20px;
}

.privacy-line {
  margin: 0;
  padding: 11px 14px;
  color: var(--muted);
  background: var(--gold-soft);
  font-size: 10px;
}

.table-panel {
  margin-top: 16px;
}

.table-scroll {
  overflow-x: auto;
}

.table-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.table-panel th,
.table-panel td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.table-panel th {
  color: var(--muted);
  background: #f5f2eb;
  font-size: 9px;
  font-weight: 500;
}

.table-panel td:first-child {
  display: grid;
}

.table-panel td small {
  color: var(--muted);
  font-size: 9px;
}

.table-panel td button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: var(--forest);
  background: transparent;
  font-size: 10px;
}

.status-chip {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brick);
  background: #f9e3de;
  font-size: 9px;
}

.status-chip.success {
  color: var(--forest);
  background: var(--forest-soft);
}

.admin-disclaimer {
  margin: -14px 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.metric-section {
  padding: 24px;
  border-left: 5px solid var(--forest);
  background: var(--paper);
}

.metric-section.business {
  margin-top: 16px;
  border-left-color: var(--gold);
}

.metric-section > header > span {
  color: var(--muted);
  font-size: 10px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  border-top: 1px solid var(--line);
  padding: 18px;
  background: #f8f5ee;
}

.trend-strip {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 7px 12px;
  align-items: center;
  margin-top: 18px;
}

.trend-strip span {
  color: var(--muted);
  font-size: 10px;
}

.trend-strip i {
  display: block;
  width: var(--value);
  height: 7px;
  border-radius: 999px;
  background: var(--forest);
}

.metric-section.business .trend-strip i {
  background: var(--gold);
}

.civil-conclusion {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 18px 22px;
  color: var(--forest);
  background: var(--gold-soft);
}

.civil-conclusion > span {
  color: var(--brick);
  font-size: 10px;
}

.civil-conclusion > strong {
  font: 700 17px var(--font-editorial);
}

.channel-row {
  display: grid;
  grid-template-columns: 150px 1fr 30px;
  gap: 14px;
  align-items: center;
  padding: 9px 0;
}

.channel-row > span {
  display: grid;
}

.channel-row strong {
  color: var(--forest);
  font-size: 11px;
}

.channel-row small {
  color: var(--muted);
  font-size: 9px;
}

.channel-row > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--forest-soft);
}

.channel-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.channel-row b {
  color: var(--forest);
  font-size: 12px;
}

.channel-panel footer {
  margin-top: 14px;
  padding: 13px;
  color: var(--forest);
  background: var(--gold-soft);
  font-size: 11px;
  text-align: center;
}

.stage-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stage-gates article {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.stage-gates header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  color: white;
  background: var(--forest);
}

.stage-gates header small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.stage-gates header span {
  font-size: 9px;
}

.stage-gates h2 {
  margin: 0;
  padding: 18px 18px 0;
  color: var(--forest);
  font-size: 17px;
}

.stage-gates ul {
  min-height: 112px;
  margin: 0;
  padding: 12px 18px 18px 34px;
  color: var(--muted);
  font-size: 10px;
}

.stage-gates article > div {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: #f8f5ee;
}

.stage-gates article > div strong {
  color: var(--brick);
  font-size: 10px;
}

.stage-gates article > div p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.decision-rule {
  margin-top: 16px;
  padding: 18px 22px;
  color: var(--forest);
  background: var(--gold-soft);
}

.decision-rule p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
