:root{--bg:#faf9f6;--paper:#fff;--ink:#252b29;--muted:#818782;--line:#e8e9e3;--accent:#3d6659;--soft:#edf3ee;--shadow:0 8px 35px rgba(34,45,36,.055);font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.36}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #78a38a;outline-offset:4px}button{border:0}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h2{font-size:23px;font-weight:600;letter-spacing:-.5px}h3{font-size:14px;font-weight:600}button{transition:background .15s,color .15s,transform .15s}.topbar{height:86px;padding:0 36px;display:grid;grid-template-columns:1fr auto 1fr;gap:24px;align-items:center;background:var(--bg);position:sticky;top:0;z-index:10}.brand-group,.header-actions,.composer-right{display:flex;align-items:center;gap:12px}.header-actions{justify-content:flex-end;gap:18px}.brand{font-size:20px;font-weight:600;letter-spacing:-.75px;display:flex;align-items:center;gap:5px}.brand-dot{height:6px;width:6px;background:var(--accent);border-radius:50%;align-self:flex-start;margin-top:5px}.icon-button{display:grid;place-items:center;width:34px;height:34px;background:transparent;border-radius:10px;font-size:23px;color:#68706a;line-height:1}.icon-button:hover{background:#efefe9}.new-chat{font-size:26px}.mode-switch{display:flex;border:1px solid var(--line);padding:4px;border-radius:15px;background:#f1f2ed;gap:3px}.mode-switch button{padding:9px 15px;border-radius:11px;background:transparent;font-size:13px;font-weight:600;color:#858c86;white-space:nowrap}.mode-switch button span{font-size:11px;font-weight:400;margin-left:5px}.mode-switch button[aria-pressed=true]{background:#fff;color:var(--accent);box-shadow:0 2px 6px #24382a0a}.bp-trigger{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:11px;background:transparent;font-size:13px;font-weight:600}.bp-trigger:hover{background:var(--soft)}.bp-trigger>span:last-child{font-size:11px;font-weight:400;color:var(--muted)}.bp-icon{color:var(--accent);font-size:18px}.avatar{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:50%;background:#e5ebe0;color:#53644e;font-size:13px;font-weight:600;letter-spacing:0}.workspace{max-width:820px;margin:0 auto;padding:0 26px 20px;min-height:calc(100dvh - 86px);display:flex;flex-direction:column}.conversation{flex:1;display:flex;flex-direction:column;justify-content:center}.welcome{text-align:center;padding:40px 0 35px;margin-top:clamp(10px,5vh,65px)}.coach-mark{display:grid;place-items:center;color:var(--accent);font-size:39px;margin:0 auto 20px;width:68px;height:68px;background:linear-gradient(145deg,#e4ece2,#f6f7ed);border-radius:23px;transform:rotate(-5deg)}.eyebrow{font-size:10px;font-weight:500;letter-spacing:1.7px;color:var(--muted);line-height:1.5}.welcome h1{font-size:36px;font-weight:500;letter-spacing:-1.5px;margin-top:13px;line-height:1.5}.welcome-subtitle{font-size:14px;color:var(--muted);margin-top:10px;line-height:1.8}.composer-area{margin-bottom:clamp(30px,12vh,140px)}.composer{background:#fff;border:1px solid #e3e6de;border-radius:25px;box-shadow:var(--shadow);padding:20px 20px 14px;transition:border-color .2s}.composer:focus-within{border-color:#aebfac}.composer textarea{display:block;border:0;outline:none;background:transparent;width:100%;resize:none;font-size:15px;line-height:1.7;color:var(--ink);max-height:180px;min-height:54px;padding:0 2px}.composer textarea:focus-visible{outline:none}.composer textarea::placeholder{color:#9a9f98}.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px}.draft-chip{display:flex;align-items:center;gap:7px;background:#f6f7f2;border:1px solid #eaede5;padding:7px 10px;border-radius:9px;color:#7b847b;font-size:11px}.draft-chip:hover{background:var(--soft)}.draft-chip.active{color:var(--accent);background:var(--soft);border-color:#dce7dd}.composer-right{gap:14px}.composer-right>span{font-size:10px;color:#a0a59d}.send-button{width:34px;height:34px;background:var(--accent);color:white;border-radius:50%;font-size:25px;line-height:1;display:grid;place-items:center;padding-bottom:2px}.send-button:hover{background:#2a5043;transform:translateY(-1px)}.starter-prompts{display:flex;justify-content:center;gap:9px;margin-top:20px;flex-wrap:wrap}.starter-prompts button{display:flex;gap:26px;align-items:center;padding:11px 14px;border:1px solid var(--line);border-radius:11px;background:transparent;color:#6b746c;font-size:12px}.starter-prompts button:hover{background:#f0f3eb;border-color:#d5dfd0}.starter-prompts span{color:#b0b7ac}.page-note{text-align:center;color:#a5aaa2;font-size:10px;margin-top:22px;letter-spacing:.25px}.status{min-height:17px;font-size:11px;color:#94733d;text-align:center;margin-top:6px;line-height:1.6}.workspace.has-chat .welcome,.workspace.has-chat .starter-prompts{display:none}.workspace.has-chat .conversation{justify-content:flex-start}.workspace.has-chat .composer-area{position:sticky;bottom:0;margin-bottom:0;padding:12px 0 0;background:linear-gradient(0deg,var(--bg) 88%,transparent);z-index:1}.workspace.has-chat .page-note{margin-top:11px}.messages{padding-top:24px}.message{margin-bottom:32px;animation:arrive .2s ease-out;overflow-wrap:anywhere}.message-user{display:flex;flex-direction:column;align-items:flex-end}.user-bubble{max-width:85%;padding:13px 18px;border-radius:22px 22px 6px 22px;background:#eeefe9;font-size:14px;line-height:1.8;white-space:pre-wrap}.message-meta{font-size:10px;color:var(--muted);margin:7px 4px 0}.message-coach{display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px}.message-logo{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#e7eee3;color:var(--accent);font-size:21px}.reply-header{font-size:12px;font-weight:600;display:flex;align-items:center;gap:10px;min-height:30px}.demo-tag{font-size:9px;color:#858d80;font-weight:400;background:#edf0e7;border-radius:5px;padding:3px 6px}.reply-text{font-size:14px;line-height:1.9;margin-top:10px;white-space:normal}.reply-list{font-size:13px;line-height:1.9;color:#626e64;padding-left:20px;margin:10px 0}.reply-actions{display:flex;gap:8px;margin-top:15px}.reply-actions button{background:transparent;font-size:11px;color:var(--accent);padding:5px 0}.score-details{border:1px solid var(--line);border-radius:12px;margin-top:14px;padding:10px 14px;font-size:12px;color:#67736a}.score-details summary{cursor:pointer;line-height:1.7}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.score-grid span{display:flex;justify-content:space-between;gap:12px;font-size:11px}.score-details p{font-size:10px;color:var(--muted);margin-top:12px;line-height:1.7}.drawer{border:0;border-radius:22px 0 0 22px;margin:0 0 0 auto;padding:0;width:min(500px,100vw);height:100dvh;max-width:100vw;max-height:100dvh;background:#fbfcf8;color:var(--ink);box-shadow:-10px 0 50px #1f352516;overflow:hidden}.drawer[open]{display:flex;flex-direction:column}.drawer::backdrop{background:#222d2540;backdrop-filter:blur(3px)}.drawer-header{padding:28px 26px 21px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.drawer-header h2{margin-top:6px}.drawer-content{padding:24px 26px;flex:1;overflow-y:auto}.drawer-footer{padding:18px 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:#fbfcf8}.subtle{font-size:12px;color:#879083;line-height:1.9}.fine-print{font-size:10px;color:#92998d;line-height:1.8;margin-top:14px}.team-card{margin:20px 0;border:1px solid var(--line);background:#fff;padding:14px;border-radius:15px}.team-heading{display:flex;align-items:center;justify-content:space-between}.team-heading button{background:transparent;padding:5px 9px;border-radius:7px;font-size:12px;color:#8c9387}.team-heading button[aria-pressed=true]{background:#eaf0e5;color:#527146}.enemy-card .team-heading button[aria-pressed=true]{background:#f3e8e4;color:#9b6b57}.team-heading>span{font-size:10px;color:#9aa292}.slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:12px}.slot{height:78px;border:1px dashed #e4e9de;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#b3bbac;background:#f9faf6}.slots button{padding:5px 2px;background:#f1f5ec;border:1px solid #e1e9d8;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:78px;font-size:9px;position:relative}.slots img{height:33px;width:33px;border-radius:7px}.slots button:hover{background:#e9eddf}.slots button::after{content:'×';position:absolute;top:2px;right:4px;color:#94a088;font-size:11px}.search-label{font-size:11px;color:#7c8775}.search-input,input,select{width:100%;background:#fff;border:1px solid #e1e6db;border-radius:9px;padding:10px 12px;color:var(--ink);font-size:12px}.search-input{margin-top:9px}.champions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:18px}.champion{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid #e6eadf;border-radius:11px;padding:9px 2px;background:#fff;font-size:10px;color:#6f7b68}.champion:hover{background:#edf3e8;border-color:#b8c9aa}.champion img{width:41px;height:41px;border-radius:9px}.primary-button,.secondary-button{padding:10px 16px;border-radius:10px;font-size:12px}.primary-button{background:var(--accent);color:white}.primary-button:hover{background:#2d5346}.secondary-button{background:#edf2e8;border:1px solid #dbe4d4;color:#536849}.secondary-button:hover{background:#e2ebdb}.text-button{background:transparent;color:#75846b;font-size:11px;padding:6px 0}.user-summary{display:flex;align-items:center;gap:14px}.large-avatar{height:49px;width:49px;font-size:19px}.user-summary h3{font-size:18px}.user-summary p{font-size:11px;color:#929b8a;margin-top:6px}.settings-section{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.settings-section>h3{margin-bottom:14px}.user-list{display:flex;flex-wrap:wrap;gap:8px}.user-choice{font-size:11px;padding:8px 12px;border-radius:9px;background:#fff;border:1px solid #e2e7db;color:#839077;max-width:100%;overflow-wrap:anywhere}.user-choice[aria-pressed=true]{color:var(--accent);border-color:#bbcbb1;background:#ebf1e5}.inline-form{display:flex;align-items:center;gap:8px;margin-top:13px}.inline-form input{flex:1;min-width:0}.inline-form button{white-space:nowrap}.settings-section label{display:block;font-size:11px;color:#7d8874;margin-bottom:14px}.settings-section label input,.settings-section label select,.settings-section label textarea{margin-top:7px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-section textarea{width:100%;background:#fff;border:1px solid #e1e6db;border-radius:9px;padding:10px 12px;resize:vertical;font-size:12px;color:var(--ink)}.form-status{font-size:11px;line-height:1.8;color:#718466;margin-top:10px;min-height:20px}.data-actions{display:flex;gap:18px;margin-top:14px}.file-label{cursor:pointer}.history-drawer{margin:0 auto 0 0;border-radius:0 22px 22px 0;width:min(350px,100vw)}.wide-button{width:100%}.history-list{display:flex;flex-direction:column;gap:9px;margin-top:22px}.history-item{background:#fff;border:1px solid var(--line);padding:13px;border-radius:11px;text-align:left;display:flex;flex-direction:column;gap:7px;color:#63745b;font-size:12px}.history-item[aria-pressed=true]{background:var(--soft);border-color:#c8d5bf}.history-item span{font-size:9px;color:#a0a893}.empty-history{font-size:12px;line-height:1.8;color:var(--muted);padding:14px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@keyframes arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1400px){.workspace{max-width:860px}.topbar{padding:0 48px}}
@media(max-width:760px){.topbar{height:auto;min-height:110px;padding:17px 18px 12px;grid-template-columns:1fr 1fr;gap:16px 8px}.brand-group{gap:6px}.brand{font-size:17px}.header-actions{gap:10px}.mode-switch{grid-column:1/-1;grid-row:1;justify-self:center}.brand-group,.header-actions{grid-row:2}.mode-switch button{padding:7px 15px}.mode-switch button span{font-size:10px}.icon-button{width:28px;height:28px;font-size:20px}.new-chat{font-size:24px}.bp-trigger{padding:7px 9px}.workspace{min-height:calc(100dvh - 110px);padding:0 18px 13px}.welcome{padding:20px 0 28px;margin-top:15px}.welcome h1{font-size:28px}.welcome-subtitle{font-size:12px}.coach-mark{height:56px;width:56px;font-size:32px;border-radius:18px;margin-bottom:16px}.eyebrow{font-size:8px}.composer-area{margin-bottom:45px}.composer{padding:17px 16px 12px;border-radius:21px}.composer textarea{font-size:14px}.composer-right>span{display:none}.starter-prompts{gap:7px;margin-top:16px}.starter-prompts button{gap:15px;font-size:11px;padding:9px 11px}.message-coach{grid-template-columns:26px minmax(0,1fr);gap:10px}.message-logo{height:26px;width:26px;font-size:18px}.user-bubble{font-size:13px}.reply-text{font-size:13px}.drawer{border-radius:18px 0 0 18px}.drawer-header{padding:22px 20px 17px}.drawer-content{padding:20px}.drawer-footer{padding:16px 20px}.score-grid{grid-template-columns:1fr}.settings-section{margin-top:20px}.champions{gap:7px}.slots button{font-size:8px}.history-drawer{border-radius:0 18px 18px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#ai-settings-shortcut{background:transparent;padding:0;color:var(--accent);font-size:inherit;text-decoration:underline;text-underline-offset:3px}.connection-badge{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:6px;background:var(--soft);color:var(--accent);font-size:10px;font-weight:400}#ai-connection-form{margin-top:15px}.data-actions{flex-wrap:wrap}#ai-connection-section{scroll-margin-top:20px}


/* Markdown replies share the surrounding chat typography. */
.reply-body { min-width: 0; }
.reply-text.is-plain { white-space: pre-wrap; }
.reply-text p { margin: 0 0 .85em; }
.reply-text :is(h1, h2, h3, h4, h5, h6) { margin: 1.2em 0 .55em; font-weight: 650; line-height: 1.45; letter-spacing: normal; }
.reply-text h1 { font-size: 1.5em; }
.reply-text h2 { font-size: 1.3em; }
.reply-text h3 { font-size: 1.13em; }
.reply-text :is(h4, h5, h6) { font-size: 1em; }
.reply-text :is(ul, ol) { margin: .6em 0 1em; padding-left: 1.6em; }
.reply-text li { margin: .25em 0; padding-left: .15em; }
.reply-text li > p { margin: .4em 0; }
.reply-text li > :is(ul, ol) { margin: .3em 0; }
.reply-text strong { font-weight: 650; }
.reply-text blockquote { margin: 1em 0; padding: .1em 0 .1em 1em; border-left: 3px solid #b6c7b9; color: #68766d; }
.reply-text blockquote > :last-child { margin-bottom: 0; }
.reply-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.reply-text a:hover { color: #214a3b; }
.reply-text code { padding: .13em .35em; border-radius: 5px; background: #edf0e9; font-family: Consolas, "Cascadia Code", monospace; font-size: .9em; }
.reply-text pre { max-width: 100%; margin: 1em 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #e1e6dc; border-radius: 12px; background: #f1f3ed; line-height: 1.7; white-space: pre; overflow-wrap: normal; tab-size: 2; }
.reply-text pre code { padding: 0; border-radius: 0; background: none; font-size: .88em; white-space: pre; }
.reply-text hr { margin: 1.3em 0; border: 0; border-top: 1px solid var(--line); }
.reply-text .table-scroll { max-width: 100%; margin: 1em 0; overflow-x: auto; border: 1px solid #e1e6dc; border-radius: 11px; }
.reply-text table { width: 100%; border-collapse: collapse; font-size: .93em; }
.reply-text :is(th, td) { min-width: 100px; padding: 10px 13px; border-bottom: 1px solid #e1e6dc; text-align: left; vertical-align: top; }
.reply-text th { background: #edf2e9; font-weight: 600; }
.reply-text tbody tr:last-child td { border-bottom: 0; }
.reply-text tbody tr:nth-child(even) { background: #f6f7f2; }
.reply-text > :first-child { margin-top: 0; }
.reply-text > :last-child { margin-bottom: 0; }


/* Fade the pinned header into the conversation instead of drawing a divider. */
.topbar::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(250, 249, 246, .8) 35%, rgba(250, 249, 246, 0) 100%);
  pointer-events: none;
}

/* Sticky bottom must meet the parent's bottom without extra desktop/mobile padding. */
.workspace.has-chat { padding-bottom: 0; }

/* A quiet, display-only lineup sits at the screen edge, independent of chat. */
.app-layout { display: block; }
.app-layout .workspace { width: 100%; min-width: 0; }
.draft-summary { position: fixed; top: 112px; right: 28px; z-index: 5; display: grid; gap: 14px; padding: 0; border: 0; background: none; box-shadow: none; pointer-events: none; }
.summary-slots { display: grid; grid-template-columns: repeat(5, 40px); gap: 9px; }
.summary-slot { display: block; width: 40px; height: 40px; border: 3px solid #5b98e9; border-radius: 50%; background: #edf4fd; overflow: hidden; }
#summary-enemy .summary-slot { border-color: #e6747c; background: #fbedef; }
.summary-slot img, .summary-empty { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bp-editor { width: min(680px, 100vw); }
.draft-selection { flex-shrink: 0; padding: 15px 24px 0; }
.draft-side-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #487fc4; font-size: 11px; font-weight: 600; }
.draft-side-label span:last-child { color: #9aa3af; font-size: 10px; font-weight: 400; }
.enemy-label { color: #cc606a; margin-top: 22px; }
.draft-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.draft-slot { position: relative; min-width: 0; text-align: center; }
.slot-pick { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; width: 100%; padding: 0 3px; border: 0; background: transparent; color: #44566e; border-radius: 12px; }
.slot-pick img, .slot-empty { width: 54px; height: 54px; border: 3px solid #75a7e9; border-radius: 50%; object-fit: cover; transition: box-shadow .15s, border-color .15s; }
.slot-empty { display: grid; place-items: center; background: #f1f6fd; color: #9cb8da; font-size: 22px; font-weight: 300; }
#enemy .slot-pick { color: #77555c; }
#enemy .slot-pick img, #enemy .slot-empty { border-color: #e59198; }
#enemy .slot-empty { background: #fdf2f3; color: #d3a6ac; }
.slot-pick:hover img, .slot-pick:hover .slot-empty { box-shadow: 0 0 0 4px #5996e315; }
#enemy .slot-pick:hover img, #enemy .slot-pick:hover .slot-empty { box-shadow: 0 0 0 4px #dd737b15; }
.slot-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.5; }
.slot-role { display: block; margin-top: 7px; color: #a1a7ae; font-size: 10px; line-height: 1.5; pointer-events: none; }
.draft-slot.is-next .slot-pick img, .draft-slot.is-next .slot-empty, .slot-pick.drop-ready img, .slot-pick.drop-ready .slot-empty { border-color: #3e83dc; box-shadow: 0 0 0 4px #619ce727; }
#enemy .draft-slot.is-next .slot-pick img, #enemy .draft-slot.is-next .slot-empty, #enemy .slot-pick.drop-ready img, #enemy .slot-pick.drop-ready .slot-empty { border-color: #d75d69; box-shadow: 0 0 0 4px #e7858d27; }
.draft-slot.is-moving .slot-pick img, .draft-slot.is-moving .slot-empty { border-style: dashed; }
.slot-remove { position: absolute; top: -5px; right: calc(50% - 36px); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid #e2e6ed; border-radius: 50%; color: #9ba6b5; background: #fffffff5; font-size: 12px; opacity: 0; transition: opacity .15s; }
.draft-slot:hover .slot-remove, .draft-slot:focus-within .slot-remove { opacity: 1; }
.slot-remove:hover { color: #ca5865; background: #fff1f3; }
.slot-pick[draggable="true"], .bp-editor .champion { cursor: grab; }
.is-dragging { opacity: .45; }
.pick-hint { min-height: 33px; margin-top: 9px; color: #7b8c6d; font-size: 10px; line-height: 1.6; }
.bp-editor .search-input { margin-top: 0; padding: 10px 12px; background: #fff; }
.hero-filters { display: flex; gap: 5px; margin: 10px 0 0; padding-bottom: 12px; overflow-x: auto; }
.hero-filter { flex-shrink: 0; padding: 6px 9px; border: 1px solid #e4e9de; border-radius: 8px; background: transparent; color: #8a9580; font-size: 10px; white-space: nowrap; }
.hero-filter[aria-pressed="true"] { border-color: #b6c9a5; background: #e9f1e1; color: #4d6f3c; }
.champion-browser { min-height: 100px; padding: 13px 24px 20px; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.champion-count-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 9px; color: #a0a995; }
.bp-editor .champions { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
.bp-editor .champion { position: relative; min-width: 0; padding: 7px 3px; gap: 6px; border: 1px solid #e3e9da; border-radius: 11px; background: #fff; }
.bp-editor .champion img { width: 51px; height: 51px; max-width: 100%; border-radius: 9px; object-fit: cover; }
.champion-name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; text-align: center; }
.bp-editor .champion:hover { border-color: #a9c093; background: #f0f6e9; }
.bp-editor .champion.is-picked { border-color: #afc69d; background: #eaf2e2; }
.picked-tag { position: absolute; top: 3px; right: 3px; padding: 2px 3px; border-radius: 4px; color: #fff; background: #405f34e8; font-size: 8px; line-height: 1.3; pointer-events: none; }
.empty-champions { grid-column: 1 / -1; padding: 24px 5px; color: var(--muted); font-size: 12px; line-height: 1.8; }
@media (max-width: 1350px) {
  .app-layout .workspace { padding-top: 116px; }
}
@media (max-width: 760px) {
  .draft-summary { top: 132px; right: 18px; gap: 10px; }
  .summary-slots { grid-template-columns: repeat(5, 32px); gap: 7px; }
  .summary-slot { width: 32px; height: 32px; }
  .app-layout .workspace { padding-top: 110px; }
  .slot-remove { opacity: 1; }
}
@media (max-width: 480px) {
  .draft-selection { padding: 12px 16px 0; }
  .draft-slots { gap: 6px; }
  .slot-pick { padding: 0 2px; gap: 5px; }
  .slot-pick img, .slot-empty { width: 44px; height: 44px; }
  .slot-name { font-size: 9px; }
  .slot-role { margin-top: 5px; font-size: 9px; }
  .slot-remove { right: calc(50% - 32px); width: 22px; height: 22px; }
  .enemy-label { margin-top: 17px; }
  .pick-hint { font-size: 9px; min-height: 30px; }
  .hero-filter { padding: 6px 8px; font-size: 9px; }
  .champion-browser { padding: 12px 16px 16px; }
  .bp-editor .champions { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .bp-editor .champion img { width: 46px; height: 46px; }
  .champion-count-row { font-size: 8px; }
}
.bp-editor .champion.picked-ally { border-color: #a2bee5; background: #eef5ff; }
.bp-editor .champion.picked-enemy { border-color: #e8b1b7; background: #fff2f3; }
.picked-ally .picked-tag { background: #4d82c6ed; }
.picked-enemy .picked-tag { background: #c8626ded; }

/* Mirrored picks show both teams, with independently removable side badges. */
.bp-editor .champion.picked-ally.picked-enemy { border-color: #b9a5cf; background: linear-gradient(120deg, #eef5ff, #fff2f3); }
.picked-tags { position: absolute; top: 3px; right: 3px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.picked-tags .picked-tag { position: static; pointer-events: auto; }
.picked-tags .tag-ally { background: #4d82c6ed; }
.picked-tags .tag-enemy { background: #c8626ded; }

/* Keep lineup reset beside the position filters, above the hero pool. */
.hero-toolbar { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-bottom: 12px; }
.hero-toolbar .hero-filters { flex: 1; min-width: 0; margin: 0; padding-bottom: 0; }
.hero-toolbar #reset { flex-shrink: 0; padding: 6px 0 6px 8px; white-space: nowrap; }
.bp-editor .drawer-footer { justify-content: flex-end; }
/* BP state is stored with the lineup; role labels only belong to normal selection. */
.bp-title-row { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.bp-title-row #bp-title { margin: 0; }
.bp-mode-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #8a938e; font-size: 11px; cursor: pointer; white-space: nowrap; }
.bp-mode-switch input { position: absolute; right: 0; width: 34px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: relative; display: block; width: 34px; height: 20px; border-radius: 12px; background: #dfe5df; transition: background .15s; pointer-events: none; }
.switch-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0001; transition: transform .15s; }
.bp-mode-switch input:checked + .switch-track { background: #477f6b; }
.bp-mode-switch input:checked + .switch-track::after { transform: translateX(14px); }
.bp-mode-switch input:focus-visible + .switch-track { outline: 2px solid #78a38a; outline-offset: 3px; }
.bp-editor.is-bp .slot-role { display: none; }
.bp-editor.is-bp .draft-selection { max-height: calc(100dvh - 285px); overflow-y: auto; }
.ban-row { margin-bottom: 13px; }
.ban-row-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #a3a8ad; font-size: 9px; }
.ban-pick img, .ban-pick .slot-empty { width: 34px; height: 34px; border-width: 2px; border-color: #9fb9dc; }
.ban-pick .slot-empty { background: #f4f6f9; color: #a1afc0; font-size: 18px; }
.ban-pick img { filter: grayscale(1); opacity: .65; }
.ban-slot .slot-name { color: #9a9fa7; font-size: 9px; }
.ban-slot .slot-remove { top: -4px; right: calc(50% - 26px); width: 20px; height: 20px; }
#ban-enemy .slot-empty, #ban-enemy img { border-color: #d6a3a9; }
.bp-editor .champion.is-banned { border-color: #d4d7dc; background: #f0f1f3; }
.champion.is-banned > img { filter: grayscale(1); opacity: .4; }
.champion.is-banned .champion-name { color: #a2a8ae; text-decoration: line-through; }
@media (max-width: 480px) {
  .bp-title-row { gap: 15px; }
  .bp-mode-switch { gap: 6px; font-size: 10px; }
  .ban-pick img, .ban-pick .slot-empty { width: 30px; height: 30px; }
}

/* Rule presets change the automatic Ban/Pick queue without clearing the board. */
.bp-title-row { flex-wrap: wrap; column-gap: 15px; row-gap: 10px; }
.bp-rule-select { width: 238px; max-width: 100%; padding: 7px 24px 7px 9px; font-size: 10px; border-radius: 8px; background: #fff; color: #6a7c72; }
.ban-slots { grid-template-columns: repeat(var(--ban-slots, 5), minmax(0, 1fr)); }
.bp-rule-info { margin-top: 12px; color: #9aa299; font-size: 9px; line-height: 1.65; }
.bp-editor.is-bp .pick-hint { margin-top: 5px; min-height: 25px; }
@media (max-width: 580px) {
  .bp-rule-select { flex-basis: 100%; width: 100%; }
  .bp-editor.is-bp .draft-selection { max-height: calc(100dvh - 315px); }
}

/* Saved message lineups: grey bans first, followed by blue/red picks on two rows. */
.message-draft { display: flex; flex-direction: column; gap: 3px; align-self: flex-end; max-width: 100%; margin-top: 8px; }
.message-draft-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }
.message-draft-ally { color: #487fc4; }
.message-draft-enemy { color: #cc606a; }
.message-draft-bans { color: #969da4; }
.message-draft-empty { opacity: .5; }
@media (max-width: 760px) { .message-draft-row { font-size: 10px; gap: 2px 9px; } }

/* The display-only overview includes active bans above each team's picks. */
.draft-summary .summary-team { display: grid; gap: 8px; }
.summary-bans { display: flex; justify-content: flex-end; gap: 9px; }
.summary-slot.summary-ban { width: 28px; height: 28px; border: 2px solid #afb4bb; background: #eceef1; }
.summary-ban img { filter: grayscale(1); opacity: .55; }
@media (max-width: 1350px) { .app-layout.has-summary-bans .workspace { padding-top: 190px; } }
@media (max-width: 760px) {
  .draft-summary .summary-team { gap: 7px; }
  .summary-bans { gap: 7px; }
  .summary-slot.summary-ban { width: 23px; height: 23px; }
  .app-layout.has-summary-bans .workspace { padding-top: 175px; }
}

/* One catalogue selector controls the page and the active game's draft source. */
.message-sources { margin-top: 12px; color: #7d887c; font-size: 11px; line-height: 1.6; }
.message-sources summary { cursor: pointer; }
.message-sources ul { padding-left: 18px; }
.message-sources a { color: #557e6c; overflow-wrap: anywhere; }
.search-suggestions { display: block; border: 0; width: 100%; height: 115px; margin-top: 8px; background: transparent; }
.search-setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; font-size: 12px; color: #71816f; }
.search-setting select { max-width: 190px; padding: 7px 10px; border: 1px solid #e0e6db; border-radius: 9px; background: #fafbf8; color: #52634f; }
.game-selector { position: relative; --game-accent: #568d7d; }
.game-trigger { display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 6px; border: 1px solid #e4e8df; border-radius: 12px; background: #ffffffb8; color: #66746b; font-size: 11px; white-space: nowrap; }
.game-trigger:hover, .game-trigger[aria-expanded="true"] { background: #fff; border-color: #bdcabc; box-shadow: 0 3px 12px #344a2c08; }
.game-symbol { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--game-accent); background: #f0f3ed; font-family: Georgia, serif; font-size: 16px; font-weight: 700; }
.game-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; width: 276px; padding: 7px; border: 1px solid #e6e9e1; border-radius: 17px; background: #fff; box-shadow: 0 12px 45px #253e2421, 0 2px 8px #253e2406; }
.game-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border-radius: 11px; background: transparent; text-align: left; color: #4b5a50; }
.game-option:hover { background: #f6f7f2; }
.game-option:disabled { cursor: default; opacity: .68; }
.game-option:disabled:hover { background: transparent; }
.game-option[aria-selected="true"] { background: #edf3e9; }
.game-option-symbol { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; border: 1px solid #e0e6da; border-radius: 11px; background: #fafbf7; color: var(--option-accent); font-family: Georgia, serif; font-size: 23px; font-weight: 700; }
.game-option-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.game-option-copy strong { font-size: 12px; font-weight: 600; }
.game-option-copy small { color: #a1a89c; font-size: 9px; }
.game-option-platform { font-size: 9px; color: #8c9b83; }
.game-option[aria-selected="true"] .game-option-platform::after { content: ' ✓'; }
@media (min-width: 761px) and (max-width: 1150px) {
  .topbar { height: auto; min-height: 115px; padding: 14px 24px; grid-template-columns: 1fr auto; gap: 13px; }
  .mode-switch { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .brand-group, .header-actions { grid-row: 2; }
  .draft-summary { top: 150px; }
  .app-layout .workspace { min-height: calc(100dvh - 125px); }
}
@media (max-width: 760px) {
  .topbar { padding-bottom: 59px; }
  .game-selector { position: absolute; top: 116px; left: 18px; }
  .game-trigger { padding-top: 4px; padding-bottom: 4px; }
  .game-menu { max-width: calc(100vw - 36px); }
  .draft-summary { top: 184px; }
  .app-layout .workspace { min-height: calc(100dvh - 163px); }
  .app-layout.has-summary-bans .workspace { padding-top: 190px; }
}

.memory-toolbar,.memory-card-heading,.memory-card-actions,.memory-entry-toggle{display:flex;align-items:center;gap:10px}.memory-toolbar,.memory-card-heading{justify-content:space-between}.memory-entry-toggle{font-size:13px}.memory-entry-toggle input{width:16px;height:16px;margin:0;accent-color:var(--accent)}.memory-add{margin:20px 0}.memory-add summary{cursor:pointer;color:var(--accent);font-size:13px;margin-bottom:14px}.memory-list{display:grid;gap:14px;margin-top:20px}.memory-card{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.memory-card-actions{flex-shrink:0;gap:6px}.memory-card-text{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.memory-card-meta{display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere}.memory-used{margin-top:12px;color:var(--muted);font-size:11px}.memory-used summary{cursor:pointer}.memory-used ul{padding-left:18px}.memory-drawer{width:min(620px,100vw)}

.memory-add label{display:block;font-size:12px;margin:12px 0;color:var(--muted)}.memory-add input,.memory-add select,.memory-add textarea{margin-top:7px}.memory-add textarea{display:block;width:100%;font:inherit;font-size:13px;line-height:1.7;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink)}.memory-card{background:#fff}.memory-card-heading .text-button{padding:5px}.memory-card-heading{align-items:flex-start}.memory-entry-toggle{min-width:0}.memory-entry-toggle strong{overflow-wrap:anywhere}

@media (max-height: 800px) {
  .workspace:not(.has-chat) .welcome { margin-top: 0; padding: 12px 0 20px; }
  .workspace:not(.has-chat) .coach-mark { width: 48px; height: 48px; font-size: 29px; border-radius: 17px; margin-bottom: 12px; }
  .workspace:not(.has-chat) .welcome h1 { font-size: 30px; margin-top: 8px; }
  .workspace:not(.has-chat) .welcome-subtitle { margin-top: 6px; }
  .workspace:not(.has-chat) .composer-area { margin-bottom: 18px; }
  .workspace:not(.has-chat) .page-note { margin-top: 13px; }
}

/* Language controls stay compact alongside the game and response mode. */
.language-picker { display: inline-flex; flex-shrink: 0; }
.language-picker select { appearance: none; background: #ffffff9c; border: 1px solid #e2e7dc; border-radius: 10px; padding: 8px 10px; color: #65745e; font-size: 11px; cursor: pointer; }
.language-picker select:hover { background: #fff; border-color: #bdcabc; }
#game-label { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.data-actions, .memory-card-actions { flex-wrap: wrap; }
.game-option-copy { min-width: 0; }
html[lang="en"] .game-menu { width: min(350px, calc(100vw - 36px)); }
html[lang="en"] .game-option-copy strong { white-space: normal; }
html[lang="en"] .slot-name, html[lang="en"] .champion-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (min-width: 1151px) and (max-width: 1450px) {
  html[lang="en"] .mode-switch button span { display: none; }
  html[lang="en"] #game-label { max-width: 180px; }
  html[lang="en"] .topbar { gap: 14px; padding-inline: 24px; }
}
@media (max-width: 760px) {
  .header-actions { gap: 7px; }
  .language-picker select { padding: 7px 6px; font-size: 10px; max-width: 70px; }
  html[lang="en"] #game-label { max-width: 145px; }
  html[lang="en"] .starter-prompts { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .topbar { padding-inline: 12px; }
  .brand { font-size: 15px; }
  .header-actions { gap: 5px; }
  .header-actions .avatar { width: 29px; height: 29px; }
  .bp-trigger { padding-inline: 6px; font-size: 11px; }
}
