/* Base styles: the subset of the LUMA "Quick Tools" landing.css used by this
   page, merged with file-share/style.css so the tool is fully standalone. */
:root {
  color-scheme: dark;
  font-family: 'Segoe UI', Arial, sans-serif;
  --bg: #0c1218;
  --text: #f3f5f3;
  --muted: #b1bfc5;
  --accent: #d0f38a;
  --border: rgba(212, 232, 234, .18);
  --surface: rgba(27, 39, 47, .82);
  --shadow: 0 24px 48px -16px rgba(0, 0, 0, .7), 0 8px 16px -8px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-size: 15px; line-height: 1.5; background: radial-gradient(ellipse at 12% 40%, #35584755, transparent 48%), radial-gradient(ellipse at 96% 8%, #34596955, transparent 45%), var(--bg); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, #a5d4be06 35%, transparent 65%); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-header { position: relative; width: min(1200px, calc(100% - 80px)); margin: auto; height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
main { position: relative; width: min(1200px, calc(100% - 80px)); margin: 40px auto 48px; }
main:focus { outline: none; }
h2 { font-size: 23px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 12px; }
.tool-panel { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(24px) saturate(125%); -webkit-backdrop-filter: blur(24px) saturate(125%); }
.open-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: fit-content; min-width: 164px; min-height: 44px; padding: 10px 16px; border: 1px solid #d4e4dd35; border-radius: 8px; background: linear-gradient(#ffffff09, #ffffff02); color: var(--text); box-shadow: 0 4px 8px #0003, inset 0 1px 0 #ffffff08; font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.open-action svg { width: 18px; height: 18px; }
.open-action:hover { background-color: #ffffff0d; border-color: #d4e4dd70; box-shadow: 0 6px 12px #0005, inset 0 1px 0 #ffffff15; }
.open-action:active { box-shadow: inset 0 2px 4px #0003; }
.primary-action { width: 100%; background: var(--accent); border-color: var(--accent); color: #172315; box-shadow: 0 4px 12px #0005, inset 0 1px 0 #ffffff70; }
.primary-action:hover { background: #dbf6a9; border-color: #dbf6a9; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.download-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
@supports not (backdrop-filter: blur(1px)) { .tool-panel { background: #1b272f; } }
@media (max-width: 1000px) { .app-header, main { width: calc(100% - 48px); } .tool-panel { padding: 24px; } }
@media (max-width: 680px) { .app-header { height: 80px; width: calc(100% - 32px); gap: 16px; } main { width: calc(100% - 32px); margin-top: 28px; } .tool-panel { padding: 24px; backdrop-filter: blur(12px); } .open-action { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .open-action { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .tool-panel { background: #1b272f; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (forced-colors: active) { .tool-panel, .open-action { border: 1px solid CanvasText; } }

/* File-share tool styles (verbatim from the source project). */
.share-panel { max-width: 800px; margin: 24px auto; }
.intro, .service-note { color: var(--muted); max-width: 800px; margin: 16px auto; }
.share-intro-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 800px; margin: 16px auto; }
.share-intro-row .intro { margin: 0; }
.service-note { font-size: 12px; line-height: 1.8; }
.back-link { color: var(--muted); text-decoration: none; }
.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; padding: 36px 24px 28px; margin: 24px 0; border: 1px dashed #b3c6bd55; border-radius: 14px; background: linear-gradient(150deg, #d0f38a08, #0c121844); cursor: pointer; text-align: center; transition: border-color 160ms, background-color 160ms; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--accent); background-color: #d0f38a0a; }
.drop-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.drop-zone:has(input:disabled) { opacity: .55; cursor: default; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.upload-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border: 1px solid #d0f38a30; border-radius: 15px; color: var(--accent); background: #d0f38a0b; box-shadow: 0 4px 12px #0002; }
.upload-icon svg { width: 26px; height: 26px; }
.drop-zone strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.drop-subtitle { margin-top: 5px; color: var(--muted); font-size: 13px; }
.browse-button { display: inline-flex; align-items: center; gap: 20px; margin-top: 20px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 8px; background: #ffffff08; font-size: 13px; font-weight: 600; box-shadow: 0 2px 4px #0002; }
.browse-button svg { width: 16px; height: 16px; }
.drop-help { margin-top: 20px; color: var(--muted); font-size: 11px; }
input, button { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input[type=file] { max-width: 100%; }
.password-input { display: block; width: 100%; margin: 10px 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--bg); }
.create-row { display: flex; align-items: flex-end; gap: 12px; }
#send-password-panel { flex: 1; min-width: 0; }
#send-password-panel label { font-size: 13px; }
#send-password { height: 44px; margin-bottom: 0; }
.create-row #share { width: auto; min-width: 88px; height: 44px; flex-shrink: 0; justify-content: center; text-align: center; padding: 0 20px; }
.create-row:has(#share[hidden]) { display: none; }
#password-error { color: #ffb4ab; }
ul { padding-left: 22px; overflow-wrap: anywhere; }
li { margin: 8px 0; }
#link-panel { margin-top: 24px; }
.link-row { display: flex; gap: 12px; margin: 10px 0; }
.link-icon { width: 44px; height: 44px; flex: 0 0 44px; align-self: center; border: 1px solid var(--border); background: #ffffff06; }
.link-row .open-action { min-width: auto; flex-shrink: 0; }
#share-qr { display: block; max-width: 100%; height: auto; }
#qr-dialog, .info-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: #18232b; box-shadow: 0 32px 100px #0009; }
#qr-dialog::backdrop, .info-dialog::backdrop { background: #03080dbb; backdrop-filter: blur(6px); }
.info-button { flex-shrink: 0; }
#info-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-eyebrow { font-size: 10px; letter-spacing: .13em; color: var(--accent); }
#qr-title { margin: 8px 0 0; font-size: 24px; }
.icon-button { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--text); background: #ffffff0b; }
#qr-description { color: var(--muted); font-size: 13px; margin: 16px 0 24px; }
.qr-frame { width: fit-content; max-width: 100%; margin: 0 auto 24px; padding: 8px; background: white; border-radius: 12px; }
.local-notice { padding: 12px; margin-bottom: 20px; border: 1px solid #d0f38a30; border-radius: 8px; background: #d0f38a08; color: var(--muted); font-size: 12px; }
#download-qr { width: 100%; }
.dialog-footnote { color: var(--muted); text-align: center; font-size: 11px; margin: 16px 0 0; }
@media (prefers-reduced-motion: reduce) { .drop-zone { transition: none; } }
#share-link { flex: 1; min-width: 0; padding: 12px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.transfer-status { margin: 24px 0; overflow-wrap: anywhere; }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.metrics:has(#speed:empty) #speed { display: none; }
.metric { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: #ffffff06; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; cursor: help; }
#route.lan { color: var(--accent); border-color: #d0f38a40; background: #d0f38a0a; }
#route::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
#speed:empty { display: none; }
#status:empty { display: none; }
.transfer-status:has(#status:empty):has(progress[hidden]):has(#stop[hidden]) { display: none; }
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-row progress { flex: 1; min-width: 0; }
.stop-button { flex: 0 0 44px; width: 44px; height: 44px; color: #ff8585; border: 1px solid #ff858533; background: #ff85850b; }
.stop-button:hover { color: #ffaaaa; background: #ff85851a; }
.stop-button svg { fill: currentColor; stroke: none; }
progress { width: 100%; accent-color: var(--accent); }
#downloads a { display: block; margin: 12px 0; color: var(--accent); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 680px) { .link-row { gap: 8px; } }
