:root { --bg: #f7f7f5; --fg: #1d1d1b; --muted: #66665f; --line: #deded8; --accent: #1f6feb; --bad: #b42318; --warn: #8a5a00; --card: #fff; }
/* light or dark: as the computer is, unless the company's Appearance says which (html data-mode) */
@media (prefers-color-scheme: dark) { :root:not([data-mode="Light"]) { --bg: #141413; --fg: #ececea; --muted: #a3a39c; --line: #33332f; --accent: #6ea8ff; --bad: #ff8a80; --warn: #e3b341; --card: #1c1c1a; } }
:root[data-mode="Dark"] { --bg: #141413; --fg: #ececea; --muted: #a3a39c; --line: #33332f; --accent: #6ea8ff; --bad: #ff8a80; --warn: #e3b341; --card: #1c1c1a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); } /* --font: the company's (brand.css) */
main { max-width: 680px; margin: 48px auto; padding: 0 16px; }
h1 { font-size: 1.5rem; margin: 0 0 8px; }
blockquote { margin: 16px 0; padding: 12px 16px; background: var(--card); border-left: 3px solid var(--accent); white-space: normal; }
.files { list-style: none; padding: 0; margin: 20px 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.files:empty { display: none; }
.files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.files li:first-child { border-top: 0; }
.name { font-weight: 600; overflow-wrap: anywhere; flex: 1 1 200px; min-width: 0; }
.size, .meta, .note { color: var(--muted); font-size: .9rem; }
.state { color: var(--muted); font-size: .9rem; }
.state.bad { color: var(--bad); }
.state.warn { color: var(--warn); }
form { display: inline; margin: 0; }
button, .pick { font: inherit; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; display: inline-block; }
button:disabled { opacity: .5; cursor: default; }
.pick input { display: none; }
progress { width: 120px; }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer p { margin: 0 0 8px; }
footer .by { font-size: .8rem; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; text-decoration: underline; font-size: inherit; }
a { color: var(--accent); }
form.stack { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin: 16px 0; }
form.stack input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
form.stack button { align-self: flex-start; }
.note.bad { color: var(--bad); }
/* the upload page's drop area: drag files or folders in, or choose them */
.drop { margin: 16px 0 8px; padding: 28px 16px; text-align: center; border: 2px dashed var(--line); border-radius: 10px; background: var(--card); transition: border-color .15s, background .15s; }
.drop p { margin: 0 0 8px; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
/* the sign-in form's bot trap: off the page, never seen or reached by people */
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* "Download once" to several people on one link: sign in to download */
.signfirst { margin: 16px 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; }
.signfirst p { margin: 0 0 12px; }
a.button { display: inline-block; padding: 8px 16px; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; }
/* Download all and Download selected, side by side; the tick-boxes beside each file */
div.all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; }
button.secondary { background: transparent; color: var(--accent); }
.files li input[type=checkbox], td.tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
table.list th.tick, table.list td.tick { width: 28px; padding-right: 0; }
form.picks { display: block; margin: 12px 0 0; }
/* the top row's icons, and the profile menu (the person's initial) */
header.top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
header.top svg .fill { fill: currentColor; stroke: none; }
button.icon { background: none; border: 1px solid var(--line); color: var(--muted); padding: 0; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
button.icon:hover { color: var(--fg); }
.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.profile { position: relative; }
details.profile summary { list-style: none; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; user-select: none; }
details.profile summary::-webkit-details-marker { display: none; }
details.profile .menu { position: absolute; right: 0; top: 44px; z-index: 10; min-width: 220px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 24px rgb(0 0 0 / .15); padding: 6px; }
details.profile .who { margin: 4px 10px 8px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
details.profile .who strong { color: var(--fg); font-weight: 600; }
details.profile .menu form { display: block; }
details.profile .menu a, details.profile .menu .item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--fg); text-decoration: none; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
details.profile .menu a:hover, details.profile .menu .item:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* the top row: the company on the left; the signed-in links and light/dark on the right */
header.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
header.top .brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; min-height: 32px; }
header.top .brand img { max-height: 48px; max-width: 200px; object-fit: contain; }
header.top .tools { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
header.top .tools form { display: inline; }
button.theme { color: var(--muted); text-decoration: none; }
/* the list of what was shared: each a short block (title, from whom, what), never stretched */
.files.shared li { display: block; }
.files.shared li .name { display: block; flex: none; }
.files.shared li .size, .files.shared li .state { display: block; margin-top: 2px; }
/* the signed-in tabs and order */
nav.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 8px; }
nav.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.tabs a.on { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
/* the signed-in lists: compact, one line per item (like Search's results) */
main:has(table.list) { max-width: 1040px; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
table.list { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.list th, table.list td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
table.list th { font-weight: 600; color: var(--muted); font-size: .8rem; }
table.list th a { color: inherit; text-decoration: none; }
table.list th.sort.on, table.list th.sort.on a { color: var(--fg); }
table.list td.name { white-space: normal; overflow-wrap: anywhere; min-width: 160px; font-weight: 600; }
table.list td.num, table.list th.num { text-align: right; }
table.list td.date { color: var(--muted); }
table.list td.act { text-align: right; }
table.list .muted { color: var(--muted); }
button.small { padding: 3px 10px; font-size: .8rem; }
@media (max-width: 640px) { table.list .opt { display: none; } }
@media (max-width: 640px) { table.list th, table.list td { padding: 5px 6px; } table.list td.name { min-width: 0; } table.list td.date { font-size: .8rem; } }
form.search { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; flex-wrap: wrap; } form.search input[type=search] { flex: 1 1 240px; max-width: 420px; font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); } form.search a { font-size: .9rem; }
/* one transfer's files: the same slim lines as the list of everything shared, in a narrower page */
main:has(table.files-one) { max-width: 760px; }
table.list.files-one { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.list.files-one td.act { white-space: nowrap; }
table.list.files-one td.act .state { font-size: .8rem; }
p.from { margin: 0 0 8px; }
p.from .muted { color: var(--muted); }
div.all { margin: 12px 0 0; }
/* room between the Download all / Download selected buttons and the list below them */
div.all + .tablewrap, form.picks + .tablewrap { margin-top: 14px; }
/* buttons on the accent colour: dark text when the colour is light (the brand's orange in dark mode), white otherwise, via --on-accent */
button, .pick, a.button { color: var(--on-accent, #fff); }
button.secondary { color: var(--accent); }

/* a secure note: its text as written */
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line, #ccc); border-radius: 8px; padding: 12px 14px; margin: 12px 0; user-select: text; }
