:root {
  --bg0: #09090d;
  --bg1: #13121a;
  --panel: #151320;
  --panel-soft: #1b1730;
  --ink: #f5f3ff;
  --muted: #b8b2c8;
  --line: #332b44;
  --accent-a: #824cff;
  --accent-b: #1aaa6b;
  --shadow: rgba(0, 0, 0, 0.45);
  --ring: rgba(181, 148, 255, 0.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height: 100vh;
  line-height: 1.45;
}

.bg {
  position: fixed;
  inset: -120px;
  background:
    radial-gradient(900px 620px at 15% 10%, rgba(155, 112, 255, 0.22), transparent 62%),
    radial-gradient(900px 580px at 80% 12%, rgba(155, 112, 255, 0.15), transparent 64%),
    radial-gradient(900px 620px at 60% 90%, rgba(155, 112, 255, 0.10), transparent 66%);
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.shell { max-width: 1100px; margin: 0 auto; padding: 22px; position: relative; }
.shell-wide { max-width: 1220px; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 50px var(--shadow);
  margin-bottom: 16px;
  position: sticky;
  top: 10px;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(155, 112, 255, 0.28);
  box-shadow: 0 10px 26px rgba(155, 112, 255, 0.18);
}
.brand-name {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-sub { font-size: 0.92rem; color: var(--muted); margin-top: 2px; }

.mast-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick-nav button.active {
  border-color: rgba(155, 112, 255, 0.62);
  background: linear-gradient(135deg, rgba(155, 112, 255, 0.28), rgba(57, 191, 132, 0.24));
  box-shadow: 0 6px 20px rgba(155, 112, 255, 0.22);
}

.view { margin-bottom: 18px; }
.page-intro {
  margin: 0 0 14px;
  border: 1px solid rgba(155, 112, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(155, 112, 255, 0.12), rgba(57, 191, 132, 0.06)),
    rgba(155, 112, 255, 0.05);
  padding: 12px 14px 12px 16px;
  border-left: 4px solid rgba(181, 148, 255, 0.75);
}
.page-intro strong {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
}

.hero {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 60px var(--shadow);
}
.kicker {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--muted);
}
.hero-title {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.04;
}
.hero-sub { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 66ch; }
.hero-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 18px; }
.hero-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(155, 112, 255, 0.20);
  background: linear-gradient(180deg, rgba(155, 112, 255, 0.11), rgba(155, 112, 255, 0.03));
  border-radius: 16px;
  padding: 12px;
}
.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent-a), var(--accent-b));
  box-shadow: 0 0 0 4px rgba(155, 112, 255, 0.16);
}
.pill-title { font-weight: 700; }
.pill-sub { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

.auth-card { margin-top: 14px; max-width: 460px; margin-left: auto; margin-right: auto; }
.card-head h2 { margin: 0; font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif; }
.card-head .sub { margin-top: 4px; }

.auth-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin: 4px 0;
}
.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  background: rgba(155, 112, 255, 0.28);
}

.legal-inline {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.legal-inline a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-doc {
  max-width: 980px;
  margin: 0 auto;
}

.legal-doc h1 {
  margin-top: 0;
}

.legal-doc h2 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 16px;
}

body.auth-drawer-open {
  overflow: hidden;
}

.public-nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(10px);
}

.public-nav-brand {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #e5e7eb;
}

.public-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.public-nav-links a {
  color: #9ca3af;
  text-decoration: none;
}

.public-nav-links a:hover {
  color: #22d3ee;
}

.hero-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip {
  border: 1px solid rgba(34, 211, 238, 0.26);
  color: #c4f3fb;
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 6px 10px;
}

.hero-cta-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(124, 58, 237, 0.34);
  border-radius: 12px;
  padding: 10px 12px;
  color: #d5def1;
  background: rgba(124, 58, 237, 0.12);
}

.hero-cta-link:hover {
  color: #f4f7ff;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
}

.public-card {
  margin-top: 12px;
}

.public-bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #d4d9e3;
}

.public-bullets li {
  margin-bottom: 8px;
}

.template-lines p {
  margin: 0 0 8px;
  color: #d4d9e3;
}

