@font-face {
  font-family: CRM;
  src: url("/assets/roboto-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: CRM;
  src: url("/assets/roboto-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: CRM;
  src: url("/assets/roboto-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: CRM;
  src: url("/assets/roboto-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  font-family: CRM, Arial, sans-serif;
  color: #101c43;
  font-size: 14px;
  --blue: #087bff;
  --muted: #8190b3;
  --line: #e9eff8;
  --shadow: 0 4px 20px #789ecd08;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(144deg, #9edcff 0%, #4eafff 48%, #c9eeff 100%);
  background-attachment: fixed;
}
body:before,
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    42deg,
    transparent 55%,
    #ffffff16 55%,
    #ffffff16 77%,
    transparent 77%
  );
}
body:after {
  transform: scaleX(-1);
  background: linear-gradient(
    40deg,
    transparent 44%,
    #ffffff14 44%,
    #ffffff14 62%,
    transparent 62%
  );
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a {
  color: var(--blue);
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.45px;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.muted {
  color: var(--muted);
}
.blue {
  color: var(--blue);
}
.small {
  font-size: 12px;
}
.app-shell {
  margin: 56px auto 24px;
  width: calc(100% - 76px);
  max-width: 1840px;
  min-height: 860px;
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  border: 1px solid #ffffffbd;
  border-radius: 21px;
  background: #f6fafff5;
  box-shadow: 0 16px 70px #318cde15;
  overflow: hidden;
}
.sidebar {
  padding: 18px 13px 16px;
  background: linear-gradient(150deg, #fff 0%, #f9fcff 100%);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 27px;
}
.brand-icon {
  width: 29px;
  height: 31px;
  color: #087bff;
}
.brand-icon svg {
  width: 29px;
  height: 31px;
  fill: #087bff;
  stroke: #087bff;
}
.brand strong {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.brand strong span {
  color: var(--blue);
}
.brand small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.navigation {
  display: grid;
  gap: 6px;
}
.nav-item {
  height: 41px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 0 17px;
  color: #4b5f8a;
  font-size: 15px;
}
.nav-item svg {
  width: 22px;
  height: 22px;
}
.nav-item.active {
  color: white;
  background: linear-gradient(115deg, #0984ff, #3094ff);
  box-shadow:
    inset 0 0 0 2px #2190ff,
    0 4px 8px #0781ff0a;
}
.nav-item:hover:not(.active) {
  background: #edf5ff;
}
.badge {
  font-size: 11px;
  border-radius: 20px;
  padding: 4px 6px;
  background: #e9eff8;
  margin-left: auto;
}
.promo {
  margin-top: auto;
  background: linear-gradient(140deg, #f3f8fd, #eaf4ff);
  padding: 18px 12px 15px;
  border-radius: 13px;
}
.promo .square {
  height: 34px;
  width: 34px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  margin-bottom: 11px;
  display: grid;
  place-items: center;
}
.promo h3 {
  line-height: 1.25;
  margin-bottom: 6px;
}
.promo p {
  color: #7183a7;
  font-size: 13px;
  line-height: 1.3;
}
.primary {
  color: #fff;
  background: linear-gradient(110deg, #087dff, #006aff);
  border: 1px solid #087bff;
  border-radius: 9px;
  padding: 10px 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.primary:hover {
  filter: brightness(0.95);
}
.promo .primary {
  margin-top: 12px;
  width: 100%;
  font-size: 12px;
  padding: 10px;
}
.workspace {
  padding: 14px 12px 12px 18px;
  background: linear-gradient(130deg, #eaf3fb99, #f3f9ff77);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 13px 0 9px;
  height: 38px;
  margin-bottom: 15px;
}
.topbar h1 {
  white-space: nowrap;
}
.search {
  height: 38px;
  border: 1px solid #e3ebf7;
  border-radius: 25px;
  background: #ffffffce;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  flex: 1;
  margin-left: 30px;
  box-shadow: var(--shadow);
  color: #7484a8;
  min-width: 180px;
}
.search input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 12px;
  color: #273960;
}
.search input::placeholder {
  color: #8393b5;
}
.search kbd {
  background: #f0f4fa;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 11px;
  white-space: nowrap;
}
.account {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 151px;
  text-align: left;
  padding: 0;
}
.avatar {
  height: 34px;
  width: 34px;
  border: 2px solid white;
  border-radius: 50%;
  background: #d5e1e9;
  display: grid;
  place-items: center;
  color: #4c6272;
  font-size: 12px;
  font-weight: bold;
}
.account b {
  font-size: 12px;
  display: block;
}
.account small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}
.account svg {
  margin-left: auto;
  width: 14px;
}
.notification {
  position: relative;
  color: #3f5482;
  display: flex;
  padding: 5px;
  margin-left: auto;
}
.notification svg {
  width: 23px;
  height: 23px;
}
.notification i {
  position: absolute;
  top: -1px;
  right: -2px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-style: normal;
  background: #ff426f;
  color: #fff;
  font-size: 9px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
}
.top-separator {
  height: 29px;
  width: 1px;
  background: #e6edf5;
  margin-left: -13px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 12px;
}
.main-col {
  min-width: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.stat {
  background: #ffffffed;
  border-radius: 15px;
  min-height: 108px;
  display: flex;
  gap: 18px;
  padding: 16px 17px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(130deg, #dceeff, #cfe8ff);
  color: #087bff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.2;
}
.stat:nth-child(3) .stat-icon {
  background: #eae7ff;
  color: #604aff;
}
.stat:nth-child(4) .stat-icon {
  background: #dcf9ed;
  color: #00b780;
}
.stat-label {
  font-size: 13px;
  margin: 5px 0 8px;
  white-space: nowrap;
}
.stat-value {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}
.stat-value strong {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.stat:last-child .stat-value {
  gap: 5px;
}
.stat:last-child .stat-value strong {
  font-size: 22px;
}
.growth {
  font-size: 13px;
  color: #00bf83;
  font-weight: 600;
}
.stat small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.panel {
  background: #fffffff2;
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.pipeline {
  padding: 14px 12px 20px;
  min-height: 654px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.pipeline > .panel-head {
  padding: 0 6px;
}
.toolbar {
  display: flex;
  gap: 11px;
  align-items: center;
}
.toolbar button,
.toolbar select {
  font-size: 12px;
}
.outline {
  border: 1px solid #e0e8f5;
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sort {
  border: 1px solid #e0e8f5;
  border-radius: 9px;
  background: white;
  color: #344771;
  height: 34px;
  padding: 0 10px;
  font-size: 11px;
  max-width: 155px;
}
.icon-button {
  padding: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #4f638a;
}
.icon-button:hover {
  background: #edf5ff;
}
.toolbar .primary {
  font-size: 11px;
  padding: 8px 12px;
}
.toolbar .primary svg {
  width: 15px;
  height: 15px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 8px 6px 13px;
}
.tab {
  background: #f4f7fb;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #314570;
}
.tab.active {
  background: #e4f3ff;
  color: #087bff;
  font-weight: 600;
}
.tab span {
  margin-left: 6px;
  padding: 2px 4px;
  background: #e5ebf4;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 400;
}
.tab.active span {
  background: #c6e4ff;
  color: var(--blue);
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.stage {
  border-radius: 12px;
  background: linear-gradient(#e8f4ff, #f3f9fe);
  padding: 12px 5px 8px;
  min-height: 516px;
}
.stage.selection {
  background: linear-gradient(#f5efff, #faf7ff);
}
.stage.showing {
  background: linear-gradient(#fcf6ed, #fcfaf5);
}
.stage.negotiation {
  background: linear-gradient(#fcedf9, #fdf6fc);
}
.stage.won {
  background: linear-gradient(#e6faf3, #f2fafb);
  min-height: 504px;
}
.stage.drag-over {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.stage-header {
  padding: 0 9px;
}
.stage-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 11px;
  white-space: nowrap;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3895ff;
  box-shadow: 0 0 0 2px #fff;
}
.selection .dot {
  background: #af51f8;
}
.showing .dot {
  background: #ffb33e;
}
.negotiation .dot {
  background: #f653b0;
}
.won .dot {
  background: #00be8e;
}
.stage-summary {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 12px;
  color: #7584a2;
  margin-bottom: 13px;
  white-space: nowrap;
}
.stage-summary strong {
  font-size: 13px;
  font-weight: 400;
  color: #3b5079;
}
.deal {
  border: 1px solid #e8eff8;
  background: linear-gradient(135deg, #fff, #ffffffda);
  border-radius: 10px;
  padding: 11px 10px 10px;
  box-shadow: 0 2px 5px #97acd508;
  margin-bottom: 6px;
  cursor: pointer;
  position: relative;
}
.deal:hover {
  border-color: #bdd8ff;
  box-shadow: 0 3px 12px #538bd61a;
}
.deal.dragging {
  opacity: 0.35;
}
.deal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.15;
}
.deal-menu {
  font-size: 14px;
  line-height: 8px;
  letter-spacing: 1px;
  color: #3d5279;
}
.deal-description {
  font-size: 11px;
  color: #7e8dac;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.deal-price {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.deal-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
  color: #677b9f;
  margin-bottom: 11px;
  white-space: nowrap;
}
.deal-meta svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.deal-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #7a8aa8;
  font-size: 10.5px;
  min-height: 17px;
  white-space: nowrap;
}
.deal-foot svg {
  width: 14px;
  height: 14px;
}
.deal-foot.scheduled {
  color: var(--blue);
}
.deal-foot .call {
  margin-left: auto;
  color: #697fa3;
}
.deal-thumb {
  height: 53px;
  width: 61px;
  border-radius: 7px;
  object-fit: cover;
  float: right;
  margin: -30px 0 4px 3px;
  position: relative;
}
.tag {
  display: inline-block;
  background: #dff9ee;
  color: #00a96f;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 10px;
  margin-top: -2px;
}
.add-deal {
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  width: 100%;
  font-size: 12px;
  padding: 12px 0 6px;
  white-space: nowrap;
}
.add-deal svg {
  width: 16px;
  height: 16px;
}
.right-col {
  display: grid;
  gap: 12px;
  align-content: start;
}
.right-panel {
  padding: 17px 15px;
}
.right-panel h3 {
  font-size: 15px;
}
.text-button {
  font-size: 12px;
  color: var(--blue);
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  padding: 0;
}
.text-button svg {
  width: 14px;
  height: 14px;
}
.showings {
  display: grid;
  gap: 14px;
}
.showing-row {
  display: grid;
  grid-template-columns: 44px 57px 1fr 10px;
  gap: 10px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 0;
}
.showing-row time {
  font-size: 13px;
  font-weight: 600;
}
.showing-row img {
  width: 57px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}
.showing-row b {
  font-size: 11px;
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  white-space: nowrap;
}
.showing-row small {
  font-size: 10.5px;
  color: #7c8bac;
  display: block;
  line-height: 1.5;
  white-space: nowrap;
}
.showing-row svg {
  width: 13px;
  height: 13px;
  color: #8796b1;
}
.tasks .panel-head {
  margin-bottom: 5px;
}
.task-plus {
  background: #e6f3ff;
  color: var(--blue);
  padding: 5px;
  border-radius: 8px;
}
.task-tools {
  display: flex;
  gap: 14px;
  align-items: center;
}
.task-row {
  display: flex;
  align-items: start;
  gap: 11px;
  padding: 9px 0 5px;
}
.task-row input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #b9c7dd;
  border-radius: 4px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.task-row input:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.task-row input:checked:after {
  content: "✓";
  color: white;
  position: relative;
  top: -2px;
  left: 1px;
  font-size: 12px;
}
.task-row.done b {
  text-decoration: line-through;
  color: #8190b3;
}
.task-content {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0;
}
.task-content b {
  display: block;
  font-weight: 400;
  font-size: 11px;
  margin-bottom: 4px;
}
.task-content small {
  color: #7e8daf;
  font-size: 11px;
  display: block;
  line-height: 1.4;
}
.task-row time {
  color: #7e8daf;
  font-size: 11px;
  white-space: nowrap;
  margin-left: auto;
}
.premium {
  padding: 16px 14px 8px;
}
.premium-picture {
  position: relative;
  margin-top: 6px;
}
.premium-picture img {
  width: 100%;
  height: 93px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.favorite {
  position: absolute;
  right: 8px;
  top: 8px;
  border-radius: 50%;
  background: white;
  width: 21px;
  height: 21px;
  padding: 2px;
  color: #617895;
}
.favorite svg {
  width: 17px;
  height: 17px;
}
.premium-label {
  position: absolute;
  bottom: 5px;
  left: 8px;
  background: #087bff;
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  background: #fff;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 3px;
  box-shadow: 0 2px 4px #0002;
}
.carousel-arrow svg {
  width: 15px;
  height: 15px;
}
.carousel-arrow.prev {
  left: 5px;
}
.carousel-arrow.next {
  right: 5px;
}
.property-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 8px;
  margin-top: 10px;
}
.premium p {
  font-size: 11px;
  color: #8090ad;
  margin-top: 5px;
}
.pagination-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 7px;
}
.pagination-dots i {
  height: 5px;
  width: 5px;
  border-radius: 5px;
  background: #cbd9ee;
}
.pagination-dots i.active {
  width: 12px;
  background: var(--blue);
}
.empty {
  padding: 35px 15px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.65;
}
.stage .empty {
  padding: 28px 4px;
  font-size: 11px;
}
.demo-bar {
  position: fixed;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 15px;
  border-radius: 20px;
  background: #122952eb;
  color: #fff;
  z-index: 20;
  box-shadow: 0 2px 12px #192c4430;
  font-size: 11px;
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}
.demo-bar a {
  color: #a4d6ff;
}
.content-panel {
  padding: 24px;
  min-height: 710px;
}
.view-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.view-title p {
  color: var(--muted);
  margin-top: 7px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  padding: 13px 15px;
  color: #8794ae;
  font-weight: 500;
  background: #f7faff;
  border-bottom: 1px solid #eaf0f8;
}
td {
  padding: 15px;
  border-bottom: 1px solid #edf2f9;
}
tbody tr:hover {
  background: #f6faff;
  cursor: pointer;
}
td strong {
  font-weight: 600;
}
.table-status {
  display: inline-block;
  background: #e8f4ff;
  border-radius: 6px;
  padding: 5px 9px;
  color: #167deb;
  font-size: 11px;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.property-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.property-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.property-card .property-body {
  padding: 16px;
}
.property-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.property-card p {
  font-size: 12px;
  color: #8390a9;
  margin-top: 8px;
}
.property-card strong {
  display: block;
  font-size: 19px;
  margin-top: 15px;
}
.calendar-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.calendar-day {
  min-height: 106px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.calendar-day.today {
  background: #f0f7ff;
}
.calendar-day > span {
  font-size: 12px;
  color: #7c8dac;
}
.calendar-day.today > span {
  background: #087bff;
  color: white;
  border-radius: 50%;
  padding: 5px;
}
.calendar-weekday {
  padding: 12px;
  color: #7c8dac;
  font-size: 12px;
  text-align: center;
  background: #f8faff;
}
.calendar-event {
  display: block;
  width: 100%;
  border-radius: 5px;
  background: #e6f2ff;
  color: #0873ee;
  font-size: 10px;
  text-align: left;
  padding: 5px;
  margin-top: 7px;
  overflow: hidden;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.report-card {
  padding: 25px;
  background: #f3f8ff;
  border-radius: 12px;
}
.report-card b {
  display: block;
  font-size: 28px;
  margin-top: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  gap: 15px;
  align-items: center;
  margin: 24px 0;
  font-size: 13px;
}
.bar-track {
  background: #f1f5fb;
  border-radius: 8px;
  overflow: hidden;
  height: 28px;
}
.bar-track div {
  height: 100%;
  background: linear-gradient(90deg, #329dff, #0072ff);
  border-radius: 8px;
  min-width: 2px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.settings-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.settings-card h3 {
  margin-bottom: 16px;
}
.settings-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 15px;
}
.settings-card .primary {
  margin-top: 15px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: white;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #182b5066;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal {
  background: #fff;
  border-radius: 18px;
  width: 580px;
  max-width: 100%;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 30px 100px #10275740;
  padding: 25px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}
.modal-head h2 {
  font-size: 21px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #526487;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  background: #f9fbfe;
  border: 1px solid #dfe7f3;
  border-radius: 8px;
  padding: 11px 12px;
  color: #1b2d54;
  width: 100%;
  min-width: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #087bff;
  outline: 2px solid #087bff18;
}
.field textarea {
  resize: vertical;
  min-height: 82px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 23px;
}
.danger {
  color: #df4168;
  margin-right: auto;
  font-size: 12px;
}
.form-error {
  color: #d83355;
  font-size: 12px;
  margin-top: 14px;
  line-height: 1.4;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}
.auth-card {
  background: #fffffff5;
  padding: 35px;
  border-radius: 22px;
  width: 440px;
  max-width: 100%;
  box-shadow: 0 30px 100px #267fc333;
}
.auth-card .brand {
  padding: 0;
  margin-bottom: 32px;
}
.auth-card h1 {
  font-size: 26px;
  margin-bottom: 9px;
}
.auth-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.auth-card .field {
  margin-bottom: 17px;
}
.auth-card .primary {
  width: 100%;
  padding: 12px;
}
.auth-footer {
  text-align: center;
  font-size: 12px;
  margin-top: 22px;
}
.auth-note {
  font-size: 11px;
  color: #8a98b4;
  line-height: 1.6;
  margin-top: 18px;
}
.mobile-toggle {
  display: none;
}
#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 200;
  max-width: 370px;
  background: #173258;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 50px #172f5540;
  padding: 15px 20px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(15px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.board.list-mode {
  display: block;
}
.list-mode .stage {
  min-height: auto;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 170px repeat(3, 1fr);
  gap: 8px;
  align-items: start;
}
.list-mode .stage-header {
  padding: 12px;
}
.list-mode .add-deal {
  grid-column: 1/-1;
}
.list-mode .deal {
  margin: 0;
}
.section-task-list {
  max-width: 900px;
}
.section-task-list .task-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.section-task-list .task-content b {
  font-size: 14px;
}
.section-task-list .task-content small {
  font-size: 12px;
}
.section-task-list .task-row time {
  font-size: 12px;
}
.section-task-list .task-row input {
  margin-top: 2px;
}
.inline-note {
  padding: 12px 15px;
  background: #f0f7ff;
  color: #637ea4;
  border-radius: 9px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 12px;
}
@media (min-width: 1700px) {
  .app-shell {
    margin-top: 5.8vh;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 325px;
  }
  .deal {
    padding: 14px 11px;
  }
  .stage {
    min-height: 535px;
  }
  .pipeline {
    min-height: 678px;
  }
  .right-panel {
    padding: 20px 16px;
  }
  .showings {
    gap: 17px;
  }
  .premium-picture img {
    height: 109px;
  }
}
@media (max-width: 1500px) {
  .app-shell {
    width: calc(100% - 40px);
    margin-top: 30px;
    grid-template-columns: 198px 1fr;
    min-height: 850px;
  }
  .sidebar {
    padding: 18px 11px;
  }
  .brand {
    padding: 0 3px;
  }
  .brand strong {
    font-size: 17px;
  }
  .workspace {
    padding-left: 12px;
  }
  .topbar {
    gap: 14px;
  }
  .topbar h1 {
    font-size: 24px;
  }
  .search {
    margin-left: 0;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 276px;
  }
  .stat {
    padding: 15px 12px;
    gap: 10px;
  }
  .stat-icon {
    width: 38px;
    height: 42px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-value {
    gap: 10px;
  }
  .stat-value strong {
    font-size: 25px;
  }
  .stat:last-child .stat-value strong {
    font-size: 18px;
  }
  .growth {
    font-size: 11px;
  }
  .stat small {
    font-size: 10px;
  }
  .stage-header {
    padding: 0 5px;
  }
  .stage-summary {
    font-size: 10px;
  }
  .stage-summary strong {
    font-size: 11px;
  }
  .stage-name {
    font-size: 11px;
    gap: 6px;
  }
  .deal {
    padding: 10px 8px;
  }
  .deal-title {
    font-size: 11px;
  }
  .deal-description,
  .deal-meta,
  .deal-foot {
    font-size: 10px;
  }
  .deal-meta {
    gap: 5px;
  }
  .deal-price {
    font-size: 11px;
  }
  .showing-row {
    grid-template-columns: 38px 50px 1fr 8px;
    gap: 7px;
  }
  .showing-row img {
    width: 50px;
    height: 50px;
  }
  .showing-row b {
    font-size: 10px;
  }
  .showing-row small {
    font-size: 9px;
  }
  .task-row {
    gap: 7px;
  }
  .task-content b,
  .task-content small,
  .task-row time {
    font-size: 10px;
  }
  .right-panel {
    padding: 16px 13px;
  }
  .task-row time {
    font-size: 9px;
  }
  .premium-picture img {
    height: 110px;
  }
  .nav-item {
    gap: 14px;
  }
  .deal-thumb {
    width: 49px;
  }
  .stage {
    min-height: 510px;
  }
  .pipeline {
    min-height: 650px;
  }
}
@media (max-width: 1220px) {
  .app-shell {
    grid-template-columns: 175px 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .right-col {
    grid-template-columns: 1.1fr 1fr 1fr;
  }
  .right-panel {
    min-width: 0;
  }
  .right-col .showing-row {
    grid-template-columns: 34px 40px 1fr;
  }
  .showing-row > svg {
    display: none;
  }
  .showing-row img {
    width: 40px;
    height: 40px;
  }
  .showings {
    gap: 8px;
  }
  .right-col .task-row time {
    display: none;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand small {
    font-size: 10px;
  }
  .brand-icon {
    width: 24px;
  }
  .nav-item {
    font-size: 13px;
    padding: 0 10px;
  }
  .topbar h1 {
    font-size: 21px;
  }
  .search kbd {
    display: none;
  }
  .search {
    min-width: 140px;
  }
  .account {
    min-width: 100px;
  }
  .account > svg {
    display: none;
  }
  .topbar {
    padding: 0;
    gap: 10px;
  }
  .top-separator {
    display: none;
  }
  .pipeline {
    min-height: 625px;
  }
  .stat-value strong {
    font-size: 26px;
  }
  .stat:last-child .stat-value strong {
    font-size: 20px;
  }
  .stats {
    gap: 8px;
  }
  .stage {
    min-height: 508px;
  }
  .deal-title {
    font-size: 12px;
  }
  .deal-meta,
  .deal-foot {
    font-size: 11px;
  }
  .deal-description {
    font-size: 11px;
  }
  .deal-price {
    font-size: 12px;
  }
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-shell {
    margin-bottom: 30px;
  }
}
@media (max-width: 950px) {
  .topbar h1 {
    font-size: 20px;
  }
  .topbar .search {
    max-width: 220px;
  }
  .account {
    min-width: 34px;
  }
  .account > span:not(.avatar) {
    display: none;
  }
  .board {
    overflow-x: auto;
    grid-template-columns: repeat(5, 170px);
    padding-bottom: 8px;
  }
  .right-col {
    grid-template-columns: 1fr 1fr;
  }
  .right-col .premium {
    grid-column: 1/-1;
  }
  .premium-picture img {
    height: 160px;
  }
  .right-col .task-row time {
    display: block;
  }
  .right-col .showing-row {
    grid-template-columns: 40px 50px 1fr;
  }
  .right-col .showing-row img {
    width: 50px;
    height: 47px;
  }
  .showing-row b {
    font-size: 11px;
  }
  .showing-row small {
    font-size: 10px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    min-height: 100px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat small {
    font-size: 11px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .content-panel {
    padding: 18px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 90px;
    padding: 5px;
  }
}
@media (max-width: 680px) {
  .app-shell {
    display: block;
    width: calc(100% - 20px);
    margin: 10px;
    border-radius: 16px;
    min-height: calc(100vh - 20px);
  }
  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 225px;
    z-index: 50;
    box-shadow: 10px 0 80px #192f5577;
  }
  .sidebar.open {
    display: flex;
  }
  .workspace {
    padding: 15px 10px;
  }
  .topbar {
    height: auto;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 9px;
  }
  .topbar h1 {
    font-size: 19px;
    letter-spacing: -0.6px;
  }
  .mobile-toggle {
    display: flex;
    padding: 4px;
  }
  .search {
    order: 5;
    max-width: none !important;
    flex-basis: 100%;
    height: 38px;
  }
  .notification {
    margin-left: auto;
  }
  .account {
    display: none;
  }
  .stats {
    gap: 8px;
    margin-bottom: 10px;
  }
  .stat {
    gap: 10px;
    padding: 12px 10px;
    min-height: 104px;
  }
  .stat-icon {
    width: 33px;
    height: 38px;
  }
  .stat-icon svg {
    width: 23px;
    height: 23px;
  }
  .stat-label {
    font-size: 11px;
    margin-top: 3px;
  }
  .stat-value {
    gap: 8px;
  }
  .stat-value strong {
    font-size: 24px;
  }
  .stat:last-child .stat-value strong {
    font-size: 17px;
  }
  .stat small {
    font-size: 10px;
  }
  .growth {
    font-size: 10px;
  }
  .dashboard-grid {
    gap: 10px;
  }
  .pipeline {
    padding: 14px 8px;
    min-height: 620px;
  }
  .pipeline > .panel-head {
    flex-wrap: wrap;
    padding: 0 3px;
  }
  .pipeline h2 {
    font-size: 19px;
  }
  .toolbar {
    gap: 7px;
  }
  .sort {
    width: 143px;
    font-size: 11px;
  }
  .toolbar .primary {
    padding: 8px;
    font-size: 10px;
  }
  .tabs {
    gap: 7px;
    margin-left: 2px;
  }
  .tab {
    font-size: 12px;
    padding: 8px;
  }
  .right-col {
    grid-template-columns: 1fr;
  }
  .right-col .premium {
    grid-column: auto;
  }
  .right-col .showing-row {
    grid-template-columns: 42px 57px 1fr 12px;
  }
  .right-col .showing-row img {
    width: 57px;
    height: 52px;
  }
  .right-col .showing-row > svg {
    display: block;
  }
  .right-col .showing-row b {
    font-size: 12px;
  }
  .right-col .showing-row small {
    font-size: 11px;
  }
  .showings {
    gap: 12px;
  }
  .right-panel {
    padding: 18px;
  }
  .right-col .task-row time {
    font-size: 11px;
  }
  .task-content b,
  .task-content small {
    font-size: 12px;
  }
  .premium-picture img {
    height: 180px;
  }
  .property-grid {
    grid-template-columns: 1fr;
  }
  .view-title {
    gap: 10px;
    align-items: start;
  }
  .view-title h2 {
    font-size: 20px;
  }
  .view-title .primary {
    font-size: 11px;
    padding: 9px;
  }
  .view-title p {
    font-size: 12px;
  }
  .content-panel {
    padding: 16px;
    min-height: 650px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .modal {
    padding: 20px;
  }
  .overlay {
    padding: 12px;
  }
  .demo-bar {
    font-size: 9px;
    padding: 7px 10px;
    gap: 8px;
  }
  .calendar-day {
    min-height: 75px;
    padding: 4px;
    overflow: hidden;
  }
  .calendar-event {
    font-size: 8px;
    padding: 3px;
  }
  .calendar-controls {
    gap: 5px;
    font-size: 11px;
  }
  .bar-row {
    grid-template-columns: 95px 1fr 45px;
    gap: 10px;
    font-size: 11px;
  }
  .auth-card {
    padding: 27px;
  }
  .list-mode .stage {
    display: block;
  }
  .list-mode .deal {
    margin-bottom: 8px;
  }
  #toast {
    right: 15px;
    left: 15px;
    bottom: 40px;
    max-width: none;
  }
}

/* Reference layout refinements. */
@media (min-width: 1221px) {
  .tasks {
    padding: 11px 15px 12px;
  }
  .tasks .panel-head {
    margin-bottom: 3px;
  }
  .tasks .task-row {
    padding: 5px 0 6px;
  }
  .task-plus {
    display: grid;
    place-items: center;
  }
  .tabs {
    margin-top: 4px;
    margin-bottom: 11px;
  }
  .stage {
    min-height: 524px;
  }
  .stage.won {
    min-height: 511px;
  }
}
@media (min-width: 1221px) and (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .right-col {
    grid-template-columns: 1.1fr 1fr 1fr;
  }
  .stage {
    min-height: 510px;
  }
  .stat-value {
    gap: 18px;
  }
  .stat:last-child .stat-value strong {
    font-size: 22px;
  }
}
.carousel-arrow.prev svg {
  transform: rotate(180deg);
}

body {
  display: flow-root;
}
.stat {
  height: 108px;
  padding-top: 15px;
  padding-bottom: 13px;
}
@media (min-width: 1221px) {
  .tasks .task-row {
    padding-bottom: 5px;
  }
}

@media(max-width:680px){.topbar{gap:7px}.topbar h1{font-size:17px;flex:1;min-width:0}.notification{padding:3px}.notification svg{width:20px;height:20px}}

@media(min-width:681px){.app-shell{margin-bottom:20px}}
@media(max-width:680px){.stat:last-child .growth{display:none}.stat:last-child .stat-value strong{font-size:15px}}
