:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #64707a;
  --line: #d7dee5;
  --paper: #f8fafb;
  --panel: #ffffff;
  --accent: #0b7a75;
  --accent-dark: #075f5b;
  --warn: #b54708;
  --shadow: 0 16px 38px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  background: rgba(248, 250, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

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

.topbar nav a,
.back-link {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.topbar nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  display: none;
  min-width: 190px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.topbar nav.open {
  display: grid;
}

.topbar nav a {
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 700;
}

.topbar nav a:hover {
  background: #edf7f6;
  color: var(--accent-dark);
}

.topbar nav::-webkit-scrollbar {
  display: none;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px 16px 38px;
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.narrow {
  width: min(720px, 100%);
}

.intro {
  padding: 20px 0 18px;
}

.search-panel {
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
  margin-top: 18px;
}

.search-panel label {
  font-size: 0.9rem;
}

.search-panel input {
  min-height: 52px;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid #b9c7d3;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.06);
}

.search-panel input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(11, 122, 117, 0.16);
}

.search-panel p {
  margin: 0;
  font-size: 0.92rem;
}

.search-chips,
.popular-grid,
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-chips button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--accent-dark);
  background: #edf7f6;
  border: 1px solid #b8dedb;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.search-chips button:hover,
.search-chips button:focus {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.search-chips button:focus {
  outline: 3px solid rgba(11, 122, 117, 0.18);
  outline-offset: 2px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.popular-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 126px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.popular-card span {
  font-weight: 800;
}

.popular-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.32;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-flow {
  display: grid;
  grid-template-columns: 36px minmax(20px, 1fr) 36px;
  align-items: center;
  width: min(112px, 100%);
  min-height: 31px;
  margin: 1px 0;
}

.mini-format {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 29px;
  justify-self: center;
  color: var(--accent-dark);
  background: #edf7f6;
  border: 1px solid #9dd2ce;
  border-radius: 4px;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
}

.mini-format::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-left: 1px solid #9dd2ce;
  border-bottom: 1px solid #9dd2ce;
  border-radius: 0 4px 0 3px;
}

.mini-format.from {
  transform: rotate(-4deg);
}

.mini-format.to {
  transform: rotate(4deg);
}

.mini-arrow {
  position: relative;
  height: 2px;
  background-image: linear-gradient(to right, #0b7a75 54%, transparent 0);
  background-size: 7px 2px;
  background-repeat: repeat-x;
}

.mini-arrow::before,
.mini-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}

.mini-arrow::before {
  left: 50%;
  width: 6px;
  height: 6px;
  background: #0b7a75;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.mini-arrow::after {
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #0b7a75;
  border-right: 2px solid #0b7a75;
  transform: translateY(-50%) rotate(45deg);
}

.trust-strip {
  margin: 10px 0 6px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-strip div {
  flex: 1 1 180px;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trust-strip strong {
  font-size: 0.94rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 1rem;
  margin: 22px 0 10px;
}

.section-heading,
.crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  margin: 22px 0 10px;
}

.section-heading a,
.section-heading span,
.crumbs span {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.crumbs {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.category-intro {
  padding-bottom: 6px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

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

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.guide-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 16px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.guide-card span {
  font-weight: 800;
}

.guide-card small {
  color: var(--muted);
  line-height: 1.4;
}

.inline-guides {
  margin-top: 10px;
}

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

.tool-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 146px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(23, 32, 38, 0.03);
}

.tool-card span {
  overflow-wrap: anywhere;
  font-weight: 750;
  line-height: 1.2;
}

.tool-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 800;
}

.tool-badge.ready {
  color: #075f5b;
  background: #dff4f1;
}

.tool-badge.soon {
  color: #6b4f00;
  background: #fff3c4;
}

.tool-card small,
.limits,
.expires {
  color: var(--muted);
  line-height: 1.45;
}

.tool-card small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.upload-panel {
  margin-top: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tool-panel-head > div:first-child {
  min-width: 0;
}

.tool-panel-head h1 {
  margin-right: 0;
}

.tool-share {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
}

.tool-share-button,
.tool-share-button.secondary {
  gap: 6px;
  min-height: 34px;
  padding: 0 12px 0 6px;
  background: #e92424;
  border-color: #e92424;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tool-share-button:hover,
.tool-share-button.secondary:hover {
  background: #c91616;
  border-color: #c91616;
  color: #ffffff;
}

.share-icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: #ffffff;
  border-radius: 999px;
}

.share-icon {
  width: 18px;
  height: 18px;
}

.share-icon circle {
  fill: #e92424;
}

.share-icon path {
  fill: none;
  stroke: #e92424;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.share-menu a,
.share-menu button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.share-menu a:hover,
.share-menu button:hover {
  background: #edf7f6;
  color: var(--accent-dark);
}

.share-menu-item svg {
  width: 21px;
  height: 21px;
}

.share-menu-item.facebook {
  color: #1877f2;
}

.share-menu-item.link {
  color: var(--accent-dark);
}

.share-menu-item svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-menu-item.facebook svg path {
  fill: currentColor;
  stroke: none;
}

.share-menu-item.whatsapp {
  color: #25d366;
}

.share-menu-item.whatsapp svg {
  width: 26px;
  height: 26px;
}

.wa-logo .wa-bg {
  fill: #25d366;
}

.wa-logo .wa-bubble {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.wa-logo .wa-phone {
  fill: #ffffff;
  stroke: none;
}

.share-menu-item.copied {
  background: #edf7f6;
  color: var(--accent-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.5;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--accent-dark);
}

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

.secondary {
  background: #fff;
  color: var(--accent-dark);
}

.secondary:hover {
  background: #edf7f6;
}

.danger {
  background: #fff;
  border-color: #d54b4b;
  color: #b42323;
}

.danger:hover {
  background: #fff1f1;
}

.legal-copy h2 {
  margin: 0;
  font-size: 1.2rem;
}

.contact-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.contact-info p,
.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-details {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
}

.contact-details div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  font-weight: 800;
}

.contact-details a {
  color: var(--accent-dark);
}

.contact-form {
  margin-top: 0;
}

.contact-form textarea {
  min-height: 160px;
}

.compression-estimate {
  display: grid;
  gap: 4px;
  margin-top: -2px;
  padding: 12px;
  color: var(--accent-dark);
  background: #edf7f6;
  border: 1px solid #b8dedb;
  border-radius: 8px;
}

.compression-estimate strong {
  font-size: 0.9rem;
}

.compression-estimate span,
.compression-estimate small {
  color: var(--muted);
  line-height: 1.4;
}

.compression-estimate small {
  font-size: 0.78rem;
}

.limits {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.alert {
  margin: 14px 0;
  padding: 12px;
  color: var(--warn);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.file-label {
  margin-bottom: -6px;
}

.upload-dropzone {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    var(--accent);
  border: 1px solid #0a716c;
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(11, 122, 117, 0.18);
}

.upload-dropzone.dragging {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    var(--accent-dark);
  border-color: #064d4a;
}

.upload-dropzone .file-input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  border: 0;
  white-space: nowrap;
}

.upload-dropzone .visible-file-input {
  position: static;
  width: auto;
  min-height: auto;
  height: auto;
  margin: 8px auto 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  opacity: 1;
  border: 0;
  color: #ffffff;
  white-space: normal;
}

.compact-upload {
  min-height: 170px;
}

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

.watermark-options {
  display: grid;
  gap: 14px;
}

.watermark-image-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f6fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.watermark-image-field input[type="file"] {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.watermark-image-field button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
}

.watermark-image-field span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-visual {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(58px, 1fr) 64px;
  align-items: center;
  width: min(232px, 100%);
  height: 58px;
}

.format-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 56px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  justify-self: center;
  text-align: center;
}

.format-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 0 4px 0 3px;
}

.format-card.from {
  transform: rotate(-5deg);
}

.format-card.to {
  transform: rotate(5deg);
}

.format-arrow {
  position: relative;
  height: 2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.9) 52%, transparent 0);
  background-size: 10px 2px;
  background-repeat: repeat-x;
}

.format-arrow::before,
.format-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}

.format-arrow::before {
  left: 50%;
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.format-arrow::after {
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(255, 255, 255, 0.95);
  border-right: 2px solid rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) rotate(45deg);
}

.file-picker-button {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  width: min(240px, 100%);
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(23, 32, 38, 0.16);
  font-weight: 850;
}

.file-picker-button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
}

.file-picker-icon {
  position: relative;
  width: 18px;
  height: 22px;
  border: 1.8px solid var(--ink);
  border-radius: 2px;
}

.file-picker-icon::before,
.file-picker-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.file-picker-icon::before {
  left: 4px;
  right: 4px;
  top: 10px;
  height: 1.8px;
}

.file-picker-icon::after {
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 1.8px;
}

.upload-dropzone p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  font-weight: 700;
}

