/* Board Taquion — component styles */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg-1); color: var(--fg-1); font-family: var(--font-body); }

.app { display: grid; grid-template-columns: 240px 1fr; height: 100vh; }

/* ===== Sidebar ===== */
.sidebar { background: var(--bg-2); border-right: 1px solid var(--border-1); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.sb-logo { padding: 4px 8px 16px; }
.sb-logo img { height: 48px; }
.sb-section { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); padding: 16px 10px 6px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: transparent; border: none; color: var(--fg-2); font-size: 14px; cursor: pointer; text-align: left; width: 100%; font-family: inherit; position: relative; transition: background var(--dur-fast), color var(--dur-fast); }
.sb-item i[data-lucide] { width: 17px; height: 17px; stroke-width: 1.75; }
.sb-item:hover { background: var(--bg-3); color: var(--fg-1); }
.sb-item.active { background: var(--bg-4); color: var(--fg-0); font-weight: 500; box-shadow: inset 0 0 0 1px rgba(34,197,94,0.15); }
.sb-item.active i[data-lucide] { color: var(--green-400); }
.sb-item.small { font-size: 13px; color: var(--fg-3); }
.sb-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.sb-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green-400); margin-left: auto; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.sb-spacer { flex: 1; }

/* ===== CWD (pasta atual) ===== */
.sb-cwd { display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin: 4px 0; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--border-1); cursor: default; }
.sb-cwd i[data-lucide] { width: 16px; height: 16px; color: var(--green-400); flex-shrink: 0; }
.sb-cwd-text { display: flex; flex-direction: column; min-width: 0; }
.sb-cwd-label { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-3); }
.sb-cwd-path { font-size: 11.5px; font-family: var(--font-mono); color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Project picker (custom dropdown) */
.sb-picker { position: relative; margin: 4px 0; }
.sb-picker-trigger { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--border-1); color: inherit; font: inherit; cursor: pointer; text-align: left; transition: border-color 0.15s; }
.sb-picker-trigger:hover:not(:disabled) { border-color: var(--green-400); }
.sb-picker-trigger:disabled { cursor: default; }
.sb-picker.open .sb-picker-trigger { border-color: var(--green-400); }
.sb-picker-trigger > i[data-lucide="folder"] { width: 16px; height: 16px; color: var(--green-400); flex-shrink: 0; }
.sb-picker-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sb-picker-label { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-3); }
.sb-picker-name { font-size: 12px; font-family: var(--font-mono); color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-picker-chev { width: 14px; height: 14px; color: var(--fg-3); flex-shrink: 0; }
.sb-picker.open .sb-picker-chev { color: var(--green-400); }

.sb-picker-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--bg-2); border: 1px solid var(--border-1); border-radius: 10px; padding: 4px; box-shadow: 0 12px 32px rgba(0,0,0,0.4); z-index: 50; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sb-picker-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: transparent; border: none; border-radius: 6px; color: var(--fg-1); font: inherit; font-size: 12.5px; font-family: var(--font-mono); cursor: pointer; text-align: left; }
.sb-picker-option:hover { background: var(--bg-3); }
.sb-picker-option.selected { background: var(--bg-3); color: var(--green-300); }
.sb-picker-option-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-picker-check { width: 14px; height: 14px; color: var(--green-400); flex-shrink: 0; }

/* ===== Board header ===== */
.board-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--border-1); background: var(--bg-1); }
.bh-left { display: flex; align-items: center; gap: 14px; }
.bh-mark { height: 38px; }
.bh-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-400); }
.bh-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--fg-0); }
.bh-right { display: flex; align-items: center; gap: 10px; }
.bh-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-3); border: 1px solid var(--border-1); padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--fg-2); }
.bh-chip i[data-lucide] { width: 14px; height: 14px; }
.bh-select { background: var(--bg-3); border: 1px solid var(--border-1); color: var(--fg-1); padding: 6px 10px; border-radius: 8px; font-size: 13px; font-family: inherit; cursor: pointer; }
.bh-select:hover { border-color: var(--green-400); }
.bh-project { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; }
.bh-project-check { width: 18px; height: 18px; color: var(--green-400); flex-shrink: 0; }
.bh-select-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg-0); background: transparent; border: none; padding: 0 22px 0 0; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.bh-select-title:hover { color: var(--green-300); }
.bh-select-title:focus { outline: none; }
.bh-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: all var(--dur-fast) var(--ease-out); }
.bh-btn i[data-lucide] { width: 15px; height: 15px; }
.bh-btn.ghost { background: transparent; color: var(--fg-2); }
.bh-btn.ghost:hover { background: var(--bg-3); color: var(--fg-0); }
.bh-btn.primary { background: var(--gradient-btn); color: var(--green-900); box-shadow: var(--shadow-glow-soft); font-weight: 600; padding: 8px 14px; border: none; }
.bh-btn.primary:hover { box-shadow: var(--shadow-glow); }
.bh-avatars { display: flex; margin: 0 6px; }
.bh-avatars .av { width: 26px; height: 26px; border-radius: 999px; margin-left: -7px; border: 2px solid var(--bg-1); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--green-900); }

