@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #596579;
  --line: #dce2eb;
  --accent: #245bd7;
  --accent-strong: #1d48ae;
  --soft: #edf3ff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 3px; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .42; }
button, select { min-height: 40px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #7aa4ef; outline-offset: 3px;
}
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button svg { pointer-events: none; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; }
h2 { font-size: 23px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { color: var(--muted); }
[hidden] { display: none !important; }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 24px; padding: 12px; background: var(--ink); color: white; z-index: 20; }
.skip-link:focus { top: 8px; }

/* App shell */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; background: #172033; color: white; width: 33px; height: 33px; border-radius: 7px; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: -1px; }
.brand .suffix { color: var(--muted); font-weight: 450; }
.header-nav { display: flex; gap: 28px; align-items: center; }
.header-nav a { text-decoration: none; font-size: 12px; color: var(--muted); font-weight: 550; }
.header-nav a:hover { color: var(--ink); }
.header-nav .privacy-link { display: flex; align-items: center; gap: 7px; color: #246349; }
.header-nav .privacy-link svg { width: 14px; height: 14px; }
.hero { padding: 36px 0 27px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 650; color: var(--muted); margin-bottom: 10px; display: flex; gap: 7px; align-items: center; }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
h1 { font-size: 34px; letter-spacing: -1px; font-weight: 680; margin-bottom: 10px; }
.hero p { margin: 0; font-size: 14px; line-height: 1.7; }
.hero .hero-note { font-size: 11px; line-height: 1.8; color: var(--muted); text-align: right; padding-bottom: 2px; white-space: nowrap; }
.hero-note span { display: block; font-weight: 550; color: var(--ink); }

/* Tool navigation is part of the workspace, not a separate row of pills. */
.tool-nav { display: flex; gap: 0; align-items: center; overflow-x: auto; padding: 0 10px; scrollbar-width: thin; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.tool-nav a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 49px; padding: 12px 20px; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 550; border-bottom: 2px solid transparent; }
.tool-nav a:hover { color: var(--ink); background: #f8fafd; }
.tool-nav a[aria-current=page] { color: var(--accent); border-bottom-color: var(--accent); background: #f5f8ff; }
.tool-nav .tool-tag { font-family: var(--mono); font-size: 10px; }
.tool-nav .divider { height: 18px; width: 1px; background: var(--line); margin: 0 12px; flex-shrink: 0; }
.converter { background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 3px 12px #17203304; overflow: hidden; }
.converter-top { padding: 13px 20px; border-bottom: 1px solid var(--line); background: #fafbfc; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mode-group { display: inline-flex; padding: 2px; background: white; border: 1px solid #d5dce7; border-radius: 6px; gap: 2px; }
.mode-group button { border: 0; background: transparent; border-radius: 4px; padding: 5px 17px; min-height: 30px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mode-group button[aria-pressed=true] { color: white; background: var(--ink); }
.mode-group button svg { width: 13px; height: 13px; margin-left: 7px; vertical-align: -2px; }
.hash-mode { font-family: var(--mono); font-size: 12px; padding: 6px 0; }
.local-label { color: #246349; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; }
.local-label svg { width: 13px; height: 13px; }

/* Protocol settings */
.profile-bar { padding: 14px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 20px; align-items: start; }
.profile-picker { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-picker label { font-size: 12px; font-weight: 600; }
.profile-picker select, .pem-settings select { border: 1px solid #cbd4e2; border-radius: 5px; background: white; color: var(--ink); padding: 6px 30px 6px 10px; max-width: 100%; font-size: 12px; min-height: 34px; }
.profile-picker a, #profile-reference { font-size: 11px; text-decoration: none; }
.profile-picker a:hover, #profile-reference:hover { text-decoration: underline; }
.profile-picker a { margin-left: auto; }
.profile-bar > p { font-size: 11px; margin: 0; line-height: 1.7; }
#profile-reference { white-space: nowrap; line-height: 1.7; }
.pem-settings { grid-column: 1 / -1; margin-top: 3px; padding-top: 11px; border-top: 1px solid #edf0f5; }
.pem-settings label { font-size: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pem-settings p { font-size: 11px; margin: 7px 0 0; }

/* Editors */
.editors { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.editor-pane { min-width: 0; position: relative; padding: 15px 20px 9px; }
.editor-pane:first-child { border-right: 1px solid var(--line); }
.editor-pane:last-child { background: #fbfcfe; }
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 35px; margin-bottom: 7px; }
.editor-toolbar label { font-size: 11px; font-weight: 650; letter-spacing: .5px; text-transform: uppercase; }
.editor-tools { display: flex; gap: 14px; align-items: center; }
.text-button { border: 0; padding: 0; background: transparent; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; min-height: 32px; }
.text-button:hover:not(:disabled) { color: var(--accent); }
.text-button svg { width: 13px; height: 13px; }
.editor-pane textarea { display: block; resize: vertical; width: 100%; min-height: 240px; height: 240px; max-height: 700px; background: transparent; border: 0; padding: 8px 0; color: var(--ink); font: 13px/1.85 var(--mono); border-radius: 3px; overflow-wrap: anywhere; tab-size: 2; }
.editor-pane textarea::placeholder { color: #7e899a; font-size: 12px; line-height: 1.9; opacity: 1; }
.editor-pane textarea:focus { outline: 2px solid #91b2ef; outline-offset: 6px; }
.editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-top: 8px; }
.byte-count { font: 10px var(--mono); color: var(--muted); }
.shortcut { font: 10px var(--mono); color: var(--muted); }
.editor-pane.dragging { background: #f0f5ff; box-shadow: inset 0 0 0 2px var(--accent); }
.file-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #d9e4f8; border-radius: 5px; background: #f2f6ff; padding: 4px 9px; font-size: 11px; margin-bottom: 8px; }
.file-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info button { border: 0; background: transparent; min-height: 28px; font-size: 11px; }
.preview-note { font-size: 11px; color: var(--accent); margin-bottom: 4px; }

/* Actions and feedback */
.converter-bottom { border-top: 1px solid var(--line); padding: 16px 20px 14px; }
.controls-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.options { display: flex; align-items: center; gap: 20px; min-height: 40px; flex-wrap: wrap; }
.options label, .auto-label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.options input, .auto-label input { accent-color: var(--accent); width: 13px; height: 13px; margin: 0; }
.options select { background: white; border: 1px solid #cbd4e2; border-radius: 5px; font-size: 11px; padding: 4px 22px 4px 8px; color: var(--ink); min-height: 32px; }
.options input[type=number] { width: 65px; height: 32px; padding: 3px 5px; border: 1px solid #cbd4e2; border-radius: 5px; color: var(--ink); background: white; }
.options :disabled { opacity: .65; cursor: default; }
.action-group { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
.primary-button { border: 1px solid #1b4fc4; background: var(--accent); color: #fff; border-radius: 6px; font-size: 12px; padding: 9px 20px; min-width: 126px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-weight: 600; box-shadow: 0 1px 2px #17203310; }
.primary-button:hover { background: var(--accent-strong); }
.primary-button svg { width: 14px; height: 14px; }
.primary-button[aria-busy=true] { opacity: .7; }
.advanced-options { flex: 1; min-width: 0; }
.advanced-options summary { font-size: 12px; font-weight: 600; cursor: pointer; min-height: 40px; padding: 9px 0; }
.advanced-options summary span { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 10px; display: inline-block; }
.settings-help { font-size: 11px; max-width: 620px; margin: 3px 0 10px; }
.advanced-options .options { gap: 8px 18px; min-height: 36px; margin: 4px 0; }
.shared-options { margin-top: 8px; }
.validation { margin-top: 12px; padding: 10px 12px; border: 1px solid #d8e6dd; border-radius: 5px; background: #f5faf7; font-size: 11px; overflow-wrap: anywhere; }
.validation > p { margin: 0; color: #256145; font-weight: 550; font-size: 11px; }
.validation ul { margin: 4px 0 0; padding-left: 17px; color: var(--muted); }
.validation ul:empty { display: none; }
.validation[data-state=compatible] { background: #fffbf0; border-color: #e9ddbc; }
.validation[data-state=compatible] > p { color: #795c1b; }
.validation[data-state=custom] { background: #f7f9fc; border-color: var(--line); }
.validation[data-state=custom] > p { color: var(--muted); }
.status-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; align-items: flex-start; }
.status { margin: 0; font-size: 11px; line-height: 1.7; min-height: 19px; overflow-wrap: anywhere; }
.status.error { color: #b02931; }
.limit-note { font-size: 10px; color: var(--muted); white-space: nowrap; margin-top: 1px; }
.privacy-strip { display: flex; justify-content: flex-start; gap: 23px; align-items: center; padding: 14px 1px 0; flex-wrap: wrap; }
.privacy-strip span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.privacy-strip svg { width: 12px; height: 12px; color: #347657; }

/* Supporting documentation */
.below-tool { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.section-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 11px; font-weight: 600; }
.below-tool h2 { font-size: 20px; margin-bottom: 11px; }
.below-tool p { font-size: 12px; line-height: 1.85; margin-bottom: 10px; }
.privacy-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 21px 23px; display: flex; gap: 14px; align-items: flex-start; }
.privacy-card > svg { width: 21px; height: 21px; color: #246349; margin-top: 2px; }
.privacy-card h3 { font-size: 14px; letter-spacing: -.015em; margin-bottom: 8px; }
.privacy-card p { font-size: 12px; line-height: 1.85; margin-bottom: 9px; }
.privacy-card a { font-size: 11px; text-decoration: none; font-weight: 550; display: inline-flex; align-items: center; gap: 8px; }
.privacy-card a svg { width: 12px; height: 12px; }
.caution { margin: 16px 0 0; padding: 12px 16px; border-radius: 6px; background: #fffbf0; border: 1px solid #e9ddbc; font-size: 12px; color: #795c1b; }
.guides { margin-top: 35px; margin-bottom: 35px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { font-size: 20px; margin: 0; }
.section-heading a { font-size: 11px; text-decoration: none; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.section-heading svg { width: 13px; height: 13px; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); padding: 20px 22px; border-radius: 7px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.guide-card:hover { border-color: #9bb5e2; }
.guide-number { font: 10px var(--mono); color: var(--muted); display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.guide-number svg { width: 14px; height: 14px; }
.guide-card h3 { font-size: 14px; letter-spacing: -.01em; margin-bottom: 8px; }
.guide-card p { font-size: 12px; line-height: 1.8; margin-bottom: 12px; }
.guide-meta { margin-top: auto; color: var(--muted); font-size: 10px; }
.faq { padding: 0 0 42px; max-width: 840px; }
.faq h2 { font-size: 20px; margin-bottom: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-size: 13px; font-weight: 550; padding: 4px 0; }
.faq details p { font-size: 12px; line-height: 1.9; margin: 12px 0; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.footer-inner .brand { font-size: 14px; gap: 7px; }
.footer-inner .brand-mark { width: 24px; height: 24px; font-size: 10px; border-radius: 5px; }
.footer-note { font-size: 11px; color: var(--muted); }
.footer-links { display: flex; gap: 23px; }
.footer-links a { font-size: 11px; color: var(--muted); text-decoration: none; }
.document { max-width: 800px; margin: 43px auto 60px; }
.document .back { font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.document h1 { font-size: 36px; line-height: 1.2; margin-bottom: 18px; }
.document .lead { font-size: 17px; line-height: 1.8; color: var(--muted); margin-bottom: 32px; }
.document h2 { font-size: 23px; margin: 32px 0 14px; }
.document h3 { margin-top: 25px; }
.document p, .document li { font-size: 14px; line-height: 1.9; }
.document li { margin-bottom: 7px; }
.document code { font-family: var(--mono); font-size: .88em; background: #eaf0f8; padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.document pre { background: #182235; color: #e0e9f8; border: 1px solid #243149; border-radius: 7px; padding: 22px; overflow: auto; line-height: 1.9; font-size: 12px; }
.document pre code { padding: 0; background: transparent; color: inherit; overflow-wrap: normal; }
.document table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 22px 0; }
.document th, .document td { text-align: left; padding: 12px; border: 1px solid var(--line); }
.document th { background: #eef2f8; }
.document .table-scroll { overflow-x: auto; }
.document .article-note { padding: 17px 20px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 5px 5px 0; }
.document .article-note p { margin: 0; }
.noscript { border: 1px solid #cda44a; background: #fffbf0; padding: 20px; margin-bottom: 15px; border-radius: 7px; font-size: 14px; }

@media (min-width: 1600px) {
  .hero { padding-top: 43px; }
  .editor-pane textarea { min-height: 270px; height: 270px; }
}
@media (max-width: 1000px) {
  .container { width: calc(100% - 48px); }
  .hero .hero-note { display: none; }
  .tool-nav a { padding-inline: 15px; }
  .below-tool { gap: 24px; grid-template-columns: 1fr 1fr; }
  .options { gap: 12px; }
  .action-group { gap: 12px; }
  .status-row { display: block; }
  .limit-note { margin-top: 5px; }
  .footer-note { display: none; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: 60px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; font-size: 13px; }
  .header-nav { gap: 16px; }
  .header-nav a { font-size: 11px; }
  .header-nav .privacy-link svg { display: none; }
  .hero { padding: 27px 0 21px; }
  h1 { font-size: 28px; letter-spacing: -.7px; }
  .hero p { font-size: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 9px; }
  .tool-nav { padding: 0 3px; }
  .tool-nav a { font-size: 12px; padding: 10px 13px; min-height: 44px; }
  .tool-nav .divider { margin-inline: 5px; }
  .converter-top { padding: 12px 14px; gap: 5px; }
  .local-label { font-size: 9px; gap: 4px; }
  .local-label svg { width: 12px; height: 12px; }
  .mode-group button { padding: 4px 12px; }
  .profile-bar { padding: 13px 15px; display: block; }
  .profile-picker { gap: 8px; }
  .profile-picker select { flex: 1; min-width: 0; width: 170px; }
  .profile-picker > a { flex-basis: 100%; margin-left: 0; }
  .profile-bar > p { margin-top: 8px; }
  #profile-reference { display: inline-block; margin-top: 3px; }
  .pem-settings { margin-top: 10px; }
  .pem-settings select { width: 100%; }
  .editors { grid-template-columns: 1fr; }
  .editor-pane { padding: 12px 16px 8px; }
  .editor-pane:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .editor-pane textarea { height: 170px; min-height: 170px; }
  .editor-toolbar { margin-bottom: 0; }
  .editor-tools { gap: 11px; }
  .editor-foot { margin-top: 0; min-height: 32px; }
  .converter-bottom { padding: 13px 16px; }
  .controls-row { flex-direction: column; gap: 10px; }
  .options { min-height: 30px; gap: 14px; }
  .advanced-options { width: 100%; }
  .advanced-options summary span { display: block; margin-left: 15px; font-size: 10px; }
  .advanced-options .options { gap: 9px 12px; }
  .action-group { justify-content: space-between; width: 100%; }
  .primary-button { min-width: 142px; }
  .status-row { margin-top: 11px; }
  .limit-note { font-size: 10px; white-space: normal; }
  .privacy-strip { gap: 7px 15px; padding-top: 12px; }
  .privacy-strip span { font-size: 9px; }
  .below-tool { grid-template-columns: 1fr; gap: 17px; margin-top: 28px; padding-top: 24px; }
  .privacy-card { padding: 18px; }
  .below-tool h2 { font-size: 19px; }
  .guides { margin-top: 28px; margin-bottom: 28px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { padding: 18px; }
  .guide-number { margin-bottom: 12px; }
  .section-heading h2, .faq h2 { font-size: 19px; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; gap: 16px; padding: 23px 0; }
  .footer-links { gap: 20px; }
  .document { margin-top: 31px; }
  .document h1 { font-size: 29px; }
  .document .lead { font-size: 16px; }
  .document h2 { font-size: 22px; }
  .document pre { padding: 17px; font-size: 11px; }
  .faq { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
