*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
img, svg, canvas, iframe { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 8px; }

.container { max-width: var(--max-width); margin: 0 auto; padding-inline: var(--gutter); }

.display { font-size: var(--fs-display); font-weight: 400; line-height: 1.02; letter-spacing: var(--tracking-display); }
.h1 { font-size: var(--fs-h1); font-weight: 400; line-height: 1.02; letter-spacing: var(--tracking-display); }
.h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.4; }
.body-l { font-size: var(--fs-body-l); line-height: 1.45; }
.body-l--muted { color: var(--muted-2); }
.caps {
  font-size: var(--fs-caps); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--muted); line-height: 1.4;
}
.caps--tight { margin-top: -6px; }
.muted { color: var(--muted); }
.hint { margin-top: 8px; font-size: var(--fs-small); color: var(--muted); }
.consent { margin-top: 0; }
.consent a { color: inherit; text-decoration: underline; }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 10px); }
.stack--8 { --stack-gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row__grow { flex: 1 1 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--control-h-m); padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 0;
  font-size: var(--fs-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover:not(:disabled) { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn--secondary { background: var(--paper); color: var(--ink); }
.btn--secondary:hover:not(:disabled) { background: var(--surface); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--disabled); }
.btn--m { height: var(--control-h-m); font-size: var(--fs-body); }
.btn--l { height: var(--control-h-l); padding: 0 22px; font-size: 18px; }
.btn--xl { height: var(--control-h-xl); font-size: var(--fs-lead); font-weight: 500; gap: 12px; }
.btn--block { width: 100%; }
.btn--convert { height: var(--control-h-l); font-size: 19px; font-weight: 500; }
.btn--convert.is-secondary { background: var(--paper); color: var(--ink); border-color: var(--inactive); }
.btn--convert.is-secondary:hover:not(:disabled) { background: var(--surface); border-color: var(--inactive); }
.btn--xl.is-done { background: var(--paper); color: var(--ink); }
.btn--xl.is-done:hover { background: var(--surface); border-color: var(--line-strong); }
.btn--file {
  height: var(--control-h-m); padding: 0 14px; justify-content: space-between; gap: 12px;
  background: var(--paper); color: var(--ink); border-color: var(--inactive);
}
.btn--file:hover:not(:disabled) { background: var(--surface); }
.btn--file__label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-ui); }
.btn .icon { flex: none; }

.text-btn {
  display: inline-flex; align-items: center; min-height: var(--control-h-m); padding: 0 8px;
  border: 0; background: transparent; color: var(--ink); font-size: var(--fs-body);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease);
}
.text-btn:hover { background: var(--surface); }
.text-btn[aria-current="page"] { font-weight: 600; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--control-h-m); height: var(--control-h-m); padding: 0;
  border: 0; background: transparent; color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.icon-btn:hover:not(:disabled) { background: var(--surface); }
.icon-btn--boxed { flex: none; width: var(--panel-ctl); height: var(--panel-ctl); border: 1px solid var(--line-strong); background: var(--paper); }
.icon-btn--boxed:disabled { border-color: var(--line); color: var(--disabled); }

.inline-link {
  padding: 0 2px; border: 0; background: transparent; color: var(--ink);
  font: inherit; line-height: inherit; text-decoration: underline; text-underline-offset: 4px;
  transition: background-color var(--dur-fast) var(--ease);
}
.inline-link:hover { background: var(--surface); }