.public-footer {
  margin-top: 14px;
}

.auth-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.auth-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 15, 0.76);
  backdrop-filter: blur(2px);
}

.auth-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(560px, 96vw);
  background: linear-gradient(180deg, #0b1220, #0f172a);
  border-left: 1px solid #1f2a44;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.46);
  padding: 14px;
  overflow-y: auto;
  animation: drawerIn 220ms ease;
}

.auth-drawer-panel .auth-card {
  margin-top: 10px;
  max-width: 100%;
}

@keyframes drawerIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 900px) {
  .public-nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-drawer-panel {
    width: 100%;
    border-left: none;
  }
}

.legal-consent-card {
  width: min(900px, 100%);
}

.legal-consent-copy {
  border: 1px solid rgba(155, 112, 255, 0.22);
  background: rgba(155, 112, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}

.legal-consent-copy p {
  margin: 0 0 8px;
}

.legal-consent-copy p:last-child {
  margin-bottom: 0;
}

.social-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff !important;
  color: #1f1f1f !important;
  border: 1px solid #dadce0 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.google-mark {
  width: 20px;
  height: 20px;
  display: inline-block;
  line-height: 0;
}
.google-mark svg {
  width: 20px;
  height: 20px;
  display: block;
}
.social-google:hover {
  background: #f8f9fa !important;
  border-color: #c7c9ce !important;
}
.social-google:focus-visible {
  outline: 2px solid rgba(66, 133, 244, 0.45) !important;
  outline-offset: 2px;
}

.auth-focus-field input {
  border-color: rgba(57, 191, 132, 0.55);
}
.auth-focus-field input:focus {
  border-color: rgba(57, 191, 132, 0.85);
  box-shadow: 0 0 0 4px rgba(57, 191, 132, 0.18);
}

.dash-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: end; }
.dash-title { margin: 6px 0 0; font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif; font-size: 1.8rem; }
.dash-status { display: flex; gap: 10px; }
.dash-head > div:first-child { min-width: 0; }
.dash-head .sub { max-width: 78ch; }
.status-chip { border: 1px solid rgba(155, 112, 255, 0.22); border-radius: 16px; padding: 10px 12px; background: rgba(155, 112, 255,0.06); min-width: 240px; }
.chip-label { color: var(--muted); font-size: 0.86rem; }
.chip-value { font-weight: 700; margin-top: 4px; }

.action-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 14px; }
.action-card {
  display: grid;
  gap: 8px;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(155, 112, 255, 0.25);
  background:
    radial-gradient(700px 200px at 10% 10%, rgba(155, 112, 255, 0.12), transparent 55%),
    radial-gradient(700px 220px at 90% 10%, rgba(155, 112, 255, 0.08), transparent 58%),
    var(--panel);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 18px 60px rgba(0,0,0,0.30);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.action-card:hover { transform: translateY(-2px); border-color: rgba(155, 112, 255, 0.58); box-shadow: 0 24px 65px rgba(0,0,0,0.36); }
.action-card.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.action-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(155, 112, 255, 0.28), rgba(57, 191, 132, 0.28));
  border: 1px solid rgba(155, 112, 255, 0.38);
  font-weight: 700;
  color: var(--ink);
}
.action-title { font-weight: 700; font-size: 1.12rem; font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif; }
.action-sub { color: var(--muted); }

