:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --surface: #ffffff;
  --ink: #07152f;
  --text: #334155;
  --muted: #64748b;
  --line: #d8e0ec;
  --line-strong: #bcc8d8;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-deep: #0b1b3f;
  --brand-soft: #eaf0ff;
  --accent: #7c3aed;
  --accent-soft: #efe9ff;
  --red: #f43f5e;
  --red-soft: #ffe3e9;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --green: #10b981;
  --green-soft: #dff9ef;
  --yellow: #f59e0b;
  --yellow-soft: #fff3d6;
  --purple: #7c3aed;
  --violet: #7c3aed;
  --orange: #f97316;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --max: 1780px;
  --body-bg:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.13), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.11), transparent 26%),
    radial-gradient(circle at 58% 86%, rgba(37, 99, 235, 0.09), transparent 30%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.06), transparent 34%),
    linear-gradient(220deg, rgba(16, 185, 129, 0.08), transparent 38%),
    linear-gradient(180deg, #fbfdff 0%, #f3f6ff 46%, #f8fbff 100%);
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --panel-bg: rgba(255, 255, 255, 0.96);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101827;
  --surface: #1e293b;
  --ink: #f8fafc;
  --text: #dbeafe;
  --muted: #a9bbd3;
  --line: #334155;
  --line-strong: #475569;
  --brand: #818cf8;
  --brand-strong: #6366f1;
  --brand-deep: #eff6ff;
  --brand-soft: rgba(99, 102, 241, 0.18);
  --accent: #a78bfa;
  --accent-soft: rgba(124, 58, 237, 0.2);
  --red-soft: rgba(244, 63, 94, 0.16);
  --blue-soft: rgba(37, 99, 235, 0.2);
  --green-soft: rgba(16, 185, 129, 0.16);
  --yellow-soft: rgba(245, 158, 11, 0.16);
  --gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 55%, #ec4899 100%);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
  --body-bg:
    radial-gradient(circle at 16% 18%, rgba(124, 58, 237, 0.14), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(16, 185, 129, 0.1), transparent 30%),
    radial-gradient(circle at 52% 84%, rgba(37, 99, 235, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(99, 102, 241, 0.12), transparent 360px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent 42%),
    #101827;
  --topbar-bg: rgba(15, 23, 42, 0.92);
  --panel-bg: rgba(30, 41, 59, 0.96);
  --card-bg: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--body-bg);
  font-family:
    Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100svh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(18px);
}

.donation-strip {
  position: sticky;
  top: 78px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 9px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 42%, #ec4899 100%);
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.2);
}

.donation-strip-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 0.95rem;
}

.donation-strip-copy strong {
  font-weight: 900;
}

.donation-strip-copy span:last-child {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
}

.donation-pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.donation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.donation-button:hover,
.donation-button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(255, 255, 255, 0.28);
}

.donation-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.donation-modal.hidden {
  display: none;
}

.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.donation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 47, 0.66);
  backdrop-filter: blur(10px);
}

.donation-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.18), transparent 34%),
    radial-gradient(circle at 92% 14%, rgba(16, 185, 129, 0.14), transparent 30%),
    var(--panel-bg);
  box-shadow: 0 34px 90px rgba(7, 21, 47, 0.28);
}

.donation-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.donation-close svg {
  width: 18px;
  height: 18px;
}

.donation-eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donation-card h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.donation-intro {
  max-width: 620px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.donation-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.donation-amounts button {
  min-width: 84px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  font-weight: 900;
}

.donation-amounts button.is-active,
.donation-amounts button:hover,
.donation-amounts button:focus-visible {
  color: #ffffff;
  border-color: transparent;
  background: var(--gradient);
}

.donation-custom.hidden {
  display: none;
}

.donation-custom {
  display: grid;
  gap: 8px;
  width: min(260px, 100%);
  margin: -4px 0 18px;
  color: var(--ink);
  font-weight: 850;
}

.donation-custom > span:first-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.donation-custom-input {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.donation-custom-input strong {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--brand);
  border-right: 1px solid var(--line);
}

.donation-custom-input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  outline: 0;
}

.donation-methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.donation-method {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 12px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}

.donation-method:hover,
.donation-method:focus-visible,
.donation-method.is-active {
  border-color: rgba(124, 58, 237, 0.52);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

.donation-method strong,
.donation-method small {
  grid-column: 2;
}

.donation-method strong {
  align-self: end;
  font-size: 1rem;
  font-weight: 950;
}

.donation-method small {
  color: var(--muted);
  line-height: 1.35;
}

.donation-method-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: 3px;
}

.donation-method-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
}

.donation-method-icon svg {
  width: 22px;
  height: 22px;
}

.donation-method-icon.upi { background: linear-gradient(135deg, #10b981, #2563eb); }
.donation-method-icon.card { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.donation-method-icon.globe { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.donation-method-icon.crypto { background: linear-gradient(135deg, #f59e0b, #f43f5e); }

.donation-step {
  display: none;
}

.donation-step.is-active {
  display: grid;
}

.donation-tip-form {
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.donation-form-head,
.donation-network-head {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.donation-form-head > div,
.donation-network-head > div {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.donation-form-head strong,
.donation-network-head strong {
  font-size: 1rem;
  font-weight: 950;
}

.donation-form-head span,
.donation-network-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.donation-secure-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.1);
  white-space: nowrap;
  font-size: 0.78rem !important;
  font-weight: 900;
}

.donation-secure-note svg {
  width: 15px;
  height: 15px;
}

.donation-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.donation-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.donation-fields small {
  color: var(--muted);
  font-weight: 750;
}

.donation-fields input,
.donation-fields textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: 0;
}

.donation-fields input {
  min-height: 44px;
  padding: 0 12px;
}

.donation-fields textarea {
  resize: vertical;
  min-height: 84px;
  padding: 12px;
}

.donation-fields input:focus,
.donation-fields textarea:focus,
.donation-custom-input:focus-within {
  border-color: rgba(124, 58, 237, 0.62);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.donation-message-field {
  grid-column: 1 / -1;
}

.donation-network-panel {
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.donation-back-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.donation-back-step svg {
  width: 16px;
  height: 16px;
}

.donation-coins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.donation-coins button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.donation-coins button img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

.donation-coins button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donation-coins button.is-active,
.donation-coins button:hover,
.donation-coins button:focus-visible {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 9px 20px rgba(244, 63, 94, 0.16);
  transform: translateY(-1px);
}

.donation-wallet-panel {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.donation-qr-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.donation-qr-card img {
  display: block;
  width: min(100%, 164px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
}

.donation-qr-card figcaption {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 900;
}

.donation-address-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px dashed rgba(124, 58, 237, 0.42);
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.08);
}

.donation-address-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.donation-selected-network {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.donation-selected-network img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.donation-address-card small {
  color: var(--brand);
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.donation-address-card strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92rem;
}

.donation-network-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 12px;
  color: #92400e;
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}

.donation-supported-assets {
  display: grid;
  gap: 7px;
}

.donation-supported-assets > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.donation-supported-assets > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.donation-supported-assets > div > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.donation-supported-assets > div > span img,
.donation-supported-assets > div > span b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  font-size: 0.66rem;
}

.donation-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.donation-address-actions button,
.donation-address-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.donation-address-actions svg {
  width: 15px;
  height: 15px;
  margin-right: 7px;
}

.donation-address-actions button:disabled,
.donation-address-actions a[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
}

.donation-submit-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.donation-paid-button.hidden {
  display: none;
}

.donation-paid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: fit-content;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #2563eb);
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.18);
}

.donation-paid-button:hover,
.donation-paid-button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(16, 185, 129, 0.2);
}

.donation-paid-button svg {
  width: 18px;
  height: 18px;
}

.donation-submit-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: fit-content;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--gradient);
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.donation-submit-note svg {
  width: 17px;
  height: 17px;
}

.donation-submit-note:disabled {
  opacity: 0.62;
  cursor: wait;
}

.donation-preview-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(16, 185, 129, 0.26);
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.08);
}

.donation-preview-panel div {
  display: grid;
  gap: 4px;
}

.donation-preview-panel span {
  color: var(--muted);
  font-size: 0.9rem;
}

.donation-preview-panel button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--gradient);
  cursor: pointer;
  font-weight: 900;
}

:root[data-theme="dark"] .donation-card,
:root[data-theme="dark"] .donation-method,
:root[data-theme="dark"] .donation-amounts button {
  background-color: rgba(15, 23, 42, 0.72);
}

:root[data-theme="dark"] .donation-custom-input {
  background: rgba(15, 23, 42, 0.72);
}

:root[data-theme="dark"] .donation-tip-form,
:root[data-theme="dark"] .donation-network-panel,
:root[data-theme="dark"] .donation-fields input,
:root[data-theme="dark"] .donation-fields textarea,
:root[data-theme="dark"] .donation-coins button,
:root[data-theme="dark"] .donation-address-actions button,
:root[data-theme="dark"] .donation-address-actions a,
:root[data-theme="dark"] .donation-back-step {
  background: rgba(15, 23, 42, 0.72);
}

:root[data-theme="dark"] .donation-secure-note {
  color: #86efac !important;
}

:root[data-theme="dark"] .donation-network-warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

:root[data-theme="dark"] .donation-supported-assets > div > span {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.14);
}

:root[data-theme="dark"] .donation-close {
  background: rgba(15, 23, 42, 0.76);
}

body.donation-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .donation-strip {
    top: 64px;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 14px;
    text-align: center;
  }

  .donation-strip-copy {
    justify-content: center;
    width: 100%;
    font-size: 0.84rem;
  }

  .donation-strip-copy span:last-child {
    display: none;
  }

  .donation-button {
    min-height: 30px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .donation-methods {
    grid-template-columns: 1fr;
  }

  .donation-wallet-panel {
    grid-template-columns: 1fr;
  }

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

  .donation-qr-card img {
    width: min(100%, 190px);
  }

  .donation-fields {
    grid-template-columns: 1fr;
  }

  .donation-address-actions {
    justify-content: stretch;
  }

  .donation-address-actions button,
  .donation-address-actions a {
    flex: 1 1 150px;
  }

  .donation-preview-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

.brand,
.desktop-nav,
.account-nav,
.tool-actions,
.file-row,
.inline-controls,
.download-row,
.signature-modes,
.range-pair {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 232px;
}

.brand-icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #fff;
  box-shadow:
    0 12px 24px rgba(37, 99, 235, 0.12),
    inset 0 0 0 1px var(--line);
}

.brand-file {
  position: relative;
  display: block;
  width: 24px;
  height: 30px;
  border: 3px solid var(--brand-deep);
  border-radius: 5px;
  background: #fff;
}

