/* A self-contained page. No remote fonts, framework, or inherited site scripts. */
:root { color-scheme: dark; --bg: #08080a; --panel: #111113; --fg: #ebebeb; --muted: #a6a6ab; --rule: #2a2a2e; --accent: #e8b18b; }
.knight-page { margin: 0; background: var(--bg); color: var(--fg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; }
.knight-page *, .knight-page *::before, .knight-page *::after { box-sizing: border-box; }
.knight-page [hidden] { display: none !important; }
.knight-page a { color: inherit; text-underline-offset: 4px; }
.knight-page a:hover { color: var(--accent); }
.knight-page button, .knight-page input, .knight-page select { font: inherit; }
.knight-page button { cursor: pointer; }
.knight-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.knight-page button:disabled, .knight-page input:disabled, .knight-page select:disabled { opacity: .4; cursor: not-allowed; }
.knight-page p { line-height: 1.7; }
.knight-page h1, .knight-page h2, .knight-page h3, .knight-page p { margin-top: 0; }
.knight-page .page-width { width: min(1320px, calc(100% - 96px)); margin-left: auto; margin-right: auto; }
.knight-page .visually-hidden { width: 1px; height: 1px; position: absolute; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.knight-page .skip-link { position: absolute; left: 20px; top: -70px; padding: 12px; z-index: 20; background: #111; }
.knight-page .skip-link:focus { top: 10px; }
.knight-page .site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 69px; padding: 12px 48px; border-bottom: 1px solid var(--rule); }
.knight-page .site-mark { display: flex; align-items: center; gap: 20px; text-decoration: none; font: 27px Georgia, serif; letter-spacing: -1px; }
.knight-page .site-mark span { color: #bbb; font: 11px ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.knight-page nav { display: flex; gap: 26px; font-size: 12px; color: var(--muted); }
.knight-page nav a { text-decoration: none; }
.knight-page .hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding-top: 65px; padding-bottom: 45px; }
.knight-page .eyebrow { font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.knight-page h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(56px, 7.3vw, 104px); line-height: .99; letter-spacing: -.06em; margin-bottom: 25px; }
.knight-page h1 em { color: var(--accent); font-weight: 400; }
.knight-page .intro { font-size: 16px; color: #aaaab0; max-width: 495px; margin-bottom: 22px; }
.knight-page .hero-link { font-size: 12px; text-decoration: none; border-bottom: 1px solid #56565b; padding-bottom: 6px; }
.knight-page .hero-link span { margin-left: 28px; color: var(--accent); }
.knight-page .knight-art { width: min(360px, 100%); justify-self: end; text-align: right; }
.knight-page .art-board { aspect-ratio: 1; position: relative; border: 1px solid #454549; background: conic-gradient(#28282b 25%, #1c1c20 0 50%, #28282b 0 75%, #1c1c20 0); background-size: 50% 50%; }
.knight-page .art-knight { position: absolute; width: 25%; height: 25%; object-fit: contain; z-index: 2; }
.knight-page .art-white { left: 25%; top: 50%; }
.knight-page .art-black { right: 0; top: 0; }
.knight-page .jump-path { position: absolute; left: 37.5%; top: 12.5%; width: 25%; height: 50%; border-top: 1px dashed var(--accent); border-left: 1px dashed var(--accent); opacity: .8; }
.knight-page .landing-square { position: absolute; left: 50%; top: 0; width: 25%; height: 25%; border: 1px solid #e8b18b99; background: #e8b18b0d; }
.knight-page .art-caption { display: block; font: 10px ui-monospace, monospace; color: #89898f; letter-spacing: .04em; margin-top: 16px; }
.knight-page .privacy-strip { display: flex; gap: 18px; align-items: center; padding: 20px 24px; border: 1px solid #42403b; background: #151310; border-radius: 5px; margin-top: 5px; margin-bottom: 60px; }
.knight-page .privacy-strip > svg { color: var(--accent); flex-shrink: 0; }
.knight-page .privacy-strip strong { font-size: 14px; font-weight: 550; }
.knight-page .privacy-strip p { font-size: 12px; color: #aaa69f; margin: 5px 0 0; }
.knight-page .local-badge { margin-left: auto; flex-shrink: 0; font: 9px ui-monospace, monospace; color: var(--accent); border: 1px solid #5c4c3c; border-radius: 4px; padding: 7px 9px; letter-spacing: .11em; }
.knight-page .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 24px; }
.knight-page .section-heading .eyebrow { margin-bottom: 12px; }
.knight-page h2 { font: 400 37px/1.1 Georgia, serif; letter-spacing: -.04em; margin-bottom: 0; }
.knight-page .quiet-label { font: 10px ui-monospace, monospace; color: #97979d; margin-bottom: 3px; }
.knight-page .notice { border: 1px solid #3e3e46; border-radius: 5px; background: #18181e; color: #b8b8c2; font-size: 12px; padding: 13px 17px; margin-bottom: 20px; line-height: 1.6; }
.knight-page .notice-error { border-color: #6a4140; color: #ecc2bc; background: #211515; }
.knight-page .notice-ready { border-color: #343d36; background: #121714; color: #b0c0b2; }
.knight-page .setup-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: stretch; }
.knight-page .file-panel { display: flex; flex-direction: column; min-width: 0; }
.knight-page .dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #505055; background: #111113; border-radius: 8px; padding: 28px; text-align: center; flex: 1; min-height: 326px; transition: border-color .15s, background .15s; }
.knight-page .dropzone.drag-over { border-color: var(--accent); background: #211b17; }
.knight-page .dropzone.is-busy { opacity: .65; }
.knight-page .upload-symbol { color: #aca6a0; font-size: 31px; font-weight: 200; margin-bottom: 13px; }
.knight-page .dropzone h3 { font: 400 26px Georgia, serif; margin-bottom: 10px; letter-spacing: -.035em; }
.knight-page .dropzone p { font-size: 12px; color: var(--muted); margin-bottom: 19px; }
.knight-page .dropzone .small-text { color: #919197; font-size: 10px; margin: 16px 0 0; }
.knight-page .button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; border-radius: 4px; padding: 11px 16px; font-size: 12px; font-weight: 550; line-height: 1.4; text-decoration: none; }
.knight-page .button-light { background: var(--fg); border-color: var(--fg); color: #101014; }
.knight-page .button-light:not(:disabled):hover { color: #08080a; background: #fff; }
.knight-page .button-outline { background: transparent; border-color: #4a4a50; color: #ceced4; }
.knight-page .button-outline:not(:disabled):hover { color: white; border-color: #888890; }
.knight-page .text-button { color: #bcbcc3; background: transparent; border: 0; padding: 5px 0; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.knight-page .text-button:hover { color: var(--accent); }
.knight-page .file-details { border: 1px solid var(--rule); border-radius: 5px; margin-top: 12px; padding: 15px; display: grid; gap: 7px; justify-items: start; overflow-wrap: anywhere; }
.knight-page #file-name { font-size: 12px; color: #dddde3; }
.knight-page #file-metadata { color: var(--muted); font: 10px ui-monospace, monospace; }
.knight-page .settings-panel { background: #111113; border: 1px solid var(--rule); border-radius: 8px; padding: 23px; }
.knight-page fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.knight-page legend { padding: 0; font-size: 14px; margin-bottom: 21px; font-weight: 550; }
.knight-page .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 15px; }
.knight-page label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #d6d6dc; }
.knight-page label > span { color: #909097; font-size: 10px; }
.knight-page input[type="number"], .knight-page select { color: #e1e1e7; border: 1px solid #414147; border-radius: 4px; background: #08080a; min-width: 0; width: 100%; padding: 10px; font-size: 13px; margin-top: 4px; }
.knight-page .output-estimate { display: flex; flex-direction: column; justify-content: end; gap: 7px; min-width: 0; padding-bottom: 1px; }
.knight-page .output-estimate > span { font-size: 10px; color: #909097; }
.knight-page .output-estimate output { font: 11px ui-monospace, monospace; overflow-wrap: anywhere; }
.knight-page .output-estimate small { font-size: 9px; color: #909097; }
.knight-page .settings-note { font-size: 11px; color: #94949b; margin: 18px 0; }
.knight-page .settings-note strong { font-weight: 550; color: #c1b5a8; }
.knight-page .run-actions { display: flex; align-items: center; gap: 15px; }
.knight-page .progress-panel { border: 1px solid var(--rule); padding: 18px 19px; border-radius: 6px; margin: 22px 0; background: #101012; }
.knight-page .progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.knight-page #status { color: #bebec5; margin: 0 0 12px; font-size: 12px; }
.knight-page #progress-detail { color: #9898a0; font: 10px ui-monospace, monospace; white-space: nowrap; margin-bottom: 12px; }
.knight-page progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; overflow: hidden; background: #2b2b30; color: var(--accent); accent-color: var(--accent); }
.knight-page progress::-webkit-progress-bar { background: #2b2b30; }
.knight-page progress::-webkit-progress-value { background: var(--accent); }
.knight-page progress::-moz-progress-bar { background: var(--accent); }
.knight-page .error-message { border-left: 2px solid #e79c94; padding: 0 0 0 12px; margin: 14px 0 0; color: #efb7af; font-size: 12px; }
.knight-page .comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.knight-page .video-card { min-width: 0; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; background: #111113; }
.knight-page .video-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px; gap: 15px; }
.knight-page .video-heading h3 { font-size: 13px; margin: 0; font-weight: 500; }
.knight-page .video-heading span { font: 9px ui-monospace, monospace; letter-spacing: .1em; color: #94949c; }
.knight-page .video-stage { aspect-ratio: 16 / 9; position: relative; background: #050507; display: grid; place-items: center; overflow: hidden; }
.knight-page .video-stage video, .knight-page .video-stage canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
/* Required with preview-player.js. All native media, including temporary decoder elements, stays connected but has no visible plane. */
.knight-page video { display: none !important; visibility: hidden !important; }
.knight-page .canvas-preview { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; background: #050507; }
.knight-page .canvas-preview-frame { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.knight-page .canvas-preview-frame canvas { object-fit: contain; }
.knight-page .canvas-preview-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px; background: #111113; }
.knight-page .canvas-preview-controls button { flex-shrink: 0; min-height: 32px; color: #dddde3; background: #1a1a1e; border: 1px solid #4a4a50; border-radius: 3px; padding: 4px 8px; font-size: 11px; }
.knight-page .canvas-preview-controls input { flex: 1 1 80px; min-width: 40px; width: 0; accent-color: var(--accent); }
.knight-page .canvas-preview-time { font: 10px ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.knight-page .canvas-preview:fullscreen { position: fixed; inset: 0; width: 100vw; height: 100dvh; }
.knight-page .video-empty { padding: 20px; text-align: center; }
.knight-page .video-empty > span { color: #35353c; font: 50px Georgia, serif; }
.knight-page .video-empty p { color: #85858d; font-size: 11px; margin: 12px 0 0; }
.knight-page .video-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px 16px; }
.knight-page .video-actions button { font-size: 10px; color: #b1b1b9; background: transparent; border: 0; padding: 3px 0; }
.knight-page .video-actions span { margin-left: auto; color: #8f8f98; font: 9px ui-monospace, monospace; }
.knight-page .comparison-tools { display: flex; align-items: center; gap: 16px; margin-top: 17px; flex-wrap: wrap; }
.knight-page .comparison-tools p { font-size: 11px; color: #93939b; margin: 0; flex: 1 1 240px; }
.knight-page .result-files { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 25px; padding: 24px; background: #151410; border: 1px solid #464034; border-radius: 7px; margin-top: 25px; }
.knight-page .result-files .eyebrow { color: var(--accent); margin-bottom: 12px; }
.knight-page .result-files h3 { font: 28px Georgia, serif; letter-spacing: -.035em; margin-bottom: 9px; }
.knight-page #report-summary { color: #aaa69e; font: 10px/1.7 ui-monospace, monospace; margin: 0; }
.knight-page .download-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; justify-content: end; max-width: 380px; }
.knight-page .download-note { grid-column: 1 / -1; color: #99968d; font-size: 11px; margin: 0; }
.knight-page .explanation { padding-top: 75px; padding-bottom: 60px; }
.knight-page .rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.knight-page .rule-grid article { border-top: 1px solid var(--rule); padding-top: 18px; }
.knight-page .rule-number { font: 30px Georgia, serif; color: #5d5d64; }
.knight-page .rule-grid h3 { font: 22px Georgia, serif; letter-spacing: -.025em; margin: 21px 0 12px; }
.knight-page .rule-grid p { color: #9999a1; font-size: 12px; margin-bottom: 0; }
.knight-page .limits { padding: 25px 0; margin-top: 25px; border-bottom: 1px solid var(--rule); }
.knight-page .limits h3 { font-size: 13px; margin-bottom: 8px; font-weight: 500; }
.knight-page .limits p { font-size: 12px; color: #9999a1; max-width: 100ch; margin-bottom: 0; }
.knight-page .faq { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.knight-page .faq summary { color: #c1c1c8; font-size: 12px; cursor: pointer; }
.knight-page .faq p { color: #96969e; font-size: 12px; max-width: 100ch; margin: 16px 0 0; }
.knight-page .site-footer { border-top: 1px solid var(--rule); padding-top: 25px; padding-bottom: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; color: #919199; font: 10px ui-monospace, monospace; }
.knight-page .site-footer a { font-family: Georgia, serif; font-size: 15px; text-decoration: none; color: #c2c2c7; }
.knight-page dialog { width: min(96vw, 1600px); height: 92dvh; max-width: none; max-height: 96dvh; border: 1px solid #65616a; border-radius: 7px; padding: 0; background: #101014; color: #dddde3; }
.knight-page dialog[open] { display: flex; flex-direction: column; }
.knight-page dialog::backdrop { background: #000d; }
.knight-page dialog:fullscreen { width: 100vw; height: 100dvh; max-height: none; border: 0; }
.knight-page .inspector-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--rule); }
.knight-page .inspector-header h2 { font-size: 24px; }
.knight-page #frame-meta { color: #aaa; font-size: 11px; margin: 6px 0 0; }
.knight-page .inspector-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 20px; }
.knight-page .inspector-controls button { padding: 7px 10px; font-size: 11px; }
.knight-page #zoom-label { color: #aaa; font-size: 11px; margin-left: auto; }
.knight-page #frame-viewport { flex: 1; min-height: 0; overflow: auto; background: #030304; overscroll-behavior: contain; }
.knight-page #frame-canvas { display: block; cursor: grab; touch-action: none; }
.knight-page #frame-canvas.zoom-fit { width: auto; height: auto; max-width: 100%; max-height: 65dvh; object-fit: contain; margin: auto; }
.knight-page #frame-canvas.zoom-native { max-width: none; max-height: none; width: auto; height: auto; zoom: 1; }
.knight-page #frame-canvas.zoom-double { max-width: none; max-height: none; width: auto; height: auto; zoom: 2; }
.knight-page #frame-canvas.is-dragging { cursor: grabbing; }
.knight-page #frame-help { margin: 0; padding: 12px 20px; color: #aaa; font-size: 11px; }
@media (max-width: 1000px) {
  .knight-page .page-width { width: calc(100% - 56px); }
  .knight-page .site-header { padding-left: 28px; padding-right: 28px; }
  .knight-page .hero { gap: 30px; }
  .knight-page .settings-grid { grid-template-columns: 1fr 1fr; }
  .knight-page .result-files { grid-template-columns: 1fr; }
  .knight-page .download-actions { justify-content: start; max-width: none; }
  .knight-page .video-actions span { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 700px) {
  .knight-page .page-width { width: calc(100% - 36px); }
  .knight-page .site-header { padding: 15px 18px; }
  .knight-page .site-mark span { display: none; }
  .knight-page .site-header nav { gap: 20px; font-size: 11px; }
  .knight-page .hero { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 29px; gap: 27px; }
  .knight-page h1 { font-size: clamp(54px, 13vw, 76px); }
  .knight-page .intro { font-size: 14px; }
  .knight-page .knight-art { width: 150px; justify-self: end; margin-top: -14px; }
  .knight-page .art-caption { font-size: 8px; margin-top: 9px; }
  .knight-page .privacy-strip { padding: 17px; gap: 13px; margin-bottom: 40px; }
  .knight-page .privacy-strip p { font-size: 11px; }
  .knight-page .local-badge { display: none; }
  .knight-page .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .knight-page h2 { font-size: 31px; }
  .knight-page .setup-grid, .knight-page .comparison, .knight-page .rule-grid { grid-template-columns: 1fr; }
  .knight-page .setup-grid, .knight-page .comparison { gap: 16px; }
  .knight-page .dropzone { min-height: 250px; padding: 23px; }
  .knight-page .settings-panel { padding: 20px; }
  .knight-page .progress-heading { align-items: start; gap: 12px; }
  .knight-page #progress-detail { font-size: 9px; white-space: normal; text-align: right; }
  .knight-page .rule-grid { gap: 28px; }
  .knight-page .rule-grid h3 { margin-top: 13px; }
  .knight-page .explanation { padding-top: 55px; padding-bottom: 40px; }
  .knight-page .inspector-header { padding: 12px; }
  .knight-page .inspector-header h2 { font-size: 21px; }
  .knight-page .inspector-controls { padding: 12px; }
  .knight-page .site-footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .knight-page * { transition: none !important; } }
