:root { --bg: #12141a; --panel: #1c1f28; --line: #2c3140; --text: #e4e6eb; --dim: #9aa0ad; --accent: #e0a64a; --error: #e06a5a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 "Segoe UI", system-ui, sans-serif; }
header { display: flex; align-items: center; gap: 1.5em; padding: .8em 1.5em; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
header .brand { color: var(--accent); font-weight: 600; font-size: 1.15em; text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.2em; flex: 1; }
nav .who { margin-left: auto; color: var(--dim); }
a { color: var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 1.5em; }
h1 { font-size: 1.6em; margin: .3em 0 .6em; word-wrap: break-word; }
h2 { font-size: 1.2em; margin-top: 1.6em; }
.box { display: grid; gap: .4em; max-width: 360px; padding: 1.2em; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.box.wide { max-width: none; }
label { color: var(--dim); margin-top: .5em; }
.hint { font-size: .85em; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: .45em .6em; }
textarea { resize: vertical; }
button, .button { display: inline-block; font: inherit; margin-top: .8em; padding: .5em 1.1em; color: #1a1306; background: var(--accent); border: 0; border-radius: 4px; text-decoration: none; cursor: pointer; }
.button.secondary { background: var(--line); color: var(--text); }
form.inline { display: inline; }
button.link { margin: 0; padding: 0; background: none; color: var(--accent); text-decoration: underline; }
.error { padding: .7em 1em; background: #3a1f1c; border-left: 4px solid var(--error); border-radius: 4px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: .5em .6em; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--dim); font-weight: 500; }
.state { display: inline-block; padding: .05em .5em; border-radius: 3px; background: var(--line); font-size: .9em; white-space: nowrap; }
table.list td.when { white-space: nowrap; }
.state-new { background: #2b3a52; }
.crumbs { color: var(--dim); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .2em 1em; }
dl.facts dt { color: var(--dim); }
dl.facts dd { margin: 0; }
.text { white-space: pre-wrap; word-wrap: break-word; padding: 1em; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.state-needs_info { background: #5a4419; }
.state-accepted { background: #24452f; }
.state-in_progress { background: #1f4650; }
.state-done { background: #2f5a2a; }
.state-declined { background: #3a2a2a; }
.pictures { display: flex; flex-wrap: wrap; gap: .8em; }
.pictures img { display: block; max-width: 260px; max-height: 180px; width: auto; height: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
ol.thread { list-style: none; padding: 0; display: grid; gap: .9em; }
ol.thread .meta { margin: 0 0 .3em; color: var(--dim); font-size: .92em; }
ol.thread li.question .text { border-left: 4px solid var(--accent); }
input[type=file] { padding: .35em; }
main.wide { max-width: 1320px; }
.done { padding: .7em 1em; background: #1f3324; border-left: 4px solid #6ab06a; border-radius: 4px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2em; align-items: start; }
@media (max-width: 900px) { .columns { grid-template-columns: minmax(0, 1fr); } }
h2.first { margin-top: 0; }
h3 { font-size: 1.05em; margin: 1.2em 0 .4em; }
.tabs { display: flex; flex-wrap: wrap; gap: .4em; }
.tabs a { padding: .25em .7em; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; }
.tabs a.current { background: var(--line); border-color: var(--accent); }
.tabs .count { color: var(--dim); }
label.check { color: var(--text); }
label.check input { width: auto; }
.row { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; }
.row button, .row label { margin-top: 0; }
button.secondary { background: var(--line); color: var(--text); }
button.danger { background: #7a2f27; color: var(--text); }
.reason { border-left: 4px solid var(--error); }
ol.history { list-style: none; padding: 0; display: grid; gap: .5em; font-size: .92em; }
.note { margin-top: .3em; padding: .5em .7em; }
.secret { font-size: 1.1em; word-break: break-all; }
.worknote { border-left: 4px solid var(--accent); }
.privacy { margin-top: 2em; padding-top: .5em; border-top: 1px solid var(--line); color: var(--dim); font-size: .92em; }
.privacy h2 { font-size: 1.05em; color: var(--text); }