.brand-fold {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-left: 3px solid var(--brand-deep);
  border-bottom: 3px solid var(--brand-deep);
  border-radius: 0 4px 0 3px;
  background: #f8fbff;
}

.brand-shield {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 15px;
  height: 17px;
  border: 3px solid var(--brand);
  border-radius: 9px 9px 12px 12px;
  transform: translateX(-50%);
  background: #f6f8ff;
  clip-path: polygon(50% 0, 92% 18%, 88% 68%, 50% 100%, 12% 68%, 8% 18%);
}

.brand-shield::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.brand-word {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--ink);
  font-size: 1.62rem;
  font-weight: 950;
  line-height: 1;
}

.brand-word strong {
  color: transparent;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 950;
}

.brand-word em {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 800;
}

.desktop-nav {
  justify-content: flex-start;
  gap: 24px;
  min-width: 0;
}

.desktop-nav a,
.tools-dropdown summary,
.account-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
  white-space: nowrap;
}

.desktop-nav a:hover,
.tools-dropdown summary:hover,
.account-nav a:hover {
  color: var(--brand);
}

.desktop-nav a.is-active,
.quick-menu a.is-active,
.account-nav a.is-active {
  color: var(--brand);
}

.tools-dropdown summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}

.tools-dropdown {
  position: static;
}

.tools-dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.tools-dropdown[open] summary {
  color: var(--brand);
}

.tools-dropdown[open] .dropdown-chevron {
  transform: translateY(2px) rotate(-135deg);
}

.tools-mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 24px;
  right: 24px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 20px;
  width: auto;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  overflow: auto;
}

.tools-mega-panel::before {
  position: absolute;
  top: -7px;
  left: 42%;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(45deg);
  content: "";
}

.tools-mega-group h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tools-mega-group > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.tools-mega-group a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 4px 6px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: normal;
}

.tools-mega-group a:hover,
.tools-mega-group a:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
}

.tools-mega-group .tool-icon,
.tools-mega-group .tool-icon .solo {
  width: 28px;
  height: 28px;
}

.tools-mega-group .tool-icon {
  filter: none;
}

.tools-mega-group .tool-icon .solo {
  border-radius: 6px;
}

.tools-mega-group .tool-icon .symbol {
  font-size: 0.58rem;
}

.account-nav {
  justify-content: flex-end;
  gap: 16px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 0.84rem;
  font-weight: 850;
}

.theme-toggle {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.theme-icon {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle {
  background: #17171b;
  border-color: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  color: #fff !important;
  background: var(--gradient);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.app-grid-button {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 6px;
  width: 38px;
  height: 44px;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.app-grid-button span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-grid-button.is-open span,
.app-grid-button:hover span {
  background: var(--brand);
}

:root[data-theme="dark"] .app-grid-button span {
  background: #7dd3fc;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.18), 0 0 12px rgba(125, 211, 252, 0.2);
}

:root[data-theme="dark"] .app-grid-button.is-open span,
:root[data-theme="dark"] .app-grid-button:hover span {
  background: #a78bfa;
}

.quick-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 28px;
  z-index: 60;
  display: none;
  width: min(300px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.quick-menu.is-open {
  display: grid;
  gap: 6px;
}

.quick-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 850;
}

.quick-menu a:hover,
.quick-menu a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand);
}

.workspace {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.dashboard-section,
.tool-section {
  padding: 0;
}

.tool-section {
  display: none;
  margin: 0 0 34px;
  scroll-margin-top: 78px;
}

.tool-section.is-active {
  display: block;
}

.section-heading {
  max-width: 1680px;
  margin: 0 auto 34px;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.1rem, 5.5vw, 5.6rem);
  font-weight: 950;
  letter-spacing: 0;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.64rem;
}

.section-heading p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.46;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  margin: 0 0 8px !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted) !important;
  background: transparent;
  font-size: 1.28rem !important;
  font-weight: 660;
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(560px, 0.9fr);
  align-items: center;
  gap: 38px;
  padding: 10px 0 28px;
  border-bottom: 1px solid var(--line);
}

.brand-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.hero-brand-logo {
  display: block;
  width: clamp(250px, 26vw, 430px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(75, 27, 174, 0.12));
}

.hero-compress-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 18px;
  padding: 0 24px;
  border-radius: 12px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
  font-weight: 950;
}

.hero-compress-cta:hover,
.hero-compress-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(37, 99, 235, 0.28);
}

.hero-compress-mobile {
  display: none;
}

.hero-logo-mark {
  display: grid;
  place-items: center;
  width: clamp(116px, 10vw, 156px);
  height: clamp(116px, 10vw, 156px);
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 24px 50px rgba(37, 99, 235, 0.12),
    inset 0 0 0 1px var(--line);
}

.hero-logo-mark .brand-file {
  width: 74px;
  height: 92px;
  border-width: 8px;
  border-radius: 12px;
}

.hero-logo-mark .brand-fold {
  top: -8px;
  right: -8px;
  width: 30px;
  height: 30px;
  border-left-width: 8px;
  border-bottom-width: 8px;
  border-radius: 0 8px 0 8px;
}

.hero-logo-mark .brand-shield {
  bottom: 13px;
  width: 42px;
  height: 46px;
  border-width: 6px;
}

.hero-logo-mark .brand-shield::after {
  left: 10px;
  top: 15px;
  width: 16px;
  height: 9px;
  border-left-width: 5px;
  border-bottom-width: 5px;
}

.brand-hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}

.brand-hero h1 strong {
  color: transparent;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.brand-hero h1 em {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.36em;
  font-style: normal;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  border-left: 1px solid var(--line);
}

.trust-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-height: 174px;
  padding: 12px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.trust-card > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.trust-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.trust-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.trust-shield > span::before,
.trust-lock > span::before {
  content: "";
  width: 28px;
  height: 34px;
  border: 4px solid var(--purple);
  border-radius: 16px 16px 20px 20px;
  clip-path: polygon(50% 0, 94% 18%, 88% 70%, 50% 100%, 12% 70%, 6% 18%);
}

.trust-shield > span::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 8px;
  border-left: 4px solid var(--purple);
  border-bottom: 4px solid var(--purple);
  transform: rotate(-45deg);
}

.trust-code > span {
  color: var(--green);
  background: var(--green-soft);
}

.trust-code > span::before {
  content: "</>";
  width: 44px;
  height: 34px;
  border: 4px solid var(--green);
  border-radius: 8px;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 28px;
}

.trust-gift > span {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.trust-gift > span::before {
  content: "";
  width: 35px;
  height: 35px;
  border: 4px solid var(--yellow);
  border-radius: 6px;
  box-shadow: inset 12px 0 0 transparent;
}

.trust-gift > span::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 42px;
  background: var(--yellow);
  box-shadow: 0 -11px 0 9px transparent;
}

.trust-lock > span {
  background: var(--blue-soft);
}

.trust-lock > span::before {
  width: 30px;
  height: 24px;
  border-color: var(--brand);
  border-radius: 7px;
  clip-path: none;
}

.trust-lock > span::after {
  content: "";
  position: absolute;
  top: 21px;
  width: 24px;
  height: 22px;
  border: 4px solid var(--brand);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 34px;
}

.dashboard-controls {
  display: flex;
  justify-content: center;
  margin: 30px 0 18px;
}

.dashboard-search {
  display: grid;
  gap: 8px;
  width: min(720px, 100%);
}

.dashboard-search span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  font: inherit;
  font-weight: 700;
}

.dashboard-search input:focus {
  border-color: rgba(37, 99, 235, 0.62);
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.filter-pill {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 820;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.filter-pill.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
}

.dashboard-grid {
  display: block;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 276px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.tool-card:hover,
.tool-card.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-card h3 {
  margin-top: 24px;
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 880;
  line-height: 1.14;
}

.tool-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  text-wrap: auto;
}

.dashboard-empty {
  margin: 24px auto 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
  font-weight: 800;
}

.section-kicker {
  display: inline-flex;
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading.compact {
  max-width: 860px;
  margin: 0 auto 22px;
  text-align: center;
}

.section-heading.compact h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-heading.compact p:not(.section-kicker) {
  margin-left: auto;
  margin-right: auto;
}

.info-page {
  display: grid;
  gap: 28px;
}

.info-hero {
  display: grid;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 46px 28px 20px;
  text-align: center;
}

.info-hero h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
}

.info-hero p:not(.section-kicker) {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.info-email-link {
  justify-self: center;
  margin-top: 8px;
}

.info-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-highlight-card,
.info-copy-card,
.info-side-panel,
.info-side-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.info-highlight-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 22px;
}

.info-highlight-card strong,
.info-side-panel > strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.info-highlight-card span,
.info-copy-card p,
.info-side-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  text-wrap: auto;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.info-copy-stack {
  display: grid;
  gap: 18px;
}

.info-copy-card {
  padding: 28px;
}

.info-copy-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.info-copy-card p {
  margin-top: 12px;
  font-size: 1.02rem;
}

.info-side-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.info-side-grid {
  display: grid;
  gap: 12px;
}

.info-side-grid article {
  padding: 18px;
  box-shadow: none;
}

.info-side-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.story-band,
.review-section,
.faq-section {
  margin-top: 42px;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.story-band h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.04;
}

.story-band p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.55;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-grid article,
.review-card,
.faq-grid article {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.story-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
}

.story-grid strong,
.review-card strong {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 950;
}

.story-grid span,
.review-card p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  text-wrap: auto;
}

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

.review-card {
  display: grid;
  gap: 12px;
  min-height: 174px;
  padding: 24px;
}

.security-standard-section,
.docs-section {
  margin-top: 52px;
}

.security-standard-section {
  padding: 42px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(37, 99, 235, 0.05)),
    var(--panel-bg);
  box-shadow: var(--shadow);
}

.standard-grid,
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.standard-grid article,
.docs-grid article {
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
}

.standard-badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: var(--gradient);
  font-size: 0.92rem;
  font-weight: 950;
}

.standard-grid h3,
.docs-grid h3 {
  font-size: 1.18rem;
}

.standard-grid p,
.docs-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: auto;
}

.review-card span {
  color: #facc15;
  font-size: 1.04rem;
  letter-spacing: 1px;
  font-weight: 950;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 28px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 920;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 28px 24px;
  color: var(--muted);
  line-height: 1.55;
}

.review-card::before {
  content: "";
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: var(--gradient);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.faq-grid article {
  padding: 22px;
}

.faq-grid h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
  line-height: 1.2;
}

.markdown-preview {
  width: min(100%, 760px);
  min-height: 280px;
  margin: 0 auto;
  padding: 36px;
  color: #111827;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  margin: 0 0 14px;
  color: #111827;
  line-height: 1.15;
}

