:root {
  --ink: #0a1329;
  --muted: #748099;
  --line: #e4e8f1;
  --canvas: #f2f4f9;
  --surface: #fff;
  --primary: #5357ff;
  --acid: #b8ff4a;
  --teal: #18b8a5;
  --danger: #ed5c6a;
  --radius: 22px;
  --shadow: 0 20px 55px rgba(18, 27, 55, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ui-icon svg {
  width: 1.12em;
  height: 1.12em;
}
.admin-sidebar {
  position: fixed;
  z-index: 50;
  right: 16px;
  top: 16px;
  bottom: 16px;
  width: 245px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  padding: 20px 14px;
  box-shadow: 0 25px 70px rgba(6, 13, 31, 0.22);
  display: flex;
  flex-direction: column;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 7px 23px;
}
.admin-brand > span {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(83, 87, 255, 0.35);
}
.admin-brand img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}
.admin-brand b,
.admin-brand small {
  display: block;
}
.admin-brand b {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.admin-brand small {
  font-size: 0.58rem;
  color: #909bb3;
  letter-spacing: 0.07em;
}
.admin-sidebar nav {
  display: grid;
  gap: 5px;
}
.admin-sidebar nav a,
.sidebar-foot a {
  height: 47px;
  padding: 0 13px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9da7bc;
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.admin-sidebar nav a.active:before {
  content: "";
  position: absolute;
  right: -14px;
  width: 4px;
  height: 24px;
  background: var(--acid);
  border-radius: 9px;
}
.admin-sidebar nav a .ui-icon {
  font-size: 1.1rem;
}
.admin-sidebar nav a > i {
  font-style: normal;
  margin-right: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 10px;
  background: var(--acid);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 900;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
.admin-main {
  padding-right: 277px;
  min-height: 100vh;
}
.admin-topbar {
  height: 100px;
  padding: 16px 34px;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}
.admin-topbar h1 {
  font-size: 1.45rem;
  margin: 0;
}
.top-kicker,
.section-kicker {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.03em;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-chip {
  height: 38px;
  border-radius: 14px;
  background: #eaf9f4;
  color: #167a62;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
}
.live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25c990;
  box-shadow: 0 0 0 4px rgba(37, 201, 144, 0.15);
}
.top-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
}
.top-icon > i {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 5px 7px 5px 13px;
}
.user-chip > span,
.person > i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--avatar);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-style: normal;
}
.user-chip b,
.user-chip small {
  display: block;
}
.user-chip b {
  font-size: 0.74rem;
}
.user-chip small {
  font-size: 0.58rem;
  color: var(--muted);
}
.menu-toggle {
  display: none;
  border: 0;
  background: white;
  width: 42px;
  height: 42px;
  border-radius: 13px;
}
.admin-content {
  padding: 10px 34px 50px;
  max-width: 1650px;
  margin: auto;
}
.demo-banner,
.flash {
  border-radius: 15px;
  padding: 12px 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}
.demo-banner,
.flash.info {
  background: #edf0ff;
  color: #3e45b4;
}
.flash.success {
  background: #e8f9f3;
  color: #18785f;
}
.flash.error {
  background: #ffeded;
  color: #a12d3a;
}
.welcome-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin: 15px 0 28px;
}
.welcome-row h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 7px 0 10px;
}
.welcome-row p {
  margin: 0;
  color: var(--muted);
}
.welcome-actions,
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ghost-btn,
.solid-btn {
  min-height: 43px;
  border-radius: 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 900;
  border: 1px solid var(--line);
}
.ghost-btn {
  background: white;
}
.solid-btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(83, 87, 255, 0.22);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  min-height: 170px;
  border-radius: 25px;
  padding: 21px;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.metric:after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(9, 18, 40, 0.06);
  left: -45px;
  bottom: -50px;
  box-shadow: 0 0 0 25px rgba(9, 18, 40, 0.018);
}
.metric > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.metric > div span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff1f7;
  display: grid;
  place-items: center;
}
.metric small {
  color: var(--muted);
}
.metric strong {
  font-size: 2.6rem;
  line-height: 1;
}
.metric em {
  font-style: normal;
  font-size: 0.65rem;
  color: var(--muted);
}
.metric.primary {
  background: var(--primary);
  color: #fff;
  transform: translateY(-7px);
  box-shadow: 0 22px 42px rgba(83, 87, 255, 0.26);
}
.metric.primary small,
.metric.primary em {
  color: #d8d9ff;
}
.metric.primary > div span {
  background: rgba(255, 255, 255, 0.15);
}
.metric.acid {
  background: var(--acid);
}
.metric.dark {
  background: var(--ink);
  color: white;
}
.metric.dark small,
.metric.dark em {
  color: #9ba5bc;
}
.metric.dark > div span {
  background: rgba(255, 255, 255, 0.1);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 18px;
}
.panel {
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 25px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-head h3 {
  font-size: 1.2rem;
  margin: 3px 0;
}
.panel-head > a {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pipeline-visual {
  display: grid;
  gap: 13px;
}
.pipeline-visual > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 13px;
  align-items: center;
}
.pipeline-visual span b,
.pipeline-visual span small {
  display: block;
}
.pipeline-visual span b {
  font-size: 0.76rem;
}
.pipeline-visual span small {
  font-size: 0.6rem;
  color: var(--muted);
}
.pipeline-visual > div > i {
  height: 12px;
  border-radius: 99px;
  background: #eef0f5;
  overflow: hidden;
  position: relative;
}
.pipeline-visual > div > i:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--fill);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #8084ff);
}
.agenda {
  display: grid;
  gap: 5px;
}
.agenda > div {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 15px;
}
.agenda > div:hover {
  background: var(--canvas);
}
.agenda time {
  border-left: 1px solid var(--line);
}
.agenda time b,
.agenda time small,
.agenda > div > span b,
.agenda > div > span small {
  display: block;
}
.agenda time b {
  font-size: 0.95rem;
}
.agenda time small,
.agenda > div > span small {
  font-size: 0.6rem;
  color: var(--muted);
}
.agenda > div > span b {
  font-size: 0.72rem;
}
.status {
  font-style: normal;
  display: inline-flex;
  border-radius: 9px;
  padding: 5px 8px;
  font-size: 0.6rem;
  font-weight: 900;
  background: #eef0f5;
  color: #58627a;
}
.s-confirmed,
.lead-qualified,
.lead-won,
.property-available {
  background: #e7f9f2;
  color: #177860;
}
.s-completed,
.deal-closed {
  background: #e9efff;
  color: #3656a8;
}
.s-cancelled,
.lead-lost,
.property-sold {
  background: #ffeaed;
  color: #ad3746;
}
.lead-new {
  background: #eef0ff;
  color: #454abc;
}
.lead-viewing,
.property-reserved {
  background: #fff4d8;
  color: #8b6311;
}
.lead-offer {
  background: #f4eaff;
  color: #743ca6;
}
.leads-preview {
  margin-top: 18px;
}
.data-table {
  overflow: auto;
}
.table-row {
  min-width: 780px;
  display: grid;
  grid-template-columns: 1.2fr 1.35fr 0.75fr 0.85fr 0.9fr;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}
