:root {
  --ink: #17202a;
  --muted: #6d7782;
  --line: #e7e4dc;
  --paper: #fffef9;
  --canvas: #f4f2ec;
  --navy: #182d3c;
  --navy-soft: #25475a;
  --teal: #1f827a;
  --teal-soft: #e7f3ef;
  --amber: #c17b2c;
  --amber-soft: #fbf0de;
  --red: #ba5547;
  --shadow: 0 18px 50px rgba(24, 45, 60, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 30px 20px;
  background: var(--navy);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 32px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand div,
.sidebar-note div {
  display: flex;
  flex-direction: column;
}

.brand span:last-child,
.sidebar-note span {
  color: #aebcc5;
  font-size: 12px;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aebcc5;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fc9a3;
  box-shadow: 0 0 0 4px rgba(95, 201, 163, 0.12);
}

main {
  padding: 38px clamp(24px, 5vw, 72px) 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}

.connection-pill,
.status-badge,
.confidence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.connection-pill {
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 19px;
  border-radius: 14px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-value {
  display: block;
  margin-top: 7px;
  font-family: Georgia, serif;
  font-size: 30px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(480px, 1.45fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border-radius: 16px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.ghost-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--navy-soft);
  cursor: pointer;
}

.meeting-item {
  width: 100%;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.meeting-item:last-child {
  border-bottom: 0;
}

.meeting-item:hover,
.meeting-item.selected {
  background: #f3f8f6;
}

.meeting-item.selected {
  box-shadow: inset 3px 0 var(--teal);
}

.meeting-title-row,
.detail-heading,
.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.meeting-item strong {
  font-size: 15px;
}

.meeting-meta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-badge,
.confidence {
  padding: 5px 9px;
  background: var(--teal-soft);
  color: var(--teal);
}

.status-badge.processing {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge.failed {
  background: #fae8e4;
  color: var(--red);
}

.empty-state {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 42px;
}

.detail-content {
  padding: 26px;
}

.detail-heading {
  align-items: flex-start;
  margin-bottom: 24px;
}

.detail-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

.detail-tabs {
  display: flex;
  gap: 5px;
  margin: 0 -26px 24px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}

.detail-tab {
  padding: 11px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.detail-tab.active {
  border-bottom-color: var(--teal);
  color: var(--teal);
  font-weight: 700;
}

.summary-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.summary-list li {
  position: relative;
  padding: 12px 14px 12px 37px;
  border-radius: 10px;
  background: #f5f4ef;
  line-height: 1.5;
}

.summary-list li::before {
  position: absolute;
  left: 15px;
  color: var(--teal);
  content: "•";
}

.section-title {
  margin: 28px 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-card,
.task-card,
.transcript-line {
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.decision-card span,
.task-card p,
.transcript-line span {
  color: var(--muted);
  font-size: 12px;
}

.task-card {
  border-left: 3px solid var(--teal);
}

.task-card p {
  margin: 7px 0 0;
  line-height: 1.5;
}

.transcript-line strong {
  color: var(--navy-soft);
}

.transcript-line time {
  margin-right: 8px;
  color: var(--teal);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.hidden {
  display: none;
}

@media (max-width: 1050px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .sidebar nav {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-note {
    display: none;
  }

  .brand {
    padding-bottom: 18px;
  }

  main {
    padding: 24px 16px 48px;
  }

  .topbar {
    align-items: center;
  }

  .connection-pill {
    display: none;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}
