:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: #dbe3ef;
  --line-strong: #c9d4e5;
  --text: #10223d;
  --muted: #73839c;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.1);
  --blue: #3b82f6;
  --green: #10b981;
  --red: #ef4444;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #f4f7fb 100%);
  color: var(--text);
  font-family: Inter, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.dashboard-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  transition: grid-template-columns 0.28s ease;
}

.dashboard-shell.sidebar-collapsed {
  grid-template-columns: 84px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-right: 1px solid rgba(219, 227, 239, 0.8);
  padding: 18px 10px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.sidebar-collapse-toggle {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  color: #51627b;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.28s ease;
}

.sidebar-collapse-toggle:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

.sidebar-collapse-toggle .nav-icon {
  transition: transform 0.28s ease;
  transform: rotate(90deg);
}

.brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 8px 0;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  padding-left: 0;
  font-size: 14px;
  color: #1e2d42;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  height: 48px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #506179;
  font-size: 15px;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover {
  background: rgba(249, 115, 22, 0.06);
  color: #22314a;
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-weight: 700;
}

.nav-item.active .nav-icon {
  color: #4f7fd8;
  opacity: 0.9;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a99ad;
  opacity: 0.78;
  flex: none;
}

.nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 10px 6px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-shell.sidebar-collapsed .sidebar {
  padding: 18px 8px 18px;
  gap: 14px;
}

.dashboard-shell.sidebar-collapsed .brand {
  min-height: 8px;
  padding: 0;
}

.dashboard-shell.sidebar-collapsed .brand-copy,
.dashboard-shell.sidebar-collapsed .nav-item span:last-child,
.dashboard-shell.sidebar-collapsed .sidebar-footer {
  display: none;
}

.dashboard-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.dashboard-shell.sidebar-collapsed .sidebar-collapse-toggle .nav-icon {
  transform: rotate(-90deg);
}

.content-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  padding: 0 24px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(219, 227, 239, 0.75);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-select,
.filter-button,
.source-button {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #22314a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.workspace-select {
  min-width: 168px;
  justify-content: space-between;
}

.workspace-select > span {
  font-size: 13px;
}

.account-chip {
  color: #263951;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-chip > span:nth-child(2) {
  font-size: 13px;
}

.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.workspace {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px 16px;
}

.main-panel {
  min-width: 0;
  min-height: 0;
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toolbar,
.panel-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 227, 239, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  flex-wrap: wrap;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e2b42;
  font-weight: 600;
  flex-wrap: wrap;
}

.title-row strong {
  font-size: 15px;
}

.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.toolbar-spacer {
  flex: 1;
}

.dashboard-date-filter {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.dashboard-date-filter__field {
  display: grid;
  gap: 4px;
  color: #52606d;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-date-filter__field .dashboard-date-filter__range-input {
  width: 238px;
  color: #203046;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.dashboard-date-filter__actions {
  flex-wrap: nowrap;
}

.dashboard-toolbar-refresh {
  align-self: flex-end;
}

.flatpickr-calendar {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-family: Inter, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.flatpickr-calendar.open {
  z-index: 1300;
}

.flatpickr-months {
  padding: 6px 8px 0;
}

.flatpickr-current-month {
  padding-top: 9px;
  color: #1e2b42;
  font-size: 15px;
  font-weight: 800;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-weight: 800;
}

.flatpickr-weekdays {
  margin-top: 4px;
}

span.flatpickr-weekday {
  color: #73839c;
  font-size: 12px;
  font-weight: 800;
}

.flatpickr-day {
  border-radius: 6px;
  color: #334155;
  font-weight: 600;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  border-color: #e2e8f0;
  background: #f1f5f9;
}

.flatpickr-day.today {
  border-color: #f97316;
  color: #c2410c;
}

.flatpickr-day.inRange {
  border-color: #eff6ff;
  background: #eff6ff;
  color: #1e40af;
  box-shadow: -5px 0 0 #eff6ff, 5px 0 0 #eff6ff;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.flatpickr-day.today.selected,
.flatpickr-day.today.startRange,
.flatpickr-day.today.endRange {
  border-color: #2563eb;
  color: #fff;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 6px;
  color: #64748b;
  fill: #64748b;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: #2563eb;
  fill: #2563eb;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(219, 227, 239, 0.85);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.summary-strip--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  text-align: center;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-value.positive {
  color: var(--green);
}

.metric-value.negative {
  color: var(--red);
}

.metric-value.neutral {
  color: #5f6f87;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.quick-entry-card {
  display: grid;
  gap: 12px;
}

.quick-entry-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
}

.quick-entry-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.quick-entry-card__meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 16px;
}

.panel-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(219, 227, 239, 0.75);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
}

.panel-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.panel-body {
  padding: 18px 20px 20px;
}


.field-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--inline {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.field--inline .field-label {
  font-size: 12px;
  font-weight: 600;
}

.field-label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.input,
.select,
.textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(197, 208, 222, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #203046;
  padding: 0 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(115, 131, 156, 0.82);
  font-size: 0.875rem;
}

.input,
.select {
  height: 38px;
}

.textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(219, 227, 239, 0.85);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.toggle-row span {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-row--center {
  justify-content: center;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.08));
  color: #d45616;
  border-color: rgba(249, 115, 22, 0.26);
}

.button.secondary {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #41556f;
}

.excel-actions {
  display: inline-flex;
  border: 1px solid rgba(33, 115, 70, 0.3);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow-x: hidden;
  overflow-y: auto;
}

.button.secondary.excel-button {
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #fff, #f4faf6);
  color: #185c37;
}

.button.secondary.excel-button + .excel-button {
  border-left: 1px solid rgba(33, 115, 70, 0.2);
}

.button.secondary.excel-button:hover:not(:disabled) {
  background: #eaf4ed;
  color: #114d2e;
}

.button.secondary.excel-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(33, 115, 70, 0.22);
  outline-offset: -3px;
}

.excel-button__icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  margin-left: -5px;
}

.excel-button__icon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.excel-button__sheet {
  fill: #217346;
}

.excel-button__mark {
  fill: #185c37;
}

.excel-button__fold,
.excel-button__arrow {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.excel-button__x {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.button.danger {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(254, 242, 242, 0.96);
  color: #b42318;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.badge {
  height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.badge.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.badge.orange {
  background: rgba(249, 115, 22, 0.12);
  color: #d45616;
}

.badge.pink {
  background: rgba(244, 114, 182, 0.12);
  color: #db2777;
}

.badge.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #7e22ce;
}

.badge.green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.badge.red {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.badge.gray {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e5ebf0;
  color: #52606d;
  font-weight: 700;
}

.data-table th.data-table__actions,
.data-table td.data-table__actions {
  text-align: center;
}

.data-table th.data-table__center,
.data-table td.data-table__center {
  text-align: center;
}

.data-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(249, 115, 22, 0.03);
}

.table-shell {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

#meetings-panel .meeting-list-table {
  min-width: 1260px;
  table-layout: fixed;
}

#meetings-panel .meeting-list-table col.meeting-list-table__name {
  width: 25%;
}

#meetings-panel .meeting-list-table col.meeting-list-table__keywords {
  width: 17%;
}

