:root {
  color-scheme: light;
  --ink: #142019;
  --muted: #69736d;
  --paper: #f3f1e9;
  --card: #fffef9;
  --line: #deddd4;
  --dark: #101713;
  --dark-soft: #1b251f;
  --lime: #c7f36a;
  --lime-dark: #8cbd32;
  --coral: #ef7c64;
  --shadow: 0 20px 60px rgba(24, 32, 27, .09);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(140, 189, 50, .5);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px 18px 18px 6px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--dark);
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 800;
}
.brand-mark.small { width: 37px; height: 37px; border-radius: 12px 12px 12px 4px; font-size: 22px; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 560px) 1fr;
  background: var(--paper);
}
.login-card {
  width: min(420px, calc(100% - 48px));
  margin: auto;
}
.login-card h1 {
  max-width: 360px;
  margin: 20px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.login-copy { color: var(--muted); line-height: 1.65; margin: 0 0 32px; }
.login-form label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 9px; }
.password-row { position: relative; }
.password-row input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0 84px 0 16px;
  outline: none;
  transition: .2s ease;
}
.password-row input:focus { border-color: var(--lime-dark); box-shadow: 0 0 0 4px rgba(199, 243, 106, .28); }
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.password-row .icon-button { position: absolute; right: 10px; top: 10px; height: 36px; }
.form-error { min-height: 22px; margin: 8px 0; color: #b34432; font-size: 13px; }
.primary-button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: white;
  font-weight: 750;
  transition: transform .2s, background .2s;
}
.primary-button:hover { transform: translateY(-1px); background: #26342c; }
.secure-note, .privacy-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.secure-note { margin-top: 20px; justify-content: center; }
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9ba19d;
  box-shadow: 0 0 0 4px rgba(155, 161, 157, .12);
}
.status-dot.online, .status-dot.secure { background: #78b52c; box-shadow: 0 0 0 4px rgba(120, 181, 44, .13); }
.status-dot.offline { background: var(--coral); box-shadow: 0 0 0 4px rgba(239, 124, 100, .13); }

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--dark);
  border-radius: 36px 0 0 36px;
}
.login-visual > p {
  position: absolute;
  left: 56px;
  bottom: 44px;
  color: rgba(255,255,255,.58);
  letter-spacing: .1em;
  font-size: 12px;
}
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 430px; height: 430px; top: 12%; left: 18%; background: rgba(199, 243, 106, .9); }
.orb-two { width: 330px; height: 330px; bottom: 2%; right: -6%; background: rgba(239, 124, 100, .72); }
.wave-field {
  position: absolute;
  inset: 22% 11%;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(-8deg);
}
.wave-field i {
  flex: 1;
  max-width: 18px;
  height: 16%;
  border-radius: 20px;
  background: rgba(16, 23, 19, .84);
}
.wave-field i:nth-child(2n) { height: 48%; }
.wave-field i:nth-child(3n) { height: 78%; }
.wave-field i:nth-child(5n) { height: 100%; }

.app-shell { min-height: 100vh; padding: 0 0 128px 226px; }
.sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  width: 226px;
  padding: 27px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--dark);
  color: white;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}
