:root {
  /* LinkedIn brand–adjacent blues */
  --li-blue: #0a66c2;
  --li-blue-hover: #004182;
  --li-blue-light: #378fe9;
  --li-blue-soft: #70b5f9;
  --li-blue-deep: #004182;
  --li-text: rgba(15, 23, 42, 0.92);
  --li-muted: rgba(51, 65, 85, 0.62);
  --li-border: rgba(148, 163, 184, 0.35);
  --phone-max: 430px;
  --radius: 18px;
  --radius-sm: 12px;
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-strong: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-soft: rgba(255, 255, 255, 0.35);
  --glass-blur: blur(22px) saturate(165%);
  --glass-blur-heavy: blur(28px) saturate(180%);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --glass-shadow:
    0 4px 24px rgba(15, 23, 42, 0.07),
    0 1px 2px rgba(255, 255, 255, 0.45) inset;
  --shadow-card: var(--glass-shadow);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  font-family:
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif;
  -webkit-tap-highlight-color: rgba(10, 102, 194, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, #b9c9dc 0%, #d2e2f4 28%, #e8eef6 52%, #c5d6e8 100%);
  color: var(--li-text);
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.65;
}

body::before {
  width: min(100vw, 340px);
  height: min(100vw, 340px);
  top: -12%;
  right: -18%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(55, 143, 233, 0.88) 0%,
    rgba(10, 102, 194, 0.32) 48%,
    transparent 72%
  );
}

body::after {
  width: min(90vw, 300px);
  height: min(90vw, 300px);
  bottom: -8%;
  left: -22%;
  background: radial-gradient(
    circle at 60% 50%,
    rgba(112, 181, 249, 0.72) 0%,
    rgba(10, 102, 194, 0.28) 52%,
    transparent 70%
  );
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--phone-max);
  height: 100%;
  max-height: inherit;
  min-height: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  box-shadow:
    var(--glass-inset),
    0 12px 40px rgba(15, 23, 42, 0.1),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

@media (min-width: 480px) {
  body {
    padding: 8px;
    align-items: center;
    box-sizing: border-box;
  }

  .app-shell {
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
    overflow: hidden;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--glass-border-soft);
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  min-height: 48px;
}

.brand-wrap {
  min-width: 0;
  flex-shrink: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--li-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-width: 0;
  line-height: 1.15;
}

.brand-tagline {
  display: block;
  margin: 1px 0 0;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--li-muted);
  line-height: 1.25;
  max-width: 11.5rem;
}

.brand-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(145deg, rgba(55, 143, 233, 0.96) 0%, var(--li-blue) 100%);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    var(--glass-inset),
    0 4px 14px rgba(10, 102, 194, 0.34);
}

.top-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.backlog-open-btn {
  border: 1px solid var(--glass-border-soft);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 40px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--li-blue);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: var(--glass-inset);
}

.backlog-open-btn:active {
  transform: scale(0.98);
}

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  border: 1px solid var(--glass-border-soft);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-inset);
}

.lang-switch.small {
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 10px 16px;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--li-muted);
  cursor: pointer;
}

.lang-btn:active {
  background: rgba(10, 102, 194, 0.1);
}

.lang-btn.is-active {
  background: rgba(10, 102, 194, 0.18);
  color: var(--li-blue);
}

.lang-btn--demo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  min-width: 48px;
}

.lang-btn-main {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.lang-new-badge {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--li-blue);
  background: rgba(10, 102, 194, 0.12);
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1.2;
}

.lang-btn.is-active .lang-new-badge {
  color: #fff;
  background: rgba(10, 102, 194, 0.45);
}

.main-flow {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(8px + var(--safe-bottom));
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.feed {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.card {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.profile-strip {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  border-bottom: 1px solid var(--glass-border-soft);
}

.profile-strip-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.profile-strip-avatar {
  width: 44px;
  height: 44px;
  font-size: 11px;
}

.profile-strip-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.75);
}

.profile-input:focus {
  outline: 2px solid rgba(10, 102, 194, 0.32);
  outline-offset: 0;
  border-color: var(--li-blue-soft);
}

.profile-input-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--li-text);
}

.profile-input-tagline {
  font-size: 11px;
  color: var(--li-text);
}

.result-preview-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border-soft);
}

.result-preview-head[hidden] {
  display: none !important;
}

.result-preview-meta {
  min-width: 0;
  flex: 1;
}

.result-preview-name {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.result-preview-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--li-muted);
  line-height: 1.35;
}

.result-preview-time {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--li-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* —— Two-pane translator —— */
.translator {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 0;
}

/* After first translate: compact plain-language on top, tall LinkedIn post below */
.translator--has-result {
  min-height: min(68vh, 560px);
}

.translator-pane {
  padding: 10px 12px;
}

.translator--has-result .translator-pane {
  padding: 14px 16px;
}

.translator-pane--from {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--glass-border-soft);
  flex-shrink: 0;
}