.workspace-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 10px; }
.workspace-head {
  padding: 12px 14px;
  border: 1px solid rgba(155, 112, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(500px 180px at 0% 0%, rgba(57, 191, 132, 0.06), transparent 68%),
    radial-gradient(500px 180px at 100% 0%, rgba(155, 112, 255, 0.08), transparent 72%),
    rgba(255,255,255,0.01);
}
.workspace-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.personal-kpi-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.personal-kpi {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(155, 112, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(155, 112, 255, 0.09), rgba(20, 20, 30, 0.55));
}
.personal-kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.personal-kpi-value {
  margin: 6px 0 0;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}
.personal-usage-meter {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(155, 112, 255, 0.20);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(155, 112, 255, 0.06), rgba(14, 14, 20, 0.55));
}
.personal-usage-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.personal-usage-meter-percent {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.personal-usage-meter-track {
  margin-top: 8px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.personal-usage-meter-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(57, 191, 132, 0.95), rgba(240, 194, 75, 0.95));
  transition: width .18s ease;
}
.personal-usage-meter-fill.is-warn {
  background: linear-gradient(90deg, rgba(240, 194, 75, 0.95), rgba(255, 159, 67, 0.95));
}
.personal-usage-meter-fill.is-danger {
  background: linear-gradient(90deg, rgba(255, 159, 67, 0.95), rgba(255, 92, 122, 0.95));
}
.plan-compare-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plan-compare-sub {
  margin: 2px 0 0;
}
.plan-compare-col {
  border: 1px solid rgba(155, 112, 255, 0.20);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(155, 112, 255, 0.06), rgba(14, 14, 20, 0.55));
  display: grid;
  align-content: start;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.plan-compare-col.is-selected {
  border-color: rgba(57, 191, 132, 0.55);
  box-shadow: 0 0 0 1px rgba(57, 191, 132, 0.2) inset;
}
.plan-compare-col:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 112, 255, 0.36);
}
.plan-compare-col-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}
.plan-compare-col-head h3 {
  margin: 0;
  font-size: 1rem;
}
.plan-compare-price {
  margin: 8px 0 0;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-compare-minutes {
  margin: 4px 0 10px;
  color: var(--ink);
  font-weight: 600;
}
.plan-compare-col .sub {
  margin: 0 0 8px;
  line-height: 1.35;
}
.plan-compare-col .sub strong {
  color: rgba(230, 238, 255, 0.92);
}
.plan-compare-col .inline-actions {
  margin-top: auto !important;
  padding-top: 4px;
}
.plan-compare-col [data-plan-select] {
  width: 100%;
}
@media (max-width: 1100px) {
  .plan-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .plan-compare-grid {
    grid-template-columns: 1fr;
  }
  .subscription-actions-row select {
    min-width: 0;
    width: 100%;
  }
}
.workspace-rec-wrap {
  margin: 8px 0 10px;
  display: grid;
  gap: 8px;
  max-width: 980px;
}
.workspace-rec-controls {
  padding: 10px 12px;
  border: 1px solid rgba(155, 112, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(155, 112, 255, 0.08), rgba(14, 14, 20, 0.65));
}
.transcriptions-split {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}
.transcriptions-split > * { min-width: 0; }
.consult-row { cursor: pointer; }
.consult-row.is-selected td {
  background: rgba(155, 112, 255, 0.12) !important;
}
.text-copy-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}
.copy-target {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: 48px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2);
  opacity: 0.95;
  cursor: pointer;
}

input[type="date"]::-webkit-clear-button,
input[type="time"]::-webkit-clear-button,
input[type="datetime-local"]::-webkit-clear-button {
  filter: invert(1);
}

.reminder-detail-preview {
  display: grid;
  gap: 10px;
}