.table-head {
  min-height: 38px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.person b,
.person small {
  display: block;
}
.person small,
.table-row span > small {
  font-size: 0.58rem;
  color: var(--muted);
}
.admin-footer {
  padding: 20px 35px 35px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
}
.page-actions {
  justify-content: space-between;
  margin-bottom: 15px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 12px 0 20px;
}
.toolbar form {
  display: flex;
  gap: 8px;
}
.search-box {
  height: 44px;
  min-width: 330px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
}
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}
.toolbar select,
.inline-select select,
.card-actions select,
.viewing-status select,
.deal-board select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  padding: 0 11px;
  outline: 0;
}
.toolbar-note {
  color: var(--muted);
  font-size: 0.7rem;
  display: flex;
  gap: 6px;
  align-items: center;
}
.admin-property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.admin-property-card {
  border-radius: 24px;
  background: white;
  padding: 8px;
  box-shadow: var(--shadow);
}
.admin-property-media {
  height: 220px;
  border-radius: 19px;
  overflow: hidden;
  position: relative;
}
.admin-property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-property-media > .status {
  position: absolute;
  top: 12px;
  right: 12px;
}
.admin-property-media > span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(9, 18, 40, 0.8);
  color: white;
  border-radius: 9px;
  padding: 4px 7px;
  font-size: 0.6rem;
}
.admin-property-card > div:last-child {
  padding: 14px 10px 8px;
}
.admin-property-card small {
  color: var(--muted);
  font-size: 0.65rem;
}
.admin-property-card h3 {
  font-size: 1rem;
  margin: 5px 0;
}
.admin-property-card strong {
  color: var(--primary);
}
.property-mini-spec {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.62rem;
}
.card-actions {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-actions > a {
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  gap: 5px;
  align-items: center;
}
.card-actions select {
  height: 34px;
  font-size: 0.65rem;
}
.editor-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}
.editor-side,
.settings-layout > aside {
  display: grid;
  gap: 14px;
  align-content: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid.one {
  grid-template-columns: 1fr;
}
.form-grid label > span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8f9fc;
  padding: 10px 12px;
  outline: 0;
}
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(83, 87, 255, 0.09);
}
.span-2 {
  grid-column: 1/-1;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 22px;
}
.check-field input {
  width: auto;
}
.check-field span {
  margin: 0 !important;
}
.upload-box {
  min-height: 145px;
  border: 1px dashed #b9c1d2;
  border-radius: 18px;
  background: #f8f9fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding: 15px;
  cursor: pointer;
}
.upload-box .ui-icon {
  font-size: 1.8rem;
  color: var(--primary);
}
.upload-box b {
  font-size: 0.74rem;
}
.upload-box span {
  font-size: 0.62rem;
  color: var(--muted);
}
.upload-box input {
  max-width: 100%;
  font-size: 0.65rem;
}
.editor-image {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 17px;
  margin-bottom: 12px;
}
.save-wide {
  width: 100%;
  border: 0;
  min-height: 50px;
}
.stage-tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding-bottom: 4px;
}
.stage-tabs a {
  flex: none;
  padding: 9px 13px;
  border-radius: 13px;
  background: white;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 800;
}
.stage-tabs a.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.stage-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  margin-right: 5px;
}
.lead-table .table-row {
  grid-template-columns: 1.2fr 1.35fr 0.8fr 0.8fr 0.85fr 0.75fr;
  min-width: 1000px;
}
.inline-select select {
  height: 35px;
  font-size: 0.63rem;
}
.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.calendar-strip article {
  background: white;
  border-radius: 17px;
  padding: 13px;
  text-align: center;
  border: 1px solid var(--line);
  position: relative;
}
.calendar-strip span,
.calendar-strip b,
.calendar-strip small {
  display: block;
}
.calendar-strip span,
.calendar-strip small {
  font-size: 0.58rem;
  color: var(--muted);
}
.calendar-strip b {
  font-size: 1.25rem;
}
.calendar-strip i {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 19px;
  height: 19px;
  border-radius: 8px;
  background: var(--canvas);
  font-style: normal;
  font-size: 0.58rem;
  display: grid;
  place-items: center;
}
.calendar-strip article.active {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(83, 87, 255, 0.2);
}
.calendar-strip article.active span,
.calendar-strip article.active small {
  color: #d9daff;
}
.viewing-list {
  display: grid;
}
.viewing-list article {
  display: grid;
  grid-template-columns: 75px 18px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
}
.viewing-list time b,
.viewing-list time span {
  display: block;
}
.viewing-list time b {
  font-size: 1.2rem;
}
.viewing-list time span {
  font-size: 0.62rem;
  color: var(--muted);
}
.viewing-line {
  height: 75px;
  position: relative;
}
.viewing-line:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  bottom: -20px;
  width: 1px;
  background: var(--line);
}
.viewing-line i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px #e8e9ff;
}
.is-today .viewing-line i {
  background: var(--acid);
  box-shadow: 0 0 0 5px #eeffd8;
}
.viewing-info h3 {
  margin: 2px 0;
  font-size: 0.9rem;
}
.viewing-info p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.deal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.deal-metrics article {
  background: white;
  border-radius: 23px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.deal-metrics span,
.deal-metrics strong,
.deal-metrics small {
  display: block;
}
.deal-metrics span {
  font-size: 0.7rem;
  font-weight: 800;
}
.deal-metrics strong {
  font-size: 1.8rem;
  margin: 10px 0;
}
.deal-metrics small {
  font-size: 0.62rem;
  color: var(--muted);
}
.deal-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}
.deal-column {
  background: #e9ecf3;
  border-radius: 22px;
  padding: 10px;
  min-height: 400px;
}
.deal-column > header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  font-size: 0.73rem;
  font-weight: 900;
}
.deal-column > header b {
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: white;
  display: grid;
  place-items: center;
}
.deal-column > article {
  background: white;
  border-radius: 17px;
  padding: 15px;
  margin-bottom: 9px;
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.06);
}
.deal-column h3 {
  font-size: 0.82rem;
  margin: 5px 0;
}
.deal-column strong {
  font-size: 1.05rem;
  color: var(--primary);
}
.deal-column article > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.58rem;
}
.deal-column select {
  width: 100%;
  height: 34px;
  font-size: 0.62rem;
}
.settings-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.settings-layout > div {
  display: grid;
  gap: 14px;
}
.settings-section {
  margin-bottom: 0;
}
.setting-note {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: -8px;
}
.login-page {
  background: #071024;
  min-height: 100vh;
  padding: 18px;
  color: white;
}
.login-shell {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  border-radius: 30px;
  overflow: hidden;
  background: white;
  color: var(--ink);
}
.login-visual {
  position: relative;
  min-height: 720px;
}
.login-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 29, 0.2), rgba(5, 12, 29, 0.82)),
    linear-gradient(0deg, rgba(5, 12, 29, 0.7), transparent 60%);
}
.login-overlay {
  position: absolute;
  z-index: 2;
  inset: auto 8% 8%;
  color: white;
  max-width: 600px;
}
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  padding: 8px 13px;
  font-size: 0.67rem;
  backdrop-filter: blur(10px);
}
.login-overlay h1 {
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin: 22px 0;
}
.login-overlay h1 em {
  font-style: normal;
  color: var(--acid);
}
.login-overlay p {
  color: #bec6d8;
  max-width: 470px;
}
.login-metrics {
  display: flex;
  gap: 25px;
  margin-top: 30px;
}
.login-metrics span {
  font-size: 0.65rem;
  color: #aeb7ca;
}
.login-metrics b {
  display: block;
  font-size: 1.4rem;
  color: white;
}
.login-panel {
  padding: 7vh 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-panel .admin-brand {
  padding: 0;
  margin-bottom: 10vh;
}
.login-copy > span {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 900;
}
.login-copy h2 {
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.login-copy p {
  color: var(--muted);
}
.credentials {
  padding: 13px;
  border-radius: 14px;
  background: #eef0ff;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 0.68rem;
}
.credentials b {
  grid-column: 1/-1;
  color: #4146b0;
}
.login-form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}
.login-form label > span {
  font-size: 0.68rem;
  font-weight: 800;
}
.login-form label > div {
  height: 50px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9fc;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}
.login-form input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}
.login-form button {
  height: 52px;
  border: 0;
  border-radius: 15px;
  background: var(--primary);
  color: white;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 15px 30px rgba(83, 87, 255, 0.25);
}
.back-link {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 1200px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deal-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .editor-side,
  .settings-layout > aside {
    grid-template-columns: repeat(2, 1fr);
  }
  .save-wide {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(115%);
    transition: 0.3s;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    padding-right: 0;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .admin-topbar {
    padding-inline: 18px;
  }
  .admin-content {
    padding-inline: 18px;
  }
  .live-chip {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    min-height: calc(100vh - 36px);
    padding: 8vw;
  }
  .login-panel .admin-brand {
    margin-bottom: 12vh;
  }
}
@media (max-width: 620px) {
  .admin-topbar {
    height: 82px;
  }
  .top-actions .top-icon,
  .user-chip div {
    display: none;
  }
  .admin-content {
    padding-inline: 12px;
  }
  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .welcome-actions {
    width: 100%;
  }
  .welcome-actions > * {
    flex: 1;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metric {
    min-height: 145px;
    padding: 15px;
  }
  .metric strong {
    font-size: 2rem;
  }
  .metric.primary {
    transform: none;
  }
  .panel {
    padding: 15px;
  }
  .admin-property-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar form {
    flex-direction: column;
  }
  .search-box {
    min-width: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .editor-side,
  .settings-layout > aside {
    grid-template-columns: 1fr;
  }
  .calendar-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .calendar-strip article:nth-child(n + 5) {
    display: none;
  }
  .viewing-list article {
    grid-template-columns: 58px 13px 1fr;
  }
  .viewing-status {
    grid-column: 3;
  }
  .deal-metrics {
    grid-template-columns: 1fr;
  }
  .deal-board {
    grid-template-columns: 1fr;
  }
  .login-panel {
    padding: 28px;
  }
  .login-panel .admin-brand {
    margin-bottom: 60px;
  }
  .login-copy h2 {
    font-size: 2rem;
  }
}
