@media (max-width: 1080px) {
  .dashboard-grid, .dashboard-lower { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .task-grid { grid-template-columns: 34px minmax(200px,1fr) 110px 95px 125px; }
  .task-grid > :nth-child(4) { display: none; }
  .lead-grid { grid-template-columns: minmax(190px,1fr) 120px 90px 115px 125px; }
  .lead-grid > :nth-child(2) { display: none; }
  .finance-metrics { grid-template-columns: repeat(2, 1fr); }
  .finance-columns { grid-template-columns: 1fr; }
  .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .niche-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid { grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .agent-layout { grid-template-columns: 1fr; }
  .agent-principles ol { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .founding-grid, .aeo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-tracks { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .provider-form { grid-template-columns: 1fr; }
  .provider-form .field--wide, .provider-form > .button { grid-column: auto; }
  .provider-activate { grid-column: auto; }
  :root { --sidebar: min(290px, 84vw); }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 30; left: 0; transform: translateX(-105%); width: var(--sidebar); transition: transform .22s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .menu-button { display: grid !important; flex: none; }
  .topbar { min-height: 78px; padding: 14px 18px; }
  .assistant-quip { width: calc(100% - 36px); margin-top: 12px; }
  .content { padding: 26px 18px 60px; }
  .topbar__title p { display: none; }
  .topbar__actions .search-trigger span:nth-child(2), .topbar__actions kbd { display: none; }
  .search-trigger { width: 42px; justify-content: center; padding: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-select { width: 100%; margin-left: 0; }
  .record-list { overflow-x: auto; }
  .record-head, .record-row { width: 750px; }
  .record-list--leads .record-head, .record-list--leads .record-row { width: 810px; }
  .money-hero { align-items: stretch; flex-direction: column; }
  .money-hero__number { min-width: 0; text-align: left; }
  .goals { grid-template-columns: 1fr; }
  .goal-form { grid-template-columns: 1fr 1fr; }
  .goal-form .button { grid-column: 1 / -1; }
  .customer-grid { grid-template-columns: 1fr; }
  .service-grid, .offer-grid { grid-template-columns: 1fr; }
  .proof-card { grid-template-columns: 150px minmax(0,1fr); }
  .proof-visual { min-height: 350px; }
  .niche-grid { grid-template-columns: 1fr; }
  .offer-document > header { flex-direction: column; }
  .offer-document__price { text-align: left; }
  .experiment-grid, .product-grid { grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .agent-provider, .agent-columns { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .assistant-quip { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .assistant-quip__badge { grid-column: 1 / -1; }
  .assistant-quip strong { font-size: 10px; white-space: normal; line-height: 1.4; }
  .record-actions .icon-button[title="Bearbeiten"] { width: 31px; padding: 0; }
  .record-actions .icon-button[title="Bearbeiten"]::after { display: none; }
  .provider-entry { align-items: flex-start; flex-direction: column; }
  .provider-entry > div:last-child { justify-content: flex-start; }
  .topbar__actions .button { width: 42px; padding: 0; }
  .topbar__actions .button span:last-child { display: none; }
  .topbar__actions { gap: 6px; }
  .welcome { align-items: start; flex-direction: column; }
  .date-chip { display: none; }
  .focus-card { min-height: 285px; }
  .focus-card h3 { margin-top: 44px; }
  .focus-card__actions { align-items: stretch; flex-direction: column; }
  .focus-card__actions .button { width: 100%; }
  .metrics { gap: 8px; }
  .metric-card { min-height: 128px; padding: 15px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading__actions { width: 100%; }
  .section-heading__actions .button { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .record-list, .record-list--leads { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .record-head { display: none; }
  .record-row, .record-list--leads .record-row { width: auto; min-height: 0; margin-bottom: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(20,32,25,.82), rgba(10,18,14,.78)); box-shadow: var(--shadow); }
  .record-row:hover { background: linear-gradient(145deg, rgba(20,32,25,.82), rgba(10,18,14,.78)); }
  .task-grid { grid-template-columns: 29px minmax(0, 1fr) auto; }
  .task-grid > :nth-child(1) { grid-row: 1 / 4; align-self: start; }
  .task-grid > :nth-child(2) { grid-column: 2 / 4; }
  .task-grid > :nth-child(3) { grid-column: 2; }
  .task-grid > :nth-child(4) { display: block; grid-column: 2; }
  .task-grid > :nth-child(5) { grid-column: 2; }
  .task-grid > :nth-child(6) { grid-column: 3; grid-row: 3 / 5; align-self: end; }
  .lead-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .lead-grid > :nth-child(1) { grid-column: 1 / 3; }
  .lead-grid > :nth-child(2) { display: block; grid-column: 1; }
  .lead-grid > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .lead-grid > :nth-child(4) { grid-column: 1; }
  .lead-grid > :nth-child(5) { grid-column: 1 / 3; }
  .lead-grid > :nth-child(6) { grid-column: 2; grid-row: 3; }
  .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .finance-metric { padding: 14px; }
  .finance-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 14px; }
  .finance-row > :nth-child(1) { grid-column: 1 / 3; }
  .finance-row > :nth-child(2) { grid-column: 1; }
  .finance-row > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .finance-row > :nth-child(4) { grid-column: 2; grid-row: 3; }
  .goal-form { grid-template-columns: 1fr; }
  .goal-form .button { grid-column: auto; }
  .goal-autosave { min-height: 36px; }
  .kanban { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .kanban-column { scroll-snap-align: start; }
  .service-card__facts, .offer-card__meta { grid-template-columns: repeat(2, 1fr); }
  .package-grid { grid-template-columns: 1fr; }
  .package-option { grid-template-columns: 1fr auto; align-items: center; min-height: 44px; text-align: left; }
  .offer-card > header, .offer-card > footer { align-items: stretch; flex-direction: column; }
  .offer-price { text-align: left; }
  .proof-card { grid-template-columns: 1fr; }
  .proof-visual { min-height: 200px; max-height: 240px; }
  .experiment-measure, .experiment-outcome { grid-template-columns: 1fr; }
  .product-money, .product-sections { grid-template-columns: 1fr; }
  .decision-row { grid-template-columns: 48px minmax(0,1fr); gap: 10px; }
  .decision-timeline::before { left: 23px; }
  .decision-date { width: 46px; height: 55px; border-radius: 13px; }
  .decision-date strong { font-size: 15px; }
  .decision-learnings { grid-template-columns: 1fr; }
  .agent-console, .agent-principles, .agent-run { padding: 17px; }
  .agent-console > header, .agent-run > header { align-items: stretch; flex-direction: column; }
  .agent-shield { align-self: flex-start; }
  .agent-principles ol { grid-template-columns: 1fr; }
  .context-counts { grid-template-columns: repeat(2, 1fr); }
  .agent-actions li { grid-template-columns: 1fr; }
  .agent-actions .button { width: 100%; }
  .agent-run > footer { align-items: stretch; flex-direction: column; margin: 18px -17px -17px; padding: 14px 17px; }
  .agent-run > footer .button { width: 100%; }
  .modal__body { padding: 18px; }
  .modal__header, .modal__footer { padding: 17px 18px; }
  .modal__footer { flex-wrap: wrap; }
  .autosave-status { width: 100%; margin: 0 0 5px; }
  .toast-region { right: 12px; bottom: 12px; left: 12px; }
  .toast { max-width: none; }
}