#meetings-panel .meeting-list-table col.meeting-list-table__created {
  width: 12%;
}

#meetings-panel .meeting-list-table col.meeting-list-table__cooldown,
#meetings-panel .meeting-list-table col.meeting-list-table__status {
  width: 8%;
}

#meetings-panel .meeting-list-table col.meeting-list-table__actions {
  width: 30%;
}

#meetings-panel .meeting-list-table .data-table__actions .button-row {
  flex-wrap: nowrap;
  justify-content: center;
}

#meetings-panel .meeting-list-table .data-table__actions .button {
  white-space: nowrap;
}

.meeting-keyword-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.meeting-keyword-chips span,
.meeting-keyword-chips em {
  max-width: 120px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.07);
  color: #b94e12;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-keyword-chips em {
  border-color: rgba(203, 213, 225, 0.8);
  background: #f8fafc;
  color: #64748b;
}

.meeting-keyword-empty {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.meeting-transcript-action--live::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13);
  content: "";
}

.dashboard-report-table {
  min-width: 1080px;
  table-layout: fixed;
}

.dashboard-report-table col.dashboard-report-table__kind {
  width: 10%;
}

.dashboard-report-table col.dashboard-report-table__meeting {
  width: 18%;
}

.dashboard-report-table col.dashboard-report-table__text {
  width: 22%;
}

.dashboard-report-table col.dashboard-report-table__time {
  width: 17%;
}

.dashboard-report-table col.dashboard-report-table__status {
  width: 10%;
}

.dashboard-report-table col.dashboard-report-table__actions {
  width: 23%;
}

.dashboard-report-table th,
.dashboard-report-table td:not(:nth-child(3)),
.dashboard-report-table .badge,
.dashboard-report-table .button {
  white-space: nowrap;
}

.dashboard-report-table__single-line {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-report-table td:nth-child(2) {
  min-width: 0;
  overflow: hidden;
}

.dashboard-report-table__clamped-text {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-report-table .data-table__actions .button-row {
  flex-wrap: nowrap;
}

.dashboard-report-group-row {
  background: #fff;
}

.dashboard-report-group-row[aria-expanded="true"] {
  background: rgba(59, 130, 246, 0.04);
}

.dashboard-report-group-row td {
  border-bottom-color: #dfe7f1;
}

.dashboard-report-group__name {
  display: grid;
  gap: 4px;
}

.dashboard-report-group__name span {
  color: var(--muted);
  font-size: 12px;
}

.button.secondary.dashboard-group-toggle {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-color: transparent;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.45);
}

.button.secondary.dashboard-group-toggle:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.09);
  color: #2563eb;
  transform: none;
}

.button.secondary.dashboard-group-toggle[aria-expanded="true"] {
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.dashboard-group-toggle:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.2);
  outline-offset: 2px;
}

.dashboard-group-toggle__icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.dashboard-group-toggle[aria-expanded="true"] .dashboard-group-toggle__icon {
  transform: translateY(2px) rotate(225deg);
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-group-toggle__icon {
    transition: none;
  }
}

.dashboard-report-detail-row:hover {
  background: transparent !important;
}

.dashboard-report-detail-row > td {
  padding: 0 10px 16px;
  background: #f8fafc;
}

.dashboard-report-detail {
  border: 1px solid #dfe7f1;
  border-top: 0;
  background: #fff;
}

.dashboard-report-group-table {
  min-width: 760px;
  table-layout: fixed;
}

.dashboard-report-group-table col.dashboard-report-group-table__meeting {
  width: 38%;
}

.dashboard-report-group-table col.dashboard-report-group-table__count {
  width: 12%;
}

.dashboard-report-group-table col.dashboard-report-group-table__time {
  width: 22%;
}

.dashboard-report-group-table col.dashboard-report-group-table__status {
  width: 16%;
}

.dashboard-report-group-table col.dashboard-report-group-table__actions {
  width: 12%;
}

.dashboard-report-detail-table {
  min-width: 940px;
  table-layout: fixed;
}

.dashboard-report-detail-table col.dashboard-report-detail-table__kind {
  width: 13%;
}

.dashboard-report-detail-table col.dashboard-report-detail-table__text {
  width: 31%;
}

.dashboard-report-detail-table col.dashboard-report-detail-table__time {
  width: 18%;
}

.dashboard-report-detail-table col.dashboard-report-detail-table__status {
  width: 13%;
}

.dashboard-report-detail-table col.dashboard-report-detail-table__actions {
  width: 25%;
}

.dashboard-report-detail-table .data-table__actions .button-row {
  flex-wrap: nowrap;
}

.muted {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 16px 0 4px;
  color: #6b7785;
  font-size: 14px;
}

.message {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid transparent;
}

