/* Shared colors preserve the existing text and clickable item links. */
/* Each logical feed line has its own formatting context. Appending output must
   not reflow one giant inline paragraph containing the entire session history. */
#output .feed-line:not([hidden]){display:block;contain:layout style}
.astralis-cockpit #command-form #chat-channel{flex:0 0 auto;width:auto;max-width:105px;min-height:36px;border:1px solid #967039;border-radius:0;background:#122235;color:#f2ca78;padding:5px 7px;font:600 12px Inter,system-ui,sans-serif;cursor:pointer}
.astralis-cockpit #command-form #chat-channel:focus-visible{outline:2px solid #86e1ff;outline-offset:2px}
#command-form #chat-channel[hidden],#command-chevron[hidden]{display:none!important}
@media(max-width:600px){.astralis-cockpit #command-form #chat-channel{max-width:88px;font-size:10px;padding:4px}}
[data-feed-category="ooc"]{color:var(--feed-ooc,#dfc7e8)!important;--message-color:var(--feed-ooc,#dfc7e8)}
[data-feed-category="roleplay"]{color:var(--feed-roleplay,#ead9b8)!important;--message-color:var(--feed-roleplay,#ead9b8)}
[data-feed-category="say"]{color:var(--feed-say,#91dbe9)!important;--message-color:var(--feed-say,#91dbe9)}
[data-feed-category="npcTalk"]{color:var(--feed-npcTalk,#edc58b)!important;--message-color:var(--feed-npcTalk,#edc58b)}
[data-feed-category="incomingDamage"]{color:var(--feed-incomingDamage,#ff91a4)!important;--message-color:var(--feed-incomingDamage,#ff91a4)}
[data-feed-category="outgoingDamage"]{color:var(--feed-outgoingDamage,#f5bc86)!important;--message-color:var(--feed-outgoingDamage,#f5bc86)}
[data-feed-category="incomingHeal"]{color:var(--feed-incomingHeal,#9ce9ae)!important;--message-color:var(--feed-incomingHeal,#9ce9ae)}
[data-feed-category="outgoingHeal"]{color:var(--feed-outgoingHeal,#76e5cf)!important;--message-color:var(--feed-outgoingHeal,#76e5cf)}
[data-feed-category="npcMotion"]{color:var(--feed-npcMotion,#9cafd4)!important;--message-color:var(--feed-npcMotion,#9cafd4)}
[data-feed-category="guild"]{color:var(--feed-guild,#a5dbb5)!important;--message-color:var(--feed-guild,#a5dbb5)}
[data-feed-category="tell"]{color:var(--feed-tell,#d7b8fa)!important;--message-color:var(--feed-tell,#d7b8fa)}
#output .feed-line[data-feed-category] span{color:inherit!important}
#output .feed-line[data-feed-category] .world-feed-link{color:inherit;text-decoration:underline}
.chat-message[data-feed-category]{border-left-color:var(--message-color)}
.text-color-settings{margin:18px 0;padding:14px;border:1px solid #45536b;min-width:0}
.text-color-settings legend{padding:0 7px;color:#efce8c;font-weight:600}
.text-color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;margin:14px 0}
.text-color-row{display:grid;grid-template-columns:minmax(0,1fr) 42px 82px;gap:8px;align-items:center;padding:10px;background:#061426;border:1px solid #2b405a;min-width:0}
.text-color-row label{font-size:12px;line-height:1.4}
.text-color-row input[type=color]{width:42px;height:34px;padding:3px;cursor:pointer}
.text-color-row input[type=text]{width:82px;min-width:0;padding:7px;font:12px ui-monospace,monospace}
.text-color-row small{grid-column:1/-1;font:11px/1.5 ui-monospace,monospace;overflow-wrap:anywhere}
.text-color-row input[aria-invalid=true]{outline:2px solid #ff91a4}
.effects-strip{display:flex;flex:0 0 auto;align-items:center;gap:10px;min-width:0;padding:6px 10px;background:#061321;border:1px solid #6f603f;border-bottom:0}
.effects-strip[hidden]{display:none!important}
.astralis-cockpit #effects-strip-open{min-width:64px;min-height:40px;padding:5px 7px;line-height:1.4;font-size:11px;color:#edcf91;border-color:#6b5937;background:#102036}
#effects-strip-count{display:block;color:#aabed8;font-size:10px}
#effects-strip-empty{margin:0;font:11px/1.5 Inter,system-ui,sans-serif;color:#aabed8}
.effects-strip-icons{display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:2px;overscroll-behavior:contain}
.astralis-cockpit .effect-chip{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 47px;min-width:47px;min-height:59px;padding:3px 3px 2px;gap:3px;border:1px solid #6b87ad;background:#0a1b2c;box-shadow:inset 0 0 0 1px #040d19;color:#dce9fa;border-radius:3px}
.astralis-cockpit .effect-chip[data-kind=buff]{border-color:#62caa5}
.astralis-cockpit .effect-chip[data-kind=debuff]{border-color:#ed859b;background:#271322}
.astralis-cockpit .effect-chip[data-kind=weather]{border-color:#78b4ef}
.effect-chip>.ability-art-icon{width:34px;height:34px;min-width:34px;border:0;background:transparent}
.effect-chip .effect-chip-time{font:600 10px/1.2 ui-monospace,monospace;white-space:nowrap;font-variant-numeric:tabular-nums}
.effect-chip .effect-chip-kind{position:absolute;top:1px;right:2px;font:700 11px/1 system-ui;color:#9ce9ae;text-shadow:0 1px #000}
.effect-chip[data-kind=debuff] .effect-chip-kind{color:#ff91a4}
.effect-chip:focus-visible{outline:2px solid #fff0be;outline-offset:2px}
@media(max-width:600px){.effects-strip{gap:6px;padding:5px 7px}.astralis-cockpit #effects-strip-open{min-width:55px}.text-color-grid{grid-template-columns:1fr}.text-color-settings{padding:10px}}
