textarea { width:100%; padding:11px 12px; border:1px solid #dde1ea; border-radius:9px; color:var(--ink); background:#fff; font:inherit; font-size:14px; line-height:1.5; resize:vertical; }
button:disabled { cursor:wait; opacity:.55; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline:3px solid #bbb5ff; outline-offset:2px; }
.topbar-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.topbar-actions button { min-height:42px; }
.workspace-health { margin:0 0 15px; color:#6b7284; font-size:12px; line-height:1.5; }
.task-title-button { padding:0; border:0; background:transparent; color:inherit; text-align:left; font:inherit; line-height:1.5; font-weight:650; overflow-wrap:anywhere; }
.task-title-button:hover { color:var(--accent); }
.task-edit { min-width:36px; min-height:40px; display:grid; place-items:center; flex-shrink:0; }
.kanban-card { cursor:default; gap:10px; padding:14px; }
.kanban-title { font-size:14px; line-height:1.45; }
.kanban-project,.kanban-due { font-size:11px; }
.kanban-priority { font-size:10px; }
.kanban-open { width:34px; height:34px; }
.card-assignee { font-size:11px; color:#5f6578; }
.card-drag-handle { display:grid; place-items:center; min-width:32px; height:32px; padding:0; border:0; border-radius:6px; color:#8b91a1; background:transparent; cursor:grab; touch-action:none; font-size:21px; }
.card-drag-handle:hover { background:#f2f1fb; }
.card-status-label select { width:100%; min-height:38px; padding:7px 9px; font-size:12px; border:1px solid #e7e9f0; border-radius:7px; background:#fafaff; color:#61677c; }
.card-linked { color:#756db3; font-size:11px; }
.kanban-column-head h3 { font-size:12px; }
.kanban-dropzone { height:auto; min-height:190px; }
.kanban-lanes { display:none; }
.touch-drag-ghost { position:fixed; z-index:10000; pointer-events:none; opacity:.85; box-shadow:0 12px 30px #24284033; transform:rotate(2deg); max-width:260px; }
.entry-dialog { max-height:calc(100dvh - 32px); overflow:auto; width:min(600px,calc(100vw - 32px)); }
.entry-dialog label { display:grid; gap:6px; margin:12px 0; font-size:13px; color:#525b6e; }
.entry-dialog input,.entry-dialog select { min-height:44px; font-size:14px; }
.entry-dialog .dialog-actions { position:sticky; bottom:-20px; padding:15px 0 4px; background:#fff; flex-wrap:wrap; gap:8px; }
.dialog-actions button { min-height:44px; }
.editor-message { color:#71599a; background:#f6f3ff; border-radius:8px; padding:10px 12px; font-size:13px; line-height:1.5; white-space:pre-wrap; }
.editor-message:empty { display:none; }
.capture-tools { display:flex; align-items:center; gap:12px; }
.capture-tools button { min-height:44px; flex-shrink:0; }
.capture-tools .local-note { line-height:1.4; }
.followup-row { padding:12px 0; border-bottom:1px solid var(--line); }
.followup-row:last-child { border:0; }
.followup-row > button { font-size:13px; }
.followup-row p { color:#727b8c; margin:6px 0 8px; font-size:12px; line-height:1.5; }
.followup-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.followup-actions button { min-height:40px; }
.followup-actions .text-button { font-size:12px; padding:5px 0; }
.settings-group { border-top:1px solid var(--line); padding:12px 0; }
.settings-group summary { cursor:pointer; color:#41495c; font-size:14px; font-weight:650; padding:5px 0; }
.settings-group summary span { display:block; padding-left:16px; color:#8a91a0; font-size:11px; font-weight:400; margin-top:4px; }
.settings-group form { padding:5px 2px 8px; }
.settings-group label { display:grid; gap:6px; font-size:12px; margin:12px 0; color:#697285; }
.settings-group input,.settings-group select { width:100%; min-height:42px; padding:8px 10px; border:1px solid #dde1e9; border-radius:8px; color:var(--ink); background:#fff; }
.settings-group .clear-setting { display:flex; align-items:center; gap:8px; font-size:11px; }
.clear-setting input { min-height:20px; width:18px; }
.form-status { font-size:12px; color:#5a548f; }
.activity-row { display:grid; grid-template-columns:auto 1fr; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); font-size:11px; }
.activity-row span { color:#9097a5; }
.activity-row strong { font-weight:500; }
.assistant-dialog { width:min(720px,calc(100vw - 32px)); }
.assistant-shortcuts { display:flex; flex-wrap:wrap; gap:7px; padding:8px 0 16px; }
.assistant-shortcuts button { min-height:40px; font-size:12px; }
.assistant-answer { white-space:pre-wrap; font-size:14px; line-height:1.7; }
.assistant-result { margin:0 0 15px; }
.advice-card { display:grid; gap:8px; padding:15px; margin:12px 0; border:1px solid var(--line); border-radius:10px; background:#fafaff; }
.advice-card h3,.advice-card p { margin:0; font-size:13px; line-height:1.6; }
.advice-card .task-title-button { font-size:15px; }
.advice-card textarea { min-height:110px; background:#fff; }
.crm-search { display:flex; gap:8px; }
.crm-search input { flex:1; min-width:0; }
.lead-result { display:grid; gap:4px; width:100%; padding:12px; text-align:left; border:1px solid var(--line); border-radius:8px; background:#fff; margin:8px 0; }
.lead-result:hover { background:#f3f1ff; }
.lead-result span { color:#7a8191; font-size:12px; }
.lead-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.lead-fact span { display:block; font-size:11px; color:#7c8494; }
.lead-fact strong { font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.crm-note { white-space:pre-wrap; border-top:1px solid var(--line); padding-top:10px; }
.workspace-toast { position:fixed; z-index:11000; bottom:25px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 28px); padding:13px 18px; background:#292d40; color:#fff; border-radius:10px; box-shadow:0 6px 25px #20253622; font-size:13px; line-height:1.5; }
.zen-mode[data-active-tab="today"] .metrics,.zen-mode[data-active-tab="today"] .right-column,.zen-mode[data-active-tab="today"] .waiting-panel,.zen-mode[data-active-tab="today"] .followup-panel { display:none !important; }
.zen-mode[data-active-tab="today"] .content-grid { grid-template-columns:minmax(0,760px); justify-content:center; }
.zen-mode[data-active-tab="today"] .focus-panel { padding:28px; }
@media(min-width:601px) and (max-width:1100px) { .kanban-board { grid-auto-columns: minmax(230px,calc((100vw - 90px)/2)); } }
@media(max-width:900px) {
  .workspace-toast { bottom:calc(80px + env(safe-area-inset-bottom)); }
  .followup-panel { order:3; }
  .topbar-actions { flex-wrap:nowrap; }
  .config-panel { order:2; }
}
@media(max-width:600px) {
  .topbar { align-items:flex-start; }
  .topbar-actions { gap:6px; }
  .topbar-actions button { padding:8px 10px; font-size:12px; }
  .workspace-health { font-size:11px; margin-bottom:12px; }
  .kanban-board { grid-auto-columns:minmax(0,1fr); overflow:visible; }
  .kanban-column:not(.lane-active) { display:none; }
  .kanban-lanes { display:flex; gap:6px; overflow-x:auto; padding:3px 0 14px; }
  .kanban-lanes button { flex:none; min-height:40px; padding:8px 10px; font-size:12px; border:1px solid var(--line); border-radius:8px; color:#747c8f; background:#fff; }
  .kanban-lanes button.active { color:var(--accent); border-color:#d8d4ff; background:var(--accent-soft); }
  .kanban-lanes span { margin-left:4px; opacity:.75; }
  .entry-dialog,.assistant-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 20px); padding:18px; border-radius:14px; }
  .entry-dialog .dialog-actions { bottom:-18px; }
  .capture-tools { align-items:flex-start; }
  .capture-tools .local-note { margin:3px 0; }
  .task-row { gap:8px; }
  .task-meta { font-size:11px; }
  .task-title { font-size:13px; }
  .lead-facts { grid-template-columns:1fr; }
}
