
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 30px;
}

.hero-band h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.14;
}

.hero-band p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-grid button {
  display: grid;
  align-content: center;
  min-height: 130px;
  padding: 18px;
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
}

.metric-grid button:hover {
  background: #faf8f5;
  border-color: #d9d0c6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.metric-grid span {
  font-size: 34px;
  font-weight: 700;
}

.metric-grid strong {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-assets-panel {
  margin-top: 18px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.dashboard-assets-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.dashboard-assets-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.dashboard-assets-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.asset-filter-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 20px 0 12px;
  padding: 4px;
  background: #faf8f5;
  border: 1px solid #e5ddd3;
  border-radius: 8px;
}

.asset-filter-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.asset-filter-tabs button.active {
  background: #ffffff;
  color: var(--teal-dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.dashboard-asset-grid {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}

.dashboard-asset-row {
  display: grid;
  grid-template-columns: 76px minmax(220px, 1fr) minmax(170px, 220px) 110px auto 96px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
}

.dashboard-asset-row:hover {
  background: #faf8f5;
  border-color: #d9d0c6;
}

.asset-kind {
  display: inline-flex;
  justify-content: center;
  padding: 6px 8px;
  background: #f5eee6;
  border-radius: 6px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-asset-name,
.dashboard-asset-upload,
.dashboard-asset-size {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-asset-name strong,
.dashboard-asset-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-asset-name small,
.dashboard-asset-upload small,
.dashboard-asset-size small {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-asset-upload small {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.dashboard-asset-upload small b {
  flex: 0 0 auto;
  color: #796b5f;
}

.dashboard-asset-size b {
  font-size: 14px;
}

.dashboard-asset-open {
  min-height: 34px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.dashboard-asset-open:hover,
.dashboard-transcript-open:hover {
  background: #faf8f5;
  border-color: #d9d0c6;
}

.dashboard-transcript-preview {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #e5ddd3;
}

.dashboard-transcript-preview > strong {
  color: var(--teal-dark);
  font-size: 12px;
}

.dashboard-transcript-preview p {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-transcript-preview p.is-empty {
  color: var(--muted);
}

.dashboard-transcript-open {
  min-height: 34px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #d9d0c6;
  border-radius: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.nas-feature-band {
  margin-top: 18px;
  padding: 24px;
  background: #faf8f5;
  border: 1px solid #e5ddd3;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.nas-feature-band .section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.nas-feature-band .section-heading h3 {
  margin: 0;
  font-size: 24px;
}

.nas-feature-band .section-heading p:last-child {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.nas-feature-grid article {
  min-height: 154px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(137, 90, 60, 0.18);
  border-radius: 8px;
}

.nas-feature-grid strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 15px;
}

.nas-feature-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

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

.module-card {
  min-height: 132px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.module-card:hover {
  border-color: rgba(137, 90, 60, 0.55);
  transform: translateY(-1px);
}

.module-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.module-card span,
.hint-text,
.placeholder-band p {
  color: var(--muted);
  line-height: 1.6;
}

.record-layout {
  display: grid;
  gap: 18px;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.recorder-panel,
.activity-panel,
.placeholder-band,
.nas-upload-panel,
.nas-asset-list-panel,
.nas-asset-detail {
  padding: 24px;
}

.section-heading h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.record-title-field {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.record-title-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.recorder-console {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(420px, 1.3fr);
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 24px;
  background: #faf8f5;
  border: 1px solid #e5ddd3;
  border-radius: 8px;
}

.recorder-stage {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.record-pulse {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 14px rgba(0, 0, 0, 0.08);
}

.record-pulse.recording {
  background: var(--red);
  animation: pulse 1.25s ease-in-out infinite;
}

.record-pulse.paused {
  background: var(--amber);
}

@keyframes pulse {
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 22px rgba(185, 64, 58, 0.08);
  }
}

.recorder-stage strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 46px;
  line-height: 1;
}

.recorder-stage span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.recorder-command-area {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.record-button-row {
  flex-wrap: nowrap;
}

.record-button-row button {
  min-height: 48px;
  white-space: nowrap;
}

.record-hint {
  margin: 0;
  font-size: 13px;
}

.record-options {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 2px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.record-options > summary::-webkit-details-marker {
  display: none;
}

.record-options > summary::after {
  content: "+";
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #895a3c;
  background: white;
  border: 1px solid #e5ddd3;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.record-options[open] > summary::after {
  content: "−";
}

.record-options > summary span {
  display: grid;
  gap: 4px;
}

.record-options > summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.record-options-body {
  padding: 0 0 18px;
}

.record-options-body .asr-config-panel:first-child {
  margin-top: 0;
}

.database-browser-layout .activity-panel {
  min-height: 0;
}

.database-browser-layout .activity-feed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#recordPreview {
  width: 100%;
  margin-top: 16px;
}

.record-recovery-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  background: #fffaf5;
  border: 1px solid #ead8c8;
  border-radius: 8px;
}

.record-recovery-actions[hidden] {
  display: none;
}

.record-recovery-actions .hint-text {
  margin: 0;
}

.activity-feed {
  display: grid;
  gap: 10px;
}

.activity-item {
  padding: 14px;
  background: #faf8f5;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
}

.activity-item strong {
  display: block;
  margin-bottom: 4px;
}

.activity-item span {
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  width: min(420px, 100%);
}

.meeting-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.meeting-list {
  display: grid;
  gap: 10px;
}

.meeting-row {
  width: 100%;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.nas-upload-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.upload-progress {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  background: #faf8f5;
  border: 1px solid #e5ddd3;
  border-radius: 8px;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.upload-progress-head strong {
  color: var(--teal-dark);
  font-size: 13px;
}

.upload-progress-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.upload-progress progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #f5eee6;
}

.upload-progress progress::-webkit-progress-bar {
  background: #f5eee6;
  border-radius: 999px;
}

.upload-progress progress::-webkit-progress-value {
  background: var(--teal);
  border-radius: 999px;
}

.upload-progress progress::-moz-progress-bar {
  background: var(--teal);
  border-radius: 999px;
}

.asr-config-panel {
  display: grid;
  gap: 14px;
  padding: 15px;
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asr-config-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.asr-config-panel strong {
  color: var(--ink);
}

.asr-config-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.recorder-asr-panel {
  margin-top: 16px;
}

.translation-config-panel {
  margin-top: 12px;
  border-left: 4px solid var(--amber);
}

.line-push-config-panel {
  margin-top: 12px;
  border-left: 4px solid var(--teal);
}
