:root {
    --bg: #f1f2f4;
    --card: #fff;
    --muted: #f7f8fa;
    --border: #e3e6ea;
    --text: #2a2f36;
    --link: #3097d1;
    --error-bg: #f8d7da;
    --error: #842029;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
a, .link { color: var(--link); text-decoration: none; }
a:hover, .link:hover { text-decoration: underline; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
h1, h2 { font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.25em; padding: 0.6em 16px; background: var(--card); border-bottom: 1px solid var(--border); }
.nav .logo { height: 32px; display: block; }
.nav .spacer { flex: 1; }
.nav form { margin: 0; }

.container { max-width: 1100px; margin: 1.5em auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 1.5em; overflow-x: auto; }
.card.narrow { max-width: 420px; margin: 3em auto; }
.card-header { padding: 0.75em 1em; border-bottom: 1px solid var(--border); font-weight: 600; }
.card-body { padding: 1em; background: var(--muted); }
.center { text-align: center; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6em 0.75em; vertical-align: top; }
thead th { border-bottom: 2px solid var(--border); }
tbody tr:nth-child(odd) { background: var(--card); }
td form { margin: 0; }
table.details th { width: 10em; white-space: nowrap; }
table.details tr { background: none; }
table.details td, table.details th { padding: 0.2em 0.5em; word-break: break-all; }

.form { display: grid; gap: 0.5em; }
.form .inline { display: flex; gap: 0.4em; align-items: center; }
input[type=email], input[type=password], input:not([type]) { padding: 0.5em; border: 1px solid #c8ccd2; border-radius: 4px; font: inherit; }
.button { display: inline-block; background: var(--link); color: #fff; border: 0; border-radius: 4px; padding: 0.6em 1.4em; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.button:hover { text-decoration: none; filter: brightness(1.05); }
.error { background: var(--error-bg); color: var(--error); padding: 0.75em 1em; border-radius: 4px; }

.welcome { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; background: #fff; }
.welcome img { max-width: 100%; }
.welcome .button { text-transform: uppercase; margin-top: 1em; }

.share { display: flex; gap: 2em; align-items: flex-start; flex-wrap: wrap; }
.share > div { flex: 1 1 320px; }
.share img { flex: 0 1 300px; max-width: 100%; }
.inline-form { display: flex; gap: 0.5em; align-items: center; flex-wrap: wrap; }
.inline-form input { width: 6em; }

.dropzone { display: inline-flex; flex-direction: column; align-items: center; gap: 0.5em; padding: 1em 2em; border: 1px solid #999; border-radius: 10px; background: var(--muted); font: inherit; color: inherit; cursor: pointer; }
.dropzone img { width: 10em; }
#uploader { margin-top: 1em; }

.pagination { display: flex; gap: 1em; list-style: none; padding: 0; }
