/* GKHub V1.5.13 — global two-tone system identity / manageable footer */
:root{--gk-sys-first:#FF7849;--gk-sys-second:#6FA8FF}
.gk-brand-words{display:inline-flex;align-items:baseline;white-space:nowrap;letter-spacing:-.045em;font-weight:850;line-height:1.1}
.gk-brand-first{color:var(--gk-sys-first)}
.gk-brand-second{color:var(--gk-sys-second)}
.gk-site-logo{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto;width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,var(--gk-sys-first),var(--gk-sys-second));color:#fff;font-weight:850;font-size:23px;box-shadow:0 8px 19px color-mix(in srgb,var(--gk-sys-first) 24%,transparent)}
.gk-site-logo img{width:100%;height:100%;object-fit:contain;display:block;background:transparent}
.sidebar-logo .gk-site-logo{margin-right:1px;transform:rotate(-4deg)}
.sidebar-logo .gk-brand-words{font-size:1.12rem}
.sidebar-logo .brand-label small{letter-spacing:.12em;font-size:.55rem}
.gk-judge-brand .gk-site-logo{width:35px;height:35px;border-radius:11px;transform:rotate(-4deg)}
.gk-judge-brand .gk-brand-words{font-size:1.06rem}
.gk-login-identity .gk-site-logo{width:40px;height:40px;border-radius:12px;transform:rotate(-4deg)}
.gk-login-identity .gk-brand-words{font-size:1.2rem}
.gk-login-identity small{display:block;letter-spacing:.13em}
.gk-system-footer{display:flex;gap:8px 18px;align-items:center;justify-content:center;flex-wrap:wrap;line-height:1.55;max-width:100%;text-align:center}
.gk-login-bottom.gk-system-footer{margin-top:auto;width:100%}
.gk-judge-system-footer{font-size:.66rem;color:var(--muted,#9baecb);opacity:.72;padding:6px 16px 17px;pointer-events:none}
.gk-system-footer span{overflow-wrap:anywhere}
.gk-sys-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 28px;margin-bottom:18px;background:linear-gradient(125deg,color-mix(in srgb,var(--gk-sys-first) 12%,var(--panel,#1c2a40)),color-mix(in srgb,var(--gk-sys-second) 10%,var(--panel,#1c2a40)))}
.gk-sys-intro h2{margin:7px 0 5px;font-size:1.5rem}.gk-sys-intro p{color:var(--muted,#93a6c3);margin:0;font-size:.86rem;line-height:1.6}
.gk-sys-version{display:inline-flex;align-items:center;gap:8px;border-radius:22px;padding:9px 13px;border:1px solid var(--line,#31445d);white-space:nowrap;font-size:.72rem}
.gk-sys-settings-grid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:18px;align-items:start}
.gk-sys-settings-card{min-width:0}.gk-sys-settings-card .form-pad{padding:20px 22px}
.gk-sys-form{display:grid;gap:16px}.gk-sys-form label{display:flex;flex-direction:column;gap:8px;font-size:.8rem;font-weight:680;min-width:0}
.gk-sys-form label small{font-size:.69rem;opacity:.72;font-weight:450}
.gk-sys-form input:not([type=checkbox]),.gk-sys-form textarea{width:100%;min-width:0;max-width:100%;font:inherit;line-height:1.4;border:1px solid var(--line,#344660);border-radius:12px;min-height:44px;padding:10px 12px;background:var(--surface,#14253c);color:var(--text,#eaf1ff)}
.gk-sys-form textarea{min-height:82px;resize:vertical}
.gk-sys-form input[type=color]{padding:5px 7px;height:48px;cursor:pointer}
.gk-sys-form input[type=file]{padding:11px 12px;font-size:.8rem}
.gk-sys-two-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.gk-sys-brand-preview{display:flex;align-items:center;gap:14px;min-height:96px;padding:19px;border:1px solid color-mix(in srgb,var(--gk-sys-first) 25%,transparent);background:linear-gradient(120deg,color-mix(in srgb,var(--gk-sys-first) 7%,#111d30),color-mix(in srgb,var(--gk-sys-second) 11%,#111d30));border-radius:17px;margin-bottom:20px}
.gk-sys-brand-preview .gk-site-logo{width:56px;height:56px;border-radius:16px;font-size:31px}
.gk-sys-preview-name{font-size:1.65rem}.gk-sys-brand-preview small{display:block;margin-top:5px;font-size:.67rem;letter-spacing:.09em;color:#aebdd3;line-height:1.3}
.gk-sys-footer-preview{min-height:90px;background:var(--surface,#132138);border:1px dashed var(--line,#41536c);border-radius:14px;padding:17px 16px;display:flex;align-items:center;justify-content:center;gap:4px 16px;flex-wrap:wrap;text-align:center;margin-bottom:20px;color:var(--muted,#9eafc6);font-size:.75rem}
.gk-sys-checkbox{display:flex!important;align-items:center!important;flex-direction:row!important;gap:9px!important;font-size:.77rem!important;line-height:1.5}.gk-sys-checkbox input{width:17px;height:17px;accent-color:var(--gk-sys-first)}
.gk-sys-action-row{display:flex;justify-content:flex-end;padding-top:2px}.gk-sys-reset-form{margin-top:12px}.gk-sys-hint{font-size:.73rem;line-height:1.6;color:var(--muted,#9eafc6);margin:0}.gk-sys-hint code{font-size:.75rem;color:var(--gk-sys-second)}.gk-sys-guidance{margin-top:18px}
@media(max-width:960px){.gk-sys-settings-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.gk-sys-two-columns{grid-template-columns:minmax(0,1fr)}.gk-sys-intro{padding:18px;align-items:start;flex-direction:column}.gk-sys-settings-card .form-pad{padding:15px}.gk-sys-brand-preview{padding:14px}.gk-system-footer{gap:2px 12px}}
@media print{.gk-system-footer{display:none!important}}

.gk-sys-reset-all{display:flex;justify-content:end;margin:14px 0 0}
@media(max-width:700px),(max-height:740px){.gk-login-bottom.gk-system-footer{font-size:.61rem;line-height:1.25;padding:4px 8px}.gk-login-bottom.gk-system-footer>span+span{display:none}}

.sidebar-logo .brand-label{min-width:0}
.sidebar-logo .gk-brand-words{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gk-login-identity .gk-brand-words{max-width:min(340px,65vw);overflow:hidden}
.gk-judge-brand .gk-brand-words{max-width:160px;overflow:hidden}
