:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #243a36;
  background: #f7f8fa;
  font-synthesis: none;
  --green: #174f49;
  --muted: #7c8785;
  --border: #e7ebe9;
  --lime: #e0f4b0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8fbfaf;
  outline-offset: 4px;
}
input,
textarea,
select {
  border: 1px solid #dce3df;
  border-radius: 9px;
  background: white;
  color: #243a36;
  padding: 12px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #52897c;
  box-shadow: 0 0 0 3px #52897c18;
}
button {
  border: 0;
}
a {
  color: inherit;
}
p {
  line-height: 1.65;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 236px;
  background: #fff;
  border-right: 1px solid var(--border);
  height: 100dvh;
  position: fixed;
  display: flex;
  flex-direction: column;
  padding: 38px 20px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.8px;
  text-decoration: none;
  padding: 0 15px;
}
.brand span {
  font-size: 12px;
  color: #8aab71;
  margin-left: -9px;
  align-self: flex-end;
  margin-bottom: 7px;
}
.workspace-label {
  font-size: 9px;
  font-weight: 700;
  color: #99a3a0;
  letter-spacing: 1.8px;
  margin: 48px 16px 18px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 13px;
  border-radius: 8px;
  background: transparent;
  color: #76807d;
  text-align: left;
  font-size: 13px;
  margin-bottom: 7px;
}
.nav-item > span {
  font-size: 21px;
  width: 20px;
}
.nav-item.active {
  background: #edf3ef;
  color: var(--green);
  font-weight: 600;
}
.nav-item b {
  margin-left: auto;
  font-size: 10px;
  background: white;
  padding: 3px 7px;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 14px;
  background: #f7f8f3;
  border: 1px solid #edf0e7;
  border-radius: 12px;
}
.sidebar-bottom strong {
  display: block;
  font-size: 12px;
  margin: 13px 0 8px;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #859083;
  margin: 0 0 14px;
}
.local-icon {
  font-size: 25px;
  color: #54794f;
}
.text-button {
  padding: 5px 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 22px 8px 0;
  font-size: 12px;
  font-weight: 600;
}
.profile > span {
  background: #f0ede5;
  border-radius: 50%;
  padding: 11px 8px;
  font-size: 10px;
  color: #877a61;
}
.profile small {
  display: block;
  color: #929994;
  font-size: 10px;
  font-weight: 400;
  margin-top: 5px;
}
main {
  margin-left: 236px;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 45px;
  font-size: 11px;
  background: #fff9;
}
.breadcrumb {
  color: #88928f;
}
.breadcrumb span {
  margin: 0 13px;
  color: #bcc4c0;
}
.breadcrumb strong {
  color: #53645e;
  font-weight: 500;
}
.connection {
  font-size: 10px;
  color: #829087;
}
.connection:first-letter {
  color: #74a884;
}
.mobile-settings {
  display: none;
}
.content {
  max-width: 1260px;
  margin: auto;
  padding: 46px 46px 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #7f958c;
}
.heading h1 {
  font-size: 39px;
  letter-spacing: -1.8px;
  font-weight: 600;
  margin: 12px 0 11px;
}
.heading h1 span {
  color: #649379;
}
.heading p {
  color: #84918b;
  font-size: 12px;
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 11px 17px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.secondary {
  background: #fff;
  border: 1px solid #dfe5e1;
  color: #42574e;
}
.secondary:hover {
  background: #f1f6f2;
}
.primary {
  background: var(--green);
  color: white;
}
.recorder-card {
  background: var(--green);
  border-radius: 16px;
  color: white;
  padding: 24px 30px 0;
  overflow: hidden;
  box-shadow: 0 10px 25px #174f490c;
}
.recorder-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  border: 1px solid #ffffff28;
  background: #ffffff0a;
  border-radius: 30px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #d7e9df;
}
.pill i {
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
}
.quality-label {
  font-size: 10px;
  color: #b6d0c5;
}
.recorder-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
  padding: 33px 0 30px;
}
.record-intro h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 500;
  margin-bottom: 12px;
}
.record-intro p {
  font-size: 12px;
  color: #bbd0c7;
  margin-bottom: 18px;
}
.record-intro input {
  width: 100%;
  background: #ffffff0a;
  border-color: #ffffff22;
  color: white;
  font-size: 11px;
  padding: 11px;
}
.record-intro input::placeholder {
  color: #aec7bc;
}
.quality-select {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbd0c7;
  font-size: 10px;
  margin-top: 10px;
}
.quality-select select {
  font-size: 10px;
  background: #174f49;
  color: #d2e0da;
  border-color: #ffffff22;
  padding: 6px;
  max-width: 190px;
}
.record-center {
  text-align: center;
  min-width: 0;
}
canvas {
  width: 100%;
  height: 64px;
  display: block;
}
.timer {
  font-size: 31px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 3px;
  font-weight: 400;
  margin: 4px 0 17px;
}
.record-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}
.record-button {
  background: var(--lime);
  color: #234a38;
  padding: 14px 22px;
  border-radius: 9px;
}
.record-button:hover {
  background: #ecffbd;
}
.record-dot {
  width: 12px;
  height: 12px;
  border: 3px solid #234a38;
  border-radius: 50%;
}
.recording .record-dot {
  border-radius: 2px;
  background: #234a38;
}
.recording .pill i {
  background: #ffb798;
  animation: pulse 1.5s infinite;
}
.record-caption {
  display: block;
  font-size: 9px;
  color: #a5c0b4;
  margin-top: 13px;
}
.recorder-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #ffffff16;
  padding: 16px 0;
  font-size: 9px;
  color: #a7c3b6;
}
.recorder-footer strong {
  font-weight: 500;
  color: #d3e1da;
}
.workflow-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0f2e9;
  border: 1px solid #e6eadd;
  border-radius: 10px;
  margin-top: 19px;
  padding: 16px 20px;
}
.workflow-icon {
  background: #e4ead8;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 23px;
  color: #71804e;
}
.workflow-strip strong {
  font-size: 11px;
  color: #506148;
}
.workflow-strip p {
  font-size: 10px;
  color: #8a927e;
  margin: 5px 0 0;
}
.workflow-strip button {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  color: #6a7951;
}
.library {
  margin-top: 39px;
}
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.library-heading h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 0;
}
.library-heading h2 span {
  display: inline-block;
  background: #e9ede9;
  color: #7f8b82;
  font-size: 10px;
  vertical-align: middle;
  border-radius: 6px;
  padding: 4px 7px;
  margin-left: 7px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid #e1e6e2;
  border-radius: 8px;
  background: white;
  color: #92a097;
  padding-left: 12px;
}
.search input {
  border: 0;
  background: transparent;
  font-size: 10px;
  width: 198px;
}
.search span {
  font-size: 22px;
}
.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
  margin-bottom: 16px;
}
.filter {
  font-size: 10px;
  padding: 8px 12px;
  color: #849089;
  background: transparent;
  border-radius: 6px;
}
.filter.active {
  color: #355f4d;
  background: #e9f0eb;
  font-weight: 600;
}
.sort-label {
  margin-left: auto;
  font-size: 9px;
  color: #97a099;
}
.empty {
  background: white;
  border: 1px dashed #dce5dd;
  border-radius: 12px;
  padding: 35px 20px;
  text-align: center;
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: #f1f5ed;
  color: #7f9b70;
  border-radius: 15px;
  font-size: 27px;
}
.empty h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}
.empty p {
  font-size: 11px;
  color: #89968d;
  margin-bottom: 13px;
}
.recording-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 9px;
  width: 100%;
  text-align: left;
  color: inherit;
}
.recording-row:hover {
  border-color: #a4bcaf;
  box-shadow: 0 3px 14px #174f4907;
}
.recording-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  background: #edf2eb;
  border-radius: 10px;
  color: #65816a;
  font-size: 22px;
  flex-shrink: 0;
}
.recording-info {
  flex: 1;
  min-width: 0;
}
.recording-info strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.recording-info small {
  display: block;
  font-size: 10px;
  color: #929d96;
  margin-top: 7px;
}
.recording-badge {
  font-size: 9px;
  color: #7c8d7b;
  background: #f3f6f0;
  border-radius: 5px;
  padding: 6px 9px;
}
.row-arrow {
  color: #8c9e90;
  font-size: 20px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 20px 0;
  font-size: 9px;
  color: #a2aaa4;
}
.page-footer span:last-child {
  font-size: 7px;
  letter-spacing: 1.4px;
}
dialog {
  border: 1px solid #e1e6df;
  border-radius: 18px;
  width: min(650px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 27px;
  color: #243a36;
  box-shadow: 0 30px 100px #102f3838;
}
dialog::backdrop {
  background: #12352d80;
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}
.dialog-header h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  margin: 0;
}
.icon-button {
  background: #f2f5f1;
  color: #65796c;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
dialog label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
dialog input,
dialog select,
dialog textarea {
  width: 100%;
  font-size: 14px;
}
dialog textarea {
  resize: vertical;
  line-height: 1.65;
}
dialog p {
  font-size: 13px;
}
dialog h3 {
  margin: 24px 0 10px;
  font-size: 15px;
}
.detail-meta {
  font-size: 11px;
  color: #829087;
  margin: 12px 0;
}
audio {
  width: 100%;
  margin: 10px 0;
}
.detail-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 22px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
}
.section-label label {
  margin: 0;
}
.small {
  font-size: 11px !important;
}
.muted {
  color: #839087;
}
.dialog-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 0;
}
.danger {
  color: #a9554b;
}
.notice {
  background: #f0f3e7;
  border: 1px solid #e3e8d8;
  border-radius: 8px;
  padding: 12px;
  line-height: 1.6;
  font-size: 12px;
  margin: 14px 0;
}
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.format-grid article {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #f9fbf7;
}
.format-grid article > span {
  font-size: 25px;
  color: #719072;
}
.format-grid h3 {
  margin: 12px 0 7px;
}
.format-grid p {
  font-size: 12px;
  margin: 0;
  color: #82917e;
}
#toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  width: max-content;
  background: #263f35;
  color: white;
  z-index: 10;
  padding: 14px 20px;
  box-shadow: 0 6px 25px #0002;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (min-width: 1450px) {
  .content {
    padding-top: 58px;
  }
  .recorder-body {
    padding: 46px 0;
  }
  .heading h1 {
    font-size: 44px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 13px 18px;
  }
  main {
    margin-left: 200px;
  }
  .content {
    padding: 32px 28px 0;
  }
  .topbar {
    padding: 0 28px;
  }
  .recorder-body {
    gap: 22px;
  }
  .record-intro h2 {
    font-size: 20px;
  }
  .record-caption {
    font-size: 8px;
  }
  .sort-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  main {
    margin-left: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
    padding-top: env(safe-area-inset-top);
  }
  .breadcrumb {
    font-size: 10px;
  }
  .connection {
    margin-left: auto;
    font-size: 9px;
  }
  .mobile-settings {
    display: block;
    margin-left: 13px;
    background: none;
    font-size: 21px;
    color: #5c7568;
  }
  .content {
    padding: 29px 18px 0;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
    gap: 18px;
  }
  .heading h1 {
    font-size: 34px;
    margin-top: 12px;
  }
  .heading p {
    font-size: 12px;
  }
  .heading > .button {
    font-size: 11px;
    padding: 9px 13px;
    min-height: 38px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .recorder-card {
    padding: 19px 20px 0;
    border-radius: 13px;
  }
  .quality-label {
    font-size: 8px;
  }
  .pill {
    font-size: 7px;
  }
  .recorder-body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 27px 0 23px;
  }
  .record-intro h2 {
    font-size: 22px;
  }
  .record-intro p br {
    display: none;
  }
  .record-intro p {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .record-intro input {
    font-size: 16px;
    padding: 10px;
  }
  .quality-select {
    font-size: 10px;
  }
  .quality-select select {
    font-size: 12px;
    max-width: none;
    flex: 1;
  }
  .record-center {
    padding: 0 5px;
  }
  canvas {
    height: 55px;
  }
  .timer {
    font-size: 34px;
  }
  .record-button {
    font-size: 13px;
    min-height: 49px;
    padding: 14px 23px;
  }
  .record-caption {
    font-size: 10px;
  }
  .recorder-footer {
    flex-direction: column;
    gap: 7px;
    font-size: 9px;
    padding: 14px 0;
  }
  .workflow-strip {
    padding: 14px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .workflow-strip > div:nth-child(2) {
    flex: 1;
  }
  .workflow-strip p {
    line-height: 1.6;
  }
  .workflow-strip button {
    margin-left: 45px;
  }
  .library {
    margin-top: 29px;
  }
  .library-heading {
    flex-wrap: wrap;
    gap: 15px;
  }
  .library-heading h2 {
    font-size: 18px;
  }
  .search {
    width: 100%;
  }
  .search input {
    font-size: 16px;
    width: 100%;
    padding: 10px;
  }
  .filter-row {
    gap: 3px;
    padding: 15px 0 13px;
  }
  .filter {
    font-size: 10px;
    padding: 9px 10px;
  }
  .page-footer span:last-child {
    display: none;
  }
  .empty {
    padding: 29px 15px;
  }
  .recording-row {
    padding: 14px 12px;
    gap: 10px;
  }
  .recording-badge {
    max-width: 95px;
    font-size: 8px;
  }
  .recording-info small {
    font-size: 9px;
  }
  .recording-info strong {
    font-size: 12px;
  }
  dialog {
    padding: 20px;
    max-height: 92dvh;
  }
  dialog input,
  dialog textarea,
  dialog select {
    font-size: 16px;
  }
  .dialog-header h2 {
    font-size: 20px;
  }
  .detail-tools .button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .section-label .text-button {
    font-size: 11px;
  }
  .format-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

/* Readable secondary text and comfortable touch targets. */
.breadcrumb,
.connection,
.eyebrow,
.heading p,
.filter,
.sort-label,
.page-footer,
.detail-meta,
.muted,
.empty p,
.recording-info small,
.recording-badge,
.library-heading h2 span,
.workspace-label,
.profile small,
.sidebar-bottom p,
.format-grid p {
  color: #5e7167;
}
.workflow-strip p,
.workflow-strip button {
  color: #586844;
}
.breadcrumb span {
  color: #65766d;
}
input::placeholder,
textarea::placeholder {
  color: #68786e;
  opacity: 1;
}
.record-intro input::placeholder {
  color: #c4d7cd;
}
@media (max-width: 760px) {
  .record-intro p,
  .workflow-strip p,
  .recording-info small,
  .record-caption,
  .recorder-footer {
    font-size: 12px;
  }
  .workflow-strip strong,
  .workflow-strip button,
  .filter,
  .recording-badge,
  .text-button {
    font-size: 12px;
  }
  .workflow-strip {
    display: grid;
    grid-template-columns: 35px 1fr;
  }
  .workflow-strip button {
    grid-column: 2;
    margin: 0;
    justify-self: start;
    min-height: 38px;
  }
  .filter {
    min-height: 44px;
    padding: 9px;
  }
  .icon-button,
  .mobile-settings {
    min-width: 44px;
    min-height: 44px;
  }
  .recording-badge {
    font-size: 10px;
  }
  .recording-info small {
    font-size: 11px;
    line-height: 1.5;
  }
}

/* Puerta de entrada: cubre la app hasta que hay sesión. */
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f8fa;
}
.gate[hidden] {
  display: none;
}
.gate-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow: 0 18px 48px -32px rgba(23, 79, 73, 0.45);
}
.gate-card h1 {
  font-size: 34px;
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
}
.gate-card h1 span {
  color: var(--lime);
  -webkit-text-stroke: 1px var(--green);
}
.gate-card > p {
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 14px;
}
.gate-card .button {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}
.gate-card .small {
  margin: 16px 0 0;
}
.gate-card .eyebrow {
  margin-top: 6px;
}