.seg { display: flex; flex: 1 1 auto; min-width: 0; height: var(--panel-ctl); border: 1px solid var(--line-strong); }
.seg__item {
  flex: 1 1 0; min-width: 0; height: 100%; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 0; background: var(--paper); color: var(--muted-2);
  font-size: var(--fs-ui); white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.seg__item + .seg__item { border-left: 1px solid var(--line-strong); }
.seg__item:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
.seg__item[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 500; }
.seg__item[aria-pressed="true"]:hover:not(:disabled) { background: var(--ink-hover); }
.seg__item:disabled { color: var(--disabled); }
.seg__item[aria-pressed="true"]:disabled { background: var(--inactive); color: var(--paper); }
.seg--compact { flex: 0 0 auto; }
.seg--compact .seg__item { min-width: 72px; padding: 0 16px; }

.toggle, .menu-item {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--control-h);
  padding: 0; border: 0; background: transparent; color: var(--muted-2); font-size: var(--fs-ui);
  transition: color var(--dur-fast) var(--ease);
}
.toggle:hover, .menu-item:hover { color: var(--ink); }
.marker {
  flex: none; width: 12px; height: 12px; border: 1.5px solid var(--line-strong); background: var(--paper);
  transition: background-color var(--dur-fast) var(--ease);
}
.toggle:hover .marker, .menu-item:hover .marker { background: var(--surface); }
.toggle[aria-pressed="true"], .menu-item[aria-checked="true"] { color: var(--ink); font-weight: 500; }
.toggle[aria-pressed="true"] .marker, .menu-item[aria-checked="true"] .marker { background: var(--lime); border-color: var(--lime-edge); }
.toggle:disabled { color: var(--disabled); }

.dot { flex: none; width: 10px; height: 10px; border: 1px solid var(--line-strong); background: transparent; transition: background-color var(--dur-fast) var(--ease); }
.dot--on { background: var(--lime); border-color: var(--lime-edge); }
.dot--busy { background: var(--ink); }

.input {
  width: 100%; height: var(--control-h-l); padding: 0 12px;
  border: 1px solid var(--inactive); border-radius: 0; background: var(--paper); color: var(--ink);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease);
}
.input:hover, .input:focus { border-color: var(--line-strong); }
.input:focus-visible { outline-offset: 0; }
.input--s {
  flex: 1 1 0; min-width: 0; height: var(--panel-ctl); padding: 0 10px; font-size: var(--fs-ui); line-height: normal;
  -webkit-appearance: none; appearance: none; border-color: var(--line-strong);
}
.input--xl { height: var(--control-h-xl); padding: 0 18px; border-color: var(--line-strong); font-size: var(--fs-lead); font-weight: 500; }
.input--xl::placeholder { color: var(--muted); font-weight: 400; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.range {
  --fill: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 32px; margin: 0; background: transparent; cursor: ew-resize;
}
.range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--ink) 0 var(--fill), var(--inactive) var(--fill) 100%);
  background-size: 100% 100%;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 6px; height: 20px; margin-top: -9px; border: 0; border-radius: 0; background: var(--ink);
  transition: width var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.range:hover::-webkit-slider-thumb { width: 8px; }
.range::-moz-range-track { height: 1px; background: var(--inactive); }
.range::-moz-range-progress { height: 2px; background: var(--ink); }
.range::-moz-range-thumb {
  width: 6px; height: 20px; border: 0; border-radius: 0; background: var(--ink);
  transition: width var(--dur-fast) var(--ease);
}
.range:hover::-moz-range-thumb { width: 8px; }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
.range:disabled { cursor: default; }
.range:disabled::-webkit-slider-thumb { background: var(--inactive); }
.range:disabled::-moz-range-thumb { background: var(--inactive); }
.range--l { height: 36px; }
.range--l::-webkit-slider-thumb { height: 24px; margin-top: -11px; }
.range--l::-moz-range-thumb { height: 24px; }

.slider-row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) 56px; align-items: center; gap: 12px;
  height: var(--control-h); font-size: var(--fs-ui);
}
.slider-row__value { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

.reveal {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows var(--dur) var(--ease), opacity calc(var(--dur) * 0.5) var(--ease),
              margin-top var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.reveal.is-open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows var(--dur) var(--ease), opacity var(--dur) var(--ease) calc(var(--dur) * 0.15),
              margin-top var(--dur) var(--ease), visibility 0s;
}
.reveal__inner { min-height: 0; overflow: hidden; }
.reveal__inner > * { transform: translateY(-4px); transition: transform var(--dur) var(--ease); }
.reveal.is-open > .reveal__inner > * { transform: none; }
.stack > .reveal:not(.is-open) { margin-top: calc(-1 * var(--stack-gap, 10px)); }

.site-header__inner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 12px; min-height: 68px; padding-block: 8px;
}
.logo { display: inline-flex; color: var(--ink); }
.logo svg { width: 128px; height: 21px; }
.header-nav { display: flex; align-items: center; gap: 0 12px; flex-wrap: wrap; }
.theme-icon { display: none; }
:root[data-theme-choice="system"] .theme-icon[data-theme-icon="system"],
:root[data-theme-choice="light"] .theme-icon[data-theme-icon="light"],
:root[data-theme-choice="dark"] .theme-icon[data-theme-icon="dark"] { display: inline-flex; }

