:root { --bg: #f7f6f3; --ink: #1f1d1a; --muted: #6b675f; --line: #d6d3cd; --line-soft: #e6e3dd; --card: #ffffff; --accent: #2f6fdb; --accent-soft: #e3edfb; --accent-dark: #1d4fa8; --ok: #1f7a45; --ok-soft: #e2f3e8; --warn: #c2410c; --warn-soft: #fdecdf; --dark: #1f1d1a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; } a:hover { color: var(--accent-dark); text-decoration: underline; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 240px; flex-shrink: 0; background: var(--dark); color: #e8e5df; display: flex; flex-direction: column; padding: 24px 0; position: sticky; top: 0; height: 100vh; }
.brand { padding: 0 24px 24px; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; color: #e8e5df; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.nav a { padding: 10px 12px; border-radius: 6px; color: #b5b1a9; } .nav a:hover { color: #fff; text-decoration: none; background: #2b2926; }
.nav a.active { background: #3a3733; color: #fff; font-weight: 500; }
.sidebar-foot { margin-top: auto; padding: 0 24px; color: #8a867e; font-size: 12px; }
.sidebar-foot form { margin-top: 8px; }
.main { flex-grow: 1; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.crumbs { color: var(--muted); font-size: 12px; }
h1 { font-size: 24px; font-weight: 600; margin: 0; } h2 { font-size: 16px; font-weight: 600; margin: 0; }
.sub { color: var(--muted); }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.btn:hover { border-color: #b5b1a9; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; } .btn.primary:hover { background: var(--accent-dark); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: #fff; font-weight: 500; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { color: var(--warn); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.card.pad { padding: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 16px 20px; } .stat .label { color: var(--muted); font-size: 12px; } .stat .value { font-size: 28px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.warn { background: #fdf5ef; } tr.active { background: #f2f6fd; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #eeece7; color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.accent { background: var(--accent-soft); color: var(--accent-dark); }
.bar { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; min-width: 80px; } .bar > i { display: block; height: 6px; background: var(--accent); } .bar > i.ok { background: var(--ok); }
.phases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 18px 24px; }
.phase { display: flex; flex-direction: column; gap: 8px; padding-right: 12px; } .phase .track { height: 4px; border-radius: 2px; background: var(--line-soft); }
.phase.done .track { background: var(--ok); } .phase.current .track { background: var(--accent); } .phase.current .name { color: var(--accent); }
.phase .name { font-weight: 500; } .phase.todo .name { color: var(--muted); } .phase .hint { font-size: 12px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 12px; color: var(--muted); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 80px; font-family: 'IBM Plex Mono', Menlo, Consolas, monospace; font-size: 12px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .row > * { flex: 1 1 160px; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice label { padding: 12px; border: 1px solid var(--line); border-radius: 6px; display: flex; gap: 10px; cursor: pointer; align-items: flex-start; }
.choice label:has(input:checked) { border-color: var(--accent); background: #f2f6fd; }
.choice input { margin-top: 3px; }
.choice .t { font-weight: 500; } .choice .d { font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tiles label { padding: 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: block; }
.tiles label:has(input:checked) { border: 2px solid var(--accent); background: #f2f6fd; padding: 13px; }
.tiles input { display: none; } .tiles .t { font-weight: 500; } .tiles .d { font-size: 12px; color: var(--muted); }
.note { padding: 10px 12px; border-radius: 6px; font-size: 12px; } .note.warn { background: var(--warn-soft); color: #9a3412; } .note.ok { background: var(--ok-soft); color: var(--ok); } .note.info { background: var(--accent-soft); color: var(--accent-dark); }
.flash { padding: 12px 16px; border-radius: 6px; } .flash.ok { background: var(--ok-soft); color: var(--ok); } .flash.error { background: var(--warn-soft); color: #9a3412; }
.log { background: var(--dark); border-radius: 8px; padding: 16px 20px; color: #d9d5cd; font-family: 'IBM Plex Mono', Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; max-height: 520px; overflow: auto; }
.log .t { color: #8a867e; }
code, pre.code { font-family: 'IBM Plex Mono', Menlo, Consolas, monospace; font-size: 12px; } pre.code { background: #f2f1ee; border: 1px solid var(--line-soft); border-radius: 6px; padding: 12px; white-space: pre-wrap; word-break: break-all; margin: 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .ok { color: var(--ok); } .warn { color: var(--warn); }
.card-head { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line-soft); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.inline-form { display: inline; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.checks { display: flex; flex-direction: column; gap: 10px; } .checks label { display: flex; gap: 10px; align-items: center; }
details summary { cursor: pointer; font-weight: 500; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login { width: 380px; padding: 32px; }
@media (max-width: 1100px) { .grid-2, .grid-3-2, .grid-2-1, .stats { grid-template-columns: 1fr; } .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
