:root {
  --ui-bg: #e6e4fb;
  --ui-surface: #ffffff;
  --ui-surface-2: #f6f6ff;
  --ui-border: #e7e8f6;
  --ui-text: #1e2242;
  --ui-muted: #6b6f8f;
  --ui-primary: #4d5bff;
  --ui-primary-2: #3441d4;
  --ui-accent: #f2a365;
  --ui-success: #1fbf92;
  --ui-danger: #f05656;
  --ui-shadow: 0 20px 50px rgba(28, 35, 90, 0.18);
  --ui-shadow-soft: 0 10px 24px rgba(28, 35, 90, 0.12);
  --ui-radius: 22px;
  --ui-radius-sm: 14px;
  --ui-sidebar: #ffffff;
  --ui-sidebar-muted: #8c91b3;
  --ui-sidebar-active: #f1f2ff;
  --ui-topbar: #ffffff;
  --ui-grad: linear-gradient(140deg, #4d5bff 0%, #6a7bff 55%, #8fc4ff 100%);
  --ui-font: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  font-family: var(--ui-font);
  background: radial-gradient(circle at top left, rgba(77, 91, 255, 0.2), transparent 45%),
              radial-gradient(circle at bottom right, rgba(242, 163, 101, 0.16), transparent 55%),
              var(--ui-bg);
  color: var(--ui-text);
}

.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  padding: 24px;
  gap: 24px;
}

.app-sidebar {
  background: var(--ui-sidebar);
  color: var(--ui-text);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  border-radius: 26px;
  box-shadow: var(--ui-shadow-soft);
  overflow: hidden;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--ui-grad);
  box-shadow: var(--ui-shadow-soft);
}

.brand-text {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.nav-section {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--ui-sidebar-muted);
  margin: 8px 0 4px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  max-height: 100%;
  padding-right: 6px;
  flex: 1 1 auto;
  min-height: 0;
}

.nav-list,
.nav-list li {
  list-style: none;
}

.nav-list::-webkit-scrollbar {
  width: 6px;
}

.nav-list::-webkit-scrollbar-thumb {
  background: rgba(77, 91, 255, 0.25);
  border-radius: 999px;
}

.nav-list::-webkit-scrollbar-track {
  background: transparent;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3c4160;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link .material-icons {
  font-size: 20px;
}

.nav-link:hover {
  background: var(--ui-sidebar-active);
  color: var(--ui-primary);
}

.nav-link.active {
  background: var(--ui-sidebar-active);
  color: var(--ui-primary);
  box-shadow: inset 0 0 0 1px rgba(77, 91, 255, 0.15);
}

.nav-group {
  display: grid;
  gap: 2px;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  color: #3c4160;
  padding: 10px 14px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  outline: none;
}

.nav-group-toggle:focus,
.nav-group-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(77, 91, 255, 0.25);
}

.nav-group-toggle .material-icons:first-of-type {
  font-size: 20px;
  flex-shrink: 0;
}

.nav-group-label {
  flex: 1;
  min-width: 0;
}

.nav-chevron {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 22px !important;
  color: var(--ui-sidebar-muted);
  transition: color 0.2s ease;
}

.nav-group.is-open .nav-chevron {
  color: var(--ui-primary);
}

.nav-group-toggle:hover,
.nav-group.is-open > .nav-group-toggle,
.nav-group.has-active > .nav-group-toggle {
  background: var(--ui-sidebar-active);
  color: var(--ui-primary);
}

.nav-group.has-active > .nav-group-toggle {
  box-shadow: inset 0 0 0 1px rgba(77, 91, 255, 0.15);
}

.nav-sublist {
  list-style: none;
  padding: 2px 0 6px 0;
  margin: 0 0 0 22px;
  display: none;
  gap: 2px;
  border-left: 2px solid var(--ui-border);
}

.nav-sublist li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-group.is-open .nav-sublist {
  display: grid;
}

.nav-sublink {
  padding: 8px 12px 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
}

.nav-sublink .material-icons {
  font-size: 18px;
  opacity: 0.85;
}

.nav-sublink.active {
  background: var(--ui-sidebar-active);
  color: var(--ui-primary);
  box-shadow: none;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--ui-sidebar-muted);
  font-size: 12px;
}