.markdown-preview p,
.markdown-preview li {
  color: #334155;
  line-height: 1.55;
  text-wrap: auto;
}

.markdown-preview code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2ff;
}

.new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 6px;
  color: #1f2b35;
  background: #dbeafe;
  font-size: 0.83rem;
  font-weight: 900;
}

.tool-icon {
  position: relative;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.08));
}

.icon-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.icon-tile.small {
  width: 32px;
  height: 32px;
  font-size: 0.92rem;
}

.icon-tile.back {
  left: 0;
  top: 0;
  color: currentColor;
  opacity: 0.9;
}

.icon-tile.front {
  right: 0;
  bottom: 0;
}

.tool-icon.red {
  color: var(--red);
}

.tool-icon.red .front,
.tool-icon.red .solo {
  background: var(--red);
}

.tool-icon.red .back {
  background: var(--red-soft);
}

.tool-icon.blue {
  color: var(--brand);
}

.tool-icon.blue .front,
.tool-icon.blue .solo {
  background: var(--brand);
}

.tool-icon.blue .back {
  background: var(--blue-soft);
}

.tool-icon.green {
  color: var(--green);
}

.tool-icon.green .front,
.tool-icon.green .solo {
  background: var(--green);
}

.tool-icon.green .back {
  background: var(--green-soft);
}

.tool-icon.yellow {
  color: var(--yellow);
}

.tool-icon.yellow .front,
.tool-icon.yellow .solo {
  background: var(--yellow);
}

.tool-icon.yellow .back {
  background: var(--yellow-soft);
}

.tool-icon.purple .front,
.tool-icon.purple .solo {
  background: var(--purple);
}

.tool-icon.violet .front,
.tool-icon.violet .solo {
  background: var(--violet);
}

.tool-icon.orange .front,
.tool-icon.orange .solo {
  background: var(--orange);
}

.tool-icon .solo {
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.tool-icon .quad {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  width: 62px;
  height: 62px;
}

.tool-icon .quad span {
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: var(--green);
  font-size: 1.25rem;
  font-weight: 950;
}

.tool-icon.page-numbers .quad span {
  background: var(--purple);
  font-size: 1rem;
}

.tool-icon.organize .quad {
  grid-template-columns: 22px 22px;
  grid-template-rows: 62px 22px 22px;
  gap: 6px;
  width: 62px;
}

.tool-icon.organize .quad span:first-child {
  grid-row: 1 / 4;
  background: var(--orange);
}

.tool-icon.organize .quad span {
  background: #f4b9a7;
  font-size: 0.92rem;
}

.tool-icon.forms .solo,
.tool-icon.crop .solo,
.tool-icon.watermark .solo,
.tool-icon.page-numbers .solo,
.tool-icon.signature .solo {
  background: var(--purple);
}

.tool-icon.repair .solo,
.tool-icon.ocr .solo,
.tool-icon.compress .solo {
  background: #86bd59;
}

.tool-icon.compare .solo,
.tool-icon.redact .solo,
.tool-icon.protect .solo,
.tool-icon.unlock .solo {
  background: var(--blue);
}

.tool-icon .symbol {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 950;
}

.tool-icon .thin {
  max-width: 54px;
  padding: 0 3px;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.badge-strong {
  color: var(--brand);
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--brand-soft);
}

.badge-stable {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.22);
  background: var(--green-soft);
}

.badge-beta {
  color: #2b5b99;
  border-color: rgba(79, 127, 184, 0.24);
  background: #eef5ff;
}

.badge-experimental {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.28);
  background: #fff2df;
}

.tool-panel {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(232, 239, 255, 0.7), rgba(255, 255, 255, 0.9) 48%, rgba(223, 249, 239, 0.52));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tool-header h2 {
  margin-top: 4px;
}

.tool-copy,
.tool-note,
.category-note,
.file-meta,
.status,
.limitation,
.empty-state,
.preview-caption {
  color: var(--muted);
  line-height: 1.55;
}

.tool-copy {
  max-width: 820px;
  margin: 10px 0 0;
}

.tool-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 20px;
  padding: 22px;
}

.tool-form,
.tool-output,
.preview-box,
.result-box {
  min-width: 0;
}

.tool-form {
  display: grid;
  gap: 14px;
}

.tool-output {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 300px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.035)),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.56);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tool-output.is-processing {
  border-color: rgba(99, 102, 241, 0.36);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.1), inset 0 1px rgba(255, 255, 255, 0.56);
}

.tool-output.is-success {
  border-color: rgba(16, 185, 129, 0.42);
}

.tool-output.is-error {
  border-color: rgba(244, 63, 94, 0.38);
}

.field,
.check-field {
  display: grid;
  gap: 7px;
}

.field span,
.check-field span,
.control-label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.check-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.check-field input {
  width: 18px;
  height: 18px;
}

.field input,
.field select,
.field textarea,
.input-like {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  outline: none;
}

.field input,
.field select {
  padding: 0 11px;
}

.field input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.field input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--brand);
}

.file-drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 176px;
  padding: 24px;
  border: 1.5px dashed #a8b7ce;
  border-radius: 16px;
  background:
    radial-gradient(circle at center 44px, rgba(37, 99, 235, 0.08), transparent 58px),
    #fff;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.file-drop-prompt {
  display: grid;
  place-items: center;
  gap: 7px;
}

.file-drop-zone:hover,
.file-drop-zone:focus-within {
  border-color: var(--brand);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.file-drop-zone strong {
  font-size: 1.04rem;
  font-weight: 900;
}

.file-drop-zone small {
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 760;
}

.file-selected-state {
  display: none;
  width: min(100%, 520px);
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  text-align: left;
}

.file-drop-zone.has-files {
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.44);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), #fff);
}

.file-drop-zone.has-files .file-drop-prompt {
  display: none;
}

.file-drop-zone.has-files .file-selected-state {
  display: grid;
}

.file-selected-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 0.72rem;
  font-weight: 950;
  overflow: hidden;
}

.file-selected-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.file-selected-copy strong,
.file-selected-copy small,
.file-selected-action {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-selected-copy strong {
  font-size: 0.98rem;
}

.file-selected-copy small {
  color: #526071;
  font-size: 0.84rem;
}

.file-selected-action {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 850;
}

.file-picker-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.file-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-add-button,
.file-clear-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.file-add-button {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.file-add-button:hover,
.file-add-button:focus-visible {
  filter: brightness(0.94);
}

.file-clear-button:hover,
.file-clear-button:focus-visible {
  border-color: var(--brand);
}

.file-selection-queue {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
}

.file-selection-queue[hidden] {
  display: none;
}

.file-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.file-queue-item > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.file-queue-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.file-queue-item small {
  color: var(--muted);
  font-size: 0.72rem;
}

.file-queue-item button {
  flex: 0 0 auto;
  border: 0;
  color: #b42318;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
}

.preview-box:empty {
  display: none;
}

.drop-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.drop-icon::before {
  content: "";
  width: 28px;
  height: 36px;
  border: 4px solid #fff;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.drop-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-left: 4px solid var(--brand);
  border-top: 4px solid var(--brand);
  transform: translateY(8px) rotate(45deg);
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.field textarea {
  min-height: 170px;
  padding: 11px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.range-pair {
  gap: 10px;
}

.range-pair input[type="range"] {
  flex: 1 1 auto;
}

.range-value {
  width: 54px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.range-value-wide {
  width: 96px;
}

.size-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}

.size-preset-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.size-preset-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #4f505a;
  font-weight: 850;
}

.size-preset-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.compress-size-summary {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.advanced-settings {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.72);
  padding: 12px;
}

.advanced-settings summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 950;
}

.advanced-settings[open] {
  background: #fff;
}

.advanced-settings .field {
  margin-top: 10px;
}

.inline-controls {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 132px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.16);
}

.button.warn {
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.24);
  background: #fff1f4;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.status {
  min-height: 24px;
  margin: 0;
  font-size: 0.9rem;
}

.status:empty {
  display: none;
}

.status.is-processing {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: 10px;
  color: var(--brand-deep);
  background: rgba(99, 102, 241, 0.08);
}

.status.is-processing::before {
  color: var(--brand);
  font-size: 1rem;
  letter-spacing: 4px;
  content: "•••••";
  animation: render-dots 1.15s ease-in-out infinite;
}

.status.is-error {
  color: var(--red);
}

.status.is-success {
  color: #047857;
}

.tool-note,
.limitation {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.9rem;
}

.limitation {
  border-color: rgba(244, 63, 94, 0.18);
  background: #fff4f7;
}

.preview-box,
.result-box {
  min-height: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: auto;
}

.render-stage {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 260px;
  padding: 24px;
  text-align: center;
}

.render-stage strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.render-stage small {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.render-stage-visual {
  position: relative;
  display: block;
  width: 88px;
  height: 104px;
  margin-bottom: 4px;
}

.render-stage-visual::before,
.render-stage-visual::after,
.render-stage-visual i {
  position: absolute;
  width: 62px;
  height: 82px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
  content: "";
}

.render-stage-visual::before {
  left: 0;
  top: 16px;
  transform: rotate(-8deg);
}

.render-stage-visual::after {
  right: 0;
  top: 8px;
  transform: rotate(7deg);
}

.render-stage-visual i {
  left: 13px;
  top: 0;
  z-index: 2;
  overflow: hidden;
}

.render-stage-visual i::before {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 18px;
  height: 7px;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 15px 0 rgba(99, 102, 241, 0.2), 0 30px 0 rgba(16, 185, 129, 0.18);
  content: "";
}

.tool-output.is-processing .render-stage-visual {
  animation: render-float 1.5s ease-in-out infinite;
}

.tool-output.is-processing .render-stage-visual i::before {
  animation: render-scan 1.15s ease-in-out infinite alternate;
}

@keyframes render-dots {
  0%, 100% { opacity: 0.28; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}

@keyframes render-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes render-scan {
  from { transform: translateY(0); }
  to { transform: translateY(25px); }
}

.result-box textarea {
  width: 100%;
  min-height: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.image-result-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.image-result-grid img,
.image-result-card img {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2f7 75%),
    linear-gradient(-45deg, transparent 75%, #eef2f7 75%),
    #ffffff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.image-result-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.image-result-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.image-result-card p,
.image-result-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  border: 1px dashed transparent;
  text-align: center;
}

.privacy-footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 26px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--gradient);
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.18);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 0.9fr;
  gap: 36px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 26px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.site-footer,
.site-footer a {
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.site-footer nav,
.site-footer > div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-brand {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.footer-icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.footer-brand .footer-icon {
  grid-row: span 2;
}

.footer-brand span,
.footer-brand small,
.footer-note {
  line-height: 1.45;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand);
}

.pet-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
  font-family: inherit;
}

.pet-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-bg);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  font-weight: 950;
}