/* ===== Main ===== */
.main { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-1); }
.board { flex: 1; padding: 20px 24px; overflow-x: auto; overflow-y: hidden; }
.kb-grid { display: grid; grid-template-columns: repeat(4, minmax(270px, 1fr)); gap: 16px; height: 100%; }
.kb-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 60vh; font-size: 14px; color: var(--fg-3); }
.kb-loading i[data-lucide] { width: 22px; height: 22px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Kanban column ===== */
.kb-col { background: var(--bg-2); border: 1px solid var(--border-1); border-radius: 14px; display: flex; flex-direction: column; min-height: 0; transition: border var(--dur-base), background var(--dur-base); }
.kb-col.over { border-color: var(--green-400); background: rgba(34,197,94,0.04); box-shadow: 0 0 0 1px rgba(34,197,94,0.3), var(--shadow-glow-soft); }
.kb-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-1); }
.kb-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--fg-1); }
.kb-count { background: var(--bg-4); border-radius: 999px; padding: 1px 8px; font-size: 11px; color: var(--fg-3); font-weight: 500; font-family: var(--font-mono); }
.kb-dot { width: 10px; height: 10px; border-radius: 3px; }
.kb-dot.todo { background: var(--todo-dot); }
.kb-dot.doing { background: var(--green-400); box-shadow: 0 0 6px var(--green-400); }
.kb-dot.done { background: var(--done-dot); }
.kb-dot.blocked { background: var(--blocked-dot); }
.kb-add { background: transparent; border: none; width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-3); }
.kb-add:hover { background: var(--bg-4); color: var(--green-300); }
.kb-add i[data-lucide] { width: 15px; height: 15px; }
.kb-list { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; }
.kb-empty { font-size: 12.5px; color: var(--fg-3); text-align: center; padding: 22px 12px; border: 1px dashed var(--border-2); border-radius: 10px; line-height: 1.5; }

/* ===== OKR Card ===== */
.okr-card { background: var(--bg-3); border: 1px solid var(--border-1); border-radius: 12px; padding: 12px 13px; cursor: grab; box-shadow: var(--shadow-xs); transition: all var(--dur-base) var(--ease-out); display: flex; flex-direction: column; gap: 9px; }
.okr-card:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(34,197,94,0.2); transform: translateY(-1px); border-color: rgba(34,197,94,0.25); }
.okr-card.ghost { opacity: 0.35; }
.okr-card.has-claude { border-color: rgba(34,197,94,0.3); background: linear-gradient(180deg, rgba(34,197,94,0.06) 0%, var(--bg-3) 50%); box-shadow: var(--shadow-glow-soft); }
.ok-head { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.ok-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--bg-5); color: var(--fg-3); font-family: var(--font-mono); }
.ok-tag.p1 { background: var(--blocked-bg); color: var(--blocked-fg); }
.ok-tag.growth { background: rgba(34,197,94,0.12); color: var(--green-300); }
.ok-claude { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--green-300); text-transform: lowercase; }
.ok-delete { margin-left: auto; display: none; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; color: var(--fg-3); padding: 1px; border-radius: 4px; line-height: 0; transition: color var(--dur-fast), background var(--dur-fast); }
.ok-delete i[data-lucide], .ok-delete svg { width: 10px; height: 10px; }
.ok-delete:hover { color: #f87171; background: rgba(248,113,113,0.12); }
.okr-card:hover .ok-delete { display: inline-flex; }
.ok-claude i[data-lucide] { width: 12px; height: 12px; }
.ok-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0; color: var(--fg-0); letter-spacing: -0.005em; }
.ok-bar { height: 4px; background: var(--bg-5); border-radius: 999px; overflow: hidden; }
.ok-bar i { display: block; height: 100%; border-radius: inherit; transition: width var(--dur-slow) var(--ease-out); background: var(--green-400); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.okr-card.has-claude .ok-bar i { background: linear-gradient(90deg, var(--green-400), var(--grad-cyan)); }
.ok-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--fg-3); }
.ok-krs { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); }
.ok-krs i[data-lucide] { width: 12px; height: 12px; }
.ok-owner { width: 22px; height: 22px; border-radius: 999px; background: var(--bg-5); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; color: var(--fg-1); }

