:root {
  --ink: #18231f;
  --ink-soft: #52605b;
  --ink-faint: #7a8581;
  --paper: #f4f4ef;
  --panel: #ffffff;
  --line: #e2e5de;
  --line-strong: #d4d9cf;
  --forest: #18352d;
  --forest-2: #244b40;
  --lime: #d9f18f;
  --lime-strong: #bddf5c;
  --green: #2f8d69;
  --green-pale: #e4f3e9;
  --red: #bd554c;
  --red-pale: #fae9e6;
  --amber: #a66d21;
  --amber-pale: #f8edda;
  --blue-pale: #e4eff2;
  --shadow-sm: 0 1px 2px rgba(23, 38, 32, .04), 0 5px 18px rgba(23, 38, 32, .035);
  --shadow-lg: 0 24px 80px rgba(15, 31, 26, .18);
  --radius: 18px;
  --radius-sm: 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 25px 18px 18px;
  color: #e7eee9;
  background:
    radial-gradient(circle at 15% 83%, rgba(117, 169, 128, .16), transparent 26%),
    linear-gradient(165deg, #1b3730 0%, #142a25 62%, #11241f 100%);
}

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

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border-radius: 12px;
}

.brand-mark svg {
  width: 25px;
  fill: var(--forest);
  stroke: var(--lime);
}

.brand-mark svg path:last-child {
  fill: none;
  stroke-width: 2.2;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #fff;
  font-size: 17px;
  letter-spacing: -.025em;
}

.brand small {
  margin-top: 2px;
  color: #9fb3ac;
  font-size: 11px;
  letter-spacing: .01em;
}

.primary-nav {
  display: grid;
  gap: 5px;
}

.primary-nav a,
.primary-nav .nav-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 13px;
  color: #b9c9c3;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.primary-nav a:hover,
.primary-nav .nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.primary-nav a.active {
  color: var(--forest);
  background: var(--lime);
  box-shadow: 0 7px 20px rgba(8, 27, 21, .22);
}

.primary-nav svg {
  width: 19px;
  min-width: 19px;
}

.primary-nav a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.sidebar-bottom {
  display: grid;
  gap: 16px;
  margin-top: auto;
}

.privacy-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
}

.privacy-icon {
  display: grid;
  width: 32px;
  height: 32px;
  min-width: 32px;
  place-items: center;
  color: var(--lime);
  background: rgba(217, 241, 143, .09);
  border-radius: 9px;
}

.privacy-icon svg {
  width: 18px;
}

.privacy-card strong,
.privacy-card span {
  display: block;
}

.privacy-card strong {
  color: #ecf3ef;
  font-size: 11px;
}

.privacy-card div > span {
  margin-top: 2px;
  color: #8fa69e;
  font-size: 10px;
}

.version-row {
  display: flex;
  justify-content: space-between;
  color: #718b82;
  font-size: 9px;
  letter-spacing: .02em;
}

.version-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #72c98f;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(114, 201, 143, .12);
}

.mobile-header {
  display: none;
}

.main-content {
  min-height: 100vh;
  margin-left: 248px;
}

.page {
  width: min(1470px, 100%);
  margin: 0 auto;
  padding: 43px 46px 60px;
}

.page-header,
.meeting-header,
.simple-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #718078;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.page-header h1 {
  max-width: 760px;
  margin: 12px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.8vw, 68px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.052em;
}

.page-header h1 em {
  color: var(--green);
  font-weight: 500;
}

.page-header > div:first-child > p,
.simple-page-header > div > p {
  max-width: 590px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.button svg {
  width: 17px;
}

.button.primary {
  color: var(--lime);
  background: var(--forest);
  box-shadow: 0 8px 18px rgba(24, 53, 45, .13);
}

.button.primary:hover {
  background: var(--forest-2);
  box-shadow: 0 10px 24px rgba(24, 53, 45, .2);
}

.button.secondary {
  color: #3c4b46;
  background: rgba(255, 255, 255, .68);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  background: #fff;
  border-color: #bdc6bc;
}

.button.danger {
  color: #fff;
  background: var(--red);
}

.recording-button {
  position: relative;
}

.record-dot {
  width: 8px;
  height: 8px;
  background: #d65e55;
  border-radius: 50%;
}

.soon-tag {
  padding: 2px 5px;
  color: #7d7b70;
  background: #ecece5;
  border-radius: 4px;
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 15px;
}

.metric-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 120px;
  align-items: center;
  gap: 13px;
  padding: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.metric-card::after {
  position: absolute;
  width: 70px;
  height: 70px;
  right: -25px;
  bottom: -35px;
  content: "";
  background: rgba(63, 110, 92, .025);
  border-radius: 50%;
}

.metric-card > small {
  grid-column: 1 / -1;
  color: #909993;
  font-size: 9px;
}

.metric-card div:nth-child(2) strong,
.metric-card div:nth-child(2) span {
  display: block;
}

.metric-card div:nth-child(2) strong {
  color: #1b2c26;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.metric-card div:nth-child(2) span {
  margin-top: 4px;
  color: #67736e;
  font-size: 10px;
  font-weight: 650;
}

.metric-icon,
.settings-icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  color: #365c4e;
  border-radius: 12px;
}

.metric-icon svg,
.settings-icon svg {
  width: 20px;
}

