/* The same palette as the app, so the website looks like the thing it belongs
   to rather than a separate product that happens to share a name. */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #14110f;
  --panel: #1e1a17;
  --field: #171310;
  --line: #322b26;
  --text: #f2ece7;
  --muted: #948880;
  --accent: #ff8b3d;
}

body {
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

.wrap { width: min(560px, 100%); margin: 0 auto; }
.wrap.centred { min-height: calc(100vh - 48px); display: grid; place-items: center; }

.card {
  width: 100%;
  padding: 32px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card + .card { margin-top: 18px; }

h1 { font-size: 26px; margin-bottom: 6px; }
h1 span { color: var(--accent); }
h2 { font-size: 17px; margin-bottom: 4px; }
.tagline, .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }

input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}
input:focus { border-color: var(--accent); }
input:disabled { opacity: .55; }

button, .button {
  display: inline-block;
  padding: 11px 20px;
  font: inherit;
  font-size: 15px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
button:hover:not(:disabled), .button:hover { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110f;
  font-weight: 600;
}
.primary:hover:not(:disabled) { filter: brightness(1.08); }
.primary[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.full { width: 100%; margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 0;
  cursor: pointer;
}
.link:hover { color: var(--text); }

.note, .warn, .good {
  margin-top: 16px;
  padding: 11px 13px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid;
}
.note { color: var(--muted); background: #241c14; border-color: #4a3a24; }
.note strong { color: var(--text); }
.warn { color: #ffb4a6; background: #2a1714; border-color: #5a2b24; }
.good { color: #a6e3a1; background: #16211a; border-color: #2c4633; }

/* An invite code is shown once and never again, so it gets to be readable and
   selectable rather than styled into something that has to be squinted at. */
.code {
  display: block;
  margin-top: 10px;
  padding: 12px 13px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
  user-select: all;
  color: var(--text);
  background: var(--field);
  border: 1px dashed var(--accent);
  border-radius: 8px;
}

.muted-list { margin: 18px 0 0 18px; color: var(--muted); font-size: 14px; }
.muted-list li { margin-bottom: 8px; }
.muted-list strong { color: var(--text); font-weight: 600; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.topbar a { color: var(--accent); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

[hidden] { display: none !important; }

/* Utilities, so no element needs an inline style -- inline styles would force
   'unsafe-inline' into the CSP, which is most of what a CSP is for. */
.flush { margin: 0; }
.gap { margin-top: 12px; }
.page { padding: 40px 0; }

/* A divider between two ways of doing the same thing. */
.or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* The share page's file listing ------------------------------------------ */

.dir-heading {
  margin: 14px 0 4px;
  font-size: 12px;
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
}
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.file-row:hover { background: var(--field); border-color: var(--line); }
.file-name { overflow-wrap: anywhere; }
.file-size { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Share management on the account page ----------------------------------- */

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.share-row:first-child { border-top: none; }
.share-row.dead { opacity: .55; }
.share-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.share-info a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.share-info a:hover { color: var(--accent); }
.share-meta { font-size: 12px; color: var(--muted); }
.share-row button { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
