:root {
  color-scheme: light;
  --ink: #0b1d3a;
  --blue: #0077ff;
  --blue-dark: #005fcf;
  --paper: #ffffff;
  --line: #e6ebf1;
  --muted: #5a6a80;
  --wash: #f6f8fb;
  --danger: #a52335;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.7; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--blue-dark); }
button:disabled { cursor: wait; opacity: .58; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
input:focus-visible { outline-offset: 2px; }
.shell { width: min(100% - 48px, 1040px); margin-inline: auto; }
.skip-link { position: absolute; inset-block-start: -80px; inset-inline-start: 16px; z-index: 10; padding: 10px 16px; background: var(--paper); border: 2px solid var(--blue); border-radius: 8px; }
.skip-link:focus { inset-block-start: 12px; }
.site-header { border-block-end: 1px solid var(--line); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.45; }
.wordmark strong { font-size: 21px; font-weight: 750; }
.wordmark span { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.preview-badge { border: 1px solid var(--line); border-radius: 30px; padding: 5px 13px; font-size: 12px; white-space: nowrap; color: var(--muted); background: var(--wash); }
.main-content { flex: 1; padding-block: 64px 48px; }
.intro { max-width: 760px; }
.eyebrow { margin: 0 0 9px; font-size: 12px; font-weight: 750; color: var(--blue-dark); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(35px, 4.4vw, 54px); line-height: 1.45; letter-spacing: -.025em; font-weight: 750; }
h1 span { color: var(--blue); }
.intro-copy { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.platforms { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 25px 0 32px; padding: 0; }
.platforms li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.5; }
.workspace { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 35px rgb(11 29 58 / 4%); }
label { display: block; margin-block-end: 10px; font-size: 15px; font-weight: 700; }
.input-row { display: flex; gap: 12px; }
input { min-width: 0; width: 100%; height: 60px; border: 1px solid #c8d2df; border-radius: 10px; padding: 0 18px; color: var(--ink); background: var(--paper); font-size: 16px; }
input::placeholder { color: #718096; opacity: 1; }
input:disabled { background: var(--wash); color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; padding: 11px 22px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; line-height: 1.7; }
.button--primary { background: var(--blue-dark); color: var(--paper); }
.button--primary:hover:enabled { background: #004da8; }
.button--secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button--secondary:hover:enabled { border-color: var(--blue); color: var(--blue-dark); }
.input-row .button { flex-shrink: 0; min-width: 140px; }
.field-hint { margin: 11px 0 0; font-size: 12px; color: var(--muted); }
.notice { margin: 20px 0 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.notice--error { color: var(--danger); background: #fff8f8; border-color: #f2d7dc; }
.notice a { display: inline-block; margin-inline-start: 8px; }
.job-panel, .result-panel { border-block-start: 1px solid var(--line); margin-block-start: 28px; padding-block-start: 26px; }
.result-panel:focus { outline: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-end: 16px; }
.section-heading h2, .result-panel h2 { margin: 0; font-size: 23px; font-weight: 750; line-height: 1.6; }
.section-heading .eyebrow { margin-block-end: 2px; }
.job-percent { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--blue-dark); }
progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; accent-color: var(--blue); background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 10px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 10px; transition: width .25s ease; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 10px; }
progress:not([value]) { background: linear-gradient(90deg, var(--line) 25%, #a4ceff 45%, var(--line) 65%); background-size: 200% 100%; animation: waiting 1.8s linear infinite; }
progress:not([value])::-webkit-progress-bar { background: transparent; }
.status-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-block-start: 10px; }
.status-row p { margin: 0; font-size: 13px; }
.muted { color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--blue-dark); font-size: 12px; padding: 8px 0; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.result-description { margin: 4px 0 20px; font-size: 14px; color: var(--muted); }
.choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.choice-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 82px; border: 1px solid var(--line); border-radius: 12px; text-align: start; padding: 15px 18px; background: var(--wash); color: var(--ink); }
.choice-button:hover:enabled { border-color: var(--blue); background: #f0f7ff; }
.choice-label { display: block; font-size: 17px; font-weight: 700; }
.choice-meta { display: block; color: var(--muted); font-size: 12px; margin-block-start: 3px; }
.choice-arrow { color: var(--blue-dark); font-size: 22px; }
.file-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.file-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.file-symbol { display: grid; place-items: center; width: 42px; height: 48px; border: 1px solid #d6e6fa; border-radius: 9px; background: #f1f7ff; color: var(--blue-dark); font-size: 10px; font-weight: 750; flex: 0 0 auto; }
.file-details { min-width: 0; flex: 1; }
.file-name { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.file-meta { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.file-download { min-height: 42px; padding: 8px 18px; font-size: 13px; background: var(--wash); }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }
.profile-summary { display: flex; flex-direction: column; margin-block: 16px 22px; }
.profile-summary strong { font-size: 22px; }
.profile-handle { color: var(--blue-dark); font-size: 14px; align-self: flex-start; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 10px; }
.profile-grid > div { padding: 16px; background: var(--wash); border-radius: 10px; min-width: 0; }
.profile-grid dt { font-size: 12px; color: var(--muted); margin-block-end: 4px; }
.profile-grid dd { margin: 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.profile-note { font-size: 12px; color: var(--muted); margin: 15px 0 0; }
.usage-note { display: flex; align-items: center; gap: 12px; margin: 23px 4px 0; color: var(--muted); }
.usage-note p { margin: 0; font-size: 12px; }
.note-line { width: 22px; height: 1px; background: #b7c5d6; flex-shrink: 0; }
.site-footer { border-block-start: 1px solid var(--line); padding-block: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer span { margin-inline: 6px; color: #a6b1bf; }
.footer-signature { white-space: nowrap; }
.login-main { display: grid; place-items: center; flex: 1; padding-block: 64px; }
.login-card { width: min(100%, 460px); padding: 36px; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 35px rgb(11 29 58 / 4%); }
.login-card h1 { font-size: 34px; }
.login-card > .muted { margin: 12px 0 26px; font-size: 14px; }
.login-form .button { width: 100%; margin-block-start: 18px; }
.login-form .notice { margin-block-start: 12px; }
@keyframes waiting { to { background-position: -200% 0; } }
@media (max-width: 650px) {
  .shell { width: min(100% - 32px, 1040px); }
  .header-inner { min-height: 84px; }
  .wordmark strong { font-size: 19px; }
  .wordmark span { font-size: 11px; }
  .preview-badge { font-size: 11px; padding: 4px 10px; }
  .main-content { padding-block: 38px 32px; }
  .intro-copy { font-size: 15px; }
  .platforms { gap: 7px; margin-block: 20px 24px; }
  .platforms li { font-size: 11px; padding: 4px 8px; }
  .workspace { padding: 21px 18px; border-radius: 16px; }
  .input-row { flex-direction: column; gap: 10px; }
  input { height: 56px; padding-inline: 14px; }
  .input-row .button { width: 100%; min-height: 52px; }
  .field-hint { font-size: 11px; }
  .choice-list { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid > div { padding: 13px; }
  .profile-grid dd { font-size: 14px; }
  .file-card { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .file-download { width: 100%; }
  .file-symbol { width: 36px; height: 42px; }
  .section-heading h2, .result-panel h2 { font-size: 21px; }
  .status-row { align-items: flex-start; gap: 12px; }
  .status-row p { padding-block-start: 8px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 20px; font-size: 11px; }
  .login-main { padding-block: 40px; }
  .login-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.admin-toolbar { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:10px 20px; padding:12px 20px; background:var(--wash); border-bottom:1px solid var(--line); font-size:13px; }
.admin-toolbar strong { color:var(--ink); }
.admin-toolbar a { text-decoration:none; }
.admin-toolbar a:hover { text-decoration:underline; }
.promo-slot { margin-block:22px; border:1px solid var(--line); border-radius:14px; padding:12px; overflow:hidden; }
.promo-slot picture, .promo-slot img { display:block; max-width:100%; width:100%; }
.promo-slot img { border-radius:8px; height:auto; }
.promo-badge { display:inline-block; color:var(--muted); background:var(--wash); border-radius:4px; padding:3px 9px; margin-bottom:8px; font-size:12px; }
body { font-size:var(--font-body-desktop,15px); }
h1 { font-size:var(--font-hero-title-desktop,44px); }
.intro-copy { font-size:var(--font-hero-description-desktop,17px); }
.field-hint,.profile-note,.usage-note p { font-size:var(--font-helper-desktop,13px); }
label { font-size:var(--font-field-label-desktop,14px); }
input { font-size:var(--font-field-control-desktop,16px); }
.button { font-size:var(--font-button-desktop,17px); }
.section-heading h2,.result-panel h2 { font-size:var(--font-result-title-desktop,32px); }
.result-description { font-size:var(--font-result-body-desktop,16px); }
.profile-summary strong { font-size:var(--font-profile-title-desktop,20px); }
.profile-grid dt { font-size:var(--font-profile-label-desktop,12px); }
.profile-grid dd { font-size:var(--font-profile-value-desktop,13px); }
@media(max-width:650px) {
 body { font-size:var(--font-body-mobile,14px); }
 h1 { font-size:var(--font-hero-title-mobile,32px); }
 .intro-copy { font-size:var(--font-hero-description-mobile,14px); }
 .field-hint,.profile-note,.usage-note p { font-size:var(--font-helper-mobile,12px); }
 label { font-size:var(--font-field-label-mobile,13px); }
 input { font-size:max(16px,var(--font-field-control-mobile,16px)); }
 .button { font-size:var(--font-button-mobile,17px); }
 .section-heading h2,.result-panel h2 { font-size:var(--font-result-title-mobile,28px); }
 .result-description { font-size:var(--font-result-body-mobile,14px); }
 .profile-summary strong { font-size:var(--font-profile-title-mobile,18px); }
 .profile-grid dt { font-size:var(--font-profile-label-mobile,11px); }
 .profile-grid dd { font-size:var(--font-profile-value-mobile,12px); }
}

/* Compact content, preview and browser-local request history. */
.header-inner { min-height: 80px; }
.main-content { padding-block: 32px; }
.intro-copy { margin-block-start: 8px; }
.platforms { margin-block: 16px 22px; }
.workspace { padding: 24px; }
.button { white-space: normal; text-align: center; gap: 8px; }
.button--primary { background: var(--blue); color: #fff; }
.button--primary:hover { background: #0065da; }
.job-panel,.result-panel { margin-block-start: 22px; padding-block-start: 20px; }
.result-description { margin-block-end: 14px; }
.recent-section { margin-block-start: 18px; padding-block-start: 14px; border-top: 1px solid var(--line); }
.recent-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-block: 8px; color: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; touch-action: manipulation; }
.recent-summary::-webkit-details-marker { display: none; }
.recent-summary::after { content: ""; width: 8px; height: 8px; margin-inline: 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: 0 0 auto; }
.recent-section[open] > .recent-summary::after { transform: rotate(225deg); }
.recent-summary:hover { color: var(--blue-dark); }
.recent-actions { display: flex; justify-content: flex-end; }
.recent-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 8px 0 0; gap: 8px; }
.recent-item { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recent-details { min-width: 0; }
.recent-source { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 650; }
.recent-state { display: block; font-size: 11px; color: var(--muted); }
.recent-item .text-button { flex-shrink: 0; min-height: 44px; }
.recent-section .field-hint { font-size: 11px; margin-block-start: 8px; }
.file-card { display: block; padding: 14px; }
.file-list { align-items: start; }
.file-header { display: flex; align-items: center; gap: 10px; margin-block-end: 12px; }
.file-actions { display: flex; gap: 8px; margin-block-start: 12px; flex-wrap: wrap; }
.file-actions .button { flex: 1; min-width: 110px; width: auto; font-size: 14px; min-height: 44px; }
.file-actions .button--primary { background: var(--blue); color: #fff; }
.file-actions .button--secondary { background: var(--paper); }
.media-preview { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: var(--wash); }
audio.media-preview { height: 48px; }
.image-preview { display: flex; width: 100%; flex-direction: column; align-items: center; border: 0; border-radius: 10px; background: var(--wash); padding: 8px; color: var(--muted); }
.image-preview img { display: block; width: 100%; height: 220px; object-fit: contain; }
.image-caption { font-size: 12px; padding: 4px; }
.file-list:has(.image-preview) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.file-notice { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.image-viewer { width: min(94vw,900px); max-height: 92vh; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); }
.image-viewer::backdrop { background: rgb(11 29 58 / 65%); }
.image-viewer .button { display: flex; margin-block-end: 12px; }
.image-viewer img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.profile-summary { margin-block: 12px; }
.profile-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0 0 14px; }
.profile-stats > div { min-width: 0; padding: 10px 6px; background: var(--wash); border-radius: 9px; text-align: center; }
.profile-stats dt { color: var(--muted); font-size: 12px; }
.profile-stats dd { margin: 0; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-rows { margin: 0; }
.profile-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.profile-rows dt { font-size: var(--font-profile-label-desktop,12px); color: var(--muted); }
.profile-rows dd { font-size: var(--font-profile-value-desktop,13px); margin: 0; font-weight: 650; text-align: end; overflow-wrap: anywhere; }
.profile-changes { margin-top: 10px; }
.profile-changes summary { cursor: pointer; color: var(--blue-dark); font-size: 13px; padding-block: 9px; }
.result-actions { margin-block-start: 16px; }
.result-actions .button { font-size: 14px; min-height: 44px; }
@media (max-width:650px) {
 .header-inner { min-height: 66px; }
 .main-content { padding-block: 22px 26px; }
 .admin-toolbar { gap: 6px 14px; padding: 8px 12px; font-size: 11px; }
 .workspace { padding: 16px; }
 .platforms { gap: 6px; margin-block: 12px 18px; }
 .platforms li { border: 0; padding: 2px 5px; background: var(--wash); }
 .recent-list { grid-template-columns: 1fr; gap: 6px; }
 .recent-item { padding-block: 4px; }
 .recent-details { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
 .recent-source { max-width: 150px; }
 .section-heading h2,.result-panel h2 { font-size: min(var(--font-result-title-mobile,24px),24px); }
 .profile-summary strong { font-size: var(--font-profile-title-mobile,18px); }
 .profile-stats dd { font-size: clamp(12px,3.5vw,16px); }
 .profile-stats dt { font-size: 11px; }
 .profile-rows dt { font-size: var(--font-profile-label-mobile,11px); }
 .profile-rows dd { font-size: var(--font-profile-value-mobile,12px); max-width: 65%; }
 .profile-note { font-size: 11px; }
 .media-preview { max-height: 340px; }
 .file-list:has(.image-preview) { grid-template-columns: 1fr; }
 .status-row { flex-wrap: wrap; }
 .status-row .text-button { min-height: 44px; }
 .usage-note { margin-block-start: 16px; }
}
