/* ==========================================================================
   SSA BOSS — Design tokens
   Benchmark: Zoho Books / Zoho CRM / Pipedrive — clean whitespace,
   restrained palette, subtle elevation, confident typography.
   Signature idea kept from the original pass: this is a system of
   record for a sourcing/logistics business, so Task IDs read like
   manifest numbers (monospace, bracketed) against an otherwise plain,
   fast, businesslike interface. One accent color, used sparingly.
   ========================================================================== */

:root {
  --bg: #F4F6F5;
  --surface: #FFFFFF;
  --surface-sunken: #FAFBFA;
  --ink: #171B1F;
  --ink-muted: #667079;
  --ink-faint: #98A1A8;
  --border: #E2E6E5;
  --border-strong: #CBD2D1;

  --accent: #1F5F5B;
  --accent-ink: #123B38;
  --accent-soft: #E4EFEE;
  --accent-soft-strong: #CFE3E1;

  --status-open: #667079;
  --status-open-bg: #EEF0F0;
  --status-in_progress: #B8791F;
  --status-in_progress-bg: #FBF0DD;
  --status-completed: #1E7A4F;
  --status-completed-bg: #E1F3E9;
  --status-cancelled: #8A8F96;
  --status-cancelled-bg: #EDEEEF;
  --danger: #C23D3D;
  --danger-bg: #FBEAEA;

  --font-ui: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Spacing scale — used consistently instead of ad-hoc px values */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 56px;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-pill: 999px;

  /* Layered elevation, Zoho/Pipedrive-style: soft ambient + tight contact shadow */
  --shadow-xs: 0 1px 2px rgba(23, 27, 31, 0.05);
  --shadow-sm: 0 1px 2px rgba(23,27,31,0.04), 0 4px 10px rgba(23,27,31,0.05);
  --shadow-md: 0 2px 6px rgba(23,27,31,0.05), 0 12px 28px rgba(23,27,31,0.10);
  --shadow-focus: 0 0 0 3px var(--accent-soft-strong);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2 { font-family: var(--font-ui); font-weight: 600; margin: 0 0 var(--sp-3); color: var(--ink); }
h1 { font-size: 21px; letter-spacing: -0.015em; }
h2 { font-size: 14.5px; letter-spacing: -0.005em; }
.muted { color: var(--ink-muted); }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 9px 16px; font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: background 0.13s ease, border-color 0.13s ease, box-shadow 0.13s ease, transform 0.06s ease;
}
.btn .icon { width: 16px; height: 16px; }
.btn-small { padding: 6px 12px; font-size: 12.5px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible { box-shadow: var(--shadow-focus); outline: none; }

/* App shell ------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }
.app-loading { display: flex; align-items: center; justify-content: center; height: 100vh; color: var(--ink-muted); }

.sidebar {
  width: 232px; flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: var(--sp-5) var(--sp-3);
}
.sidebar-brand { display: flex; align-items: baseline; gap: 7px; padding: var(--sp-1) var(--sp-2) var(--sp-6); }
.brand-mark {
  font-family: var(--font-mono); font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 3px 6px; border-radius: 5px; font-size: 12px; letter-spacing: 0.02em;
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.01em; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--radius-md);
  color: var(--ink-muted); font-weight: 500; font-size: 13.5px;
  transition: background 0.12s ease, color 0.12s ease;
}
.sidebar-icon { color: var(--ink-faint); transition: color 0.12s ease; }
.sidebar-label { flex: 1; }
.sidebar-link:hover { background: var(--surface-sunken); color: var(--ink); }
.sidebar-link.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.sidebar-link.active .sidebar-icon { color: var(--accent); }
.sidebar-external-mark { width: 13px; height: 13px; color: var(--ink-faint); }

.sidebar-footer { border-top: 1px solid var(--border); padding-top: var(--sp-3); margin-top: var(--sp-3); }
.sidebar-user { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-1) var(--sp-3); }
.sidebar-user-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-user-avatar .icon { width: 17px; height: 17px; }
.sidebar-user-name { font-weight: 600; font-size: 13px; line-height: 1.3; }
.sidebar-user-role { color: var(--ink-muted); font-size: 11.5px; }
.sidebar-signout {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 8px 11px; color: var(--ink-muted); cursor: pointer; font-size: 13px; font-weight: 500;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.sidebar-signout .icon { width: 15px; height: 15px; }
.sidebar-signout:hover { border-color: var(--danger); color: var(--danger); }

.main-outlet { flex: 1; padding: var(--sp-7) var(--sp-8); max-width: 1220px; }

.view-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.view-note { margin-top: calc(-1 * var(--sp-3)); margin-bottom: var(--sp-4); font-size: 13px; }

.state-block { padding: var(--sp-9) var(--sp-4); text-align: center; }
.state-title { font-weight: 600; margin-bottom: 4px; }
.state-block--empty, .empty-state { color: var(--ink-muted); }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state h2 { color: var(--ink); }
.spinner {
  width: 20px; height: 20px; margin: 0 auto 10px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Login ------------------------------------------------------------- */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(31,95,91,0.06), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(31,95,91,0.05), transparent 45%),
    var(--bg);
}
.login-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-7); text-align: center; box-shadow: var(--shadow-md); max-width: 380px; width: 100%;
}
.login-brand { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: var(--sp-2); }
.brand-mark--lg { font-size: 16px; padding: 4px 9px; }
.brand-name--lg { font-size: 22px; }
.login-tagline { color: var(--ink-muted); margin-bottom: var(--sp-6); font-size: 13px; }
.login-signin { display: flex; justify-content: center; margin-bottom: var(--sp-3); }
.login-signin-placeholder { font-size: 12px; color: var(--ink-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: var(--sp-3); margin-bottom: var(--sp-2); }
.login-hint { color: var(--ink-faint); font-size: 12px; }
.mock-picker-wrap { border-top: 1px solid var(--border); margin-top: var(--sp-5); padding-top: var(--sp-5); }
.mock-picker-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: var(--sp-3); }
.mock-picker-buttons { display: flex; flex-direction: column; gap: 8px; }

