@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/Geist-Variable.woff2") format("woff2-variations"),
       url("./fonts/Geist-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/GeistMono-Variable.woff2") format("woff2-variations"),
       url("./fonts/GeistMono-Variable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #141311;
  --bg-alt: #1c1b18;
  --surface: #211f1b;
  --surface-raised: #25231f;
  --surface-input: #181714;
  --text: #f5f5f4;
  --text-secondary: #d4d1cb;
  --muted: rgba(245, 245, 244, .58);
  --subtle: rgba(245, 245, 244, .38);
  --border: #37342e;
  --border-strong: #4b473f;
  --accent: #ff7a3d;
  --accent-hover: #ff9462;
  --accent-soft: rgba(255, 122, 61, .12);
  --success: #a6e3a1;
  --success-soft: rgba(166, 227, 161, .11);
  --warning: #f9e2af;
  --warning-soft: rgba(249, 226, 175, .1);
  --error: #f38ba8;
  --error-soft: rgba(243, 139, 168, .11);
  --shadow: 0 18px 45px rgba(0, 0, 0, .2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fdfdfd;
  --bg-alt: #f0eeee;
  --surface: #f5f3f1;
  --surface-raised: #e6e3e3;
  --surface-input: #ffffff;
  --text: #272938;
  --text-secondary: #4c4f69;
  --muted: rgba(92, 95, 119, .72);
  --subtle: rgba(92, 95, 119, .5);
  --border: #d9d5d2;
  --border-strong: #beb9b5;
  --accent: #e85a2c;
  --accent-hover: #d94c20;
  --accent-soft: rgba(232, 90, 44, .1);
  --success: #40a02b;
  --success-soft: rgba(64, 160, 43, .1);
  --warning: #df8e1d;
  --warning-soft: rgba(223, 142, 29, .1);
  --error: #d20f39;
  --error-soft: rgba(210, 15, 57, .09);
  --shadow: 0 18px 45px rgba(39, 41, 56, .08);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  transition: background-color .2s ease, color .2s ease;
}

button, input, select { font: inherit; }

button, select, input { -webkit-tap-highlight-color: transparent; }

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 2.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-nav__actions { display: flex; align-items: center; gap: .6rem; }

.site-nav__logo {
  display: inline-flex;
  align-items: center;
  min-width: 90px;
  min-height: 28px;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.site-nav__logo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.site-nav__logo-mark {
  display: inline-block;
  width: 90px;
  height: 28px;
  background: url("./img/logo-light.svg") left center / contain no-repeat;
}

[data-theme="light"] .site-nav__logo-mark {
  background-image: url("./img/logo-dark.svg");
}

header { margin-bottom: 2rem; }
.header-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.quick-start { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin: 1.2rem 0 0; padding: 0; color: var(--muted); font-size: .78rem; list-style: none; }
.quick-start li { display: inline-flex; align-items: center; gap: .4rem; }
.quick-start span { display: inline-grid; width: 1.35rem; height: 1.35rem; place-items: center; color: var(--bg); background: var(--accent); border-radius: 50%; font-size: .7rem; font-weight: 700; }

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

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: .8rem 0 .8rem;
  color: var(--text);
  font-size: clamp(2.7rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .98;
}

h1 span { color: var(--accent); font-weight: 400; }

h2, h3 { color: var(--text); }

h2 { margin: 0 0 1.1rem; font-size: 1.2rem; letter-spacing: -.02em; }

h3 {
  margin: 1.8rem 0 .65rem;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lede, .description {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.theme-toggle {
  --toggle-size: 44px;
  --icon-size: 20px;

  position: relative;
  display: flex;
  width: var(--toggle-size);
  height: var(--toggle-size);
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.theme-toggle:hover { transform: scale(1.1); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.theme-toggle:active { transform: scale(.95); }
.theme-toggle:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }

.theme-toggle__icons { position: relative; width: var(--icon-size); height: var(--icon-size); }
.theme-toggle__sun, .theme-toggle__moon, .theme-toggle__auto {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0;
  transform: rotate(-90deg) scale(.5);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .5s ease, color .3s ease;
}

.theme-toggle__sun svg, .theme-toggle__moon svg, .theme-toggle__auto svg { width: var(--icon-size); height: var(--icon-size); }
.theme-toggle__moon { color: var(--accent); }
.theme-toggle__auto { color: #cba6f7; }
.theme-toggle__moon, [data-theme-setting="dark"] .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme-setting="light"] .theme-toggle__moon, [data-theme-setting="auto"] .theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme-setting="light"] .theme-toggle__sun, [data-theme-setting="auto"] .theme-toggle__auto { opacity: 1; transform: rotate(0) scale(1); }

.theme-toggle__sparkle {
  position: absolute;
  top: calc(50% - 3px);
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle-fly .6s ease-out forwards;
}

@keyframes sparkle-fly {
  from { transform: rotate(var(--sparkle-angle)) translateY(0) scale(1); opacity: 1; }
  to { transform: rotate(var(--sparkle-angle)) translateY(-20px) scale(0); opacity: 0; }
}

.theme-toggle.animating { animation: theme-toggle-bounce .5s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes theme-toggle-bounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(.9); }
  75% { transform: scale(1.05); }
}

.notice {
  margin: 1.5rem 0 1rem;
  padding: .85rem 1rem;
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--border));
  border-radius: var(--radius-md);
  font-size: .9rem;
  line-height: 1.45;
}

.notice.ready { color: var(--success); background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, var(--border)); }
.notice.error { color: var(--error); background: var(--error-soft); border-color: color-mix(in srgb, var(--error) 30%, var(--border)); }