.metric-icon.sand { color: #86652d; background: #f2e9d7; }
.metric-icon.sky { color: #3c6970; background: var(--blue-pale); }
.metric-icon.green { color: #267653; background: var(--green-pale); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, .75fr);
  gap: 15px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.meetings-panel,
.activity-panel,
.recording-panel,
.details-panel,
.meeting-jobs-panel {
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  display: flex;
  width: 175px;
  height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #88928d;
  background: #f6f7f3;
  border: 1px solid #e7e9e3;
  border-radius: 8px;
}

.search-box:focus-within {
  background: #fff;
  border-color: #9eb8ab;
  box-shadow: 0 0 0 3px rgba(47, 141, 105, .08);
}

.search-box svg {
  width: 15px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.text-button {
  padding: 4px 0;
  color: var(--green);
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 750;
}

.text-button:hover {
  color: var(--forest);
}

.meeting-list {
  display: grid;
}

.meeting-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(110px, .55fr) minmax(100px, .5fr) 30px;
  align-items: center;
  gap: 12px;
  min-height: 69px;
  padding: 10px 3px;
  border-top: 1px solid #eceee9;
  transition: background .15s ease;
}

.meeting-row:hover {
  background: #fafbf8;
}

.meeting-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.meeting-thumb {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  min-width: 39px;
  place-items: center;
  color: #3e6456;
  background: #e5eee2;
  border-radius: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.meeting-thumb::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  content: "";
  background: #7fc28e;
  border: 2px solid #fff;
  border-radius: 50%;
}

.meeting-name strong,
.meeting-name span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-name .meeting-thumb {
  display: grid;
  margin-top: 0;
  overflow: visible;
  place-items: center;
}

.meeting-name strong {
  color: #2a3934;
  font-size: 11px;
}

.meeting-name span,
.meeting-meta span {
  margin-top: 3px;
  color: #8a938f;
  font-size: 9px;
}

.meeting-meta strong,
.meeting-meta span {
  display: block;
}

.meeting-meta strong {
  color: #52605b;
  font-size: 10px;
  font-weight: 650;
}

.row-arrow {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #8c9691;
  border-radius: 7px;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}

.meeting-row:hover .row-arrow {
  color: var(--forest);
  background: var(--lime);
  transform: translateX(2px);
}

.row-arrow svg {
  width: 14px;
}

.status-badge,
.neutral-pill,
.local-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: capitalize;
}

.status-ready,
.status-completed {
  color: #2e7355;
  background: var(--green-pale);
}

.status-importing,
.status-running,
.status-queued {
  color: var(--amber);
  background: var(--amber-pale);
}

.status-draft {
  color: #68736e;
  background: #eef0eb;
}

.status-failed,
.status-cancelled {
  color: #9d463f;
  background: var(--red-pale);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7b8983;
  font-size: 8px;
  font-weight: 700;
}

.live-badge i {
  width: 6px;
  height: 6px;
  background: #65b782;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(101, 183, 130, .12);
}

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

.activity-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.activity-empty strong {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
}

.activity-empty p {
  max-width: 200px;
  margin: 5px auto 0;
  color: #8c9691;
  font-size: 9px;
  line-height: 1.5;
}

.pulse-orbit {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dbe4dd;
  border-radius: 50%;
}

.pulse-orbit::before {
  position: absolute;
  inset: 6px;
  content: "";
  border: 1px solid #e3eae4;
  border-radius: 50%;
}

.pulse-orbit i {
  width: 7px;
  height: 7px;
  background: #72b78a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(114, 183, 138, .12);
}

.job-card {
  padding: 12px;
  background: #f8f9f6;
  border: 1px solid #e8ebe5;
  border-radius: 10px;
}

.job-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.job-card strong {
  color: #35443f;
  font-size: 10px;
}

.job-card p {
  margin: 5px 0 8px;
  color: #87918c;
  font-size: 9px;
}

.job-card .progress-track {
  height: 4px;
}

.job-card .job-error {
  color: #a95048;
  line-height: 1.45;
}

.job-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-card-actions button {
  padding: 0;
  color: #9a554d;
  background: transparent;
  border: 0;
  font-size: 8px;
  font-weight: 700;
}

.capability-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 12px;
  background: #f3f6f1;
  border-radius: 10px;
}

.capability-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #47675c;
  background: #e1eae1;
  border-radius: 8px;
}

.capability-icon svg {
  width: 15px;
}

.capability-strip div {
  min-width: 0;
  margin-right: auto;
}

.capability-strip strong,
.capability-strip span {
  display: block;
}

.capability-strip strong {
  color: #44534e;
  font-size: 9px;
}

.capability-strip div span {
  margin-top: 2px;
  color: #929b96;
  font-size: 8px;
}

.mini-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid #d4ddd6;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.capability-strip.available > i {
  width: 7px;
  height: 7px;
  background: #6fbb85;
  border: 0;
  border-radius: 50%;
  animation: none;
}

.capability-strip.unavailable > i {
  width: 7px;
  height: 7px;
  background: #d0835c;
  border: 0;
  border-radius: 50%;
  animation: none;
}

.empty-library {
  display: grid;
  min-height: 235px;
  place-items: center;
  align-content: center;
  padding: 25px;
  text-align: center;
  border-top: 1px solid #eceee9;
}

.empty-library .empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #577266;
  background: #edf2ea;
  border-radius: 14px;
}

.empty-library .empty-icon svg {
  width: 22px;
}

