/* Compact operations surface. Brand and task lifecycle stay unchanged. */
body[data-app="team"] { padding:12px; }
.app { max-width:1600px; min-height:calc(100dvh - 24px); border-radius:20px; }
#workspace { padding:20px 22px 14px; }
.topbar { min-height:40px; margin-bottom:14px; gap:16px; align-items:center; }
.identity-line { margin-bottom:3px; }
.greeting h1 { font-size:24px; line-height:1.25; }
.toolbar { gap:8px; flex-wrap:nowrap; }
.toolbar .primary,.toolbar .secondary { min-height:40px; padding:9px 13px; font-size:12px; white-space:nowrap; }
.toolbar .icon-button { width:40px; height:40px; display:flex; }
.task-controls { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.task-controls .search { width:320px!important; flex:0 1 420px; min-width:220px; height:40px; background:#fff; padding:10px 12px; gap:8px; }
.task-controls .search input { width:100%; min-width:0; font-size:13px; }
.stats { padding:0; margin:0; border:0; gap:7px; min-height:0; align-items:center; }
.stat-compact { min-height:36px; padding:7px 10px; font-size:12px; gap:7px; }
.stat-compact strong { font-size:14px; font-variant-numeric:tabular-nums; }
.clear-filter { font-size:12px; color:#555b50; padding:8px; text-decoration:underline; text-underline-offset:3px; }
.task-work-grid,.drawer-open .task-work-grid { grid-template-columns:minmax(0,1fr); gap:0; }
.board-tools { gap:12px; margin-bottom:12px; justify-content:flex-start; min-height:34px; }
.department-picker select { min-height:36px; padding:6px 30px 6px 10px; border:1px solid #d9ddd2; border-radius:8px; background:#f6f5f2; color:#343c2d; font:inherit; font-size:12px; max-width:170px; }
.task-total { color:#62685c; font-size:12px; font-variant-numeric:tabular-nums; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.stage-tabs { display:none; }
.transfer-targets { display:none; align-items:center; gap:8px; margin-left:auto; font-size:12px; }
.department-drag .transfer-targets { display:flex; }
.transfer-targets .department-target { min-height:36px; padding:7px 12px; border-radius:8px; font-size:12px; }
.board { gap:12px; align-items:start; }
.board-column { min-height:0; padding:10px; border-radius:12px; background:#edeFE8; }
.column-heading { margin-bottom:10px; height:28px; padding:0 2px; }
.column-heading h3 { font-size:13px; }
.column-count { background:#dfe4d7; }
.task-card { min-height:0; padding:13px; margin-bottom:10px; border-radius:12px; }
.task-card:last-child { margin-bottom:0; }
.task-top { margin-bottom:7px; }
.task-card h3 { font-size:14px; line-height:1.4; margin-bottom:6px; font-weight:600; }
.task-description { margin-bottom:8px; line-height:1.5; }
.task-meta { margin:7px 0; font-size:12px; line-height:1.4; }
.task-assignee { margin-top:7px; font-size:12px; }
.task-bottom { margin-top:10px; display:flex; gap:5px; flex-wrap:wrap; }
.task-bottom button { min-height:36px; padding:7px 9px; font-size:12px; }
.task-bottom .card-transfer { background:transparent; color:#536045; }
.drag-handle { width:28px; height:28px; }
.drag-handle:disabled { display:none; }
.empty-column { padding:20px 10px; border:0; color:#646c5e; font-size:12px; }
.rail-shop { display:flex; width:40px; height:40px; align-items:center; justify-content:center; border-radius:12px; color:inherit; }
.rail-shop:hover { background:#ffffff14; }
.rail-shop svg { width:20px; height:20px; }
.quick-actions a { display:flex; align-items:center; gap:10px; background:#fff; padding:12px 13px; border-radius:10px; color:#23291f; font-size:12px; font-weight:600; }
.quick-actions a svg { width:17px; height:17px; }
.workspace-footer { margin-top:14px; padding-top:10px; }
body[data-view="tasks"] .workspace-footer #workspace-hint { display:none; }
body[data-view="tasks"] .workspace-footer { justify-content:flex-end; border:0; }
@media (min-width:781px) and (max-width:1100px) {
 .board { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .drawer-open #workspace { padding-right:412px; }
 .drawer-open .board { display:grid; grid-template-columns:minmax(0,1fr); overflow:visible; }
 .drawer-open .board-column { width:auto; min-width:0; }
}
@media (max-width:780px) {
 body[data-app="team"] { padding:0; }
 .app { min-height:100dvh; border-radius:0; }
 #workspace,.drawer-open #workspace { padding:16px 16px 96px; }
 .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-bottom:12px; }
 .greeting { width:auto; min-width:0; }
 .identity-line { font-size:10px; gap:6px; margin-bottom:3px; }
 .greeting h1 { font-size:20px; }
 .toolbar { width:auto; justify-content:flex-end; gap:4px; }
 .toolbar #header-report { display:none; }
 .toolbar #create-task { font-size:0; width:40px; height:40px; padding:0; border-radius:10px; gap:0; }
 .toolbar #create-task svg { width:20px; height:20px; }
 .toolbar #show-activity { width:40px; height:40px; display:flex; }
 .task-controls { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
 .task-controls .search { width:100%!important; min-width:0; flex-basis:100%; flex-grow:1; height:42px; }
 .stats { gap:6px; margin:0; padding:0; border:0; }
 .stat-compact { font-size:12px; min-height:34px; padding:7px 10px; }
 .board-tools { gap:8px; flex-wrap:wrap; margin-bottom:10px; min-height:0; }
 .department-picker select { min-height:36px; }
 .task-total { margin-left:auto; }
 .stage-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; width:100%; background:#e8ece1; padding:3px; border-radius:10px; }
 .stage-tabs button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:46px; color:#566048; font-size:11px; border-radius:7px; padding:5px 2px; }
 .stage-tabs button strong { font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
 .stage-tabs button[aria-pressed="true"] { background:#fff; color:#23291f; }
 .board,.drawer-open .board { display:block; overflow:visible; padding:0; scroll-snap-type:none; }
 .board-column,.drawer-open .board-column { width:auto; min-width:0; min-height:0; padding:0; background:transparent; }
 .board-column:not(.mobile-stage-selected) { display:none; }
 .column-heading { display:none; }
 .task-card { padding:14px; margin-bottom:10px; width:100%; min-height:0; }
 .task-card h3 { font-size:15px; }
 .task-top { margin-bottom:7px; }
 .drag-handle { display:none; }
 .task-meta,.task-assignee { font-size:12px; }
 .task-bottom button { min-height:40px; }
 .transfer-targets,.department-drag .transfer-targets { display:none; }
 .empty-column { padding:30px 12px; background:#fff; border-radius:12px; }
 .task-drawer { padding:20px 16px; }
 .workspace-footer { margin-top:14px; }
}
@media (prefers-reduced-motion:reduce) { .task-card { transition:none; } }