.tabs { margin-top: 1rem; }

.tab-list {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab {
  flex: 0 0 auto;
  margin-bottom: -1px;
  padding: .65rem .9rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.tab:hover { color: var(--text); background: var(--surface-raised); }
.tab[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--border); border-bottom-color: var(--surface); }
.tab:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.tab-panel[hidden] { display: none; }
.tab-panel {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.tab-panel .workspace { margin-top: 0; }
.tab-panel .log-section { margin-top: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }

.options-form { width: 100%; max-width: none; margin: 0; }
.options-form .description { margin-bottom: 1.2rem; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.option-grid .field { min-width: 0; }
.field-help { margin: .45rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.options-form .actions { margin-top: 1.25rem; }

.import-cta { display: inline-flex; align-items: center; padding: .6rem .9rem; color: var(--bg); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); font-size: .86rem; font-weight: 600; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.import-cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.secondary-cta { display: inline-flex; align-items: center; padding: .6rem .9rem; color: var(--text-secondary); background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: .86rem; font-weight: 600; text-decoration: none; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.secondary-cta:hover { color: var(--text); background: var(--surface-raised); border-color: var(--accent); }
.nav-back { font-size: .86rem; }

.upload-workspace { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 1rem; }
.editor-workspace { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.upload-form, .upload-results, .editor-form { min-width: 0; }
.editor-workspace .editor-form, .editor-workspace .upload-results { width: 100%; }
.upload-fields { display: grid; gap: .8rem; }
.upload-fields input[type="file"] { padding: .55rem; font-size: .8rem; }
.file-drop { padding: 0; border: 1px dashed transparent; border-radius: var(--radius-sm); transition: border-color .15s ease, background-color .15s ease; }
.file-drop.is-dragging { border-color: var(--accent); background: var(--accent-soft); }
.file-hint { margin: .7rem 0 0; color: var(--muted); font-size: .76rem; }
.sample-links { margin: .45rem 0 0; color: var(--muted); font-size: .76rem; }
.sample-links a { color: var(--accent); }
.upload-privacy { margin: 1rem 0 0; color: var(--muted); font-size: .76rem; }
.upload-results { padding: 1.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.upload-results .description { margin-bottom: 1rem; }
.upload-results h3 { margin-top: 1.25rem; }
.upload-results dd { overflow-wrap: anywhere; }
.editor-workspace .editor-form { padding: 1.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.editor-form .description { width: 100%; max-width: none; }
.editor-wrapper { display: block; }
.oximo-editor-area[contenteditable] { display: block; min-height: 24rem; height: 52vh; max-height: 80vh; padding: .9rem 1rem; background: var(--surface-input); border: 1px solid var(--border); border-radius: var(--radius-sm); font: .9rem/1.7 "Geist Mono", ui-monospace, monospace; white-space: pre; overflow-wrap: normal; word-break: normal; overflow: auto; tab-size: 2; outline: none; resize: vertical; color: var(--text-secondary); caret-color: var(--text); }
.oximo-editor-area[contenteditable]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.oximo-editor-area[contenteditable] .token.comment, .oximo-editor-area[contenteditable] .token.prolog, .oximo-editor-area[contenteditable] .token.doctype, .oximo-editor-area[contenteditable] .token.cdata { color: #7f849c; }
.oximo-editor-area[contenteditable] .token.punctuation { color: var(--text-secondary); }
.oximo-editor-area[contenteditable] .token.property, .oximo-editor-area[contenteditable] .token.tag, .oximo-editor-area[contenteditable] .token.constant, .oximo-editor-area[contenteditable] .token.symbol, .oximo-editor-area[contenteditable] .token.deleted { color: #f38ba8; }
.oximo-editor-area[contenteditable] .token.boolean, .oximo-editor-area[contenteditable] .token.number { color: #fab387; }
.oximo-editor-area[contenteditable] .token.selector, .oximo-editor-area[contenteditable] .token.attr-name, .oximo-editor-area[contenteditable] .token.string, .oximo-editor-area[contenteditable] .token.char, .oximo-editor-area[contenteditable] .token.builtin, .oximo-editor-area[contenteditable] .token.inserted { color: #a6e3a1; }
.oximo-editor-area[contenteditable] .token.operator, .oximo-editor-area[contenteditable] .token.entity, .oximo-editor-area[contenteditable] .token.url { color: #89dceb; }
.oximo-editor-area[contenteditable] .token.atrule, .oximo-editor-area[contenteditable] .token.attr-value, .oximo-editor-area[contenteditable] .token.keyword { color: #cba6f7; }
.oximo-editor-area[contenteditable] .token.function, .oximo-editor-area[contenteditable] .token.class-name { color: #89b4fa; }
.oximo-editor-area[contenteditable] .token.regex, .oximo-editor-area[contenteditable] .token.important, .oximo-editor-area[contenteditable] .token.variable { color: #f9e2af; }
[data-theme="light"] .oximo-editor-area[contenteditable] .token.comment { color: #6c6f85; }
[data-theme="light"] .oximo-editor-area[contenteditable] .token.property { color: #d20f39; }
[data-theme="light"] .oximo-editor-area[contenteditable] .token.boolean, [data-theme="light"] .oximo-editor-area[contenteditable] .token.number { color: #fe640b; }
[data-theme="light"] .oximo-editor-area[contenteditable] .token.selector, [data-theme="light"] .oximo-editor-area[contenteditable] .token.attr-name { color: #40a02b; }
[data-theme="light"] .oximo-editor-area[contenteditable] .token.operator { color: #179299; }
[data-theme="light"] .oximo-editor-area[contenteditable] .token.atrule { color: #8839ef; }
[data-theme="light"] .oximo-editor-area[contenteditable] .token.function { color: #1e66f5; }
.about-section { max-width: none; width: 100%; display: grid; gap: 1rem; padding: .25rem 0; }
.about-section h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.about-section .description { margin: 0; color: var(--text-secondary); font-size: .96rem; line-height: 1.75; max-width: none; width: 100%; }
.about-section p a { color: var(--accent); text-underline-offset: 2px; }
.about-section p a:hover { color: var(--accent-hover); }
.about-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.about-actions a { text-decoration: none; }
.about-section code { font-family: "Geist Mono", ui-monospace, monospace; font-size: .84em; background: var(--surface-raised); border: 1px solid var(--border); padding: .15rem .35rem; border-radius: 4px; color: var(--text); }
.about-section strong { color: var(--text); }

.model-details { max-width: 920px; }
.model-details > .description { margin-bottom: 1.2rem; }
.equations { display: grid; gap: .7rem; }
.equation-card { padding: .9rem 1rem; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow-x: auto; }
.equation-card h4 { margin: 0 0 .55rem; color: var(--muted); font-family: "Geist Mono", ui-monospace, monospace; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.equation-math { min-height: 1.5rem; color: var(--text); font-size: 1.05rem; }
.equation-math { overflow-wrap: anywhere; }
.equation-math mjx-container { margin: .25rem 0 !important; }
.code-section { margin-top: 1.5rem; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.code-heading h3 { margin-bottom: .65rem; }
.copy-button { padding: .45rem .65rem; color: var(--text-secondary); background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: .76rem; cursor: pointer; }
.copy-button:hover { color: var(--text); background: var(--surface-raised); }
.copy-button:disabled { cursor: not-allowed; }
.code-section pre code { color: var(--text-secondary); }
.code-section .token.comment, .code-section .token.prolog, .code-section .token.doctype, .code-section .token.cdata { color: #7f849c; }
.code-section .token.punctuation { color: var(--text-secondary); }
.code-section .token.property, .code-section .token.tag, .code-section .token.constant, .code-section .token.symbol, .code-section .token.deleted { color: #f38ba8; }
.code-section .token.boolean, .code-section .token.number { color: #fab387; }
.code-section .token.selector, .code-section .token.attr-name, .code-section .token.string, .code-section .token.char, .code-section .token.builtin, .code-section .token.inserted { color: #a6e3a1; }
.code-section .token.operator, .code-section .token.entity, .code-section .token.url, .code-section .language-css .token.string, .code-section .style .token.string { color: #89dceb; }
.code-section .token.atrule, .code-section .token.attr-value, .code-section .token.keyword { color: #cba6f7; }
.code-section .token.function, .code-section .token.class-name { color: #89b4fa; }
.code-section .token.regex, .code-section .token.important, .code-section .token.variable { color: #f9e2af; }

[data-theme="light"] .code-section .token.comment, [data-theme="light"] .code-section .token.prolog, [data-theme="light"] .code-section .token.doctype, [data-theme="light"] .code-section .token.cdata { color: #6c6f85; }
[data-theme="light"] .code-section .token.property, [data-theme="light"] .code-section .token.tag, [data-theme="light"] .code-section .token.constant, [data-theme="light"] .code-section .token.symbol, [data-theme="light"] .code-section .token.deleted { color: #d20f39; }
[data-theme="light"] .code-section .token.boolean, [data-theme="light"] .code-section .token.number { color: #fe640b; }
[data-theme="light"] .code-section .token.selector, [data-theme="light"] .code-section .token.attr-name, [data-theme="light"] .code-section .token.string, [data-theme="light"] .code-section .token.char, [data-theme="light"] .code-section .token.builtin, [data-theme="light"] .code-section .token.inserted { color: #40a02b; }
[data-theme="light"] .code-section .token.operator, [data-theme="light"] .code-section .token.entity, [data-theme="light"] .code-section .token.url { color: #179299; }
[data-theme="light"] .code-section .token.atrule, [data-theme="light"] .code-section .token.attr-value, [data-theme="light"] .code-section .token.keyword { color: #8839ef; }
[data-theme="light"] .code-section .token.function, [data-theme="light"] .code-section .token.class-name { color: #1e66f5; }
[data-theme="light"] .code-section .token.regex, [data-theme="light"] .code-section .token.important, [data-theme="light"] .code-section .token.variable { color: #df8e1d; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}

.facts p {
  min-height: 100%;
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .86rem;
  line-height: 1.55;
}

.facts strong { display: block; margin-bottom: .25rem; color: var(--text); font-weight: 600; }

.workspace {
  display: grid;
  grid-template-columns: minmax(270px, .75fr) minmax(0, 1.25fr);
  gap: 1rem;
  margin-top: 1rem;
}

form, .results, .log-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

form, .results { padding: 1.35rem; }

.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.result-heading h2 { margin-bottom: 1.1rem; }
.result-tools { display: flex; flex-wrap: wrap; gap: .45rem; }
.status-value { display: inline-block; padding: .15rem .45rem; color: var(--text); background: var(--accent-soft); border-radius: 999px; }
.cancel-button { color: var(--error) !important; background: var(--error-soft) !important; border-color: color-mix(in srgb, var(--error) 35%, var(--border)) !important; }
.editor-status { width: 100%; max-width: none; margin-top: .8rem; white-space: pre-wrap; text-align: left; }

label { display: block; margin: .85rem 0 .4rem; color: var(--text-secondary); font-size: .86rem; font-weight: 600; }
.input-label { display: flex; justify-content: space-between; gap: 1rem; }
.input-label span { color: var(--muted); font-size: .78rem; font-weight: 400; }

select, input {
  width: 100%;
  padding: .7rem .75rem;
  color: var(--text);
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .2s ease;
}

select:focus, input:focus, button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

select:disabled, button:disabled { cursor: not-allowed; opacity: .5; }

.description { margin-top: .75rem; font-size: .86rem; }
.inputs { display: grid; gap: .15rem; }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.actions button {
  padding: .7rem .95rem;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.actions button:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.actions button + button { color: var(--text-secondary); background: transparent; border-color: var(--border-strong); }
.actions button + button:hover:not(:disabled) { color: var(--text); background: var(--surface-raised); border-color: var(--border-strong); }

#summary { display: grid; gap: .45rem; }
#summary > div { display: flex; align-items: baseline; gap: .45rem 1rem; }
#summary dt { color: var(--text); font-weight: 600; }
#summary dd { text-align: left; }
dl { margin: 0; padding: .85rem 1rem; background: var(--surface-raised); border-radius: var(--radius-sm); }
dt { color: var(--muted); }
dd { margin: 0; color: var(--text-secondary); font-family: "Geist Mono", ui-monospace, monospace; font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: .65rem .7rem; border-top: 1px solid var(--border); text-align: left; white-space: nowrap; }
thead tr:first-child th { border-top: 0; }
th { color: var(--muted); font-family: "Geist Mono", ui-monospace, monospace; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
td { color: var(--text-secondary); }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: var(--accent-soft); }
td:nth-child(2) { color: var(--text); font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.log-section { margin-top: 1rem; padding: 1.35rem; }
.log-section .description { width: 100%; max-width: none; margin-bottom: 1rem; }
pre { max-height: 20rem; margin: 0; padding: 1rem; overflow: auto; color: var(--text-secondary); background: var(--surface-input); border: 1px solid var(--border); border-radius: var(--radius-sm); font: .78rem/1.6 "Geist Mono", ui-monospace, monospace; white-space: pre-wrap; }
#log { min-height: 28rem; max-height: 32rem; font-size: .9rem; }

footer { padding: 1.5rem .25rem 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }

a { text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

@supports not (border-color: color-mix(in srgb, white 30%, black)) {
  .notice, .notice.ready, .notice.error, .cancel-button { border-color: var(--border-strong) !important; }
}

.theme-transition-off, .theme-transition-off * { transition: none !important; }

@media (max-width: 700px) {
  main { width: min(100% - 1.25rem, 560px); padding-top: 2rem; }
  .facts, .workspace, .upload-workspace, .editor-workspace, .option-grid { grid-template-columns: 1fr; }
  .facts { gap: .6rem; }
  .site-nav { align-items: flex-start; }
  .site-nav__actions { flex-wrap: wrap; justify-content: flex-end; }
  .result-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
