/* Lau & Found — a small, homemade video repair website. */
:root {
  color-scheme: light;
  --ink: #222;
  --muted: #555;
  --link: #0000b5;
  --line: #aaa;
  --paper: #edf0fb;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: var(--link); text-decoration: underline; }
a:visited { color: #551a8b; }
button:disabled { cursor: not-allowed; opacity: .58; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #234ecb; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; }
h1 { font-size: 31px; line-height: 1.2; }
h2 { font-size: 25px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.35; }
h4 { font-size: 15px; }
p { overflow-wrap: break-word; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.arrow-icon { width: 14px; height: 14px; }
.page-width { width: min(900px, calc(100% - 32px)); margin-inline: auto; }
.sr-only, .file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 10px; z-index: 10; background: #fff; border: 2px solid #000; padding: 8px 12px; }
.skip-link:focus { top: 10px; }

/* Ordinary buttons and links, like a little utility page. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 7px 14px; border: 2px outset #ddd; border-radius: 2px; background: #e8e8e8; color: #111; font: 15px/1.3 Arial, Helvetica, sans-serif; text-align: center; text-decoration: none; }
a.button:visited { color: #111; }
.button:hover:not(:disabled) { background: #f3f3f3; }
.button:active:not(:disabled) { border-style: inset; }
.button-primary { font-weight: bold; }
.button-quiet { min-height: 33px; padding: 5px 10px; font-size: 13px; }
.button-coffee { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.button svg { width: 17px; height: 17px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 1px 0; background: transparent; color: var(--link); font-size: inherit; line-height: inherit; text-decoration: underline; }
.section-index, .eyebrow, .field-label, .local-tag { font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
.section-index { display: block; margin-bottom: 6px; color: #555; }
.field-label { display: block; margin-bottom: 4px; color: #555; }
.status-dot, .legend-dot { display: inline-block; width: 7px; height: 7px; background: #23692b; border-radius: 50%; flex-shrink: 0; }

/* The header is meant to feel personal, not like a company. */
.site-header { padding-top: 22px; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; border-bottom: 2px solid #777; padding-bottom: 17px; text-align: center; }
.brand { width: 100%; color: #0000a0; font: bold 36px/1.15 'Times New Roman', Times, serif; text-decoration: underline; }
.brand:visited { color: #0000a0; }
.header-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 22px; font-size: 14px; }
.hero { padding-block: 25px 22px; text-align: center; }
.eyebrow { margin-bottom: 10px; color: #444; }
.eyebrow .status-dot { margin-right: 5px; }
.hero h1 { max-width: 760px; margin-inline: auto; }
.hero-aside { max-width: 690px; margin: 14px auto 0; }
.hero-aside p { line-height: 1.6; }
.hero-note { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 10px; font-size: 13px; }
.hero-note svg { width: 15px; height: 15px; }
.homemade-note { max-width: 690px; margin: 0 auto 22px; padding: 8px 12px; background: #fffccf; border: 1px solid #c0b66b; font-size: 13px; }
.hero-frame, .maker-art, .file-stack, .tiny-cross, .step-caption { display: none; }

/* File picker and the actual repair tool. */
.recovery-section { margin-bottom: 30px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 10px; }
.workspace-heading h2 { font-size: 24px; }
.workspace-heading .section-index { font-size: 12px; }
.local-tag { display: flex; gap: 7px; align-items: center; padding-bottom: 3px; color: #315d32; }
.workspace { border: 2px solid #888; background: #fff; }
.workspace-main { padding: 18px 22px 0; min-width: 0; }
.workspace-tabs { display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid #bbb; margin-bottom: 18px; padding-bottom: 12px; }
.stage { display: inline-flex; align-items: center; gap: 7px; color: #666; font-size: 14px; }
.stage > span { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1px solid #999; background: #eee; font-size: 13px; }
.stage.active { color: #000; font-weight: bold; }
.stage.active > span { background: #ffffb8; border-color: #666; }
.stage.complete { color: #1c6028; }
.stage.complete > span { background: #ddf3dc; border-color: #599360; }
.dropzone { position: relative; border: 2px dashed #999; background: #f7f7f7; }
.dropzone.drag-over { border-color: #163ab8; background: #e3ebff; }
.empty-state { text-align: center; padding: 25px 16px 23px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { max-width: 560px; margin: 8px auto 16px; color: #444; font-size: 14px; }
.file-types { display: block; margin-top: 12px; font-size: 12px; color: #555; }
.demo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 7px; padding: 13px 0 16px; font-size: 13px; }
.selected-state { display: flex; gap: 12px; align-items: center; padding: 16px; }
.selected-icon { display: grid; place-items: center; width: 36px; height: 43px; border: 1px solid #999; background: #fff; flex-shrink: 0; }
.selected-info { min-width: 0; flex: 1; }
.selected-info h3 { overflow-wrap: anywhere; font-size: 16px; }
.selected-info p { margin-top: 4px; font-size: 13px; color: #555; }
.workspace-footnote { display: flex; gap: 7px; align-items: center; border-top: 1px solid #bbb; padding: 12px 0; font-size: 12px; color: #555; }
.workspace-footnote svg { width: 15px; height: 15px; }

/* Simple notes below the tool. */
.workspace-aside { padding: 16px 22px; border-top: 1px solid #aaa; background: #ffffe8; }
.aside-topline { display: flex; gap: 8px; color: #666; font-size: 11px; margin-bottom: 6px; }
.aside-topline > span:last-child { display: none; }
.workspace-aside > h3 { margin-bottom: 12px; font: bold 21px/1.25 'Times New Roman', Times, serif; }
.workspace-aside > h3 br { display: none; }
.aside-item { display: flex; gap: 10px; margin-top: 10px; }
.aside-number { flex-shrink: 0; color: #555; font-size: 13px; padding-top: 2px; }
.aside-item h4 { font-size: 14px; }
.aside-item p { font-size: 13px; color: #444; margin-top: 2px; }
.aside-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 13px; }

/* Inspection, error, reference, and progress states. */
.progress-panel { padding: 15px 0; }
.progress-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: bold; margin-bottom: 6px; }
.progress-track { height: 14px; border: 1px inset #999; background: #eee; overflow: hidden; }
.progress-track > span { display: block; width: 0; height: 100%; background: #426cac; }
.progress-track.indeterminate > span { width: 28% !important; animation: progress-indeterminate 1.6s linear infinite; }
.progress-panel > p { font-size: 13px; color: #555; margin-top: 7px; }
.assessment { padding-top: 17px; padding-bottom: 5px; }
.assessment-top { display: flex; align-items: flex-start; gap: 10px; }
.assessment-icon { display: grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; border: 1px solid #589262; background: #e2f4e5; color: #215c2d; font-weight: bold; }
.assessment[data-tone='guided'] .assessment-icon { border-color: #bd9f44; background: #fff4c4; color: #735910; }
.assessment[data-tone='error'] .assessment-icon { border-color: #bc7272; background: #ffdddd; color: #8b2020; }
.assessment-top h3 { font-size: 17px; }
.assessment-top p { margin-top: 5px; font-size: 14px; color: #444; }
.file-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #bbb; padding-top: 12px; margin: 16px 0 12px; }
.file-facts > div { min-width: 0; }
.file-facts dt { font-size: 12px; color: #555; margin-bottom: 3px; }
.file-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.warnings { margin: 12px 0; padding: 10px 14px 10px 31px; background: #fff7d7; border: 1px solid #c8ab4e; color: #654f12; font-size: 13px; }
.warnings li + li { margin-top: 7px; }
.reference-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; border: 1px solid #aaa; background: #f0f2f7; padding: 15px; margin: 16px 0; }
.reference-copy { flex: 1; min-width: 220px; }
.reference-copy h3 { font-size: 16px; }
.reference-copy p { margin-top: 5px; color: #444; font-size: 13px; }
.reference-selected { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; border-top: 1px solid #bbb; padding-top: 10px; font-size: 13px; }
.reference-selected > span { min-width: 0; overflow-wrap: anywhere; }
.reference-selected .text-button { flex-shrink: 0; }
.advanced-options { margin: 15px 0; padding: 9px 0; border-top: 1px solid #bbb; border-bottom: 1px solid #bbb; }
.advanced-options > summary { cursor: pointer; font-size: 14px; }
.advanced-options > summary > span, .faq-list summary > span { display: none; }
.advanced-content { display: grid; grid-template-columns: 1fr 190px; gap: 8px 16px; align-items: center; padding-top: 12px; }
.advanced-content label { font-size: 14px; }
.advanced-content select { width: 100%; border: 1px solid #888; padding: 6px; background: #fff; color: #222; }
.advanced-content p { grid-column: 1 / -1; color: #555; font-size: 13px; }
.error-panel { background: #fff0f0; border: 1px solid #b76363; color: #8c2020; padding: 12px 14px; margin: 15px 0; font-size: 14px; }
.error-panel strong { display: block; margin-bottom: 4px; }
.error-panel p { white-space: pre-line; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 20px; }
.action-note { font-size: 12px; color: #555; }

/* Recovered download and playable preview. */
.result-panel { border-top: 1px solid #aaa; padding: 20px 0; }
.result-heading { display: flex; align-items: center; gap: 10px; }
.result-check { display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; border: 1px solid #53905b; background: #e0f3dd; color: #22602b; font-size: 21px; }
.result-panel[data-partial='true'] .result-check { background: #fff3c9; border-color: #b3943d; color: #765512; }
.result-heading h3 { font-size: 21px; }
.result-note { margin: 12px 0; color: #444; font-size: 14px; }
.result-audio { border: 1px solid #91ac8b; background: #edf7e9; padding: 10px 13px; margin-bottom: 13px; font-size: 14px; }
.result-audio.warning { border-color: #c8ab4e; background: #fff7d7; color: #654f12; }
.result-audio strong { display: block; margin-bottom: 4px; }
.video-wrap { background: #111; border: 1px solid #666; }
.video-wrap video { display: block; width: 100%; max-height: 450px; }
.preview-note { border: 1px solid #aaa; background: #f4f4f4; padding: 10px 13px; margin-top: 10px; font-size: 13px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.result-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 18px; margin-top: 12px; font-size: 12px; color: #555; }
.result-footer > span { min-width: 0; overflow-wrap: anywhere; }

/* Plain guide sections further down the page. */
.how-section { padding-block: 5px 28px; }
.section-heading { margin-bottom: 17px; }
.section-heading h2 br, .maker-copy h2 br, .faq-section h2 br { display: none; }
.section-heading > p { margin-top: 8px; color: #444; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.how-grid article { border-top: 1px solid #999; padding-top: 10px; }
.how-number { display: none; }
.how-number > span, .how-number .arrow-icon { display: none; }
.how-grid h3 { margin-bottom: 6px; font-size: 16px; }
.how-grid p { font-size: 14px; }
.support-section { padding-block: 24px; border-top: 1px solid #999; border-bottom: 1px solid #999; background: #f7f7ff; }
.support-intro { margin-top: 9px; }
.support-intro > p { max-width: 760px; margin-bottom: 12px; font-size: 14px; }
.search-field { display: flex; align-items: center; gap: 7px; max-width: 360px; background: #fff; border: 2px inset #ccc; padding: 6px 8px; }
.search-field svg { width: 17px; height: 17px; color: #555; }
.search-field input { width: 100%; min-width: 0; border: 0; background: #fff; color: #222; padding: 1px 0; font-size: 15px; }
.search-field input::placeholder { color: #666; }
.support-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; margin-bottom: 12px; color: #555; font-size: 12px; }
.support-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot.available { background: #237132; }
.legend-dot.experimental, .legend-dot.guided { background: #9a6e00; }
.camera-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.camera-card { min-width: 0; padding: 13px 14px; border: 2px outset #ccc; border-radius: 0; background: #eee; text-align: left; }
.camera-card:hover { background: #fff; }
.camera-card[aria-expanded='true'] { border: 2px solid #334f9f; background: #e8efff; }
.camera-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.camera-card-top strong { font-size: 16px; line-height: 1.35; }
.camera-card-top .arrow-icon { margin-top: 4px; }
.camera-formats { display: block; font-size: 12px; color: #444; margin-bottom: 9px; overflow-wrap: anywhere; }
.camera-state { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #285f31; }
.camera-state.experimental, .camera-state.guided { color: #775500; }
.camera-detail { margin-top: 13px; border: 1px solid #888; background: #fff; padding: 15px 17px; }
.camera-detail-heading h3 { font-size: 19px; }
.camera-detail-heading > p { margin-top: 4px; color: #555; font-size: 13px; }
.camera-detail-copy { margin-top: 12px; font-size: 14px; }
.camera-detail-copy > p + p { margin-top: 8px; }
.camera-detail-links { margin-top: 12px; }
.camera-detail-links a { display: inline-flex; align-items: center; gap: 6px; }
.camera-empty { padding-block: 16px; font-size: 14px; }
.maker-section { padding-block: 28px; border-bottom: 1px solid #999; }
.maker-copy { max-width: 720px; }
.maker-copy > p { margin-top: 11px; }
.maker-copy .button { margin-top: 16px; }
.maker-signature { display: block; margin-top: 13px; font: italic 17px 'Times New Roman', Times, serif; }
.maker-signature > span { margin-left: 5px; font: 12px Arial, Helvetica, sans-serif; color: #555; }
.faq-section { padding-block: 27px 30px; }
.faq-section > div > .text-button { margin-top: 8px; font-size: 14px; }
.faq-list { margin-top: 15px; }
.faq-list details { padding-block: 12px; border-top: 1px solid #aaa; }
.faq-list details:last-child { border-bottom: 1px solid #aaa; }
.faq-list summary { cursor: pointer; font-size: 15px; font-weight: bold; }
.faq-list details p { margin-top: 10px; font-size: 14px; }
.site-footer { padding-bottom: 20px; }
.footer-inner { border-top: 2px solid #777; padding-top: 18px; text-align: center; }
.footer-inner .brand { display: block; font-size: 24px; }
.footer-inner p { margin: 8px 0; font-size: 13px; }
.footer-inner > a:last-child:not(.brand) { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.footer-bottom { margin-top: 15px; text-align: center; font-size: 12px; color: #555; }
.footer-bottom > span { display: block; }
.footer-bottom > span + span { margin-top: 9px; }

/* A small native dialog for the optional coffee link. */
.coffee-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 28px; border: 2px solid #777; background: #f8f8ee; color: #222; }
.coffee-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.dialog-close { position: absolute; right: 8px; top: 7px; width: 29px; height: 29px; border: 2px outset #ddd; background: #e8e8e8; font-size: 22px; line-height: 1; }
.coffee-dialog-icon { margin-bottom: 9px; }
.coffee-dialog-icon svg { width: 30px; height: 30px; }
.coffee-dialog h2 { font-size: 26px; }
.coffee-dialog p { font-size: 15px; margin-top: 13px; }
.coffee-dialog .dialog-small { font-size: 13px; color: #555; }
.coffee-dialog .button { margin-top: 18px; }

@keyframes progress-indeterminate {
  from { transform: translateX(-105%); }
  to { transform: translateX(365%); }
}

@media (max-width: 640px) {
  .page-width { width: calc(100% - 24px); }
  .site-header { padding-top: 18px; }
  .header-inner { gap: 11px 16px; }
  .brand { font-size: 33px; }
  .header-inner nav { gap: 7px 16px; }
  .hero { padding-block: 22px; }
  .hero h1 { font-size: 28px; }
  .hero-aside { margin-top: 12px; }
  .workspace-heading { display: block; }
  .local-tag { margin-top: 7px; }
  .workspace-main { padding: 14px 13px 0; }
  .workspace-tabs { gap: 10px 17px; }
  .stage { gap: 5px; font-size: 13px; }
  .stage > span { width: 21px; height: 21px; font-size: 12px; }
  .empty-state { padding: 21px 12px; }
  .empty-state h3 { font-size: 18px; }
  .selected-state { flex-wrap: wrap; padding: 13px; gap: 10px; }
  .selected-state > .button { margin-left: 46px; }
  .workspace-aside { padding: 15px 13px; }
  .file-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-panel { padding: 12px; }
  .reference-copy { min-width: 0; flex-basis: 100%; }
  .advanced-content { grid-template-columns: 1fr; }
  .advanced-content select { font-size: 16px; }
  .action-row { gap: 10px; }
  .action-note { flex-basis: 100%; }
  .result-actions { flex-direction: column; align-items: stretch; }
  .how-grid { grid-template-columns: 1fr; gap: 17px; }
  .camera-grid { grid-template-columns: 1fr; }
  .camera-card { padding: 12px; }
  .camera-detail { padding: 13px; }
  .search-field { max-width: none; }
  .search-field input { font-size: 16px; }
  .maker-signature > span { display: block; margin: 4px 0 0; }
  .coffee-dialog { padding: 28px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .progress-track.indeterminate > span { width: 100% !important; transform: none; background: #7c93b7; }
}
