#alliance-screen {
    background: linear-gradient(#03101b33,#01060d66), url('../images/ui/fleet-command/fleet-command-background-mobile-dark-clean.png') center/cover;
}

#alliance-screen .ald-shell, #alliance-screen .ald-balance { display: none; }
#alliance-screen.ald-active {
    position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh;
    min-height: 0; padding: calc(16px + var(--safe-area-top, 0px)) calc(20px + var(--safe-area-right, 0px)) calc(16px + var(--safe-area-bottom, 0px)) calc(20px + var(--safe-area-left, 0px)); box-sizing: border-box;
    color: #d9edf7; font-family: 'Segoe UI', sans-serif;
    overflow: visible;
}
#alliance-screen.ald-active .al-container { height: 100%; max-width: none; padding: 0; display: flex; flex-direction: column; }
#alliance-screen.ald-active .al-top-bar { flex: none; padding: 0 0 12px; margin: 0 0 12px; min-height: 36px; }
#alliance-screen.ald-active .al-title { font: 600 24px 'Segoe UI', sans-serif; color: #d9edf7; }
#alliance-screen.ald-active #al-back-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: auto; min-height: 32px; padding: 6px 10px; margin-right: 12px; color: #d9edf7; font: 600 12px 'Segoe UI', sans-serif; border: 1px solid #4595b5; border-radius: 3px; background: linear-gradient(#18465c,#071c2a); cursor: pointer; }
#alliance-screen.ald-active #al-back-btn:focus-visible { outline: 2px solid #fff0ac; outline-offset: 2px; }
#alliance-screen.ald-active .ald-balance { display: block; margin-left: auto; text-align: right; font-size: 14px; color: #edc760; font-variant-numeric: tabular-nums; }
#alliance-screen.ald-active #al-in-alliance { flex: 1; min-height: 0; }
#alliance-screen.ald-active .al-bg-stars { display: none; }
#alliance-screen.ald-active #al-hub { display: block; height: 100%; margin: 0; }
#alliance-screen.ald-active #al-hub > :not(.ald-shell) { display: none !important; }
#alliance-screen.ald-active .ald-shell { display: flex; flex-direction: column; height: 100%; gap: 12px; }
#alliance-screen .ald-shell *, #alliance-screen .ald-overlay * { box-sizing: border-box; }
#alliance-screen .ald-shell [hidden], #alliance-screen .ald-overlay[hidden] { display: none !important; }
#alliance-screen .ald-shell button, #alliance-screen .ald-dialog button {
    color: #d9edf7; font: 14px 'Segoe UI', sans-serif; border: 1px solid #29607a;
    border-radius: 5px; background: #09212f; min-height: 36px; padding: 7px 12px; cursor: pointer;
}
#alliance-screen .ald-shell button:hover:not(:disabled):not([aria-pressed=true]), #alliance-screen .ald-dialog button:hover:not(:disabled) { background: #133245; }
#alliance-screen .ald-shell button[aria-pressed=true] { color: #ffe7a1; border-color: #edc760; background: linear-gradient(125deg,#493c1fe6,#171c22f5); }
#alliance-screen .ald-shell button:disabled, #alliance-screen .ald-dialog button:disabled { opacity: .55; cursor: default; }
#alliance-screen .ald-shell button:focus-visible, #alliance-screen .ald-dialog button:focus-visible { outline: 2px solid #fff0ac; outline-offset: 2px; }
#alliance-screen .ald-nav { display: flex; gap: 7px; flex: none; }
#alliance-screen .ald-heading { margin: 0; font: 600 17px 'Segoe UI', sans-serif; color: #d9edf7; }
#alliance-screen .ald-grid { flex: 1; min-height: 0; display: grid; gap: 12px; align-content: start; }
#alliance-screen .ald-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #29607a; border-radius: 7px; background: linear-gradient(145deg,#091d2bc7,#040d18d6); }
#alliance-screen .ald-card h4 { font: 600 18px/1.3 'Segoe UI', sans-serif; color: #d9edf7; margin: 0; overflow-wrap: anywhere; }
#alliance-screen .ald-label { color: #9bbdce; font: 11px/1.3 'Segoe UI', sans-serif; letter-spacing: .05em; }
#alliance-screen .ald-value { color: #f4da91; font-size: 19px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#alliance-screen .ald-copy { color: #aac3d3; font: 13px/1.4 'Segoe UI', sans-serif; margin: 0; overflow-wrap: anywhere; }
#alliance-screen .ald-actions { display: flex; gap: 6px; margin-top: auto; }
#alliance-screen .ald-actions button { flex: 1; font-size: 13px; }
#alliance-screen .ald-pager { display: flex; gap: 12px; align-items: center; margin: auto; }
#alliance-screen .ald-pager output { font-size: 12px; min-width: 44px; text-align: center; }
#alliance-screen .ald-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center; box-sizing: border-box; padding: calc(12px + var(--safe-area-top, 0px)) calc(12px + var(--safe-area-right, 0px)) calc(12px + var(--safe-area-bottom, 0px)) calc(12px + var(--safe-area-left, 0px)); background: #000a; }
#alliance-screen .ald-dialog { width: min(600px,100%); padding: 18px; border: 1px solid #4595b5; border-top: 2px solid #edc760; border-radius: 12px 12px 6px 6px; background: #071521; display: flex; flex-direction: column; gap: 14px; }
#alliance-screen .ald-dialog h3 { font: 600 19px/1.3 'Segoe UI', sans-serif; color: #d9edf7; margin: 0; overflow-wrap: anywhere; }
#alliance-screen .ald-dialog p { font: 14px/1.45 'Segoe UI', sans-serif; margin: 0; overflow-wrap: anywhere; }
#alliance-screen .ald-dialog-actions { display: flex; align-items: center; gap: 8px; }
#alliance-screen .ald-dialog-actions button:last-child { margin-left: auto; }
@media(max-height:470px) {
    #alliance-screen.ald-active { padding: calc(8px + var(--safe-area-top, 0px)) calc(12px + var(--safe-area-right, 0px)) calc(8px + var(--safe-area-bottom, 0px)) calc(12px + var(--safe-area-left, 0px)); }
    #alliance-screen.ald-active .al-top-bar { min-height: 24px; padding-bottom: 5px; margin-bottom: 6px; }
    #alliance-screen.ald-active .al-title { font-size: 20px; }
    #alliance-screen.ald-active .ald-shell { gap: 6px; }
    #alliance-screen .ald-heading { font-size: 14px; }
    #alliance-screen .ald-nav { gap: 5px; }
    #alliance-screen .ald-nav button { flex: 1; font-size: 12px; padding: 5px; }
    #alliance-screen .ald-shell button { min-height: 32px; }
    #alliance-screen .ald-card { padding: 10px; gap: 5px; }
    #alliance-screen .ald-card h4 { font-size: 14px; }
    #alliance-screen .ald-value { font-size: 16px; }
    #alliance-screen .ald-copy { font-size: 12px; }
    #alliance-screen .ald-label { font-size: 10px; }
    #alliance-screen .ald-actions button { font-size: 12px; padding: 5px; }
    #alliance-screen .ald-dialog { padding: 12px; gap: 10px; }
    #alliance-screen .ald-dialog h3 { font-size: 17px; }
    #alliance-screen .ald-dialog p { font-size: 13px; }
}

