#tsumi-chat { --tc-pink: #f3a1bc; --tc-muted: #b5a1ad; font: 14px/1.5 Arial, sans-serif; color: #fff6f9; position: relative; z-index: 80; }
#tsumi-chat[hidden] { display: none !important; }
#tsumi-chat button::before, #tsumi-chat button::after { display: none !important; }
#tsumi-chat .tc-launcher { --button-bg: #392231; --button-fg: #fff0f6; --button-border: #89566f; --button-hover-bg: #4d2c40; --button-hover-fg: #fff0f6; --button-hover-border: #b67894; isolation: isolate; width: auto; }
#tsumi-chat .tc-launcher svg { color: #f3a1bc !important; }
#tsumi-chat .tc-launcher .tc-ai { color: #f3a1bc; background: #f3a1bc15; }
#tsumi-chat .tc-send { --button-bg: #f3a1bc; --button-fg: #28131e; --button-border: #f3a1bc; --button-hover-bg: #ffc2d8; --button-hover-fg: #28131e; }
#tsumi-chat .tc-close, #tsumi-chat .tc-reset { --button-border: transparent; --button-hover-border: transparent; }
#support .support-ai-action { --button-bg: #392231; --button-fg: #fff0f6; --button-border: #89566f; --button-hover-bg: #4d2c40; --button-hover-border: #f3a1bc; width: 100%; display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 14px 18px; margin: 18px 0 12px; text-align: left; border-radius: 11px; }
#support .support-ai-action .support-ai-icon { flex: 0 0 33px; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; color: #f3a1bc; background: #f3a1bc15; font-size: 23px; }
#support .support-ai-action .support-ai-copy { display: grid; gap: 5px; }
#support .support-ai-copy strong { font-size: 13px; color: #fff0f6; }
#support .support-ai-copy small { font-size: 11px; font-weight: 400; color: #ceb2c1; }
#support .support-ai-action .support-ai-arrow { margin-left: auto; color: #f3a1bc; font-size: 18px; }
/* Keep support actions compact while the card aligns with the downloads panel. */
.dashboard-view-resources > #support { display:flex;flex-direction:column;gap:12px; }
.dashboard-view-resources > #support h2 { margin:5px 0 0; }
.dashboard-view-resources > #support > p:not(.support-note) { margin:0 0 8px; }
.dashboard-view-resources > #support > :is(.support-ai-action,#discord,a[href="#error-help"]) { flex:0 0 auto;min-height:60px;margin:0!important;padding:12px 17px;border-radius:11px;background-color:#2a1a2b;justify-content:flex-start;align-items:center;font-size:13px; }
.dashboard-view-resources > #support > :is(.support-ai-action,#discord,a[href="#error-help"]):hover { background-color:#3d2437; }
.dashboard-view-resources > #support > :is(#discord,a[href="#error-help"]) > span:last-child { margin-left:auto; }
.dashboard-view-resources > #support > .support-note { margin:auto 0 0;padding:11px 14px;border:1px solid #59394d;border-radius:10px;background:#211525;color:#cdaec0;line-height:1.6; }
.dashboard-view-resources > #support .support-ai-action[hidden] { display:none!important; }
@media(max-width:1000px) { .dashboard-view-resources > #support > .support-note { margin-top:10px; } }
#tsumi-chat *, #tsumi-chat *::before, #tsumi-chat *::after { box-sizing: border-box; }
#tsumi-chat [hidden] { display: none !important; }
#tsumi-chat button, #tsumi-chat textarea, #tsumi-chat a { font: inherit; letter-spacing: normal; text-transform: none; }
#tsumi-chat button { cursor: pointer; }
#tsumi-chat button:disabled { cursor: wait; opacity: .55; }
#tsumi-chat :focus-visible { outline: 2px solid #f3a1bc; outline-offset: 4px; }
#tsumi-chat .tc-launcher { position: fixed; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 17px; border: 1px solid #a76a84; border-radius: 18px; background: #241520; color: #fff6f9; box-shadow: 0 8px 35px #0008; font-weight: 700; }
#tsumi-chat .tc-launcher:hover { background: #372032; }
#tsumi-chat .tc-launcher svg { color: var(--tc-pink); }
#tsumi-chat .tc-ai { font-size: 10px; padding: 2px 5px; border-radius: 4px; color: var(--tc-pink); background: #f3a1bc15; }
#tsumi-chat .tc-panel { position: fixed; bottom: 88px; right: 24px; width: 390px; max-width: calc(100vw - 32px); height: 610px; max-height: calc(100dvh - 112px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #855469; border-radius: 22px; background: #140e16; box-shadow: 0 20px 80px #000b; }
#tsumi-chat .tc-heading { display: flex; align-items: center; flex-shrink: 0; gap: 11px; padding: 18px; border-bottom: 1px solid #f3a1bc24; background: linear-gradient(115deg, #32202d, #1c131e); }
#tsumi-chat .tc-logo { width: 34px; height: 34px; object-fit: contain; }
#tsumi-chat h2 { font-size: 16px; line-height: 1.4; margin: 0; color: #fff6f9; font-weight: 700; }
#tsumi-chat .tc-heading p { margin: 2px 0 0; color: var(--tc-muted); font-size: 11px; }
#tsumi-chat .tc-close { margin-left: auto; border: 0; background: transparent; color: var(--tc-muted); font-size: 27px; width: 36px; height: 36px; border-radius: 8px; padding: 0; }
#tsumi-chat .tc-close:hover { background: #ffffff0c; }
#tsumi-chat .tc-intro { padding: 24px 22px 8px; overflow-y: auto; flex-shrink: 1; }
#tsumi-chat .tc-eyebrow { color: var(--tc-pink); font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
#tsumi-chat h3 { font-size: 27px; letter-spacing: -.7px; line-height: 1.2; margin: 12px 0; color: #fff6f9; }
#tsumi-chat .tc-intro p { margin: 0 0 17px; font-size: 13px; color: var(--tc-muted); }
#tsumi-chat .tc-prompts { display: flex; flex-wrap: wrap; gap: 7px; }
#tsumi-chat .tc-prompts button { color: #f4cada; background: #f3a1bc09; border: 1px solid #f3a1bc30; border-radius: 9px; padding: 9px 11px; font-size: 11px; }
#tsumi-chat .tc-prompts button:hover { background: #f3a1bc1c; }
#tsumi-chat .tc-messages { flex: 1 1 auto; min-height: 28px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; scrollbar-width: thin; scrollbar-color: #735064 transparent; }
#tsumi-chat .tc-message { margin-bottom: 14px; max-width: 94%; padding: 11px 13px; border: 1px solid #f3a1bc20; border-radius: 12px 12px 12px 3px; background: #211824; overflow-wrap: anywhere; }
#tsumi-chat .tc-message strong { display: block; font-size: 10px; color: var(--tc-pink); margin-bottom: 5px; }
#tsumi-chat .tc-message p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.65; color: #fff6f9; }
#tsumi-chat .tc-user { margin-left: auto; border-radius: 12px 12px 3px 12px; background: #3b2335; }
#tsumi-chat .tc-writing::after { content: '▍'; color: var(--tc-pink); animation: tc-caret .7s steps(2) infinite; }
@keyframes tc-caret { 50% { opacity: 0; } }
#tsumi-chat .tc-guides { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #f3a1bc25; }
#tsumi-chat .tc-guides > span { flex-basis: 100%; font-size: 10px; color: var(--tc-muted); }
#tsumi-chat .tc-guides button { --button-bg: #392231; --button-fg: #fff0f6; --button-border: #89566f; --button-hover-bg: #4d2c40; width: auto; font-size: 11px; padding: 8px 10px; border-radius: 8px; }
body.motion-off #tsumi-chat .tc-writing::after { animation: none; }
@media (prefers-reduced-motion: reduce) { #tsumi-chat .tc-writing::after { animation: none; } }
#tsumi-chat .tc-status { flex-shrink: 0; margin: 0; padding: 0 20px 10px; color: #efbbce; font-size: 12px; }
#tsumi-chat .tc-status:empty { display: none; }
#tsumi-chat .tc-form { flex-shrink: 0; margin: 0; padding: 0 16px; }
#tsumi-chat .tc-compose { display: flex; gap: 8px; align-items: flex-end; background: #211824; border: 1px solid #f3a1bc40; border-radius: 13px; padding: 9px; }
#tsumi-chat textarea { width: 100%; min-width: 0; padding: 3px; min-height: 44px; max-height: 120px; resize: vertical; border: 0; border-radius: 4px; color: #fff6f9; background: transparent; font-size: 12px; line-height: 1.55; }
#tsumi-chat textarea::placeholder { color: #b49ca9; opacity: 1; }
#tsumi-chat .tc-send { border: 0; width: 37px; height: 37px; flex-shrink: 0; border-radius: 9px; padding: 0; background: var(--tc-pink); color: #24121e; font-size: 24px; font-weight: 700; }
#tsumi-chat .tc-disclosure { margin: 9px 2px 0; color: #b49ca9; font-size: 10px; line-height: 1.5; }
#tsumi-chat .tc-footer { display: flex; flex-shrink: 0; gap: 12px; padding: 13px 18px 16px; align-items: center; }
#tsumi-chat .tc-footer a, #tsumi-chat .tc-reset { color: #d5bac8; font-size: 10px; background: none; border: 0; padding: 0; text-decoration: none; }
#tsumi-chat .tc-footer a:hover, #tsumi-chat .tc-reset:hover { color: #fff; text-decoration: underline; }
#tsumi-chat .tc-discord { margin-left: auto; }
#tsumi-chat .tc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
body:has(#tsumi-chat) #overview-help { display: none !important; }
body:has(#tsumi-chat) #feedback, body:has(#tsumi-chat) #ui-feedback { bottom: 88px; }
@media (max-width: 480px) {
  #tsumi-chat .tc-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 48px; }
  #tsumi-chat .tc-panel { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: calc(100dvh - 92px - env(safe-area-inset-bottom)); border-radius: 17px; }
  #tsumi-chat .tc-intro { padding-top: 18px; }
  #tsumi-chat textarea { font-size: 16px; }
}