.main-nav { display: grid; gap: 8px; margin-top: 58px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.nav-item.active, .nav-item:hover { color: white; background: rgba(255,255,255,.08); }
.nav-item span { color: var(--lime); font-size: 20px; }
.sidebar-footer { display: grid; gap: 18px; }
.privacy-chip { color: rgba(255,255,255,.55); }
.text-button { padding: 0; border: 0; background: none; color: rgba(255,255,255,.55); text-align: left; font-size: 13px; }
.text-button:hover { color: white; }

.dashboard-main { width: min(1380px, 100%); margin: 0 auto; padding: 38px 42px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.topbar h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.live-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
}

.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 14px; margin: 30px 0 18px; }
.metric-card {
  min-height: 138px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.metric-card.primary { background: var(--lime); border-color: transparent; }
.metric-card p { margin: 0 0 25px; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-card.primary p { color: rgba(20,32,25,.65); }
.metric-card strong { display: block; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.metric-card small { display: block; margin-top: 5px; color: var(--muted); }
.metric-card.primary small { color: rgba(20,32,25,.65); }

.insights-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 30px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 12%, rgba(199, 243, 106, .24), transparent 25%),
    var(--dark);
  color: white;
  box-shadow: 0 24px 70px rgba(16, 23, 19, .18);
}
.insights-panel::after {
  content: "✦";
  position: absolute;
  right: 28px;
  top: 62px;
  color: rgba(199, 243, 106, .11);
  font-size: 140px;
  line-height: 1;
  pointer-events: none;
}
.insight-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.insights-panel .eyebrow { color: rgba(255,255,255,.48); }
.insight-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
}
.secondary-button.light {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: white;
}
.secondary-button.light:hover { background: rgba(255,255,255,.14); }
.secondary-button:disabled { cursor: wait; opacity: .55; }
.insight-loading { display: grid; gap: 12px; margin-top: 32px; }
.insight-skeleton {
  width: 72%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.13), rgba(255,255,255,.06));
  background-size: 220% 100%;
  animation: shimmer 1.6s infinite;
}
.insight-skeleton.wide { width: 48%; height: 36px; }
.insight-skeleton.short { width: 54%; }
@keyframes shimmer { to { background-position: -220% 0; } }
.insight-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
}
.insight-empty > span { color: var(--lime); font-size: 32px; }
.insight-empty strong { display: block; font: 500 20px Georgia, serif; }
.insight-empty p { margin: 5px 0 0; color: rgba(255,255,255,.55); font-size: 12px; }
#insightContent { position: relative; z-index: 1; margin-top: 26px; }
#insightHeadline {
  max-width: 880px;
  margin: 0;
  font: 500 clamp(30px, 3.5vw, 48px)/1.06 Georgia, serif;
  letter-spacing: -.035em;
}
.insight-summary {
  max-width: 940px;
  margin: 15px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.72;
}
.topic-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.topic-chip {
  padding: 6px 9px;
  border: 1px solid rgba(199,243,106,.25);
  border-radius: 999px;
  background: rgba(199,243,106,.09);
  color: var(--lime);
  font-size: 10px;
  font-weight: 750;
}
.insight-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.insight-columns h3 {
  margin: 0 0 12px;
  color: rgba(255,255,255,.45);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.insight-list, .compact-insight-list { display: grid; gap: 9px; }
.insight-point, .compact-insight-item {
  width: 100%;
  border: 0;
  color: white;
  text-align: left;
}
.insight-point {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.insight-point:hover, .compact-insight-item:hover { background: rgba(255,255,255,.1); }
.insight-point time { color: var(--lime); font: 700 12px ui-monospace, monospace; }
.insight-point strong { display: block; font-size: 13px; }
.insight-point span { display: block; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.5; }
.insight-side { display: grid; gap: 22px; align-content: start; }
.compact-insight-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.73);
  font-size: 12px;
  line-height: 1.45;
}
.compact-insight-item i { color: var(--lime); font-style: normal; }
.insight-generated { margin: 22px 0 0; color: rgba(255,255,255,.34); font-size: 10px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 18px; }
.recordings-panel, .devices-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.recordings-panel { padding: 25px; min-height: 560px; }
.devices-panel { padding: 23px; align-self: start; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.date-controls { display: flex; align-items: flex-end; gap: 8px; }
.date-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.date-controls input {
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f7f1;
  color: var(--ink);
  padding: 0 10px;
}
.secondary-button {
  height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--dark);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.refresh { width: 36px; height: 36px; border-radius: 50%; background: #f2f1eb; font-size: 20px; }

.recording-list { margin: 24px 0 0; padding: 0; list-style: none; }
.recording-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  border-top: 1px solid #eceae2;
  cursor: pointer;
}
.recording-item::before {
  content: "";
  position: absolute;
  left: 60px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7cbc8;
}
.recording-item.active { margin: 0 -12px; padding: 0 12px; border-radius: 14px; background: #eff7df; }
.recording-item.active::before { background: var(--lime-dark); box-shadow: 0 0 0 5px rgba(140,189,50,.12); }
.recording-item.silent { background: linear-gradient(90deg, rgba(119, 128, 123, .055), transparent 62%); }
.recording-item.silent::before { background: #aeb5b1; box-shadow: 0 0 0 4px rgba(126, 137, 131, .09); }
.recording-item.silent.active { background: #edf0ed; }
.recording-time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 750; }
.recording-title-row { display: flex; align-items: center; gap: 8px; }
.recording-meta strong { display: block; font-size: 14px; }
.recording-meta span, .recording-size { color: var(--muted); font-size: 12px; }
.recording-meta small { display: block; margin-top: 4px; color: #78827c; font-size: 10px; }
.recording-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eceae2;
  color: var(--muted);
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.recording-badge.transcribed { background: #e9f4d7; color: #4f741c; }
.recording-badge.active { background: #fff0d9; color: #8a611e; }
.recording-badge.silent { background: #e7eae8; color: #66716b; }
.recording-badge.partial { background: #f8e6df; color: #9a4f37; }
.speech-strip {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e5e2;
}
.speech-strip rect { fill: var(--lime-dark); }
.recording-item.silent .speech-strip { background: #d8ddda; }
.recording-action {
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f0e9; color: var(--ink);
}
.recording-item.active .recording-action { background: var(--dark); color: white; }

.loading-state, .empty-state { min-height: 380px; display: flex; align-items: center; justify-content: center; }
.loading-state { gap: 7px; flex-wrap: wrap; }
.loading-state span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark); animation: blink 1s infinite alternate; }
.loading-state span:nth-child(2) { animation-delay: .2s; }
.loading-state span:nth-child(3) { animation-delay: .4s; }
.loading-state p { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 13px; }
@keyframes blink { to { transform: translateY(-8px); opacity: .35; } }
.empty-state { flex-direction: column; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 13px 0 5px; color: var(--ink); }
.empty-state p { max-width: 330px; margin: 0; line-height: 1.6; font-size: 13px; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #eeede6; font-size: 28px; }

.device-list { display: grid; gap: 12px; margin-top: 22px; }
.device-card { padding: 16px; border-radius: 15px; background: #f4f3ed; }
.device-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.device-card strong { font-size: 14px; }
.device-card p { margin: 10px 0 4px; color: var(--muted); font-size: 12px; }
.device-card small { color: var(--muted); font-size: 11px; }
.device-status { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.device-progress { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 10px; background: #deded7; }
.device-progress i { display: block; height: 100%; background: var(--lime-dark); border-radius: inherit; }
.device-progress .progress-0 { width: 0; }
.device-progress .progress-5 { width: 5%; }
.device-progress .progress-10 { width: 10%; }
.device-progress .progress-15 { width: 15%; }
.device-progress .progress-20 { width: 20%; }
.device-progress .progress-25 { width: 25%; }
.device-progress .progress-30 { width: 30%; }
.device-progress .progress-35 { width: 35%; }
.device-progress .progress-40 { width: 40%; }
.device-progress .progress-45 { width: 45%; }
.device-progress .progress-50 { width: 50%; }
.device-progress .progress-55 { width: 55%; }
.device-progress .progress-60 { width: 60%; }
.device-progress .progress-65 { width: 65%; }
.device-progress .progress-70 { width: 70%; }
.device-progress .progress-75 { width: 75%; }
.device-progress .progress-80 { width: 80%; }
.device-progress .progress-85 { width: 85%; }
.device-progress .progress-90 { width: 90%; }
.device-progress .progress-95 { width: 95%; }
.device-progress .progress-100 { width: 100%; }
.pipeline-card {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.pipeline-card .eyebrow { margin-bottom: 2px; }
.pipeline-step {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}
.pipeline-step .status-dot { width: 7px; height: 7px; }
.pipeline-step strong { color: var(--ink); font-size: 10px; font-weight: 750; }

.transcripts-panel {
  margin-top: 18px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.section-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.transcription-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f2f1eb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.transcript-loading, .transcript-empty {
  margin-top: 22px;
  padding: 28px;
  border-radius: 15px;
  background: #f4f3ed;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.transcript-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.transcript-search {
  height: 44px;
  margin-top: 18px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f7f1;
  color: var(--muted);
}
.transcript-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.transcript-search kbd {
  min-width: 27px;
  padding: 3px 6px;
  border: 0;
  border-radius: 7px;
  background: #e8e6dd;
  color: var(--muted);
  text-align: center;
  font: 10px ui-monospace, monospace;
}
.transcript-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border: 1px solid #e9e7df;
  border-radius: 17px;
  background: #faf9f4;
}
.transcript-time {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.transcript-time strong {
  display: block;
  font: 750 15px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.transcript-time span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.transcript-body p {
  margin: 0;
  color: #334139;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.transcript-body p.collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.transcript-tools { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.transcript-tool {
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: #eceae2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}
.transcript-tool:hover { background: var(--dark); color: white; }
.transcript-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.player-bar {
  position: fixed;
  z-index: 20;
  left: 246px;
  right: 20px;
  bottom: 18px;
  min-height: 94px;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(340px, 1.4fr) minmax(120px, .45fr);
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(16, 23, 19, .96);
  color: white;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(20px);
}
.now-playing { display: flex; align-items: center; gap: 14px; min-width: 0; }
.now-playing > div:last-child { min-width: 0; }
.now-playing small { display: block; color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .12em; }
.now-playing strong, .now-playing span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing strong { margin: 3px 0; font-size: 13px; }
.now-playing span { color: rgba(255,255,255,.5); font-size: 11px; }
.player-pulse {
  width: 45px; height: 45px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 13px; background: var(--lime);
}
.player-pulse i { width: 3px; height: 9px; border-radius: 4px; background: var(--dark); }
.player-pulse.playing i { animation: pulse .7s ease-in-out infinite alternate; }
.player-pulse.playing i:nth-child(2) { animation-delay: .2s; }
.player-pulse.playing i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { to { height: 24px; } }
.player-center { display: grid; gap: 8px; }
.transport { display: flex; align-items: center; justify-content: center; gap: 12px; }
.transport button { width: 30px; height: 30px; border: 0; background: transparent; color: rgba(255,255,255,.65); }
.transport .play-button { width: 39px; height: 39px; border-radius: 50%; background: white; color: var(--dark); padding-left: 4px; }
.progress-row { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; color: rgba(255,255,255,.42); font: 10px ui-monospace, monospace; }
input[type="range"] { accent-color: var(--lime); }
.progress-row input { width: 100%; }
.volume-control { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); }
.volume-control input { width: 100%; }
.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  top: 24px;
  max-width: 360px;
  padding: 13px 17px;
  border-radius: 12px;
  background: var(--dark);
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: .2s;
  font-size: 13px;
}
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .metric-card.primary { grid-column: auto; }
  .insight-columns { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .devices-panel { order: -1; }
  .device-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .player-bar { grid-template-columns: 1fr 1.5fr; }
  .volume-control { display: none; }
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .app-shell { padding: 74px 0 142px; }
  .sidebar { inset: 0 0 auto; width: auto; height: 64px; padding: 10px 16px; flex-direction: row; align-items: center; }
  .main-nav { display: none; }
  .sidebar-footer { display: flex; align-items: center; }
  .privacy-chip { display: none; }
  .dashboard-main { padding: 24px 16px; }
  .topbar { align-items: flex-end; }
  .topbar .live-pill { padding: 9px; }
  #headerLiveText { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .metric-card.primary { grid-column: 1 / -1; }
  .recordings-panel, .devices-panel { padding: 18px; }
  .transcripts-panel { padding: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .date-controls { width: 100%; flex-wrap: wrap; }
  .date-controls label { flex: 1; min-width: 118px; }
  .date-controls input { width: 100%; }
  .recording-item { grid-template-columns: 62px 1fr auto; gap: 10px; }
  .recording-item::before { left: 52px; }
  .transcript-card { grid-template-columns: 1fr; gap: 12px; }
  .transcript-time { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .player-bar { left: 10px; right: 10px; bottom: 8px; grid-template-columns: 1fr; gap: 8px; padding: 12px 15px; }
  .now-playing { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
