:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #6d7683;
  --line: #dde2e8;
  --brand: #1d6f5f;
  --brand-dark: #145448;
  --amber: #d68c18;
  --red: #c94f4f;
  --blue: #3877c7;
  --shadow: 0 14px 38px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 216, 122, 0.65) 0 90px, rgba(255, 216, 122, 0.22) 91px 190px, transparent 260px),
    linear-gradient(180deg, #cfefff 0%, #eaf8ff 42%, #fff5dc 100%);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

button, input, select, textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.linkish {
  background: transparent;
  color: var(--blue);
  padding: 0;
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  background: #111820;
}

.login-panel {
  background: var(--panel);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.login-art {
  position: relative;
  overflow: hidden;
  padding: 56px;
  display: flex;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(rgba(17, 24, 32, 0.1), rgba(17, 24, 32, 0.78)),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.login-art h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.96;
  margin: 0;
  max-width: 760px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

h2, h3 {
  margin: 0;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  outline-color: var(--brand);
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.primary,
.ghost,
.icon-button {
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.link-button {
  width: fit-content;
}

.primary {
  color: #fff;
  background: var(--brand);
}

.primary:hover {
  background: var(--brand-dark);
}

.ghost {
  color: var(--text);
  background: #edf1f4;
}

.ghost.active-filter {
  background: var(--brand);
  color: #fff;
}

.icon-button {
  width: 40px;
  padding: 0;
  background: #eef2f5;
  color: var(--text);
}

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

.sidebar {
  background: #111820;
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  text-align: left;
  color: #c8d1dc;
  background: transparent;
  border-radius: 8px;
  padding: 11px 12px;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.user-box {
  margin-top: auto;
  color: #c8d1dc;
  font-size: 13px;
  display: grid;
  gap: 4px;
}

.content {
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 226, 145, 0.55), transparent 260px),
    linear-gradient(180deg, rgba(211, 241, 255, 0.82), rgba(255, 247, 224, 0.74));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pipeline-topbar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  margin: -6px 0 14px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
}

.pipeline-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pipeline-title h1 {
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pipeline-bars {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 2px;
}

.pipeline-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.pipeline-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.pipeline-summary {
  color: var(--muted);
  white-space: nowrap;
}

.icon-menu {
  width: 42px;
  min-height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.pipeline-menu {
  position: absolute;
  right: 126px;
  top: 48px;
  z-index: 20;
  width: 260px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(42, 55, 70, 0.16);
}

.pipeline-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 16px;
  text-align: left;
}

.pipeline-menu button:hover,
.pipeline-menu button.active {
  background: #eef6f8;
  color: var(--brand);
}

.pipeline-menu-section {
  padding: 14px 16px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.pipeline-quickbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
  white-space: nowrap;
}

.currency {
  font-size: 0.72em;
  vertical-align: 0.08em;
}

.stat.danger strong {
  color: var(--red);
}

.stat.info strong {
  color: var(--blue);
}

.stat.success strong {
  color: var(--brand-dark);
}

.stat.muted strong {
  color: var(--muted);
}

.stat.done strong {
  color: var(--brand);
}

.stat.plan strong {
  color: var(--amber);
}

.dashboard-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat.hero strong {
  font-size: 30px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.4fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-bottom: 18px;
}

.motivation-panel,
.attention-panel {
  display: grid;
  gap: 14px;
}

.motivation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.motivation-grid div,
.attention-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 12px;
}

.motivation-grid span,
.attention-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.motivation-grid strong,
.attention-list strong {
  font-size: 17px;
}

.progress-block {
  display: grid;
  gap: 7px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.progress-track {
  height: 14px;
  border-radius: 999px;
  background: #dce6ec;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #73b59f);
}

.attention-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
}

.attention-list strong {
  color: var(--red);
}

.compact-done {
  min-width: 230px;
}

.done-labels,
.done-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.done-labels {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.done-values strong {
  font-size: 22px;
  margin-top: 4px;
}

.plan-panel {
  margin-top: 16px;
}

.plan-head,
.plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.plan-year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.plans-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.annual-plan {
  max-width: 340px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.plan-summary {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.client-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 0.9fr) minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.client-filters .meta {
  align-self: center;
  white-space: nowrap;
}

.board-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  height: calc(100vh - 250px);
  min-height: 430px;
  padding-bottom: 16px;
  scrollbar-color: var(--brand) #d8e3ea;
  scrollbar-width: auto;
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: rgba(236, 248, 255, 0.9);
  border-bottom: 1px solid rgba(216, 227, 234, 0.8);
}

.board-scroll::-webkit-scrollbar {
  height: 14px;
}

.board-scroll::-webkit-scrollbar-track {
  background: #d8e3ea;
  border-radius: 999px;
}

.board-scroll::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 999px;
}

.board {
  width: max-content;
  display: grid;
  grid-template-columns: repeat(9, 250px);
  gap: 14px;
  align-items: stretch;
  min-height: 100%;
}

.column {
  background: #edf1f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 100%;
  padding: 12px;
  overflow-y: auto;
}

.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #17202a;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 42, 0.08);
}

.column-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stage-number {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #111820;
  color: #fff;
  font-size: 12px;
}

.stage-1 .column-head {
  background: #f2ddd2;
}

.stage-2 .column-head {
  background: #d6edf5;
}

.stage-3 .column-head {
  background: #f4e2bd;
}

.stage-4 .column-head {
  background: #d9ecd2;
}

.stage-5 .column-head {
  background: #eadcf0;
}

.stage-6 .column-head {
  background: #f0d5cf;
}

.stage-7 .column-head {
  background: #cdebdc;
}

.stage-8 .column-head {
  background: #dfd6cf;
}

.stage-9 .column-head {
  background: #dce8f4;
}

.stage-10 .column-head {
  background: #efe4d8;
}

.deal-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(23, 32, 42, 0.06);
  display: grid;
  gap: 9px;
}

.deal-card.no-tasks {
  background: #dff1f6;
  border-color: #8fc2d1;
  box-shadow: inset 0 0 0 1px rgba(56, 119, 199, 0.12), 0 8px 20px rgba(23, 32, 42, 0.06);
}

.task-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(23, 32, 42, 0.12);
}

.task-dot.overdue {
  background: #c94f4f;
}

.task-dot.soon {
  background: #d68c18;
}

.task-dot.work {
  background: #1d6f5f;
}

.task-dot.none {
  background: #aeb7c2;
}

.deal-card h3 {
  font-size: 15px;
  line-height: 1.25;
}

.deal-number {
  width: fit-content;
  border-radius: 8px;
  background: #eef2f5;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.deal-number.big {
  font-size: 13px;
  color: var(--brand-dark);
}

.meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount {
  font-weight: 800;
  color: var(--brand-dark);
}

.mini-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mini-actions button {
  flex: 1;
  background: #eef2f5;
  border-radius: 8px;
  min-height: 34px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.lists-layout {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lists-menu {
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 0;
}

.lists-menu h3 {
  padding: 0 22px 16px;
  text-transform: uppercase;
  font-size: 14px;
}

.lists-menu button {
  min-height: 48px;
  padding: 0 22px;
  text-align: left;
  background: transparent;
  color: var(--text);
  border-top: 1px solid #edf1f4;
}

.lists-menu button.active {
  color: var(--blue);
  font-weight: 800;
  background: #f3f8fb;
}

.lists-menu .add-list-button {
  margin-top: auto;
  color: var(--muted);
}

.lists-content {
  padding: 20px;
  overflow: auto;
}

.empty-list {
  min-height: 220px;
  display: grid;
  align-content: center;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions .primary,
.table-actions .ghost {
  min-height: 34px;
}

.report-wide {
  overflow-x: auto;
  margin-bottom: 16px;
}

.report-head {
  min-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafb;
}

.segmented button {
  min-height: 38px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--brand);
  color: #fff;
}

.analytics-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.analytics-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
}

.analytics-tabs button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.report-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.mini-report-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.mini-report-card span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-report-card strong {
  font-size: 26px;
  line-height: 1.1;
}

.mini-report-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.date-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.date-range label {
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.date-range input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 8px;
}

.report-table {
  min-width: 1180px;
}

.sales-table .total-row td,
.receivables-table .total-row td {
  background: #e8f0e6;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef2f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.badge.open {
  background: #fff3db;
  color: var(--amber);
}

.badge.done {
  background: #dff2ec;
  color: var(--brand-dark);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 32, 0.42);
  display: flex;
  justify-content: end;
  z-index: 10;
}

.drawer {
  width: min(520px, 100vw);
  background: var(--panel);
  height: 100%;
  padding: 22px;
  overflow: auto;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.14);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stage-move-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.positive-close {
  display: grid;
  gap: 12px;
  border: 1px solid #b8ddcf;
  border-radius: 8px;
  background: #eef8f3;
  padding: 14px;
}

.task-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.client-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.client-info div,
.lpr-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 12px;
}

