:root{--af-surface:rgba(255,255,255,.78);--af-surface-hover:rgba(255,255,255,.96);--af-panel-inset:rgba(236,240,246,.92);--af-overlay:rgba(247,249,252,.78);--af-overlay-card:rgba(255,255,255,.94);--af-drop-border:rgba(57,64,78,.18)}@media(prefers-color-scheme:dark){:root{--af-surface:rgba(0,0,0,.18);--af-surface-hover:rgba(255,255,255,.1);--af-panel-inset:rgba(0,0,0,.2);--af-overlay:rgba(0,0,0,.45);--af-overlay-card:rgba(0,0,0,.25);--af-drop-border:rgba(255,255,255,.4)}}body,html{margin:0;min-height:100%;background:radial-gradient(1000px 520px at 20% 0,rgba(88,173,180,.12),transparent 60%),var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}#app{min-height:100vh;max-width:1200px;margin:0 auto;padding:16px;box-sizing:border-box;display:grid;gap:14px;grid-template-rows:auto minmax(0,1fr) auto}.panel{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:12px}h1{margin:0;font-size:22px;letter-spacing:.2px}.sub{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.45}.controls{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}.btn{appearance:none;border:1px solid var(--line);background:var(--af-surface);color:var(--text);padding:10px 12px;border-radius:12px;cursor:pointer;font-size:14px}.btn:hover{background:var(--af-surface-hover)}.url{flex:1 1 340px;min-width:220px;border:1px solid var(--line);background:var(--af-surface);color:var(--text);border-radius:12px;padding:10px;outline:0}.status{margin-top:10px;border-top:1px solid var(--line);padding-top:10px;color:var(--muted);font-size:12px;white-space:pre-wrap;line-height:1.4}.frameWrap{min-height:520px;height:clamp(520px,calc(100vh - 250px),1400px);overflow:hidden;display:flex;flex-direction:column}#archiveFrame{width:100%;min-height:0;height:100%;flex:1 1 auto;border:0;border-radius:12px;background:var(--af-panel-inset)}.faq details{margin-top:8px;border-top:1px solid var(--line);padding-top:8px}.faq summary{cursor:pointer}#dropOverlay{position:fixed;inset:0;display:none;z-index:9999;background:var(--af-overlay);align-items:center;justify-content:center;backdrop-filter:blur(10px)}#dropOverlay.active{display:flex}.dropCard{border:2px dashed var(--af-drop-border);border-radius:20px;padding:24px;background:var(--af-overlay-card);color:var(--text);min-width:min(90vw,520px);text-align:center}@media(max-width:980px){#app{padding:12px;grid-template-rows:auto auto minmax(0,1fr)}.frameWrap{height:clamp(420px,calc(100vh - 300px),1200px);min-height:420px}}html.hide-url-ui #loadUrlBtn,html.hide-url-ui #urlInput,html.hide-drop-ui #dropOverlay{display:none!important}html.url-query-mode #app{max-width:none;margin:0;padding:0;gap:0;grid-template-rows:minmax(0,1fr)}html.url-query-mode #app>section.panel:first-child,html.url-query-mode #dropOverlay,html.url-query-mode #faqFooter{display:none!important}html.url-query-mode .frameWrap{min-height:100vh;height:100vh;border-radius:0}html.url-query-mode #archiveFrame{border-radius:0}html.is-embedded #app{padding:8px;gap:8px}html.is-embedded #app>section.panel:first-child .controls,html.is-embedded #app>section.panel:first-child .sub,html.is-embedded #app>section.panel:first-child h1,html.is-embedded #dropOverlay,html.is-embedded #faqFooter{display:none!important}html.is-embedded #app>section.panel:first-child{padding:8px 10px}
