:root{--bg:#0b1726;--panel:#132a40;--panel2:#183750;--line:#315977;--text:#eff7ff;--muted:#b1c8db;--blue:#54b7e9;--cyan:#87d7f4;--danger:#b5c7d8;color-scheme:dark}
/* Keep the legacy route buttons for the router, but show one navigation only. */
.with-shell .shell > .nav{display:none!important}
/* Equal actions at every width; darker original palette and plain formation. */
body.with-shell .profile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:sticky;bottom:0;z-index:5;padding:12px;background:#102235f5;border:1px solid #426581;border-radius:12px;gap:12px}
body.with-shell .profile-actions>button{width:100%;min-width:0;height:100%;min-height:52px;margin:0;padding:12px;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;border-width:1px;font-size:15px}
.with-shell .profile-form input[type=file]{width:100%;min-width:0;font-size:14px}
.avatar-status{color:#c0def0;font-size:14px;min-height:24px;overflow-wrap:anywhere}
@media(max-width:480px){body.with-shell .profile-actions{grid-template-columns:1fr;grid-auto-rows:1fr;gap:8px}}
body{font:16px/1.55 'Segoe UI',Arial,sans-serif;background:radial-gradient(ellipse at top right,#214767 0,transparent 50%),#0b1726;color:var(--text)}
button,input,select,textarea{font:inherit}button,a.btn,a.ghost,a.primary{min-height:44px}button,a,input,select,textarea{touch-action:manipulation}a{color:#a8dcff}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8dddff;outline-offset:3px}
.app-top{height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 28px;background:#10273c;border-bottom:1px solid #3f7294;position:sticky;top:0;z-index:40}.app-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#edf8ff}.app-brand img{width:48px;height:48px;border-radius:12px}.app-brand strong{display:block;letter-spacing:.04em}.app-brand small{font-size:12px;color:#b7d0e6}.app-tools{display:flex;gap:10px;align-items:center}.app-tools a{font-weight:600;text-decoration:none}.app-menu{display:none}.app-nav{position:fixed;top:76px;bottom:0;left:0;width:222px;background:#102337;border-right:1px solid #315675;padding:26px 14px;z-index:35;overflow-y:auto}.app-nav a{display:block;padding:11px 14px;border-radius:10px;text-decoration:none;color:#bed4e8;margin:3px 0;font-size:15px}.app-nav a[aria-current=page]{background:#285b80;color:white;box-shadow:inset 3px 0 #8ae1ff}.app-nav .nav-group{display:block;color:#84a8c3;font-size:12px;text-transform:uppercase;letter-spacing:.12em;margin:24px 14px 6px}.app-nav .nav-group:first-child{margin-top:0}
body.with-shell{padding-left:222px}body.with-shell .app-top{margin-left:-222px}.with-shell>.language-switch{position:relative;background:#0f2032;padding:6px 24px}.with-shell .shell,.with-shell .admin-shell{max-width:1480px;width:100%;padding:26px 32px;margin:auto}.with-shell .admin-top .admin-actions,.with-shell .test-strip,.with-shell .brand,.with-shell .overview-brand .auth-logo{display:none!important}.with-shell .admin-top{align-items:center;margin-bottom:22px}.with-shell .eyebrow{margin:0 0 6px}.with-shell h1{font-size:clamp(25px,3vw,34px);margin:0}.with-shell h2{font-size:22px}.with-shell .panel{background:linear-gradient(145deg,#163149,#11273b);border:1px solid #355c7a;border-radius:16px;padding:22px}.with-shell .stat,.with-shell .card{background:#15334c;border:1px solid #355c7a;border-radius:14px}.with-shell .stat span,.with-shell .card span,.with-shell th,.with-shell label{font-size:14px}.with-shell .hint,.with-shell .muted,.with-shell .sub{font-size:14px;color:#b1c8db}.with-shell .top{margin-bottom:20px}.with-shell .nav{margin-bottom:22px}.with-shell .admin-grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:22px}.with-shell .admin-grid>*{min-width:0}.with-shell .user-table td{vertical-align:top}.with-shell .primary{background:linear-gradient(#3e9ccd,#28678f);border:1px solid #73c7ed;color:white;border-radius:10px;box-shadow:0 3px 0 #10374e}.with-shell .ghost,.with-shell .btn,.with-shell .small{border-radius:9px;background:#1d405d;color:#e7f7ff;border:1px solid #527b99}.with-shell input,.with-shell select,.with-shell textarea{background:#0c2032;color:#f2f8ff;border:1px solid #567c99;border-radius:8px;min-height:44px;padding:10px}.with-shell table{font-size:15px}.with-shell dialog{max-width:min(850px,95vw);max-height:90dvh;overflow:auto}.with-shell .actions{flex-wrap:wrap}.privacy-line{font-size:12px;color:#9ebbd1;margin:26px 32px}.member-avatar{width:42px;height:42px;object-fit:cover;border-radius:10px;background:#204361;border:1px solid #4f7997;display:inline-block;vertical-align:middle;margin-right:10px}.leader-card .member-avatar{width:64px;height:64px;float:left}.app-tools button{padding:7px 12px}
.profile-head{display:flex;gap:20px;align-items:center;margin-bottom:24px}.profile-head .member-avatar{width:88px;height:88px}.profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:22px}.profile-grid>*{min-width:0}.profile-form label{display:block;margin:14px 0 6px}.profile-form textarea{width:100%;min-height:120px}.profile-form .check-label{display:flex}.check-label input{min-height:0!important}.profile-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.march-list{display:grid;gap:16px}.march-card{background:#173e5b;border:1px solid #548ab0;border-radius:14px;overflow:hidden}.march-card summary{cursor:pointer;display:flex;justify-content:space-between;gap:14px;align-items:center;padding:18px;background:linear-gradient(110deg,#245b80,#173b59);font-size:18px;font-weight:700}.march-card summary::after{content:'⌄'}.march-card[open] summary::after{content:'⌃'}.march-card .power{font-variant-numeric:tabular-nums;color:#bceaff;white-space:nowrap}.formation{padding:20px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;background:linear-gradient(145deg,#284a61,#142d42)}.hero-slot{grid-column:span 2;min-width:0;text-align:center}.hero-slot:nth-child(1){grid-column:2/span 2}.hero-slot:nth-child(2){grid-column:4/span 2}.hero-slot:nth-child(3){grid-column:1/span 2}.hero-slot button{width:100%;padding:0;overflow:hidden;display:block;background:#0d253b;border:2px solid #6798ba;border-radius:12px}.hero-portrait{display:block;width:100%;aspect-ratio:140/170;background-color:#20445f;background-repeat:no-repeat;border-radius:8px 8px 0 0}.hero-empty{display:grid;place-items:center;font-size:36px;aspect-ratio:140/170;color:#8ab2d0;background:linear-gradient(135deg,#244965,#153048);border:1px dashed #6c95b2}.hero-name{display:block;padding:6px 3px;font-size:14px;overflow-wrap:anywhere}.slot-label{display:block;font-size:12px;color:#b8cfdf;margin:7px 0}.march-input{display:flex;gap:12px;align-items:center;padding:12px 18px}.march-input input{width:160px;max-width:55%}.hero-picker{width:min(860px,94vw);border:1px solid #6c9aba;border-radius:18px;background:#122c44;color:white;padding:24px}.hero-picker::backdrop{background:#05101dcc}.hero-picker header{display:flex;justify-content:space-between;align-items:center}.hero-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:20px 0}.hero-grid button{padding:0;overflow:hidden}.hero-grid button:disabled{opacity:.45}.hero-grid .hero-name{font-size:13px}.march-player{margin-bottom:24px}.march-player>header{display:flex;align-items:center;gap:14px;padding:14px}.march-player>header h2{margin:0}.march-player .march-list{grid-template-columns:repeat(3,minmax(0,1fr))}.march-player .formation{gap:6px;padding:10px}.march-player .hero-name{font-size:12px}.march-player .march-card summary{font-size:16px;padding:14px}.march-player .hero-slot{align-self:start}.profile-notice{background:#20435b;padding:14px;border-left:3px solid #9bdfff;border-radius:8px}.analytics-count{font-size:42px;font-weight:750;color:#b1e4ff}.usage-bar{height:8px;background:#64bdeb;border-radius:5px;max-width:100%}.online-list td{padding:12px}.page-scroll{overflow-x:auto}.empty-state{padding:24px;color:#bdd2e4}.profile-bio{white-space:pre-wrap;overflow-wrap:anywhere}.profile-avatar-preview{width:128px;height:128px;object-fit:cover;border-radius:14px}.save-status{white-space:pre-wrap;padding:12px 0;min-height:36px}.with-shell [hidden]{display:none!important}
@media(max-width:1100px){.march-player .march-list{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}.hero-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.with-shell .admin-grid{grid-template-columns:1fr}.march-player .hero-slot{max-width:180px;width:100%;justify-self:center}}
@media(max-width:760px){body.with-shell{padding-left:0}.with-shell .app-top{margin-left:0;padding:8px 12px;height:68px}.app-menu{display:block}.app-brand small{display:none}.app-brand strong{font-size:14px}.app-brand img{width:38px;height:38px}.app-tools>a{display:none}.app-nav{top:68px;width:min(300px,88vw);transform:translateX(-105%);transition:transform .15s}.app-nav.open{transform:translateX(0);box-shadow:10px 0 50px #000a}.with-shell .shell,.with-shell .admin-shell{padding:18px 12px}.with-shell .panel{padding:16px}.with-shell .admin-top{display:block}.with-shell .summary,.with-shell .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.with-shell .bar{display:flex;flex-wrap:wrap}.with-shell .bar input{min-width:0;width:100%;flex:1 1 100%}.with-shell .bar select{width:100%}.with-shell .actions{gap:8px}.with-shell .top{display:block}.with-shell .table{overflow:auto}.with-shell .nav button{font-size:14px;padding:10px}.privacy-line{margin:20px 12px}.hero-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-picker{padding:14px}.formation{padding:14px;gap:8px}.with-shell .user-table,.with-shell .user-table tbody,.with-shell .user-table tr,.with-shell .user-table td{display:block;width:100%}.with-shell .user-table thead{display:none}.with-shell .user-table tr{border-bottom:2px solid #406984;padding-bottom:16px;margin-bottom:18px}.profile-head{gap:12px}.profile-head h1{font-size:25px}.profile-head .member-avatar{width:64px;height:64px}.app-tools{gap:6px}.app-tools button{font-size:14px}.with-shell .language-switch{padding:5px 12px}}
