:root { color-scheme: light dark; font-family: ui-sans-serif, system-ui, sans-serif; background: #10131a; color: #edf1f7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #24304b, #10131a 45%); }
main { width: min(760px, calc(100% - 32px)); margin: 8vh auto; }
header { text-align: center; margin-bottom: 28px; }
h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: -.05em; }
h2 { margin-top: 0; }
header p, .status { color: #aab5c8; }
.card { background: #191f2b; border: 1px solid #303a4c; border-radius: 18px; padding: 24px; box-shadow: 0 18px 60px #0007; }
.hidden { display: none; }
button, .button { display: inline-block; border: 0; border-radius: 9px; padding: 11px 16px; background: #68a4ff; color: #071321; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
.secondary { background: #303a4c; color: #edf1f7; }
input[type=file] { display: none; }
#start { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
#start.hidden { display: none; }
#join-form { display: flex; gap: 8px; }
#code-input { width: 180px; border: 1px solid #435069; border-radius: 9px; padding: 10px; background: #10151e; color: inherit; text-transform: uppercase; font: inherit; letter-spacing: .08em; }
#start-status { flex-basis: 100%; text-align: center; margin: 0; }
.code-label { text-align: center; color: #aab5c8; }
.code { text-align: center; font: 700 clamp(2rem, 10vw, 4rem) ui-monospace, monospace; letter-spacing: .16em; margin: 8px 0; }
#sender-status { text-align: center; }
.actions, .selection-actions { display: flex; gap: 8px; margin: 20px 0 12px; }
.file-list { border: 1px solid #303a4c; border-radius: 10px; max-height: 420px; overflow: auto; margin-bottom: 18px; }
.file-list.empty { padding: 24px; text-align: center; color: #8490a3; }
.file-row { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #2a3241; }
.file-row:last-child { border-bottom: 0; }
.file-row.folder, .file-row.parent { cursor: default; user-select: none; }
.file-row.folder:hover, .file-row.parent:hover { background: #222b3a; }
.file-icon { width: 1.25em; text-align: center; }
.file-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.file-size { color: #8490a3; white-space: nowrap; }
.current-path { padding: 0 4px 8px; color: #aab5c8; font: .9rem ui-monospace, monospace; overflow-wrap: anywhere; }
@media (max-width: 540px) { .or { display: none; } #join-form { width: 100%; } #code-input { min-width: 0; flex: 1; } }