.reminder-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.reminder-preview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.reminder-preview-subject {
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.reminder-preview-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(8, 10, 16, 0.65);
  padding: 12px;
}
#transcriptionsDetailText,
#transcriptionsDetailSummary,
#tx,
#sum,
#sug {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.copy-corner {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  padding: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.copy-corner svg {
  display: block;
}
.copy-corner.is-copied {
  color: #b8ffd8;
  border-color: rgba(57, 191, 132, 0.62);
  background: rgba(57, 191, 132, 0.20);
}

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 12px; }
.tabs {
  padding: 8px;
  border: 1px solid rgba(155, 112, 255, 0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.015);
}
.tab-btn {
  border: 1px solid rgba(155, 112, 255, 0.26);
  background: rgba(155, 112, 255,0.08);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.tab-btn.active {
  border-color: rgba(155, 112, 255, 0.58);
  background: linear-gradient(135deg, rgba(155, 112, 255, 0.28), rgba(57, 191, 132, 0.24));
  box-shadow: 0 10px 30px rgba(155, 112, 255, 0.18);
}
.tab-btn.is-disabled {
  opacity: 0.5;
}
.tab-btn:hover:not(.active):not(.is-disabled) {
  border-color: rgba(155, 112, 255, 0.42);
  background: rgba(155, 112, 255,0.12);
}

.sub { margin: 0; color: var(--muted); }
.eyebrow { margin: 0; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.auth-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-recovery { margin-top: 10px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
[data-tab-panel="reminders"].grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 14px;
  align-items: start;
}
[data-tab-panel="reminders"] .card {
  min-width: 0;
}
[data-tab-panel="reminders"] .form,
[data-tab-panel="reminders"] label,
[data-tab-panel="reminders"] input,
[data-tab-panel="reminders"] select,
[data-tab-panel="reminders"] textarea {
  min-width: 0;
  max-width: 100%;
}
[data-tab-panel="reminders"] .inline-actions {
  flex-wrap: wrap;
}
.card {
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(155, 112, 255, 0.10), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 18px 60px var(--shadow);
  animation: enter 260ms ease both;
  transition: border-color 140ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.card h2, .card h3 { margin: 0 0 8px; font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif; }
.view .card:hover {
  border-color: rgba(155, 112, 255, 0.28);
  box-shadow: 0 22px 70px rgba(0,0,0,0.38);
}
@keyframes enter {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.form { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: .92rem; }
.form > label,
.form > .inline-check { padding: 2px 0; }
.profile-form .profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.profile-form input[readonly] {
  opacity: 0.9;
  cursor: default;
}
@media (max-width: 900px) {
  .profile-form .profile-grid { grid-template-columns: 1fr; }
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
}
.inline-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
input, select, textarea, button { font: inherit; }
input, select, textarea {
  border: 1px solid rgba(155, 112, 255, 0.28);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(155, 112, 255,0.05);
  color: var(--ink);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: rgba(155, 112, 255, 0.62); box-shadow: 0 0 0 4px rgba(155, 112, 255, 0.16); }
select option {
  color: #14141a;
  background: #ffffff;
}
textarea { resize: vertical; min-height: 96px; }

button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, opacity 120ms ease;
  min-height: 40px;
}
button.primary { background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); }
button.secondary { background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); border: 1px solid rgba(155, 112, 255,0.40); }
button.ghost { background: rgba(155, 112, 255,0.08); color: var(--ink); border: 1px solid rgba(155, 112, 255,0.30); }
button.ghost.danger { border-color: rgba(155, 112, 255,0.44); color: var(--ink); }
button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17, 33, 85, 0.32); }
button:disabled,
button[disabled] { opacity: 0.55; cursor: not-allowed; }
button:disabled:hover,
button[disabled]:hover { transform: none; box-shadow: none; }

#consultStartRecBtn.is-recording,
#consultStartRecBtn.is-recording:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: translateY(1px);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.38);
  border-color: rgba(80, 52, 126, 0.75);
  background: linear-gradient(135deg, #5f4da4, #337f74);
}

