:root {
  --paper: #f7f5f0;
  --white: #fff;
  --ink: #252723;
  --muted: #70766d;
  --line: #e6e7df;
  --orange: #c45422;
  --orange-soft: #fcf0e7;
  --green: #24674e;
  --green-soft: #eef5ef;
  --red: #b53b3b;
  --shadow: 0 4px 22px #20271d06;
  --radius: 15px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 16px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
button:hover,
.button:hover {
  background: #f2f3ed;
}
button.primary,
.button.primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
button.primary:hover,
.button.primary:hover {
  background: #ad461b;
}
button.dark,
.button.dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
button.danger {
  color: var(--red);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.button.small,
button.small {
  font-size: 13px;
  padding: 8px 12px;
}
a {
  color: var(--orange);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #edaa72;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dcded5;
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  color: var(--ink);
}
textarea {
  min-height: 96px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--orange);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
}
.field {
  min-width: 0;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.span-2 {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  flex-wrap: wrap;
}
.error {
  color: var(--red);
  font-size: 14px;
  margin: 12px 0;
  padding: 12px;
  background: #fff2f1;
  border-radius: 8px;
}
.hidden {
  display: none !important;
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #242622;
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 12px 26px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 47px;
  height: 47px;
  object-fit: cover;
  border-radius: 50%;
}
.brand strong {
  font-size: 15px;
  display: block;
  line-height: 1.3;
}
.brand small {
  display: block;
  color: #aaafa3;
  font-size: 10px;
  letter-spacing: 2.4px;
  margin-top: 5px;
  text-transform: uppercase;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #969c91;
  padding: 18px 15px 12px;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 5px;
  border-radius: 8px;
  color: #cbd0c6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  min-height: 46px;
}
.nav-item svg {
  width: 19px;
  height: 19px;
}
.nav-item:hover {
  background: #31342e;
  color: white;
}
.nav-item.active {
  color: #fff;
  background: #3e3a2e;
  border: 1px solid #75634066;
}
.nav-item.active svg {
  color: #efa866;
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 13px 0;
  border-top: 1px solid #45483f;
}
.sidebar-footer p {
  font-size: 12px;
  line-height: 1.7;
  color: #a5aa9f;
  margin: 4px 0;
}
.tiny-tag {
  display: inline-block;
  font-size: 10px;
  color: #e8be8a;
  border: 1px solid #685742;
  padding: 4px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 85px;
  background: #ffffffbd;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  color: var(--ink);
  margin-left: 8px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.date-chip {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  background: #e9eadd;
  color: #606847;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}
.user-chip strong {
  font-size: 12px;
  display: block;
}
.user-chip small {
  font-size: 10px;
  color: var(--muted);
}
.top-actions button {
  border: 0;
  background: transparent;
  padding: 8px;
  font-size: 12px;
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 34px 40px 60px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  color: var(--orange);
  margin: 0 0 10px;
}
.page-heading h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 0 0 9px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 145px;
}
.stat .iconbox {
  position: absolute;
  right: 18px;
  top: 19px;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.stat.orange .iconbox {
  color: var(--orange);
  background: var(--orange-soft);
}
.stat svg {
  width: 16px;
  height: 16px;
}
.stat label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin: 3px 0 20px;
}
.stat strong {
  font-size: 32px;
  letter-spacing: -1px;
  display: block;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 9px;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-header h2 {
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.2px;
}
.panel-header small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.panel-body {
  padding: 22px;
}
.panel-footer {
  padding: 14px 22px;
  background: #fbfcf8;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.text-link {
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  border-radius: 5px;
  padding: 5px 8px;
  color: #5a6455;
  background: #f0f2ea;
  white-space: normal;
  line-height: 1.4;
}
.badge.orange {
  color: #a24a20;
  background: #fcf0e8;
}
.badge.red {
  color: #a52d2d;
  background: #fff0ec;
}
.badge.green {
  color: #24674e;
  background: #edf6ee;
}
.badge.gray {
  color: #6d7468;
  background: #f1f2ee;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.list-row {
  padding: 17px 22px;
  border-bottom: 1px solid #eceee6;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong {
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
}
.list-row small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.list-row .row-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.list-row .row-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.stage-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 28px;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 12px;
}
.stage-bar {
  height: 7px;
  background: #f1f2ec;
  border-radius: 20px;
  overflow: hidden;
}
.stage-bar i {
  display: block;
  height: 100%;
  background: #5b7355;
  border-radius: 20px;
}
.stage-row:nth-child(2n) .stage-bar i {
  background: #c07142;
}
.notice {
  background: #f0f3e8;
  border: 1px solid #e1e7d6;
  color: #52614b;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
  display: flex;
  gap: 12px;
}
.notice svg {
  width: 19px;
  flex-shrink: 0;
}
.notice.orange {
  background: var(--orange-soft);
  border-color: #efdfce;
  color: #91532f;
}
.notice p {
  margin: 0;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar .field {
  flex: 1;
  min-width: 130px;
}
.toolbar .search {
  flex: 2;
  min-width: 180px;
}
.toolbar label {
  font-size: 11px;
  color: var(--muted);
}
.toolbar input,
.toolbar select {
  font-size: 13px;
}
.lead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lead-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px;
  min-width: 0;
}
.lead-card h2 {
  font-size: 17px;
  margin: 14px 0 8px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.lead-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.lead-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.lead-card .reference {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.lead-card .phone {
  font-size: 14px;
  color: var(--ink);
  display: block;
  margin: 16px 0;
}
.lead-card .actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.lead-card .actions a {
  flex: 1;
}
.lead-card .callback {
  padding: 8px 10px;
  background: #fbf1e9;
  border-radius: 7px;
  font-size: 11px;
  color: #9c532b;
  margin-top: 14px;
}
.empty {
  padding: 38px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 26px 0;
  font-size: 12px;
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: #fafbf7;
  font-weight: 500;
}
th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
td strong {
  font-weight: 600;
}
.table-scroll table {
  min-width: 550px;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.detail-header h2 {
  font-size: 22px;
  margin: 0 0 7px;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}
.details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.details dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  padding: 0 0 22px 20px;
  border-left: 1px solid var(--line);
  position: relative;
  line-height: 1.6;
}
.timeline li:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #d9decf;
  border: 2px solid white;
  outline: 1px solid var(--line);
  position: absolute;
  left: -5px;
  top: 6px;
  border-radius: 50%;
}
.timeline strong {
  display: block;
  font-size: 12px;
}
.timeline small {
  font-size: 11px;
  color: var(--muted);
}
.timeline p {
  font-size: 13px;
  margin: 5px 0;
}
.time-value {
  font-size: 28px;
  letter-spacing: -0.6px;
}
.shift-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.import-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 20px;
  margin-bottom: 16px;
}
.import-row.invalid {
  border-color: #eab3a5;
}
.import-row .row-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.import-row h3 {
  font-size: 14px;
  margin: 0;
}
.import-row .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.import-row input {
  font-size: 13px;
}
.import-row .errors {
  font-size: 12px;
  color: var(--red);
  line-height: 1.6;
}
.caller-profile {
  display: flex;
  gap: 15px;
  align-items: center;
}
.caller-profile .avatar {
  width: 60px;
  height: 60px;
  font-size: 18px;
}
.caller-profile h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
.caller-profile p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.mobile-nav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: calc(100vw - 40px);
  z-index: 25;
  border-radius: 10px;
  background: #263d2c;
  color: white;
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 20px;
  box-shadow: 0 5px 20px #0002;
  display: none;
}
#toast.visible {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px;
  width: min(600px, calc(100% - 24px));
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #17201966;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
dialog p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.loading {
  padding: 70px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #242622;
  color: #fff;
  padding: 70px max(35px, 8vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  width: 380px;
  height: 380px;
  border: 1px solid #fff1;
  border-radius: 50%;
  position: absolute;
  bottom: -150px;
  right: -200px;
}
.login-logo {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  margin-bottom: 45px;
}
.login-story .eyebrow {
  color: #efa76b;
}
.login-story h1 {
  font-size: 48px;
  letter-spacing: -1.7px;
  line-height: 1.15;
  margin: 8px 0 24px;
  font-weight: 500;
}
.login-story p {
  font-size: 15px;
  line-height: 1.9;
  color: #b4bbac;
  max-width: 350px;
}
.login-story .story-foot {
  margin-top: 65px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #939b8d;
}
.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px max(30px, 7vw);
}
.login-form h2 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}
.login-form > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.login-form form {
  max-width: 380px;
}
.login-form .field {
  margin: 20px 0;
}
.login-form .primary {
  width: 100%;
  margin-top: 12px;
}
.login-foot {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 30px;
}
.unsaved {
  font-size: 12px;
  color: #a05a29;
  margin-top: 12px;
}
.progress {
  height: 8px;
  width: 100%;
  accent-color: var(--orange);
}
.muted {
  color: var(--muted);
}
.mb {
  margin-bottom: 18px;
}
.flex {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.plain-list {
  font-size: 13px;
  line-height: 1.9;
  padding-left: 20px;
}
.report-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.code {
  background: #f1f2ec;
  padding: 12px;
  font-family: monospace;
  overflow-wrap: anywhere;
  font-size: 16px;
  border-radius: 7px;
}
.desktop-only {
  display: block;
}
@media (min-width: 1400px) {
  .content {
    padding: 42px 50px;
  }
  .topbar {
    padding: 0 50px;
  }
  .stats {
    gap: 22px;
  }
  .stat {
    padding: 24px;
  }
  .grid-two {
    gap: 25px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    width: 205px;
  }
  .content {
    padding: 28px 24px 50px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lead-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .import-row .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .date-chip {
    display: none;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    display: block;
  }
  .topbar {
    height: 70px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .top-actions {
    gap: 6px;
  }
  .user-chip strong,
  .user-chip small {
    display: none;
  }
  .content {
    padding: 24px 16px 100px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions button,
  .heading-actions .button {
    flex: 1;
  }
  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 16px;
    min-height: 135px;
  }
  .stat label {
    font-size: 11px;
    max-width: 95px;
    line-height: 1.6;
  }
  .stat strong {
    font-size: 29px;
  }
  .stat .iconbox {
    right: 12px;
    top: 14px;
    width: 26px;
    height: 26px;
  }
  .stat small {
    font-size: 10px;
    line-height: 1.5;
  }
  .panel-header {
    padding: 17px;
  }
  .panel-body {
    padding: 18px;
  }
  .list-row {
    padding: 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .list-row .row-right {
    gap: 8px;
  }
  .lead-grid {
    grid-template-columns: 1fr;
  }
  .lead-card {
    padding: 19px;
  }
  .form-grid,
  .import-row .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .toolbar .field {
    min-width: calc(50% - 10px);
  }
  .toolbar button {
    width: 100%;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(10px);
    padding: 8px 6px max(8px, env(safe-area-inset-bottom));
    z-index: 10;
    justify-content: space-around;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: #7d8377;
    font-size: 10px;
    text-decoration: none;
    flex: 1;
    border-radius: 8px;
  }
  .mobile-nav a svg {
    width: 19px;
    height: 19px;
  }
  .mobile-nav a.active {
    color: var(--orange);
    background: var(--orange-soft);
  }
  #toast {
    bottom: 90px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 34px 25px;
  }
  .login-logo {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
  }
  .login-story h1 {
    font-size: 33px;
    max-width: 320px;
    margin: 8px 0 12px;
  }
  .login-story p {
    font-size: 13px;
    margin: 0;
  }
  .login-story .story-foot {
    display: none;
  }
  .login-form {
    padding: 34px 25px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .login-form form {
    max-width: none;
  }
  .details {
    gap: 15px;
  }
  .desktop-only {
    display: none;
  }
  .table-scroll {
    border-radius: 8px;
  }
  .stage-row {
    grid-template-columns: 100px 1fr 28px;
    gap: 10px;
  }
  .report-meta {
    font-size: 11px;
  }
  .form-actions button {
    flex: 1;
  }
  .import-row {
    padding: 16px;
  }
  .panel-footer {
    padding: 14px 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button,
  .nav-item {
    transition: background 0.15s ease;
  }
  #toast {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      transform: translateY(5px);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}
button svg,
.button svg,
.date-chip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.stat strong {
  overflow-wrap: anywhere;
}
.details dd.time-value {
  font-size: 28px;
  letter-spacing: -0.6px;
}
.page-heading > div:first-child {
  min-width: 0;
  flex: 1;
}
.page-heading h1,
.list-row strong {
  overflow-wrap: anywhere;
}
.lead-card .phone,
.lead-card p,
.timeline p {
  font-size: 16px;
}
.team-performance {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
}
.performance-card {
  min-width: 0;
}
.remark-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.remark-row + .remark-row {
  border-top: 1px solid var(--line);
}
.performance-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#dial-status {
  display: block;
}
#dial-status p {
  margin: 8px 0 12px;
}
@media (max-width: 600px) {
  .performance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
