:root {
  color-scheme: light;
  --bg: #071017;
  --panel: #ffffff;
  --panel-subtle: #101b23;
  --ink: #12171d;
  --muted: #65727a;
  --line: #d6e0e2;
  --line-strong: #b9c8cb;
  --accent: #0d8f88;
  --accent-strong: #075f5b;
  --blue: #245a7e;
  --amber: #d89128;
  --danger: #b64242;
  --dark: #0b141b;
  --dark-panel: #111d26;
  --dark-panel-2: #152630;
  --dark-line: rgba(215, 232, 236, 0.12);
  --dark-muted: #9caeb6;
  --shadow: 0 22px 58px rgba(15, 28, 36, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font-size: 13px;
}

textarea {
  resize: vertical;
}

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

h1 {
  font-size: 20px;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  letter-spacing: 0;
}

h3 {
  font-size: 14px;
  letter-spacing: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(560px, 1fr) 320px;
  grid-template-rows: 72px minmax(0, 1fr);
  min-height: 100vh;
  background: #0b141b;
}

.command-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 300px auto auto minmax(540px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--dark-line);
  background: rgba(9, 18, 25, 0.96);
  backdrop-filter: blur(12px);
  color: #f7fbfb;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-row h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f4fcfc;
}

.brand-glyph {
  width: 34px;
  height: 30px;
  position: relative;
  display: inline-block;
}

.brand-glyph::before,
.brand-glyph::after,
.brand-glyph i,
.brand-glyph b {
  content: "";
  position: absolute;
  left: 50%;
  display: block;
  width: 4px;
  border-radius: 999px;
  background: #12d8cf;
  box-shadow: 0 0 12px rgba(18, 216, 207, 0.28);
}

.brand-glyph::before {
  top: 0;
  height: 30px;
  transform: translateX(-50%);
}

.brand-glyph::after {
  top: 4px;
  height: 22px;
  transform: translateX(calc(-50% - 9px));
}

.brand-glyph i {
  top: 7px;
  height: 16px;
  transform: translateX(calc(-50% + 9px));
}

.brand-glyph b:first-child {
  top: 12px;
  height: 6px;
  transform: translateX(calc(-50% - 17px));
}

.brand-glyph b:last-child {
  top: 12px;
  height: 6px;
  transform: translateX(calc(-50% + 17px));
}

.brand-word {
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.processing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.ready-dot {
  background: #24cf79;
}

.brand-row p,
.section-heading p,
.summary-header p,
.metric-label,
.empty-state,
.microcopy,
.transcript-utility p,
.history-card p {
  color: var(--muted);
}

.command-bar .brand-row p {
  color: var(--dark-muted);
}

.command-bar .brand-row p span:first-child {
  color: #22d7d0;
  font-weight: 750;
}

.command-bar button:not(.primary-button),
.command-bar .status-pill {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, 0.06);
  color: #f7fbfb;
}

.meeting-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.meeting-controls button {
  min-width: 112px;
}

.meeting-controls #start-button {
  min-width: 146px;
}

.meeting-controls #stop-button {
  min-width: 174px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-actions button {
  border: 0 !important;
  background: transparent !important;
  padding: 0 6px;
  color: #f7fbfb;
}