a {
  color: #d7c4ff;
  text-underline-offset: 2px;
}
a:hover { color: #f0e8ff; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.stats-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.stats-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(155, 112, 255, 0.12);
}
.stats-head + .table-wrap { margin-top: 2px; }
.channel-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 10px 0 12px; }
.channel-card { border: 1px solid rgba(155, 112, 255,0.24); border-radius: 14px; background: rgba(155, 112, 255,0.05); padding: 10px; }
.channel-card h3 { margin: 0 0 6px; font-size: 1rem; }
.channel-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.channel-metrics span { font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.inline-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-filter { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.inline-filter select { padding: 6px 8px; min-width: 130px; }
.prefs-box {
  border: 1px dashed rgba(155, 112, 255, 0.34);
  border-radius: 12px;
  padding: 12px;
  background: rgba(155, 112, 255, 0.04);
}
.prefs-box h3 {
  margin: 0 0 6px;
}
.prefs-box .inline-actions {
  margin-top: 8px;
}
pre { background: rgba(11,11,15,0.76); border: 1px solid rgba(155, 112, 255,0.24); border-radius: 12px; padding: 12px; margin: 0; overflow: auto; white-space: pre-wrap; color: var(--ink); }
.subscription-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.subscription-main-card {
  margin-top: 12px;
  position: relative;
  overflow: clip;
}
.subscription-main-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  pointer-events: none;
  background:
    radial-gradient(55% 120% at 8% 0%, rgba(57, 191, 132, 0.10), transparent 72%),
    radial-gradient(60% 130% at 98% 8%, rgba(155, 112, 255, 0.10), transparent 76%);
}
.subscription-main-card > * { position: relative; }
.subscription-banner {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(155, 112, 255, 0.16);
  border-radius: 12px;
  background: rgba(155, 112, 255, 0.04);
}
.subscription-item {
  border: 1px solid rgba(155, 112, 255, 0.22);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(155, 112, 255, 0.05), rgba(20, 20, 30, 0.42));
  min-height: 74px;
}
.subscription-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
  letter-spacing: .02em;
}
.subscription-value {
  color: var(--ink);
  font-weight: 700;
  word-break: break-word;
}
.subscription-actions-row {
  margin: 4px 0 10px;
  padding: 10px;
  border: 1px solid rgba(155, 112, 255, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
}
.subscription-actions-row select {
  min-width: 220px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(155, 112, 255, 0.28);
  background: rgba(10, 11, 16, 0.75);
  color: var(--ink);
  padding: 0 10px;
}
.subscription-actions-row #activatePlanBtn {
  box-shadow: 0 8px 22px rgba(57, 191, 132, 0.16);
}
.subscription-plan-sheet { margin-top: 0; }
.subscription-plan-sheet .subscription-item {
  border-color: rgba(57, 191, 132, 0.20);
}
.subscription-plan-period {
  margin: -2px 0 4px;
}
.subscription-status-line {
  min-height: 1.25rem;
  margin-top: 6px;
}
.subscription-technical-details {
  margin-top: 6px;
  border-top: 1px dashed rgba(155, 112, 255, 0.18);
  padding-top: 4px;
}
.subscription-technical-details > summary {
  font-size: .88rem;
}
details > summary {
  cursor: pointer;
  color: var(--muted);
  margin-top: 10px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(155, 112, 255,0.20);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(155, 112, 255,0.04), rgba(18,18,26,0.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { border-bottom: 1px solid rgba(155, 112, 255,0.18); text-align: left; padding: 10px 9px; font-size: .9rem; vertical-align: top; }
th {
  color: var(--muted);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: rgba(14, 14, 20, 0.75);
  position: sticky;
  top: 0;
  z-index: 1;
}
tbody tr:nth-child(2n) td { background: rgba(155, 112, 255,0.025); }
.table-wrap table tr:hover td { background: rgba(155, 112, 255,0.08); }
.badge { border-radius: 999px; padding: 4px 8px; font-size: .78rem; font-weight: 700; }
.b-sent { background: rgba(57, 191, 132,0.22); color: var(--ink); border: 1px solid rgba(57, 191, 132,0.48); }
.b-failed { background: rgba(155, 112, 255,0.20); color: var(--ink); border: 1px solid rgba(155, 112, 255,0.42); }
.b-pending { background: rgba(155, 112, 255,0.14); color: var(--ink); border: 1px solid rgba(155, 112, 255,0.30); }
.b-progress,
.b-in-process {
  background: rgba(255, 166, 60, 0.22);
  color: #ffd8a8;
  border: 1px solid rgba(255, 166, 60, 0.62);
  animation: pulse-process 1.1s ease-in-out infinite;
}
.b-completed {
  background: rgba(57, 191, 132, 0.24);
  color: #b8ffd8;
  border: 1px solid rgba(57, 191, 132, 0.62);
}
.hidden { display: none; }

.upload-progress {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 166, 60, 0.32);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 166, 60, 0.08), rgba(255, 166, 60, 0.03));
}
.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.upload-progress-head .sub {
  margin: 0;
}
.upload-progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 166, 60, 0.18);
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 166, 60, 0.75), rgba(255, 214, 130, 0.95));
  box-shadow: 0 0 16px rgba(255, 166, 60, 0.24);
  transition: width 140ms linear;
}

