:root { --bg: #0e1330; --panel: #182048; --line: #2b3670; --ink: #eef0ff; --soft: #a9b0d8; --accent: #ff9fb5; --ok: #7fe0a8; --warn: #f6d58e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 'Nunito', -apple-system, sans-serif; }
a { color: var(--accent); }
header { position: sticky; top: 0; z-index: 3; background: rgba(14, 19, 48, .95); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
nav { max-width: 760px; margin: 0 auto; display: flex; gap: 4px; padding: 8px 10px; overflow-x: auto; }
nav a { flex: none; padding: 8px 12px; border-radius: 10px; color: var(--soft); text-decoration: none; font-weight: 700; font-size: 15px; }
nav a.on { background: var(--panel); color: var(--ink); }
nav a.out { margin-left: auto; }
main { max-width: 760px; margin: 0 auto; padding: 16px 12px 80px; }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.msg { background: rgba(127, 224, 168, .12); border: 1px solid rgba(127, 224, 168, .4); color: var(--ok); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 700; }
.now { font-size: 24px; font-weight: 800; }
.soft { color: var(--soft); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--soft); font-weight: 700; }
tr.done td:first-child::before { content: '✓ '; color: var(--ok); }
tr.todo td { color: var(--soft); }
.ok { color: var(--ok); } .bad { color: #ffb0c0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.uploader { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: rgba(0, 0, 0, .15); }
.uploader .thumb { aspect-ratio: 4 / 3; border-radius: 10px; background: #0a0f28 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--soft); font-size: 13px; margin-bottom: 8px; }
.uploader label.btn { margin: 0; }
.uploader input[type=file] { display: none; }
.uploader .state { font-size: 13px; min-height: 18px; margin-top: 6px; }
.bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.btn { display: block; width: 100%; text-align: center; border: 0; border-radius: 12px; padding: 13px 14px; font: 800 16px 'Nunito', sans-serif; background: var(--accent); color: #3a1530; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #5a2238; color: #ffd0dc; }
.btn.small { display: inline-block; width: auto; padding: 8px 12px; font-size: 14px; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
label.f { display: block; margin-bottom: 12px; }
label.f span { display: block; font-size: 13px; color: var(--soft); font-weight: 700; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=datetime-local], textarea, select {
  width: 100%; font: 16px 'Nunito', sans-serif; color: var(--ink); background: #0b1029; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 16px; }
legend { padding: 0 6px; font-weight: 800; color: var(--accent); }
.sticky-save { position: sticky; bottom: 10px; z-index: 2; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.login { max-width: 360px; margin: 18vh auto 0; }
.files a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
