:root { color-scheme: light; --modern-ink: #20304a; --modern-muted: #64748b; --modern-accent: #3559d5; --modern-line: #e3e9f2; }
* { box-sizing: border-box; }
body.modern { margin: 0; background: #f5f7fb; color: var(--modern-ink); font: 14px/1.65 'Segoe UI', system-ui, sans-serif; }
.modern a { color: var(--modern-accent); text-decoration: none; }
.modern a:hover { color: #203eae; }
.modern :focus-visible { outline: 3px solid #7897fb; outline-offset: 3px; }
.modern-topbar { min-height: 88px; background: #fff; border-bottom: 1px solid var(--modern-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 36px; }
.modern-brand { display: flex; align-items: center; gap: 13px; color: var(--modern-ink) !important; font-size: 20px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.modern-brand small { display: block; color: #8190a6; font-size: 9px; letter-spacing: .2em; margin-top: 4px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 43px; height: 43px; background: #edf1ff; border: 1px solid #dce4ff; border-radius: 13px; color: var(--modern-accent); font: italic 700 27px Georgia, serif; }
.modern-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); max-width: 1720px; margin: auto; }
.modern-sidebar { padding: 28px 20px; border-right: 1px solid var(--modern-line); background: #fff; }
.modern-navigation summary { display: none; }
.modern-menu-group { margin-bottom: 25px; }
.modern-menu-group h2 { font: 700 10px/1.6 'Segoe UI', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8090a8; margin: 0 12px 9px; }
.modern-nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 3px 0; border-radius: 8px; color: #58667c !important; font-weight: 550; }
.modern-nav-link:hover { background: #f4f6fb; }
.modern-nav-link.is-active { background: #edf2ff; color: #3559d5 !important; font-weight: 700; }
.nav-dot { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 2px; flex-shrink: 0; }
.is-active .nav-dot { background: currentColor; }
.sidebar-caption { margin: 35px 12px 10px; padding-top: 24px; border-top: 1px solid var(--modern-line); font-size: 9px; letter-spacing: .12em; color: #8a97ab; }
.sidebar-caption strong { font-size: 19px; color: #556780; letter-spacing: -.04em; font-weight: 500; }
.modern-workspace { padding: 30px; }
.modern-content { background: #fff; border: 1px solid var(--modern-line); border-radius: 16px; padding: 30px; min-height: 520px; box-shadow: 0 4px 22px #24365b03; overflow-wrap: anywhere; overflow-x: auto; }
.modern-content h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.035em; color: var(--modern-ink); margin: 12px 0 18px; }
.modern-content h3 { font-size: 18px; text-transform: none; border: 0; font-weight: 650; color: var(--modern-ink); }
.modern-content h4 { font-size: 17px; margin-bottom: 8px; }
.modern-content p { margin: 0 0 16px; }
.modern-account { padding: 15px 20px; border: 1px solid var(--modern-line); background: #fff; border-radius: 12px; margin-bottom: 18px; font-size: 13px; }
.account-server { color: var(--modern-muted); }
.modern-admin { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; border-top: 1px solid var(--modern-line); padding-top: 12px; }
.modern-footer { padding: 24px 2px; color: #7c899d; font-size: 12px; }
.modern-footer form, .modern-account form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; }
.render-details { flex-basis: 100%; margin: 0; font-size: 11px; }
.modern input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]), .modern select, .modern textarea { font: inherit; color: var(--modern-ink); background: #fff; border: 1px solid #cdd6e3; border-radius: 7px; padding: 9px 11px; max-width: 100%; min-height: 40px; }
.modern textarea { width: 100%; }
.modern input[type=checkbox], .modern input[type=radio] { accent-color: var(--modern-accent); }
.modern button, .modern input[type=submit], .modern input[type=button], .modern input[type=reset], .modern .modern-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; padding: 10px 17px; min-height: 42px; background: var(--modern-accent); color: #fff; font: 600 13px/1.5 'Segoe UI', sans-serif; cursor: pointer; text-decoration: none; }
.modern button:hover, .modern input[type=submit]:hover, .modern .modern-button:hover { background: #2947b9; color: #fff; }
.modern .modern-button.secondary, .modern input[type=reset], .modern-footer button, .modern-account button { background: #fff; color: #475974; border-color: var(--modern-line); }
.modern button:disabled, .modern input:disabled { opacity: .55; cursor: not-allowed; }
.modern table { font: inherit; border-collapse: collapse; max-width: 100%; }
.modern-table-scroll { max-width: 100%; overflow-x: auto; margin: 18px 0; border-radius: 10px; }
.modern .horizontal-table, .modern #server_status { width: 100%; }
.modern .horizontal-table th, .modern .vertical-table th, .modern #server_status th, .modern .woe-table th { background: #f3f6fb; color: #53647d; font-weight: 650; }
.modern .horizontal-table td, .modern .vertical-table td, .modern #server_status td, .modern .woe-table td { background: #fff; }
.modern .horizontal-table :is(th,td), .modern .vertical-table :is(th,td), .modern #server_status :is(th,td), .modern .woe-table :is(th,td) { border: 1px solid var(--modern-line); padding: 12px 14px; font-size: 13px; }
.modern .horizontal-table tr:hover td { background: #fafbff; }
.modern .generic-form { background: #fafbfe; border: 1px solid var(--modern-line); padding: 24px; border-radius: 12px; margin: 24px 0; max-width: 840px; }
.modern .generic-form-table { width: 100%; }
.modern .generic-form-table th { text-align: left; width: 30%; min-width: 140px; }
.modern .generic-form-table th, .modern .generic-form-table td { padding: 9px 12px; background: transparent; font-size: 13px; vertical-align: top; }
.modern .generic-form-table input[type=text], .modern .generic-form-table input[type=password] { width: 100%; }
.modern .generic-form-table label { font-weight: 600; }
.modern .search-form, .modern .search-form2 { border: 1px solid var(--modern-line); border-radius: 10px; padding: 18px; background: #f8faff; }
.modern .search-form input, .modern .search-form select { margin: 4px; }
.modern #submenu, .modern #pagemenu { margin: 0 0 20px; border: 0; border-bottom: 1px solid var(--modern-line); padding: 0 0 15px; font-size: 13px; line-height: 2.5; color: var(--modern-muted); }
.modern #submenu a, .modern #pagemenu a { display: inline-block; padding: 1px 9px; border-radius: 6px; }
.modern .current-sub-menu { background: #edf2ff; color: var(--modern-accent); }
.modern .pages { margin: 18px 0; line-height: 2.8; }
.modern .pages a, .modern .pages .current-page { padding: 7px 11px; border: 1px solid var(--modern-line); border-radius: 6px; background: white; }
.modern .pages .current-page { background: #edf2ff; color: var(--modern-accent); }
.modern .message, .modern .notice { border-radius: 9px; padding: 14px 18px; font-size: 14px; font-weight: 500; border: 1px solid #c5d5fb; background: #eef4ff; color: #33558d; }
/* FluxCP uses .red for validation and account warnings. Set both colors together. */
.modern .red {
    color: #881337;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-inline-start: 3px solid #be123c;
    border-radius: 9px;
    padding: 12px 15px;
    overflow-wrap: anywhere;
}
.modern p.red { font-size: 14px; font-weight: 600; line-height: 1.5; }
.modern .red a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.modern .down { color: #b5364b; }
.modern .green, .modern .up { color: #168164; }
.modern .up, .modern .down { font-size: 12px; font-weight: 650; }
.modern .credit-balance { border: 1px solid #dbe5ff; background: #f2f6ff; border-radius: 9px; padding: 16px; margin-bottom: 20px; }
.modern .newsCont { border-bottom: 1px solid var(--modern-line); padding: 0 0 24px; margin-bottom: 24px; }
.modern .newsDate { display: block; color: var(--modern-muted); margin-bottom: 14px; }
.modern .newsCont img { max-width: 100%; height: auto; }
.modern .modern-hero { display: flex; align-items: center; position: relative; overflow: hidden; background: #f0f4ff; border: 1px solid #e1e8fd; border-radius: 12px; padding: 42px 36px; margin-bottom: 24px; min-height: 340px; }
.hero-copy { position: relative; z-index: 1; max-width: 550px; width: 70%; }
.modern-eyebrow { display: block; color: #667caa; font-size: 10px; font-weight: 750; letter-spacing: .17em; margin-bottom: 18px; }
.modern-hero h1 { font-size: clamp(32px, 3.2vw, 52px); line-height: 1.12; font-weight: 650; letter-spacing: -.055em; margin: 0 0 22px; color: #233c68; }
.modern-hero p { color: #6e7f9a; max-width: 430px; font-size: 14px; margin-bottom: 26px; }
.hero-art { position: absolute; right: 0; top: 0; height: 100%; width: 35%; display: grid; place-items: center; background: radial-gradient(ellipse at center, #dae6ff, transparent 70%); }
.crystal { width: 100px; height: 174px; background: conic-gradient(from 25deg at 50% 50%, #8bb3ef, #dfeeff, #7695da, #e7f6ff, #8bb3ef); clip-path: polygon(50% 0, 95% 30%, 78% 78%, 50% 100%, 20% 78%, 5% 30%); transform: rotate(15deg); filter: drop-shadow(0 16px 18px #6c8bc777); }
.orbit { position: absolute; width: 230px; height: 230px; border: 1px solid #cad8f4; border-radius: 50%; transform: rotate(-30deg) scaleY(.7); }
.orbit-two { width: 300px; height: 300px; opacity: .5; transform: rotate(45deg) scaleY(.7); }
.art-star { position: absolute; color: #8ea8d9; font-size: 26px; }.star-one { top: 24%; right: 23%; }.star-two { left: 14%; bottom: 28%; font-size: 17px; }
.art-label { position: absolute; bottom: 45px; font-size: 8px; letter-spacing: .28em; color: #8498bc; }
.modern-shortcuts { margin: 0 0 38px; }
.shortcut-card { display: flex; flex-direction: column; border: 1px solid var(--modern-line); border-radius: 10px; padding: 20px; background: #fff; transition: border-color .15s, transform .15s; }
.shortcut-card:hover { border-color: #a6b9ed; transform: translateY(-2px); }
.shortcut-number { color: #92a0b7; font-size: 10px; letter-spacing: .1em; margin-bottom: 18px; }
.shortcut-card strong { color: #324966; font-size: 15px; margin-bottom: 5px; }.shortcut-card strong span { float: right; color: #9aabc6; }
.shortcut-card > span:last-child { font-size: 11px; color: #7b8aa0; }
.modern-news { padding: 0 3px; }.modern-news .modern-eyebrow { margin-bottom: 10px; }
.skip-link { position: absolute; left: 15px; top: -100px; padding: 12px; background: #fff; z-index: 20; }.skip-link:focus { top: 10px; }
@media (max-width: 1100px) { .modern-workspace { padding: 20px; }.modern-content { padding: 24px; }.modern-hero { padding: 30px 24px; }.hero-art { opacity: .65; }.modern-layout { grid-template-columns: 210px minmax(0, 1fr); } }
@media (max-width: 900px) { .modern-topbar { padding: 16px 20px; }.modern-layout { display: block; }.modern-sidebar { padding: 0 20px; border-right: 0; border-bottom: 1px solid var(--modern-line); }.modern-navigation summary { display: flex; justify-content: space-between; cursor: pointer; padding: 14px 0; font-weight: 650; }.modern-navigation nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.sidebar-caption { display: none; }.modern-hero h1 { font-size: 38px; } }
@media (max-width: 600px) { .modern-workspace { padding: 12px; }.modern-content { padding: 18px; min-height: 400px; }.modern-brand { font-size: 16px; }.brand-mark { flex-basis: 36px; height: 36px; }.modern-topbar { gap: 10px; padding: 14px 16px; }.modern-hero { min-height: 0; padding: 28px 22px; }.hero-copy { width: 100%; }.hero-art { display: none; }.modern-hero h1 { font-size: 36px; }.modern .generic-form { padding: 14px; }.modern .generic-form-table, .modern .generic-form-table tbody, .modern .generic-form-table tr, .modern .generic-form-table th, .modern .generic-form-table td { display: block; width: 100%; min-width: 0; }.modern .generic-form-table th { padding: 12px 0 4px; }.modern .generic-form-table td { padding: 0 0 12px; }.modern .generic-form-table td:empty { display: none; }.modern-footer { padding: 20px 8px; }.modern .search-form label { display: inline-block; float: none; width: auto; }.modern-navigation nav { gap: 8px; }.modern-shortcuts { gap: 10px; }.shortcut-number { margin-bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { .shortcut-card { transition: none; } }