.primary-button {
  background: linear-gradient(180deg, #11ddd3, #04a69f);
  color: #071017;
  border-color: rgba(34, 247, 239, 0.45);
  box-shadow: 0 12px 28px rgba(0, 209, 199, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.icon {
  display: inline-block;
  width: 18px;
  text-align: center;
}

.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--muted);
}

.dot.recording {
  background: #2e9b63;
  box-shadow: 0 0 0 4px rgba(46, 155, 99, 0.15);
}

.setup-rail,
.history-rail {
  min-width: 0;
  padding: 18px;
  overflow: auto;
}

.setup-rail {
  border-right: 1px solid var(--dark-line);
  background:
    radial-gradient(circle at 22% 4%, rgba(0, 209, 199, 0.22), transparent 28%),
    linear-gradient(180deg, #101f28, #0a141b);
  color: #eef8f8;
}

.history-rail {
  border-left: 1px solid var(--dark-line);
  background:
    radial-gradient(circle at 80% 4%, rgba(36, 90, 126, 0.28), transparent 30%),
    linear-gradient(180deg, #101f28, #0a141b);
  color: #eef8f8;
}

.status-card,
.setup-panel,
.metric-grid > div,
.summary-workspace,
.transcript-utility,
.library-item,
.summary-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.rail-heading,
.section-heading.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rail-heading {
  margin-bottom: 10px;
}

.rail-heading h2 {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-label {
  color: #16e2d7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card,
.setup-panel {
  padding: 14px;
  margin-bottom: 14px;
}

.setup-rail .status-card,
.setup-rail .setup-panel,
.setup-rail .metric-grid > div,
.history-rail .library-item,
.history-rail .empty-state {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, 0.055);
}

.setup-rail .section-heading p,
.setup-rail .setup-panel label,
.setup-rail .metric-label,
.setup-rail .microcopy,
.history-rail .section-heading p,
.history-rail .library-item p,
.history-rail .library-item-top span,
.history-rail .library-item span,
.history-rail .empty-state {
  color: var(--dark-muted);
}

.setup-rail input,
.setup-rail textarea,
.setup-rail button,
.setup-rail .file-button {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, 0.06);
  color: #f7fbfb !important;
}

.setup-rail input::placeholder,
.setup-rail textarea::placeholder {
  color: rgba(239, 249, 249, 0.58);
}

#waveform {
  width: 100%;
  height: 92px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(5, 15, 20, 0.2), rgba(8, 19, 26, 0.42)),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(0, 209, 199, 0.12) 14px 15px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 209, 199, 0.08) 18px 19px);
  border: 1px solid var(--dark-line);
}

.signal-meter {
  display: grid;
  margin-top: 12px;
  font-size: 12px;
  color: var(--dark-muted);
}

.signal-meter div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-meter strong {
  color: #16e2d7;
  font-size: 13px;
  text-align: right;
}

.permission-help {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  border-left: 3px solid var(--danger);
  padding-left: 9px;
  font-size: 12px;
  line-height: 1.35;
}

.permission-help[hidden] {
  display: none;
}

.permission-help span {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 15px;
}

.section-heading p,
.microcopy,
.panel-note {
  font-size: 12px;
  line-height: 1.35;
}

.panel-note {
  margin-top: -8px;
  margin-bottom: 10px;
  color: var(--dark-muted);
}

.mini-button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
}

.setup-panel label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 850;
  color: var(--muted);
}

.participant-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.participant-chip,
.entity-chip,
.speaker-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
}

.participant-chip {
  justify-content: flex-start;
  min-height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef8f8;
}

.participant-chip::before {
  content: attr(data-initials);
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #071017;
  font-size: 10px;
  font-weight: 950;
}

.speaker-chip {
  background: rgba(13, 143, 136, 0.12);
  color: var(--accent-strong);
}

.muted-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dark-muted);
}

.entity-chip {
  background: rgba(49, 95, 143, 0.12);
  color: var(--blue);
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
}

.file-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink) !important;
  cursor: pointer;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.audio-source-card {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef8f8;
  font-size: 13px;
  font-weight: 750;
}

.audio-bars {
  width: 28px;
  height: 22px;
  display: inline-block;
  background:
    linear-gradient(90deg, transparent 0 2px, #eafcfc 2px 4px, transparent 4px 6px, #eafcfc 6px 8px, transparent 8px 10px, #12d8cf 10px 13px, transparent 13px 15px, #12d8cf 15px 18px, transparent 18px 20px, #12d8cf 20px 22px, transparent 22px);
  clip-path: polygon(0 42%, 12% 28%, 24% 16%, 36% 6%, 48% 16%, 60% 30%, 72% 18%, 84% 34%, 100% 42%, 100% 58%, 84% 66%, 72% 82%, 60% 70%, 48% 84%, 36% 94%, 24% 84%, 12% 72%, 0 58%);
}

.compact-bars {
  transform: scaleX(0.75);
  transform-origin: left center;
}

.metric-grid > div {
  padding: 12px;
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  font-size: 22px;
  font-weight: 850;
}

.metric-label {
  margin-top: 2px;
  font-size: 11px;
}

.summary-workspace {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0 28px 24px;
  overflow: auto;
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  box-shadow: none;
  background: #fcfefe;
}

.summary-workspace::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 260px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(13, 143, 136, 0.1) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(13, 143, 136, 0.08), transparent 72%);
  opacity: 0.55;
}

