:root { color-scheme: light; font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; color: #182436; background: #f4f7fb; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #07192f 0%, #0d2f58 52%, #eef4fb 52%, #eef4fb 100%); }
.login-shell { width: min(980px, 100%); min-height: 590px; display: grid; grid-template-columns: 1.12fr .88fr; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 28px 80px rgba(7, 25, 47, .24); }
.brand-panel { padding: 70px 62px; background: radial-gradient(circle at 85% 12%, #2f78bc 0, transparent 29%), linear-gradient(145deg, #07192f, #0b315e); color: #fff; }
.brand-mark, .logo span { letter-spacing: .08em; font-weight: 800; }
.brand-mark { font-size: 19px; color: #9ed4ff; }
.eyebrow, .section-label, .card-kicker { margin: 15px 0 10px; letter-spacing: .13em; font-size: 11px; font-weight: 700; color: #67829e; }
.brand-panel .eyebrow { color: #8bbbe6; }
.brand-panel h1 { margin: 38px 0 20px; font-size: clamp(34px, 4vw, 48px); line-height: 1.2; letter-spacing: -.04em; }
.brand-copy { max-width: 370px; color: #c8d8ea; line-height: 1.9; font-size: 15px; }
.login-card { padding: 65px 52px; align-self: center; }
.login-card h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.muted, .hint { color: #6d7e91; line-height: 1.65; font-size: 14px; }
.stack-form { display: grid; gap: 18px; margin-top: 28px; }
.stack-form label { display: grid; gap: 8px; color: #34475d; font-size: 13px; font-weight: 650; }
input, textarea { width: 100%; border: 1px solid #d9e2ec; border-radius: 8px; background: #fff; color: #162235; padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus { border-color: #2379c7; box-shadow: 0 0 0 3px rgba(35, 121, 199, .13); }
.primary-button, .secondary-button { min-height: 42px; border: 0; border-radius: 8px; padding: 0 16px; font-weight: 700; }
.primary-button { background: #0d5fa8; color: #fff; box-shadow: 0 8px 18px rgba(13, 95, 168, .18); }
.primary-button:hover { background: #084f8f; }
.secondary-button { background: #e9f2fb; color: #0b5b9f; }
.form-message { margin: 16px 0 0; border-radius: 8px; padding: 10px 12px; background: #fff0f0; color: #a12d36; font-size: 13px; line-height: 1.5; }
.form-message[data-type="success"] { background: #edf8f1; color: #167044; }
.notice-box { margin: 0; padding: 11px 12px; border-left: 3px solid #2f83c9; background: #edf6ff; color: #275576; font-size: 13px; line-height: 1.55; }
.app-body { min-height: 100vh; background: #f4f7fb; }
.topbar { height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 max(24px, calc((100vw - 1220px) / 2)); background: #fff; border-bottom: 1px solid #e3eaf1; }
.logo { color: #0c315a; text-decoration: none; font-size: 14px; letter-spacing: .06em; font-weight: 750; }
.logo span { color: #0a68b5; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.admin-badge { padding: 5px 9px; border-radius: 99px; background: #eef6fd; color: #216aa4; font-size: 12px; font-weight: 650; }
.text-button, .small-button { border: 0; background: transparent; color: #246ca8; font-size: 13px; }
.admin-shell { width: min(1220px, calc(100% - 40px)); margin: 42px auto 70px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.page-heading .eyebrow { margin: 0 0 8px; }
.page-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.page-heading p:not(.eyebrow) { margin: 10px 0 0; color: #63778d; font-size: 14px; }
.privacy-note { min-width: 215px; display: grid; gap: 4px; padding: 12px 14px; border-radius: 9px; background: #eaf5f0; color: #1a7650; font-size: 12px; }
.privacy-note span { color: #57806c; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid #e3eaf1; border-radius: 11px; padding: 24px; box-shadow: 0 5px 16px rgba(26, 49, 76, .035); }
.panel + .panel, .data-panel { margin-top: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.panel-heading .section-label { margin: 0 0 7px; }
.compact-form { margin-top: 20px; gap: 13px; }
.form-row { display: flex; gap: 22px; flex-wrap: wrap; }
.tool-permissions { border: 1px solid #e3eaf1; border-radius: 8px; padding: 12px; display: flex; gap: 20px; flex-wrap: wrap; }
.tool-permissions legend { color: #34475d; font-size: 13px; }
.tool-grants { min-width: 170px; }
.tool-grants .check-label { margin: 5px 0; }
.tool-grants .small-button { margin-left: 0; }
.search-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 650; }
.tool-list { display: grid; gap: 14px; margin-top: 22px; }
.tool-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid #edf1f5; padding: 20px 0 6px; }
.tool-card h2 { font-size: 19px; margin: 10px 0 8px; }
.tool-card p { color: #60758c; font-size: 13px; line-height: 1.7; margin: 0; }
.tool-open { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) { .tool-card { display: grid; gap: 14px; }.tool-open { justify-content: center; }.topbar-actions { gap: 8px; } }
.check-label { display: flex !important; align-items: center; gap: 7px !important; font-weight: 500 !important; }
.check-label input { width: 15px; height: 15px; }
.hint { margin: 14px 0 0; font-size: 12px; }
.count-chip { border-radius: 99px; padding: 6px 10px; background: #f0f5fa; color: #58718b; font-size: 12px; }
.table-wrap { overflow-x: auto; margin: 20px -24px -24px; }
table { width: 100%; border-collapse: collapse; min-width: 690px; }
th, td { padding: 14px 24px; border-top: 1px solid #edf1f5; text-align: left; font-size: 13px; }
th { color: #718398; background: #fafbfd; font-size: 12px; font-weight: 650; }
td { color: #30445a; }
.right-align { text-align: right; white-space: nowrap; }
.small-button { margin-left: 10px; padding: 4px 2px; }
.status { display: inline-block; border-radius: 99px; padding: 3px 8px; font-size: 11px; font-weight: 650; }
.status.active { color: #187149; background: #e7f6ee; }.status.inactive { color: #8b4650; background: #fcebed; }.minor-status { display: block; margin-top: 5px; color: #9b7322; font-size: 11px; }
.empty-cell, .empty-copy { color: #8292a3; text-align: center; padding: 27px; }
.announcement-list { margin: 19px -24px -24px; }
.announcement-row { padding: 18px 24px; border-top: 1px solid #edf1f5; }
.announcement-title { color: #23384e; font-size: 14px; font-weight: 700; }.announcement-title .pin { margin-right: 7px; padding: 2px 5px; border-radius: 4px; background: #e8f4ff; color: #1672b8; font-size: 10px; }.announcement-row p { margin: 8px 0; color: #60758c; font-size: 13px; white-space: pre-wrap; line-height: 1.6; }.meta { color: #91a0b1; font-size: 11px; }
.workspace-wait { width: min(620px, calc(100% - 40px)); margin: 15vh auto; padding: 42px; border-radius: 12px; border: 1px solid #e1eaf2; background: #fff; box-shadow: 0 10px 30px rgba(26, 49, 76, .06); }.workspace-wait .eyebrow { margin: 0 0 8px; }.workspace-wait h1 { margin: 0; font-size: 28px; }.workspace-wait p:not(.eyebrow) { color: #61768c; line-height: 1.75; }.workspace-wait button { margin-top: 18px; }
@media (max-width: 760px) { .login-body { padding: 0; background: #fff; }.login-shell { min-height: 100vh; display: block; border-radius: 0; box-shadow: none; }.brand-panel { padding: 46px 28px 34px; }.brand-panel h1 { margin: 25px 0 13px; font-size: 32px; }.login-card { padding: 38px 28px; }.admin-shell { width: min(100% - 28px, 620px); margin: 26px auto 50px; }.topbar { padding: 0 14px; }.page-heading { display: block; }.privacy-note { margin-top: 18px; }.admin-grid { grid-template-columns: 1fr; }.panel { padding: 19px; }.table-wrap { margin-left: -19px; margin-right: -19px; margin-bottom: -19px; } th, td { padding-left: 19px; padding-right: 19px; }.announcement-list { margin-left: -19px; margin-right: -19px; margin-bottom: -19px; }.announcement-row { padding-left: 19px; padding-right: 19px; } }
