:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1e2938; background: #f4f6f8; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 50% -20%, #fff 0, #f7f8fa 38%, #eff2f5 100%); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7da9d8; outline-offset: 3px; }
.page-shell { min-height: 100vh; }
.loading-state { display: grid; min-height: 100vh; place-items: center; }
.loading-mark { width: 28px; height: 28px; border: 3px solid #d8e0e8; border-top-color: #557596; border-radius: 50%; animation: spin .8s linear infinite; }
.login-shell { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: min(100%, 390px); padding: 48px 42px 42px; border: 1px solid #e2e7ec; border-radius: 20px; background: rgb(255 255 255 / .94); box-shadow: 0 24px 60px rgb(36 54 71 / .10); }
.brand-mark { display: flex; gap: 4px; align-items: end; width: 31px; height: 31px; margin-bottom: 30px; }
.brand-mark span { display: block; width: 7px; border-radius: 999px; background: #52718f; }
.brand-mark span:nth-child(1) { height: 15px; } .brand-mark span:nth-child(2) { height: 25px; background: #7896b2; } .brand-mark span:nth-child(3) { height: 20px; background: #b2c2d0; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: #718095; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.04em; }
.login-form { display: grid; gap: 18px; margin-top: 36px; }
.login-form label { display: grid; gap: 8px; color: #536173; font-size: 14px; font-weight: 600; }
.login-form input { width: 100%; padding: 12px 13px; border: 1px solid #cdd6df; border-radius: 9px; background: #fff; color: #182433; transition: border-color .16s, box-shadow .16s; }
.login-form input:focus { border-color: #6d92b4; box-shadow: 0 0 0 3px rgb(109 146 180 / .15); outline: 0; }
.login-form button { margin-top: 6px; min-height: 44px; border: 0; border-radius: 9px; background: #385a7a; color: #fff; font-weight: 650; transition: background .16s, transform .16s; }
.login-form button:hover { background: #2e4d6a; } .login-form button:active { transform: translateY(1px); } .login-form button:disabled { cursor: wait; opacity: .6; }
.form-message { min-height: 18px; margin: -4px 0 0; color: #b04444; font-size: 13px; }
.portal-shell { padding: 0 clamp(20px, 5vw, 80px) 56px; }
.portal-header { display: flex; justify-content: space-between; align-items: center; min-height: 84px; border-bottom: 1px solid #e1e7ed; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; color: #293b50; font-size: 16px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.wordmark-symbol { width: 18px; height: 18px; border: 4px solid #6d8aa6; border-radius: 5px; box-shadow: inset 0 0 0 2px #f4f6f8; }
.account-actions { display: flex; gap: 18px; align-items: center; color: #617084; font-size: 14px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: #435e78; font-size: 14px; }
.text-button:hover { color: #223f5c; text-decoration: underline; }
.portal-content { max-width: 1260px; margin: 0 auto; padding-top: clamp(60px, 10vh, 112px); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-heading h1 { font-size: clamp(28px, 3vw, 38px); }
.section-heading p { margin: 0; color: #778496; font-size: 14px; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.system-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; min-height: 146px; padding: 24px; border: 1px solid #e2e8ee; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgb(41 61 82 / .04); color: #223247; text-decoration: none; transition: transform .16s, border-color .16s, box-shadow .16s; }
.system-tile:hover { border-color: #bed0df; box-shadow: 0 15px 32px rgb(41 61 82 / .09); transform: translateY(-2px); }
.system-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #edf3f8; color: #527797; }
.system-icon svg { width: 25px; height: 25px; }
.system-copy { display: grid; gap: 6px; min-width: 0; } .system-copy strong { font-size: 17px; font-weight: 650; } .system-copy small { color: #7a8898; font-size: 13px; }
.system-copy .project-path { overflow: hidden; color: #617d96; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: #6785a0; font-size: 22px; transition: transform .16s; } .system-tile:hover .arrow { transform: translateX(3px); }
.portal-message { min-height: 18px; margin: -12px 0 12px; color: #b04444; font-size: 13px; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 30px; border: 1px dashed #cad5df; border-radius: 14px; color: #718095; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1200px) { .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .login-card { padding: 38px 28px 30px; } .portal-header { min-height: 72px; } .account-name { display: none; } .section-heading { display: block; } .section-heading p { margin-top: 10px; } .module-grid { grid-template-columns: 1fr; } }
