@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/plex-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/plex-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/plex-sans-vietnamese.woff2") format("woff2");
  unicode-range:
    U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329,
    U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/plex-sans-greek.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/plex-sans-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --ground: #eef5f0;
  --paper: #ffffff;
  --ink: #18372f;
  --muted: #526b60;
  --line: #c7d8ce;
  --accent: #176149;
  --wash: #e7f1eb;
  --brand: #123f35;
  --on-brand: #ffffff;
  --brand-muted: #c6e0d2;
  --note: #795009;
  --note-wash: #fff1d2;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --font-code: ui-monospace, "Cascadia Code", monospace;
  --radius: 6px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101e1a;
    --paper: #172b24;
    --ink: #e3efe8;
    --muted: #b1c8ba;
    --line: #3b5849;
    --accent: #a5dbc0;
    --wash: #243f32;
    --brand: #0b3026;
    --brand-muted: #c6e0d2;
    --note: #ffe0a0;
    --note-wash: #49371a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--font-body); }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, select, input { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
button { padding: 8px 14px; cursor: pointer; font-weight: 500; }
button:not(:disabled):hover { background: var(--wash); border-color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--paper); font-weight: 600; }
button.primary:not(:disabled):hover { background: var(--accent); filter: brightness(.9); }
button.link { background: transparent; border-color: transparent; color: var(--accent); }
input { width: 100%; min-width: 0; padding: 9px 12px; caret-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select { max-width: 100%; padding: 8px 12px; }
label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 5px; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; text-wrap: balance; }
p { margin: 0 0 16px; }
.wrap { max-width: 1280px; margin: auto; padding: 24px 32px; }
.skip { position: absolute; z-index: 10; top: -80px; left: 16px; background: var(--paper); padding: 12px; border-radius: var(--radius); }
.skip:focus { top: 8px; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 12px 24px; background: var(--brand); color: var(--on-brand); border-radius: 10px; }
header h1, header .brand { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.025em; color: var(--on-brand); text-decoration: none; }
header p { margin: 0; color: var(--brand-muted); font-size: 14px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; color: var(--brand-muted); text-decoration: none; border-radius: var(--radius); font-size: 14px; font-weight: 500; }
.site-nav a:hover, .site-nav [aria-current="page"] { color: var(--on-brand); background: #28594b; }
header :focus-visible { outline-color: var(--on-brand); }
.preview-note { margin: 22px 0; max-width: 75ch; color: var(--muted); font-size: 15px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.workspace > section { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.workspace-heading { min-height: 48px; display: flex; align-items: center; margin-bottom: 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) var(--paper); }
.tabs button { border-color: transparent; background: transparent; white-space: nowrap; font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--wash); border-color: var(--line); color: var(--accent); font-weight: 600; }
.panehead { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.panehead h2, #result-title { margin: 0; font-size: 18px; font-weight: 600; }
.panehead label { margin: 0; font: inherit; }
#output-choice { display: flex; gap: 12px; align-items: center; }
#output-choice label { margin: 0; white-space: nowrap; font-size: 14px; }
#output-file { min-width: 0; width: 100%; }
#source-format-search { width: 200px; }
.file-tools, .controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 60px; margin: 0; padding: 0 0 16px; }
.file-tools button, .controls button { font-size: 14px; }
.output-toolbar { min-height: 60px; }
textarea, pre, code { font-family: var(--font-code); font-variant-ligatures: none; }
textarea, pre { font-size: 14px; line-height: 1.7; tab-size: 2; scrollbar-color: var(--line) var(--wash); }
textarea { display: block; width: 100%; height: 320px; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--wash); color: var(--ink); caret-color: var(--accent); }
textarea[aria-invalid="true"] { border-color: var(--note); }
pre { margin: 0; overflow: auto; white-space: pre; color: var(--ink); padding: 16px; max-height: 320px; }
#output { height: 320px; max-height: none; overflow-wrap: normal; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); }
#output-panel[data-stale="true"] pre { color: var(--muted); }
#empty-result { min-height: 300px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 24px; color: var(--muted); background: var(--wash); border: 1px dashed var(--line); border-radius: var(--radius); }
#empty-result h3 { margin: 0; font-size: 22px; color: var(--ink); }
#empty-result p { max-width: 40ch; margin: 0; }
.hint { margin: 10px 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.field-hint { margin: 2px 0 6px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form h3 { margin: 20px 0 8px; font-size: 16px; }
.form > .panehead { min-height: 58px; }
.author-row { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 8px; }
.author-row legend { padding-right: 8px; font-size: 14px; font-weight: 500; }
.name-original, #message { overflow-wrap: anywhere; }
.name-original { margin-top: 16px; }
details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; }
summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 500; }
details p { color: var(--muted); max-width: 70ch; }
.field-help { margin: 4px 0 12px; border: 0; padding: 0; }
.field-help summary { color: var(--accent); font-weight: 400; }
.field-help p { margin: 0 0 12px; }
#name-review { margin: 20px 0 0; background: transparent; }
#name-review[open] { padding-bottom: 8px; }
#review-fields .fields { margin-top: 12px; }
#names-right { margin-top: 16px; }
#runtime, #message, .status { color: var(--muted); font-size: 14px; }
#runtime { margin-top: 12px; }
#message { padding: 12px 0; max-width: 70ch; }
#message[data-error="true"] { color: var(--note); }
#message:empty, #status:empty, #snippet-status:empty, #template-notes:empty { display: none; }
.status { margin: 8px 0; }
#details-notes, #template-warning, #filename-note, #message[data-notice="true"], #status[data-notice="true"] { padding: 12px; color: var(--note); background: var(--note-wash); border: 1px solid var(--line); border-radius: var(--radius); }
#notes, #template-notes { padding-left: 20px; color: inherit; overflow-wrap: anywhere; }
#notes li { margin: 8px 0; }
#template-warning .hint { color: inherit; }
#field-lookup { margin-top: 28px; }
#field-lookup > summary { font-size: 18px; }
#lookup-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 32px; }
#lookup-results section { min-width: 0; border-top: 1px solid var(--line); }
#lookup-results h3 { font-size: 16px; margin: 16px 0; }
#lookup-results dt { margin-top: 12px; font-weight: 500; }
#lookup-results dd { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.use { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.use h2 { font-size: 24px; margin: 0 0 12px; }
.use p { color: var(--muted); max-width: 70ch; font-size: 15px; }
.use .tabs { margin: 16px 0; }
.code-block { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.code-block pre { padding: 16px 64px 16px 16px; }
.code-copy { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; padding: 8px; background: var(--paper); }
.code-copy svg { pointer-events: none; }
.usage-docs { min-height: 44px; display: inline-flex; align-items: center; margin-top: 8px; }
footer { margin-top: 32px; border-top: 1px solid var(--line); padding: 20px 0 8px; color: var(--muted); font-size: 14px; }
footer p { max-width: 75ch; margin: 0 0 8px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.colophon-meta, .colophon nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
.colophon strong { color: var(--ink); font-weight: 600; }
.picker { position: relative; min-width: 0; max-width: 100%; }
.picker input { width: auto; max-width: 100%; padding-right: 30px; font-size: 14px; cursor: pointer; }
.picker::after { content: ""; position: absolute; top: 50%; right: 12px; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.picker ul { margin: 0; padding: 0; list-style: none; }
.picker [role="listbox"] { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(32rem, calc(100vw - 32px)); max-height: 20rem; overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.picker [role="listbox"][data-empty="true"]::after { content: "No matching file"; display: block; padding: 12px; color: var(--muted); }
.picker [role="listbox"] > li:not([hidden]) ~ li { border-top: 1px solid var(--line); }
.picker-group { padding: 12px 12px 4px; color: var(--muted); font: 500 12px/1.3 var(--font-body); cursor: default; user-select: none; }
.picker-group + [role="group"] [role="option"] { padding-left: 24px; }
.picker [role="option"] { display: flex; align-items: center; min-height: 44px; padding: 4px 12px; cursor: pointer; }
.picker [role="option"][aria-selected="true"] { font-weight: 600; }
.picker [role="option"].active, .picker [role="option"]:hover { background: var(--wash); color: var(--accent); }
.drop-active { outline: 3px dashed var(--accent); outline-offset: 4px; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 24px; align-items: start; }
.docs-sidebar { min-width: 0; }
.docs-search { padding-bottom: 16px; }
.docs-search label { margin: 0 0 8px; }
.docs-search input { width: 100%; min-height: 44px; font-size: 14px; }
.docs-search [role="status"], #docs-search-more { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
#docs-search-results { margin: 12px 0; padding: 0; list-style: none; max-height: 28rem; overflow-y: auto; }
#docs-search-results li { padding: 8px 0; border-top: 1px solid var(--line); }
#docs-search-results a { display: block; min-height: 44px; padding: 8px 0; font-size: 14px; font-weight: 500; }
#docs-search-results p { color: var(--muted); font-size: 13px; margin: 0; }
.docs-search mark { background: var(--wash); color: var(--ink); font-weight: 600; }
.docs-guides { margin: 0; padding: 0; border: 0; }
.docs-guides > summary { display: none; }
.docs-nav-group { margin: 0 0 20px; }
.docs-nav-group p { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.docs-menu { margin: 0; padding: 0; list-style: none; }
.docs-menu li { margin: 0; }
.docs-menu a { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: var(--radius); font-size: 14px; line-height: 1.35; text-decoration: none; }
.docs-menu a:hover { background: var(--wash); }
.docs-menu [aria-current] { background: var(--wash); color: var(--accent); font-weight: 600; }
.doc-content { min-width: 0; width: 100%; max-width: 75ch; }
.doc-content article { overflow-wrap: anywhere; padding-bottom: 24px; font-size: 17px; line-height: 1.7; }
.doc-content h1 { font-size: 32px; margin: 0 0 20px; letter-spacing: -.025em; }
.doc-content h2 { font-size: 24px; margin: 36px 0 12px; }
.doc-content h3 { font-size: 19px; margin: 28px 0 12px; }
.doc-content [id] { scroll-margin-top: 24px; }
.doc-content li { margin: 8px 0; }
.doc-content code { font-size: 14px; }
.doc-content pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-content .code-block pre { border: 0; padding-right: 64px; }
.doc-content img { max-width: 100%; height: auto; }
.table-scroll { max-width: 100%; overflow-x: auto; scrollbar-color: var(--line) var(--wash); }
.doc-content table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 14px; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
.doc-content th, .doc-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-content th { background: var(--wash); }
.docs-outline { margin: 0 0 16px; padding: 0 0 4px; border-top: 0; border-bottom: 1px solid var(--line); }
.docs-outline summary { color: var(--accent); }
.docs-outline a { display: inline-flex; align-items: center; min-height: 44px; }
#docs-copy-status { margin: 8px 0; color: var(--muted); font-size: 14px; }
#docs-copy-status:empty { display: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 801px) {
  .file-tools { margin-bottom: 24px; }
}
.docs-nav-desktop { display: block; }
.docs-guides { display: none; }
@media (max-width: 1100px) and (min-width: 801px) {
  .panehead { flex-wrap: wrap; align-content: center; min-height: 100px; }
  #output-choice { min-height: 100px; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 44px 44px; align-content: start; align-items: start; }
  #zip { grid-column: 1 / -1; }
  .output-toolbar { min-height: 112px; }
  .file-tools { min-height: 112px; align-content: start; }
}
@media (max-width: 800px) {
  .wrap { padding: 12px 18px; }
  header { gap: 0 16px; padding: 8px 12px; border-radius: 8px; }
  header h1, header .brand { font-size: 22px; }
  header p { display: none; }
  .site-nav { margin-left: auto; }
  .site-nav a { padding: 8px; font-size: 13px; }
  .preview-note { margin: 16px 0; font-size: 14px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .workspace > section { padding: 16px; }
  .workspace-heading { min-height: 44px; }
  .panehead { min-height: 58px; }
  textarea { height: 240px; font-size: 16px; }
  #output { height: 240px; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 44px 44px; align-content: start; align-items: start; min-height: 104px; padding-bottom: 8px; }
  .controls button { padding: 8px; }
  #zip { grid-column: 1 / -1; }
  #empty-result { min-height: 160px; padding: 20px; }
  .docs-layout { display: block; padding-top: 16px; }
  .docs-sidebar { margin-bottom: 16px; }
  .docs-search { padding: 0 0 4px; }
  .docs-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .docs-search:is([data-state="idle"], [data-state="loading"]) [role="status"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .docs-nav-desktop { display: none; }
  .docs-guides { display: block; }
  .docs-guides > summary { display: list-item; color: var(--accent); border-bottom: 1px solid var(--line); }
  .docs-nav-group { margin-top: 12px; }
  .doc-content h1 { font-size: 28px; margin-bottom: 16px; }
  .docs-outline { margin-bottom: 12px; }
  .use { margin-top: 24px; }
  footer { margin-top: 24px; }
}
@media (max-width: 400px) {
  .wrap { padding: 10px 12px; }
  header { flex-wrap: nowrap; gap: 8px; }
  header h1, header .brand { font-size: 21px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 6px; font-size: 12px; }
  .workspace > section { padding: 12px; }
  .panehead { flex-wrap: wrap; min-height: 100px; align-content: center; }
  #source-format-search { width: 100%; }
  .panehead .picker { width: 100%; }
  .fields { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  header, header p, header h1, header .brand { background: Canvas; color: CanvasText; }
  .site-nav a { color: LinkText; }
  button.primary { forced-color-adjust: none; background: ButtonText; color: ButtonFace; border-color: ButtonText; }
  button.primary:not(:disabled):hover { background: ButtonText; filter: none; }
}
.copy-status { margin: 8px 0; color: var(--muted); font-size: 14px; }
.copy-status:empty { display: none; }
.output-toolbar { padding-bottom: 24px; position: relative; }
.output-toolbar #status { position: absolute; left: 0; bottom: 0; margin: 0; }
