:root {
  --bg0: #f3f6f8;
  --bg1: #e8eef3;
  --ink: #14212b;
  --muted: #5b6b78;
  --line: #d5dee6;
  --card: #ffffff;
  --brand: #0f6e6a;
  --brand-ink: #084844;
  --brand-soft: #d9f1ef;
  --accent: #c45c26;
  --ok: #1f7a45;
  --warn: #9a6700;
  --err: #b42318;
  --shadow: 0 10px 30px rgba(20, 33, 43, 0.08);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d7ebe8 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #f3e6d8 0%, transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #eef3f6 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2147483000;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 248, 0.94);
  border-bottom: 1px solid rgba(213, 222, 230, 0.8);
  isolation: isolate;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand span {
  color: var(--brand);
}

.nav-tools {
  display: none;
  gap: 0.55rem;
  font-size: 0.875rem;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-tools > a,
.nav-dd {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-tools a {
  color: var(--muted);
  text-decoration: none;
}

.nav-tools a:hover {
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #14212b;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: #14212b;
  overflow: visible;
}

.nav-toggle-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  transform-origin: 12px 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-1 {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-2 {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-3 {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-dd {
  position: relative;
}

.nav-dd > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
}

.nav-dd > summary::-webkit-details-marker {
  display: none;
}

.nav-dd > summary::after {
  content: " ▼";
  font-size: 0.7em;
  opacity: 0.75;
}

.nav-dd-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  min-width: 12rem;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .site-header .container {
    width: min(100% - 1.5rem, 1240px);
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-tools {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .nav-dd-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 60;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
}

.meta-results {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.meta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.meta-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.meta-table th,
.meta-table td {
  text-align: left;
  padding: 0.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.meta-table th {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
}

.meta-row-gps th,
.meta-row-gps td {
  background: rgba(196, 92, 54, 0.06);
}

.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
}

.meta-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
}

.meta-badge.is-ok {
  background: rgba(46, 125, 90, 0.08);
}

.meta-badge.is-warn,
.meta-badge.is-gps {
  background: rgba(196, 92, 54, 0.1);
  border-color: rgba(196, 92, 54, 0.35);
}

.meta-empty {
  margin: 0.75rem 0;
  color: var(--muted);
}

.meta-quality {
  display: block;
  margin: 0.75rem 0;
}

.meta-map-actions {
  margin-top: 0.5rem;
}

.meta-batch-block {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.lang-switch a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
}

.language-menu {
  position: relative;
  flex-shrink: 0;
}

.language-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary::after { content: "▾"; color: var(--muted); font-size: 0.72rem; }
.language-menu[open] > summary { border-color: #93c5fd; box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1); }

.language-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  width: min(340px, calc(100vw - 1.25rem));
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgb(15 23 42 / 0.16);
}

.language-menu-panel a {
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.86rem;
  text-decoration: none;
}

.language-menu-panel a:hover { background: #f1f5f9; }
.language-menu-panel a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }

.language-home-grid,
.core-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.language-home-grid a,
.core-tool-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.language-home-grid a:hover,
.core-tool-link:hover { border-color: #93c5fd; box-shadow: 0 8px 22px rgb(15 23 42 / 0.07); }
.language-home-grid span { color: var(--muted); font-size: 0.83rem; }
.core-tool-link.is-current { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 800; }

.hero {
  padding: 1.4rem 0 0.6rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46rem;
}

.tool-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.dropzone {
  border: 2px dashed #9eb0bd;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #fbfcfd, #f4f8fa);
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragover {
  border-color: var(--brand);
  background: #f1faf9;
  outline: none;
}

.dropzone strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.dropzone p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.dropzone .hint {
  font-size: 0.9rem;
}

.privacy-banner {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.95rem;
}

.options {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfc;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

label.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

label.field input,
label.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

label.field input:focus,
label.field select:focus {
  outline: 2px solid #7ec7c2;
  outline-offset: 1px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid #7ec7c2;
  outline-offset: 2px;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-ink);
}

.btn-secondary {
  background: #e8eef3;
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  background: #d9e3ec;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.status {
  margin-top: 0.8rem;
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.status[data-tone="error"] {
  color: var(--err);
}

.status[data-tone="ok"] {
  color: var(--ok);
}

.progress {
  display: none;
  margin-top: 0.7rem;
  height: 8px;
  border-radius: 999px;
  background: #e4ebf0;
  overflow: hidden;
}

.progress.is-on {
  display: block;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #2aa39b);
  transition: width 0.2s ease;
}

.file-table {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.file-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: #fff;
  display: grid;
  gap: 0.7rem;
}

.file-card-top {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef3f6;
  border: 1px solid var(--line);
}

.meta {
  min-width: 0;
}

.meta .name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta .sub {
  color: var(--muted);
  font-size: 0.88rem;
}

.file-card .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.ok {
  background: #e5f6ec;
  color: var(--ok);
}

.badge.err {
  background: #fdeceb;
  color: var(--err);
}

.section {
  padding: 2.2rem 0;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin: 0 0 0.7rem;
}

.section p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.tool-link {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tool-link:hover {
  transform: translateY(-2px);
  border-color: #9ebfc0;
}

.tool-link strong {
  display: block;
  margin-bottom: 0.25rem;
}

.tool-link span {
  color: var(--muted);
  font-size: 0.92rem;
}

.content-block {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  margin-top: 1rem;
}

.content-block h2,
.content-block h3 {
  font-family: var(--display);
  margin-top: 1.2rem;
}

.content-block h2:first-child,
.content-block h3:first-child {
  margin-top: 0;
}

.content-block ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.guide-summary {
  background: linear-gradient(180deg, #f7fbfa, #ffffff);
  border-color: #b9d8d4;
}

.content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.content-block th,
.content-block td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.content-block th {
  background: #eef3f6;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq details:first-child {
  border-top: 0;
}

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

.faq summary:focus-visible {
  outline: 2px solid #7ec7c2;
  outline-offset: 2px;
}

.faq p {
  margin: 0.55rem 0 0;
}

.ad-slot {
  /* Manual ad placeholders disabled — Auto Ads only */
  display: none !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-grid a {
  display: block;
  margin: 0.25rem 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
}

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

.entry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.entry-card {
  display: block;
  padding: 1.4rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.entry-card strong {
  font-family: var(--display);
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.35rem;
}

@media (min-width: 860px) {
  .nav-toggle,
  .header-actions .nav-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav-tools {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

  .tool-shell {
    padding: 1.25rem;
  }
}

@media (max-width: 859px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-tools {
    flex-wrap: wrap;
    white-space: normal;
    display: none;
  }

  .nav-tools > a,
  .nav-dd,
  .nav-dd > summary {
    white-space: normal;
  }

  .nav-tools.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 5;
    padding: 0.75rem 0 0.35rem;
    gap: 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: 0.15rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-inner.is-nav-open {
    align-items: flex-start;
  }

  .header-actions {
    order: 2;
  }

  .lang-switch {
    font-size: 0.82rem;
  }

  .nav-dd-panel {
    position: static;
    padding-left: 0.5rem;
    box-shadow: none;
    border: 0;
    background: transparent;
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .file-card-top {
    grid-template-columns: 56px 1fr;
  }

  .file-card-top .row-actions {
    grid-column: 1 / -1;
  }

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

  .thumb {
    width: 56px;
    height: 56px;
  }
}

/* 2026 product refresh: a focused, mobile-first image workspace. */
:root {
  --bg0: #f8fafc;
  --bg1: #f1f5f9;
  --ink: #0f172a;
  --muted: #526174;
  --line: #dbe3ed;
  --card: #ffffff;
  --brand: #2563eb;
  --brand-ink: #1d4ed8;
  --brand-soft: #eff6ff;
  --accent: #2563eb;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --font: "Inter", "Noto Sans KR", "Segoe UI", sans-serif;
  --display: "Inter", "Noto Sans KR", "Segoe UI", sans-serif;
  --max: 1120px;
}

body {
  background: linear-gradient(180deg, #f8fafc 0, #f8fafc 500px, #f1f5f9 100%);
  font-size: 16px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.header-inner { min-height: 64px; }
.brand { align-items: center; font-size: 1.28rem; letter-spacing: -0.04em; }
.brand span { color: var(--brand); }
.nav-tools { gap: 1rem; font-size: 0.9rem; font-weight: 600; }
.nav-tools a, .nav-dd > summary { color: #526174; }
.nav-dd-panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }

.hero { padding: 2.25rem 0 1rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.045em; }
.hero .lead { font-size: 1.08rem; line-height: 1.7; }

.tool-shell {
  position: relative;
  border-radius: 20px;
  border-color: #dbe3ed;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  overflow: clip;
}

.dropzone {
  min-height: 190px;
  border: 2px dashed #94a3b8;
  background: #f8fafc;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-dragover { border-color: var(--brand); background: #eff6ff; transform: translateY(-1px); }
.dropzone strong { color: var(--ink); font-size: 1.18rem; }
.privacy-banner { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.options { background: #f8fafc; border-color: #e2e8f0; }
label.field { color: #475569; font-weight: 600; }
label.field input, label.field select { min-height: 44px; border-color: #cbd5e1; }
label.field input:focus, label.field select:focus, .btn:focus-visible, .faq summary:focus-visible { outline-color: #60a5fa; }
label.field input[type="color"] { padding: .3rem; }
.field-presets { display: flex; flex-wrap: wrap; gap: .3rem; }
.field-presets button { min-height: 30px; padding: .25rem .55rem; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #334155; font: inherit; font-size: .78rem; cursor: pointer; }
.field-presets button:hover { border-color: #60a5fa; color: #1d4ed8; }
.btn { min-height: 44px; border-radius: 10px; padding: .72rem 1.05rem; }
.btn-primary { background: #2563eb; }
.btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.btn-secondary { background: #eaf1fb; color: #173b70; }
.btn-ghost { background: #fff; }

.section { padding: 1rem 0; }
.section h2 { color: var(--ink); font-weight: 800; letter-spacing: -.025em; }
.content-block { border-color: #e2e8f0; border-radius: 16px; box-shadow: none; }
.content-block h2, .content-block h3 { font-family: var(--font); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.tool-link { min-height: 112px; border-color: #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 8px 25px rgba(15,23,42,.04); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tool-link:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 14px 35px rgba(37,99,235,.09); }
.tool-link strong { color: #0f172a; font-size: 1.03rem; }
.tool-link span { color: #64748b; }
.section-featured { padding-top: 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.section-heading h2 { margin: .2rem 0 0; }
.section-heading p { max-width: 32rem; color: var(--muted); margin: 0; }
.eyebrow { color: #2563eb; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured-grid .tool-link:first-child, .featured-grid .tool-link:nth-child(2), .featured-grid .tool-link:nth-child(3) { border-top: 3px solid #2563eb; }

.workspace-tool .compact-dropzone { min-height: 150px; }
.drop-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto .65rem; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 1.65rem; }
.workspace-list { display: grid; gap: .65rem; margin-top: 1rem; }
.workspace-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .7rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.workspace-item img { width: 64px; height: 54px; object-fit: cover; border-radius: 8px; background: #e2e8f0; }
.workspace-item strong, .workspace-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-item span { margin-top: .2rem; color: #64748b; font-size: .84rem; }
.item-order { display: flex; gap: .25rem; }
.item-order button { width: 36px; height: 36px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; cursor: pointer; }
.item-order button:disabled { opacity: .35; cursor: default; }
.workspace-output { display: grid; justify-items: start; gap: .85rem; margin-top: 1rem; }
.workspace-output > img { max-height: 520px; border: 1px solid #e2e8f0; border-radius: 12px; object-fit: contain; background: #f8fafc; }
.pdf-file-summary { margin-top: 1rem; min-height: 1.5rem; color: #334155; font-weight: 700; overflow-wrap: anywhere; }
.pdf-output-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); width: 100%; align-items: stretch; }
.workspace-result-card { display: grid; gap: .65rem; padding: .75rem; border: 1px solid #dbe3ee; border-radius: 14px; background: #fff; min-width: 0; }
.workspace-result-card img { width: 100%; height: 190px; object-fit: contain; border-radius: 9px; background: #f1f5f9; }
.workspace-result-card > div { display: grid; gap: .15rem; min-width: 0; }
.workspace-result-card strong, .workspace-result-card span { overflow-wrap: anywhere; }
.workspace-result-card span { color: #64748b; font-size: .82rem; }
.favicon-preview { display: grid; place-items: center; min-height: 0; margin-top: 1rem; }
.favicon-preview:not(:empty) { min-height: 220px; padding: 1rem; border: 1px solid #dbe3ee; border-radius: 14px; background: repeating-conic-gradient(#eef2f7 0 25%, #fff 0 50%) 50% / 20px 20px; }
.favicon-preview img { width: min(192px, 60vw); height: min(192px, 60vw); object-fit: contain; image-rendering: auto; }
.editor-stage { position: relative; display: grid; place-items: center; min-height: 120px; margin-top: 1rem; overflow: hidden; border-radius: 14px; background: repeating-conic-gradient(#e9eef5 0 25%, #fff 0 50%) 50% / 20px 20px; touch-action: none; }
.editor-stage canvas { display: block; max-width: 100%; height: auto; cursor: crosshair; }
.crop-selection { position: absolute; pointer-events: none; border: 2px solid #2563eb; background: rgb(37 99 235 / .15); box-shadow: 0 0 0 9999px rgb(15 23 42 / .5); }
.palette-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; width: 100%; margin-top: 1rem; }
.palette-swatch { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: .1rem .65rem; align-items: center; padding: .55rem; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; color: #0f172a; text-align: left; }
.palette-swatch > span { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 9px; border: 1px solid rgb(15 23 42 / .12); }
.palette-swatch small { color: #64748b; overflow-wrap: anywhere; }
.base64-preview { display: grid; place-items: center; margin: 1rem 0; }
.base64-preview img { max-width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; }
.field textarea { width: 100%; resize: vertical; font: 500 .82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.result-summary { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 12px; background: #eff6ff; color: #1e3a8a; }
.calc-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.calc-result { display: flex; flex-direction: column; gap: .25rem; margin: 1rem 0; padding: 1.2rem; border-radius: 14px; background: #0f172a; color: #fff; }
.calc-result span { color: #bfdbfe; font-size: .9rem; }
.calc-result strong { font-size: clamp(1.6rem, 5vw, 2.25rem); letter-spacing: -.04em; }
.calc-result small { color: #cbd5e1; font-size: .9rem; }
.btn-wide { width: 100%; margin-top: .85rem; }

.site-footer { background: #0f172a; color: #94a3b8; border: 0; }
.footer-grid strong { color: #f8fafc; }
.footer-grid a, .footer-grid a:hover { color: #cbd5e1; }

.locale-preview-page { overflow-wrap: anywhere; }
.preview-badge { padding: .35rem .65rem; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: .78rem; font-weight: 800; }
.locale-preview-bar { border-bottom: 1px solid #e2e8f0; background: #fff; }
.locale-chip-list { display: flex; gap: .45rem; padding-block: .7rem; overflow-x: auto; scrollbar-width: thin; }
.locale-chip { flex: 0 0 auto; padding: .42rem .7rem; border: 1px solid #dbe3ed; border-radius: 999px; background: #fff; color: #475569; font-size: .82rem; font-weight: 700; text-decoration: none; }
.locale-chip:hover { border-color: #93c5fd; color: #1d4ed8; }
.locale-chip.is-current { border-color: #2563eb; background: #2563eb; color: #fff; }
.preview-notice { margin: 0 0 1rem; padding: .75rem 1rem; border-inline-start: 4px solid #f59e0b; border-radius: 8px; background: #fffbeb; color: #78350f; font-size: .9rem; }
[dir="rtl"] .locale-chip-list { direction: rtl; }
[dir="rtl"] .header-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .language-menu-panel { right: auto; left: 0; }
[dir="rtl"] .content-block ul,
[dir="rtl"] .content-block ol { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .file-name,
[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="number"],
[dir="rtl"] [data-pdf-summary] { direction: ltr; text-align: left; }

@media (max-width: 859px) {
  .header-inner { min-height: 58px; }
  .hero { padding-top: 1.4rem; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.35rem); }
  .nav-tools.is-open { background: #fff; padding: 1rem 0; }
  .nav-tools.is-open > a, .nav-tools.is-open > details { width: 100%; padding: .35rem .2rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: block; }
  .section-heading p { margin-top: .5rem; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 1.25rem, var(--max)); }
  .lang-switch { display: none; }
  .language-menu-current { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .language-menu-panel { position: fixed; top: 64px; right: 0.625rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [dir="rtl"] .language-menu-panel { right: 0.625rem; left: 0.625rem; }
  .tool-shell { padding: .75rem; border-radius: 16px; }
  .dropzone { min-height: 160px; padding: 1rem; }
  .privacy-banner { font-size: .88rem; }
  .options { padding: .75rem; }
  .options-grid { grid-template-columns: 1fr; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .tool-link { min-height: auto; padding: 1rem; }
  .workspace-item { grid-template-columns: 52px minmax(0, 1fr); }
  .workspace-item img { width: 52px; height: 48px; }
  .item-order { grid-column: 1 / -1; justify-content: flex-end; }
  .calc-tabs { display: grid; grid-template-columns: 1fr 1fr; }
}