.empty-library h3 {
  margin: 12px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.empty-library p {
  max-width: 290px;
  margin: 0 0 15px;
  color: #86908b;
  font-size: 10px;
  line-height: 1.55;
}

.skeleton-row {
  height: 65px;
  border-top: 1px solid #eceee9;
  background: linear-gradient(90deg, transparent 0, rgba(233, 236, 229, .7) 45%, transparent 90%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite;
}

.modal {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 21px;
  box-shadow: var(--shadow-lg);
}

.modal::backdrop {
  background: rgba(15, 28, 24, .68);
  backdrop-filter: blur(5px);
}

.modal[open] {
  animation: modal-in .2s ease-out;
}

.modal-panel {
  display: grid;
  gap: 18px;
  padding: 27px;
  background: #fbfcf9;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 20px;
}

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

.modal-header h2 {
  margin: 5px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.modal-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.icon-button {
  display: grid;
  width: 37px;
  height: 37px;
  min-width: 37px;
  place-items: center;
  color: #5c6964;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.icon-button:hover {
  color: var(--ink);
  border-color: #bdc7be;
}

.icon-button svg {
  width: 18px;
}

.close-button {
  width: 33px;
  height: 33px;
  min-width: 33px;
}

.drop-zone {
  display: grid;
  min-height: 205px;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
  background: #f5f7f2;
  border: 1.5px dashed #bfcabf;
  border-radius: 15px;
  transition: background .15s ease, border .15s ease, transform .15s ease;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragging {
  background: #f0f5ea;
  border-color: #70a17e;
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 10px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(67, 91, 50, .12);
}

.drop-icon svg {
  width: 20px;
}

.drop-zone strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.drop-zone > span:not(.drop-icon) {
  margin-top: 4px;
  color: #738078;
  font-size: 10px;
}

.drop-zone small {
  margin-top: 13px;
  color: #9ba39e;
  font-size: 8px;
}

.drop-zone.has-file {
  background: #eef5e9;
  border-style: solid;
  border-color: #a9c9a9;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #4c5a55;
  font-size: 10px;
  font-weight: 700;
}

.field > span small {
  color: #9aa19d;
  font-weight: 500;
}

.field input,
.field textarea,
.field select,
.setting-row input,
.setting-row select {
  width: 100%;
  padding: 11px 12px;
  color: #25342f;
  background: #fff;
  border: 1px solid #dce1da;
  border-radius: 9px;
  outline: 0;
  font-size: 11px;
  transition: border .15s ease, box-shadow .15s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.setting-row input:focus,
.setting-row select:focus {
  border-color: #79a48b;
  box-shadow: 0 0 0 3px rgba(47, 141, 105, .08);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.upload-progress {
  padding: 13px;
  background: #f0f4ed;
  border-radius: 10px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #596861;
  font-size: 9px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: #dfe5dc;
  border-radius: 10px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #3c8b68, #98c362);
  border-radius: inherit;
  transition: width .2s ease;
}

.hidden {
  display: none !important;
}

body[data-hosted="true"] .engine-card-actions[hidden],
body[data-hosted="true"] .port-setting[hidden],
body[data-hosted="true"] .source-mode-card[hidden],
body[data-hosted="true"] .mcp-config-path[hidden],
body[data-hosted="true"] [data-settings-tab][hidden],
body[data-hosted="true"] [data-select-folder][hidden],
body[data-hosted="true"] [data-mcp-open][hidden] {
  display: none !important;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(360px, calc(100% - 44px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  color: #eff6f2;
  background: #19352d;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  box-shadow: 0 14px 40px rgba(16, 33, 27, .24);
  font-size: 10px;
  line-height: 1.5;
  animation: toast-in .22s ease-out;
  pointer-events: auto;
}

.toast.error {
  background: #713d39;
}

.toast i {
  display: block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  margin-top: 4px;
  background: var(--lime);
  border-radius: 50%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 25px;
  color: #8a948f;
  font-size: 9px;
  font-weight: 650;
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb svg {
  width: 11px;
}

.meeting-header {
  align-items: center;
  margin-bottom: 25px;
}

.meeting-title-block {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.meeting-avatar {
  display: grid;
  width: 57px;
  height: 57px;
  min-width: 57px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border-radius: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  box-shadow: 0 8px 20px rgba(87, 108, 60, .13);
}

.meeting-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8d9691;
  font-size: 9px;
}

.meeting-title-block h1 {
  max-width: 800px;
  margin: 5px 0 2px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 500;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-title-block p {
  max-width: 650px;
  margin: 0;
  overflow: hidden;
  color: #75807b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-menu {
  color: #a6534c;
}

.tab-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 15px;
  padding: 5px;
  overflow-x: auto;
  background: #e9ece6;
  border-radius: 11px;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-bar button,
.tab-bar > a {
  display: inline-flex;
  min-width: max-content;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #7b8580;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}

.tab-bar button.active,
.tab-bar > a.active {
  color: #2d3b36;
  background: #fff;
  box-shadow: 0 2px 7px rgba(25, 42, 36, .07);
}

.tab-bar button span,
.tab-bar > a span {
  padding: 2px 4px;
  color: #929991;
  background: #dfe2db;
  border-radius: 4px;
  font-size: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.meeting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .55fr);
  align-items: start;
  gap: 15px;
}

.meeting-main,
.meeting-aside {
  display: grid;
  gap: 15px;
}

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

.recording-item {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr) repeat(3, minmax(65px, auto));
  align-items: center;
  gap: 14px;
  padding: 13px;
  background: #f8f9f6;
  border: 1px solid #e8ebe5;
  border-radius: 11px;
}

.recording-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #3d6657;
  background: #e2ede0;
  border-radius: 10px;
}

.recording-icon.video {
  color: #665c3d;
  background: #eee9dc;
}

.recording-icon svg {
  width: 18px;
}

.recording-name {
  min-width: 0;
}

.recording-name strong,
.recording-name span,
.recording-stat strong,
.recording-stat span {
  display: block;
}

.recording-name strong {
  overflow: hidden;
  color: #33423d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recording-name span,
.recording-stat span {
  margin-top: 3px;
  color: #909994;
  font-size: 8px;
}

.recording-stat strong {
  color: #596660;
  font-size: 9px;
  font-weight: 650;
}

.recording-empty {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: #f8f9f6;
  border: 1px dashed #d8ddd5;
  border-radius: 12px;
}

.recording-empty p {
  margin: 3px 0 0;
  color: #85908a;
  font-size: 9px;
}

.next-step-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3930, #244c3f);
  border-radius: var(--radius);
  color: #eef4f0;
  box-shadow: 0 14px 30px rgba(24, 53, 45, .12);
}

.next-step-art {
  display: grid;
  height: 100px;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(217, 241, 143, .14), transparent 65%),
    rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
}

.wave-bars {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 4px;
}

.wave-bars i {
  width: 3px;
  height: 12px;
  background: var(--lime);
  border-radius: 5px;
  opacity: .8;
}

.wave-bars i:nth-child(2),
.wave-bars i:nth-child(8) { height: 21px; }
.wave-bars i:nth-child(3),
.wave-bars i:nth-child(7) { height: 31px; }
.wave-bars i:nth-child(4),
.wave-bars i:nth-child(6) { height: 42px; }
.wave-bars i:nth-child(5) { height: 25px; }

.next-step-card .eyebrow {
  color: #9db9ad;
}

.next-step-card h2 {
  margin: 5px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.next-step-card p {
  max-width: 490px;
  margin: 0;
  color: #a9beb5;
  font-size: 9px;
  line-height: 1.6;
}

.next-step-card .button {
  color: #dce6df;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
}

.detail-list,
.system-list {
  margin: 0;
}

.detail-list > div,
.system-list > div {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #eceee9;
}

.detail-list dt,
.system-list dt {
  color: #89938e;
  font-size: 9px;
}

.detail-list dd,
.system-list dd {
  margin: 0;
  color: #4c5a55;
  font-size: 9px;
  font-weight: 650;
  text-align: right;
}

.local-pill {
  padding: 3px 7px;
  color: #357056;
  background: #e7f2e8;
}

.local-pill i {
  width: 5px;
  height: 5px;
  background: #61af7c;
  border-radius: 50%;
}

.job-list.compact .job-card {
  padding: 10px;
}

.job-list.compact:empty::after {
  display: block;
  padding: 25px 10px;
  color: #929b96;
  content: "No processing jobs yet.";
  font-size: 9px;
  text-align: center;
}

.danger-modal {
  text-align: center;
}

.danger-symbol {
  display: grid;
  width: 51px;
  height: 51px;
  margin: 0 auto;
  place-items: center;
  color: #a84f47;
  background: var(--red-pale);
  border-radius: 15px;
}

.danger-symbol svg {
  width: 24px;
}

.danger-modal h2 {
  margin: -6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.danger-modal p {
  max-width: 430px;
  margin: 0 auto;
  color: #77827d;
  font-size: 10px;
  line-height: 1.6;
}

.danger-modal .field {
  text-align: left;
}

.simple-page-header {
  align-items: center;
}

.simple-page-header h1 {
  margin: 7px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.045em;
}

.save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #697771;
  font-size: 9px;
  font-weight: 650;
}

.save-state i {
  width: 7px;
  height: 7px;
  background: #69b784;
  border-radius: 50%;
}

.settings-layout {
  display: block;
  max-width: 1080px;
}

.settings-page .meetings-page-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.settings-page .page-header-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.settings-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
  padding: 5px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.settings-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 9px 14px;
  color: #76817b;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.settings-tabs button svg { width: 14px; height: 14px; flex: 0 0 auto; margin-right: 6px; }

.settings-tabs button:hover,
.settings-tabs button[aria-selected="true"] {
  color: var(--forest);
  background: #e7ece6;
}

.settings-content {
  display: block;
}

.settings-section[data-settings-panel] {
  display: none;
}

.settings-section[data-settings-panel].active {
  display: block;
}

.settings-section {
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}

.settings-icon {
  color: #4b665b;
  background: #e9eee8;
}

.settings-icon.green {
  color: #317153;
  background: var(--green-pale);
}

.settings-icon.dark {
  color: var(--lime);
  background: var(--forest);
}

.settings-section-header h2 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.settings-section-header p {
  margin: 0;
  color: #89928e;
  font-size: 9px;
}

.settings-form {
  border-top: 1px solid #e9ece6;
}

.recommendation-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: #f6f9f6;
  border: 1px solid #dde6dd;
  border-radius: 10px;
}

.recommendation-card h3 {
  margin: 5px 0 6px;
  font-size: 17px;
}

.recommendation-card p,
.comparison-grid p {
  margin: 0;
  color: #707d77;
  font-size: 10px;
  line-height: 1.55;
}

.research-status {
  align-self: flex-start;
  min-width: max-content;
  padding: 6px 9px;
  color: #4c655b;
  background: #e6eee7;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.comparison-grid article {
  padding: 15px;
  border: 1px solid #e4e9e4;
  border-radius: 9px;
}

.comparison-grid strong,
.comparison-grid small {
  display: block;
}

.comparison-grid small {
  margin: 3px 0 8px;
  color: #4d755f;
  font-size: 9px;
  font-weight: 700;
}

.engine-settings-section {
  padding: 0;
  overflow: hidden;
}

.engine-settings-section > .settings-section-header {
  padding: 23px 23px 0;
}

.settings-icon.engine-blue {
  color: #2664d9;
  background: #e9f0ff;
}

.engine-settings-form {
  display: grid;
  gap: 0;
}

.engine-identity-card {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr) minmax(190px, 240px) auto;
  align-items: center;
  gap: 14px;
  margin: 0 23px 20px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(111, 151, 255, .24), transparent 36%),
    linear-gradient(135deg, #14233a 0%, #20395c 100%);
  border-radius: 13px;
}

/* Engine metadata is kept in the DOM for live worker status updates, but the
   streamlined Settings layout deliberately starts with the model catalog. */
.engine-identity-card[hidden] {
  display: none !important;
}

.engine-logo-large {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff;
  background: #276bf0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  box-shadow: 0 7px 20px rgba(13, 42, 91, .28);
}

.engine-logo-large svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.engine-identity-copy {
  display: grid;
  gap: 2px;
}

.engine-identity-copy .eyebrow {
  color: #9fb7de;
  font-size: 7px;
}

.engine-identity-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.engine-identity-copy small {
  color: #b9c8de;
  font-size: 8px;
}

.engine-provider-select {
  display: grid;
  gap: 4px;
}

.engine-provider-select > span {
  color: #afc0da;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.engine-provider-select select {
  padding: 9px 10px;
  color: #eef4ff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  font-size: 9px;
}

.engine-provider-select option {
  color: #1c2c3d;
  background: #fff;
}

.engine-runtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  padding: 7px 9px;
  color: #c9d7eb;
  background: rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.engine-runtime-pill i {
  width: 6px;
  height: 6px;
  background: #f3c45c;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(243, 196, 92, .13);
}

.engine-runtime-pill.ready i {
  background: #72d496;
  box-shadow: 0 0 0 3px rgba(114, 212, 150, .13);
}

.engine-runtime-pill.error i {
  background: #ec7d7d;
  box-shadow: 0 0 0 3px rgba(236, 125, 125, .13);
}

.engine-config-group {
  padding: 21px 23px;
  border-top: 1px solid #e8ece7;
}

.engine-config-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.engine-config-heading > div,
.engine-config-heading strong,
.engine-config-heading small {
  display: block;
}

.engine-config-heading strong {
  color: #31423b;
  font-size: 11px;
}

.engine-config-heading small {
  margin-top: 3px;
  color: #89938e;
  font-size: 8px;
}

.engine-config-heading > span {
  color: #64736c;
  font-size: 8px;
}

.live-assistant-behavior-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.live-assistant-behavior-option {
  display: grid;
  min-height: 104px;
  padding: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  background: #fbfcff;
  border: 1px solid #dce4f0;
  border-radius: 12px;
}

.live-assistant-behavior-option:has(input:checked) {
  background: #f2f7ff;
  border-color: #77a5f6;
  box-shadow: 0 0 0 2px rgba(23, 107, 255, .09);
}

.live-assistant-behavior-option input { margin-top: 2px; accent-color: #176bff; }
.live-assistant-behavior-option span,
.live-assistant-behavior-option strong,
.live-assistant-behavior-option small { display: block; }
.live-assistant-behavior-option strong { color: #293b53; font-size: 11px; }
.live-assistant-behavior-option small { margin-top: 5px; color: #748297; font-size: 9px; line-height: 1.45; }

.engine-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.engine-field-grid[hidden],
.engine-toggle-grid[hidden],
.engine-field[hidden] {
  display: none !important;
}

.path-input-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.path-input-row input {
  flex: 1;
  min-width: 0;
}

.note-format-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.note-format-intro {
  margin-bottom: 1rem;
}

.plugin-table td:first-child {
  min-width: 260px;
}

.plugin-table td:last-child {
  white-space: nowrap;
}

.plugin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

.plugin-error {
  color: var(--danger, #b42318) !important;
  max-width: 280px;
}

.plugin-api-card {
  margin-top: 18px;
}

.note-format-table td:nth-child(3) {
  width: 9rem;
}

.note-format-editor {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

.note-format-sections-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 0.75rem;
}

.note-format-sections-heading small {
  display: block;
}

.note-format-sections {
  display: grid;
  gap: 0.75rem;
}

.note-format-section {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(16rem, 1.6fr) 9rem minmax(10rem, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--panel) 88%, var(--paper));
}

.note-format-section .engine-field {
  min-width: 0;
}

.note-format-kind {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .note-format-section {
    grid-template-columns: 1fr 1fr;
  }

  .note-format-section .wide {
    grid-column: 1 / -1;
  }
}

.engine-field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.engine-field.wide {
  grid-column: span 2;
}

.engine-field > span {
  color: #53615c;
  font-size: 8px;
  font-weight: 700;
}

.engine-field input,
.engine-field select,
.engine-field textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  font-size: 9px;
}

.engine-field textarea {
  min-height: 82px;
  resize: vertical;
}

.model-storage-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.model-storage-control .button {
  min-height: 35px;
  white-space: nowrap;
}

.model-path-state {
  color: #377158 !important;
  font-weight: 700;
}

.model-path-state.restart-required {
  color: #a66d21 !important;
}

.model-directory-note.restart-required {
  color: #7b561c;
  background: #fff8e8;
  border-color: #ecd7a8;
}

.engine-settings-actions.multi-action {
  flex-wrap: wrap;
  gap: 8px;
}

.engine-settings-actions.multi-action > span:first-child {
  margin-right: auto;
}

.engine-field small {
  color: #929b97;
  font-size: 7px;
  line-height: 1.45;
}

.native-engine-options .engine-field > strong {
  color: #2a3a32;
  font-size: 10px;
  line-height: 1.35;
}

.engine-compatibility-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  color: #65736d;
  background: #f5f8fb;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.5;
}

.engine-compatibility-note svg {
  flex: 0 0 auto;
  width: 14px;
  fill: none;
  stroke: #4f72a5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.engine-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.engine-toggle {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8faf7;
  border: 1px solid #eaede8;
  border-radius: 9px;
}

.engine-toggle strong,
.engine-toggle small {
  display: block;
}

.engine-toggle strong {
  color: #4d5b55;
  font-size: 8px;
}

.engine-toggle small {
  margin-top: 3px;
  color: #929b97;
  font-size: 7px;
}

.realtime-config-group {
  background: #fbfcfa;
}

.recommended-chip {
  padding: 5px 8px;
  color: #377158 !important;
  background: #e6f3eb;
  border-radius: 20px;
  font-weight: 700;
}

.realtime-parameter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}

.realtime-parameter {
  display: grid;
  gap: 9px;
  padding: 13px;
  background: #fff;
  border: 1px solid #e7ebe6;
  border-radius: 10px;
}

.realtime-parameter > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4b5b54;
  font-size: 8px;
}

.realtime-parameter output {
  color: #276bf0;
  font-size: 10px;
  font-weight: 750;
}

.realtime-parameter input {
  width: 100%;
  accent-color: #276bf0;
}

.realtime-parameter small {
  color: #909a95;
  font-size: 7px;
  line-height: 1.45;
}

.engine-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 23px;
  background: #f4f7f3;
  border-top: 1px solid #e1e7e0;
}

.engine-settings-actions > span {
  color: #68756f;
  font-size: 8px;
}

.setting-row {
  display: grid;
  grid-template-columns: 190px minmax(180px, 250px);
  min-height: 67px;
  align-items: center;
  justify-content: start;
  column-gap: 12px;
  border-bottom: 1px solid #e9ece6;
}

.setting-row > span:first-child strong,
.setting-row > span:first-child small {
  display: block;
}

.setting-row > span:first-child strong {
  color: #42504b;
  font-size: 10px;
}

.setting-row > span:first-child small {
  margin-top: 3px;
  color: #8e9792;
  font-size: 8px;
}

.setting-row input,
.setting-row select {
  padding: 9px 10px;
  font-size: 9px;
}

.setting-row > :last-child { grid-column: 2; }
.setting-row .switch { justify-self: start; }
.storage-locations-card { max-width: 980px; }
.storage-location-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 16px; margin-bottom:10px; background:#f7f9fb; border:1px solid #e1e7ef; border-radius:9px; }
.storage-location-row strong,.storage-location-row small { display:block; }.storage-location-row small { margin-top:4px; color:#667085; font-family:ui-monospace,Consolas,monospace; font-size:8px; overflow-wrap:anywhere; }
.inline-setting { grid-template-columns: max-content 92px minmax(0, 520px); }
.port-setting { justify-content:start; }.port-setting input { width:92px; }
.diagnostic-heading { align-items:center; }.diagnostic-heading > div { flex:1; }#diagnostics-dialog { width:min(860px, calc(100% - 28px)); overflow:hidden; }.diagnostics-modal { width:100%; max-width:100%; overflow:hidden; }.diagnostics-report { box-sizing:border-box; width:100%; min-width:0; min-height:390px; padding:12px; overflow:auto; resize:vertical; font:11px/1.5 ui-monospace,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }

.settings-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 15px;
}

.general-card {
  margin-top: 17px;
  padding: 17px;
  background: #fbfcfa;
  border: 1px solid #e4eae3;
  border-radius: 11px;
}

.general-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.general-card-heading .settings-icon {
  flex: 0 0 auto;
}

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

.general-card-heading strong {
  color: #33443c;
  font-size: 10px;
}

.general-card-heading small {
  max-width: 680px;
  margin-top: 3px;
  color: #82908a;
  font-size: 8px;
  line-height: 1.5;
}

.inline-setting {
  display: grid;
  grid-template-columns: max-content 92px minmax(180px, 520px);
  align-items: center;
  gap: 10px;
}

.inline-setting > span {
  color: #53615c;
  font-size: 8px;
  font-weight: 700;
}

.inline-setting input {
  padding: 9px 10px;
  font-size: 9px;
}

.inline-setting small {
  color: #8a9590;
  font-size: 8px;
  line-height: 1.45;
}

.system-card {
  margin-top: 20px;
}

.mcp-clients-card { max-width: 980px; }
.mcp-enabled-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 0 14px; border-bottom:1px solid #e4eae3; }
.mcp-enabled-row strong,.mcp-enabled-row small { display:block; }
.mcp-enabled-row strong { color:#33443c; font-size:10px; }
.mcp-enabled-row small,.mcp-status,.mcp-client-heading small,.mcp-client-note { color:#82908a; font-size:8px; line-height:1.5; }
.mcp-enabled-row small { margin-top:3px; max-width:660px; }
.mcp-enabled-row .switch { flex:0 0 auto; justify-self:auto; }
.mcp-status { margin:10px 0 0; }
.mcp-client-section { padding-top:16px; }
.mcp-client-section + .mcp-client-section { margin-top:16px; border-top:1px solid #e4eae3; }
.mcp-client-heading { display:flex; gap:8px; align-items:flex-start; }
.mcp-client-heading > svg { flex:0 0 auto; width:17px; height:17px; stroke:#557060; fill:none; stroke-width:1.7; }
.mcp-client-heading strong,.mcp-client-heading small { display:block; }
.mcp-client-heading strong { color:#33443c; font-size:9px; }
.mcp-client-heading small { margin-top:3px; }
.mcp-code { box-sizing:border-box; min-height:100px; max-height:250px; margin:11px 0; padding:12px; overflow:auto; background:#f4f7f5; border:1px solid #dce5de; border-radius:8px; color:#30413a; font:8px/1.65 ui-monospace,Consolas,monospace; white-space:pre; }
.mcp-client-actions { display:flex; flex-wrap:wrap; gap:8px; }
.mcp-config-path { margin:10px 0 0; color:#82908a; font-size:8px; }
.mcp-config-path code { color:#516a8c; font:inherit; overflow-wrap:anywhere; }
.mcp-client-note { margin:6px 0 0; }

.system-card .system-list {
  margin: 0;
}

.engine-catalog {
  padding: 21px 23px;
  background: #fbfcff;
  border-bottom: 1px solid #e8ece7;
}

.transcription-purpose-tabs {
  display: flex;
  gap: 6px;
  padding: 7px 23px 0;
  background: #fff;
  border-bottom: 1px solid #e8ece7;
}

.transcription-purpose-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  color: #68756f;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.transcription-purpose-tabs button svg {
  width: 15px;
  height: 15px;
}

.transcription-purpose-tabs button:hover,
.transcription-purpose-tabs button[aria-selected="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.transcription-purpose-panel {
  display: none;
}

.transcription-purpose-panel.active {
  display: block;
}

.purpose-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 23px 0;
  background: #fbfcff;
}

.purpose-intro strong,
.purpose-intro small {
  display: block;
}

.purpose-intro strong {
  color: #33443c;
  font-size: 11px;
}

.purpose-intro small {
  max-width: 690px;
  margin-top: 4px;
  color: #7d8984;
  font-size: 9px;
  line-height: 1.5;
}

.vibevoice-note {
  margin: 0 23px 21px;
}

.model-table td strong small {
  display: inline;
}

.model-requirement {
  display: block;
  margin-top: 4px;
  color: #7b8491;
  font-size: 8px;
  line-height: 1.4;
}

.model-runtime-state {
  display: block;
  margin-top: 4px;
  color: #a66d21;
  font-size: 8px;
  font-weight: 650;
}

.engine-catalog.compact-catalog {
  padding-top: 0;
}

.model-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
}

.model-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.model-table th {
  padding: 9px 12px;
  color: #71807a;
  background: #f4f7f9;
  border-bottom: 1px solid #e4eaf0;
  font-size: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.model-table td {
  padding: 11px 12px;
  color: #596861;
  border-bottom: 1px solid #edf0ed;
  font-size: 8px;
  vertical-align: middle;
}

.model-table tr:last-child td {
  border-bottom: 0;
}

.model-table td strong,
.model-table td small {
  display: block;
}

.model-table td strong {
  color: #34453d;
  font-size: 9px;
}

.model-table td small {
  max-width: 360px;
  margin-top: 3px;
  color: #88938e;
  font-size: 7px;
  line-height: 1.4;
}

.model-selected {
  width: 28px;
  color: #b1bab4;
  font-size: 15px !important;
  font-weight: 800;
  text-align: center;
}

.model-selected.active {
  color: #24955a;
}

.model-install-state {
  display: inline-flex;
  padding: 4px 7px;
  color: #8a6250;
  background: #fff4ed;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
}

.model-install-state.installed {
  color: #287452;
  background: #e8f5ec;
}

.model-active-label {
  display: inline-flex;
  padding: 5px 8px;
  color: #287452;
  background: #e8f5ec;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 700;
}

.table-actions {
  white-space: nowrap;
}

.table-action {
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
  color: #3563af;
  background: #edf3ff;
  border: 1px solid #d8e4f8;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
}

.table-action:hover {
  color: #fff;
  background: #2e69da;
  border-color: #2e69da;
}

.table-action.danger {
  color: #b42318;
  background: #fff0ef;
  border-color: #f8d1cf;
}

.table-action.danger:hover {
  color: #fff;
  background: #d92d20;
  border-color: #d92d20;
}

.basic-engine-options {
  background: #fcfdfb;
}

.basic-engine-options .engine-field-grid {
  align-items: start;
}

.advanced-settings {
  display: block;
  border-top: 1px solid #e8ece7;
}

.advanced-settings > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 23px;
  color: #3d5046;
  background: #f8faf8;
  cursor: pointer;
  list-style: none;
  font-size: 9px;
  font-weight: 700;
}

.advanced-settings > summary::-webkit-details-marker { display: none; }
.advanced-settings > summary::after { content: "+"; color: #3873d7; font-size: 15px; }
.advanced-settings[open] > summary::after { content: "−"; }
.advanced-settings > summary small { color: #8a9590; font-size: 7px; font-weight: 500; }

.model-move-modal { max-width: 510px; }
.model-install-modal { max-width: 620px; }
.install-progress-copy { display: flex; justify-content: space-between; margin: 0 0 7px; color: #5c6d64; font-size: 8px; font-weight: 700; }
.install-log-label { display: block; margin: 16px 0 6px; color: #4b5c53; font-size: 8px; font-weight: 700; }
.install-log { width: 100%; height: 178px; padding: 10px; color: #dce8df; background: #16201b; border: 1px solid #2c3d33; border-radius: 8px; font-family: Consolas, "Courier New", monospace; font-size: 8px; line-height: 1.55; resize: vertical; }
.modal-note { margin: 13px 0 0; color: #6d7872; font-size: 9px; line-height: 1.5; }
.progress-track.indeterminate span { width: 38%; animation: meet2notes-progress 1.1s ease-in-out infinite alternate; }
@keyframes meet2notes-progress { from { transform: translateX(0); } to { transform: translateX(165%); } }

.switch {
  position: relative;
  display: block;
  width: 36px;
  height: 21px;
  justify-self: end;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch i {
  position: absolute;
  inset: 0;
  background: #d8ddd6;
  border-radius: 20px;
  transition: background .15s ease;
}

.switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transition: transform .15s ease;
}

.switch input:checked + i {
  background: var(--green);
}

.switch input:checked + i::after {
  transform: translateX(15px);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.privacy-grid > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  background: #f7f9f5;
  border: 1px solid #eaede7;
  border-radius: 10px;
}

.privacy-grid > div > i {
  margin-top: 4px;
}

.privacy-grid strong,
.privacy-grid small {
  display: block;
}

.privacy-grid strong {
  color: #44534d;
  font-size: 9px;
}

.privacy-grid small {
  margin-top: 3px;
  color: #8c9691;
  font-size: 8px;
  line-height: 1.45;
}

.system-list {
  border-top: 1px solid #e9ece6;
}

.system-list > div {
  min-height: 48px;
}

.system-list dd {
  max-width: 65%;
  overflow-wrap: anywhere;
}

.neutral-pill {
  color: #727d77;
  background: #edf0eb;
}

.centered-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  text-align: center;
}

.not-found-symbol {
  margin-bottom: 18px;
  color: #cdd5cc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 82px;
  line-height: 1;
}

.centered-page h1 {
  margin: 9px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
}

.centered-page p {
  margin: 0 0 20px;
  color: #7f8a84;
  font-size: 11px;
}

.transcript-header {
  margin-bottom: 25px;
}

.engine-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 16px 18px;
  color: #704d20;
  background: #fbf1df;
  border: 1px solid #ecd6ad;
  border-radius: 13px;
}

.engine-banner-icon {
  display: grid;
  width: 39px;
  height: 39px;
  min-width: 39px;
  place-items: center;
  background: #f2dfb9;
  border-radius: 10px;
}

.engine-banner-icon svg {
  width: 20px;
}

.engine-banner strong,
.engine-banner p {
  display: block;
  margin: 0;
}

.engine-banner strong {
  font-size: 10px;
}

.engine-banner p {
  margin-top: 3px;
  color: #866b43;
  font-size: 9px;
}

.engine-banner code {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 7px;
  color: #594321;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(159, 118, 51, .18);
  border-radius: 6px;
  font-size: 9px;
}

.audio-dock {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.4fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  padding: 13px 16px;
}

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

.audio-source > div {
  min-width: 0;
}

.audio-source strong,
.audio-source span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-source strong {
  color: #394741;
  font-size: 9px;
}

.audio-source span {
  margin-top: 3px;
  color: #8b9490;
  font-size: 8px;
}

.audio-dock audio {
  width: 100%;
  height: 34px;
}

.save-indicator {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 6px;
  color: #78847e;
  font-size: 8px;
}

.save-indicator i {
  width: 6px;
  height: 6px;
  background: #67b583;
  border-radius: 50%;
}

.save-indicator.saving i {
  background: #d4a152;
  animation: pulse-save .8s ease infinite alternate;
}

.transcript-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}

.version-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.mini-add-button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1;
}

.version-list {
  display: grid;
  gap: 7px;
}

.version-item {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  padding: 11px;
  color: #52605a;
  background: #f7f8f5;
  border: 1px solid #e7eae4;
  border-radius: 10px;
  text-align: left;
  transition: border .15s ease, background .15s ease;
}

.version-item:hover,
.version-item.active {
  background: #f0f5eb;
  border-color: #aac1ad;
}

.version-item strong {
  color: #34433d;
  font-size: 9px;
}

.version-item small {
  grid-column: 1;
  color: #929a96;
  font-size: 7px;
}

.version-item .status-badge {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
}

.version-empty {
  padding: 28px 8px;
  color: #909994;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.model-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
  padding-top: 14px;
  color: #909994;
  border-top: 1px solid #eaede7;
  font-size: 7px;
  line-height: 1.5;
}

.model-footnote svg {
  width: 15px;
  min-width: 15px;
  color: #6d8e7c;
}

.model-footnote strong {
  display: block;
  color: #65726c;
  font-size: 8px;
}

.editor-panel {
  min-height: 570px;
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  min-height: 61px;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  background: #fafbf8;
  border-bottom: 1px solid #e8ebe5;
}

.editor-search {
  width: min(260px, 42%);
  background: #fff;
}

.editor-meta {
  margin-left: auto;
  color: #8a948e;
  font-size: 8px;
}

.job-progress-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 15px 17px 0;
  padding: 14px;
  background: #f0f5eb;
  border: 1px solid #dbe8d4;
  border-radius: 11px;
}

.job-progress-card > div {
  min-width: 0;
}

.job-progress-card .progress-copy {
  margin-bottom: 7px;
}

.job-progress-card progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  appearance: none;
  background: #dfe5dc;
  border: 0;
  border-radius: 10px;
}

.job-progress-card progress::-webkit-progress-bar {
  background: #dfe5dc;
  border-radius: 10px;
}

.job-progress-card progress::-webkit-progress-value {
  background: linear-gradient(90deg, #3c8b68, #98c362);
  border-radius: 10px;
}

.job-progress-card progress::-moz-progress-bar {
  background: linear-gradient(90deg, #3c8b68, #98c362);
  border-radius: 10px;
}

.job-progress-card p {
  margin: 6px 0 0;
  color: #87928b;
  font-size: 7px;
}

.transcript-segments {
  display: grid;
  gap: 1px;
  padding: 8px 17px 25px;
}

.transcript-empty {
  display: grid;
  min-height: 460px;
  place-items: center;
  align-content: center;
  padding: 35px;
  text-align: center;
}

.empty-transcript-art {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 17px;
  place-items: center;
  color: #63806f;
  background: #edf2e9;
  border-radius: 23px;
}

.empty-transcript-art svg {
  width: 42px;
}

.transcript-empty h2 {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.transcript-empty p {
  max-width: 390px;
  margin: 0 0 17px;
  color: #84908a;
  font-size: 10px;
  line-height: 1.6;
}

.segment-row {
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 15px 6px;
  border-bottom: 1px solid #edf0ea;
}

.segment-row.filtered {
  display: none;
}

.timestamp-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: #3f7960;
  background: #edf5ec;
  border: 0;
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
}

.timestamp-button svg {
  width: 10px;
  fill: currentColor;
  stroke: none;
}

.segment-editor {
  width: 100%;
  min-height: 48px;
  padding: 7px 9px;
  resize: vertical;
  color: #34413c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.55;
  transition: background .15s ease, border .15s ease;
}

.segment-editor:hover {
  background: #fafbf8;
}

.segment-editor:focus {
  background: #fff;
  border-color: #9db6a5;
  box-shadow: 0 0 0 3px rgba(47, 141, 105, .07);
}

.segment-save {
  margin-top: 6px;
  padding: 4px 6px;
  color: #7b8781;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
}

.segment-row.dirty .segment-save {
  opacity: 1;
}

.segment-save:hover {
  color: var(--forest);
  background: var(--lime);
}

.field-help {
  color: #89948e;
  font-size: 8px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.download-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #f5f7f2;
  border: 1px solid #e2e7de;
  border-radius: 10px;
  cursor: pointer;
}

.download-confirmation input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.download-confirmation strong,
.download-confirmation small {
  display: block;
}

.download-confirmation strong {
  color: #45534d;
  font-size: 9px;
}

.download-confirmation small {
  margin-top: 3px;
  color: #8a948f;
  font-size: 8px;
  line-height: 1.45;
}

.download-confirmation.model-installed {
  opacity: .58;
}

.local-processing-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #567365;
  font-size: 8px;
  line-height: 1.5;
}

.local-processing-note svg {
  width: 17px;
  min-width: 17px;
}

.compact-check {
  padding: 10px;
}

@keyframes pulse-save {
  to { opacity: .35; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: -120% 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid,
  .meeting-layout {
    grid-template-columns: 1fr;
  }

  .activity-panel {
    order: -1;
  }

  .job-list:not(.compact) {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-empty {
    grid-column: 1 / -1;
    min-height: 120px;
  }

  .next-step-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .next-step-card .button {
    grid-column: 2;
    justify-self: start;
  }

  .audio-dock {
    grid-template-columns: minmax(180px, .8fr) minmax(230px, 1.2fr);
  }

  .audio-dock .save-indicator {
    display: none;
  }

  .transcript-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .live-assistant-behavior-modes { grid-template-columns: 1fr; }

  .sidebar {
    width: 248px;
    transform: translateX(-100%);
    box-shadow: 18px 0 50px rgba(11, 24, 20, .22);
    transition: transform .2s ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .mobile-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    height: 63px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: rgba(244, 244, 239, .9);
    border-bottom: 1px solid rgba(217, 221, 213, .8);
    backdrop-filter: blur(12px);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobile-brand img {
    width: 31px;
  }

  .mobile-brand strong {
    font-size: 14px;
  }

  .main-content {
    margin-left: 0;
  }

  .page {
    padding: 30px 19px 45px;
  }

  .page-header,
  .meeting-header,
  .simple-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 47px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .meeting-header .header-actions .button {
    flex: 1;
  }

  .meeting-title-block {
    align-items: flex-start;
  }

  .meeting-title-block h1,
  .meeting-title-block p {
    white-space: normal;
  }

  .engine-identity-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .engine-provider-select {
    grid-column: 1 / -1;
  }

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

@media (max-width: 600px) {
  .settings-page .meetings-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-page .page-header-actions {
    margin-left: 0;
  }

  .model-storage-control {
    grid-template-columns: 1fr;
  }

  .model-storage-control .button {
    width: 100%;
  }

  .settings-tabs {
    margin-right: -12px;
    border-radius: 9px 0 0 9px;
  }

  .recommendation-card {
    display: grid;
  }

  .research-status {
    min-width: 0;
  }

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

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

  .metric-card {
    grid-template-columns: 1fr;
    min-height: 140px;
    align-content: center;
    gap: 9px;
    padding: 15px;
  }

  .metric-card > small {
    display: none;
  }

  .page-header h1 {
    font-size: 40px;
  }

  .header-actions .button {
    flex: 1;
    padding: 0 11px;
  }

  .meetings-panel,
  .activity-panel,
  .recording-panel,
  .details-panel,
  .meeting-jobs-panel,
  .settings-section {
    padding: 16px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-tools {
    align-items: flex-end;
    flex-direction: column;
  }

  .search-box {
    width: 145px;
  }

  .meeting-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .meeting-row .meeting-meta {
    display: none;
  }

  .job-list:not(.compact) {
    grid-template-columns: 1fr;
  }

  .recording-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .recording-stat {
    display: none;
  }

  .next-step-card {
    grid-template-columns: 1fr;
  }

  .next-step-art {
    height: 78px;
  }

  .next-step-card .button {
    grid-column: 1;
  }

  .modal-panel {
    padding: 21px;
  }

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

  .setting-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px 0;
  }

  .engine-settings-section > .settings-section-header {
    padding: 16px 16px 0;
  }

  .engine-identity-card {
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0 16px 16px;
  }

  .engine-runtime-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .engine-config-group {
    padding: 18px 16px;
  }

  .engine-field-grid,
  .engine-toggle-grid,
  .realtime-parameter-grid {
    grid-template-columns: 1fr;
  }

  .engine-field.wide {
    grid-column: auto;
  }

  .engine-settings-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 16px;
  }

  .engine-settings-actions .button {
    width: 100%;
  }

  .switch {
    justify-self: start;
  }

  .audio-dock {
    grid-template-columns: 1fr;
  }

  .transcript-layout {
    grid-template-columns: 1fr;
  }

  .version-panel {
    position: static;
  }

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

  .editor-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .editor-search {
    width: 100%;
  }

  .editor-meta {
    margin-left: 0;
  }

  .job-progress-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .job-progress-card > button {
    grid-column: 2;
    justify-self: end;
  }

  .segment-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .segment-save {
    grid-column: 2;
    justify-self: end;
  }

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

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

.rag-test-card { margin-top: 22px; }
.rag-test-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 0 20px 20px; }
.rag-test-form input { min-height: 43px; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; color: var(--ink); background: var(--panel); }
.rag-test-results { display: grid; gap: 10px; padding: 0 20px 20px; }
.rag-test-result { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.rag-test-result > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rag-test-result span,.rag-test-result p,.settings-empty-copy { color: var(--ink-soft); }

.webhook-card { margin-top: 18px; }
.webhook-editor { margin-top: 18px; padding: 20px; }
.webhook-event-picker { margin: 18px 0; padding: 0; border: 0; }
.webhook-event-picker legend { margin-bottom: 12px; font-weight: 700; }
#webhook-event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.webhook-event-group { display: grid; gap: 8px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.webhook-event-group > strong { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.webhook-event-group label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.webhook-event-group input { margin-top: 3px; }
.webhook-event-group span { display: grid; gap: 2px; }
.webhook-event-group b { font-size: .82rem; overflow-wrap: anywhere; }
.webhook-event-group small { color: var(--ink-soft); line-height: 1.35; }
.webhook-row-actions { min-width: 220px; }
.webhook-row-actions .text-button { margin-right: 8px; }
.text-button.danger { color: var(--red); }
.model-table td > small { display: block; margin-top: 3px; color: var(--ink-soft); overflow-wrap: anywhere; }

@media (max-width: 760px) {
  #webhook-event-list { grid-template-columns: 1fr; }
  .webhook-row-actions { min-width: 160px; }
}
.rag-test-result span { font-size: .8rem; white-space: nowrap; }
.rag-test-result p { margin: 8px 0 0; line-height: 1.5; font-size: .87rem; }
@media (max-width: 700px) { .rag-test-form { grid-template-columns: 1fr; }.rag-test-result > div { display: grid; }.rag-test-result span { white-space: normal; } }