.status-ok { color: #c9f6dc; }
.status-error { color: #ffd2e0; }
.reminders-history-card {
  grid-column: 1 / -1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(2px);
}
.modal-card {
  width: min(820px, 100%);
  max-height: min(78vh, 880px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  padding: 16px;
}
.modal-card.plan-compare-card {
  width: min(1180px, 96vw);
  max-height: min(86vh, 920px);
  border-color: rgba(155, 112, 255, 0.22);
}
.modal-card .stats-head {
  border-bottom-color: rgba(155, 112, 255, 0.16);
}
.modal.hidden {
  display: none;
}

/* Dashboard / login polish */
.hero {
  position: relative;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(57, 191, 132, 0.08), transparent 68%),
    radial-gradient(45% 60% at 100% 0%, rgba(155, 112, 255, 0.10), transparent 70%);
}
.hero > * { position: relative; }
.auth-card {
  border-color: rgba(155, 112, 255, 0.18);
}
.auth-card .card-head {
  margin-bottom: 6px;
}
.auth-recovery {
  padding-top: 8px;
  border-top: 1px dashed rgba(155, 112, 255, 0.18);
}
.action-grid { align-items: stretch; }
.action-card .action-sub { line-height: 1.35; }
#dashboardTenantCompactCard {
  border-color: rgba(57, 191, 132, 0.22);
  background:
    radial-gradient(400px 140px at 0% 0%, rgba(57, 191, 132, 0.08), transparent 65%),
    var(--panel);
}
#dashboardTenantSwitcherSection .card details > summary {
  margin-top: 0;
  font-weight: 700;
  color: rgba(230, 238, 255, 0.9);
}

/* Workspace / Mi actividad polish */
.workspace-rec-controls {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
#personalOpsCard .personal-kpi {
  border-color: rgba(57, 191, 132, 0.18);
  background:
    radial-gradient(260px 120px at 0% 0%, rgba(57, 191, 132, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(155, 112, 255, 0.06), rgba(20, 20, 30, 0.55));
}
#personalOpsCard {
  border-color: rgba(57, 191, 132, 0.18);
}
#personalOpsStatus {
  min-height: 1.2rem;
}

/* Admin panel polish */
#overviewKpis .personal-kpi {
  min-height: 96px;
}
#adminStatus {
  min-height: 1.2rem;
}
#grantSubscriptionResultBox,
#retentionResultBox,
#resetResultBox {
  margin-top: 10px;
  max-height: 260px;
}

/* Admin dashboard organization (single-column + collapsible cards) */
.admin-shell .grid {
  grid-template-columns: minmax(0, 1fr);
}
.admin-shell .grid > .card {
  grid-column: 1 / -1;
}
.admin-toolbar-card {
  margin-bottom: 2px;
}
.admin-internal-tabs .tab-btn.active {
  background: rgba(155, 112, 255, 0.24);
  border-color: rgba(155, 112, 255, 0.42);
}
.admin-card-collapsed > :not(.stats-head):not(h2):not(.admin-card-head) {
  display: none !important;
}
.admin-card-head {
  margin-bottom: 0;
}
.admin-shell .stats-head .inline-actions {
  flex-wrap: wrap;
}
.admin-shell .stats-head {
  align-items: flex-start;
}
.admin-shell .stats-head > h2 {
  margin-right: 8px;
}
.admin-card-toggle {
  margin-left: auto;
  flex: 0 0 auto;
}
.admin-monitor-filters {
  align-items: flex-end;
}