.brand,
.nav-section,
.sidebar-footer {
  flex: 0 0 auto;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  background: var(--ui-topbar);
  padding: 18px 24px;
  box-shadow: var(--ui-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 24px;
  z-index: 50;
  border-radius: 22px;
}

.app-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steno-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.steno-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.steno-toggle label {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ui-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.steno-toggle input:checked + label {
  background: var(--ui-primary);
  color: #fff;
  box-shadow: var(--ui-shadow-soft);
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* background: var(--ui-primary); */
  color: var(--ui-primary);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: var(--ui-shadow-soft);
  transition: transform 0.2s ease;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* background: var(--ui-surface-2); */
  /* border-radius: 999px; */
  padding: 6px 12px;
  /* border: 1px solid var(--ui-border); */
  color: var(--ui-text);
  font-size: 13px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ui-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.logout-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.app-content {
  padding: 8px 4px 24px;
}

.content-card {
  background: var(--ui-surface);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  padding: 24px;
}

.app-content .container {
  max-width: 1200px;
  margin: 0;padding: 0;
}

.app-content .header {
  background: var(--ui-grad);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.app-content .header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.app-content .header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card,
.form-control,
.btn,
.alert {
  border-radius: var(--ui-radius-sm);
}

.card {
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-soft);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-body .form-control {
  width: 100%;
}

.table {
  background: var(--ui-surface);
}

.table thead th {
  background: var(--ui-surface-2);
  border-bottom: 1px solid var(--ui-border);
}

.form-control {
  border: 1px solid var(--ui-border);
  box-shadow: none;
}

.form-group {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  column-gap: 12px;
  height: 40px;
}

.form-group label {
  margin: 0;
}

.form-group .form-control,
.form-group .file-input-wrapper,
.form-group .file-name,
.form-group .form-text {
  grid-column: 2;
}

.form-group.form-stack {
  display: block;
    width: 100%;
    height: 32px;
    min-height: 32px;
}

.form-group.form-stack .form-control,
.form-group.form-stack .file-input-wrapper,
.form-group.form-stack .file-name,
.form-group.form-stack .form-text {
  grid-column: auto;
}

.form-group.form-stack .form-control,
.form-group.form-stack select {
  margin-top: 6px;
}

.form-group.form-stack img {
  margin-top: 8px;
  display: block;
}

/* Audio/PDF URL + file upload blocks (full width, stacked) */
.form-group.media-field-group {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  grid-template-columns: none;
}

.form-group.media-field-group label {
  display: block;
  margin-bottom: 8px;
}

.form-group.media-field-group .media-type-toggle {
  margin-bottom: 10px;
}

.form-group.media-field-group .media-input-wrap,
.form-group.media-field-group .media-input-wrap .form-control,
.form-group.media-field-group input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group.media-field-group .form-text {
  display: block;
  margin-top: 8px;
  grid-column: auto;
}

.form-actions,
.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.btn-success {
  background: var(--ui-success);
  border-color: var(--ui-success);
}

.btn-secondary {
  background: #e9edf8;
  border-color: #e9edf8;
  color: var(--ui-text);
}

.btn-secondary:hover {
  background: #dfe5f6;
  border-color: #dfe5f6;
  color: var(--ui-text);
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table td,
.table th {
  border: 1px solid var(--ui-border) !important;
}

.table tbody tr:nth-child(even) {
  background: transparent;
}

.btn-primary {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

.btn-primary:hover {
  background: var(--ui-primary-2);
  border-color: var(--ui-primary-2);
}

.page-grid {
  display: grid;
  gap: 24px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  background: var(--ui-surface);
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--ui-shadow-soft);
  border: 1px solid var(--ui-border);
  width: fit-content;
}

.tab-button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ui-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button.active {
  background: var(--ui-primary);
  color: #fff;
  box-shadow: var(--ui-shadow-soft);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.card-body {
  padding: 20px;
}

.table-scroll {
  max-height: 520px;
  overflow: auto;
  /* border-radius: var(--ui-radius-sm); */
  padding: 10px;
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
}

.table-scroll table {
  margin-bottom: 0;
}

.table-image {
  width: 140px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  background: #f1f2ff;
  border: 1px solid var(--ui-border);
}

.table-scroll img {
  width: 140px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  background: #f1f2ff;
  border: 1px solid var(--ui-border);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .app-sidebar {
    position: relative;
    height: auto;
    top: 0;
  }

  .app-topbar {
    top: 0;
  }
}

@media (max-width: 768px) {
  .form-group {
    grid-template-columns: 1fr;
  }
  .form-group .form-control,
  .form-group .file-input-wrapper,
  .form-group .file-name,
  .form-group .form-text {
    grid-column: 1;
  }
}

/* Login */
.login-body {
  --login-ink: #172554;
  --login-ink-soft: #263867;
  --login-paper: #f7f4ec;
  --login-paper-deep: #ebe5d8;
  --login-accent: #ff725e;
  --login-line: rgba(23, 37, 84, 0.13);
  margin: 0;
  min-width: 320px;
  background: var(--login-paper);
  color: var(--login-ink);
  font-family: "DM Sans", sans-serif;
}

.steno-login {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(420px, 0.72fr);
  overflow: hidden;
}

.steno-story {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(28px, 4vw, 58px) clamp(34px, 6vw, 88px) clamp(26px, 4vw, 50px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 114, 94, 0.34), transparent 26%),
    radial-gradient(circle at 12% 88%, rgba(78, 198, 194, 0.18), transparent 30%),
    var(--login-ink);
  color: #fff;
}

.steno-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 82%, transparent);
}

.steno-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(30vw, 430px);
  aspect-ratio: 1;
  right: -13%;
  bottom: -18%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 120px rgba(255, 255, 255, 0.02);
}

.steno-story__top,
.login-brand,
.steno-sheet__caption,
.steno-capabilities,
.login-control,
.login-submit,
.login-security {
  display: flex;
  align-items: center;
}

.steno-story__top {
  justify-content: space-between;
  gap: 24px;
  animation: login-fade-down 0.7s ease-out both;
}

.login-brand {
  gap: 16px;
  color: #fff;
  font-size: clamp(1.28rem, 1.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(4, 12, 39, 0.24);
}

.login-brand:hover {
  color: #fff;
  text-decoration: none;
}

.login-brand img,
.login-mobile-brand img {
  display: block;
  width: 56px;
  height: 56px;
  padding: 7px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 0 10px 28px rgba(4, 12, 39, 0.34), 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.login-mobile-brand img {
  border-color: #e3ded1;
  box-shadow: 0 8px 22px rgba(23, 37, 84, 0.14);
}

.steno-edition {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.steno-story__content {
  width: min(100%, 760px);
  margin: auto 0;
  padding: clamp(36px, 5vh, 64px) 0 22px;
}

.steno-eyebrow,
.login-kicker {
  margin: 0 0 15px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.steno-eyebrow {
  color: #ff9d8e;
  animation: login-reveal 0.65s 0.12s ease-out both;
}

.steno-story h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(4rem, 7.5vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.82;
  animation: login-reveal 0.75s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.steno-intro {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.7;
  animation: login-reveal 0.7s 0.28s ease-out both;
}

.steno-sheet {
  position: relative;
  width: min(100%, 660px);
  min-height: 190px;
  margin-top: clamp(28px, 4vh, 48px);
  padding: 20px 26px 18px;
  overflow: hidden;
  border-radius: 3px 22px 3px 3px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--login-line) 36px, transparent 37px),
    var(--login-paper);
  color: var(--login-ink);
  box-shadow: 0 25px 55px rgba(4, 12, 39, 0.28);
  transform: rotate(-1.1deg);
  animation: login-sheet-in 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.steno-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--login-paper-deep) transparent transparent;
}

.steno-sheet__number {
  position: absolute;
  top: 18px;
  right: 26px;
  color: var(--login-accent);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
}

.steno-sheet__number small {
  font-family: "DM Sans", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.09em;
}

.steno-script {
  display: block;
  width: 100%;
  height: 125px;
  margin-top: 17px;
  overflow: visible;
}

.steno-stroke {
  fill: none;
  stroke: var(--login-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steno-stroke--one {
  stroke-width: 8;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: steno-draw 2.2s 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.steno-stroke--two {
  stroke-width: 3;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: steno-draw 1.25s 2.05s ease-out forwards;
}

.steno-script circle {
  fill: var(--login-accent);
  opacity: 0;
  animation: login-dot 0.35s 2.35s ease-out forwards;
}

.steno-sheet__caption {
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
  color: var(--login-ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.steno-sheet__caption span:last-child {
  color: #7a8198;
}

.steno-capabilities {
  gap: 0;
  margin: clamp(24px, 4vh, 44px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none;
  animation: login-reveal 0.7s 0.5s ease-out both;
}

.steno-capabilities li {
  display: grid;
  gap: 3px;
  min-width: 145px;
  padding: 17px 32px 0 0;
}

.steno-capabilities strong {
  color: var(--login-accent);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.steno-capabilities span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.77rem;
}

.login-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(34px, 6vw, 86px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 114, 94, 0.09), transparent 30%),
    var(--login-paper);
}

.login-workspace__inner {
  width: min(100%, 440px);
  margin: auto;
  animation: login-form-in 0.75s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  font-weight: 700;
}

.login-kicker {
  color: var(--login-accent);
}

.login-workspace h2 {
  margin: 0;
  color: var(--login-ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3.1rem, 5vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.login-copy {
  max-width: 360px;
  margin: 17px 0 34px;
  color: #6c7182;
  font-size: 0.94rem;
  line-height: 1.65;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -12px 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(190, 55, 55, 0.2);
  border-radius: 12px;
  background: #fff0ed;
  color: #a23831;
  font-size: 0.82rem;
  line-height: 1.5;
}

.login-alert svg {
  flex: 0 0 18px;
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.login-form {
  display: grid;
  gap: 21px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--login-ink);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.login-control {
  position: relative;
  height: 58px;
  border: 1px solid #d9d5ca;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-control:focus-within {
  border-color: var(--login-ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 37, 84, 0.08);
}

.login-control > svg {
  width: 19px;
  margin-left: 17px;
  fill: none;
  stroke: #7d8291;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--login-ink);
  font: inherit;
  font-size: 0.91rem;
}

.login-control input::placeholder {
  color: #a2a5af;
}

.password-toggle {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: 6px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #787d8d;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #eeece5;
  color: var(--login-ink);
  outline: none;
}

.password-toggle svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.login-submit {
  justify-content: space-between;
  width: 100%;
  height: 60px;
  margin-top: 7px;
  padding: 0 19px 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--login-ink);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(23, 37, 84, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-submit svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.login-submit:hover {
  background: #21366f;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(23, 37, 84, 0.25);
}

.login-submit:hover svg {
  transform: translateX(3px);
}

.login-submit:active {
  transform: translateY(0);
}

.login-security {
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  color: #858996;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.login-security__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ab797;
  box-shadow: 0 0 0 4px rgba(42, 183, 151, 0.13);
}

.login-footer {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  margin: 0;
  color: #9a9da5;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes steno-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes login-dot {
  to { opacity: 1; }
}

@keyframes login-fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes login-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes login-sheet-in {
  from { opacity: 0; transform: translateY(30px) rotate(-3deg); }
  to { opacity: 1; transform: translateY(0) rotate(-1.1deg); }
}

@keyframes login-form-in {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1100px) {
  .steno-login {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  }

  .steno-story {
    padding-right: 48px;
    padding-left: 48px;
  }

  .steno-story h1 {
    font-size: clamp(3.8rem, 7vw, 5.5rem);
  }
}

@media (max-width: 860px) {
  .login-body {
    overflow: auto;
  }

  .steno-login {
    display: block;
    min-height: 100svh;
    overflow: visible;
  }

  .steno-story {
    min-height: 330px;
    padding: 25px 28px 34px;
  }

  .steno-story__content {
    margin: 42px 0 0;
    padding: 0;
  }

  .steno-story h1 {
    font-size: clamp(3.2rem, 12vw, 5rem);
    line-height: 0.88;
  }

  .steno-intro {
    max-width: 520px;
    margin-top: 18px;
  }

  .steno-sheet,
  .steno-capabilities {
    display: none;
  }

  .login-workspace {
    min-height: auto;
    padding: 58px 28px 72px;
  }

  .login-workspace__inner {
    width: min(100%, 520px);
  }

  .login-footer {
    bottom: 20px;
  }
}

@media (max-width: 520px) {
  .steno-story {
    min-height: 260px;
    padding: 20px 20px 30px;
  }

  .login-brand img {
    width: 48px;
    height: 48px;
    padding: 6px;
    border-radius: 14px;
  }

  .login-brand {
    gap: 12px;
    font-size: 1.08rem;
  }

  .steno-edition {
    display: none;
  }

  .steno-story__content {
    margin-top: 36px;
  }

  .steno-eyebrow {
    margin-bottom: 10px;
    font-size: 0.64rem;
  }

  .steno-story h1 {
    font-size: clamp(3.05rem, 15vw, 4.25rem);
  }

  .steno-intro {
    display: none;
  }

  .login-workspace {
    padding: 46px 20px 68px;
  }

  .login-kicker {
    font-size: 0.65rem;
  }

  .login-workspace h2 {
    font-size: 3.25rem;
  }

  .login-copy {
    margin-bottom: 28px;
  }

  .login-control {
    height: 55px;
  }

  .login-submit {
    height: 57px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steno-story__top,
  .steno-eyebrow,
  .steno-story h1,
  .steno-intro,
  .steno-sheet,
  .steno-capabilities,
  .login-workspace__inner,
  .steno-stroke,
  .steno-script circle {
    animation: none !important;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

.current-file-link,
.table-link-url {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.current-file-link {
  color: var(--text-muted, #626987);
  font-size: 0.85rem;
}

.table-link-url {
  margin-top: 6px;
  max-width: 320px;
  color: var(--text-muted, #626987);
  font-size: 0.75rem;
  line-height: 1.35;
}