.pet-chat-button:hover,
.pet-chat-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.22);
}

.pet-bot {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px 16px 18px 18px;
  background: var(--gradient);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.12);
  animation: petIdle 2.6s ease-in-out infinite, petHue 3.2s linear infinite;
  transform-origin: 50% 100%;
  --pet-eye-x: 0px;
  --pet-eye-y: 0px;
}

.pet-bot::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 18px;
  height: 10px;
  border: 3px solid var(--brand);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.pet-bot::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 12px;
  width: 8px;
  height: 12px;
  border-radius: 999px;
  background: #7c3aed;
}

.pet-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.pet-face span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  animation: petBlink 4.6s ease-in-out infinite, petEyes 5.4s ease-in-out infinite;
  transform: translate(var(--pet-eye-x), var(--pet-eye-y));
}

.pet-face span:nth-child(2) {
  animation-delay: 0.08s, 0.2s;
}

.pet-chat.is-open .pet-bot {
  animation: petDance 0.86s ease-in-out infinite, petHue 1.55s linear infinite;
}

.pet-bot.is-answering {
  animation: petAnswer 0.62s ease-in-out, petHue 1s linear infinite;
}

.pet-chat.is-open .pet-bot.pet-activity-spin {
  animation: petVibrate 0.32s ease-in-out infinite, petHue 0.65s linear infinite;
}

.pet-chat.is-open .pet-bot.pet-activity-hop {
  animation: petHop 0.58s ease-in-out infinite, petHue 0.78s linear infinite;
}

.pet-chat.is-open .pet-bot.pet-activity-wiggle {
  animation: petWiggle 0.42s ease-in-out infinite, petHue 0.72s linear infinite;
}

.pet-chat.is-open .pet-bot.pet-activity-zoom {
  animation: petZoom 0.5s ease-in-out infinite, petHue 0.62s linear infinite;
}

.pet-chat.is-open .pet-bot.pet-activity-spin::after,
.pet-chat.is-open .pet-bot.pet-activity-zoom::after {
  background: #f43f5e;
}

@keyframes petIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes petDance {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-8px) scale(1.08); }
  50% { transform: translateY(1px) scale(0.94); }
  75% { transform: translateY(-5px) scale(1.06); }
}

@keyframes petVibrate {
  0%, 100% { transform: translateX(0) scale(1); }
  18% { transform: translateX(-8px) scale(1.1); }
  36% { transform: translateX(8px) scale(1.08); }
  54% { transform: translateX(-7px) scale(1.11); }
  72% { transform: translateX(7px) scale(1.06); }
}

@keyframes petHop {
  0%, 100% { transform: translateY(0) scale(1); border-radius: 16px 16px 18px 18px; }
  28% { transform: translateY(-18px) scale(1.09); border-radius: 20px 14px 18px 16px; }
  58% { transform: translateY(2px) scale(1.15, 0.84); border-radius: 14px 20px 15px 21px; }
}

@keyframes petWiggle {
  0%, 100% { transform: translateX(0) scale(1); }
  20% { transform: translateX(-7px) scale(1.07); }
  40% { transform: translateX(7px) scale(1.08); }
  60% { transform: translateX(-6px) scale(1.05); }
  80% { transform: translateX(6px) scale(1.1); }
}

@keyframes petZoom {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(8px, -9px) scale(1.2); }
  50% { transform: translate(-7px, 3px) scale(0.9); }
  75% { transform: translate(6px, -6px) scale(1.16); }
}

@keyframes petAnswer {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-12px) scale(1.16); }
  70% { transform: translateY(1px) scale(0.9); }
}

@keyframes petHue {
  0% { filter: hue-rotate(0deg); }
  25% { filter: hue-rotate(90deg) saturate(1.3); }
  50% { filter: hue-rotate(180deg) saturate(1.55); }
  75% { filter: hue-rotate(285deg) saturate(1.35); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes petBlink {
  0%, 92%, 100% { height: 5px; }
  95% { height: 1px; }
}

@keyframes petEyes {
  0%, 100% { margin-top: 0; }
  45% { margin-top: -1px; }
  70% { margin-top: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .pet-bot,
  .pet-chat.is-open .pet-bot,
  .pet-bot.is-answering,
  .pet-chat.is-open .pet-bot.pet-activity-spin,
  .pet-chat.is-open .pet-bot.pet-activity-hop,
  .pet-chat.is-open .pet-bot.pet-activity-wiggle,
  .pet-chat.is-open .pet-bot.pet-activity-zoom,
  .pet-face span {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

.pet-chat-panel {
  display: none;
  width: min(360px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 112px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-bg);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.pet-chat.is-open .pet-chat-panel {
  display: block;
}

.pet-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.pet-chat-head div {
  display: grid;
  gap: 2px;
}

.pet-chat-head strong,
.pet-email-form strong {
  color: var(--ink);
  font-weight: 950;
}

.pet-chat-head span,
.pet-email-form small {
  color: var(--muted);
  font-size: 0.84rem;
}

.pet-chat-head button {
  border: 0;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 8px 10px;
}

.pet-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 230px;
  overflow: auto;
  padding: 14px;
}

.bot-message,
.user-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.42;
  text-wrap: auto;
}

.bot-message {
  color: var(--text);
  background: var(--brand-soft);
  white-space: pre-line;
}

.pet-message-loading {
  display: inline-flex;
  width: fit-content;
  min-width: 76px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pet-message-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pet-loading-dot 1s ease-in-out infinite;
}

.pet-message-loading span:nth-child(2) { animation-delay: 0.1s; }
.pet-message-loading span:nth-child(3) { animation-delay: 0.2s; }
.pet-message-loading span:nth-child(4) { animation-delay: 0.3s; }
.pet-message-loading span:nth-child(5) { animation-delay: 0.4s; }

@keyframes pet-loading-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .pet-message-loading span { animation: none; opacity: 0.7; }
}

.pet-message-action {
  justify-self: start;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  color: var(--brand);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 850;
}

.pet-message-action:hover,
.pet-message-action:focus-visible {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.user-message {
  justify-self: end;
  max-width: 88%;
  color: #fff;
  background: var(--gradient);
}

.pet-quick-actions {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px;
}

.pet-quick-actions button {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
}

.pet-quick-actions button:first-child {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
}

.pet-quick-actions button:hover,
.pet-quick-actions button:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--brand);
  transform: translateY(-1px);
}

.pet-quick-actions button:first-child:hover,
.pet-quick-actions button:first-child:focus-visible {
  color: #fff;
}

.pet-quick-actions.hidden {
  display: none !important;
}

.pet-chat-tools {
  display: flex;
  justify-content: flex-start;
  padding: 0 14px 12px;
}

.pet-chat-tools button {
  min-height: 36px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  padding: 0 12px;
}

.pet-chat-tools.hidden {
  display: none !important;
}

.pet-chat-input,
.pet-support-action,
.pet-email-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.pet-chat-input {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pet-turnstile {
  grid-column: 1 / -1;
  max-width: 100%;
  overflow: hidden;
}

.pet-turnstile:empty {
  display: none;
}

.pet-support-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.pet-support-action button {
  min-height: 36px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  cursor: pointer;
  font-weight: 950;
  padding: 0 12px;
}

.pet-chat-input input,
.pet-email-form input,
.pet-email-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  padding: 11px 12px;
  font: inherit;
}

.pet-email-form textarea {
  min-height: 84px;
  resize: vertical;
}

.pet-chat-input button,
.pet-email-form button {
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--gradient);
  cursor: pointer;
  font-weight: 950;
  padding: 0 14px;
}

.pet-chat-input button:disabled,
.pet-chat-input input:disabled {
  cursor: wait;
  opacity: 0.64;
}

.pet-email-form button {
  min-height: 44px;
}

.pet-support-action.hidden,
.pet-email-form.hidden {
  display: none !important;
}

:root[data-theme="dark"] .brand-word,
:root[data-theme="dark"] .dashboard-search span,
:root[data-theme="dark"] .field span,
:root[data-theme="dark"] .check-field span,
:root[data-theme="dark"] .control-label {
  color: var(--ink);
}

:root[data-theme="dark"] .hero-brand-logo {
  filter: drop-shadow(0 22px 30px rgba(99, 102, 241, 0.28));
}

:root[data-theme="dark"] .dashboard-search input,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .input-like,
:root[data-theme="dark"] .preview-box,
:root[data-theme="dark"] .result-box,
:root[data-theme="dark"] .tool-panel,
:root[data-theme="dark"] .file-drop-zone,
:root[data-theme="dark"] .button,
:root[data-theme="dark"] .badge {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

:root[data-theme="dark"] .tool-header {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.48), rgba(15, 23, 42, 0.92));
}

:root[data-theme="dark"] .filter-pill {
  color: var(--text);
  border-color: var(--line);
  background: rgba(30, 41, 59, 0.86);
}

:root[data-theme="dark"] .filter-pill.is-active,
:root[data-theme="dark"] .button.primary,
:root[data-theme="dark"] .mode-button.is-active {
  color: #fff;
  background: var(--gradient);
}

:root[data-theme="dark"] .file-drop-zone {
  background:
    radial-gradient(circle at center 44px, rgba(129, 140, 248, 0.14), transparent 58px),
    var(--surface);
}

:root[data-theme="dark"] .file-drop-zone.has-files {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(30, 41, 59, 0.96));
}

:root[data-theme="dark"] .file-selected-icon {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.34);
  background: #0f172a;
}

:root[data-theme="dark"] .file-selected-copy small,
:root[data-theme="dark"] .tool-copy,
:root[data-theme="dark"] .tool-note,
:root[data-theme="dark"] .category-note,
:root[data-theme="dark"] .file-meta,
:root[data-theme="dark"] .status,
:root[data-theme="dark"] .limitation,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .preview-caption {
  color: var(--muted);
}

:root[data-theme="dark"] .section-kicker {
  color: #a78bfa;
  text-shadow: none;
}

:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .story-band h2,
:root[data-theme="dark"] .review-section h2 {
  color: #f8fafc;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .story-band {
  border-color: rgba(129, 140, 248, 0.24);
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94)),
    var(--surface);
}

:root[data-theme="dark"] .story-band p {
  color: #dbeafe;
}