.recording-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(155, 112, 255, 0.28);
  background: rgba(155, 112, 255, 0.08);
}
.recording-indicator.is-active {
  border-color: rgba(255, 78, 78, 0.55);
  background: rgba(255, 78, 78, 0.10);
}
.recording-indicator.is-ready {
  border-color: rgba(255, 196, 74, 0.62);
  background: rgba(255, 196, 74, 0.14);
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 78, 78, 0.35);
}
.recording-indicator.is-active .rec-dot {
  background: #ff4e4e;
  box-shadow: 0 0 0 0 rgba(255, 78, 78, 0.65);
  animation: pulse-rec 1s ease-out infinite;
}
.recording-indicator.is-ready .rec-dot {
  background: #ffc44a;
  box-shadow: 0 0 0 0 rgba(255, 196, 74, 0.45);
  animation: none;
}
.rec-timer {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffd2d2;
  min-width: 48px;
  text-align: right;
}
.recording-indicator.is-ready .rec-timer {
  color: #ffe7a8;
}
.rec-wave {
  width: 100%;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(155, 112, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(155, 112, 255, 0.08), rgba(11, 11, 15, 0.4)),
    rgba(0, 0, 0, 0.2);
}

@keyframes pulse-rec {
  0% { box-shadow: 0 0 0 0 rgba(255, 78, 78, 0.55); transform: scale(1); }
  70% { box-shadow: 0 0 0 10px rgba(255, 78, 78, 0); transform: scale(1.1); }
  100% { box-shadow: 0 0 0 0 rgba(255, 78, 78, 0); transform: scale(1); }
}

@keyframes pulse-process {
  0% { box-shadow: 0 0 0 0 rgba(255, 166, 60, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(255, 166, 60, 0.02); }
  100% { box-shadow: 0 0 0 0 rgba(255, 166, 60, 0.14); }
}

@media (max-width: 980px) {
  .mast {
    position: static;
    backdrop-filter: none;
  }
  .quick-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .quick-nav button {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .transcriptions-split {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .shell { padding: 18px; }
  .card { padding: 16px; }

  .mast {
    border-radius: 16px;
    padding: 11px 12px;
  }
  .mast-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mast-actions > * {
    width: 100%;
  }

  .hero {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workspace-head {
    align-items: stretch;
  }
  .workspace-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .workspace-rec-controls .inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-tab-panel="reminders"].grid {
    grid-template-columns: 1fr;
  }

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

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .shell { padding: 14px; }
  .card { padding: 14px; }
  .grid { grid-template-columns: 1fr; }
  [data-tab-panel="reminders"].grid {
    grid-template-columns: 1fr;
  }
  .brand-sub { font-size: 0.84rem; }
  .page-intro { font-size: 0.92rem; }
  .status-chip { min-width: 0; width: 100%; }
  table { min-width: 680px; }

  .mast {
    border-radius: 14px;
    padding: 10px 12px;
  }
  .mast-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mast-actions > * {
    width: 100%;
  }

  .hero {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .hero-title { font-size: clamp(1.85rem, 8.5vw, 2.4rem); }
  .hero-sub { font-size: 0.98rem; }
  .hero-grid { grid-template-columns: 1fr; }

  .auth-card { max-width: 100%; }
  .auth-actions { width: 100%; }
  .auth-actions > * { width: 100%; }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
    min-height: 44px;
  }

  .action-grid { grid-template-columns: 1fr; }
  .action-card {
    border-radius: 16px;
    padding: 14px;
  }

  .workspace-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .workspace-rec-wrap,
  .tabs,
  .tab-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .grid.tab-panel {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .grid.tab-panel > .card {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }
  .grid.tab-panel > .card + .card {
    margin-top: 14px;
  }

  .tab-panel .card,
  .tab-panel .form,
  .tab-panel label,
  .tab-panel .inline-actions,
  .tab-panel .inline-filter,
  .tab-panel .prefs-box {
    min-width: 0;
    max-width: 100%;
  }

  .tab-panel input,
  .tab-panel select,
  .tab-panel textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .tab-panel .inline-actions > * ,
  .tab-panel .inline-filter > * {
    min-width: 0;
    max-width: 100%;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }
  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .workspace-rec-controls .inline-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .workspace-rec-controls .inline-actions button {
    width: 100%;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.quick-actions-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.quick-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 12px;
  margin: 8px 0 10px;
}
.quick-action-buttons { row-gap: 8px; }
.quick-suggestions-box {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.015);
}
.quick-reminder-composer {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.quick-composer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
@media (max-width: 900px) {
  .quick-contact-grid,
  .quick-composer-grid { grid-template-columns: 1fr; }
}