.screen-badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 12px; margin-left: auto; margin-right: 8px;
  background: var(--surface); color: var(--muted-2); font-size: var(--fs-small); line-height: 1.3;
}
.screen-badge:not([hidden]) + .header-nav { padding-left: 20px; border-left: 1px solid var(--line); }
.screen-badge .dot { width: 8px; height: 8px; border-color: var(--inactive); }

.popover {
  position: absolute; right: var(--gutter); top: 100%; z-index: 30;
  width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto; padding: 20px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
.popover.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.popover--menu { width: 240px; padding: 8px 16px; }
.popover--menu .menu-item { width: 100%; min-height: var(--control-h-m); font-size: var(--fs-body); text-align: left; }
.popover__title { font-size: 28px; font-weight: 400; letter-spacing: -0.015em; }
.popover__text { margin: 6px 0 14px; font-size: var(--fs-body); overflow-wrap: anywhere; }
.popover .stack { --stack-gap: 8px; }
.popover__section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.popover__section > .caps { margin-bottom: 8px; }

.usage { display: flex; flex-direction: column; gap: 10px; }
.meter__head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-small); }
.meter__head b { font-weight: 500; font-variant-numeric: tabular-nums; }
.meter__track { height: 2px; margin-top: 6px; background: var(--line); }
.meter__track > span { display: block; height: 100%; width: var(--used, 0%); background: var(--ink); }
.danger-row { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: 4px; }