.summary-masthead {
  position: relative;
  min-height: 248px;
  padding-top: 26px;
  border-bottom: 1px solid var(--line);
}

.summary-signal-band {
  position: relative;
  height: 128px;
  margin: 0;
  overflow: hidden;
}

.summary-signal-band span {
  display: block;
  height: 100%;
  background:
    repeating-radial-gradient(ellipse at 8% 48%, transparent 0 4px, rgba(0, 209, 199, 0.34) 5px 6px, transparent 7px 10px),
    repeating-radial-gradient(ellipse at 22% 48%, transparent 0 12px, rgba(0, 209, 199, 0.2) 13px 14px, transparent 15px 24px),
    repeating-radial-gradient(ellipse at 43% 48%, transparent 0 17px, rgba(31, 111, 235, 0.16) 18px 19px, transparent 20px 34px);
  mask-image:
    linear-gradient(90deg, #000 0 76%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 68%, transparent 100%);
  opacity: 0.72;
}

.summary-signal-band::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 0;
  top: 65px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 111, 235, 0.12), rgba(31, 111, 235, 0.72));
  box-shadow: 0 0 0 1px rgba(31, 111, 235, 0.04);
}

.summary-signal-band::before {
  content: "";
  position: absolute;
  right: 0;
  top: 62px;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f6feb;
  box-shadow: 0 0 10px rgba(31, 111, 235, 0.55);
}

.summary-workspace > * {
  position: relative;
}

.summary-header,
.transcript-utility {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.summary-actions {
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.summary-header {
  margin-top: -2px;
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-header h2 {
  margin: 14px 0 7px;
  max-width: 560px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #52616b !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

#summary-subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #65727a;
  font-size: 17px;
  font-weight: 760;
}

.summary-content {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
}

.summary-content > .empty-state {
  grid-column: 1 / -1;
}

.summary-section {
  padding: 18px 22px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.summary-hero {
  grid-column: span 3;
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(90deg, rgba(13, 143, 136, 0.08), #fff 42%),
    #fff;
}

.summary-section[data-section="Summary"] {
  grid-column: span 3;
  border-left: 1px solid var(--line);
}

.summary-section[data-section="Key Points"] {
  grid-column: span 3;
  border-left: 1px solid var(--line);
}

.summary-section[data-section="Outline"],
.summary-section[data-section="Decisions"],
.summary-section[data-section="Action Items"] {
  grid-column: span 2;
}

.summary-section[data-section="Decisions"],
.summary-section[data-section="Action Items"] {
  border-left: 1px solid var(--line);
}

.summary-section[data-section="Open Questions"],
.summary-section[data-section="Risks"],
.summary-section[data-section="Saved Files"] {
  grid-column: 1 / -1;
}

.summary-section h3 {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-strong);
  text-transform: uppercase;
}

.summary-section[data-section="Decisions"] h3 {
  color: var(--amber);
}

.summary-section p,
.summary-section li {
  line-height: 1.5;
}

.summary-section ul {
  margin: 0;
  padding-left: 18px;
}

.summary-section li + li {
  margin-top: 7px;
}

.transcript-utility {
  margin-top: 18px;
  padding: 14px;
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  margin-bottom: 12px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--dark-muted);
}

.search-field input {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #eef8f8;
}

.search-field input::placeholder {
  color: var(--dark-muted);
}

.filter-button,
.archive-button {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, 0.055);
  color: #eef8f8;
}

.transcript-utility h3 {
  margin-bottom: 3px;
}

.transcript-utility p {
  font-size: 12px;
}

.transcript-list[hidden] {
  display: none;
}

.turn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  line-height: 1.45;
}

.turn-time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 4px;
}

.entity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.library-list {
  display: grid;
  gap: 8px;
}

.library-item {
  padding: 14px;
  border-radius: 7px;
}

.library-item.active {
  border-color: var(--accent);
  background: rgba(13, 143, 136, 0.1);
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 2px rgba(13, 143, 136, 0.12);
}

.library-item-main {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-weight: inherit;
  color: inherit;
}

.library-item-main:focus-visible,
.library-actions summary:focus-visible {
  outline: 2px solid rgba(13, 143, 136, 0.4);
  outline-offset: 3px;
}