.translator--has-result .translator-pane--from {
  max-height: min(26vh, 168px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.translator-pane--to {
  position: relative;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-left: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-inset);
  flex: 1;
  min-height: 0;
}

.translator-pane--to::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--li-blue-soft) 0%, var(--li-blue) 52%, var(--li-blue-light) 100%);
  opacity: 0.9;
  pointer-events: none;
}

.translator--has-result .translator-pane--to {
  flex: 1;
  min-height: 180px;
}

.pane-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 6px;
}

.pane-header--target {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pane-label {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--li-text);
}

.pane-hint {
  font-size: 10px;
  color: var(--li-muted);
  font-weight: 500;
}

.pane-title-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.pane-icon-in {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(145deg, rgba(55, 143, 233, 0.96) 0%, var(--li-blue) 100%);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    var(--glass-inset),
    0 2px 8px rgba(10, 102, 194, 0.3);
}

.pane-title-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pane-input {
  width: 100%;
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.85);
}

/* Plain-language box: height follows text (see fitRawInput in app.js) */
.pane-input--fit {
  resize: none;
  min-height: 56px;
}

.pane-input:focus {
  outline: 2px solid rgba(10, 102, 194, 0.35);
  outline-offset: 0;
  border-color: var(--li-blue-soft);
}

.translator-bridge {
  background: rgba(241, 245, 255, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--glass-border-soft);
  border-bottom: 1px solid var(--glass-border-soft);
  padding: 10px 12px;
  flex-shrink: 0;
}

.bridge-split {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}

.bridge-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1 35%, #cbd5e1 65%, transparent);
}

.bridge-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1;
  color: var(--li-muted);
  box-shadow: var(--glass-inset), 0 2px 10px rgba(15, 23, 42, 0.06);
}

.bridge-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.btn-primary {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(
    165deg,
    rgba(55, 143, 233, 0.98) 0%,
    var(--li-blue) 42%,
    var(--li-blue-deep) 100%
  );
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    var(--glass-inset),
    0 4px 18px rgba(10, 102, 194, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--li-blue-light) 0%, var(--li-blue-hover) 100%);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--li-muted);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--glass-inset), 0 2px 8px rgba(15, 23, 42, 0.05);
}

.btn-copy:hover:not(:disabled) {
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(112, 181, 249, 0.85);
  color: var(--li-blue);
}

.btn-copy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pane-output {
  position: relative;
  min-height: 72px;
  max-height: min(36vh, 300px);
  overflow-y: auto;
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  padding: 10px 12px;
  box-shadow: var(--glass-inset), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  -webkit-overflow-scrolling: touch;
}

.translator--has-result .pane-output {
  flex: 1;
  min-height: 0;
  max-height: none;
}

.pane-placeholder {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--li-muted);
  font-style: italic;
}

.pane-result {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.4;
  color: var(--li-text);
}

.pane-loading {
  padding: 4px 0;
}

.pane-loading .sk-line {
  height: 12px;
  background: linear-gradient(
    90deg,
    rgba(186, 211, 243, 0.55) 25%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(186, 211, 243, 0.55) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}

.pane-loading .sk-line.sk-title {
  width: 45%;
  height: 14px;
}

.pane-loading .sk-line.short {
  width: 70%;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.loading-text {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--li-muted);
  text-align: center;
}

.translator-error {
  margin: 8px 12px 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #9f1239;
  background: rgba(254, 242, 242, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(248, 113, 113, 0.38);
  border-radius: 12px;
  box-sizing: border-box;
}

/* Subtle red outline on the card when an error notice is shown */
.translator.translator--error,
.about-card.about-card--error {
  outline: 1px solid rgba(220, 38, 38, 0.26);
  outline-offset: 0;
}

/* Upload / parse issues: extra emphasis on the CV upload block */
.cv-upload.cv-upload--error {
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.28);
  border-radius: 14px;
}

.news {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-soft);
}

.news-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.news-list {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: var(--li-muted);
  line-height: 1.35;
}

.footer-mini {
  padding: 8px 4px 10px;
  font-size: 10px;
  color: var(--li-muted);
  text-align: center;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.footer-note {
  margin: 0;
  max-width: 22rem;
  font-size: 10px;
  line-height: 1.4;
}

.footer-privacy {
  margin: 0;
}

.footer-privacy-link {
  font-size: 10px;
  color: var(--li-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-privacy-link:hover {
  text-decoration-thickness: 1.5px;
}

.footer-disclaimer {
  margin: 0;
  max-width: 22rem;
  font-size: 9px;
  opacity: 0.92;
  line-height: 1.35;
}

.footer-credit {
  margin: 0;
  max-width: 22rem;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0.95;
}

.legal-shell {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 28px 18px 56px;
  max-width: 42rem;
  margin: 0 auto;
  color: var(--li-text);
  font-size: 14px;
  line-height: 1.55;
}

.legal-doc h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--li-muted);
}

.legal-doc h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-doc p,
.legal-doc ul {
  margin: 0 0 0.75rem;
}

.legal-doc ul {
  padding-left: 1.2rem;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(10, 102, 194, 0.08);
}

.legal-back {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

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

.legal-back a:hover {
  text-decoration-thickness: 1.5px;
}

.backlog-dialog {
  border: none;
  padding: 0;
  max-width: calc(100vw - 24px);
  width: min(400px, 100%);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.backlog-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.backlog-dialog-inner {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 14px 14px 12px;
  max-height: min(72vh, 520px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.backlog-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.backlog-dialog-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--li-text);
}

.backlog-close-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: -6px -6px 0 0;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  font-size: 22px;
  line-height: 1;
  color: var(--li-muted);
  cursor: pointer;
}

.backlog-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--li-muted);
}

