:root { font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; color: #202024; background: #f7f7f8; --line: #e5e5e7; --muted: #77777e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { border: 0; border-radius: 8px; padding: 9px 14px; color: #fff; background: #242428; font-size: 13px; font-weight: 650; cursor: pointer; }
button:hover { background: #101013; }
button.secondary { color: #39393e; background: #fff; border: 1px solid #dcdcdf; }
button.danger { color: #b42318; background: transparent; }
input { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #dcdcdf; border-radius: 8px; outline: 0; }
input:focus { border-color: #99999f; box-shadow: 0 0 0 3px rgba(30,30,34,.06); }
label { color: #5d5d64; font-size: 12px; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card, .table-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.login-card { width: min(380px, 100%); padding: 30px; display: grid; gap: 16px; }
.login-card h1 { margin: 2px 0 4px; font-size: 22px; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #242428; font-weight: 750; }
.mark.small { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.error { min-height: 16px; margin: 0; color: #b42318; font-size: 11px; }
header { height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
header > div { display: flex; align-items: center; gap: 10px; }
.page { max-width: 1180px; margin: auto; padding: 34px 28px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 24px; }
.page-head span { color: var(--muted); font-size: 11px; }
.table-card { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid #ededee; text-align: left; font-size: 12px; }
th { color: #85858c; background: #fafafa; font-size: 10px; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #21a366; }
.status.off::before { background: #a5a5aa; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions button { padding: 6px 9px; }
.empty { padding: 80px 20px; color: var(--muted); text-align: center; font-size: 12px; }
dialog { width: min(540px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
dialog::backdrop { background: rgba(20,20,24,.28); backdrop-filter: blur(3px); }
dialog form { padding: 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; font-size: 18px; }
.icon { padding: 4px 9px; color: #777; background: transparent; font-size: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.fields .check { display: flex; align-items: center; gap: 8px; padding-top: 22px; }
.fields .check input { width: auto; margin: 0; }
.dialog-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 14px; border-radius: 9px; color: #fff; background: #29292d; font-size: 12px; }
@media (max-width: 720px) { .fields { grid-template-columns: 1fr; } .table-card { overflow-x: auto; } table { min-width: 760px; } }
