:root { color-scheme: light; font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; color: #18212f; background: #f4f7fa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% 0%, #eaf3ff 0, transparent 32%), #f4f7fa; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.login-card { width: min(420px, 100%); background: rgba(255,255,255,.94); border: 1px solid #dfe6ef; border-radius: 22px; padding: 34px; box-shadow: 0 24px 70px rgba(40,68,105,.12); }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #347fd8; color: white; font-weight: 800; font-size: 24px; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.eyebrow { margin: 20px 0 6px; color: #718096; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
h1 { margin: 0; font-size: 30px; }
h2 { margin: 4px 0 10px; }
.muted { color: #738092; line-height: 1.6; }
label { display: grid; gap: 7px; margin-top: 18px; color: #4a596d; font-size: 14px; }
input, select { width: 100%; border: 1px solid #ccd7e5; border-radius: 10px; padding: 12px 13px; background: white; outline: none; }
input:focus, select:focus { border-color: #347fd8; box-shadow: 0 0 0 3px rgba(52,127,216,.12); }
.login-card button[type=submit] { width: 100%; margin-top: 24px; border: 0; border-radius: 10px; padding: 12px; background: #347fd8; color: white; font-weight: 700; }
.error { color: #bd2c35; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
aside { padding: 26px 18px; background: rgba(255,255,255,.88); border-right: 1px solid #dfe6ef; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 28px; font-size: 20px; font-weight: 800; }
nav { display: grid; gap: 7px; }
.nav, .logout { border: 0; background: transparent; border-radius: 10px; padding: 11px 13px; text-align: left; color: #556477; }
.nav.active { background: #eaf3ff; color: #1f6fc8; font-weight: 700; }
.logout { margin-top: auto; }
main { padding: 34px clamp(24px, 4vw, 62px); overflow: auto; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
header .eyebrow { margin-top: 0; }
.online { color: #21875a; font-size: 14px; }
.online::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #37b777; margin-right: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 16px; }
.card, .panel { background: rgba(255,255,255,.95); border: 1px solid #dfe6ef; border-radius: 16px; padding: 22px; }
.metric { font-size: 30px; font-weight: 750; margin-top: 12px; }
.panel { margin-top: 18px; }
.panel .eyebrow { margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid #e7ecf2; font-size: 14px; }
th { color: #718096; font-weight: 650; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 9px; background: #eef3f8; color: #59697c; font-size: 12px; }
.pill.released { color: #13764b; background: #e7f6ee; }
.pill.manual { color: #806116; background: #fff3cf; }
.pill.failed { color: #a32932; background: #fdebec; }
.notice { margin-top: 18px; border-radius: 10px; background: #fff7df; color: #806116; padding: 13px 15px; }
.model-profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 20px; padding-top: 4px; border-top: 1px solid #e7ecf2; }
.profile-toggle { display: flex; align-items: center; gap: 8px; }
.profile-toggle input { width: auto; }
.profile-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.profile-actions button, .table-action { border: 0; border-radius: 9px; padding: 10px 14px; background: #347fd8; color: white; font-weight: 700; }
.table-action { padding: 6px 10px; font-size: 12px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading .eyebrow { margin-bottom: 4px; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: #8490a0; font-size: 11px; overflow-wrap: anywhere; }
td code { color: #35465c; }
.device-policy { min-width: 230px; display: flex; gap: 7px; }
.device-policy select { min-width: 0; flex: 1; border: 1px solid #ccd7e5; border-radius: 8px; padding: 7px 8px; background: white; color: #4a596d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 18px; }
.field-group { margin-top: 18px; color: #4a596d; font-size: 14px; }
.span-all, .form-actions { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.form-actions button, .inline-form button { border: 0; border-radius: 9px; padding: 11px 15px; background: #347fd8; color: white; font-weight: 700; }
.check-list, .target-list { margin-top: 8px; border: 1px solid #dfe6ef; border-radius: 10px; background: #fbfcfe; padding: 10px 12px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 0; }
.check-row + .check-row { border-top: 1px solid #e7ecf2; }
.check-row input { width: auto; }
.target-row, .activation-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; }
.target-row + .target-row { border-top: 1px solid #e7ecf2; }
.secondary { background: #e8eef6; color: #40536b; }
.detail-empty { margin-top: 14px; border: 1px dashed #cbd6e3; border-radius: 10px; padding: 18px; color: #738092; }
.action-box, .error-box { margin-top: 16px; border-radius: 10px; padding: 14px 16px; }
.action-box { background: #fff7df; color: #806116; }
.error-box { background: #fdebec; color: #a32932; }
.action-box ul, .error-box ul { margin-bottom: 0; }
.secret-card { margin-top: 18px; border: 2px solid #d8a72c; border-radius: 12px; padding: 18px; background: #fff9e8; }
.secret-card code { display: block; margin: 10px 0; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.inline-form { display: flex; gap: 10px; margin-top: 18px; }
.inline-form input { flex: 1; }
.danger-action { border: 0; border-radius: 9px; padding: 9px 12px; background: #bd2c35; color: white; font-weight: 700; }
@media (max-width: 800px) { .app-shell { grid-template-columns: 1fr; } aside { display: none; } .cards, .model-profile-form, .form-grid { grid-template-columns: 1fr; } .profile-actions, .span-all, .form-actions { grid-column: 1; } .panel { overflow-x: auto; } }
