:root { font-family: Inter, "Microsoft YaHei", sans-serif; color: #17211b; background: #f3f6f3; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f8fbf8, #e9f1eb); }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.panel { background: #fff; border: 1px solid #dfe8e1; border-radius: 10px; box-shadow: 0 12px 38px rgba(20, 54, 30, .08); }
.login-panel { width: min(420px, 100%); margin: 8vh auto 0; padding: 34px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #16824b; color: white; font-weight: 800; letter-spacing: .04em; }
.eyebrow { margin: 18px 0 8px; color: #16824b; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
.muted { color: #69776e; line-height: 1.55; }
form { display: grid; gap: 14px; margin-top: 26px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #35443a; }
input { width: 100%; height: 42px; border: 1px solid #cbd8ce; border-radius: 7px; padding: 0 12px; color: #17211b; background: #fbfdfb; font: inherit; outline: none; }
input:focus { border-color: #16824b; box-shadow: 0 0 0 3px rgba(22, 130, 75, .12); }
button { border: 0; border-radius: 7px; padding: 0 16px; height: 40px; font: inherit; font-weight: 700; cursor: pointer; }
.primary { color: #fff; background: #16824b; }
.primary:hover { background: #11693c; }
.ghost { color: #31523e; background: #edf4ef; }
.ghost:hover { background: #e2ede5; }
.link-button { margin-top: 18px; padding: 0; height: auto; color: #16824b; background: none; }
.status { min-height: 20px; margin: 14px 0 0; color: #ba3c2e; font-size: 13px; }
.status.ok { color: #16824b; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 28px; }
.topbar .eyebrow { margin-top: 0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-name { color: #617168; font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: #fff; border: 1px solid #dfe8e1; border-bottom: 0; border-radius: 10px 10px 0 0; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid #dfe8e1; border-radius: 0 0 10px 10px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 15px 18px; border-bottom: 1px solid #edf1ee; text-align: left; font-size: 13px; }
th { color: #6b786f; background: #f8fbf8; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.user-main { display: grid; gap: 4px; }
.user-main strong { font-size: 14px; }
.user-main span, .date { color: #738077; font-size: 12px; }
.badge { display: inline-flex; width: max-content; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.on { color: #156e40; background: #e5f5e9; }
.badge.off { color: #9a4c26; background: #fff0e3; }
.badge.expired { color: #a33e3e; background: #fde9e9; }
.row-actions { display: flex; gap: 8px; }
.small { height: 32px; padding: 0 10px; font-size: 12px; }
dialog { padding: 0; border: 0; border-radius: 12px; box-shadow: 0 24px 80px rgba(13, 34, 20, .25); }
dialog::backdrop { background: rgba(16, 31, 20, .32); }
.dialog-card { width: min(440px, calc(100vw - 28px)); padding: 26px; margin: 0; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }
.dialog-head .eyebrow { margin-top: 0; }
.icon-button { width: 32px; padding: 0; background: transparent; color: #6c786f; font-size: 24px; }
.check { display: flex; grid-template-columns: auto 1fr; grid-auto-flow: column; align-items: center; justify-content: start; }
.check input { width: 16px; height: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@media (max-width: 680px) { .shell { width: min(100% - 20px, 1080px); padding-top: 20px; } .topbar { align-items: start; gap: 12px; flex-direction: column; } .login-panel { margin-top: 4vh; padding: 24px; } }