.sections { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.section-tab {
  flex: 1 1 340px; min-height: clamp(80px, 7vw, 108px); padding: 14px 16px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: var(--fs-display); font-weight: 400; line-height: 1.02; letter-spacing: var(--tracking-display);
  color: var(--inactive); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.section-tab + .section-tab { border-left: 1px solid var(--line-strong); }
.section-tab:hover { background: var(--surface); color: var(--ink); }
.section-tab[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -5px 0 var(--ink); }
.section-tab[aria-current="page"]:hover { background: var(--paper); }

.view { padding-top: 24px; }
.view[data-view="links"], .view[data-view="about"] { animation: view-in var(--dur) var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.editor { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.editor__main { flex: 999 1 560px; min-width: 0; }

.dropzone {
  height: clamp(340px, 44vw, 640px); padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; background: var(--surface-2); border: 1px dashed var(--inactive);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.dropzone.is-dragover { background: var(--surface); border-color: var(--line-strong); }
.dropzone__title { font-size: clamp(28px, 2.8vw, 40px); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; }
.dropzone__text { max-width: 420px; }
.dropzone__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.dropzone__error { max-width: 460px; font-size: var(--fs-small); color: var(--ink); font-weight: 500; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 12px; transition: opacity var(--dur) var(--ease); }
.toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.toolbar .btn--m { height: 42px; font-size: var(--fs-ui); }
.toolbar.is-locked { opacity: 0.35; pointer-events: none; }
.status { display: flex; align-items: center; gap: 8px; }
.status.is-stale { color: var(--ink); }

.stage {
  --stage-veil: color-mix(in srgb, var(--surface) 68%, transparent);
  position: relative; overflow: hidden;
  height: clamp(280px, 40vw, 580px); padding: clamp(12px, 2vw, 32px);
  display: flex; align-items: center; justify-content: center; background: var(--surface);
}
.stage.is-dragover { outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.stage__frame {
  position: relative; flex: none; background: var(--frame-empty);
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease);
}
.stage__frame.is-pad-white { background: var(--pad-white); }
.stage__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: 0 0 0 100vmax var(--stage-veil);
  transition: box-shadow var(--dur) var(--ease);
}
.stage__frame.is-dragging::after { --stage-veil: color-mix(in srgb, var(--surface) 40%, transparent); }
.stage__frame.is-draggable { cursor: grab; }
.stage__frame.is-draggable-x { touch-action: pan-y; }
.stage__frame.is-draggable-y { touch-action: pan-x; }
.stage__frame.is-dragging { cursor: grabbing; }
.stage__frame:focus-visible { outline-offset: 4px; }
.stage__media {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transition: left var(--dur) var(--ease), top var(--dur) var(--ease), width var(--dur) var(--ease), height var(--dur) var(--ease);
}
.stage__frame.is-dragging .stage__media, .stage__frame.no-anim .stage__media { transition: none; }
.stage__frame.is-result .stage__media { visibility: hidden; }
.stage__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; image-orientation: none; user-select: none; -webkit-user-drag: none; }
.stage__result {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.stage__areas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.stage__paint { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; touch-action: none; }
.stage__paint.is-off { display: none; }
.stage__paint.is-wand { cursor: crosshair; }
.stage__paint.is-brush { cursor: none; }
.stage__chip {
  position: absolute; left: 50%; bottom: 12px; z-index: 5; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong);
  font-size: var(--fs-caps); letter-spacing: var(--tracking-caps); text-transform: uppercase; white-space: nowrap;
  pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.stage__chip--top { top: 12px; bottom: auto; }
.stage__chip-arrows { font-size: 15px; letter-spacing: 0; }
.stage__frame.is-dragging .stage__chip { opacity: 0; }
.stage__busy {
  position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--surface) 55%, transparent); pointer-events: none;
}
.stage__busy .stage__chip { position: static; transform: none; }

.panel { flex: 1 1 360px; min-width: 0; font-size: var(--fs-ui); transition: opacity var(--dur) var(--ease); }
.panel.is-locked { opacity: 0.35; pointer-events: none; }
.panel__section { padding: 14px 0 16px; }
.panel__section:first-child { padding-top: 0; }
.panel__section + .panel__section { border-top: 1px solid var(--line); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--control-h); }
.panel__head--baseline { align-items: baseline; }
.big-value { font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.field-row { display: flex; align-items: center; gap: 12px; }
.field-row__label { flex: 0 0 56px; }
.size-inputs { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.panel__convert { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 8px 0 14px; background: var(--paper); }
.panel__convert::before {
  content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 0%, transparent), var(--paper));
}
.position-hint { flex: 1 1 auto; min-width: 0; color: var(--muted-2); }
.field-note { padding-left: 68px; }
.format-note { padding-left: 68px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted-2); }
.nits-note { margin-top: 6px; }
.convert-icon { display: inline-flex; }

