/* AI response cards */
.ai-card { background: var(--bg-secondary); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px; }
.ai-card h3 { font-size: 16px; margin: 6px 0 4px; }
.ai-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-bright); background: var(--accent-glow); padding: 3px 8px; border-radius: 6px; margin-bottom: 4px; }
.ai-training { border-left-color: var(--info); } .ai-training .ai-tag { color: var(--info); background: rgba(74,155,232,.12); }
.ai-tactic { border-left-color: var(--warning); } .ai-tactic .ai-tag { color: var(--warning); background: rgba(232,177,58,.12); }
.ai-player { border-left-color: var(--success); } .ai-player .ai-tag { color: var(--success); background: rgba(41,195,127,.12); }
.ai-match { border-left-color: var(--danger); } .ai-match .ai-tag { color: var(--danger); background: rgba(229,84,75,.12); }
.ai-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 12px 0 6px; }
.ai-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ai-list li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--text-secondary); }
.ai-list li::before { content: '›'; position: absolute; left: 3px; color: var(--accent-bright); font-weight: 700; }
.ai-blocks { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.ai-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; border-left: 3px solid var(--border-strong); }
.ai-block.b-info { border-left-color: var(--info); } .ai-block.b-accent { border-left-color: var(--accent-bright); }
.ai-block.b-warning { border-left-color: var(--warning); } .ai-block.b-success { border-left-color: var(--success); } .ai-block.b-muted { border-left-color: var(--text-muted); }

/* Chat layout */
.chat-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 0; height: calc(100vh - 61px); }
.chat-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.chat-items { overflow-y: auto; flex: 1; padding: 8px; }
.chat-item { padding: 11px 12px; border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 4px; border: 1px solid transparent; }
.chat-item:hover { background: var(--surface); }
.chat-item.active { background: var(--surface); border-color: var(--border); }
.chat-item .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .p { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .del { float: right; opacity: 0; color: var(--text-muted); }
.chat-item:hover .del { opacity: 1; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 760px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #06120d; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-weight: 500; }
.msg.assistant { align-self: flex-start; width: 100%; max-width: 760px; }
.chat-input-bar { border-top: 1px solid var(--border); padding: 14px 18px; display: flex; gap: 10px; align-items: flex-end; }
.chat-input-bar textarea { min-height: 44px; max-height: 140px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 16px; background: var(--surface); border-radius: 12px; align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }
.mic-live { color: var(--danger) !important; border-color: var(--danger) !important; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* Dashboard */
.brief-card { background: linear-gradient(135deg, var(--surface), var(--bg-secondary)); border: 1px solid var(--border-strong); }
.watch-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.watch-row:last-child { border-bottom: none; }
.event-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.event-row:last-child { border-bottom: none; }
.event-date { text-align: center; min-width: 46px; }
.event-date .d { font-size: 18px; font-weight: 800; line-height: 1; }
.event-date .m { font-size: 10px; text-transform: uppercase; color: var(--text-muted); }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.qa-btn { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-align: left; }
.qa-btn svg { width: 22px; height: 22px; color: var(--accent-bright); }

/* Players */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
.toolbar .search input { padding-left: 36px; }
.player-card { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.player-card:hover { border-color: var(--accent); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: none; color: var(--text-secondary); padding: 10px 14px; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }

/* Tactical board */
.pitch-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pitch { background: linear-gradient(160deg, #0f3d2a, #0a2e20); border: 2px solid var(--border-strong); border-radius: var(--radius); touch-action: none; user-select: none; flex: 1; min-width: 300px; max-width: 640px; }
.token { cursor: grab; } .token:active { cursor: grabbing; }
.tactic-side { width: 240px; }

/* Calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { min-height: 72px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px; font-size: 12px; }
.cal-cell.dim { opacity: .4; }
.cal-cell .n { color: var(--text-muted); font-size: 11px; }
.cal-ev { background: var(--accent-glow); color: var(--accent-bright); border-radius: 4px; padding: 2px 5px; margin-top: 3px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-ev.match { background: rgba(229,84,75,.15); color: var(--danger); }

/* Situation buttons */
.sit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

@media (max-width: 760px) {
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-list { position: fixed; inset: 61px 0 0 0; background: var(--bg-primary); z-index: 20; }
  .chat-list.hide-mobile { display: none; }
  .tactic-side { width: 100%; }
}
