:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef2ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe3ef;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --success: #166534;
  --danger: #b91c1c;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 5vw, 72px); background: rgba(248,250,252,.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(219,227,239,.8); }
.brand { font-size: 1.35rem; font-weight: 850; letter-spacing: -.03em; }
.brand span { color: var(--brand); }
.site-header nav { display: flex; gap: 22px; color: var(--muted); font-size: .95rem; }
.hero { padding: 88px clamp(20px, 8vw, 120px) 64px; background: radial-gradient(circle at top right, #dbeafe, transparent 38%), linear-gradient(180deg,#fff,#f8fafc); }
.hero > div { max-width: 850px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-weight: 750; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
h1, h2, h3 { font-family: "Space Grotesk", "DM Sans", sans-serif; }
h1 { margin: 0; max-width: 900px; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.035em; }
.hero p:not(.eyebrow) { max-width: 720px; margin: 24px 0; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.search-box { display: flex; gap: 10px; align-items: center; width: 100%; max-width: 410px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(15, 23, 42, .07); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.clear-search { width: 24px; height: 24px; flex: 0 0 24px; padding: 0; border: 0; border-radius: 50%; background: #e2e8f0; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.clear-search:hover { background: var(--line); color: var(--text); }
.section, .workspace { padding: 64px clamp(20px, 8vw, 120px); scroll-margin-top: 82px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.section-heading .eyebrow { font-size: .95rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: var(--surface); color: var(--muted); }
.filter-button.active { background: var(--text); color: white; border-color: var(--text); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; min-width: 0; }
.tool-card { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; min-height: 168px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bfdbfe; }
.tool-card.popular-tool { border-color: #93c5fd; box-shadow: 0 10px 28px rgba(37, 99, 235, .11); }
.tool-card.popular-tool:hover { border-color: var(--brand); box-shadow: 0 16px 36px rgba(37, 99, 235, .18); }
.tool-card { position: relative; padding: 0; overflow: hidden; }
.tool-card-open { display: block; width: 100%; min-height: 168px; padding: 22px; border: 0; background: transparent; text-align: left; color: var(--text); }
.popular-badge { position: absolute; top: 14px; right: 18px; z-index: 1; padding: 4px 8px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tool-card-open:focus-visible, .favorite-toggle:focus-visible, .quick-tool:focus-visible, .clear-search:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }
.favorite-toggle { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: #f59e0b; font-size: 1.3rem; line-height: 1; }
.favorite-toggle:hover { background: #fffbeb; }
.tool-icon { font-size: 1.8rem; }
.tool-card h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.tool-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.empty-state { grid-column: 1/-1; margin: 0; padding: 24px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.65); }
.quick-tools { display: grid; gap: 12px; margin: -4px 0 28px; }
.quick-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick-label { margin-right: 4px; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.quick-tool { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--surface); color: var(--text); font-size: .9rem; }
.quick-tool:hover { border-color: #93c5fd; background: #eff6ff; }
.tool-history { margin: 24px 0 28px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tool-history-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.tool-history-head h3 { margin: 0; font-size: 1.05rem; }
.history-clear { padding: 6px 9px; border: 0; background: transparent; color: var(--muted); font-size: .82rem; }
.history-clear:hover { color: var(--danger); text-decoration: underline; }
.tool-history .quick-tools { margin: 0; }
.workspace { background: #eef2f7; min-height: 70vh; }
.hidden { display: none !important; }
.close-button { margin-bottom: 22px; border: 0; background: transparent; color: var(--brand); font-weight: 700; }
.tool-panel { max-width: 980px; margin: 0 auto; background: var(--surface); border-radius: 24px; border: 1px solid var(--line); padding: clamp(22px, 5vw, 42px); box-shadow: var(--shadow); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { color: var(--brand); font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; }
.related-tools { max-width: 980px; margin: 28px auto 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.related-tools h2 { margin: 0 0 18px; font-size: 1.55rem; }
.related-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.related-tool { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.related-tool:hover { border-color: #93c5fd; background: #eff6ff; }
.related-tool .tool-icon { flex: 0 0 auto; font-size: 1.4rem; }
.related-tool strong, .related-tool small { display: block; }
.related-tool strong { margin-bottom: 5px; }
.related-tool small { color: var(--muted); line-height: 1.4; }
.tool-panel header { margin-bottom: 28px; }
.tool-panel h1 { max-width: none; font-size: clamp(2.15rem, 4vw, 3.75rem); line-height: 1.02; letter-spacing: -.045em; }
.tool-panel header p { color: var(--muted); line-height: 1.6; }
.tool-subsection + .tool-subsection { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.tool-subsection h2 { margin-bottom: 18px; font-size: 1.55rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { font-weight: 700; font-size: .92rem; }
.check-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.check-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--text); font-weight: 650; cursor: pointer; }
.check-option:hover { border-color: #93c5fd; background: #f8fbff; }
.check-option:has(input:checked) { border-color: #93c5fd; background: #eff6ff; color: var(--brand-dark); }
.check-option input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--brand); }
.percentage-calculator { display: grid; gap: 20px; }
.percentage-mode { max-width: 520px; }
.form-hint { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 42px; }
.input-suffix span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-weight: 750; pointer-events: none; }
.tax-rate-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.tax-rate-presets button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .78rem; }
.tax-rate-presets button:hover, .tax-rate-presets button.active { border-color: #93c5fd; background: #eff6ff; color: var(--brand-dark); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 12px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.18); }
textarea { min-height: 170px; resize: vertical; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button { border: 0; border-radius: 12px; padding: 12px 18px; background: var(--brand); color: white; font-weight: 750; }
.button:hover { background: var(--brand-dark); }
.button.secondary { background: #e2e8f0; color: var(--text); }
.result { margin-top: 22px; border-radius: 16px; padding: 18px; background: #f8fafc; border: 1px solid var(--line); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; }
.result-grid + .result-grid, .metric + .result-grid { margin-top: 12px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.metric span { display:block; color: var(--muted); font-size: .84rem; }
.metric strong { display:block; margin-top:6px; font-size:1.25rem; overflow-wrap:anywhere; }
.metric-primary { border-color: #93c5fd; background: #eff6ff; }
.metric-primary strong { color: var(--brand-dark); font-size: 1.45rem; }
.dns-table-wrap { margin-top: 18px; overflow-x: auto; }
.dns-result-table { width: 100%; border-collapse: collapse; background: white; }
.dns-result-table th, .dns-result-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dns-result-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.dns-result-table td:first-child { font-weight: 700; }
.dns-result-table code { white-space: normal; overflow-wrap: anywhere; }
.dns-type { display: inline-block; min-width: 3.25em; padding: 3px 7px; border-radius: 7px; background: #e0e7ff; color: var(--brand-dark); font-size: .78rem; font-weight: 800; text-align: center; }
.dns-empty, .result-error { margin: 16px 0 0; }
.result-error { color: #b91c1c; }
.result-copy { margin-top: 12px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #eef2ff; color: var(--brand-dark); font-size: .82rem; font-weight: 750; }
.result-copy:hover { border-color: #93c5fd; background: #dbeafe; }
.generated-url { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.weekday-picker { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.weekday-picker legend { padding: 0 6px; font-weight: 750; }
.weekday-option { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; }
.weekday-option:has(input:checked) { border-color: #93c5fd; background: #eff6ff; color: var(--brand-dark); }
.weekday-option input { width: auto; margin: 0; }
.cron-description { font-size: 1.05rem; font-weight: 650; }
.execution-list { display: grid; gap: 7px; margin-bottom: 0; padding-left: 24px; }
.notice { padding: 13px 15px; border-left: 4px solid var(--brand); background: #eff6ff; border-radius: 8px; color: #1e3a8a; line-height: 1.55; }
.json-local-note { margin: -12px 0 20px; color: var(--muted); font-size: .88rem; }
.json-input, .json-output { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; line-height: 1.55; tab-size: 2; }
.json-input { min-height: 260px; }
.json-options { margin-top: 16px; }
.json-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(118px,1fr)); gap: 10px; margin-top: 18px; }
.json-actions .button { min-height: 48px; padding-inline: 12px; }
.json-actions .button.active { background: var(--brand); color: white; box-shadow: 0 7px 18px rgba(37,99,235,.2); }
.json-copy { width: 100%; margin-top: 10px; }
.json-output { min-height: 300px; resize: vertical; background: white; }
.json-status { margin: 14px 0 0; font-weight: 700; line-height: 1.45; }
.json-status.success { color: var(--success); }
.json-status.error { margin: 0; color: var(--danger); }
.json-tree { max-height: 560px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .9rem; }
.json-tree details { margin: 5px 0; }
.json-tree summary { cursor: pointer; font-weight: 750; color: var(--brand-dark); }
.json-tree-count { margin-left: 5px; color: var(--muted); font-size: .78rem; font-weight: 650; }
.json-tree-children { margin: 6px 0 6px 10px; padding-left: 14px; border-left: 1px solid #cbd5e1; }
.json-tree-leaf { display: flex; gap: 8px; padding: 4px 0; overflow-wrap: anywhere; }
.json-tree-key { flex: 0 0 auto; color: #7c3aed; font-weight: 700; }
.json-tree-leaf code { white-space: pre-wrap; color: #0f766e; }
.json-tree-empty { color: var(--muted); }
.jwt-summary { margin-bottom: 12px; }
.jwt-dates { margin-top: 12px; }
.jwt-output-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.jwt-output-field { min-width: 0; }
.jwt-json-output { min-height: 240px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; line-height: 1.5; }
.jwt-warning { padding: 13px 15px; border-left: 4px solid #d97706; border-radius: 8px; background: #fffbeb; color: #92400e; line-height: 1.55; }
.codec-output { min-height: 130px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; line-height: 1.5; overflow-wrap: anywhere; }
.base64-file-output { min-height: 180px; }
.meeting-participants { display: grid; gap: 14px; margin-top: 20px; }
.meeting-row { display: grid; grid-template-columns: minmax(130px,.8fr) minmax(230px,1.5fr) minmax(105px,.6fr) minmax(105px,.6fr); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.meeting-result-title { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; }
.meeting-result-table { width: 100%; margin-top: 16px; border-collapse: collapse; background: white; }
.meeting-result-table th, .meeting-result-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.meeting-result-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.meeting-result-table td:nth-child(2) { font-weight: 800; color: var(--brand-dark); }
.contact-form { max-width: 760px; margin: 28px 0 44px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.form-status { min-height: 1.5em; color: var(--muted); }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.error { color: var(--danger); }
.success { color: var(--success); }
.word-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.word-chip { padding:7px 10px; border-radius:999px; background:#eef2ff; border:1px solid #c7d2fe; }
.ad-shell { margin: 20px auto; max-width: 1100px; padding: 0 20px; }
.prose { max-width: 980px; }
.prose p { color:var(--muted); line-height:1.75; }
footer { display:flex; justify-content:space-between; gap:20px; padding:28px clamp(20px,5vw,72px); border-top:1px solid var(--line); color:var(--muted); }
footer div { display:flex; gap:18px; }
.site-footer > div { align-items: center; }
.site-footer > div p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; }
.site-footer nav a { display: inline-block; padding: 5px 0; }
.site-footer nav a:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .site-header nav { display:flex; gap:.35rem; }
  .section-heading { align-items:flex-start; flex-direction:column; }
  .filters { justify-content:flex-start; }
  .form-grid, .check-options { grid-template-columns:1fr; }
  .jwt-output-grid { grid-template-columns:1fr; }
  .meeting-row { grid-template-columns:1fr; }
  .meeting-result-table { display:block; overflow-x:auto; }
  .button-row .button { flex: 1 1 100%; min-height: 46px; }
  .quick-group { align-items: flex-start; }
  .quick-label { width: 100%; }
  footer { flex-direction:column; }
  .site-footer nav { justify-content: flex-start; }
}

/* nTools multilingual additions */
.language-switcher{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap;margin-left:auto}.language-switcher a{font-size:.82rem;text-decoration:none;padding:.35rem .5rem;border:1px solid var(--border,#d9dde5);border-radius:.55rem;color:inherit}.language-switcher a[aria-current="true"]{font-weight:700;background:var(--surface-2,#f3f4f6)}.site-header{gap:1rem}.site-header .header-inner{width:min(1180px,calc(100% - 2rem));margin:auto;display:flex;align-items:center;gap:1rem}.hero>.home-search-wrap{max-width:410px}.tax-note{font-size:.9rem;opacity:.8}.tool-grid .tool-card-open{height:100%}.locale-note{font-size:.85rem;opacity:.75}.ad-slot{min-height:0}.ad-slot:empty{display:none}@media(max-width:640px){.language-switcher{width:100%;justify-content:flex-start}.site-header .header-inner{flex-wrap:wrap}.hero>.home-search-wrap{max-width:100%}}