/* Dashboard tiles ------------------------------------------------------------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-6); }
.mis-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-4); text-align: left; cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.13s ease, box-shadow 0.13s ease, transform 0.1s ease;
}
.mis-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.mis-tile-value { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.mis-tile-label { color: var(--ink-muted); font-size: 12.5px; font-weight: 500; }
.mis-tile--warn .mis-tile-value { color: var(--danger); }
.mis-tile--critical .mis-tile-value { color: var(--status-in_progress); }

.breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.breakdown-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-xs); }
.breakdown-list { list-style: none; margin: 0; padding: 0; }
.breakdown-list li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13.5px; transition: color 0.1s ease; }
.breakdown-list li:last-child { border-bottom: none; }
.breakdown-list li:hover { color: var(--accent-ink); }
.breakdown-count { font-family: var(--font-mono); color: var(--ink-muted); font-weight: 600; }
.mis-section { margin-top: var(--sp-2); }

/* Kanban ------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }
.filter-bar select { width: auto; min-width: 130px; padding: 7px 10px; font-size: 13px; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: start; }
.kanban-column { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-3); min-height: 200px; }
.kanban-column-header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; padding: 4px 6px 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.kanban-count { font-family: var(--font-mono); color: var(--ink-faint); font-weight: 600; }
.kanban-column-body { display: flex; flex-direction: column; gap: var(--sp-2); }
.kanban-empty, .kanban-loading { color: var(--ink-faint); font-size: 13px; padding: var(--sp-3) 6px; }

.task-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 14px; color: var(--ink);
  box-shadow: var(--shadow-xs); transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}
.task-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); text-decoration: none; }
.task-card--overdue { border-left: 3px solid var(--danger); }
.task-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.task-card-id { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.task-card-title { font-weight: 600; font-size: 13.5px; margin-bottom: 5px; line-height: 1.35; }
.task-card-assignee { font-size: 12px; color: var(--ink-muted); margin-bottom: 9px; }
.task-card-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.task-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 2.5px 7px; border-radius: var(--radius-sm); background: var(--status-open-bg); color: var(--status-open); }
.priority-high { background: var(--danger-bg); color: var(--danger); }
.priority-medium { background: var(--status-in_progress-bg); color: var(--status-in_progress); }
.tag-critical { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--danger); background: var(--danger-bg); padding: 2.5px 7px; border-radius: var(--radius-sm); }
.task-tat { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.task-due { font-size: 11.5px; color: var(--ink-muted); font-weight: 500; }
.task-due--overdue { color: var(--danger); font-weight: 700; }

/* Task Workspace ------------------------------------------------------------- */
.workspace-loading { padding: 60px; text-align: center; color: var(--ink-muted); }
.workspace-header { margin-bottom: var(--sp-5); }
.workspace-header-top { display: flex; align-items: center; gap: 8px; margin-bottom: var(--sp-2); flex-wrap: wrap; }
.workspace-id { font-family: var(--font-mono); color: var(--ink-muted); font-size: 12.5px; }
.workspace-id::before { content: '['; } .workspace-id::after { content: ']'; }
.workspace-title { margin-bottom: var(--sp-4); font-size: 22px; }

.badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 3.5px 9px; border-radius: var(--radius-pill); }
.badge-status--OPEN { background: var(--status-open-bg); color: var(--status-open); }
.badge-status--IN_PROGRESS { background: var(--status-in_progress-bg); color: var(--status-in_progress); }
.badge-status--COMPLETED { background: var(--status-completed-bg); color: var(--status-completed); }
.badge-status--CANCELLED { background: var(--status-cancelled-bg); color: var(--status-cancelled); }
.badge-priority--HIGH { background: var(--danger-bg); color: var(--danger); }
.badge-priority--MEDIUM { background: var(--status-in_progress-bg); color: var(--status-in_progress); }
.badge-priority--LOW { background: var(--status-open-bg); color: var(--ink-muted); }
.badge-type { background: var(--accent-soft); color: var(--accent-ink); }