.reveal--banner { --dur: var(--dur-slow); }
.reveal--banner.is-open { margin-top: 32px; }
.reveal--banner > .reveal__inner > * { transform: translateY(16px); }
.result {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 48px;
  padding: clamp(22px, 2.8vw, 40px);
}
.result .field-box { background: transparent; }
.result .btn--file { border-color: var(--line); }
.result__text, .result__actions { flex: 1 1 340px; min-width: 0; }
.result__text .body-l { margin-top: 16px; }
.result__text .body-l + .body-l { margin-top: 10px; }
.result__actions { display: flex; flex-direction: column; gap: 10px; }
.result__group { display: flex; flex-direction: column; gap: 10px; }
.field-box {
  height: var(--control-h-xl); padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border: 1px solid var(--line-strong); font-size: var(--fs-lead); font-weight: 500;
}
.field-box--quiet { border-color: var(--line); }
.field-box__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--dur-fast) var(--ease); }
.field-box__value.is-pending { color: var(--muted); }
.field-box__end { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.field-box__open { margin-right: -10px; font-weight: 400; }
.progress-line { height: 2px; background: var(--line); }
.progress-line > span { display: block; height: 100%; width: var(--done, 0%); background: var(--ink); transition: width var(--dur-fast) linear; }

.why { margin-top: 12px; }
.why__toggle {
  display: inline-flex; align-items: center; gap: 8px; height: var(--control-h); padding: 0 8px 0 0;
  border: 0; background: transparent; color: var(--ink); font-size: var(--fs-body);
  transition: background-color var(--dur-fast) var(--ease);
}
.why__toggle:hover { background: var(--surface); }
.why__sign { width: 14px; font-size: 18px; line-height: 1; }
.why__body { margin-top: 4px; padding-left: 22px; border-left: 1px solid var(--line-strong); font-size: var(--fs-body); line-height: 1.5; }
.why__body p + p { margin-top: 8px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: var(--fs-ui); }
.breadcrumb__back {
  display: inline-flex; align-items: center; gap: 8px; height: var(--control-h); padding: 0 8px 0 4px;
  text-decoration: none; transition: background-color var(--dur-fast) var(--ease);
}
.breadcrumb__back:hover { background: var(--surface); }
.breadcrumb__back span { font-size: 18px; }
.breadcrumb__sep { color: var(--disabled); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.page-lead { margin-top: 14px; max-width: 820px; }
.notice {
  margin-top: 20px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.notice .body-l { max-width: 620px; }
#links-empty, #links-loading { margin-top: 32px; }
.links-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.link-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: opacity var(--dur) var(--ease);
}
.link-row.is-removing { opacity: 0; }
.link-row__thumb { flex: none; width: 120px; height: 80px; background: var(--frame-empty); overflow: hidden; }
.link-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.link-row__info { flex: 1 1 260px; min-width: 0; }
.link-row__url { font-size: 22px; font-weight: 500; overflow-wrap: anywhere; }
.link-row__meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.link-row__meta .dot { width: 8px; height: 8px; }
.link-row__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.link-row__actions .btn { font-weight: 500; }
.link-row__open { font-weight: 400 !important; }
.link-row__delete { color: var(--muted-2); }
.link-row__delete.is-confirm { color: var(--ink); font-weight: 600; }
.links-back { margin-top: 24px; }

.about-row { display: flex; flex-wrap: wrap; gap: 0 48px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.about-row--first { margin-top: 36px; border-top-color: var(--line-strong); }
.about-cell { flex: 1 1 340px; padding-top: 18px; }
.about-cell p { margin-top: 10px; line-height: 1.5; }

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-block: 20px 28px; border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--muted);
}
.site-footer a { color: inherit; text-underline-offset: 3px; transition: color var(--dur-fast) var(--ease); }
.site-footer a:hover { color: var(--ink); }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

.below-stage { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.below-stage .hint { margin-top: 0; }

.alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font-size: var(--fs-ui); line-height: 1.45;
}
.alert__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-top: 1px; background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600; line-height: 1;
}
.alert__text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.alert .inline-link { flex: none; font-size: inherit; }
.alert--quiet { border-color: var(--line); background: var(--surface-2); }
.alert--quiet .alert__icon { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.alert--s { margin-top: 12px; padding: 10px 12px; font-size: var(--fs-small); }
.alert--s .alert__icon { width: 18px; height: 18px; font-size: 12px; margin-top: 0; }
.links-error { margin-top: 20px; }

.text-btn--s { min-height: 36px; font-size: var(--fs-ui); text-decoration: underline; text-underline-offset: 4px; }
.text-btn--s:disabled { color: var(--muted); text-decoration: none; cursor: default; background: transparent; }
.resend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-left: -8px; }
#resend-hint, #signin-resend-hint { margin-top: 0; }

@media (max-width: 719px) {
  .section-tab { flex-basis: 100%; }
  .section-tab + .section-tab { border-left: 0; border-top: 1px solid var(--line-strong); }
  .header-nav { gap: 0 4px; }
  .screen-badge { order: 3; flex-basis: 100%; margin: 0 0 4px; }
  .site-header__inner .screen-badge:not([hidden]) + .header-nav { padding-left: 0; border-left: 0; }
  .result { gap: 24px; }
  .slider-row { grid-template-columns: 104px minmax(0, 1fr) 52px; }
  .field-box, .input--xl, .btn--xl { font-size: 18px; }
  .panel__convert { position: static; padding-bottom: 0; }
  .panel__convert::before { display: none; }
  .field-note, .format-note { padding-left: 0; }
  .btn--file {
    height: auto; min-height: var(--control-h-m); padding: 10px 14px;
    flex-wrap: wrap; row-gap: 4px; white-space: normal; text-align: left;
  }
}