.client-info span,
.lpr-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.lpr-box {
  display: grid;
  gap: 10px;
}

.touch-line {
  border-left: 3px solid var(--blue);
  background: #f8fafb;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
}

.touch-line span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.touch-line p {
  margin: 8px 0 0;
}

.calendar-shell {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: auto;
}

.calendar-grid {
  min-width: 1120px;
  display: grid;
  grid-template-columns: 82px repeat(var(--days), minmax(150px, 1fr));
}

.calendar-grid.day-view {
  min-width: 520px;
}

.calendar-corner,
.calendar-day-head,
.calendar-time,
.calendar-cell {
  border-right: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
}

.calendar-corner,
.calendar-day-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.calendar-day-head {
  justify-content: center;
  font-weight: 800;
}

.calendar-day-head.today,
.calendar-cell.today,
.month-cell.today {
  background: rgba(232, 243, 255, 0.72);
}

.calendar-time {
  min-height: 72px;
  padding: 12px 10px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.calendar-cell {
  min-height: 72px;
  padding: 5px;
}

.task-pill {
  position: relative;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: #e8f3f6;
  padding: 6px 24px 6px 8px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 5px;
}

.task-pill span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.task-pill button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
  padding: 0;
}

.task-pill.overdue {
  border-left-color: var(--red);
  background: #c94f4f;
  color: #fff;
}