.library-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.library-item-top span,
.library-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.library-item strong {
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.archive-button {
  width: 100%;
  margin-top: 14px;
}

.library-item p {
  font-size: 12px;
  line-height: 1.35;
}

.library-actions {
  position: relative;
}

.library-actions summary {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: currentColor;
  cursor: pointer;
  list-style: none;
}

.library-actions summary::-webkit-details-marker {
  display: none;
}

.library-actions[open] summary {
  background: rgba(255, 255, 255, 0.09);
}

.library-menu {
  position: absolute;
  right: 0;
  top: 32px;
  z-index: 3;
  min-width: 128px;
  padding: 6px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--dark-panel);
  box-shadow: var(--shadow);
}

.library-menu button {
  width: 100%;
  border: 0;
  justify-content: flex-start;
  text-align: left;
  color: var(--danger);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.error {
  color: var(--danger);
}

.api-key-panel {
  scroll-margin-top: 90px;
}

.api-key-panel input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

#save-api-keys-button {
  width: 100%;
  margin-top: 12px;
}

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 209, 199, 0.24), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(31, 111, 235, 0.18), transparent 28%),
    #071017;
  color: #f6fbfb;
}

.landing-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.landing-nav,
.landing-brand,
.landing-actions,
.landing-band {
  display: flex;
  align-items: center;
}

.landing-nav {
  justify-content: space-between;
  margin-bottom: 72px;
}

.landing-brand,
.landing-nav-link,
.landing-primary,
.landing-secondary {
  color: inherit;
  text-decoration: none;
}

.landing-brand {
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.landing-nav-link,
.landing-secondary {
  color: #a9bac2;
  font-weight: 850;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: center;
}

.landing-copy h1 {
  max-width: 680px;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
}

.landing-copy p {
  max-width: 620px;
  margin-top: 24px;
  color: #bfd0d8;
  font-size: 21px;
  line-height: 1.45;
}

.landing-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.landing-primary,
.landing-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.landing-primary {
  background: linear-gradient(180deg, #11ddd3, #04a69f);
  color: #071017;
}

.landing-secondary {
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.06);
}

.landing-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfdfd;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.landing-signal {
  height: 152px;
  background:
    repeating-radial-gradient(ellipse at 12% 50%, transparent 0 8px, rgba(0, 209, 199, 0.28) 9px 10px, transparent 11px 18px),
    repeating-radial-gradient(ellipse at 42% 50%, transparent 0 16px, rgba(31, 111, 235, 0.16) 17px 18px, transparent 19px 32px);
  mask-image: linear-gradient(90deg, #000 0 82%, transparent 100%);
}

.landing-brief {
  padding: 24px;
  color: #12171d;
}

.landing-brief span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: #52616b;
  font-size: 13px;
  font-weight: 850;
}

.landing-brief strong {
  display: block;
  margin: 16px 0 20px;
  font-size: 34px;
}

.landing-brief p {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  color: #075f5b;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-band {
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.landing-band h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.landing-band p {
  max-width: 720px;
  color: #bfd0d8;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .history-rail {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--dark-line);
  }

  .library-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .command-bar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
  }

  .brand-row {
    min-width: 0;
  }

  .meeting-controls {
    display: grid;
    grid-template-columns: 1fr;
    align-self: stretch;
    width: calc(100vw - 40px);
    max-width: 100%;
    min-width: 0;
  }

  .processing-pill {
    width: fit-content;
  }

  .model-pill,
  .top-actions {
    width: fit-content;
  }

  .meeting-controls button {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-pill {
    margin-left: 0;
    width: fit-content;
  }

  .setup-rail,
  .history-rail {
    width: 100%;
    max-width: 100vw;
    border: 0;
    border-bottom: 1px solid var(--dark-line);
  }

  .summary-workspace {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .summary-header,
  .transcript-utility {
    flex-direction: column;
  }

  .summary-signal-band {
    height: 72px;
  }

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

  .summary-section,
  .summary-hero,
  .summary-section[data-section] {
    grid-column: 1 / -1;
    border-left: 0;
    padding: 16px 0;
  }

  .summary-hero {
    border-left: 3px solid var(--accent);
    padding-left: 14px;
  }
}