/* ===== Cowork panel ===== */
.cowork { position: fixed; right: 0; top: 0; height: 100vh; width: 380px; background: var(--bg-2); border-left: 1px solid var(--border-1); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 20; animation: slideIn var(--dur-slow) var(--ease-out); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-1); }
.cw-title { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-0); font-weight: 600; }
.cw-title i[data-lucide] { width: 16px; height: 16px; color: var(--green-400); }
.cw-sub { color: var(--fg-3); font-size: 12.5px; font-weight: 400; }
.cw-x { background: transparent; border: none; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--fg-3); }
.cw-x:hover { background: var(--bg-4); color: var(--fg-1); }
.cw-x i[data-lucide] { width: 16px; height: 16px; }
.cw-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cw-msg { display: flex; gap: 9px; align-items: flex-start; }
.cw-av { width: 26px; height: 26px; border-radius: 999px; background: var(--bg-4); color: var(--fg-1); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.cw-msg.claude .cw-av { background: var(--gradient-btn); color: var(--green-900); box-shadow: 0 0 12px rgba(34,197,94,0.5); }
.cw-bubble { background: var(--bg-3); border: 1px solid var(--border-1); border-radius: 10px; border-top-left-radius: 4px; padding: 8px 12px; font-size: 13.5px; line-height: 1.5; color: var(--fg-1); }
.cw-msg.claude .cw-bubble { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.25); }
.cw-who { font-size: 10.5px; color: var(--fg-3); font-weight: 600; margin-bottom: 2px; }
.cw-text { color: var(--fg-1); }
.cw-action { margin-top: 6px; font-size: 11.5px; color: var(--green-300); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.cw-action i[data-lucide] { width: 12px; height: 12px; }
.cw-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-1); }
.cw-compose input { flex: 1; background: var(--bg-1); border: 1px solid var(--border-2); border-radius: 8px; padding: 9px 12px; font-family: inherit; font-size: 13.5px; color: var(--fg-0); }
.cw-compose input::placeholder { color: var(--fg-3); }
.cw-compose input:focus { outline: none; border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.cw-compose button { background: var(--gradient-btn); border: none; border-radius: 8px; width: 36px; display: flex; align-items: center; justify-content: center; color: var(--green-900); cursor: pointer; box-shadow: var(--shadow-glow-soft); }
.cw-compose button i[data-lucide] { width: 15px; height: 15px; stroke-width: 2.25; }

/* ===== FAB + Demo + Toast ===== */
.cw-fab { position: fixed; right: 20px; bottom: 20px; background: var(--gradient-btn); color: var(--green-900); border: none; padding: 12px 18px; border-radius: 999px; font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg), var(--shadow-glow); }
.cw-fab i[data-lucide] { width: 16px; height: 16px; }
.demo-btn { position: fixed; left: 260px; bottom: 20px; background: var(--bg-3); color: var(--fg-1); border: 1px solid var(--border-2); padding: 10px 14px; border-radius: 999px; font-family: var(--font-body); font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; opacity: 0.9; }
.demo-btn i[data-lucide] { width: 13px; height: 13px; }
.demo-btn:hover { opacity: 1; background: var(--bg-4); }
.claude-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-3); border: 1px solid rgba(34,197,94,0.35); color: var(--fg-0); padding: 10px 16px; border-radius: 999px; font-size: 13px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg), var(--shadow-glow); animation: toastIn var(--dur-slow) var(--ease-out); z-index: 50; white-space: nowrap; }
.claude-toast i[data-lucide] { width: 14px; height: 14px; color: var(--green-400); }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ===== Modal ===== */
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(4px); animation: fadeBg var(--dur-base) ease; }
.modal-box { background: var(--bg-2); border: 1px solid var(--border-1); border-radius: 16px; width: 480px; max-width: calc(100vw - 40px); box-shadow: var(--shadow-lg); animation: fadeUp var(--dur-slow) var(--ease-out); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border-1); }
.modal-head h3 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--fg-0); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-body label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.modal-body input, .modal-body select { background: var(--bg-1); border: 1px solid var(--border-2); border-radius: 8px; padding: 9px 12px; font-family: inherit; font-size: 14px; color: var(--fg-0); }
.modal-body input:focus, .modal-body select:focus { outline: none; border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.modal-body .bh-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ===== Floating panels (Filtro / Time) ===== */
.panel-overlay { position: fixed; inset: 0; z-index: 50; }
.filter-panel { position: fixed; top: 68px; right: 196px; background: var(--bg-2); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; width: 240px; box-shadow: var(--shadow-lg); z-index: 51; animation: fadeUp var(--dur-slow) var(--ease-out); }
.filter-panel h4, .team-panel h4 { margin: 0 0 12px; font-size: 11px; font-weight: 700; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; }
.filter-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.filter-row label { font-size: 12px; font-weight: 500; color: var(--fg-3); }
.filter-row select { background: var(--bg-1); border: 1px solid var(--border-2); border-radius: 6px; padding: 7px 10px; font-family: inherit; font-size: 13px; color: var(--fg-0); }
.filter-row select:focus { outline: none; border-color: var(--green-400); }
.filter-clear { font-size: 12px; color: var(--fg-3); background: transparent; border: none; cursor: pointer; padding: 2px 0; font-family: inherit; width: 100%; text-align: left; margin-top: 4px; }
.filter-clear:hover { color: var(--danger); }
.team-panel { position: fixed; top: 68px; right: 148px; background: var(--bg-2); border: 1px solid var(--border-1); border-radius: 12px; padding: 16px; width: 220px; box-shadow: var(--shadow-lg); z-index: 51; animation: fadeUp var(--dur-slow) var(--ease-out); }
.team-member { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-1); }
.team-member:last-child { border-bottom: none; }
.team-member .av { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; color: var(--green-900); }
.team-member-name { font-size: 13.5px; font-weight: 600; color: var(--fg-0); }
.team-member-role { font-size: 11px; color: var(--fg-3); }