.file-summary {
  margin-top: -4px;
  padding: 12px;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-summary p {
  margin: 0;
  font-size: 0.92rem;
}

.file-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.file-summary-head span {
  flex: 0 0 auto;
  color: var(--muted);
}

.file-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-summary li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
}

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

.file-row-main span {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row-main button {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--warn);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
}

.add-file-button {
  min-height: 42px;
  margin-top: 2px;
  border: 1px solid #b8ddd8;
}

.camera-tools {
  display: grid;
  gap: 10px;
}

.camera-open-button {
  min-height: 42px;
  border: 1px solid #b8ddd8;
}

.camera-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.camera-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f1b22;
  border-radius: 7px;
  object-fit: cover;
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.camera-actions button {
  min-width: 0;
}

.camera-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.camera-panel p.error {
  color: var(--warn);
  font-weight: 700;
}

.file-summary li small {
  color: var(--muted);
}

.file-warning {
  margin-top: 10px;
  color: var(--warn);
  font-size: 0.9rem;
  font-weight: 700;
}

.coming-soon-panel {
  margin-top: 18px;
  padding: 14px;
  background: #fff9e6;
  border: 1px solid #f2d98d;
  border-radius: 8px;
}

.coming-soon-panel p {
  margin: 6px 0 0;
}