.message.success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.message.error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.floating-alert {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid transparent;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.floating-alert.success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.floating-alert.error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-gap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-pill {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: #b45309;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.mini-pill.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.table-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.table-meta.warning {
  color: #d45616;
  font-weight: 700;
}

.recipient-page {
  gap: 14px;
}

.log-page {
  gap: 14px;
}

.log-filter-bar {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(220px, 0.7fr) minmax(260px, 1fr);
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.log-filter {
  gap: 6px;
}

.log-summary-header {
  padding-bottom: 10px;
}

.log-table {
  min-width: 1020px;
  table-layout: fixed;
}

.log-table col.log-table__level {
  width: 9%;
}

.log-table col.log-table__meeting {
  width: 20%;
}

.log-table col.log-table__message {
  width: 33%;
}

.log-table col.log-table__tracking {
  width: 23%;
}

.log-table col.log-table__time {
  width: 15%;
}

.recipient-table,
.log-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.recipient-table tbody td,
.log-table tbody td {
  border-top: 1px solid #e8edf3;
  border-bottom: 1px solid #e8edf3;
  background: #fff;
}

.recipient-table tbody td:last-child,
.log-table tbody td:last-child {
  border-right: 1px solid #e8edf3;
}

.recipient-table tbody tr:hover td,
.log-table tbody tr:hover td {
  background: rgba(249, 115, 22, 0.025);
}

.log-table tbody tr td:first-child {
  border-left: 3px solid #60a5fa;
  padding-left: 13px;
}

.log-table tbody tr.log-entry--error td:first-child {
  border-left-color: var(--red);
}

.log-table tbody tr.log-entry--warn td:first-child {
  border-left-color: #f59e0b;
}

.log-table tbody td {
  vertical-align: top;
}

.log-table tbody td > time {
  color: var(--muted);
  font-size: 12px;
}

.log-entry__message {
  display: block;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.log-entry__meta {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.log-entry code,
.log-details pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.log-details {
  margin-top: 10px;
  color: #475569;
  font-size: 12px;
}

.log-details summary {
  cursor: pointer;
  font-weight: 700;
}

.log-details pre {
  max-height: 280px;
  margin: 8px 0 0;
  padding: 12px;
  overflow: auto;
  border-radius: 9px;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .log-filter-bar {
    grid-template-columns: 1fr;
  }
}

.recipient-relay-warning {
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.96);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.recipient-table {
  min-width: 960px;
}

.recipient-table tbody tr {
  position: relative;
}

.recipient-table tbody tr td:first-child {
  border-left: 3px solid transparent;
  padding-left: 13px;
}

.recipient-table tbody tr.recipient-table__teams-on td:first-child {
  border-left-color: #0f766e;
}

.recipient-table td:first-child strong {
  color: #203046;
  font-weight: 750;
}

.channel-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.channel-state--mail {
  color: #334155;
}

.channel-state--mail > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.recipient-channel-switch {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.recipient-channel-switch__track {
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.18s ease;
}

.recipient-channel-switch__track span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.26);
  transition: transform 0.18s ease;
}

.recipient-channel-switch[aria-checked="true"] {
  color: #0f766e;
}

.recipient-channel-switch[aria-checked="true"] .recipient-channel-switch__track {
  background: #0f766e;
}

.recipient-channel-switch[aria-checked="true"] .recipient-channel-switch__track span {
  transform: translateX(16px);
}

.recipient-channel-switch:focus-visible {
  border-radius: 9px;
  outline: 3px solid rgba(249, 115, 22, 0.22);
  outline-offset: 2px;
}

.recipient-channel-switch:disabled {
  cursor: wait;
  opacity: 0.55;
}

.recipient-channel-cell {
  min-width: 188px;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.recipient-team-account {
  max-width: 210px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.recipient-team-account--warning {
  color: #b45309;
  font-weight: 800;
}

.recipient-manage-actions {
  flex-wrap: nowrap;
  justify-content: center;
}

.recipient-edit,
.recipient-delete {
  height: 32px;
  padding-inline: 11px;
  border-radius: 10px;
}

.recipient-channel-picker {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.recipient-channel-picker legend {
  width: 100%;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.recipient-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recipient-channel-option {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(197, 208, 222, 0.92);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.recipient-channel-option:hover {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(240, 253, 250, 0.48);
}

.recipient-channel-option:has(input:focus-visible) {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.recipient-channel-option:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.48);
  background: rgba(240, 253, 250, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.recipient-channel-option__indicator {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.recipient-channel-option--teams .recipient-channel-option__indicator {
  background: #e8f7f4;
  color: #0f766e;
}

.recipient-channel-option__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.recipient-channel-option__copy strong {
  color: #334155;
  font-size: 13px;
}

.recipient-channel-option__copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.recipient-channel-toggle {
  width: 40px;
  height: 22px;
  position: relative;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.18s ease;
}

.recipient-channel-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.26);
  transition: transform 0.18s ease;
}

.recipient-channel-toggle:checked {
  background: #0f766e;
}

.recipient-channel-toggle:checked::before {
  transform: translateX(18px);
}

.recipient-channel-help {
  margin-top: 1px;
}

.recipient-channel-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recipient-channel-fields:has(> [hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.recipient-channel-account {
  position: relative;
  margin: 0;
  padding: 13px 14px 14px;
  border: 1px solid rgba(197, 208, 222, 0.78);
  border-radius: 12px;
  background: var(--panel-soft);
}

.recipient-channel-account::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: #3b82f6;
}

.recipient-channel-account--teams::before {
  background: #0f766e;
}

.recipient-channel-account--teams .input {
  background: rgba(240, 253, 250, 0.32);
}

@media (max-width: 620px) {
  .recipient-channel-grid,
  .recipient-channel-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.recipient-form-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.recipient-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 190px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.recipient-empty strong {
  color: #334155;
}

.recipient-empty p {
  margin: 0;
  font-size: 13px;
}

.recipient-empty--error strong {
  color: #b42318;
}

.recipient-skeleton {
  display: grid;
  gap: 10px;
}

.recipient-skeleton span {
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .recipient-skeleton span {
    animation: recipient-skeleton-shimmer 1.35s ease-in-out infinite;
  }
}

@keyframes recipient-skeleton-shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full-width {
  grid-column: 1 / -1;
}

.table-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(219, 227, 239, 0.85);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.table-row strong {
  display: block;
  color: #1e2d42;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stats-row .badge {
  height: 28px;
}

.status-panel {
  min-height: 264px;
  display: grid;
  place-items: center;
}

.status {
  display: grid;
  gap: 8px;
  text-align: center;
}

.status strong {
  font-size: 15px;
  color: var(--text);
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.register-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: start;
}

.register-panel {
  min-width: 0;
}

.register-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-dropzone {
  border: 1px dashed rgba(197, 208, 222, 0.95);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  padding: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.register-dropzone:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.4);
}

.register-dropzone--disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.register-dropzone__content {
  display: grid;
  gap: 8px;
  text-align: center;
}

.register-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.register-preview-card {
  overflow: hidden;
  border: 1px solid rgba(219, 227, 239, 0.85);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.register-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

.register-preview-card__body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.register-preview-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.register-preview-card__title {
  display: block;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.register-result-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.register-result-metric {
  border: 1px solid rgba(219, 227, 239, 0.85);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  padding: 16px;
}

.register-result-metric__label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.register-result-metric__value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.register-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-file-status {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(219, 227, 239, 0.85);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
}

.register-file-status__badge {
  flex: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.register-file-status__badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.register-file-status__badge--error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop--nested {
  z-index: 60;
}

.modal-card {
  width: min(680px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(219, 227, 239, 0.9);
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.modal-card--wide {
  width: min(1120px, 100%);
}

.meeting-config-modal {
  width: min(1040px, 100%);
  overflow: hidden;
}

.modal-header.meeting-config-modal__header {
  align-items: flex-start;
  background: #fff;
}

.meeting-config-modal__selection-summary {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  color: #c25315;
  font-size: 12px;
  font-weight: 900;
}

.meeting-config-modal__selection-summary.is-empty {
  border-color: rgba(203, 213, 225, 0.9);
  background: #f8fafc;
  color: #64748b;
}

.modal-body.meeting-config-modal__body {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr);
  gap: 0;
  padding: 0;
}

.meeting-config-section {
  min-width: 0;
  padding: 24px;
}

.meeting-config-section--details {
  border-right: 1px solid rgba(219, 227, 239, 0.82);
  background: #fbfcfe;
}

.meeting-config-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
}

.meeting-config-section__step {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #172f50;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.meeting-config-section--keywords .meeting-config-section__step {
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.22);
}

.meeting-config-section__heading h3,
.meeting-config-section__heading p {
  margin: 0;
}

.meeting-config-section__heading h3 {
  color: #203046;
  font-size: 15px;
  line-height: 1.6;
}

.meeting-config-section__heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.meeting-cooldown-control {
  position: relative;
  display: block;
}

.meeting-cooldown-control .input {
  padding-right: 42px;
}

.meeting-cooldown-control > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

.meeting-keyword-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.meeting-keyword-search {
  position: relative;
  flex: 1;
}

.meeting-keyword-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #7c8ca4;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.meeting-keyword-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid rgba(197, 208, 222, 0.95);
  border-radius: 11px;
  outline: none;
  color: #203046;
  background: #fff;
}

.meeting-keyword-search input:focus {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.meeting-keyword-bulk {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.meeting-keyword-bulk span {
  width: 1px;
  height: 12px;
  background: #dbe3ef;
}

.meeting-keyword-bulk button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #53657e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.meeting-keyword-bulk button:hover,
.meeting-keyword-bulk button:focus-visible {
  color: #d45616;
  outline: none;
}

.meeting-keyword-list {
  min-height: 178px;
  max-height: 246px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: 14px;
  background: #f8fafc;
}

.meeting-keyword-option {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(219, 227, 239, 0.88);
  border-radius: 11px;
  background: #fff;
  color: #34445d;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.meeting-keyword-option::before {
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  content: "";
  opacity: 0;
}

.meeting-keyword-option:hover:not(.is-disabled) {
  border-color: rgba(249, 115, 22, 0.32);
}

.meeting-keyword-option:focus-within {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.meeting-keyword-option.is-selected {
  border-color: rgba(249, 115, 22, 0.34);
  background: rgba(255, 248, 242, 0.96);
}

.meeting-keyword-option.is-selected::before {
  opacity: 1;
}

.meeting-keyword-option.is-disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.meeting-keyword-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.meeting-keyword-option__check {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  border: 1px solid #c6d1df;
  border-radius: 6px;
  background: #fff;
}

.meeting-keyword-option__check svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.meeting-keyword-option.is-selected .meeting-keyword-option__check {
  border-color: var(--accent);
  background: var(--accent);
}

.meeting-keyword-option__text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-keyword-option__status {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #77869a;
  font-size: 9px;
  font-weight: 900;
}

.meeting-keyword-empty-state {
  grid-column: 1 / -1;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #7c8ca4;
  text-align: center;
  font-size: 12px;
}

.meeting-keyword-empty-state strong {
  color: #43536a;
  font-size: 13px;
}

.meeting-keyword-empty-state .button {
  margin-top: 7px;
}

.meeting-keyword-create {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
}

.meeting-keyword-create__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 10px;
}

.meeting-keyword-create__heading strong {
  color: #203046;
  font-size: 13px;
}

.meeting-keyword-create__heading span {
  color: #74849c;
  font-size: 11px;
}

.meeting-keyword-create__controls {
  display: flex;
  gap: 8px;
}

.meeting-keyword-create__controls .input {
  min-width: 0;
  flex: 1;
}

.meeting-keyword-create__controls .button {
  flex: 0 0 auto;
}

.meeting-keyword-create__error {
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 11px;
}

.meeting-keyword-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.meeting-keyword-pending__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 999px;
  background: #fff7ed;
  color: #9a4c18;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.meeting-keyword-pending__item button {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.meeting-keyword-pending__item button:hover,
.meeting-keyword-pending__item button:focus-visible {
  background: rgba(249, 115, 22, 0.15);
}

.meeting-keyword-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: #74849c;
  font-size: 11px;
  line-height: 1.5;
}

.meeting-keyword-pending[hidden],
.meeting-keyword-create__error[hidden] {
  display: none;
}

.meeting-keyword-note > span {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eef6;
  color: #63758f;
  font-size: 10px;
  font-weight: 900;
}

.meeting-keyword-note p {
  margin: 0;
}

.meeting-keyword-note a {
  color: #c25315;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meeting-config-modal__footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 14px 24px;
  border-top: 1px solid rgba(219, 227, 239, 0.82);
  background: #fff;
}

.meeting-config-modal__footer p {
  margin: 0;
  color: #6d7e96;
  font-size: 11px;
  font-weight: 700;
}

.meeting-config-modal__footer p.is-warning {
  color: #b45309;
}

.meeting-config-modal__footer .button-row {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.meeting-delete-modal {
  width: min(480px, 100%);
  overflow: hidden;
}

.common-confirm-message {
  margin: 0 0 20px;
  color: #43536a;
  line-height: 1.6;
  white-space: pre-line;
}

.modal-header.meeting-delete-modal__header {
  min-height: auto;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
}

.modal-header.common-confirm-header {
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}

.common-confirm-header .panel-title {
  min-width: 0;
  line-height: 1.4;
}

.common-confirm-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.common-confirm-icon[data-icon="trash"] {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.common-confirm-icon[data-icon="warning"] {
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #d97706;
}

.common-confirm-icon[hidden] {
  display: none;
}

.common-confirm-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.common-confirm-icon svg[hidden] {
  display: none;
}

.meeting-delete-modal__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #52606d;
  background: #f3f6fb;
  border: 1px solid rgba(219, 227, 239, 0.95);
}

.meeting-delete-modal__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meeting-delete-modal__heading {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.meeting-delete-modal__eyebrow {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.meeting-delete-modal__warning {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(219, 227, 239, 0.95);
  background: #f8fafc;
}

.meeting-delete-modal__warning p,
.meeting-delete-modal__note {
  margin: 0;
}

.meeting-delete-modal__warning p {
  color: #52606d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.meeting-delete-modal__note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 2px 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.meeting-delete-modal__note span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.meeting-delete-modal__actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.keyword-import-confirm-modal__icon {
  border-color: rgba(33, 115, 70, 0.2);
  background: #eaf4ed;
  color: #217346;
}

.keyword-import-confirm-modal__icon rect {
  fill: #185c37;
  stroke: none;
}

.keyword-import-confirm-modal__icon path:last-child {
  stroke: #fff;
}

.keyword-import-confirm-modal__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.keyword-import-confirm-modal__summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 9px;
  text-align: center;
}

.keyword-import-confirm-modal__summary > div + div {
  border-left: 1px solid rgba(219, 227, 239, 0.8);
}

.keyword-import-confirm-modal__summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.keyword-import-confirm-modal__summary strong {
  color: #185c37;
  font-size: 15px;
}

.keyword-import-confirm-modal__summary > div:nth-child(3) strong {
  color: #b42318;
}

.keyword-import-confirm-modal__delete-warning {
  color: #b42318;
  font-weight: 700;
}

.keyword-import-confirm-modal__delete-warning span {
  background: rgba(239, 68, 68, 0.1);
  color: #b42318;
}

.keyword-import-confirm-modal__confirm {
  min-width: 98px;
}

.report-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.report-bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.report-email-preview {
  display: block;
  width: 100%;
  height: min(68vh, 720px);
  min-height: 420px;
  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: 14px;
  background: #f3f6fb;
}

.meeting-live-monitor-modal {
  width: min(92vw, 1800px);
  height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.meeting-live-monitor-modal__actions {
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

.meeting-live-monitor-modal > .modal-header {
  flex-shrink: 0;
}

.meeting-live-monitor-modal__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.meeting-live-monitor-modal__grid {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(360px, 1fr);
  gap: 16px;
}

.meeting-live-monitor-modal__panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.meeting-live-monitor-modal__player,
.meeting-live-monitor-modal__transcript-scroll {
  overflow-anchor: none;
  flex: 1;
  min-height: 0;
}

.meeting-live-monitor-modal__player {
  display: grid;
  align-content: start;
  overflow: auto;
}

.meeting-stt-transcript-list.meeting-live-monitor-modal__transcript-scroll {
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.meeting-live-monitor-modal__transcript-group {
  display: grid;
  gap: 10px;
}

.meeting-live-monitor-modal__transcript-group:empty {
  display: none;
}

.meeting-transcript-search {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #dbe3ef);
}

.meeting-stt-transcript--found {
  background: #fff7d6;
  box-shadow: inset 4px 0 #d99a16;
}

.meeting-stt-grid {
  align-items: start;
}

.meeting-stt-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border: 0;
  border-radius: 16px;
  background: #0f172a;
}

.meeting-capture-guide {
  margin: 0 18px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.55;
}

.meeting-source-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 18px;
}

.meeting-stt-transcript-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
}

#saved-transcripts,
#live-transcripts {
  display: grid;
  gap: 10px;
}

.meeting-stt-debug {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px dashed rgba(197, 208, 222, 0.95);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  font-size: 12px;
}

.meeting-stt-transcript {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.meeting-stt-transcript--live {
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.05);
}

.meeting-stt-transcript__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  -webkit-user-select: none;
  user-select: none;
}

.meeting-stt-transcript p {
  margin: 0;
  color: #203046;
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}

.modal-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(219, 227, 239, 0.75);
}

.modal-body {
  padding: 18px 20px 20px;
}

@media (max-width: 1280px) {
  .summary-strip,
  .section-grid,
  .register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .log-filter-bar {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  }

  .log-filter--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1199px) {
  .dashboard-shell,
  .dashboard-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .sidebar,
  .dashboard-shell.sidebar-collapsed .sidebar {
    position: static;
    height: auto;
    min-width: 0;
    padding: 12px 16px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-collapse-toggle,
  .sidebar-footer {
    display: none;
  }

  .brand,
  .dashboard-shell.sidebar-collapsed .brand {
    min-height: 24px;
    padding: 0 4px;
  }

  .dashboard-shell.sidebar-collapsed .brand-copy {
    display: flex;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-item,
  .dashboard-shell.sidebar-collapsed .nav-item {
    justify-content: center;
    gap: 8px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .dashboard-shell.sidebar-collapsed .nav-item span:last-child {
    display: inline;
  }

  .workspace,
  .section-grid,
  .split-grid,
  .register-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-strip--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-card,
  .field,
  .card-stack {
    min-width: 0;
  }

  .panel-header {
    flex-wrap: wrap;
  }

  .panel-subtitle,
  .subtitle,
  .field-help {
    overflow-wrap: anywhere;
  }

  .topbar {
    padding-inline: 16px;
  }

  .workspace {
    padding-top: 12px;
  }

  .meeting-config-modal {
    overflow-y: auto;
  }

  .modal-body.meeting-config-modal__body {
    grid-template-columns: 1fr;
  }

  .meeting-config-section--details {
    border-right: 0;
    border-bottom: 1px solid rgba(219, 227, 239, 0.82);
  }

  .meeting-live-monitor-modal {
    height: auto;
    overflow: auto;
  }

  .meeting-live-monitor-modal__body {
    flex: none;
    overflow: visible;
  }

  .meeting-live-monitor-modal__grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .meeting-live-monitor-modal__panel {
    min-height: 0;
  }

  .meeting-stt-transcript-list.meeting-live-monitor-modal__transcript-scroll {
    flex: none;
    min-height: 280px;
    max-height: min(44vh, 420px);
  }
}

@media (max-width: 640px) {
  .log-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar,
  .dashboard-shell.sidebar-collapsed .sidebar {
    padding-inline: 12px;
  }

  .topbar {
    height: auto;
    min-height: 56px;
    gap: 12px;
    padding: 8px 12px;
    flex-wrap: wrap;
  }

  .topbar-left,
  .topbar-right {
    min-width: 0;
  }

  .workspace {
    padding: 12px;
  }

  .panel-header {
    align-items: flex-start;
  }

  .toolbar-actions {
    flex-wrap: wrap;
  }

  .input,
  .select,
  .textarea,
  .meeting-keyword-search input {
    font-size: 16px;
  }

  .input,
  .select,
  .button,
  .meeting-keyword-search input {
    min-height: 44px;
  }

  .meeting-keyword-search {
    min-width: 0;
  }

  .meeting-keyword-bulk button {
    min-height: 44px;
  }

  .meeting-stt-player {
    min-height: 0;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100dvh - 24px);
  }

  .modal-header,
  .modal-body {
    padding: 16px;
  }

  .modal-header {
    flex-wrap: wrap;
  }

  .panel-header,
  .panel-body,
  .toolbar {
    padding-inline: 16px;
  }

  .summary-strip {
    padding: 12px;
  }

  .button-row {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .meeting-config-modal__header {
    flex-direction: column;
  }

  .meeting-config-section {
    padding: 20px 16px;
  }

  .meeting-keyword-tools,
  .meeting-config-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-keyword-bulk {
    justify-content: flex-end;
  }

  .meeting-keyword-list {
    grid-template-columns: 1fr;
  }

  .meeting-config-modal__footer {
    padding: 14px 16px 16px;
  }

  .meeting-config-modal__footer .button-row {
    flex-direction: column-reverse;
  }

  .excel-actions {
    width: 100%;
  }

  .button.secondary.excel-button {
    width: 50%;
  }

  .toolbar-actions {
    width: 100%;
  }

  .dashboard-date-filter {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-date-filter__field {
    grid-column: 1 / -1;
  }

  .dashboard-date-filter__field .dashboard-date-filter__range-input {
    width: 100%;
  }

  .dashboard-date-filter__actions {
    grid-column: 1 / -1;
  }

  .dashboard-date-filter__actions .button {
    width: auto;
    flex: 1;
  }

  .dashboard-toolbar-refresh {
    align-self: stretch;
  }

  .button.dashboard-group-toggle {
    width: 34px;
  }

  .workspace-select {
    min-width: 0;
    width: 100%;
  }

  .topbar-right {
    margin-left: auto;
    justify-content: flex-end;
  }

  .modal-card {
    width: 100%;
  }

  .modal-card--wide {
    width: 100%;
  }

  .keyword-import-confirm-modal__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .keyword-import-confirm-modal__summary > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(219, 227, 239, 0.8);
  }

  .keyword-import-confirm-modal__summary > div:nth-child(4) {
    border-top: 1px solid rgba(219, 227, 239, 0.8);
  }

  .meeting-live-monitor-modal .modal-header {
    flex-wrap: nowrap;
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-live-monitor-modal__actions {
    justify-content: flex-start;
  }

  .report-detail-grid {
    grid-template-columns: 1fr;
  }

  .register-result-metrics {
    grid-template-columns: 1fr;
  }

  .recipient-form-actions .button {
    flex: 1;
  }
}

.nav-item:focus-visible,
.sidebar-collapse-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-shell,
  .sidebar-collapse-toggle,
  .sidebar-collapse-toggle .nav-icon,
  .nav-item {
    transition: none;
  }
}

.meeting-stt-transcript__editable {
  border-radius: 8px;
  cursor: text;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.meeting-stt-transcript__editable:hover,
.meeting-stt-transcript__editable:focus-visible {
  background: rgba(59, 130, 246, 0.07);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.07);
  outline: none;
}

.meeting-stt-transcript--editing {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.07);
}

.meeting-stt-transcript__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.button--compact {
  height: 30px;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 12px;
}

.meeting-stt-editor {
  display: grid;
  gap: 8px;
}

.meeting-stt-editor__textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.meeting-stt-editor__actions,
.meeting-stt-speaker-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meeting-stt-speaker-button {
  border: 0;
  cursor: pointer;
}

.meeting-stt-speaker-button:hover {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.meeting-stt-speaker-editor__input {
  width: min(180px, 100%);
  height: 32px;
  padding: 0 10px;
}

.meeting-stt-speaker-editor__scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52606d;
  font-size: 12px;
  font-weight: 700;
  -webkit-user-select: none;
  user-select: none;
}
/* Touch layouts use the same data and controls as the desktop tables. */
.report-reader .modal-header { position: relative; top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.report-reader .modal-header > .panel-title { grid-column: 1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.report-reader .modal-close { grid-column: 2; grid-row: 1; width: auto; }
.report-reader-actions { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 1199px) {
  .report-reader.modal-card {
    display: flex; flex-direction: column;
    width: 100%; height: calc(100dvh - 48px); max-height: calc(100dvh - 48px); overflow: hidden;
  }
  .report-reader .modal-header { flex: none; gap: 10px; padding: 14px 16px; }
  .report-reader .modal-header > .panel-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .report-reader-actions { margin: 0; display: flex; flex-wrap: wrap; }
  .report-reader-actions .button { min-height: 44px; flex: 1; }
  .report-reader .modal-close { min-height: 44px; }
  .report-reader .modal-body { flex: 1; display: flex; min-height: 0; padding: 0; overflow: hidden; }
  .report-reader .modal-body > .message { display: none; }
  .report-reader .report-email-preview { flex: 1; height: 100%; min-height: 0; border: 0; border-radius: 0; }
}
@media (max-width: 640px) {
  .report-reader.modal-card { height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  .report-reader .modal-header { padding-top: max(12px, env(safe-area-inset-top)); }
  .report-reader .modal-header > .panel-title { font-size: 15px; }
  .report-reader-actions .button { font-size: 12px; padding: 8px; height: auto; }
}
.mobile-cell-label { display: none; }
body.modal-open { overflow: hidden; }

@media (max-width: 1199px) {
  .dashboard-shell { transition: none; }
  .workspace { gap: 20px; padding: 20px; }
  .panel-header { gap: 12px; }
  .toolbar { gap: 12px; }
  .toolbar > .button-row { width: auto; margin-left: auto; }
  .toolbar-actions { width: auto; margin-left: auto; flex-wrap: wrap; }
  .button, .input, .select, .recipient-channel-switch { min-height: 44px; }
  .button { width: auto; }
  .input, .select, .textarea { font-size: 16px; }
  .table-shell { overflow: visible; }
  .data-table.responsive-table,
  #meetings-panel .meeting-list-table.responsive-table {
    display: block; width: 100%; min-width: 0; table-layout: auto;
  }
  .responsive-table > colgroup { display: none; }
  .responsive-table > thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
  .responsive-table > tbody {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px;
  }
  .responsive-table > tbody > tr {
    min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start; gap: 14px 12px; padding: 18px;
    border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
  }
  .responsive-table > tbody > tr > td {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    min-width: 0; padding: 0; border: 0; text-align: left;
    white-space: normal; overflow-wrap: anywhere;
  }
  .responsive-table > tbody > tr > td:first-child {
    grid-column: 1 / -1; font-size: 16px; line-height: 1.5;
  }
  .responsive-table > tbody > tr > td:first-child > .mobile-cell-label { display: none; }
  .responsive-table .mobile-cell-label {
    display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  }
  .responsive-table td.data-table__center { text-align: left; }
  .responsive-table > tbody > tr > td.data-table__actions {
    grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line);
  }
  .responsive-table td.data-table__actions > .mobile-cell-label { display: none; }
  .responsive-table .button-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px;
  }
  .responsive-table .button-row .button { width: 100%; min-width: 0; white-space: normal; padding: 8px; height: auto; }
  .responsive-table .table-meta { margin: 0; font-size: 12px; }
  .responsive-table .meeting-keyword-chips { flex-wrap: wrap; }
  .responsive-table .meeting-keyword-chips span { max-width: 100%; white-space: normal; }
  .responsive-table .recipient-channel-cell { align-items: flex-start; min-width: 0; max-width: 100%; }
  .responsive-table .recipient-team-account { max-width: 100%; }
  .responsive-table .recipient-channel-switch { min-width: 0; }
  .responsive-table .recipient-manage-actions { min-width: 0; }
  .log-table.responsive-table > tbody,
  .dashboard-report-group-table.responsive-table > tbody { grid-template-columns: minmax(0, 1fr); }
  .log-table.responsive-table > tbody > tr > td:nth-child(3),
  .log-table.responsive-table > tbody > tr > td:nth-child(4) { grid-column: 1 / -1; }
  .log-details, .log-details pre { max-width: 100%; }
  .dashboard-report-group-table.responsive-table > tbody > tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-report-group-table.responsive-table > tbody > .dashboard-report-detail-row {
    display: block; padding: 0; border: 0; background: transparent;
  }
  .dashboard-report-detail-row > td { width: 100%; }
  .dashboard-report-detail { width: 100%; padding: 0; background: transparent; }
  .button.secondary.dashboard-group-toggle { width: 100%; min-height: 44px; gap: 10px; }
  .dashboard-group-toggle::after { content: '리포트 목록 보기'; }
  .dashboard-group-toggle[aria-expanded='true']::after { content: '리포트 목록 접기'; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .summary-strip--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { text-align: left; padding: 4px 8px; }
  .metric-value { font-size: 22px; overflow-wrap: anywhere; }
  .meeting-config-modal__footer { position: sticky; bottom: 0; z-index: 1; }
  .meeting-config-modal__footer .button-row { flex-direction: row; width: auto; }
  .meeting-config-modal__footer .button { min-width: 100px; }
  .meeting-stt-player { min-height: 0; }
}

@media (min-width: 641px) and (max-width: 1199px) {
  .dashboard-shell, .dashboard-shell.sidebar-collapsed {
    grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto;
  }
  .sidebar, .dashboard-shell.sidebar-collapsed .sidebar {
    position: sticky; top: 0; height: 100dvh; padding: 20px 8px;
    border-right: 1px solid var(--line); border-bottom: 0; gap: 24px;
  }
  .brand, .dashboard-shell.sidebar-collapsed .brand { padding: 0 8px; }
  .brand-copy strong { font-size: 12px; }
  .nav { display: flex; flex-direction: column; gap: 10px; }
  .nav-item, .dashboard-shell.sidebar-collapsed .nav-item {
    flex-direction: column; gap: 8px; height: 76px; padding: 12px 4px;
  }
  .topbar { padding-inline: 20px; }
  .dashboard-date-filter { flex-wrap: wrap; }
  .modal-backdrop { padding: 24px; }
  .modal-card { max-height: calc(100dvh - 48px); }
}

@media (max-width: 767px) {
  .responsive-table > tbody { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .dashboard-shell, .dashboard-shell.sidebar-collapsed { display: block; }
  .sidebar, .dashboard-shell.sidebar-collapsed .sidebar { display: contents; }
  .sidebar .brand, .dashboard-shell.sidebar-collapsed .sidebar .brand { display: none; }
  .nav {
    position: fixed; inset: auto 0 0; z-index: 30;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
  }
  .nav-item, .dashboard-shell.sidebar-collapsed .nav-item {
    flex-direction: column; height: 56px; gap: 5px; padding: 6px 0;
    font-size: 11px; border-radius: 10px;
  }
  .topbar { min-height: 56px; padding: 8px 16px; }
  .workspace-select { border: 0; background: transparent; padding: 0; box-shadow: none; }
  .workspace-select > span { font-weight: 700; }
  .account-chip > span:nth-child(2) { display: none; }
  .workspace { padding: 16px 12px calc(92px + env(safe-area-inset-bottom)); }
  .toolbar { padding: 12px 14px; border-radius: 16px; }
  .toolbar-spacer { display: none; }
  .toolbar .title-row { flex: 1; min-width: 0; }
  .toolbar .title-row strong { font-size: 18px; }
  .toolbar > .button-row { width: auto; }
  .toolbar > .button-row .button { width: auto; }
  .toolbar .mini-pills { order: 3; width: 100%; }
  .panel-header { padding: 16px; }
  .panel-body { padding: 12px; }
  .panel-title { font-size: 16px; }
  .toolbar-actions { width: 100%; margin: 0; }
  .toolbar-actions > .button.primary { width: 100%; }
  .toolbar-actions .excel-actions { flex: 1; }
  .button-row { width: auto; }
  .button-row .button { flex: 1; }
  .button { padding-inline: 12px; }
  .dashboard-date-filter { order: 3; }
  .dashboard-date-filter__actions { width: 100%; }
  .dashboard-toolbar-refresh { margin-left: auto; }
  .responsive-table > tbody > tr { padding: 16px; }
  .dashboard-report-group-table.responsive-table > tbody > tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip { padding: 12px; }
  .summary-strip--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .summary-strip--three .metric { padding: 4px; }
  .summary-strip--three .metric-value { font-size: 18px; }
  .modal-backdrop { padding: 0; }
  .modal-card { max-height: 100dvh; border-radius: 20px 20px 0 0; }
  .modal-backdrop { align-items: end; }
  #meeting-modal .modal-card, #keyword-modal .modal-card, #recipient-modal .modal-card {
    height: 100dvh; border: 0; border-radius: 0;
  }
  .modal-header { position: sticky; top: 0; z-index: 2; background: var(--panel); padding: 18px 16px; }
  .meeting-config-modal__header { gap: 8px; }
  .meeting-config-modal__footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .meeting-config-modal__footer .button-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .meeting-config-section { padding: 18px 16px; }
  .meeting-config-modal__footer p { font-size: 12px; }
  #keyword-form > .button-row, .recipient-form-actions {
    position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--panel);
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .checkbox-field { min-height: 44px; }
  .checkbox-field input { width: 20px; height: 20px; }
  .meeting-stt-grid .panel-header .button-row { width: 100%; }
}

/* Assembly monitoring shares a video-only player on both viewing surfaces. */
.assembly-playback { min-width: 0; }
.assembly-playback__toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-bottom: 10px; font-size: 12px;
}
.assembly-playback__status { color: var(--muted); margin-right: auto; }
.assembly-playback__quality {
  width: auto; min-width: 78px; max-width: 100%; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text);
}
.assembly-playback__toolbar .button { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.assembly-playback__message { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.assembly-playback__viewport { min-width: 0; background: #0f172a; border-radius: 12px; overflow: hidden; }
.assembly-video-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #0f172a; }
.assembly-source-frame { display: block; width: 100%; height: clamp(420px, 65dvh, 760px); border: 0; background: #fff; }
.meeting-monitor-help { margin: 0 16px 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.meeting-broadcast-notice { flex: none; margin: 0; padding: 10px 14px; color: var(--text); background: var(--accent-soft); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.meeting-monitor-help summary, .meeting-monitor-diagnostics summary { cursor: pointer; padding: 4px 0; }
.meeting-monitor-help p { margin: 6px 0 0; }
.meeting-monitor-diagnostics { color: var(--muted); font-size: 12px; }
.meeting-monitor-diagnostics .meeting-stt-debug { margin-top: 8px; }

#stt-page[data-source-type="assembly"] { gap: 12px; }
#stt-page[data-source-type="assembly"] > .toolbar { padding: 12px 16px; gap: 10px; }
#stt-page[data-source-type="assembly"] > .toolbar .title-row { min-width: 0; flex-wrap: wrap; gap: 8px; }
#stt-page[data-source-type="assembly"] #meeting-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#stt-page[data-source-type="assembly"] .summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 14px; gap: 10px; }
#stt-page[data-source-type="assembly"] .metric { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; padding: 0; }
#stt-page[data-source-type="assembly"] .metric-label { margin: 0; }
#stt-page[data-source-type="assembly"] .metric-value { font-size: 15px; letter-spacing: 0; }
#stt-page[data-source-type="assembly"] .meeting-stt-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
#stt-page[data-source-type="assembly"] .meeting-stt-grid > .panel-card { min-width: 0; }
#stt-page[data-source-type="assembly"] .panel-header { min-height: 64px; padding: 12px 16px; flex-wrap: wrap; }
#stt-page[data-source-type="assembly"] .panel-header > div:first-child { min-width: 0; }
#stt-page[data-source-type="assembly"] #meeting-url { max-width: 100%; overflow-wrap: anywhere; font-size: 11px; }
#stt-page[data-source-type="assembly"] #player-panel { padding: 12px; }
#stt-page[data-source-type="assembly"] .meeting-stt-transcript-list { height: clamp(280px, calc(100dvh - 300px), 760px); max-height: none; padding: 12px; }
#stt-page[data-source-type="assembly"] .meeting-stt-transcript p,
#live-monitor-modal[data-source-type="assembly"] .meeting-stt-transcript p { font-size: 16px; line-height: 1.75; }

.meeting-monitor-focused { overflow: hidden; }
#stt-page.meeting-monitor-focus {
  position: fixed; inset: 12px; z-index: 40; padding: 16px;
  display: flex; flex-direction: column; overflow: auto; background: var(--bg);
  border: 1px solid var(--line); border-radius: 18px;
}
#stt-page.meeting-monitor-focus .meeting-stt-grid { flex: 1; min-height: 0; }
#stt-page.meeting-monitor-focus #meeting-url { display: none; }
#stt-page.meeting-monitor-focus .meeting-stt-transcript-list { height: calc(100dvh - 260px); }
#stt-page.meeting-monitor-focus .assembly-video-player { max-height: calc(100dvh - 250px); }

@media (min-width: 951px) {
  #stt-page.meeting-monitor-focus .meeting-stt-grid { align-items: stretch; }
  #stt-page.meeting-monitor-focus .meeting-stt-grid > .panel-card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  #stt-page.meeting-monitor-focus .panel-header,
  #stt-page.meeting-monitor-focus .meeting-monitor-help { flex: none; }
  #stt-page.meeting-monitor-focus #player-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; }
  #stt-page.meeting-monitor-focus .assembly-playback { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  #stt-page.meeting-monitor-focus .assembly-playback__toolbar,
  #stt-page.meeting-monitor-focus .assembly-playback__message { flex: none; }
  #stt-page.meeting-monitor-focus .assembly-playback__viewport { display: flex; flex: 1; min-height: 0; }
  #stt-page.meeting-monitor-focus .assembly-video-player { height: 100%; aspect-ratio: auto; max-height: none; }
  #stt-page.meeting-monitor-focus #player-panel[data-playback-mode="original"] .assembly-playback__viewport { flex: none; }
  #stt-page.meeting-monitor-focus .meeting-stt-transcript-list { flex: 1; min-height: 0; height: auto; }
}

/* Keep the video and captions usable when browser chrome leaves little height.
   The expanded page scrolls instead of compressing the video controls. */
@media (min-width: 951px) and (max-height: 650px) {
  #stt-page.meeting-monitor-focus > .toolbar,
  #stt-page.meeting-monitor-focus > .summary-strip { flex: none; }
  #stt-page.meeting-monitor-focus .meeting-stt-grid { flex: none; height: auto; min-height: min-content; }
  #stt-page.meeting-monitor-focus .meeting-stt-grid > .panel-card { overflow: visible; }
  #stt-page.meeting-monitor-focus #player-panel { flex: none; overflow: visible; }
  #stt-page.meeting-monitor-focus .assembly-playback { flex: none; }
  #stt-page.meeting-monitor-focus .assembly-playback__viewport { flex: none; }
  #stt-page.meeting-monitor-focus .assembly-video-player { height: auto; aspect-ratio: 16 / 9; max-height: none; }
  #stt-page.meeting-monitor-focus .meeting-stt-transcript-list { flex: none; height: 380px; }
}

#live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal {
  width: min(96vw, 1800px); height: 94dvh; max-height: 94dvh; overflow: hidden;
}
#live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal > .modal-header { padding: 12px 16px; gap: 10px; }
#live-monitor-modal[data-source-type="assembly"] #live-monitor-modal-title { word-break: keep-all; }
#live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__body { flex: 1; min-height: 0; padding: 14px; overflow: hidden; }
#live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__grid { height: 100%; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 14px; }
#live-monitor-modal[data-source-type="assembly"] .panel-header { min-height: 60px; padding: 12px 14px; }
#live-monitor-modal[data-source-type="assembly"] #live-monitor-meeting-url { overflow-wrap: anywhere; font-size: 11px; }
#live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__player { padding: 12px; }
#live-monitor-modal[data-source-type="assembly"] .meeting-source-actions { padding: 0 12px 12px; }
#live-monitor-modal[data-source-type="assembly"] .meeting-stt-transcript-list.meeting-live-monitor-modal__transcript-scroll { flex: 1; min-height: 0; max-height: none; }

@media (max-width: 950px) {
  #stt-page[data-source-type="assembly"] .meeting-stt-grid,
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__body { overflow-y: auto; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__panel { min-height: 0; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__player { flex: none; overflow: visible; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-stt-transcript-list.meeting-live-monitor-modal__transcript-scroll { height: 380px; flex: none; }
}
@media (max-width: 640px) {
  #stt-page[data-source-type="assembly"] > .toolbar .button-row { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #stt-page[data-source-type="assembly"] .summary-strip { padding: 8px; gap: 4px; }
  #stt-page[data-source-type="assembly"] .metric { gap: 4px; flex-direction: column; }
  #stt-page[data-source-type="assembly"] .metric-value { font-size: 13px; }
  #stt-page[data-source-type="assembly"] .panel-header .button-row { display: flex; flex-wrap: wrap; gap: 6px; }
  #stt-page[data-source-type="assembly"] .panel-header .button { padding-inline: 8px; font-size: 12px; }
  #stt-page.meeting-monitor-focus { inset: 0; padding: 12px 8px; border: 0; border-radius: 0; }
  #stt-page.meeting-monitor-focus .meeting-stt-transcript-list { height: 380px; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal > .modal-header { position: static; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__actions { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__actions .button { flex: none; font-size: 12px; padding: 6px 9px; }
  #live-monitor-modal[data-source-type="assembly"] .meeting-live-monitor-modal__body { padding: 10px; }
}