/* ===== Settings modal ===== */
.settings-box { background: var(--bg-2); border: 1px solid var(--border-1); border-radius: 16px; width: 520px; max-width: calc(100vw - 40px); box-shadow: var(--shadow-lg); animation: fadeUp var(--dur-slow) var(--ease-out); }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border-1); }
.settings-head h3 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--fg-0); }
.settings-body { padding: 8px 20px 20px; display: flex; flex-direction: column; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-1); gap: 16px; }
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 14px; font-weight: 600; color: var(--fg-1); }
.settings-row-desc { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.settings-row-val { font-size: 12.5px; color: var(--green-300); font-family: var(--font-mono); text-align: right; max-width: 200px; word-break: break-all; flex-shrink: 0; }

/* ===== Filter active state ===== */
.bh-btn.ghost.filter-on { background: var(--bg-3); color: var(--green-300); border-color: rgba(34,197,94,0.3); }

/* ===== Card actor badges + pending ===== */
.ok-actor { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; margin-left: auto; flex-shrink: 0; }
.ok-actor i[data-lucide] { width: 12px; height: 12px; }
.ok-actor.ai { background: rgba(34,197,94,0.15); color: var(--green-300); }
.ok-actor.human { background: rgba(148,163,184,0.15); color: var(--fg-2); }
.ok-pending { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; color: var(--warn, #f59e0b); background: rgba(245,158,11,0.12); flex-shrink: 0; }
.ok-pending i[data-lucide] { width: 12px; height: 12px; }
.okr-card.has-pending { box-shadow: inset 3px 0 0 var(--warn, #f59e0b); }

/* ===== Card details modal ===== */
.modal-box.card-detail { max-width: 560px; width: 100%; }
.cd-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.cd-body { gap: 14px; }
.cd-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cd-owner { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: var(--bg-3); font-size: 12px; color: var(--fg-2); }
.cd-owner i[data-lucide] { width: 12px; height: 12px; }
.cd-section { display: flex; flex-direction: column; gap: 6px; }
.cd-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.cd-label i[data-lucide] { width: 13px; height: 13px; }
.cd-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fg-1); }
.cd-textarea { width: 100%; padding: 10px; background: var(--bg-3); border: 1px solid var(--border-1); border-radius: 8px; color: var(--fg-1); font: inherit; font-size: 13px; resize: vertical; min-height: 64px; }
.cd-textarea:focus { outline: none; border-color: var(--warn, #f59e0b); }
.cd-hint { font-size: 11.5px; color: var(--fg-3); }
.cd-empty { font-size: 12.5px; color: var(--fg-3); }
.cd-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.cd-event { display: flex; gap: 10px; align-items: flex-start; }
.cd-actor { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; }
.cd-actor.ai { background: rgba(34,197,94,0.15); color: var(--green-300); }
.cd-actor.human { background: rgba(148,163,184,0.15); color: var(--fg-2); }
.cd-actor i[data-lucide] { width: 14px; height: 14px; }
.cd-event-title { font-size: 13px; color: var(--fg-1); }
.cd-event-title code { background: var(--bg-3); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.cd-event-time { font-size: 11px; color: var(--fg-3); margin-top: 2px; }