#alliance-screen .ald-member-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#alliance-screen .ald-member-actions button { flex: 1; }
#alliance-screen.ald-active #al-no-alliance { flex: 1; min-height: 0; }
#alliance-screen.ald-active #al-no-alliance > :not(.ald-shell) { display: none !important; }
#alliance-screen .ald-shell .al-search-row { flex: none; margin: 0; gap: 8px; }
#alliance-screen .ald-shell .al-search-row input { min-width: 0; padding: 8px; font: 14px 'Segoe UI',sans-serif; }
#alliance-screen .ald-shell #al-create-form { margin: 0; gap: 8px; grid-template-columns: 1fr 1fr; grid-template-areas: 'nameLabel tagLabel' 'name tag' 'submit submit'; align-content: start; width: min(650px,100%); align-self: center; }
#alliance-screen #al-create-form label { font: 14px 'Segoe UI',sans-serif; }
#alliance-screen #al-create-form label[for=al-create-name] { grid-area: nameLabel; }
#alliance-screen #al-create-form label[for=al-create-tag] { grid-area: tagLabel; }
#alliance-screen #al-create-name { grid-area: name; }
#alliance-screen #al-create-tag { grid-area: tag; }
#alliance-screen #al-create-submit { grid-area: submit; }
#alliance-screen .ald-shell #al-create-form input { width: 100%; min-width: 0; margin: 0; padding: 8px; font: 14px 'Segoe UI',sans-serif; }

#alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel){border-color:#397387;background:radial-gradient(ellipse at 100% 0%,#11627b55,transparent 65%),linear-gradient(145deg,#091d2bda,#040d18d6);box-shadow:inset 0 1px #8de5ff22,0 8px 22px #0003}
#alliance-screen .ald-illustrated-header{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;min-height:82px;flex:none}
#alliance-screen .ald-illustrated-heading{min-width:0;flex:1;display:flex;flex-direction:column;gap:8px;padding-top:3px}
#alliance-screen .ald-card-art{width:88px;height:88px;object-fit:contain;flex:none;margin:-5px -5px 0 0;filter:drop-shadow(0 3px 10px #35cfff44);pointer-events:none}
#alliance-screen .ald-card[data-artwork="alliance"],#alliance-screen .ald-card[data-artwork="progression"]{border-top-color:#d0a94c;background:radial-gradient(ellipse at 100% 0%,#8c632744,transparent 65%),linear-gradient(145deg,#091d2bda,#040d18d6)}
@media(max-height:470px){
#alliance-screen .ald-illustrated-header{min-height:42px;gap:4px}
#alliance-screen .ald-illustrated-heading{gap:3px;padding-top:0}
#alliance-screen .ald-card-art{width:46px;height:46px;margin:-3px -3px 0 0}
}
@media(max-height:470px){
#alliance-screen .ald-shell[data-view="overview"] .ald-heading{display:none}
#alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel){padding:8px;gap:4px}
#alliance-screen .ald-illustrated-header{min-height:40px}
#alliance-screen .ald-illustrated-heading{gap:2px}
#alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-value{font-size:14px}
#alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-copy{font-size:11px;line-height:1.25}
#alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-actions button{min-height:28px}
}
#alliance-screen .ald-member-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
#alliance-screen .ald-member-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px;min-width:0}
#alliance-screen .ald-member-identity h4{min-width:0}
#alliance-screen .ald-role-art{width:80px;height:80px;flex:none;filter:drop-shadow(0 3px 10px #25baff55)}
@media(max-height:470px){#alliance-screen .ald-role-art{width:42px;height:42px}}
#alliance-screen .ald-shell .ald-actions .ald-member-details{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-inline:14px;font-weight:600;color:#e1f8ff;border-color:#489bb2;background:linear-gradient(180deg,#245267 0%,#12364a 48%,#092534 52%,#103347 100%);box-shadow:inset 0 1px #b2edff44,inset 0 -2px #020d1799,0 3px 8px #0005;text-shadow:0 1px 2px #0008}
#alliance-screen .ald-shell .ald-actions .ald-member-details:hover:not(:disabled){border-color:#9de7ff;background:linear-gradient(180deg,#326f85,#15475d 48%,#103448 52%,#1b4d62);box-shadow:inset 0 1px #d0f7ff66,0 0 12px #36c7fa33}
#alliance-screen .ald-shell .ald-actions .ald-member-details:active:not(:disabled){background:linear-gradient(#092534,#19445a);box-shadow:inset 0 2px 5px #0007}
#alliance-screen .ald-button-arrow{font-size:22px;line-height:16px;color:#79dbf8}

#alliance-screen .ald-grid.ald-roster-list{display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:2px 8px 8px 2px;scrollbar-width:thin;scrollbar-color:#3f91a9 #061522}
#alliance-screen .ald-roster-panel{flex:none;display:grid;grid-template-columns:80px minmax(0,1fr) 100px minmax(260px,.75fr);align-items:center;gap:18px;padding:14px 20px;min-height:110px;border:1px solid #33738d;border-radius:10px;background:radial-gradient(ellipse at 0 50%,#12618166,transparent 48%),linear-gradient(110deg,#091f30ef,#071421e8);box-shadow:inset 0 1px #b5eaff22,0 5px 14px #0005}
#alliance-screen .ald-roster-panel[data-role="leader"]{border-left:3px solid #e8bf59;background:radial-gradient(ellipse at 0 50%,#81612155,transparent 48%),linear-gradient(110deg,#11202bef,#071421e8)}
#alliance-screen .ald-roster-panel[data-role="officer"]{border-left:3px solid #e8bf59}
#alliance-screen .ald-roster-you{box-shadow:inset 0 1px #b5eaff33,0 0 14px #30b9ed22}
#alliance-screen .ald-roster-art{width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 0 10px #39c6ff44)}
#alliance-screen .ald-roster-identity{min-width:0;display:flex;flex-direction:column;gap:7px}
#alliance-screen .ald-roster-name-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#alliance-screen .ald-roster-name-line h4{font:600 18px/1.3 'Segoe UI',sans-serif;color:#e3f5ff;margin:0;overflow-wrap:anywhere}
#alliance-screen .ald-you-tag{font:700 10px 'Segoe UI',sans-serif;color:#ffe095;border:1px solid #bd9546;border-radius:4px;background:#4b381e;padding:3px 6px}
#alliance-screen .ald-roster-role-label{font:600 12px 'Segoe UI',sans-serif;text-transform:uppercase;letter-spacing:.8px;color:#9edaf0}
#alliance-screen .ald-roster-panel[data-role="leader"] .ald-roster-role-label,#alliance-screen .ald-roster-panel[data-role="officer"] .ald-roster-role-label{color:#f2d17e}
#alliance-screen .ald-roster-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
#alliance-screen .ald-roster-stat{display:flex;flex-direction:column;gap:6px;padding:10px 8px;text-align:center;border-left:1px solid #44849c55;background:linear-gradient(#17425755,#0b263744);border-radius:5px;min-width:0}
#alliance-screen .ald-roster-stat dt{font:600 10px 'Segoe UI',sans-serif;text-transform:uppercase;letter-spacing:.8px;color:#9bbdce}
#alliance-screen .ald-roster-stat dd{margin:0;font:600 19px/1.2 'Segoe UI',sans-serif;color:#daf5ff;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#alliance-screen .ald-roster-stat:last-child dd{color:#f4d075}
@media(max-width:850px){
#alliance-screen .ald-roster-panel{grid-template-columns:58px minmax(0,1fr) auto;gap:6px 12px;padding:10px 12px}
#alliance-screen .ald-roster-art{width:56px;height:56px;grid-row:1 / 3}
#alliance-screen .ald-roster-stats{grid-column:2 / 4}
#alliance-screen .ald-roster-stat{flex-direction:row;align-items:center;justify-content:space-between;padding:6px;gap:4px}
#alliance-screen .ald-roster-stat dd{font-size:15px}
#alliance-screen .ald-roster-name-line h4{font-size:15px}
#alliance-screen .ald-roster-role-label{font-size:10px}
}
@media(max-height:470px){
#alliance-screen .ald-roster-panel{min-height:90px}
#alliance-screen .ald-roster-list{gap:7px}
}
#alliance-screen .ald-shell>.ald-pager{flex:none;align-self:center;margin:0}

#alliance-screen.ald-active{--ald-cyan:#41d9ff;--ald-ice:#dffaff;--ald-violet:#a879ff}
#alliance-screen.ald-active .al-top-bar{border-bottom:1px solid #39c6ef77;box-shadow:0 6px 18px -15px #43e5ff}
#alliance-screen.ald-active .al-title{font-family:'Orbitron','Segoe UI',sans-serif;font-size:27px;font-weight:800;letter-spacing:2.5px;text-transform:uppercase;color:#effdff;text-shadow:0 0 16px #54dcff55}
#alliance-screen.ald-active .ald-balance{padding:7px 12px;border:1px solid #2c91b2;border-radius:3px;background:linear-gradient(110deg,#0d3e56d9,#071826dd);box-shadow:inset 0 1px #74e8ff22;color:#ffe39b}
#alliance-screen .ald-shell button,#alliance-screen .ald-dialog button{border-color:#3686a5;border-radius:3px;background:linear-gradient(180deg,#19495f,#0c2a3b 52%,#081d2b);box-shadow:inset 0 1px #8ae2ff33,inset 0 -1px #0008;color:#daf6ff;font-weight:600;transition:background .15s,border-color .15s,box-shadow .15s}
#alliance-screen .ald-shell button:hover:not(:disabled):not([aria-pressed=true]),#alliance-screen .ald-dialog button:hover:not(:disabled){background:linear-gradient(180deg,#26657d,#123d52);border-color:#6be4ff;box-shadow:inset 0 1px #c6f8ff66,0 0 12px #27caff33}
#alliance-screen .ald-nav{gap:9px}
#alliance-screen .ald-nav button{padding-inline:18px;border-bottom:2px solid #38b6de;background:linear-gradient(180deg,#16455ddc,#081c2df2);letter-spacing:.35px}
#alliance-screen .ald-shell button[aria-pressed=true]{background:linear-gradient(180deg,#826021,#4c3517 50%,#2a2419);border-color:#f4cf70;color:#fff2be;box-shadow:inset 0 1px #fff5bd88,0 0 15px #e5b64b26}
#alliance-screen .ald-heading{color:#ccefff;letter-spacing:.2px}
#alliance-screen .ald-card,#alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel){position:relative;border:1px solid #41b6d6;border-radius:4px;background:radial-gradient(ellipse at 95% 5%,#11698588,transparent 57%),linear-gradient(135deg,#0b293ce8,#061220e8 70%);box-shadow:inset 0 0 0 3px #05162499,inset 0 1px 20px #32c5ef12,0 0 9px #2fc9ff22,0 8px 20px #0005}
#alliance-screen .ald-card::before,#alliance-screen .ald-roster-panel::before{content:'';position:absolute;inset:-1px;pointer-events:none;border-radius:4px;background:linear-gradient(#b4f5ff,#b4f5ff) left top/26px 2px no-repeat,linear-gradient(#67dcff,#67dcff) left top/2px 22px no-repeat,linear-gradient(#5fe5ff,#5fe5ff) right bottom/26px 2px no-repeat,linear-gradient(#a684ff,#a684ff) right bottom/2px 22px no-repeat;filter:drop-shadow(0 0 4px #32bfff77)}
#alliance-screen .ald-card::after{content:'';position:absolute;left:18px;right:18px;top:-1px;height:2px;background:linear-gradient(90deg,#b47fff,transparent 35%,transparent 65%,#58e7ff);pointer-events:none}
#alliance-screen .ald-card[data-artwork="alliance"],#alliance-screen .ald-card[data-artwork="progression"]{border-color:#b9a665;background:radial-gradient(ellipse at 95% 5%,#9d762b55,transparent 57%),linear-gradient(135deg,#102e3ee8,#081823eb 70%)}
#alliance-screen .ald-card h4{color:#edfbff;text-shadow:0 1px 3px #0005}
#alliance-screen .ald-label{color:#8ddcf2}
#alliance-screen .ald-copy{color:#bfd8e6}
#alliance-screen .ald-card-art{filter:drop-shadow(0 0 8px #37bded55) drop-shadow(0 4px 8px #0008)}
#alliance-screen .ald-shell .ald-actions button{border-color:#52c5e7;background:linear-gradient(180deg,#37c5e9 0%,#1593bb 46%,#11658d 49%,#0d4c73 100%);color:#f0fcff;text-shadow:0 1px 2px #00364e;box-shadow:inset 0 1px #c5faff99,inset 0 -2px #042d5088,0 3px 9px #0004;font-weight:700}
#alliance-screen .ald-shell .ald-actions button:hover:not(:disabled){background:linear-gradient(180deg,#71eaff,#20b7dc 46%,#1789ad 49%,#126089);border-color:#b0f6ff;box-shadow:0 0 14px #35d9ff44,inset 0 1px #fff9}
#alliance-screen .ald-shell .ald-actions button:disabled{background:linear-gradient(#254354,#102634);color:#8aabbc;box-shadow:none;border-color:#355567}
#alliance-screen .ald-roster-panel{position:relative;border-radius:4px;border-color:#399dbb;background:radial-gradient(ellipse at 0 50%,#17698466,transparent 48%),linear-gradient(110deg,#0a2a3ded,#071725ed);box-shadow:inset 0 1px #8beaff33,0 3px 12px #0004}
#alliance-screen .ald-roster-stat{border:1px solid #36738d88;border-top-color:#44bdd49c;background:linear-gradient(150deg,#1b4c6299,#0b263777);box-shadow:inset 0 1px #9fe9ff11}
#alliance-screen .ald-roster-stat dd{color:#e9fbff}
#alliance-screen .ald-roster-stat:last-child dd{color:#ffe08b}
#alliance-screen .ald-dialog{border-color:#55c5e3;border-top-color:#f1ce74;border-radius:5px;background:linear-gradient(145deg,#102b3c,#06131f 65%);box-shadow:0 0 24px #32c9fa22,inset 0 1px #b8f5ff33}
@media(max-height:470px){
#alliance-screen.ald-active .al-title{font-size:20px;letter-spacing:1.5px}
#alliance-screen.ald-active .ald-balance{padding:3px 7px;font-size:12px}
#alliance-screen .ald-nav{gap:5px}
#alliance-screen .ald-nav button{padding:4px 7px;letter-spacing:0}
}
@media(prefers-reduced-motion:reduce){#alliance-screen .ald-shell button,#alliance-screen .ald-dialog button{transition:none}}

#alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel) {
    padding:20px; gap:7px; border:0; border-radius:0;
    background:radial-gradient(ellipse at 80% 30%,#057baa72,transparent 60%),linear-gradient(125deg,#071b39e8,#040b20c9 60%,#28104b99);
    box-shadow:inset 0 0 32px #006cbd44,0 0 18px #00cfff28;
}
#alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel)::before {
    inset:0; border-radius:0; background:url('../images/ui/alliance/command-frame.svg') center/100% 100% no-repeat;
    filter:drop-shadow(0 0 4px #00cfff80); z-index:2;
}
#alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel)::after {
    inset:15px 16px auto; height:112px;
    background:repeating-linear-gradient(0deg,transparent 0 5px,#7cddff07 5px 6px),linear-gradient(110deg,#05406a55,transparent);
    border-bottom:1px solid #2ab9ec66;
}
#alliance-screen .ald-illustrated-header {position:relative;min-height:106px;align-items:center;isolation:isolate}
#alliance-screen .ald-illustrated-heading {gap:9px;padding:0;z-index:1}
#alliance-screen .ald-illustrated h4 {font-size:18px;font-weight:750;color:#f3fdff;text-shadow:0 0 14px #00bfff55}
#alliance-screen .ald-illustrated .ald-label {font-size:10px;letter-spacing:1.2px;color:#64eaff}
#alliance-screen .ald-card-art {width:112px;height:112px;margin:-8px 0 0;filter:drop-shadow(0 0 2px #ccfaff80) drop-shadow(0 0 17px #00bfff88)}
#alliance-screen .ald-illustrated-header::after {content:'';position:absolute;right:0;bottom:0;width:110px;height:24px;border-radius:50%;border:2px solid #4de7ff;background:radial-gradient(ellipse,#8eefff80,#126ed155 50%,#853bda55 65%,transparent 70%);box-shadow:0 0 12px #00cfff88,inset 0 0 8px #00cfff;transform:scaleY(.55);z-index:-1}
#alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-value {padding:7px 9px;font-weight:650;font-size:18px;color:#ffe99c;border-left:3px solid #66e8ff;background:linear-gradient(90deg,#12618b66,#0a254533);box-shadow:inset 0 1px #4ce3ff33}
#alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-copy {font-size:12px;color:#c6deee}
#alliance-screen .ald-shell :is(.ald-illustrated,.ald-command-panel) .ald-actions button {border-radius:0;clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);text-transform:uppercase;font-size:11px;letter-spacing:.8px;background:linear-gradient(#5de5ff,#05a9df 48%,#087cb6 52%,#064576);border-top:2px solid #c1fbff;box-shadow:inset 0 -3px #11c7ff88;min-height:36px}
#alliance-screen .ald-shell :is(.ald-illustrated,.ald-command-panel) .ald-actions button:focus-visible {clip-path:none}
#alliance-screen .ald-nav button {clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);border-radius:0;text-transform:uppercase;font-size:12px;letter-spacing:1px}
#alliance-screen .ald-nav button:focus-visible {clip-path:none}
@media(max-height:470px) {
 #alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel) {padding:10px 13px;gap:3px}
 #alliance-screen .ald-illustrated-header {min-height:43px}
 #alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel)::after {inset:8px 10px auto;height:45px}
 #alliance-screen .ald-card-art {width:52px;height:52px;margin:-4px 0 0}
 #alliance-screen .ald-illustrated-header::after {width:52px;height:12px;right:0;bottom:-3px}
 #alliance-screen .ald-illustrated-heading {gap:3px}
 #alliance-screen .ald-illustrated h4 {font-size:14px}
 #alliance-screen .ald-illustrated .ald-label {font-size:9px;letter-spacing:.5px}
 #alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-value {font-size:13px;padding:3px 6px}
 #alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-copy {font-size:11px}
 #alliance-screen .ald-shell :is(.ald-illustrated,.ald-command-panel) .ald-actions button {min-height:27px;padding:3px;font-size:10px;letter-spacing:.3px}
 #alliance-screen .ald-nav button {font-size:11px;letter-spacing:.3px}
}

#alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel) {
 background:radial-gradient(ellipse at 80% 30%,#057baa38,transparent 60%),linear-gradient(125deg,#071b3999,#040b2066 60%,#28104b55);
 box-shadow:inset 0 0 32px #006cbd22,0 0 18px #00cfff28;
}
#alliance-screen .ald-card:is(.ald-illustrated,.ald-command-panel)::after {background:repeating-linear-gradient(0deg,transparent 0 5px,#7cddff05 5px 6px),linear-gradient(110deg,#05406a22,transparent)}
#alliance-screen .ald-dialog {
 position:relative;isolation:isolate;padding:24px;gap:10px;border:0;border-radius:0;
 background:radial-gradient(ellipse at 100% 0,#08699266,transparent 65%),linear-gradient(135deg,#071d30fa,#070e20fc 75%,#26173afa);
 box-shadow:0 0 26px #00cfff40,0 12px 45px #000b;
}
#alliance-screen .ald-dialog::before {content:'';position:absolute;inset:0;pointer-events:none;z-index:2;background:url('../images/ui/alliance/command-frame.svg') center/100% 100% no-repeat;filter:drop-shadow(0 0 3px #00cfff77)}
#alliance-screen .ald-dialog h3 {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:42px;padding-bottom:10px;border-bottom:1px solid #38d9ff88;color:#eafcff;letter-spacing:.3px;text-shadow:0 0 14px #26bfff55}
#alliance-screen .ald-dialog-art {width:64px;height:64px;flex:none;object-fit:contain;filter:drop-shadow(0 0 10px #29cfff77)}
#alliance-screen .ald-dialog>p {padding:10px 12px;border-left:2px solid #52dfff;background:linear-gradient(90deg,#14507366,#0a203044);box-shadow:inset 0 1px #86eaff19;color:#dfedf7}
#alliance-screen .ald-dialog-actions {padding-top:5px}
#alliance-screen .ald-dialog-actions button {border-radius:0;border-top:2px solid #b7f6ff;background:linear-gradient(#28b8df,#106b98 55%,#073855);color:#effcff;font-weight:700}
#alliance-screen .ald-dialog-actions button[data-ald-action="confirm"],#alliance-screen .ald-dialog-actions button[data-ald-action="purchase-confirm"] {border-color:#ffe29a;background:linear-gradient(#76521e,#3d2c14);color:#fff0bd}
@media(max-height:470px) {
 #alliance-screen .ald-dialog {padding:16px 20px;gap:7px}
 #alliance-screen .ald-dialog h3 {min-height:32px;padding-bottom:6px;font-size:16px}
 #alliance-screen .ald-dialog-art {width:38px;height:38px}
 #alliance-screen .ald-dialog>p {padding:6px 8px;font-size:12px;line-height:1.35}
 #alliance-screen .ald-dialog-actions {padding-top:2px}
}


#alliance-screen .ald-dialog {padding:32px 36px}
@media(max-height:470px) {#alliance-screen .ald-dialog {padding:22px 30px}}
#alliance-screen .ald-command-bar {display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;min-width:0}
#alliance-screen .ald-alliance-summary {display:flex;flex-direction:column;gap:5px;text-align:right;min-width:0;color:#b9dfef;font-size:12px;overflow-wrap:anywhere}
#alliance-screen .ald-alliance-summary strong {color:#e9faff;font-size:16px}
#alliance-screen .ald-command-bar .ald-nav {flex-shrink:0}
#alliance-screen .ald-command-bar .ald-nav button {flex:0 0 auto;min-width:max-content}
@media(max-height:470px) {
 #alliance-screen .ald-command-bar {gap:8px}
 #alliance-screen .ald-alliance-summary {font-size:10px;gap:3px}
 #alliance-screen .ald-alliance-summary strong {font-size:12px}
}
@media(max-width:700px) {
 #alliance-screen .ald-command-bar .ald-nav {gap:2px}
 #alliance-screen .ald-command-bar .ald-nav button {font-size:9px;padding:4px 6px;letter-spacing:0}
 #alliance-screen .ald-alliance-summary {font-size:9px}
 #alliance-screen .ald-alliance-summary strong {font-size:11px}
 #alliance-screen .ald-shell[data-view="overview"] .ald-grid {gap:8px}
 #alliance-screen .ald-illustrated h4 {font-size:12px}
 #alliance-screen .ald-card-art {width:32px;height:32px}
 #alliance-screen .ald-illustrated-header::after {width:32px}
 #alliance-screen .ald-illustrated .ald-label {font-size:8px;letter-spacing:0}
 #alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-value {font-size:12px}
 #alliance-screen :is(.ald-illustrated,.ald-command-panel) .ald-copy {font-size:10px}
}

#alliance-screen .ald-card.ald-command-panel {padding:24px 22px}
#alliance-screen .ald-command-panel>.ald-label {padding-bottom:6px;border-bottom:1px solid #37cbed66;letter-spacing:1px;color:#7deaff}
#alliance-screen .ald-command-panel h4 {color:#eefbff;text-shadow:0 0 12px #00bfff44}
#alliance-screen .ald-card.ald-command-panel::after {display:none}
@media(max-height:470px) {
 #alliance-screen .ald-card.ald-command-panel {padding:13px 16px}
}
/* Transparent Alliance feed. Its reserved slot prevents expansion from reflowing cards. */
#alliance-screen .ald-feed-slot {position:relative;flex:none;height:134px}
#alliance-screen .ald-shell .ald-feed-slot>.ald-live-feed {position:absolute;inset:auto 0 0;box-sizing:border-box;width:100%;height:134px;padding:22px 6% 12px;border:0;border-radius:0;background:transparent;box-shadow:none}
#alliance-screen .ald-feed-slot>.ald-live-feed::before {content:'';position:absolute;inset:0;pointer-events:none;z-index:2;background:url('../images/ui/alliance/feed-frame.svg') center/100% 100% no-repeat;filter:drop-shadow(0 0 3px #00cfff66)}
#alliance-screen .ald-shell .ald-feed-slot>.ald-live-feed.gp-feed-open {height:auto;z-index:100;background:transparent;box-shadow:none}
#alliance-screen .ald-feed-slot .gp-feed-scroll {height:76px;background:transparent}
#alliance-screen .ald-feed-slot .gp-feed-open .gp-feed-scroll {height:min(220px,45dvh);overflow-y:auto}
#alliance-screen .ald-shell .ald-live-feed .gp-feed-header,
#alliance-screen .ald-shell .ald-live-feed .gp-feed-header:hover:not(:disabled):not([aria-pressed=true]) {position:static;transform:none;display:flex;align-items:center;justify-content:space-between;min-height:22px;padding:0 0 5px;background:none;border:0;border-radius:0;box-shadow:none;transition:none}
#alliance-screen .ald-live-feed .gp-feed-title {font:700 11px 'Segoe UI',sans-serif;letter-spacing:1px;color:#a5ecff;text-shadow:0 1px 3px #000}
#alliance-screen .ald-live-feed .gp-feed-hint {position:absolute;left:50%;top:0;transform:translateX(-50%);width:150px;height:23px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-top:2px solid #bdffff;background:linear-gradient(#2198bd,#0a3854);clip-path:polygon(0 0,100% 0,calc(100% - 15px) 100%,15px 100%);color:#e9fcff;font:700 10px 'Segoe UI',sans-serif;letter-spacing:1.4px;text-transform:uppercase;text-shadow:0 1px #00182c;box-shadow:inset 0 -2px #43d8ff;pointer-events:auto;z-index:3}
#alliance-screen .ald-live-feed .gp-feed-hint::after {content:'⌃';font-size:15px;line-height:1}
#alliance-screen .ald-live-feed.gp-feed-open .gp-feed-hint::after {content:'⌄'}
#alliance-screen .ald-live-feed .gp-feed-header:hover .gp-feed-hint {background:linear-gradient(#35c3e7,#105675)}
#alliance-screen .ald-live-feed .gp-feed-header:focus-visible {outline:2px solid #ffe09b;outline-offset:5px}
#alliance-screen .ald-live-feed .gp-feed-list {padding-inline:0;background:transparent}
#alliance-screen .ald-feed-slot .ald-feed-cycle {background:transparent}
#alliance-screen .ald-live-feed .gp-feed-live {font-size:9px;letter-spacing:1px}
#alliance-screen .ald-feed-slot .gp-feed-item {background:transparent;border-bottom:0;text-shadow:0 1px 3px #000,0 0 5px #000}
#alliance-screen .ald-feed-slot .gp-feed-msg {color:#c6d9e5}
@media(max-height:470px) {
 #alliance-screen .ald-shell .ald-live-feed .gp-feed-header {min-height:18px;padding-bottom:0}
 #alliance-screen .ald-live-feed .gp-feed-hint {width:132px;height:20px;font-size:9px}
 #alliance-screen .ald-live-feed .gp-feed-title {font-size:9px;letter-spacing:.6px}
}
@media(max-height:500px),(max-width:700px) {
 #alliance-screen .ald-feed-slot {height:44px}
 #alliance-screen .ald-shell .ald-feed-slot>.ald-live-feed {height:44px;padding:19px 6% 5px}
 #alliance-screen .ald-feed-slot .gp-feed-scroll {height:0}
}
/* Alliance owns its feed behavior independently of the Patrol presentation slice. */
#alliance-screen .ald-feed-slot>.ald-live-feed {margin:0;max-height:none}
#alliance-screen .ald-live-feed .gp-feed-scroll {overflow:hidden}
#alliance-screen .ald-live-feed .gp-feed-header {width:100%;color:#d9eff8;cursor:pointer}
#alliance-screen .ald-live-feed .gp-feed-item {font-size:12px;white-space:normal;overflow-wrap:anywhere;flex-wrap:wrap}
#alliance-screen .ald-live-feed .gp-feed-msg {min-width:0}
#alliance-screen .ald-live-feed .gp-feed-list {gap:0;animation:alliance-feed-roll var(--feed-duration,30s) linear infinite}
#alliance-screen .ald-live-feed .gp-feed-list:not(:has(.ald-feed-cycle)) {animation:none}
@keyframes alliance-feed-roll {to {transform:translateY(-50%)}}
@media(prefers-reduced-motion:reduce) {#alliance-screen .ald-live-feed .gp-feed-list {animation:none}}

@media(max-height:470px) {
 #alliance-screen.ald-active #al-back-btn {min-height:24px;padding:3px 8px;margin-right:8px;font-size:11px}
}

#alliance-screen .ald-live-feed .gp-feed-player{display:inline-flex;flex-direction:row;align-items:baseline;gap:6px;flex-wrap:wrap}
#alliance-screen .ald-live-feed .ald-feed-detail{color:rgba(255,255,255,.35)}
#alliance-screen .ald-live-feed .gp-feed-item{animation:none;opacity:1}

/* Supply Strike's cyan Back treatment, with native navigation preserved. */
#alliance-screen.ald-active #al-back-btn,#alliance-screen.ald-active #al-back-btn:hover{background:transparent;border:0;border-radius:0;box-shadow:none;color:#00dcf5;font:600 16px/1 'Segoe UI',sans-serif;letter-spacing:0;text-transform:none;text-shadow:0 0 8px #00cfff22;padding:4px 8px;min-height:32px;width:auto;cursor:pointer}
#alliance-screen.ald-active #al-back-btn:hover{color:#8af5ff}
#alliance-screen.ald-active #al-back-btn:active{opacity:.6}
#alliance-screen.ald-active #al-back-btn:focus-visible{outline:2px solid #8af5ff;outline-offset:2px}
@media(max-height:470px){#alliance-screen.ald-active #al-back-btn{font-size:14px;min-height:24px;padding:3px 6px}}