.task-pill.overdue span {
  color: rgba(255, 255, 255, 0.82);
}

.task-pill.overdue button {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.task-pill.done {
  border-left-color: var(--brand-dark);
  background: #e5f4ee;
  opacity: 0.75;
}

.month-grid {
  min-width: 980px;
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.month-head,
.month-cell {
  border-right: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
}

.month-head {
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  font-weight: 800;
  padding: 12px;
  text-align: center;
}

.month-cell {
  min-height: 128px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.month-cell.muted-month {
  opacity: 0.48;
}

.month-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.invite-box {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.import-result {
  margin-bottom: 16px;
  background: #eef8f3;
  border-color: #b8ddcf;
}

.distribution-chip {
  display: inline-flex;
  margin-left: 8px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.invite-box textarea {
  width: 100%;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.credentials div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}

.credentials span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.conflict-box {
  display: grid;
  gap: 5px;
  border: 1px solid #e2aaa3;
  border-radius: 8px;
  background: #fff0ee;
  color: #7a2d25;
  padding: 12px;
}

.conflict-box span {
  color: #7a2d25;
  font-size: 13px;
}

.activity {
  border-left: 3px solid var(--brand);
  padding: 6px 0 6px 12px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.error {
  color: var(--red);
  min-height: 20px;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .stats,
  .board {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .client-filters {
    grid-template-columns: 1fr;
  }

  .pipeline-topbar {
    grid-template-columns: 1fr;
  }

  .pipeline-summary {
    white-space: normal;
  }

  .pipeline-menu {
    left: 0;
    right: auto;
    top: 170px;
    width: min(100%, 280px);
  }
}

@media (max-width: 760px) {
  .login-screen,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .login-art {
    min-height: 320px;
    padding: 28px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .stats,
  .board {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