/* Progreso de la transcripción mientras se graba. */
.record-progress {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.01em;
}
.live-transcript {
  margin-top: 14px;
  max-height: 190px;
  overflow-y: auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #2f4a45;
}
.live-transcript[hidden] {
  display: none;
}
.live-transcript p {
  margin: 0 0 10px;
}
.live-transcript p:last-child {
  margin-bottom: 0;
}
.live-transcript b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.live-transcript .gap {
  color: #9a5b2c;
  font-weight: 600;
}

/* El perfil pasó de div a botón: quita el aspecto de botón. */
button.profile {
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  text-align: left;
  font-family: inherit;
  color: inherit;
}
button.profile:hover strong {
  color: var(--green);
}
button.profile strong {
  display: block;
  font-size: 12px;
}

/* El logo es un PNG cuadrado: redondearlo lo hace leer como icono de app. */
.gate-card > img,
.brand img {
  border-radius: 22%;
  box-shadow: 0 6px 18px -10px rgba(23, 79, 73, 0.6);
}
.gate-card > img {
  border-radius: 24%;
}

/* ============================================================
   Pantalla de grabar: menos texto, un botón grande, y un pulso
   que crece con la voz real. Estos bloques van al final a
   propósito para ganarle a las reglas viejas de la tarjeta.
   ============================================================ */
