*{box-sizing:border-box;margin:0;padding:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f4f2fb;color:#1a1030;display:flex;min-height:100vh;font-size:15px}
a{color:#6d4ed8;text-decoration:none}
.side{width:240px;background:#120b26;color:#e8e1f7;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{display:flex;gap:10px;align-items:center;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.brand img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.brand b{display:block}.brand small{color:#9d92c4;font-size:.8rem}
.side nav{display:flex;flex-direction:column;padding:10px 0;flex:1;overflow:auto}
.side nav a{padding:10px 20px;color:#c9c0e8}
.side nav a:hover,.side nav a.on{background:rgba(167,139,250,.15);color:#fff}
.side-foot{padding:14px 20px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;font-size:.85rem}
.side-foot a{color:#a78bfa}
.main{flex:1;padding:32px 40px;max-width:1100px}
h1{font-size:1.6rem;margin-bottom:16px}h2{font-size:1.1rem;margin:22px 0 10px}
.muted{color:#6f6494;font-size:.9rem}code{background:#e8e1f7;padding:1px 6px;border-radius:4px}
.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.alert{padding:12px 16px;border-radius:10px;margin-bottom:18px;background:#e6f7ee;color:#0f5132;border:1px solid #b7e4c7}
.alert.err{background:#fdeaea;color:#842029;border-color:#f5c2c7}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin:18px 0}
.card{background:#fff;border:1px solid #e3ddf3;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:4px;color:inherit}
.card b{font-size:1.8rem;color:#6d4ed8}.card span{color:#6f6494;font-size:.9rem}
.steps{margin:8px 0 0 20px;line-height:1.9}
.form label{display:block;margin-bottom:14px;font-weight:600;font-size:.88rem;color:#4a3f6b}
.form input[type=text],.form input[type=number],.form input[type=email],.form input[type=date],.form input[type=password],.form select,.form textarea,.login-box input{width:100%;margin-top:6px;padding:10px 12px;border:1px solid #d9d2ee;border-radius:8px;font:inherit;background:#fff}
.form textarea{resize:vertical}
fieldset{border:1px solid #e3ddf3;border-radius:14px;padding:18px 20px;margin-bottom:20px;background:#fff}
legend{padding:0 8px;font-weight:700;color:#6d4ed8;font-size:.85rem;text-transform:uppercase;letter-spacing:.04em}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.rows .row{display:grid;grid-template-columns:1fr 2fr;gap:10px;margin-bottom:8px}
.rows .row3{grid-template-columns:1fr 1.5fr 2.5fr}
.rows input{margin-top:0!important}
button,.btn{display:inline-block;background:linear-gradient(135deg,#a78bfa,#f0abfc);color:#1a0d3a;border:none;padding:10px 20px;border-radius:999px;font-weight:700;cursor:pointer;font:inherit;font-weight:600}
.btn.ghost{background:#fff;border:1px solid #d9d2ee}
.btn.small,.list button{padding:6px 12px;font-size:.85rem}
button.danger{background:#fdeaea;color:#842029}
.actions{display:flex;gap:10px;align-items:center}
.box{background:#fff;border:1px solid #e3ddf3;border-radius:14px;padding:20px 22px;margin-bottom:20px}
.list{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e3ddf3;border-radius:14px;overflow:hidden}
.list td{padding:12px 14px;border-bottom:1px solid #eee9f8;vertical-align:middle}
.list .n{width:36px;color:#9d92c4}.list .act{white-space:nowrap;text-align:right;width:260px}
.inline{display:inline}.inline button{margin-left:4px;background:#efeaff;color:#4a3f6b}
.kv td{padding:6px 10px 6px 0}.kv td:first-child{color:#6f6494}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.photo-box{background:#fff;border:1px solid #e3ddf3;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}
.preview{height:180px;background:repeating-conic-gradient(#eee 0 25%,#fff 0 50%) 0 0/20px 20px;border-radius:10px;display:grid;place-items:center;overflow:hidden}
.preview img{max-height:100%;max-width:100%}
.login-body{align-items:center;justify-content:center;background:#0a0616}
.login-box{background:#fff;padding:36px;border-radius:18px;width:360px;display:flex;flex-direction:column;gap:14px}
.login-box h1{font-size:1.4rem}.login-box h1 span{color:#6d4ed8}
.login-box label{font-size:.85rem;font-weight:600;color:#4a3f6b}
.login-box .back{font-size:.85rem;text-align:center}
@media(max-width:800px){body{flex-direction:column}.side{width:100%;height:auto;position:static}.side nav{flex-direction:row;flex-wrap:wrap}.main{padding:20px}.grid2,.rows .row,.rows .row3{grid-template-columns:1fr}.list .act{width:auto;white-space:normal}}

.cover-prev{display:flex;align-items:center;gap:12px;margin:-6px 0 16px}
.cover-prev img{width:70px;height:94px;object-fit:cover;border-radius:6px;border:1px solid #e3ddf3}
.cover-prev span{font-size:.85rem;color:#6f6494}
.list td.thumb{width:56px}
.list td.thumb img{width:44px;height:59px;object-fit:cover;border-radius:4px;border:1px solid #e3ddf3;display:block}
.nothumb{color:#c9c0e8}
