:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #132039; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 30px max(28px, calc((100vw - 1160px) / 2)); color: #fff; background: linear-gradient(120deg, #151d3f, #4731a6); }
.topbar h1 { margin: 4px 0 8px; font-size: clamp(28px, 4vw, 42px); }
.topbar p { margin: 0; line-height: 1.7; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; opacity: .8; }
.back { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 11px 18px; white-space: nowrap; }
main { width: min(1160px, calc(100% - 32px)); margin: 24px auto 60px; }
.notice, .toolbar, .editor, .summary, .card { background: #fff; border: 1px solid #dce4f0; border-radius: 16px; box-shadow: 0 8px 26px rgba(39,56,92,.06); }
.notice { padding: 14px 18px; margin-bottom: 16px; color: #4b5d78; }
.notice.success { color: #137555; background: #effaf5; border-color: #bfead7; }
.notice.error { color: #b42318; background: #fff1f0; border-color: #ffc9c5; }
.toolbar { display: flex; gap: 12px; align-items: end; padding: 16px; margin-bottom: 16px; flex-wrap: wrap; }
label { display: grid; gap: 7px; color: #485a75; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #cdd8e7; border-radius: 10px; padding: 11px 12px; color: #132039; background: #fff; font: inherit; }
textarea { resize: vertical; }
button { border: 0; border-radius: 10px; padding: 11px 17px; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.primary { color: #fff; background: #5546e8; }
.secondary { color: #32425f; background: #edf2fa; }
.text-button { color: #5f6f86; background: transparent; }
#new-material { margin-left: auto; }
.editor { padding: 20px; margin-bottom: 16px; }
.editor-head { display: flex; justify-content: space-between; align-items: center; }
.editor h2 { margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.file-field { margin-top: 14px; padding: 14px; border: 1px dashed #aebbd0; border-radius: 12px; background: #f8faff; }
.file-field span { font-weight: 400; color: #6b7b91; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.summary { display: flex; gap: 20px; padding: 14px 18px; margin-bottom: 16px; color: #53647c; }
.summary strong { color: #1b2b48; }
.cards { display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 5px 0; line-height: 1.6; color: #596a82; }
.meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #edf2fa; color: #4b5b73; font-size: 12px; }
.pill.published { background: #dff7eb; color: #116846; }
.pill.draft { background: #fff1cf; color: #855b00; }
.pill.archived { background: #eceff4; color: #6b7280; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 330px; }
.download { color: #1769e0; text-decoration: none; font-weight: 700; padding: 10px; }
.empty { padding: 38px 18px; text-align: center; color: #6c7a90; background: #fff; border: 1px dashed #c9d4e4; border-radius: 16px; }
@media (max-width: 760px) { .topbar { align-items: flex-start; flex-direction: column; } .grid { grid-template-columns: 1fr; } .card { grid-template-columns: 1fr; } .card-actions { justify-content: flex-start; max-width: none; } #new-material { margin-left: 0; } }
