:root {
  --ink: #0d1b33;
  --muted: #66758c;
  --line: #dbe7f7;
  --line-strong: #b9d4fb;
  --blue: #1473ff;
  --blue-dark: #0c5fe0;
  --soft-blue: #f3f8ff;
  --soft-blue-2: #eaf3ff;
  --panel: #ffffff;
  --page: #f9fbff;
  --shadow: 0 16px 40px rgba(40, 79, 129, 0.10);
  --radius: 18px;
  --workspace: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 50%, rgba(55, 137, 255, 0.06), transparent 28%),
    radial-gradient(circle at 100% 55%, rgba(55, 137, 255, 0.05), transparent 27%),
    var(--page);
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 4.5vw;
  border-bottom: 1px solid #edf2f8;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 42px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  font-size: 15px;
}

.main-nav a:hover,
.text-button:hover { color: var(--blue); }

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.telegram-link,
.secondary,
.google-button,
.soft-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.telegram-link {
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  margin-right: 42px;
}

.telegram-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #37aee2, #1d7ed6);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 12px rgba(29,126,214,.22);
}

.telegram-mark svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 6px;
}

.primary,
.secondary,
.google-button,
.soft-action {
  border-radius: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  transition: .18s ease;
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(20,115,255,.18);
}

.primary:hover { background: var(--blue-dark); }
.primary:disabled { background: #c6d9f6; cursor: not-allowed; box-shadow: none; }
.primary.small { min-height: 40px; }
.secondary { color: var(--blue-dark); border-color: var(--line-strong); background: #fff; }

.more-menu-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-auto-rows: 4px;
  gap: 4px;
  place-content: center;
  border-radius: 8px;
  margin-left: 6px;
}

.more-menu-button:hover { background: #f2f6fb; }

.more-menu-button span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #27364c;
}

.more-menu {
  position: fixed;
  top: 66px;
  right: 3.3vw;
  width: min(370px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(13,27,51,.18);
  padding: 16px;
  z-index: 40;
}

.menu-view {
  display: grid;
  gap: 3px;
}

.menu-view > button,
.menu-view > a {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: #26344b;
  text-align: left;
}

.menu-view > button:hover,
.menu-view > a:hover {
  background: #f4f7fb;
}

.menu-view > button > span,
.menu-view > a > span {
  width: 20px;
  color: #6e7b8f;
  text-align: center;
}

.menu-icon {
  width: 20px !important;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
}

.menu-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-divider {
  height: 1px;
  background: #e4e9f0;
  margin: 12px 4px;
}

.menu-back {
  font-weight: 650;
  color: var(--blue-dark) !important;
}

.language-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 8px;
}

.language-grid button {
  min-height: 42px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 0 10px;
  text-align: left;
  color: #26344b;
}

.language-grid button:hover { background: #f4f7fb; }
.language-grid button.active { color: var(--blue-dark); background: #edf5ff; font-weight: 650; }

.hero {
  padding: 38px 20px 26px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 span { color: var(--blue); }

.hero-copy {
  max-width: 720px;
  margin: 14px auto 26px;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.55;
  color: #26344b;
}

.workspace {
  width: min(var(--workspace), calc(100vw - 32px));
  margin: 0 auto;
}

.upload-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  padding: 14px;
}

.drop-zone {
  width: 100%;
  min-height: 230px;
  border-radius: 14px;
  border: 1.5px dashed #9cc5ff;
  background: linear-gradient(180deg,#fbfdff 0%,#f4f9ff 100%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.drop-zone.dragging { border-color: var(--blue); background: #eef6ff; }
.drop-zone strong { font-size: 22px; }
.drop-zone span { color: var(--muted); }
.drop-zone span u { color: var(--blue); text-underline-offset: 3px; }
.drop-zone small { margin-top: 6px; color: var(--muted); font-size: 14px; }

.upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue) !important;
  background: #edf5ff;
  font-size: 34px;
  line-height: 1;
}

.selected-file {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}

.selected-file div { min-width: 0; }
.selected-file strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.selected-file span { color: var(--muted); font-size: 13px; }

.remove-file { border: 0; background: transparent; color: #66758c; }
.process-button { margin-top: 12px; min-width: 180px; }

.guest-status {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 14px;
}

.guest-status strong { color: var(--ink); }

.limit-ended {
  margin: 18px auto 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 7px;
  text-align: left;
}

.limit-ended > strong { font-size: 18px; }
.limit-ended > span { color: #35445d; }
.limit-actions { display: flex; gap: 10px; margin-top: 8px; }

.progress-wrap { margin-top: 18px; width: 100%; }
.progress-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.progress-track { height: 10px; background: #e7eef8; border-radius: 20px; overflow: hidden; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .35s ease; }

.result-card {
  width: 100%;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr);
  gap: 20px;
  text-align: left;
}

.result-summary {
  padding: 6px 18px;
  border-radius: 14px;
  background: var(--soft-blue);
  min-width: 0;
}

.result-section { padding: 14px 0; border-bottom: 1px solid #dbe7f4; }
.result-section:last-child { border-bottom: 0; }

.result-section h2,
.result-transcript h2 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: .01em;
}

.result-section p,
.result-section li {
  margin: 0;
  line-height: 1.55;
  font-size: 16px;
}

.result-section ul { margin: 0; padding-left: 18px; }
.result-section li + li { margin-top: 5px; }

.result-transcript {
  background: #fff;
  min-width: 0;
  padding: 10px 18px 14px 12px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.result-transcript-fill {
  align-self: start;
}

.result-transcript-fill .transcript-content {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
}

.result-transcript-fill .result-actions {
  margin-top: auto;
  padding-top: 14px;
}

.transcript-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.transcript-head span { color: var(--muted); font-size: 14px; }

.transcript-content {
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  font-size: 16px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.soft-action {
  background: var(--soft-blue-2);
  border-color: transparent;
  color: var(--blue-dark);
  font-weight: 600;
}

.soft-action:hover { background: #dcecff; }

.error-box {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid #f1c8c8;
  color: #8d3030;
  background: #fff7f7;
  text-align: left;
}

.compact-section {
  width: min(var(--workspace), calc(100vw - 32px));
  margin: 78px auto 0;
  text-align: center;
}

.compact-section h2 {
  font-size: 31px;
  margin: 0 0 34px;
}

.how-section { padding: 20px 0 30px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.step-card {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 176px;
  padding: 26px 24px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  box-shadow: 0 10px 28px rgba(40, 79, 129, 0.05);
}

.step-number {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: var(--blue-dark);
  font-weight: 750;
  margin-bottom: 18px;
}

.step-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}

.step-copy p {
  margin: 9px auto 0;
  max-width: 270px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  margin-left: 5px;
  border-radius: 999px;
  background: var(--soft-blue-2);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 750;
  vertical-align: 2px;
}

.site-footer {
  margin-top: 74px;
  background: #20232b;
  color: #fff;
}

.footer-columns {
  width: min(860px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 38px 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.footer-columns > div {
  display: grid;
  align-content: start;
  gap: 13px;
}

.footer-columns h3 {
  margin: 0 0 5px;
  font-size: 15px;
  letter-spacing: .02em;
}

.footer-columns a,
.footer-columns button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: #fff;
  font-size: 14px;
  opacity: .94;
}

.footer-columns a:hover,
.footer-columns button:hover { opacity: 1; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 17px 4.5vw 20px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,19,41,.36);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(13,27,51,.24);
  position: relative;
  text-align: left;
}

.modal h2 { margin: 0 0 20px; font-size: 26px; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #66758c;
  font-size: 26px;
}

.google-button {
  width: 100%;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: #d7dfeb;
  box-shadow: 0 1px 2px rgba(13,27,51,.05);
}

.google-button:hover {
  background: #f8fafc;
  border-color: #c4cfdd;
}

.google-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

#modal-main-action {
  margin-top: 18px;
}

.or {
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.or::before, .or::after {
  content: "";
  height: 1px;
  background: #e5ebf4;
  flex: 1;
}

.modal label:not(.terms-row) {
  display: grid;
  gap: 7px;
  font-size: 14px;
  margin-top: 13px;
}

.modal .auth-input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
  background: #fff;
  font: inherit;
}

.password-field {
  display: block;
  position: relative;
  width: 100%;
}

.password-field .auth-input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #66758c;
  padding: 0;
}

.password-toggle:hover {
  background: #f2f6fb;
  color: #25364f;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #738197;
}

.field-hint.error,
.field-error {
  color: #d93025;
}

#modal-main-action[disabled] {
  cursor: not-allowed;
  opacity: .5;
}

#modal-main-action[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}

.verification-actions {
  margin-top: 18px;
  text-align: center;
}

.verification-actions button {
  min-width: 220px;
}

.verification-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #66758c;
  font-size: 13px;
}

.modal input:focus {
  border-color: #8bbcff;
  box-shadow: 0 0 0 3px rgba(20,115,255,.08);
}

.signup-legal {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.signup-legal button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
}

.modal-switch {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

.modal-switch button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  padding: 0;
}

.info-panel {
  width: min(920px, calc(100vw - 30px));
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 24px 80px rgba(13,27,51,.24);
  position: relative;
}

.info-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
  text-align: center;
}

.info-panel .panel-lead {
  color: #53627a;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 26px;
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card.pro {
  border-color: #9fc6ff;
  box-shadow: 0 12px 34px rgba(20,115,255,.10);
}

.price-card .price-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}

.price-card .plan-name { font-size: 20px; font-weight: 750; }
.price-card .price { font-size: 28px; font-weight: 800; }
.price-card .price small { color: var(--muted); font-size: 13px; font-weight: 500; }

.price-card ul {
  padding-left: 19px;
  line-height: 1.65;
  color: #35445d;
  min-height: 132px;
}

.price-card .card-note {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 18px;
}

.price-card .full {
  margin-top: auto;
}

.full { width: 100%; }

.security-grid,
.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.formats-grid {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.formats-grid .info-tile {
  text-align: center;
  background: var(--soft-blue);
  border-color: #cfe1fb;
}

.formats-grid + .history-empty {
  max-width: 560px;
  background: var(--soft-blue);
  border-color: #cfe1fb;
}

.info-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fbfdff;
}

.info-tile h3 { margin: 0 0 7px; font-size: 16px; }
.info-tile p { margin: 0; line-height: 1.55; color: #53627a; }

.history-empty {
  margin: 26px auto 0;
  max-width: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  text-align: center;
}

[hidden] { display: none !important; }

@media (max-width: 1080px) {
  .topbar { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .telegram-link { display: none; }
}

@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 12px;
    gap: 8px;
  }
  .brand {
    gap: 7px;
    font-size: 17px;
    white-space: nowrap;
  }
  .brand-logo {
    width: 34px;
    height: 28px;
  }
  .top-actions { gap: 4px; }
  .auth-actions { gap: 4px; }
  .text-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 4px;
    font-size: 14px;
  }
  .primary.small {
    min-height: 38px;
    padding: 0 10px;
    font-size: 14px;
  }
  .more-menu-button {
    width: 34px;
    height: 34px;
    margin-left: 0;
  }

  .hero {
    padding: 30px 24px 24px;
  }
  .hero h1 { font-size: 36px; }
  .hero-copy { font-size: 15px; max-width: 520px; }

  .workspace {
    width: calc(100vw - 40px);
  }

  .upload-card {
    padding: 16px;
  }

  .drop-zone { min-height: 210px; }

  .result-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }
  .result-summary,
  .result-transcript {
    width: 100%;
  }
  .result-summary {
    padding: 4px 14px;
  }
  .result-transcript {
    padding: 8px 10px 12px;
  }

  .steps,
  .pricing-grid,
  .security-grid,
  .formats-grid,
  .footer-columns { grid-template-columns: 1fr; }

  .result-actions { grid-template-columns: 1fr; }

  .compact-section { margin-top: 62px; }
  .steps { gap: 12px; }
  .step-card { min-height: 0; padding: 22px 20px; }
  .step-number { margin-bottom: 14px; }

  .footer-columns { gap: 30px; padding-top: 30px; }
  .info-panel { padding: 28px 18px; }
  .language-grid { grid-template-columns: 1fr; }
}

.security-grid .info-tile {
  background: #fbfdff;
}

.security-note {
  margin: 20px auto 0;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.security-note a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}


.format-limit-note {
  margin: 20px auto 0;
  color: #26344b;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.history-empty .primary {
  margin-top: 6px;
}

.info-tile {
  text-align: center;
}

.security-grid .info-tile {
  text-align: left;
}


.legal-document {
  max-width: 780px;
  margin: 0 auto;
  color: #26344b;
}

.legal-document h2 {
  text-align: left;
  margin-bottom: 6px;
}

.legal-document .legal-updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.legal-document h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  color: var(--ink);
}