.notice-box {
  margin: 0 0 14px;
  padding: 12px;
  color: #6b4f00;
  background: #fff8db;
  border: 1px solid #f2d98d;
  border-radius: 8px;
  line-height: 1.45;
}

.service-check {
  display: grid;
  gap: 4px;
  margin: 18px 0 14px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-check strong {
  font-size: 0.92rem;
}

.service-check span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.service-check.ok {
  background: #eefaf7;
  border-color: #afe2d8;
}

.service-check.ok span {
  color: #075f5b;
}

.service-check.missing {
  background: #fff7ed;
  border-color: #fed7aa;
}

.service-check.missing span {
  color: var(--warn);
}

.seo-copy {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-copy h2 {
  margin-top: 18px;
}

.seo-copy h2:first-child {
  margin-top: 0;
}

.seo-accordion {
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-accordion summary {
  cursor: pointer;
  font-weight: 900;
  line-height: 1.35;
}

.seo-accordion summary::marker {
  color: var(--accent-dark);
}

.seo-accordion[open] summary {
  margin-bottom: 12px;
}

.seo-copy h3 {
  margin: 18px 0 6px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.seo-copy p {
  color: var(--muted);
  line-height: 1.62;
}

.seo-copy ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.seo-copy ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 8px 0 0;
}

.article-copy h2 {
  margin: 24px 0 8px;
}

.article-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.article-topbar .eyebrow {
  margin: 0;
}

.article-share {
  margin-left: auto;
}

.article-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.article-image {
  margin: 22px 0;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.article-cta {
  margin-top: 22px;
}

.article-tool-cards {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: #f0fbfb;
  border: 1px solid #b8e7e3;
  border-radius: 8px;
}

.article-tool-cards > strong {
  color: var(--text);
  font-size: 1rem;
}

.article-tool-cards .popular-grid {
  margin: 0;
}

.blog-comments,
.blog-related-tools {
  margin-top: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.blog-comments h2,
.blog-related-tools h2 {
  margin: 0 0 12px;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

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

.comment-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-form button {
  justify-self: start;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-item div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.comment-item span,
.comment-item time,
.comment-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-related-tools .section-heading {
  align-items: flex-start;
}

.blog-related-tools .section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.related-tool-grid {
  margin-top: 14px;
}

.guide-top-cta {
  margin: 4px 0 8px;
}

.admin-page h2 {
  margin-top: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-grid strong {
  font-size: 1.3rem;
}

.admin-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.admin-list a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

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

.admin-language-grid fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-language-grid legend {
  padding: 0 6px;
  color: var(--accent-dark);
  font-weight: 900;
}

.admin-post-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-post-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-post-row strong,
.admin-post-row span {
  overflow-wrap: anywhere;
}

.admin-post-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.admin-actions form {
  margin: 0;
}

.admin-actions .button,
.admin-actions button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.86rem;
}

.admin-inline-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.admin-section-head h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-section-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-bars {
  display: grid;
  gap: 10px;
}

.admin-bar-row {
  display: grid;
  gap: 5px;
}

.admin-bar-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-bar-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bar-label strong {
  color: var(--ink);
}

.admin-bar-track {
  height: 9px;
  overflow: hidden;
  background: #edf3f5;
  border-radius: 999px;
}

.admin-bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6fcb7d);
  border-radius: inherit;
}

.admin-line-chart {
  width: 100%;
  height: auto;
  min-height: 160px;
  background: #f8fafb;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
}

.admin-line-chart line {
  stroke: #cbd6de;
  stroke-width: 1;
}

.admin-line-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-line-chart circle {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
}

.admin-date-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 6px;
}

.admin-date-row span {
  display: grid;
  gap: 2px;
  padding: 7px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
  font-size: 0.76rem;
  text-align: center;
}

.admin-date-row strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e1e8ee;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--accent-dark);
  background: #edf7f6;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--muted);
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.sitemap-copy h2 {
  margin: 22px 0 8px;
}

.sitemap-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.sitemap-copy a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

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

.install-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.install-box code {
  overflow-x: auto;
  padding: 10px;
  color: #0d2f2c;
  background: #ffffff;
  border: 1px solid #d6e3e1;
  border-radius: 7px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.status-links a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.utility-panel {
  display: grid;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch a {
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.language-switch a.active {
  color: #fff;
  background: var(--accent);
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.option-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.option-row input {
  width: 18px;
  min-height: 18px;
}

.result-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.qr-result {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-height: 90px;
  color: var(--muted);
}

.qr-result img {
  width: min(260px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-logo-option {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-logo-option input[type="file"] {
  display: none;
}

.qr-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-logo-actions button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.qr-logo-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.qr-logo-preview img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.view-pdf-panel {
  display: grid;
  gap: 14px;
}

.view-pdf-status {
  padding: 12px 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.view-pdf-frame-wrap {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.view-pdf-frame {
  width: 100%;
  height: min(76vh, 760px);
  min-height: 420px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.service-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-state {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.service-state.ok {
  color: #075f5b;
  background: #dff4f1;
}

.service-state.missing {
  color: #7a1f1f;
  background: #ffe1e1;
}

.progress-shell {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #e8eef2;
  border-radius: 999px;
}

.progress-bar {
  width: 20%;
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.actions form {
  margin: 0;
}

.tool-rating-summary {
  display: grid;
  gap: 6px;
  margin: 8px 0 18px;
  color: var(--muted);
}

.rating-stars {
  color: #f2a900;
  letter-spacing: 1px;
}

.rating-distribution {
  display: flex;
  gap: 7px;
  align-items: end;
}

.rating-distribution span {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 22px;
}

.rating-distribution em {
  color: var(--ink);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.rating-distribution b {
  color: #f2a900;
  font-size: 1rem;
  line-height: 1;
}

.rating-panel {
  margin-top: 14px;
  text-align: center;
}

.rating-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

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

.rating-picker {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.rating-picker input {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.rating-picker span {
  color: #83909a;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: color 120ms ease, transform 120ms ease;
}

.rating-picker label.active span {
  color: #f2a900;
}

.rating-picker label:hover span {
  transform: translateY(-1px);
}

.rating-panel textarea {
  min-height: 96px;
}

.rating-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
}

.recommendations {
  margin-top: 18px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.recommendation-card {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 13px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.recommendation-card span {
  font-weight: 800;
}

.recommendation-card small {
  color: var(--muted);
  line-height: 1.35;
}

.sign-editor {
  min-height: 100vh;
  background: #eef3f7;
  overflow-x: hidden;
}

body:has(.sign-editor) .topbar,
body:has(.sign-editor) .footer {
  display: none;
}

.sign-editor-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.edit-top-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.86rem;
}

.edit-top-controls input {
  width: 56px;
  min-height: 34px;
  padding: 0 8px;
  text-align: center;
}

.edit-inline-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.edit-inline-control input,
.edit-inline-control select {
  width: auto;
  min-height: 26px;
  padding: 0 4px;
  border: 0;
  background: transparent;
}

.sign-editor-actions,
.sign-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sign-editor-actions .button,
.sign-editor-actions button,
.editor-bottom-actions .button,
.editor-bottom-actions button,
.sign-editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.sign-editor-toolbar button.active,
.edit-toolbar button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.sign-editor-toolbar button.active .button-icon,
.edit-toolbar button.active .button-icon {
  color: #ffffff;
}

.button-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sign-editor-actions .button-icon {
  width: 18px;
  height: 18px;
}

.editor-bottom-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: min(760px, calc(100% - 28px));
  margin: 16px auto 28px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.merge-editor .editor-bottom-actions {
  width: min(980px, calc(100% - 28px));
}

.split-bottom-actions {
  width: min(720px, calc(100% - 28px));
}

.editor-bottom-actions .button,
.editor-bottom-actions button {
  min-height: 44px;
  text-decoration: none;
}

.editor-bottom-actions .button-icon {
  width: 18px;
  height: 18px;
}

.sign-editor-toolbar .secondary .button-icon {
  color: currentColor;
}

.icon-only {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
}

.sign-editor-toolbar {
  position: sticky;
  top: 57px;
  z-index: 18;
  overflow-x: auto;
  padding: 8px 16px;
  background: #f9fbfc;
  border-bottom: 1px solid var(--line);
}

.merge-editor {
  padding-bottom: 32px;
}

.merge-editor-panel {
  width: min(980px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.merge-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.merge-editor-head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
}

.merge-editor-head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.merge-editor-head > strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  background: #e7fbf8;
  color: #006d68;
  border-radius: 999px;
  font-size: 0.82rem;
}

.merge-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.merge-file-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 250px;
  padding: 14px 12px 12px;
  background: #f8fafb;
  border: 1px solid #cdd8df;
  border-radius: 8px;
  cursor: grab;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.merge-file-card.dragging {
  opacity: 0.75;
  transform: scale(0.98);
}

.merge-file-card:hover,
.merge-file-card:focus-within {
  border-color: #8da1ad;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.1);
}

.merge-card-actions {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
}

.merge-card-actions .icon-only {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  background: rgba(255, 255, 255, 0.92);
  border-color: #cdd8df;
  color: #26333b;
  box-shadow: 0 4px 12px rgba(23, 32, 38, 0.12);
}

.merge-card-actions .button-icon {
  width: 15px;
  height: 15px;
}

.merge-thumb {
  display: grid;
  place-items: center;
  min-height: 154px;
  padding: 16px;
  background: #f2f5f7;
  border-radius: 7px;
  overflow: hidden;
}

.merge-thumb img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.12);
  transition: transform 160ms ease;
}

.merge-file-meta {
  min-width: 0;
  text-align: center;
}

.merge-file-meta strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merge-file-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.merge-file-card em {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  background: #0b7a75;
  color: #ffffff;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.merge-editor-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-editor-panel {
  width: min(980px, calc(100% - 28px));
}

.page-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.page-card {
  min-height: 228px;
}

.rotate-editor .page-card {
  cursor: default;
}

.rotation-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 16px;
}

.rotation-picker button {
  min-height: 40px;
  padding: 0 18px;
  background: #f8fafb;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.rotation-picker button.active {
  background: #0b7a75;
  color: #ffffff;
  border-color: #0b7a75;
}

.crop-control {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.crop-control span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.crop-control input {
  width: 100%;
  accent-color: #0b7a75;
}

.crop-page-card {
  cursor: default;
}

.crop-preview {
  position: relative;
}

.crop-preview img {
  position: relative;
  z-index: 1;
}

.crop-box {
  position: absolute;
  z-index: 2;
  inset: var(--crop-margin, 10%);
  border: 2px dashed #ef2f2f;
  border-radius: 5px;
  background: rgba(11, 122, 117, 0.08);
  box-shadow: 0 0 0 999px rgba(23, 32, 38, 0.14);
  pointer-events: none;
}

.split-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: calc(100vh - 57px);
}

.split-preview-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
}

.split-editor-head {
  max-width: 760px;
}

.split-editor-head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
}

.split-editor-head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.split-range-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px dashed #8fa4af;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.split-range-preview > span {
  color: var(--muted);
  font-weight: 800;
}

.split-preview-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
}

.split-preview-cards figure {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 38, 0.09);
}

.split-preview-cards img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.split-preview-cards b {
  color: var(--text);
  font-size: 1.4rem;
}

.split-preview-cards figcaption {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.split-preview-cards figcaption span {
  color: #0b7a75;
  font-weight: 900;
}

.split-control-panel {
  position: sticky;
  top: 57px;
  align-self: start;
  min-height: calc(100vh - 57px);
  padding: 20px 14px;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 28px rgba(23, 32, 38, 0.06);
}

.split-control-panel form {
  display: grid;
  gap: 14px;
}

.split-control-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.split-range-list {
  display: grid;
  gap: 10px;
}

.split-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 10px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.split-range-row.active {
  border-color: #0b7a75;
  box-shadow: 0 0 0 2px rgba(11, 122, 117, 0.1);
}

.split-row-title {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.split-range-row label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.split-range-row input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid #cdd8df;
  border-radius: 7px;
  font: inherit;
}

.split-range-row .icon-only {
  align-self: end;
}

.split-add-range {
  justify-self: start;
}

.split-combine-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.split-combine-check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 1px;
}

.split-submit {
  min-height: 56px;
  background: #e92424;
  border-color: #e92424;
  font-size: 1rem;
}

.split-submit:hover {
  background: #c91616;
  border-color: #c91616;
}

.sign-editor-shell {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: calc(100vh - 107px);
}

.sign-thumbs {
  overflow-y: auto;
  padding: 14px 10px;
  background: #f5f8fa;
  border-right: 1px solid var(--line);
}

.sign-thumb {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  padding: 8px;
  background: #ffffff;
  border: 2px solid transparent;
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.08);
}

.sign-thumb.active {
  border-color: #3157ff;
}

.sign-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.sign-thumb span {
  justify-self: center;
  min-width: 34px;
  padding: 4px 8px;
  background: #3157ff;
  color: #ffffff;
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.78rem;
}

.sign-stage-wrap {
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 24px;
}

.sign-stage {
  width: min(760px, 100%);
}

.edit-pdf-editor .sign-stage {
  width: min(calc(760px * var(--edit-zoom, 1)), 1400px);
  max-width: none;
}

.sign-page {
  position: relative;
  display: none;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.14);
}

.sign-page.active {
  display: block;
}

.sign-page > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.placed-signature {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 80px;
  min-height: 36px;
  touch-action: none;
  border: 1px dashed #3157ff;
  background: rgba(255, 255, 255, 0.04);
  cursor: move;
}

.placed-signature img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.placed-watermark {
  border-color: rgba(11, 122, 117, 0.72);
}

.placed-watermark img {
  opacity: 0.72;
}

.placed-edit {
  position: absolute;
  z-index: 5;
  min-width: 42px;
  min-height: 24px;
  border: 1px dashed rgba(11, 122, 117, 0.55);
  border-radius: 4px;
  touch-action: none;
}

.placed-edit.edge-move {
  cursor: move;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.placed-edit.edge-resize {
  cursor: nwse-resize;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.placed-edit.selected {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.placed-edit-text {
  resize: none;
  overflow: hidden;
  padding: 3px 5px;
  background: rgba(255, 255, 255, 0.72);
  color: #172026;
  font: 700 16px/1.2 Arial, sans-serif;
}

.placed-edit-box {
  background: rgba(250, 204, 21, 0.34);
  border-color: rgba(202, 138, 4, 0.86);
}

.placed-edit-image,
.placed-edit-draw {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.placed-edit-image img,
.placed-edit-draw canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.placed-edit-draw canvas {
  background: transparent;
  touch-action: none;
}

.signature-resize {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 15px;
  height: 15px;
  background: #3157ff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  cursor: nwse-resize;
}

.signature-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 17, 29, 0.68);
}

.signature-dialog {
  width: min(760px, 100%);
  overflow: hidden;
  background: #111820;
  color: #ffffff;
  border: 1px solid #3b4653;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.signature-dialog-head,
.signature-dialog-actions,
.signature-tabs,
.signature-colors {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signature-dialog-head {
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #3b4653;
}

.signature-tabs {
  padding: 10px 16px;
  border-bottom: 1px solid #26303b;
}

.signature-tabs button,
.signature-dialog-actions button,
.signature-dialog-head button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.signature-tabs button,
.signature-dialog-head button.secondary,
.signature-dialog-actions button.secondary {
  background: #1c2530;
  border-color: #49576a;
  color: #ffffff;
}

.signature-tabs button.active {
  border-color: #9ab0ff;
  box-shadow: inset 0 0 0 1px #9ab0ff;
}

.signature-colors {
  justify-content: flex-end;
  padding: 10px 16px 0;
}

.signature-colors button {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 999px;
}

.signature-colors .black {
  background: #111827;
}

.signature-colors .blue {
  background: #1677ff;
}

.signature-colors .purple {
  background: #4f46e5;
}

.signature-colors button.active {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.signature-pane {
  display: none;
  padding: 18px 26px 10px;
}

.signature-pane.active {
  display: block;
}

.signature-pane canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #f2f6fb;
  border: 1px dashed #95a2b3;
  border-radius: 4px;
  touch-action: none;
}

.signature-pane small {
  display: block;
  margin-top: 8px;
  color: #8793a4;
  text-align: center;
}

.signature-upload {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px dashed #6d7b8c;
  border-radius: 5px;
  cursor: pointer;
}

.signature-upload input {
  display: none;
}

.signature-upload span {
  padding: 10px 14px;
  background: #26303b;
  border: 1px solid #49576a;
  border-radius: 4px;
  font-weight: 800;
}

[data-sign-image-preview] {
  display: block;
  max-width: 100%;
  max-height: 180px;
  margin: 12px auto 0;
  background: #ffffff;
}

[data-sign-text] {
  width: 100%;
  padding: 16px;
  background: #f2f6fb;
  border: 1px solid #95a2b3;
  border-radius: 4px;
  color: #111827;
  font-size: 1.4rem;
  text-align: center;
}

.signature-fonts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid #3b4653;
  border-left: 1px solid #3b4653;
}

.signature-fonts label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  border-right: 1px solid #3b4653;
  border-bottom: 1px solid #3b4653;
}

.signature-fonts span {
  font-size: 1.35rem;
}

.signature-dialog-actions {
  justify-content: flex-end;
  padding: 14px 16px;
  background: #0d131a;
}

.sign-error {
  max-width: 980px;
  margin: 12px auto 0;
}

.guru-page .eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guru-hero {
  max-width: 860px;
}

.guru-tool-grid .popular-card {
  min-height: 136px;
}

.guru-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.guru-form label,
.guru-copy {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.guru-form input,
.guru-form select,
.guru-form textarea,
.guru-copy textarea {
  width: 100%;
}

.guru-form textarea {
  min-height: 112px;
}

.guru-topic-field {
  display: grid;
  gap: 10px;
}

.guru-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guru-result {
  margin-top: 18px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guru-document {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guru-document h3,
.guru-document h4,
.guru-document p,
.guru-document ul {
  margin: 0;
}

.guru-document h3 {
  font-size: 1.35rem;
}

.guru-document ul {
  padding-left: 20px;
  color: var(--muted);
}

.guru-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.guru-document-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.88rem;
}

.guru-document-table th,
.guru-document-table td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guru-document-table th {
  color: var(--ink);
  background: #eef6f6;
  font-weight: 900;
}

.guru-document-table td:first-child {
  width: 54px;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.guru-document-table td:last-child {
  width: 120px;
  white-space: nowrap;
}

.guru-table-list {
  margin: 0;
  padding-left: 18px;
}

.guru-table-list li + li {
  margin-top: 5px;
}

.guru-copy {
  margin-top: 14px;
}

.guru-copy textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
}

.guru-info p {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .topbar {
    padding: 0 28px;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
  }

  .menu-toggle {
    display: none;
  }

  .topbar nav,
  .topbar nav.open {
    position: static;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar nav a {
    padding: 0;
    font-weight: 400;
  }

  .topbar nav a:hover {
    background: transparent;
  }

  .page {
    padding-top: 38px;
  }

  .tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
  }

  .compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .guru-form-actions {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .tool-card {
    gap: 8px;
    min-height: 148px;
    padding: 16px;
  }

  .tool-card small {
    font-size: 0.82rem;
  }

  .upload-panel {
    padding: 28px;
  }

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

@media (max-width: 720px) {
  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .popular-card {
    gap: 6px;
    min-height: 142px;
    padding: 10px;
  }

  .popular-card span {
    font-size: 0.96rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .popular-card small {
    font-size: 0.74rem;
    line-height: 1.28;
    -webkit-line-clamp: 4;
  }

  .popular-card .card-flow {
    grid-template-columns: 30px minmax(16px, 1fr) 30px;
    width: min(94px, 100%);
    min-height: 27px;
  }

  .popular-card .mini-format {
    width: 27px;
    height: 25px;
    font-size: 0.46rem;
  }

  .tool-panel-head {
    gap: 10px;
  }

  .tool-share-button {
    min-height: 32px;
    padding: 0 9px 0 5px;
    font-size: 0.68rem;
    gap: 5px;
  }

  .share-icon-wrap {
    width: 22px;
    height: 22px;
  }

  .share-icon {
    width: 16px;
    height: 16px;
  }

  .merge-editor-panel {
    width: calc(100% - 20px);
    padding: 14px;
  }

  .editor-bottom-actions,
  .merge-editor .editor-bottom-actions,
  .split-bottom-actions {
    width: calc(100% - 20px);
    gap: 8px;
    padding: 10px;
  }

  .editor-bottom-actions .button,
  .editor-bottom-actions button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .merge-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .merge-file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .merge-file-card {
    min-height: 214px;
    padding: 10px 8px;
  }

  .merge-card-actions {
    top: 6px;
    right: 6px;
    gap: 3px;
  }

  .merge-card-actions .icon-only {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
  }

  .merge-card-actions .button-icon {
    width: 13px;
    height: 13px;
  }

  .merge-thumb {
    min-height: 132px;
    padding: 12px 8px;
  }

  .merge-thumb img {
    max-height: 125px;
  }

  .merge-file-meta strong {
    font-size: 0.78rem;
  }

  .split-editor-shell {
    grid-template-columns: 1fr;
  }

  .split-preview-panel {
    padding: 14px 10px;
  }

  .split-range-preview {
    padding: 12px;
  }

  .split-preview-cards {
    gap: 8px;
  }

  .split-preview-cards figure {
    padding: 8px;
  }

  .split-preview-cards img {
    max-height: 150px;
  }

  .split-control-panel {
    position: static;
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    box-shadow: none;
  }

  .article-topbar {
    align-items: center;
  }

  .blog-comments,
  .blog-related-tools {
    padding: 16px;
  }

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

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-language-grid {
    grid-template-columns: 1fr;
  }

  .admin-post-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-grid div {
    padding: 11px;
  }

  .admin-grid strong {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  .sign-editor-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 9px 12px;
  }

  .sign-editor-actions {
    width: 100%;
  }

  .sign-editor-actions .button,
  .sign-editor-actions button {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.78rem;
  }

  .sign-editor-toolbar {
    top: 93px;
    padding: 7px 12px;
  }

  .sign-editor-toolbar button {
    flex: 0 0 auto;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.76rem;
  }

  .button-icon {
    width: 16px;
    height: 16px;
  }

  .sign-editor-shell {
    grid-template-columns: 1fr;
  }

  .sign-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sign-thumb {
    flex: 0 0 74px;
    margin: 0;
    padding: 5px;
  }

  .sign-thumb span {
    min-width: 28px;
    padding: 3px 7px;
    font-size: 0.7rem;
  }

  .sign-stage-wrap {
    padding: 12px;
    overflow-x: hidden;
  }

  .sign-stage {
    width: 100%;
  }

  .signature-modal {
    align-items: end;
    padding: 8px;
  }

  .signature-dialog {
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }

  .signature-pane {
    padding: 14px 12px 8px;
  }

  .signature-tabs,
  .signature-dialog-head,
  .signature-dialog-actions {
    padding-left: 12px;
    padding-right: 12px;
  }

  .signature-fonts {
    grid-template-columns: 1fr;
  }

  .watermark-image-field {
    align-items: stretch;
    flex-direction: column;
  }

  .watermark-image-field button {
    width: 100%;
  }

  .watermark-image-field span {
    white-space: normal;
  }
}