.backlog-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.backlog-empty {
  margin: 0;
  font-size: 12px;
  color: var(--li-muted);
  text-align: center;
  padding: 12px 4px;
}

.backlog-item {
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.55);
}

.backlog-item-time {
  display: block;
  font-size: 10px;
  color: var(--li-muted);
  margin-bottom: 6px;
}

.backlog-item-q {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--li-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.backlog-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.btn-backlog-reuse {
  border: 1px solid rgba(10, 102, 194, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--li-blue);
  background: rgba(239, 246, 255, 0.9);
  cursor: pointer;
}

.btn-backlog-row-del {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  font-size: 18px;
  line-height: 1;
  color: var(--li-muted);
  cursor: pointer;
}

.backlog-dialog-foot {
  padding-top: 4px;
  border-top: 1px solid var(--glass-border-soft);
}

.btn-backlog-clear {
  width: 100%;
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.8);
  cursor: pointer;
}

/* Post / About mode */
.mode-tabs {
  display: flex;
  padding: 4px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.28);
}

.mode-tab {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--li-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.mode-tab:hover {
  background: rgba(10, 102, 194, 0.08);
  color: var(--li-text);
}

.mode-tab.is-active {
  background: rgba(255, 255, 255, 0.72);
  color: var(--li-blue);
  box-shadow: var(--glass-inset), 0 2px 10px rgba(10, 102, 194, 0.12);
}

.mode-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.mode-panel[hidden] {
  display: none !important;
}

.pane-input--about {
  min-height: 120px;
  max-height: min(32vh, 220px);
  resize: vertical;
  font-size: 12px;
  line-height: 1.45;
}

.cv-upload {
  margin-bottom: 10px;
}

.cv-dropzone {
  border: 1.5px dashed rgba(10, 102, 194, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.cv-dropzone.is-dragover {
  border-color: var(--li-blue);
  background: rgba(55, 143, 233, 0.12);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.cv-dropzone.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

.cv-dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
  margin: 0;
  min-height: 120px;
  border-radius: 13px;
}

.cv-dropzone-label:focus {
  outline: none;
}

.cv-dropzone-label:focus-visible {
  outline: 2px solid rgba(10, 102, 194, 0.45);
  outline-offset: 2px;
}

.cv-dropzone-icon {
  color: var(--li-blue);
  margin-bottom: 2px;
  opacity: 0.92;
}

.cv-dropzone-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--li-text);
  letter-spacing: -0.01em;
}

.cv-dropzone-browse {
  font-size: 12px;
  color: var(--li-blue);
  font-weight: 600;
}

.cv-dropzone-formats {
  font-size: 10px;
  color: var(--li-muted);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.35;
  max-width: 280px;
}

.cv-dropzone-privacy {
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--li-muted);
  line-height: 1.35;
  text-align: center;
}

.cv-file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cv-file-chip[hidden] {
  display: none !important;
}

.cv-file-chip-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.25);
  color: #047857;
  font-weight: 700;
  font-size: 14px;
}

.cv-file-chip-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv-file-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--li-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-file-size {
  font-size: 10px;
  color: var(--li-muted);
}

.cv-file-clear {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--li-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-weight: 400;
}

.cv-file-clear:hover {
  background: rgba(254, 242, 242, 0.95);
  color: #b91c1c;
}

.cv-parse-line {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--li-blue);
  font-weight: 600;
  text-align: center;
}

.cv-parse-line[hidden] {
  display: none !important;
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--li-blue);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: var(--glass-inset);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.about-card {
  min-height: 0;
}

.about-card--has-result {
  min-height: min(68vh, 560px);
}

.about-card--has-result .about-pane-source {
  max-height: min(26vh, 200px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.about-card--has-result .about-pane-out {
  flex: 1;
  min-height: 180px;
}

.about-result-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-transparency: reduce) {
  body::before,
  body::after {
    opacity: 0.35;
    filter: blur(40px);
  }

  .app-shell,
  .card,
  .topbar,
  .translator-pane--from,
  .translator-pane--to,
  .translator-bridge,
  .pane-input,
  .pane-output,
  .btn-copy,
  .profile-input {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .app-shell {
    background: rgba(255, 255, 255, 0.94);
  }

  .card {
    background: rgba(255, 255, 255, 0.92);
  }
}