.workspace-facts { display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-7); margin: 0; }
.workspace-facts div { display: flex; flex-direction: column; gap: 3px; }
.workspace-facts dt { font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin: 0; }
.workspace-facts dd { margin: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

.workspace-grid { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-5); align-items: start; }
.workspace-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4); box-shadow: var(--shadow-xs);
}
.workspace-section--muted { background: transparent; border-style: dashed; box-shadow: none; }
.workspace-section h2 { display: flex; align-items: baseline; justify-content: space-between; }

.stage-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.stage-current { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted); background: var(--surface-sunken); padding: 4px 10px; border-radius: var(--radius-pill); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.checklist li:last-child { border-bottom: none; }
.checklist-item--done { color: var(--ink-muted); text-decoration: line-through; }
.tag-required { font-size: 9.5px; font-weight: 700; text-transform: uppercase; background: var(--danger-bg); color: var(--danger); padding: 2px 6px; border-radius: var(--radius-sm); margin-left: auto; }
.section-progress { font-family: var(--font-mono); font-weight: 500; color: var(--ink-faint); font-size: 12.5px; }

.attachment-list { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.attachment-list li { padding: 6px 0; font-size: 13.5px; }

.comment-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.comment { border-bottom: 1px solid var(--border); padding-bottom: var(--sp-3); }
.comment-meta { font-size: 12px; margin-bottom: 4px; }
.comment-text { font-size: 13.5px; line-height: 1.5; }
.comment-form { display: flex; gap: 8px; align-items: flex-start; }
.comment-form textarea { flex: 1; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 9px 11px; resize: vertical; }

.status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.delegate-picker { display: flex; flex-direction: column; gap: 8px; }
.delegate-status { font-size: 12px; color: var(--ink-muted); }
.watcher-list { list-style: none; margin: 0 0 var(--sp-3); padding: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.history-list li { font-size: 12px; display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--border); }
.history-event { font-weight: 700; text-transform: capitalize; color: var(--ink); }

select, input[type="text"], input[type="datetime-local"], textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 9px 11px; background: var(--surface); color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-muted); margin-bottom: var(--sp-4); }

/* Modal ------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(23, 27, 31, 0.44); backdrop-filter: blur(1px);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  animation: fadeIn 0.13s ease;
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg); width: 440px; max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-md); animation: modalIn 0.16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.modal-close { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-faint); padding: 2px; border-radius: 6px; }
.modal-close:hover { background: var(--surface-sunken); color: var(--ink); }
.modal-body { padding: var(--sp-5); }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--sp-1); }
.modal-error { color: var(--danger); font-size: 13px; margin: calc(-1 * var(--sp-1)) 0 var(--sp-3); }

/* Module placeholder shell (Recurring/IMS/FMS-real-mode) ------------------------------------------------------------- */
.module-shell { max-width: 640px; }
.module-shell-header { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.module-blurb { color: var(--ink-muted); margin-bottom: var(--sp-5); font-size: 14px; }
.module-planned { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4); box-shadow: var(--shadow-xs); }
.module-planned-list { margin: 0; padding-left: 18px; }
.module-planned-list li { margin-bottom: 7px; font-size: 13.5px; }
.module-note { font-size: 12px; }

/* FMS pipeline ------------------------------------------------------------- */
.pipeline-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--sp-5); }
.pipeline-stages { display: flex; align-items: flex-start; gap: 4px; overflow-x: auto; padding-bottom: var(--sp-3); }
.pipeline-stage { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-3); width: 220px; flex-shrink: 0; }
.pipeline-stage-header { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; margin-bottom: var(--sp-3); color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.pipeline-stage-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.pipeline-arrow { color: var(--border-strong); font-size: 20px; padding-top: 40px; flex-shrink: 0; }

/* Mobile top bar + collapsible sidebar drawer ------------------------------------------------------------- */
.topbar { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 900px) {
  .topbar {
    display: flex; align-items: center; gap: var(--sp-3);
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--sp-3) var(--sp-4); position: sticky; top: 0; z-index: 30;
  }
  .topbar-hamburger { background: none; border: none; padding: 4px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
  .topbar-hamburger span { width: 20px; height: 2px; background: var(--ink); display: block; border-radius: 1px; }
  .topbar-brand { font-weight: 700; font-family: var(--font-mono); font-size: 14px; }

  .app-shell { flex-direction: row; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
    width: 240px; transform: translateX(-100%);
    transition: transform 0.18s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-md); }

  .sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(23,27,31,0.4); z-index: 35;
  }
  body.sidebar-open .sidebar-overlay { display: block; }

  .main-outlet { padding: var(--sp-4); width: 100%; }
}

@media (max-width: 900px) {
  .kanban { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}

:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
