#eg-account-tools { font-family:Inter,system-ui,sans-serif; color:#e5edf6; }
.eg-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:18px; padding:12px 20px; }
.eg-toolbar button,.eg-dialog button { cursor:pointer; background:#14364b; color:#e9faff; border:1px solid #4dcce4; border-radius:6px; padding:9px 13px; font:inherit; }
.eg-toolbar [hidden],.eg-dialog [hidden] { display:none!important; }
.eg-dialog { position:fixed; margin:auto; max-height:85vh; overflow:auto; width:min(620px,calc(100vw - 32px)); box-sizing:border-box; padding:25px; background:#0c172a; color:#e5edf6; border:2px solid #4dcce4; border-radius:14px; }
.eg-dialog::backdrop { background:#000a; }
.eg-dialog form { display:grid; gap:14px; }
.eg-dialog h2 { font-size:1.6rem; line-height:1.25; margin:0 0 12px; }
.eg-dialog p { line-height:1.55; overflow-wrap:anywhere; }
.eg-dialog label { display:grid; gap:6px; color:#e5edf6; }
.eg-dialog input,.eg-dialog textarea { width:100%; box-sizing:border-box; padding:10px; background:#080f1e; color:#f6f9ff; border:1px solid #597a91; border-radius:5px; font:inherit; }
.eg-dialog .eg-check { display:flex; align-items:center; }
.eg-dialog input[type=checkbox] { width:18px; height:18px; }
.eg-dialog [role=status] { color:#f9d591; }
.eg-dialog a { color:#64dcff; }
.eg-dialog button:disabled { opacity:.55; cursor:wait; }
body:has(#eg-account-tools) { padding-top:0; }
@media(max-width:520px){.eg-toolbar button{padding:7px;font-size:12px}.eg-dialog{padding:18px}}

.history-toggle{padding:4px 8px;margin-right:8px;font-size:.8rem;white-space:nowrap}.history-child td{background:rgba(80,130,180,.06)}.history-child td:nth-child(3){padding-left:28px}.history-branch{color:#75bfff;font-family:monospace}.svs-console .history-branch{color:#ff8585}

.eg-account-nav{flex-wrap:wrap}
#eg-account-tools.eg-inline-account{display:flex;color:inherit;font:inherit}
#eg-account-tools .eg-toolbar{position:static;background:none;border:0;border-radius:0}
#eg-account-tools.eg-inline-account .eg-toolbar{padding:0;gap:clamp(14px,3vw,30px)}
#eg-account-tools .eg-toolbar button{background:none;border:0;border-radius:0;padding:0;color:inherit;font:inherit;cursor:pointer;white-space:nowrap}
#eg-account-tools .eg-toolbar button:hover{color:var(--eg-paper,#fff)}
#eg-account-tools .eg-toolbar button:focus-visible{outline:2px solid #64dcff;outline-offset:4px}
.feed-console td:nth-child(2){min-width:0;white-space:nowrap;overflow-wrap:normal}.feed-console td:nth-child(3){min-width:250px;white-space:pre-wrap;overflow-wrap:anywhere}.feed-console td:nth-child(1),.feed-console td:nth-child(5){white-space:nowrap}.feed-console td:nth-child(5){color:var(--accent)}
.eg-language-picker{display:flex;align-items:center;gap:8px;font:inherit;flex-wrap:wrap}.eg-language-picker select{max-width:180px;background:#101a2a;color:#e5edf6;border:1px solid #597a91;border-radius:5px;padding:6px;font:inherit}body[data-account-page] .eg-language-picker{padding:14px 20px;justify-content:center}html[dir=rtl] .eg-dialog{text-align:right}html[dir=rtl] input[type=email],html[dir=rtl] input[type=password]{direction:ltr}

.feed-console thead th,.feed-console .group-columns th{padding:5px 9px!important;line-height:1.2;background:#465d75;color:#f4f7fb;font-size:.78rem}
.feed-console .group-heading th{padding:6px 9px!important;line-height:1.25}
.feed-console td{padding:6px 9px!important}
.feed-console td[data-column="Tag"]{color:inherit}
.feed-console .console-title{padding-top:8px;padding-bottom:8px;gap:8px}
.feed-console .console-title h2{margin:4px 0;font-size:1.15rem}
.feed-console .quick-controls{margin:6px 0;gap:6px}
.feed-console .quick-controls button{padding:5px 9px}
#activity-options label{display:block;margin:7px 0}#activity-options input[type=range]{max-width:240px;vertical-align:middle}#activity-options fieldset{margin:10px 0}
#feed-activity-popup{position:fixed;right:16px;bottom:95px;z-index:1100;max-width:min(360px,calc(100vw - 32px));padding:14px;background:#17283d;color:#edf3fa;border:2px solid #5c9fff;border-radius:10px;box-shadow:0 6px 24px #0008}#feed-activity-popup button{margin-left:10px}

.feed-console .target-row.home-row td{background:#102c46;color:#edf5ff}
.feed-console .target-row.enemy-row td{background:#451e29;color:#fff0f1}
.feed-console .target-row td[data-column="Power"]{color:#f5cd66;font-weight:700}
.feed-console .target-row td[data-column="Target details"]{min-width:220px;white-space:pre-wrap}
.feed-console .target-row td[data-column="Time"],.feed-console .target-row td[data-column="Svr"]{min-width:0;white-space:nowrap}
.feed-console .target-row td:nth-child(3){min-width:0;white-space:nowrap}
.feed-console .history-child td[data-column="Target details"]{padding-left:28px!important}
.feed-console .drop-marker{width:22px;min-width:22px;text-align:center;font-weight:900;font-size:1.2rem}
.feed-console .fresh-drop{color:#ffe08a!important;animation:fresh-drop-pulse 1s ease-in-out infinite}
.feed-legend{font-size:.8rem;margin:8px 0;color:#c7d5e5;display:flex;gap:8px;flex-wrap:wrap}.feed-legend .home-key{color:#80bcff}.feed-legend .enemy-key{color:#ff989f}
@keyframes fresh-drop-pulse{50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){.feed-console .fresh-drop{animation:none}}
.feed-console .history-child td[data-column="Power"]{padding-left:9px!important}.feed-console .target-row td[data-column="Svr"]{color:inherit}
.background-alert-control{padding:10px 14px;margin:12px 0;border:1px solid #405675;border-radius:8px;background:#122236}.background-alert-control label{display:flex;align-items:center;gap:8px}.background-alert-control input{width:auto}.background-alert-control p{font-size:.8rem;color:#b7c8dc;margin:6px 0 0}

/* Let intrinsic text widths size short columns; details absorb remaining space. */
.feed-console .table-wrap{min-width:0;max-width:100%}
.feed-console table{width:100%;min-width:0;table-layout:auto}
.feed-console table th,.feed-console table td{padding:4px 5px!important;min-width:0;line-height:1.25}
.feed-console thead th,.feed-console .target-row td{width:1%;white-space:nowrap}
.feed-console thead th[data-column="Target details"],.feed-console .target-row td[data-column="Target details"]{width:auto;min-width:0;white-space:normal;overflow-wrap:anywhere}
.feed-console .drop-marker{width:1%;min-width:0;font-size:1rem}
.feed-console .history-toggle{padding:2px 4px;margin:0 0 2px 4px;font-size:.72rem;white-space:normal;max-width:100%}
.feed-console .history-child td[data-column="Target details"]{padding-left:12px!important}
.feed-console .history-child td[data-column="Power"]{padding-left:5px!important}
.feed-console .group-heading th{white-space:normal;overflow-wrap:anywhere;background:#28394b;color:#edf3fa;border-top:1px solid #40566d;border-bottom:1px solid #40566d}
@media(max-width:520px){.feed-console table{font-size:11px}.feed-console table th,.feed-console table td{padding:4px 3px!important}.feed-console thead th{font-size:10px;white-space:normal}.feed-console .target-row td[data-column="Date"],.feed-console .target-row td[data-column="Tag"]{white-space:normal;overflow-wrap:anywhere;max-width:65px}}

.feed-console table .group-heading th{padding:4px 5px!important;font-size:.78rem;line-height:1.25;border-top:0;border-bottom:1px solid #40566d}
@media(max-width:520px){.feed-console table .group-heading th{padding:4px 3px!important;font-size:10px}}

.feed-bottom-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}footer .eg-language-picker{justify-content:center;margin:12px auto}.eg-language-footer{padding:16px 16px 90px;text-align:center}