:root[data-theme="dark"] .story-grid article,
:root[data-theme="dark"] .review-card,
:root[data-theme="dark"] .faq-grid article {
  border-color: rgba(148, 163, 184, 0.32);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .story-grid strong,
:root[data-theme="dark"] .review-card strong,
:root[data-theme="dark"] .faq-grid h3 {
  color: #ffffff;
}

:root[data-theme="dark"] .story-grid span,
:root[data-theme="dark"] .review-card p,
:root[data-theme="dark"] .faq-grid p {
  color: #cbd5e1;
}

:root[data-theme="dark"] .review-card span {
  color: #facc15;
}

:root[data-theme="dark"] .tool-note,
:root[data-theme="dark"] .limitation,
:root[data-theme="dark"] .permission-grid,
:root[data-theme="dark"] .size-preset-button,
:root[data-theme="dark"] .image-result-card,
:root[data-theme="dark"] .markdown-preview code {
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.72);
}

:root[data-theme="dark"] .table-preview {
  color: var(--ink);
}

:root[data-theme="dark"] .table-preview th {
  background: #1e3a8a;
}

:root[data-theme="dark"] .table-preview th,
:root[data-theme="dark"] .table-preview td {
  border-color: var(--line);
}

:root[data-theme="dark"] .doc-preview,
:root[data-theme="dark"] .html-preview,
:root[data-theme="dark"] .markdown-preview,
:root[data-theme="dark"] .docx-layout-page,
:root[data-theme="dark"] canvas.pdf-canvas,
:root[data-theme="dark"] canvas.signature-pad,
:root[data-theme="dark"] .crop-image-preview {
  color: #111827;
  background: #fff;
}

:root[data-theme="dark"] .canvas-wrap,
:root[data-theme="dark"] .pdf-preview-wrap,
:root[data-theme="dark"] .crop-stage {
  border-color: var(--line);
  background:
    linear-gradient(45deg, rgba(30, 41, 59, 0.9) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(30, 41, 59, 0.9) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(30, 41, 59, 0.9) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(30, 41, 59, 0.9) 75%),
    #0f172a;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.privacy-footer > * {
  display: grid;
  gap: 3px;
  min-height: 72px;
  align-content: center;
  padding: 14px 28px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.privacy-footer > *:last-child {
  border-right: 0;
}

.privacy-footer small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 500;
}

.support-link {
  text-decoration: none;
  transition: background-color 160ms ease;
}