.legal-document p,
.legal-document li {
  line-height: 1.65;
}

.legal-document ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}


.legal-form {
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.legal-form p {
  margin: 6px 0;
}


.legal-table-wrap {
  margin: 12px 0 16px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.legal-table th {
  background: #f6f9fd;
  color: var(--ink);
  font-weight: 700;
}

.legal-table code,
.legal-document code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}


.account-summary {
  min-height: 38px;
  border: 1px solid #cfe0f7;
  border-radius: 10px;
  background: #f7fbff;
  color: var(--blue-dark);
  padding: 0 12px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-summary::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: linear-gradient(145deg, #176fd5 10%, #5d9df2 58%, #a8c9ff 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M3.8 21c.3-5.1 3.5-8.2 8.2-8.2s7.9 3.1 8.2 8.2H3.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M3.8 21c.3-5.1 3.5-8.2 8.2-8.2s7.9 3.1 8.2 8.2H3.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(23, 111, 213, .14));
}

.account-summary:hover {
  background: #edf5ff;
}

.auth-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff5f5;
  border: 1px solid #f0caca;
  color: #9a3434;
  font-size: 13px;
  line-height: 1.45;
}

.account-panel {
  width: min(460px, 100%);
  margin: 22px auto 0;
}

.account-panel > p {
  text-align: center;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.account-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.account-stat b {
  color: var(--ink);
  text-align: right;
}

.account-panel .full {
  margin-top: 22px;
}


.account-summary-full {
  display: inline;
}

.account-summary-compact {
  display: none;
}

.account-shared-note {
  margin: 16px 0 0 !important;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f9fd;
  color: #53627a;
  font-size: 13px;
  line-height: 1.45;
  text-align: left !important;
}

@media (max-width: 760px) {
  .account-summary-full {
    display: none;
  }

  .account-summary-compact {
    display: inline;
  }

  .account-summary {
    padding: 0 10px;
  }
}


.transcript-content p {
  margin: 0 0 14px;
}

.transcript-content p:last-child {
  margin-bottom: 0;
}

.feature-compare-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.feature-compare-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.feature-compare-list li span {
  min-width: 0;
}

.feature-compare-list li b {
  flex: 0 0 auto;
  color: var(--ink);
}

.feature-compare-list .feature-disabled {
  opacity: .42;
}

.feature-compare-list .feature-disabled span {
  text-decoration: line-through;
}

.pro-feature-offer {
  width: min(460px, 100%);
  margin: 22px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  text-align: center;
}

.pro-feature-offer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.pro-feature-offer .full {
  margin-top: 18px;
}

.soft-action .pro-badge {
  margin-left: 6px;
  vertical-align: 1px;
}


.quota-warning {
  margin: 14px auto 0;
  width: min(680px, 100%);
  padding: 14px 16px;
  border: 1px solid #f0c9a9;
  border-radius: 12px;
  background: #fff9f4;
  color: var(--ink);
  display: grid;
  gap: 7px;
  text-align: left;
}

.quota-warning > span {
  color: var(--muted);
  line-height: 1.5;
}

.quota-warning-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.soft-action .pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid #b9d3ff;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

.pro-feature-link {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
}

.google-button-container {
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.google-button-container > div {
  width: 100%;
  display: flex;
  justify-content: center;
}

.google-button-disabled {
  width: 100%;
  opacity: .55;
  cursor: not-allowed;
}

.history-loading {
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.history-item {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.history-item-main {
  min-width: 0;
  flex: 1;
}

.history-item-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}

.history-item-top b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-top span,
.history-item small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.history-item p {
  margin: 6px 0;
  color: #53627a;
  line-height: 1.45;
}

.history-item-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.history-delete,
.history-clear {
  border: 0;
  background: transparent;
  color: #9a3434;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.history-clear {
  display: block;
  margin: 18px auto 0;
}

@media (max-width: 640px) {
  .history-item {
    align-items: stretch;
    flex-direction: column;
  }

  .history-item-actions {
    width: 100%;
  }

  .history-item-actions .secondary {
    flex: 1;
  }

  .quota-warning-actions {
    display: grid;
  }
}


.legal-page {
  min-height: 100vh;
  background: #f5f8fc;
}

.legal-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.legal-page-header-inner {
  width: min(940px, calc(100vw - 40px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.legal-back {
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.legal-page-main {
  width: min(940px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.legal-page-main .legal-document {
  max-width: none;
  padding: 34px 40px 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(25,50,90,.05);
}

.signup-legal a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .legal-page-main .legal-document {
    padding: 24px 20px 30px;
  }
}


.forgot-password-row {
  margin: 8px 0 0;
  text-align: right;
}

.forgot-password-row button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue-dark);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.confirm-backdrop {
  z-index: 90;
  background: rgba(6,19,41,.46);
}

.confirm-dialog {
  width: min(430px, 100%);
  padding: 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(13,27,51,.28);
  text-align: left;
}

.confirm-dialog h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--ink);
}

.confirm-dialog > p:not(.auth-error) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.danger-action {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #c74a4a;
  border-radius: 10px;
  background: #b93d3d;
  color: #fff;
  font-weight: 700;
}

.danger-action:hover {
  background: #a93434;
}

.danger-action:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .result-transcript-fill {
    height: auto !important;
  }

  .confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


#password-confirm-hint {
  margin-top: 6px;
}


.pro-output {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.pro-result-block {
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  background: #f8fbff;
  padding: 20px;
}

.pro-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pro-result-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: .02em;
}

.pro-copy-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
}

.pro-result-text {
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

.pro-result-text p {
  margin: 0;
}

.pro-result-text p + p {
  margin-top: 12px;
}

.pro-result-translation {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #dbe7f4;
}

.pro-result-translation h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .02em;
}

.translation-chooser {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.translation-chooser label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
}

.translation-chooser select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.translation-table {
  overflow: hidden;
  border: 1px solid #d8e5f4;
  border-radius: 12px;
  background: #fff;
}

.translation-table-head,
.translation-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.translation-table-head {
  background: #f4f8fd;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
}

.translation-table-head span {
  padding: 10px 14px;
}

.translation-table-head span:first-child,
.translation-original {
  border-right: 1px solid #d8e5f4;
}

.translation-row + .translation-row {
  border-top: 1px solid #e4edf7;
}

.translation-original,
.translation-target {
  min-width: 0;
  padding: 14px 15px 18px;
}

.translation-row p {
  margin: 0;
  line-height: 1.58;
  font-size: 15px;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .pro-result-block {
    padding: 16px;
  }

  .pro-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .translation-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .translation-table-head,
  .translation-original {
    display: none;
  }

  .translation-row {
    display: block;
  }

  .translation-row + .translation-row {
    margin-top: 14px;
    border-top: 0;
  }

  .translation-target {
    border: 0;
    padding: 0;
  }

  .translation-target::before {
    display: none;
    content: none;
  }

  .translation-row p {
    font-size: 15px;
    line-height: 1.62;
  }

  .pro-copy-button {
    width: 100%;
  }

  .translate-split {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .translation-menu {
    left: 0;
    right: auto;
    width: min(260px, calc(100vw - 48px));
  }
}


.is-pro-user .result-actions .pro-badge {
  display: none;
}

.translate-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  min-width: 0;
}

.translate-split .soft-action {
  min-width: 0;
}

.translate-main {
  border-radius: 10px 0 0 10px;
}

.translate-toggle {
  border-left: 1px solid #c8dcf7;
  border-radius: 0 10px 10px 0;
  padding: 0;
  font-size: 14px;
}

.translation-menu {
  position: absolute;
  z-index: 45;
  right: 0;
  bottom: calc(100% + 7px);
  width: min(230px, 82vw);
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(13,27,51,.16);
}

.translation-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: 14px;
}

.translation-menu button:hover,
.translation-menu button.selected {
  background: #edf5ff;
  color: var(--blue-dark);
}

.reply-refine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.reply-refine-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbdcf1;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.reply-refine-actions button:hover {
  background: #edf5ff;
}

.reply-refine-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}


.footer-columns-single {
  grid-template-columns: 1fr;
  max-width: 430px;
}


.about-panel {
  max-width: 720px;
  margin: 0 auto;
}

.about-copy {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.about-copy p {
  margin: 0;
  color: #35445d;
  line-height: 1.65;
}

.about-copy b {
  color: var(--ink);
}

.about-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.about-contact a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-try-button {
  display: block;
  min-width: 180px;
  margin: 24px auto 0;
}

@media (max-width: 760px) {
  .about-panel .panel-lead {
    text-align: left;
  }

  .about-contact {
    justify-content: flex-start;
  }

  .about-try-button {
    width: 100%;
  }
}



.support-panel {
  max-width: 760px;
  margin: 0 auto;
}

.support-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.support-option {
  min-width: 0;
  border: 1px solid #d7e4f5;
  border-radius: 18px;
  background: #fbfdff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(20,115,255,.05);
}

.support-option-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.support-option-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: var(--soft-blue);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
}

.support-option-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-option-icon.telegram svg {
  fill: currentColor;
  stroke: none;
}

.support-option-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.support-option-copy b {
  font-size: 18px;
}

.support-option-copy small {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.support-primary-action {
  min-height: 46px;
  width: 100%;
  padding: 0 16px;
  border-radius: 13px;
  background: linear-gradient(180deg, #2f80ff 0%, #1f6fff 100%);
  box-shadow: 0 8px 18px rgba(31,111,255,.16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.support-primary-action:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31,111,255,.20);
}

.support-primary-action:focus-visible,
.support-email-copy:focus-visible {
  outline: 3px solid rgba(20,115,255,.18);
  outline-offset: 2px;
}

.support-email-copy {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0 4px;
  color: #7f8da3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  cursor: pointer;
  transition: color .16s ease;
}

.support-email-copy:hover {
  color: #5f6f86;
}

.support-copy-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-grid;
  place-items: center;
}

.support-copy-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-email-copy.is-copied {
  color: #1d7a45;
}

@media (max-width: 620px) {
  .support-panel .panel-lead {
    text-align: left;
  }

  .support-options {
    grid-template-columns: 1fr;
  }

  .support-option {
    padding: 18px;
  }
}

.account-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.account-actions .full {
  margin-top: 0;
}

.account-danger {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #e0b3b3;
  border-radius: 10px;
  background: #fff;
  color: #a23838;
  font: inherit;
  font-weight: 650;
}

.account-danger:hover {
  background: #fff6f6;
  border-color: #d48f8f;
}

.account-password-form {
  width: min(460px, 100%);
  margin: 22px auto 0;
  display: grid;
  gap: 14px;
}

.account-password-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
}

.account-password-form .auth-error {
  margin: 0;
}

.account-back-button {
  justify-self: center;
  margin-top: 2px;
}


@media (max-width: 340px) {
  .topbar {
    padding: 0 6px;
    gap: 4px;
  }

  .brand {
    gap: 5px;
    font-size: 14px;
  }

  .brand-logo {
    width: 28px;
    height: 24px;
  }

  .top-actions,
  .auth-actions {
    gap: 2px;
  }

  .text-button {
    min-height: 34px;
    padding: 6px 3px;
    font-size: 12px;
  }

  .primary.small {
    min-height: 34px;
    padding: 0 7px;
    font-size: 12px;
  }

  .more-menu-button {
    width: 30px;
    height: 30px;
    gap: 3px;
    grid-template-columns: repeat(3, 3px);
    grid-auto-rows: 3px;
  }

  .more-menu-button span {
    width: 3px;
    height: 3px;
  }

  .account-summary {
    min-height: 34px;
    padding: 0 7px;
    gap: 5px;
    font-size: 12px;
  }

  .account-summary::before {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}


.not-found-page {
  min-height: 100vh;
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.not-found-brand {
  margin-bottom: 34px;
}

.not-found-code {
  color: #8fb9f6;
  font-size: clamp(64px, 14vw, 116px);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: .9;
}

.not-found-page h1 {
  margin: 20px 0 10px;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -.04em;
}

.not-found-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.not-found-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  text-decoration: none;
}

/* 2026-10 green / black brand refresh */
:root {
  --ink: #0b0b0b;
  --muted: #5e6d55;
  --line: #e4e9e2;
  --line-strong: #beddbb;
  --blue: #14a800;
  --blue-dark: #108a00;
  --soft-blue: #f7faf7;
  --soft-blue-2: #e8f5e8;
  --panel: #ffffff;
  --page: #ffffff;
  --shadow: 0 16px 40px rgba(0, 30, 0, .07);
}

body { background: #fff; }

.topbar {
  border-bottom-color: #ecefea;
  background: rgba(255,255,255,.97);
}

.brand { gap: 0; }

.brand-logo {
  width: 190px;
  height: auto;
  display: block;
}

.telegram-link { border-color: #d9e5ea; }
.telegram-link:hover { border-color: #a9d4e7; background: #f8fcfe; }

.telegram-mark {
  background: #229ed9;
  box-shadow: 0 5px 12px rgba(34,158,217,.18);
}

.primary {
  background: #14a800;
  box-shadow: 0 8px 18px rgba(20,168,0,.18);
}
.primary:hover { background: #108a00; }

.primary:focus-visible,
.secondary:focus-visible,
.soft-action:focus-visible,
.text-button:focus-visible,
.more-menu-button:focus-visible,
.account-summary:focus-visible {
  outline: 3px solid rgba(20,168,0,.18);
  outline-offset: 2px;
}

.primary:disabled {
  background: #b8dcb5;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary {
  color: #108a00;
  border-color: #c9dfc6;
  background: #fff;
}
.secondary:hover { background: #f4faf3; border-color: #a9d3a4; }

.more-menu-button:hover,
.menu-view > button:hover,
.menu-view > a:hover,
.language-grid button:hover { background: #f7faf7; }

.menu-back { color: #108a00 !important; }
.language-grid button.active { color: #108a00; background: #e8f5e8; }

.hero h1 { color: #0b0b0b; }
.hero h1 span { color: #14a800; }
.hero-copy { color: #53604e; }

.upload-card {
  border-color: #e3e9e1;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0,30,0,.065);
}

.drop-zone { border-color: #78c96f; background: #fff; }
.drop-zone:hover { background: #fcfefb; }
.drop-zone.dragging { border-color: #14a800; background: #f0faef; }
.drop-zone span u { color: #14a800; }

.upload-icon {
  color: #14a800 !important;
  background: #e8f5e8;
}

.selected-file,
.account-shared-note,
.legal-form { background: #f8faf7; }

.progress-track { background: #e9eee7; }
.progress-bar { background: #14a800; }

.result-summary,
.formats-grid .info-tile,
.formats-grid + .history-empty,
.pro-feature-offer { background: #f7faf7; }

.result-section { border-bottom-color: #e3e9e0; }

.soft-action { background: #e8f5e8; color: #108a00; }
.soft-action:hover { background: #d9efd6; }

.pro-badge,
.soft-action .pro-badge {
  background: #e8f5e8;
  border-color: #bcdab8;
  color: #108a00;
}

.step-card {
  border-color: #e3e9e1;
  box-shadow: 0 10px 28px rgba(0,30,0,.045);
}

.step-number { background: #e8f5e8; color: #14a800; }

.price-card.pro {
  border-color: #78c96f;
  box-shadow: 0 12px 34px rgba(20,168,0,.10);
}

.modal input:focus,
.translation-chooser select:focus {
  border-color: #6cc460;
  box-shadow: 0 0 0 3px rgba(20,168,0,.09);
}

.account-summary {
  border-color: #cae3c7;
  background: #f7faf7;
  color: #108a00;
}

.account-summary::before {
  background: #14a800;
  filter: drop-shadow(0 1px 1px rgba(20,168,0,.14));
}

.account-summary:hover { background: #edf8eb; }

.pro-result-block {
  border-color: #d2e5cf;
  background: #f8faf7;
}

.pro-result-translation { border-top-color: #dce8da; }
.translate-toggle { border-left-color: #c9dfc6; }
.translation-menu { border-color: #d4e2d1; }

.translation-menu button:hover,
.translation-menu button.selected {
  background: #edf8eb;
  color: #108a00;
}

.reply-refine-actions button {
  border-color: #d0e2cd;
  color: #108a00;
}
.reply-refine-actions button:hover { background: #edf8eb; }

.support-option {
  border-color: #dce8da;
  background: #fcfdfb;
  box-shadow: 0 8px 24px rgba(20,168,0,.045);
}

.support-option-icon { background: #e8f5e8; color: #108a00; }
.support-option-icon.telegram { background: #eef8fd; color: #229ed9; }

.support-primary-action {
  background: #14a800;
  box-shadow: 0 8px 18px rgba(20,168,0,.16);
}

.support-primary-action:hover {
  background: #108a00;
  filter: none;
  box-shadow: 0 10px 22px rgba(20,168,0,.20);
}

.support-primary-action:focus-visible,
.support-email-copy:focus-visible { outline-color: rgba(20,168,0,.18); }

.site-footer { background: #001e00; }

.footer-brand-logo {
  width: 176px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.footer-bottom { border-top-color: rgba(255,255,255,.14); }

.not-found-code { color: #78c96f; }

@media (max-width: 760px) {
  .brand-logo { width: 150px; }
}

@media (max-width: 340px) {
  .brand-logo { width: 108px; height: auto; }
}

/* Compact header refinement */
.topbar {
  height: 64px;
}

.brand-logo {
  width: 168px;
}

@media (max-width: 760px) {
  .brand-logo { width: 148px; }
}

@media (max-width: 340px) {
  .brand-logo { width: 106px; }
}