.recorder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 40px 22px 34px;
  border-radius: 30px;
  background: radial-gradient(120% 90% at 50% 0%, #1c5c55 0%, var(--green) 55%, #103b36 100%);
  color: #eaf6e6;
  border: 0;
  box-shadow: 0 26px 60px -38px rgba(16, 59, 54, 0.9);
}
.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}
.stage canvas {
  display: block;
}
.stage-center {
  position: absolute;
  text-align: center;
  pointer-events: none;
}
.recorder-card .timer {
  font-size: 46px;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #f2fbe9;
  line-height: 1;
}
.recorder-card .state {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224, 244, 176, 0.72);
}
.recorder-card .record-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.recorder-card .record-button {
  min-width: 220px;
  min-height: 58px;
  justify-content: center;
  border-radius: 999px;
  background: var(--lime);
  color: #123f3a;
  border: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px -14px rgba(224, 244, 176, 0.75);
}
.recorder-card .record-button:hover {
  filter: brightness(1.05);
}
.recorder-card.recording .record-button {
  background: transparent;
  color: #eaf6e6;
  border: 1px solid rgba(234, 246, 230, 0.45);
  box-shadow: none;
  min-width: 150px;
  min-height: 46px;
  font-size: 14px;
  font-weight: 600;
}
.button.ghost {
  background: transparent;
  color: rgba(234, 246, 230, 0.85);
  border: 1px solid rgba(234, 246, 230, 0.28);
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
}
.recorder-card #record-title {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(234, 246, 230, 0.16);
  border-radius: 14px;
  padding: 13px 16px;
  color: #eaf6e6;
  font-size: 14px;
  text-align: center;
}
.recorder-card #record-title::placeholder {
  color: rgba(234, 246, 230, 0.45);
}
.recorder-card #record-title[hidden] {
  display: none;
}
.recorder-card .record-progress {
  margin: 0;
  color: rgba(224, 244, 176, 0.9);
  font-size: 12px;
  font-weight: 600;
}
.recorder-card .live-transcript {
  width: 100%;
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(234, 246, 230, 0.14);
  color: #e4f1e0;
}
.recorder-card .live-transcript b {
  color: rgba(224, 244, 176, 0.65);
}

.library-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.content {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 18px 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.topbar {
  justify-content: flex-end;
  gap: 12px;
  border-bottom: 0;
}
.library-heading h2 {
  font-size: 17px;
}

@media (max-width: 900px) {
  .recorder-card {
    padding: 30px 16px 26px;
    border-radius: 26px;
  }
  .recorder-card .timer {
    font-size: 40px;
  }
  .recorder-card .record-button {
    min-width: 100%;
  }
  .content {
    padding: 18px 14px 50px;
    gap: 24px;
  }
}