.support-link:hover,
.support-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.doc-preview,
.html-preview {
  width: min(100%, 794px);
  min-height: 280px;
  margin: 0 auto;
  padding: 34px;
  color: #111;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.doc-preview p,
.html-preview p {
  text-wrap: auto;
}

.docx-layout-preview {
  display: grid;
  gap: 18px;
  min-width: max-content;
  padding: 4px;
}

.docx-layout-page {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  color: #111;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(27, 29, 42, 0.08);
}

.docx-layout-text {
  position: absolute;
  display: block;
  overflow: hidden;
  white-space: pre;
  line-height: 1;
  letter-spacing: 0;
}

.docx-layout-image {
  position: absolute;
  display: block;
  object-fit: fill;
}

.table-preview {
  width: 100%;
  border-collapse: collapse;
  color: #111;
  font-size: 0.82rem;
}

.table-preview th,
.table-preview td {
  max-width: 220px;
  padding: 7px 8px;
  border: 1px solid #d5ddd8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-preview th {
  background: #eef4ff;
  font-weight: 900;
}

.canvas-wrap,
.pdf-preview-wrap,
.crop-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, #f4f4f8 25%, transparent 25%),
    linear-gradient(-45deg, #f4f4f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f4f4f8 75%),
    linear-gradient(-45deg, transparent 75%, #f4f4f8 75%),
    #ffffff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  overflow: auto;
}

.page-frame {
  position: relative;
  display: inline-block;
  max-width: calc(100% - 24px);
  margin: 12px;
  line-height: 0;
}

canvas.pdf-canvas,
canvas.signature-pad {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
}

.crop-image-preview {
  display: block;
  max-width: min(100%, 760px);
  max-height: 460px;
  width: auto;
  height: auto;
  background: #fff;
}

canvas.signature-pad {
  width: 100%;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  touch-action: none;
}

.signature-marker {
  position: absolute;
  z-index: 3;
  max-width: 80%;
  height: auto;
  border: 1px dashed rgba(37, 99, 235, 0.72);
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.crop-rect {
  position: absolute;
  z-index: 4;
  border: 2px solid var(--brand);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 0 9999px rgba(23, 33, 28, 0.28);
  pointer-events: none;
}

.signature-modes {
  gap: 8px;
}

.mode-button {
  min-width: 94px;
}

.mode-button.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
}

.download-row,
.file-row {
  flex-wrap: wrap;
  gap: 10px;
}

.file-meta,
.preview-caption {
  margin: 0;
  font-size: 0.84rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 1420px) {
  .tools-mega-panel {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    max-height: min(72vh, 680px);
  }

  .brand-hero {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    border-left: 0;
  }

  .tool-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .desktop-nav {
    gap: 18px;
  }

  .account-nav .privacy-pill {
    display: none;
  }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .tool-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-body {
    grid-template-columns: 1fr;
  }

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

  .trust-card:nth-child(2) {
    border-right: 0;
  }

  .trust-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

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

  .privacy-footer .support-link {
    grid-column: 1 / -1;
  }

  .story-band {
    grid-template-columns: 1fr;
  }

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

  .standard-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

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

  .info-layout {
    grid-template-columns: 1fr;
  }

  .info-side-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 16px;
  }

  .privacy-pill:not(:first-child) {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .workspace {
    width: min(100% - 28px, var(--max));
    padding-top: 18px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .section-heading p {
    font-size: 1.12rem;
  }

  .brand-hero-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }

  .brand-hero-main p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-brand-logo {
    width: min(220px, 62vw);
  }

  .hero-compress-mobile {
    display: inline-flex;
    margin-top: 0;
  }

  .hero-compress-desktop {
    display: none;
  }

  .hero-kicker {
    margin-bottom: 4px !important;
    font-size: 1.02rem !important;
  }

  .brand-hero-main p:not(.hero-kicker) {
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.42;
  }

  .hero-compress-cta {
    min-height: 46px;
    padding: 0 22px;
  }

  .trust-card {
    min-height: 126px;
    padding: 14px 16px;
  }

  .trust-card > span {
    width: 58px;
    height: 58px;
  }

  .trust-card h3 {
    font-size: 0.92rem;
  }

  .trust-card p {
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .hero-logo-mark {
    width: 112px;
    height: 112px;
  }

  .hero-logo-mark .brand-file {
    width: 56px;
    height: 70px;
    border-width: 6px;
  }

  .hero-logo-mark .brand-fold {
    top: -6px;
    right: -6px;
    width: 23px;
    height: 23px;
    border-left-width: 6px;
    border-bottom-width: 6px;
  }

  .hero-logo-mark .brand-shield {
    width: 32px;
    height: 35px;
    border-width: 5px;
  }

  .hero-logo-mark .brand-shield::after {
    left: 8px;
    top: 11px;
    width: 12px;
    height: 7px;
    border-left-width: 4px;
    border-bottom-width: 4px;
  }

  .filter-pills {
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .dashboard-controls {
    margin-top: 22px;
  }

  .dashboard-search input {
    min-height: 50px;
  }

  .filter-pill {
    flex: 0 0 auto;
  }

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

  .tool-header {
    grid-template-columns: 1fr;
  }

  .privacy-footer {
    width: min(100% - 28px, var(--max));
  }

  .story-band {
    padding: 24px;
  }

  .story-grid,
  .review-grid,
  .site-footer,
  .info-highlight-grid {
    grid-template-columns: 1fr;
  }

  .info-hero {
    padding: 28px 0 6px;
  }

  .info-copy-card,
  .info-side-panel,
  .info-highlight-card {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 56px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-file {
    width: 19px;
    height: 24px;
    border-width: 2px;
  }

  .brand-fold {
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-left-width: 2px;
    border-bottom-width: 2px;
  }

  .brand-shield {
    width: 12px;
    height: 14px;
    border-width: 2px;
  }

  .brand-shield::after {
    left: 3px;
    top: 4px;
    width: 5px;
    height: 3px;
  }

  .brand-word {
    font-size: 1.18rem;
  }

  .brand-word {
    display: none;
  }

  .privacy-pill {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .workspace {
    padding-bottom: 46px;
  }

  h1 {
    font-size: 2rem;
  }

  .brand-hero {
    gap: 12px;
    padding: 0 0 16px;
  }

  .hero-brand-logo {
    width: min(188px, 54vw);
  }

  .hero-kicker {
    font-size: 0.92rem !important;
  }

  .brand-hero-main p:not(.hero-kicker) {
    font-size: 0.9rem;
    line-height: 1.34;
  }

  .hero-compress-cta {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 11px;
    font-size: 0.96rem;
  }

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

  .privacy-footer {
    grid-template-columns: 1fr;
  }

  .trust-card,
  .trust-card:nth-child(2),
  .trust-card:nth-child(n + 3) {
    min-height: 88px;
    gap: 6px;
    padding: 9px 8px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .trust-card:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .trust-card:first-child,
  .trust-card:nth-child(2) {
    border-top: 0;
  }

  .trust-card > span {
    width: 36px;
    height: 36px;
  }

  .trust-card h3 {
    font-size: 0.75rem;
  }

  .trust-card p {
    display: none;
  }

  .trust-shield > span::before,
  .trust-lock > span::before {
    width: 18px;
    height: 22px;
    border-width: 3px;
  }

  .trust-shield > span::after {
    width: 10px;
    height: 5px;
    border-left-width: 3px;
    border-bottom-width: 3px;
  }

  .trust-code > span::before {
    content: "</>";
    width: 28px;
    height: 22px;
    border-width: 3px;
    border-radius: 6px;
    font-size: 0.68rem;
    line-height: 16px;
  }

  .trust-gift > span::before {
    width: 22px;
    height: 22px;
    border-width: 3px;
    border-radius: 5px;
  }

  .trust-gift > span::after {
    width: 4px;
    height: 27px;
  }

  .trust-lock > span::before {
    width: 21px;
    height: 17px;
    border-radius: 5px;
  }

  .trust-lock > span::after {
    top: 10px;
    width: 17px;
    height: 15px;
    border-width: 3px;
    border-bottom: 0;
  }

  .privacy-footer > * {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .privacy-footer > *:last-child {
    border-bottom: 0;
  }

  .privacy-footer .support-link {
    grid-column: auto;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .security-standard-section,
  .site-footer {
    padding: 22px;
  }

  .pet-chat {
    right: 12px;
    bottom: 12px;
  }

  .pet-chat-button {
    min-height: 52px;
    padding: 7px;
  }

  .pet-chat-label {
    display: none;
  }

  .pet-chat-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 86px);
  }

  .pet-chat-messages {
    max-height: 190px;
  }

  .faq-list summary {
    min-height: 64px;
    padding: 0 18px;
    font-size: 0.98rem;
  }

  .faq-list p {
    padding: 0 18px 18px;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 230px;
    padding: 26px;
  }

  .tool-card h3 {
    font-size: 1.32rem;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .doc-preview,
  .html-preview {
    padding: 18px;
  }
}

/* Responsive redesign pass */
.topbar {
  width: min(var(--max), calc(100% - 24px));
  margin: 12px auto 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.workspace {
  width: min(var(--max), calc(100% - 32px));
  padding-top: 28px;
}

.brand {
  min-width: clamp(168px, 16vw, 230px);
}

.desktop-nav {
  gap: clamp(12px, 1.3vw, 24px);
}

.desktop-nav a,
.account-nav a {
  font-size: clamp(0.82rem, 0.82vw, 0.94rem);
}

.brand-hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(22px, 4vw, 58px);
  padding: clamp(22px, 4vw, 58px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46)),
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.12), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(16, 185, 129, 0.12), transparent 34%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.09);
}

:root[data-theme="dark"] .brand-hero {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.2), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(16, 185, 129, 0.13), transparent 34%);
  border-color: rgba(148, 163, 184, 0.2);
}

.brand-hero-main {
  grid-template-columns: minmax(210px, 0.42fr) minmax(300px, 0.58fr);
  gap: clamp(18px, 3vw, 42px);
}

.hero-brand-logo {
  width: min(100%, clamp(210px, 21vw, 330px));
}

.hero-kicker {
  color: var(--brand) !important;
  font-size: clamp(0.96rem, 1.3vw, 1.24rem) !important;
  font-weight: 850;
}

.section-heading p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-left: 0;
}

.trust-card {
  min-height: auto;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

:root[data-theme="dark"] .trust-card {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(148, 163, 184, 0.24);
}

.dashboard-controls {
  justify-content: flex-start;
  margin: 26px 0 16px;
}

.dashboard-search {
  width: min(840px, 100%);
}

.filter-pills {
  justify-content: flex-start;
  gap: 10px;
  margin: 22px 0 28px;
}

.filter-pill {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.tool-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}

.tool-card {
  min-height: 238px;
  padding: clamp(20px, 2vw, 28px);
  border-radius: 18px;
}

.tool-card h3 {
  margin-top: 20px;
  font-size: clamp(1.08rem, 1.2vw, 1.34rem);
}

.tool-card p {
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
}

.story-band,
.security-standard-section,
.review-section,
.docs-section,
.faq-section {
  scroll-margin-top: 104px;
}

.story-band,
.security-standard-section {
  border-radius: 24px;
}

.story-band {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  padding: clamp(24px, 3.4vw, 48px);
}

.story-grid,
.standard-grid,
.docs-grid,
.review-grid {
  gap: clamp(12px, 1.5vw, 20px);
}

.review-card {
  min-height: 0;
  padding: clamp(18px, 2vw, 26px);
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 42px auto 0;
  border-radius: 26px 26px 0 0;
}

.pet-chat {
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
}

@media (min-width: 1600px) {
  .tool-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .brand-hero {
    grid-template-columns: 1fr;
  }

  .brand-hero-main {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
  }

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

@media (max-width: 860px) {
  .topbar {
    min-height: 66px;
    padding: 0 14px;
  }

  .workspace {
    width: min(100% - 24px, var(--max));
    padding-top: 18px;
  }

  .brand-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .brand-hero-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-brand-logo {
    width: min(240px, 70vw);
  }

  .hero-compress-mobile {
    display: inline-flex;
    order: 3;
  }

  .hero-compress-desktop {
    display: none;
  }

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

  .trust-card {
    padding: 14px 12px;
  }

  .dashboard-search input {
    min-height: 52px;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 2px 8px;
    scrollbar-width: thin;
  }

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

  .story-band,
  .info-layout {
    grid-template-columns: 1fr;
  }

  .review-grid,
  .standard-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .topbar {
    width: calc(100% - 16px);
    min-height: 58px;
    margin-top: 8px;
    gap: 8px;
    border-radius: 16px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand {
    min-width: 0;
  }

  .brand-word,
  .privacy-pill {
    display: none;
  }

  .account-nav {
    gap: 8px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .app-grid-button {
    width: 30px;
    height: 38px;
    gap: 4px;
    grid-template-columns: repeat(3, 4px);
  }

  .app-grid-button span {
    width: 4px;
    height: 4px;
  }

  .brand-hero {
    padding: 18px;
  }

  .hero-brand-logo {
    width: min(196px, 62vw);
  }

  .brand-hero-main p:not(.hero-kicker) {
    font-size: 0.92rem;
  }

  .hero-compress-cta {
    width: min(100%, 260px);
  }

  .trust-grid {
    gap: 8px;
  }

  .trust-card {
    gap: 7px;
    min-height: 92px;
  }

  .trust-card > span {
    width: 40px;
    height: 40px;
  }

  .trust-card p {
    display: none;
  }

  .dashboard-controls {
    margin-top: 18px;
  }

  .tool-card-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 166px;
    border-radius: 16px;
  }

  .tool-card h3 {
    margin-top: 16px;
  }

  .story-band,
  .security-standard-section {
    padding: 20px;
    border-radius: 20px;
  }

  .story-band h2,
  .section-heading.compact h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .story-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    border-radius: 22px 22px 0 0;
  }
}

/* Route-specific SEO and answer content */
.seo-breadcrumbs {
  display: flex;
  max-width: 1120px;
  margin: 0 auto 10px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.seo-breadcrumbs a {
  color: var(--brand);
  font-weight: 750;
  text-decoration: none;
}

.seo-breadcrumbs a:hover,
.seo-breadcrumbs a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-direct-answer,
.seo-tool-intro-copy {
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
}

.seo-direct-answer {
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.68;
}

.seo-tool-intro-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.seo-hero-summary {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

.seo-about-tool {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(30px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.seo-about-heading h2 {
  margin-bottom: 0;
}

.seo-about-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.seo-about-tool .seo-direct-answer,
.seo-about-copy p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.seo-about-tool .seo-direct-answer {
  color: var(--text);
}

.seo-tool-grid > section,
.seo-answer-panel,
.seo-use-cases,
.seo-faq,
.seo-related {
  min-width: 0;
}

.seo-tool-grid-support {
  padding-top: 0;
}

.seo-fact-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 21px;
  color: var(--muted);
  line-height: 1.7;
}

.seo-fact-list li::marker {
  color: var(--brand);
}

.seo-use-cases {
  padding: clamp(32px, 5vw, 58px) 0;
  border-bottom: 1px solid var(--line);
}

.seo-use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-use-case-grid li {
  min-height: 82px;
  padding: 16px 18px;
  border-left: 3px solid var(--brand);
  background: color-mix(in srgb, var(--card-bg) 86%, var(--brand) 14%);
  color: var(--text);
  line-height: 1.55;
}

.seo-context-link {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.seo-context-link a {
  color: var(--brand);
  font-weight: 800;
}

.seo-related nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-related a {
  display: grid;
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
}

.seo-related a:hover,
.seo-related a:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.seo-related a strong {
  color: var(--brand);
}

.seo-related a span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.4;
}

:root[data-theme="dark"] .seo-direct-answer,
:root[data-theme="dark"] .seo-use-case-grid li,
:root[data-theme="dark"] .seo-related a {
  color: #f8fafc;
}

:root[data-theme="dark"] .seo-tool-intro-copy,
:root[data-theme="dark"] .seo-hero-summary,
:root[data-theme="dark"] .seo-about-copy p,
:root[data-theme="dark"] .seo-fact-list,
:root[data-theme="dark"] .seo-context-link,
:root[data-theme="dark"] .seo-related a span,
:root[data-theme="dark"] .seo-breadcrumbs {
  color: #cbd5e1;
}

@media (max-width: 760px) {
  .seo-breadcrumbs {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .seo-tool-intro-copy {
    display: none;
  }

  .seo-about-tool {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }

  .seo-use-case-grid,
  .seo-related nav {
    grid-template-columns: 1fr;
  }

  .seo-use-case-grid li,
  .seo-related a {
    min-height: 0;
  }
}

/* Static SEO pages */
html[data-static-pages="true"] body.is-tool-open #home > .section-heading,
html[data-static-pages="true"] body.is-tool-open #dashboard,
html[data-static-pages="true"] body.is-tool-open .story-band,
html[data-static-pages="true"] body.is-tool-open .security-standard-section,
html[data-static-pages="true"] body.is-tool-open .review-section,
html[data-static-pages="true"] body.is-tool-open .docs-section,
html[data-static-pages="true"] body.is-tool-open .faq-section {
  display: none;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-intro {
  margin: 0 0 16px;
}

html[data-static-pages="true"] body.is-tool-open .workspace {
  padding-top: 18px;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero {
  padding: 12px 0 16px;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.08;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero > p:last-child {
  max-width: 1080px;
  font-size: 0.96rem;
  line-height: 1.5;
}

html[data-static-pages="true"] body.is-tool-open .tool-section {
  margin-bottom: 22px;
}

html[data-static-pages="true"] body.is-tool-open .tool-header {
  display: none;
}

html[data-static-pages="true"] body.is-tool-open .tool-header h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

html[data-static-pages="true"] body.is-tool-open .tool-copy {
  display: none;
}

html[data-static-pages="true"] body.is-tool-open .eyebrow {
  margin-bottom: 5px;
}

html[data-static-pages="true"] body.is-tool-open .tool-body {
  padding: 18px;
}

html[data-static-pages="true"] body.is-tool-open .tool-body:has(.file-drop-zone):not(:has(.file-drop-zone.has-files)) {
  grid-template-columns: 1fr;
}

html[data-static-pages="true"] body.is-tool-open .tool-body:has(.file-drop-zone):not(:has(.file-drop-zone.has-files)) .tool-output {
  display: none;
}

html[data-static-pages="true"] body.is-tool-open .file-drop-zone {
  min-height: 148px;
  padding: 18px;
}

.seo-tool-content {
  margin: 42px 0 10px;
  color: var(--text);
}

.seo-tool-hero {
  padding: clamp(26px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seo-tool-hero h1 {
  max-width: 900px;
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.04;
}

.seo-tool-hero > p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.seo-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 6vw, 84px);
  padding: clamp(34px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.seo-tool-content h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

.seo-tool-content h3 {
  color: var(--ink);
}

.seo-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: seo-step;
}

.seo-steps li {
  position: relative;
  min-height: 46px;
  padding-left: 58px;
  line-height: 1.65;
  counter-increment: seo-step;
}

.seo-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
  font-weight: 900;
  content: counter(seo-step);
}

.seo-privacy-copy,
.seo-limit-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.seo-limit-copy {
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.seo-faq {
  padding: clamp(34px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.seo-faq details {
  border-top: 1px solid var(--line);
}

.seo-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.seo-faq summary {
  padding: 20px 2px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.seo-faq details p {
  max-width: 860px;
  margin: 0;
  padding: 0 2px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.seo-related {
  padding: clamp(30px, 4vw, 48px) 0 0;
}

.seo-related nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.seo-related a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

:root[data-theme="dark"] .seo-tool-hero h1,
:root[data-theme="dark"] .seo-tool-content h2,
:root[data-theme="dark"] .seo-tool-content h3,
:root[data-theme="dark"] .seo-faq summary {
  color: #f8fafc;
}

:root[data-theme="dark"] .seo-tool-hero > p:last-child,
:root[data-theme="dark"] .seo-privacy-copy,
:root[data-theme="dark"] .seo-limit-copy,
:root[data-theme="dark"] .seo-faq details p {
  color: #cbd5e1;
}

@media (max-width: 760px) {
  html[data-static-pages="true"] body.is-tool-open .workspace {
    padding-top: 10px;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-intro {
    margin-bottom: 12px;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero {
    padding: 8px 0 12px;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero h1 {
    font-size: 1.75rem;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero > p:last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  html[data-static-pages="true"] body.is-tool-open .tool-body {
    padding: 12px;
  }

  html[data-static-pages="true"] body.is-tool-open .file-drop-zone {
    min-height: 132px;
    padding: 14px;
  }

  .seo-tool-content {
    margin-top: 28px;
  }

  .seo-tool-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .seo-tool-hero h1 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }
}

.gtm-noscript {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

/* NoLogPDF local workspace redesign */
:root {
  --max: 1480px;
  --radius: 8px;
  --body-bg:
    linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    #f6f8fc;
  --topbar-bg: rgba(255, 255, 255, 0.96);
  --card-bg: #ffffff;
}

:root[data-theme="dark"] {
  --body-bg:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    #0f172a;
  --topbar-bg: rgba(15, 23, 42, 0.97);
  --card-bg: #172033;
}

body {
  background-size: 44px 44px;
}

.topbar {
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.brand {
  min-width: 190px;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
}

.brand-word {
  font-size: 1.38rem;
}

.desktop-nav {
  gap: clamp(18px, 2vw, 32px);
}

.desktop-nav a,
.tools-dropdown summary {
  position: relative;
  font-size: 0.88rem;
  font-weight: 820;
}

.desktop-nav > a::after,
.tools-dropdown > summary::after {
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
  content: "";
}

.desktop-nav > a:hover::after,
.desktop-nav > a.is-active::after,
.tools-dropdown[open] > summary::after {
  transform: scaleX(1);
}

.account-nav {
  gap: 10px;
}

.privacy-status,
.local-workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.privacy-status i,
.local-workspace-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

:root[data-theme="dark"] .privacy-status,
:root[data-theme="dark"] .local-workspace-badge {
  color: #6ee7b7;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: none;
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.82rem;
}

.app-grid-button {
  height: 40px;
}

.tools-mega-panel {
  top: calc(100% + 1px);
  left: max(20px, calc((100vw - var(--max)) / 2));
  right: max(20px, calc((100vw - var(--max)) / 2));
  gap: 22px;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.tools-mega-panel::before {
  display: none;
}

.tools-mega-group h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.tools-mega-group a {
  min-height: 38px;
}

.quick-menu {
  top: calc(100% + 1px);
  border-radius: 8px;
}

.workspace {
  width: min(var(--max), calc(100% - 40px));
  padding-top: 24px;
}

.section-heading {
  margin-bottom: 24px;
}

.brand-hero {
  grid-template-columns: minmax(0, 1.22fr) minmax(380px, 0.78fr);
  gap: clamp(28px, 4vw, 62px);
  padding: 32px 0 36px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .brand-hero {
  border-color: var(--line);
  background: transparent;
}

.brand-hero-main {
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(24px, 3vw, 48px);
}

.hero-brand-lockup {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.hero-brand-logo {
  width: min(100%, 250px);
  filter: drop-shadow(0 14px 24px rgba(37, 99, 235, 0.1));
}

.local-workspace-badge {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  background: var(--green-soft);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  margin-bottom: 10px !important;
  color: var(--brand) !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-hero h1 {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-title {
  max-width: 740px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 4.2vw, 4.35rem);
  font-weight: 950;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.65;
  text-wrap: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-compress-cta,
.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 900;
}

.hero-compress-cta {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.hero-secondary-cta {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.hero-secondary-cta:hover,
.hero-secondary-cta:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.hero-proof span {
  position: relative;
  padding-left: 14px;
}

.hero-proof span::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.trust-card {
  grid-template-columns: 46px minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  align-content: center;
  gap: 3px 12px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

:root[data-theme="dark"] .trust-card {
  border-color: var(--line);
  background: var(--surface);
}

.trust-card > span {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
}

.trust-card h3 {
  font-size: 0.9rem;
}

.trust-card p {
  font-size: 0.76rem;
  line-height: 1.4;
  text-wrap: auto;
}

.trust-shield > span::before,
.trust-lock > span::before {
  width: 20px;
  height: 24px;
  border-width: 3px;
}

.trust-shield > span::after {
  width: 10px;
  height: 5px;
  border-width: 0 0 3px 3px;
}

.trust-code > span::before {
  width: 32px;
  height: 25px;
  border-width: 3px;
  font-size: 0.74rem;
  line-height: 19px;
}

.trust-gift > span::before {
  width: 26px;
  height: 26px;
  border-width: 3px;
}

.trust-gift > span::after {
  width: 4px;
  height: 31px;
}

.trust-lock > span::after {
  top: 11px;
  width: 18px;
  height: 17px;
  border-width: 3px;
  border-bottom: 0;
}

.dashboard-controls {
  justify-content: space-between;
  margin-top: 24px;
}

.dashboard-search {
  width: min(760px, 100%);
}

.dashboard-search input,
.field input,
.field select,
.field textarea,
.input-like {
  border-radius: 8px;
}

.filter-pills {
  justify-content: flex-start;
  gap: 8px;
  margin: 16px 0 22px;
}

.filter-pill {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.84rem;
}

.tool-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 8px;
  box-shadow: none;
}

.tool-card h3 {
  margin-top: 18px;
  font-size: 1.14rem;
}

.tool-card p {
  margin-top: 10px;
  font-size: 0.86rem;
}

.tool-panel {
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.tool-header {
  padding: 20px 24px;
  background: var(--surface);
}

.tool-body {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 18px;
  padding: 20px;
}

.tool-output,
.preview-box,
.result-box,
.file-drop-zone,
.advanced-settings {
  border-radius: 8px;
}

.tool-output {
  min-height: 280px;
  background: var(--bg);
  box-shadow: none;
}

.file-drop-zone {
  min-height: 190px;
  border-color: rgba(37, 99, 235, 0.42);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.045), rgba(16, 185, 129, 0.045)),
    var(--surface);
}

.file-drop-zone.has-files {
  background: linear-gradient(135deg, var(--green-soft), var(--surface));
}

.drop-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.button,
.file-add-button,
.file-clear-button {
  border-radius: 8px;
}

.render-stage {
  min-height: 250px;
  border: 1px dashed rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.04)),
    var(--surface);
}

.story-band,
.security-standard-section,
.docs-section,
.faq-section,
.review-section {
  border-radius: 8px;
}

@media (max-width: 1260px) {
  .privacy-status {
    display: none;
  }

  .tool-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    display: flex;
  }

  .brand-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  }
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .brand-hero {
    grid-template-columns: 1fr;
  }

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

  .trust-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .trust-card > span {
    grid-row: auto;
  }

  .trust-card p {
    display: none;
  }
}

@media (max-width: 820px) {
  .workspace {
    width: min(var(--max), calc(100% - 24px));
  }

  .header-cta {
    display: none;
  }

  .brand-hero-main {
    grid-template-columns: 150px minmax(0, 1fr);
    text-align: left;
  }

  .hero-brand-logo {
    width: 146px;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

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

  .tool-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar {
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0 12px;
    border-radius: 0;
  }

  .brand {
    gap: 7px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .brand-word {
    display: inline-flex;
    font-size: 1.02rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .workspace {
    width: calc(100% - 20px);
    padding-top: 12px;
  }

  .brand-hero {
    gap: 14px;
    padding: 14px 0 18px;
  }

  .brand-hero-main {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .hero-brand-logo {
    width: 92px;
  }

  .local-workspace-badge {
    display: none;
  }

  .hero-kicker {
    margin-bottom: 5px !important;
    font-size: 0.64rem !important;
  }

  .hero-title {
    font-size: 1.48rem;
    line-height: 1.08;
  }

  .hero-lead {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .hero-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .hero-compress-cta,
  .hero-secondary-cta {
    min-height: 40px;
    width: 100%;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .hero-proof {
    display: none;
  }

  .trust-grid {
    grid-template-columns: repeat(4, minmax(76px, 1fr));
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .trust-card {
    min-height: 76px;
    padding: 8px 5px;
  }

  .trust-card > span {
    width: 34px;
    height: 34px;
  }

  .trust-card h3 {
    font-size: 0.65rem;
  }

  .dashboard-controls {
    margin-top: 14px;
  }

  .filter-pills {
    margin: 12px 0 16px;
  }

  .tool-card-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .tool-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0 14px;
    min-height: 132px;
    padding: 17px;
  }

  .tool-card .tool-icon {
    grid-row: 1 / span 3;
  }

  .tool-card h3 {
    margin-top: 3px;
  }

  .tool-card p {
    margin-top: 7px;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero h1 {
    font-size: 1.62rem;
  }

  html[data-static-pages="true"] body.is-tool-open .tool-body {
    padding: 10px;
  }

  .file-drop-zone {
    min-height: 146px;
  }

  body.is-tool-open .tool-form > .button.primary:last-child {
    width: calc(100% - 62px);
  }
}

/* Focused directory and select-first tool experience */
:root {
  --max: 1800px;
}

body:not(.is-tool-open) .brand-hero {
  display: block;
  padding: clamp(18px, 2.5vw, 30px) 0 6px;
  border-bottom: 0;
  text-align: center;
}

body:not(.is-tool-open) .brand-hero-main {
  display: block;
}

body:not(.is-tool-open) .hero-brand-lockup,
body:not(.is-tool-open) .trust-grid,
body:not(.is-tool-open) .hero-actions,
body:not(.is-tool-open) .hero-proof {
  display: none;
}

body:not(.is-tool-open) .hero-copy {
  max-width: 980px;
  margin: 0 auto;
}

body:not(.is-tool-open) .brand-hero h1 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3.15rem);
  letter-spacing: 0;
  line-height: 1.08;
  text-align: center;
  text-transform: none;
}

body:not(.is-tool-open) .hero-lead {
  max-width: 720px;
  margin: 10px auto 0;
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.42;
}

body:not(.is-tool-open) .dashboard-controls {
  margin-top: 10px;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

body:not(.is-tool-open) .dashboard-search {
  width: min(740px, 100%);
  margin-left: 0;
  margin-right: auto;
}

body:not(.is-tool-open) .filter-pills {
  justify-content: flex-start;
  margin: 14px 0 24px;
}

body:not(.is-tool-open) .filter-pill {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
}

body:not(.is-tool-open) .tool-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

body:not(.is-tool-open) .tool-card {
  min-height: 282px;
  padding: 30px;
  border-radius: 8px;
}

body:not(.is-tool-open) .tool-card h3 {
  margin-top: 24px;
  font-size: 1.35rem;
}

body:not(.is-tool-open) .tool-card p {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.52;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-intro {
  margin-bottom: 0;
  text-align: center;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero {
  padding: clamp(34px, 5vw, 58px) 0 24px;
  border: 0;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero h1 {
  margin: 6px auto 12px;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero > p {
  margin-right: auto;
  margin-left: auto;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero > p:last-child {
  max-width: 900px;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
}

body.is-tool-open .tool-panel:has(.file-drop-zone:not(.has-files)) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) {
  display: block;
  min-height: clamp(400px, 48vh, 580px);
  padding: 22px 0 80px;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(920px, 100%);
  margin: 0 auto;
  place-content: start stretch;
  gap: 14px 16px;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-field > span:first-child,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-picker-note,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-picker-actions,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-selection-queue,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-output,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-form > .button.primary:last-child {
  display: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-field,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .advanced-settings,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .permission-grid,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .field:has(textarea),
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-note,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .limitation,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .compress-size-summary {
  grid-column: 1 / -1;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-form > .field:not(.file-drop-field) {
  align-content: start;
  min-width: 0;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .range-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .range-value-wide {
  width: auto;
  min-height: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .compress-size-summary {
  display: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-form:has(> .field:not(.file-drop-field)) .file-drop-field::after,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-form:has(> .advanced-settings) .file-drop-field::after {
  display: block;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  content: "Options";
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-zone {
  min-height: 170px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-zone:hover,
body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-zone:focus-within {
  box-shadow: none;
  transform: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt {
  display: grid;
  width: min(100%, 520px);
  margin: 0 auto;
  gap: 16px;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .drop-icon {
  display: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt strong {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 18px 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt small {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

body.is-tool-open .file-drop-zone.has-files {
  min-height: 168px;
}

@media (max-width: 1500px) {
  body:not(.is-tool-open) .tool-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  body:not(.is-tool-open) .tool-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body:not(.is-tool-open) .brand-hero {
    padding: 28px 0 12px;
  }

  body:not(.is-tool-open) .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  body:not(.is-tool-open) .tool-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body:not(.is-tool-open) .brand-hero {
    padding: 22px 0 8px;
  }

  body:not(.is-tool-open) .brand-hero h1 {
    max-width: 360px;
    font-size: clamp(1.9rem, 8.8vw, 2.35rem) !important;
    line-height: 1.08;
  }

  body:not(.is-tool-open) .hero-title {
    font-size: 1.7rem;
  }

  body:not(.is-tool-open) .hero-lead {
    display: block;
    margin-top: 10px;
    font-size: 0.86rem;
  }

  body:not(.is-tool-open) .dashboard-search input {
    min-height: 48px;
  }

  body:not(.is-tool-open) .filter-pills {
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  body:not(.is-tool-open) .tool-card-grid {
    grid-template-columns: 1fr;
  }

  body:not(.is-tool-open) .tool-card {
    min-height: 142px;
    padding: 18px;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero {
    padding: 20px 0 14px;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero h1 {
    font-size: 2rem;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero > p:last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) {
    min-height: 420px;
    padding: 12px 0 54px;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-form {
    grid-template-columns: 1fr;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-field,
  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .advanced-settings,
  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .permission-grid,
  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .field,
  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-note,
  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .limitation,
  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .compress-size-summary {
    grid-column: 1;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-zone {
    min-height: 146px;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt strong {
    min-height: 86px;
    padding: 14px 18px;
    font-size: 1.28rem;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt small {
    font-size: 0.88rem;
  }
}

/* Compact, state-preserving tool workflow */
body:not(.is-tool-open) .brand-hero h1 {
  max-width: 980px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero {
  padding: clamp(24px, 3.6vw, 42px) 0 16px;
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero h1 {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

html[data-static-pages="true"] body.is-tool-open .seo-tool-hero > p:last-child {
  font-size: clamp(0.96rem, 1.1vw, 1.1rem);
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .tool-form {
  width: min(820px, 100%);
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-zone {
  min-height: 132px;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt {
  width: min(100%, 440px);
  gap: 12px;
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt strong {
  min-height: 78px;
  padding: 14px 24px;
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
}

body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt small {
  font-size: 0.9rem;
}

body.is-tool-open .tool-panel:has(.file-drop-zone.has-files) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) {
  display: block;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 12px 0 72px;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-drop-field,
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .advanced-settings,
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .permission-grid,
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .field:has(textarea),
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .field:has(canvas),
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .tool-note,
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .limitation,
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .compress-size-summary,
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .tool-form > .button.primary:last-child {
  grid-column: 1 / -1;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-drop-field > span:first-child,
body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-picker-note {
  display: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-drop-zone.has-files {
  min-height: 92px;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-selected-state {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-selected-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  font-size: 0.78rem;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-selected-copy {
  gap: 2px;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-picker-actions {
  margin-top: -4px;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-selection-queue:not(:has(.file-queue-item:nth-child(2))) {
  display: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .tool-output {
  width: 100%;
  min-height: 0;
  margin-top: 18px;
  padding: 14px;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .tool-output:has([data-render-stage]):not(.is-processing):not(.is-success):not(.is-error) {
  display: none;
}

body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .preview-box {
  min-height: 160px;
}

@media (max-width: 600px) {
  body:not(.is-tool-open) .brand-hero h1 {
    max-width: 330px;
    font-size: clamp(1.65rem, 7.4vw, 2rem) !important;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero {
    padding: 16px 0 10px;
  }

  html[data-static-pages="true"] body.is-tool-open .seo-tool-hero h1 {
    font-size: 1.72rem;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) {
    min-height: 360px;
    padding-bottom: 42px;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-zone {
    min-height: 120px;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone:not(.has-files)) .file-drop-prompt strong {
    min-height: 68px;
    font-size: 1.12rem;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) {
    width: 100%;
    padding: 8px 0 52px;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .tool-form {
    grid-template-columns: 1fr;
  }

  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .file-drop-field,
  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .advanced-settings,
  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .permission-grid,
  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .field,
  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .tool-note,
  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .limitation,
  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .compress-size-summary,
  body.is-tool-open .tool-body:has(.file-drop-zone.has-files) .tool-form > .button.primary:last-child {
    grid-column: 1;
  }
}

/* Tool icon system and searchable language selector */
.tool-icon .icon-tile.solo {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
}

.tool-icon .icon-tile svg {
  width: 30px;
  height: 30px;
  color: #fff;
  stroke: currentColor;
}

.tools-mega-group .tool-icon .icon-tile.solo {
  position: static;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.tools-mega-group .tool-icon .icon-tile svg {
  width: 14px;
  height: 14px;
}

.language-menu {
  position: relative;
  z-index: 72;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-menu.is-open .language-trigger {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.language-trigger > svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.language-current {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.language-current-flag,
.language-flag {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  line-height: 1;
}

.language-current-flag {
  width: 18px;
  height: 13px;
}

.language-neutral-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(37, 99, 235, 0.95));
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 18px rgba(37, 99, 235, 0.22);
}

.language-neutral-mark.language-current-flag {
  width: 24px;
  height: 18px;
}

.language-chevron {
  width: 14px !important;
  height: 14px !important;
  transition: transform 160ms ease;
}

.language-menu.is-open .language-chevron {
  transform: rotate(180deg);
}

.language-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(440px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.22);
}

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

.language-menu.is-open .language-panel {
  display: grid;
  gap: 12px;
}

.language-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.language-panel-heading > div {
  display: grid;
  gap: 2px;
}

.language-panel-heading strong {
  font-size: 0.98rem;
}

.language-panel-heading span {
  color: var(--muted);
  font-size: 0.76rem;
}

.language-panel-heading button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--bg);
  cursor: pointer;
}

.language-panel-heading button:hover,
.language-panel-heading button:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.language-panel-heading button svg {
  width: 17px;
  height: 17px;
}

.language-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
}

.language-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.language-search svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.language-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
}

.language-search input::placeholder {
  color: var(--muted);
}

.language-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: min(390px, calc(100vh - 230px));
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.language-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible {
  border-color: var(--line-strong);
  background: var(--bg);
  outline: none;
}

.language-option.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--brand);
  background: var(--blue-soft);
}

.language-option small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.language-option svg {
  width: 15px;
  height: 15px;
}

.language-flag {
  width: 20px;
  height: 15px;
}

.language-empty {
  grid-column: 1 / -1;
  margin: 16px 0;
  color: var(--muted);
  text-align: center;
}

.language-privacy {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.language-privacy svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--green);
}

.translation-engine {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 1120px) {
  .language-trigger {
    min-width: 40px;
    width: 40px;
    padding: 0;
  }

  .language-trigger > svg:first-child,
  .language-current-label,
  .language-chevron {
    display: none;
  }

  .language-current-flag {
    width: 20px;
    height: 15px;
  }
}

@media (max-width: 600px) {
  .account-nav {
    gap: 6px;
  }

  .language-trigger {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .language-panel {
    position: fixed;
    top: 62px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 74px);
  }

  .language-list {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 264px);
  }

  .language-option {
    min-height: 40px;
  }
}

/* Keep route content layout authoritative after legacy SEO rules. */
.seo-related nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-related a {
  display: grid;
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 760px) {
  .seo-related nav {
    grid-template-columns: 1fr;
  }

  .seo-related a {
    min-height: 0;
  }
}
