:root {
  --bg: #f2f2f0;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #77736d;
  --line: #e5e1dc;
  --soft: #f7f4ef;
  --accent: #ff6a00;
  --accent-dark: #d95700;
  --green: #2e8f5b;
  --shadow: 0 18px 45px rgba(22, 22, 22, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.boot-page {
  min-height: 100vh;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(251, 250, 249, 0.78);
  backdrop-filter: blur(8px);
}

.site-loader.active {
  display: flex;
}

.site-loader-card {
  min-width: 190px;
  padding: 24px 28px;
  display: grid;
  gap: 14px;
  justify-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(30, 28, 26, 0.16);
}

.site-loader-card strong {
  color: #9a4b1f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lottie-loader {
  position: relative;
  width: 72px;
  height: 72px;
}

.lottie-loader span {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: #eb6534;
  border-right-color: #eb6534;
  animation: loader-spin 1.15s cubic-bezier(0.55, 0.06, 0.36, 1) infinite;
}

.lottie-loader span:nth-child(2) {
  inset: 14px;
  border-width: 8px;
  border-top-color: #ef8660;
  border-right-color: #ef8660;
  animation-duration: 1.35s;
  animation-direction: reverse;
}

.lottie-loader span:nth-child(3) {
  inset: 2px;
  border-width: 3px;
  border-top-color: #eb6534;
  border-right-color: #eb6534;
  animation-duration: 1.55s;
}

@keyframes loader-spin {
  to {
    transform: rotate(-360deg);
  }
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.login-panel,
.login-preview,
.panel,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 34px;
}

.login-logo {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  background: #333534;
}

.login-panel h1,
.topbar h1 {
  margin: 18px 0 10px;
  font-size: 28px;
}

.login-panel p,
.eyebrow,
.side-brand span,
small,
.form-message {
  color: var(--muted);
}

.login-preview {
  min-height: 430px;
  padding: 0;
  overflow: hidden;
}

.login-preview img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #efede9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-brand strong,
.side-brand span {
  display: block;
}

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

.nav-btn,
.ghost-btn,
.soft-btn,
.primary-btn {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  white-space: nowrap;
}

.nav-btn,
.ghost-btn,
.soft-btn {
  background: transparent;
  color: var(--ink);
}

.nav-btn {
  justify-content: flex-start;
}

.nav-btn.active,
.soft-btn {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

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

.logout-btn {
  margin-top: auto;
  justify-content: flex-start;
}

.main-panel {
  padding: 28px;
  min-width: 0;
}

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

.topbar h1 {
  margin: 8px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card strong {
  margin-top: 10px;
  font-size: 24px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.split-layout.wide-first {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.panel {
  padding: 20px;
  min-width: 0;
}

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

.panel-head h2 {
  margin: 0;
  font-size: 19px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff3e8;
  color: #9a4100;
  font-size: 13px;
}

.client-list,
.timeline,
.user-grid {
  display: grid;
  gap: 12px;
}

.client-row,
.timeline-item,
.user-card {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: 14px;
}

.client-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.client-row strong,
.client-row span,
td strong,
td small {
  display: block;
}

.timeline-item p {
  margin: 8px 0;
}

.user-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.user-card {
  display: grid;
  gap: 7px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

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

.form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #4a4742;
  font-size: 14px;
}

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

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
}

.full,
.form-grid .primary-btn,
.form-message {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 20px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
}

.empty-state {
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

@media (max-width: 900px) {
  .login-shell,
  .app-shell,
  .split-layout,
  .split-layout.wide-first,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-btn,
  .logout-btn {
    justify-content: center;
  }

  .login-preview {
    display: none;
  }
}

@media (max-width: 620px) {
  .login-page,
  .main-panel {
    padding: 16px;
  }

  .login-panel,
  .panel {
    padding: 18px;
  }

  .topbar,
  .client-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid.compact,
  .nav-list {
    grid-template-columns: 1fr;
  }
}

/* Follow-up Pipeline screen */
.operator-shell {
  --op-bg: #fbfaf9;
  --op-sidebar: #f7f7f6;
  --op-ink: #26262a;
  --op-muted: #8b8d93;
  --op-faint: #c8c9ce;
  --op-line: #ebebed;
  --op-card: #ffffff;
  --op-orange: #f26d21;
  --op-orange-dark: #d85c10;
  --op-shadow: 0 22px 42px rgba(32, 30, 28, 0.08);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--op-bg);
  color: var(--op-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

.operator-shell button,
.operator-shell input {
  font: inherit;
}

.ui-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.operator-sidebar {
  height: 100vh;
  background: var(--op-sidebar);
  border-right: 1px solid var(--op-line);
  padding: 30px 20px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 58px;
}

.operator-brand {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  column-gap: 13px;
}

.operator-logo {
  width: 62px;
  height: 62px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  background: #333534;
  box-shadow: 0 14px 28px rgba(32, 30, 28, 0.08);
}

.operator-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 900;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.operator-brand span {
  display: block;
  margin-top: 8px;
  color: #74767c;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.operator-nav {
  display: grid;
  gap: 14px;
}

.operator-nav-link {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #74767c;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  padding: 0 15px;
  text-align: left;
}

.operator-nav-link span {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 2.15px;
  text-transform: uppercase;
  white-space: nowrap;
}

.operator-nav-link.active {
  min-height: 77px;
  color: var(--op-orange);
  background: #fff;
  box-shadow: 0 10px 22px rgba(32, 30, 28, 0.04);
}

.operator-nav-link.active .ui-icon {
  background: var(--op-orange);
  color: #fff;
  border-radius: 3px;
  padding: 3px;
  stroke-width: 2.2;
}

.operator-nav-link.subtle {
  margin-top: 6px;
  padding-left: 31px;
}

.operator-sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 24px;
  padding-bottom: 12px;
}

.operator-sidebar-bottom::before {
  content: "";
  height: 1px;
  background: var(--op-line);
  margin-bottom: 22px;
}

.quick-action {
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--op-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1.15;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(32, 30, 28, 0.04);
}

.backup-actions {
  display: grid;
  gap: 10px;
}

.backup-list-card {
  width: min(1040px, 100%);
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 44px rgba(36, 33, 31, 0.05);
}

.backup-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.backup-list-header span {
  color: #8f9299;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.backup-list-header h2 {
  margin: 8px 0 6px;
  color: var(--op-ink);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
}

.backup-list-header p {
  margin: 0;
  color: #73757d;
  font-size: 14px;
  line-height: 1.5;
}

.backup-list-tools {
  min-width: 220px;
  display: grid;
  gap: 10px;
}

.backup-list-body {
  display: grid;
  gap: 12px;
}

.backup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 7px;
  background: #fbfaf9;
}

.backup-row-main strong {
  display: block;
  color: var(--op-ink);
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.backup-row-main small,
.backup-row-meta span {
  color: #8f9299;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.backup-row-actions {
  display: inline-flex;
  gap: 8px;
}

.backup-row-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
  background: #fff0e5;
  color: #9b4b17;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.backup-upload {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #f3f0ef;
  color: #8a8d94;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1.15;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: pointer;
}

.backup-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.operator-main {
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.65), rgba(255,255,255,0)),
    var(--op-bg);
}

.operator-topbar {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 30px 0 33px;
  background: #fff;
  border-bottom: 1px solid var(--op-line);
}

.operator-topbar h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.current-top-title {
  display: flex;
  align-items: center;
  gap: 25px;
}

.current-top-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.current-top-title span {
  position: relative;
  color: #74767c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.current-top-title span::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: #d9d9dc;
}

.pipeline-search {
  width: 250px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-radius: 5px;
  background: #eceaea;
  color: #9da0a6;
}

.pipeline-search .ui-icon {
  width: 19px;
  height: 19px;
}

.pipeline-search input {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: #73767e;
  font-size: 15px;
  outline: 0;
}

.pipeline-search input::placeholder {
  color: #73767e;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 23px;
  color: #74767c;
}

.profile-menu-wrap {
  position: relative;
}

.top-icon,
.profile-dot {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #74767c;
}

.top-icon .ui-icon {
  width: 26px;
  height: 26px;
}

.top-icon.notification::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9c5b20;
}

.profile-dot {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f1f1;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.04);
}

.profile-dot img,
.profile-menu-avatar img,
.profile-page-avatar img,
.user-row > span img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-dot span,
.profile-menu-avatar span,
.profile-page-avatar span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--op-orange);
  font-size: 13px;
  font-weight: 900;
}

.profile-menu {
  position: absolute;
  top: 56px;
  right: 0;
  z-index: 30;
  width: 262px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(32, 30, 28, 0.18);
}

.profile-menu header {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeef;
}

.profile-menu-avatar {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: #f1eeee;
}

.profile-menu strong {
  display: block;
  color: #25262b;
  font-size: 13px;
  font-weight: 900;
}

.profile-menu small {
  display: block;
  margin-top: 4px;
  color: #8f9299;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.profile-menu button {
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: #fbfaf9;
  color: #74767c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-align: left;
  text-transform: uppercase;
  padding: 0 12px;
}

.profile-menu button:last-child {
  color: #9b4b17;
  background: #fff0e5;
}

.pipeline-board {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px repeat(4, minmax(260px, 1fr));
  border-left: 1px solid var(--op-line);
  overflow-x: auto;
  overflow-y: hidden;
  max-height: calc(100vh - 108px);
}

.active-leads,
.day-column {
  min-width: 0;
  border-right: 1px solid var(--op-line);
  min-height: 0;
}

.active-leads {
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, #fbfaf9 0%, #f8f7f6 100%);
  padding: 0 16px;
  overflow-y: auto;
}

.leads-heading,
.day-header {
  height: 94px;
  border-bottom: 1px solid var(--op-line);
}

.leads-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 28px;
}

.leads-heading span {
  color: #74767c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.leads-heading strong {
  color: var(--op-orange);
  font-size: 11px;
  font-weight: 800;
}

.lead-stack {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 18px;
}

.lead-live-search {
  height: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 13px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(46, 43, 39, 0.035);
}

.lead-live-search .ui-icon {
  width: 18px;
  height: 18px;
  color: #a9abb1;
}

.lead-live-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--op-ink);
  font-size: 13px;
  font-weight: 700;
}

.lead-live-search input::placeholder {
  color: #b3b5ba;
}

.empty-leads,
.empty-activity {
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 2px dashed #e4e3e3;
  border-radius: 7px;
  color: #bbbcc1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-align: center;
  text-transform: uppercase;
}

.empty-activity {
  min-height: 160px;
  margin-top: 18px;
  background: #fbfaf9;
}

.lead-card {
  min-height: 96px;
  padding: 16px 16px 14px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(46, 43, 39, 0.035);
  cursor: pointer;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  border: 1px solid transparent;
}

.lead-card:hover,
.lead-card:focus,
.lead-card.selected {
  border-color: rgba(242, 109, 33, 0.36);
  box-shadow: 0 18px 34px rgba(46, 43, 39, 0.07);
}

.lead-card:active {
  transform: translateY(1px);
}

.lead-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.lead-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
}

.lead-card p {
  margin: 12px 0 13px;
  color: #83868d;
  font-size: 13px;
}

.lead-status {
  min-width: 38px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: #fff0e5;
  color: var(--op-orange);
  font-size: 11px;
  font-weight: 900;
}

.lead-status.sent {
  background: #f3f2f2;
  color: #b8b9be;
}

.lead-owner {
  color: #a8abb1;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.avatar-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef0f2;
  display: inline-block;
}

.lead-arrow {
  margin-left: auto;
  color: #aeb0b5;
}

.lead-arrow .ui-icon {
  width: 13px;
  height: 13px;
}

.day-column {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.38);
  padding: 0 16px;
  overflow-y: auto;
}

.day-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 24px;
  background: #fff;
}

.day-header > div {
  min-width: 0;
}

.day-header .calendar-shift:last-child {
  margin-left: auto;
}

.day-header h2 {
  margin: 0;
  color: #292a2e;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 400;
}

.day-header.today h2 {
  color: var(--op-orange);
}

.day-header span {
  display: block;
  margin-top: 9px;
  color: #9b9ea5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.1px;
  text-transform: uppercase;
}

.calendar-shift {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  margin-top: 2px;
  border: 1px solid #ececee;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #92959c;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(36, 33, 31, 0.04);
}

.calendar-shift:hover {
  color: var(--op-orange);
  border-color: rgba(242, 109, 33, 0.3);
}

.pipeline-card {
  position: relative;
  width: calc(100% - 32px);
  min-height: 212px;
  margin-top: 20px;
  margin-left: 16px;
  margin-right: 16px;
  padding: 20px 20px 16px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 23px 40px rgba(36, 33, 31, 0.06);
}

.pipeline-card.accented {
  width: calc(100% - 32px);
  min-height: 236px;
  border-left: 4px solid var(--op-orange);
  padding-left: 16px;
}

.pipeline-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b0b2b8;
}

.pipeline-card-user {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pipeline-card-user strong {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 1.8px;
  color: #787b83;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-card-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.pipeline-card-amount {
  color: #9b4b17;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pipeline-time-avatar {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.9;
  background: rgba(241, 238, 238, 0.9);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.04);
}

.pipeline-time-avatar img,
.pipeline-time-avatar > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.pipeline-time-avatar img {
  object-fit: cover;
}

.pipeline-time-avatar > span {
  color: var(--op-orange);
  font-size: 12px;
  font-weight: 900;
}

.pipeline-card-meta .ui-icon {
  width: 21px;
  height: 21px;
  color: #cdced2;
}

.pipeline-card-schedule {
  margin: 14px 0 12px;
  color: #b0b2b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.pipeline-card h3 {
  margin: 14px 0 10px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
}

.pipeline-card p {
  margin: 0 0 18px;
  color: #666870;
  font-size: 13px;
  white-space: nowrap;
}

.pipeline-card.accented p {
  color: #9b4b17;
}

.tag-stack {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.tag-stack span {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding: 0 8px;
  border-radius: 2px;
  background: #e7e5e4;
  color: #292a2e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.card-divider {
  height: 1px;
  background: #e9e9eb;
  margin: 18px 0 12px;
}

.pipeline-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d6067;
  font-size: 11px;
}

.pipeline-owner strong {
  line-height: 1.45;
}

.pipeline-owner button {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--op-orange);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.small-card {
  width: calc(100% - 32px);
  min-height: 158px;
  margin-top: 34px;
  margin-left: 16px;
  margin-right: 16px;
  padding: 34px 28px 20px;
}

.small-card h3 {
  margin-top: 0;
}

.empty-followup {
  height: 156px;
  margin: 34px 16px 0;
  display: grid;
  place-items: center;
  border: 2px dashed #dedede;
  border-radius: 8px;
  color: #c4c5ca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.floating-add {
  position: absolute;
  right: 31px;
  bottom: 32px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d96710;
  box-shadow: 0 18px 35px rgba(217, 103, 16, 0.18);
}

.floating-add .ui-icon {
  width: 28px;
  height: 28px;
}

.dashboard-global-search {
  width: min(360px, 36vw);
}

.view-switch {
  height: 36px;
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  padding: 4px;
  border-radius: 8px;
  background: #f3f0ef;
}

.view-switch button {
  min-width: 92px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #74767c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.view-switch button.active {
  color: #9b4b17;
  background: #fff;
  box-shadow: 0 5px 12px rgba(36, 33, 31, 0.05);
}

.dashboard-screen {
  min-height: 0;
  padding: 30px 34px 34px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    #fbfaf9;
  overflow: auto;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-hero h1 {
  margin: 0;
  color: #202125;
  font-size: 40px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
}

.dashboard-hero p {
  margin: 9px 0 0;
  color: #777982;
  font-size: 15px;
  font-weight: 600;
}

.dashboard-date {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #26262a;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(36, 33, 31, 0.035);
}

.dashboard-date .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--op-orange);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  margin-top: 28px;
}

.dashboard-main-stack {
  display: grid;
  gap: 28px;
}

.dashboard-side-stack {
  display: grid;
  align-content: end;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(230px, 1fr) minmax(230px, 0.98fr);
  gap: 22px;
}

.dash-card,
.trajectory-card,
.accounts-card,
.priority-card,
.performance-card {
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 20px 36px rgba(36, 33, 31, 0.045);
}

.dash-card {
  min-height: 142px;
  padding: 24px 28px;
}

.dash-card > span {
  display: block;
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.5px;
  line-height: 1.5;
  text-transform: uppercase;
}

.dash-card strong {
  display: inline-block;
  margin-top: 12px;
  color: #24252a;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.revenue-card {
  position: relative;
  overflow: hidden;
}

.revenue-card::after {
  content: none;
}

.revenue-card b {
  margin-left: 10px;
  color: #61a66d;
  font-size: 12px;
}

.revenue-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.revenue-card small {
  color: #777982;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
}

.pulse-card strong small {
  color: #74767c;
  font-size: 16px;
  font-weight: 600;
}

.pulse-bar {
  height: 7px;
  margin-top: 22px;
  border-radius: 99px;
  background: #efecea;
  overflow: hidden;
}

.pulse-bar i {
  display: block;
  width: 68%;
  height: 100%;
  background: #a34f1b;
}

.pulse-card p {
  margin: 14px 0 0;
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pulse-card p b {
  color: var(--op-orange);
}

.action-counter {
  color: #fff;
  background: linear-gradient(135deg, #dd752c, #a65317);
}

.action-counter > span,
.action-counter p {
  color: rgba(255, 255, 255, 0.78);
}

.action-counter strong {
  color: #fff;
  font-size: 42px;
}

.action-counter p {
  display: inline-block;
  margin: 0 0 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.action-counter button {
  display: block;
  height: 34px;
  margin-top: 18px;
  border: 0;
  border-radius: 3px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.dashboard-content-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.7fr);
  gap: 22px;
}

.trajectory-card,
.accounts-card {
  min-height: 326px;
  padding: 28px 32px;
}

.trajectory-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.trajectory-card h2,
.accounts-card h2,
.priority-card h2,
.performance-card h2 {
  margin: 0;
  color: #25262b;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.trajectory-card p,
.accounts-card p {
  margin: 7px 0 0;
  color: #74767c;
  font-size: 12px;
}

.chart-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  align-self: start;
  gap: 4px;
}

.chart-toggle button {
  height: 24px;
  border: 0;
  border-radius: 3px;
  padding: 0 10px;
  background: #f3f0ef;
  color: #9b9ea5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.chart-toggle button.active {
  background: #202125;
  color: #fff;
}

.bar-chart {
  height: 205px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 18px;
  margin-top: 35px;
}

.bar-chart span {
  position: relative;
  min-height: 12px;
  height: var(--bar-height);
  border-radius: 3px 3px 0 0;
  background: #f1eeee;
}

.bar-chart span.active {
  background: #fff;
  box-shadow: inset 0 0 0 2px #ff9a63;
}

.bar-chart span b {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--op-orange);
  font-size: 9px;
  font-weight: 900;
}

.accounts-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.map-placeholder {
  display: grid;
  place-items: center;
  margin: 20px -32px 0;
  background:
    linear-gradient(45deg, rgba(0,0,0,0.018) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,0.018) 25%, transparent 25%),
    #f6f5f4;
  background-size: 18px 18px;
  color: #c7c7c9;
}

.map-placeholder .ui-icon {
  width: 42px;
  height: 42px;
}

.accounts-card footer {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: #fff;
  box-shadow: 0 -12px 25px rgba(36, 33, 31, 0.03);
}

.accounts-card footer span {
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1.5;
  text-transform: uppercase;
}

.accounts-card footer strong {
  color: #25262b;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.accounts-card footer b {
  color: #9b4b17;
  font-size: 16px;
}

.priority-card {
  min-height: 232px;
  padding: 29px 34px;
}

.team-stats-card {
  min-height: 180px;
  padding: 29px 34px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 20px 36px rgba(36, 33, 31, 0.045);
}

.team-stats-card header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.team-stats-card header span {
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.team-stats-list {
  display: grid;
  gap: 12px;
}

.team-stat-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 6px;
  background: #fbfaf9;
}

.team-stat-user strong,
.team-stat-metric b {
  display: block;
  color: #25262b;
  font-size: 14px;
  font-weight: 900;
}

.team-stat-user small,
.team-stat-metric span {
  display: block;
  margin-top: 4px;
  color: #8a8d94;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.priority-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.priority-card header button {
  border: 0;
  background: transparent;
  color: #9b4b17;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.priority-list {
  display: grid;
  gap: 14px;
}

.priority-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 116px 90px;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 5px;
  background: #fbfaf9;
}

.priority-row[role="button"] {
  cursor: pointer;
}

.priority-row[role="button"]:hover {
  box-shadow: inset 0 0 0 1px #f0c4a5;
}

.priority-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eef0f2;
  color: #9b9ea5;
}

.priority-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.priority-row strong,
.priority-value b {
  display: block;
  color: #25262b;
  font-size: 13px;
  font-weight: 900;
}

.priority-row small,
.priority-value small {
  display: block;
  margin-top: 4px;
  color: #858790;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.priority-row button {
  height: 33px;
  border: 1px solid #e5e2e0;
  border-radius: 4px;
  background: #fff;
  color: #25262b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.priority-row:first-child button {
  border-color: #202125;
  background: #202125;
  color: #fff;
}

.performance-card {
  min-height: 306px;
  padding: 30px 28px;
  color: #fff;
  background: #1f2025;
  overflow: hidden;
}

.medal-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #f27a22;
  font-size: 25px;
}

.performance-card h2 {
  margin-top: 32px;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
}

.performance-card p {
  margin: 18px 0 22px;
  color: #b7b8bd;
  font-size: 12px;
  line-height: 1.55;
}

.performance-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.performance-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.performance-card dt,
.performance-card dd {
  margin: 0;
  color: #a6a7ad;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.performance-card dd {
  color: #fff;
}

.current-clients-screen {
  min-height: 0;
  padding: 31px 34px 44px;
  background: #fbfaf9;
  overflow: auto;
}

.lookup-screen {
  min-height: 100%;
  padding: 34px 34px 46px;
  background: #fbfaf9;
  overflow: auto;
}

.lookup-hero {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 54px 24px 34px;
}

.lookup-hero > span {
  color: #9b4b17;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.lookup-hero h1 {
  margin: 0;
  color: #26262a;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  text-align: center;
}

.lookup-search-shell {
  width: min(980px, 100%);
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(36, 33, 31, 0.08);
}

.lookup-search-shell .ui-icon {
  width: 24px;
  height: 24px;
  color: #a0a3aa;
  flex: 0 0 auto;
}

.lookup-search-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #26262a;
  font-size: 20px;
  outline: 0;
}

.lookup-search-shell input::placeholder {
  color: #a0a3aa;
}

.lookup-results-panel {
  margin-top: 8px;
  padding: 24px 28px 28px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 40px rgba(36, 33, 31, 0.04);
}

.lookup-results-panel header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #efedeb;
}

.lookup-results-panel header strong {
  color: #26262a;
  font-size: 17px;
}

.lookup-results-panel header small {
  color: #8c9097;
  font-size: 13px;
}

.lookup-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.lookup-result-card {
  display: grid;
  gap: 16px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid #efebe8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fcfaf8 100%);
  box-shadow: 0 16px 32px rgba(36, 33, 31, 0.035);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lookup-result-card:hover,
.lookup-result-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 109, 33, 0.35);
  box-shadow: 0 22px 40px rgba(36, 33, 31, 0.08);
  outline: 0;
}

.lookup-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lookup-result-top strong {
  display: block;
  color: #26262a;
  font-size: 28px;
  line-height: 1.05;
}

.lookup-result-top small {
  display: block;
  margin-top: 8px;
  color: #8b8e95;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.lookup-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lookup-status.is-active {
  background: rgba(242, 109, 33, 0.12);
  color: #c45a0d;
}

.lookup-status.is-current {
  background: rgba(56, 70, 90, 0.1);
  color: #38465a;
}

.lookup-result-meta {
  display: grid;
  gap: 10px;
}

.lookup-result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #676b73;
  font-size: 13px;
}

.lookup-result-meta .ui-icon {
  width: 16px;
  height: 16px;
  color: #b0b2b8;
}

.lookup-result-bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.lookup-result-bottom b {
  color: #9b4b17;
  font-size: 16px;
}

.lookup-result-bottom small {
  color: #9b9ea5;
  font-size: 12px;
  text-align: right;
}

.lookup-empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 20px;
  border: 1px dashed #ddd8d3;
  border-radius: 8px;
  color: #9b9ea5;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.client-filter-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr);
  gap: 22px;
  align-items: end;
  padding: 26px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 23px 40px rgba(36, 33, 31, 0.045);
}

.database-search,
.service-filter {
  display: grid;
  gap: 10px;
}

.database-search > span,
.service-filter > span {
  color: #74767c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.database-search div {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 6px;
  background: #eceaea;
  color: #9b9ea5;
}

.database-search .ui-icon {
  width: 21px;
  height: 21px;
}

.database-search input,
.service-filter select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #74767c;
  font-size: 15px;
  outline: 0;
}

.service-filter select {
  height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  background: #eceaea;
  color: #26262a;
}

.apply-filter-btn {
  height: 48px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(90deg, #d97325, #b94f08);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(185, 79, 8, 0.2);
}

.current-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.current-stat {
  min-height: 104px;
  padding: 25px 28px;
  border-radius: 7px;
  background: #fff;
  border-left: 4px solid transparent;
  box-shadow: 0 18px 30px rgba(36, 33, 31, 0.035);
}

.current-stat.tone-orange {
  border-left-color: #c45a0d;
}

.current-stat.tone-dark {
  border-left-color: #4d4f56;
}

.current-stat.tone-blue {
  border-left-color: #8ca9b2;
}

.current-stat span {
  display: block;
  color: #74767c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.5;
  text-transform: uppercase;
}

.current-stat strong {
  display: block;
  margin-top: 7px;
  color: #26262a;
  font-size: 28px;
  font-weight: 400;
}

.database-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
  padding: 0 8px;
}

.database-head h2 {
  margin: 0;
  color: #9b9ea5;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.database-head div {
  display: flex;
  gap: 22px;
}

.database-head button {
  border: 0;
  background: transparent;
  color: #74767c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.database-head button:first-child {
  color: #9b4b17;
}

.client-index-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.current-client-row {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(135px, 0.8fr) minmax(150px, 0.8fr) minmax(190px, 1fr) minmax(150px, 0.8fr) 34px;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(36, 33, 31, 0.03);
  cursor: pointer;
}

.current-client-row:hover {
  box-shadow: 0 18px 34px rgba(36, 33, 31, 0.06);
}

.client-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.client-initial {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f2f2f1;
  color: var(--op-orange);
  font-size: 19px;
  font-weight: 900;
}

.client-identity strong {
  display: block;
  color: #26262a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.client-identity small,
.client-cell span {
  display: block;
  margin-top: 4px;
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.client-cell strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #26262a;
  font-size: 13px;
  font-weight: 900;
}

.client-cell strong small {
  color: #9b9ea5;
  font-size: 11px;
  font-weight: 600;
}

.client-cell b {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 2px;
  background: #e7e5e4;
  color: #4c4d52;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-cell.manager i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eef0f2;
}

.client-cell.status strong {
  color: #9b4b17;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.client-cell.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--op-orange);
}

.row-menu {
  border: 0;
  background: transparent;
  color: #a6a8ae;
  font-size: 24px;
  line-height: 1;
}

.current-row-actions {
  position: relative;
  display: grid;
  justify-items: end;
  z-index: 2;
}

.readonly-actions {
  justify-content: space-between;
}

.current-info-view {
  display: grid;
  gap: 18px;
}

.info-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-readonly-grid article,
.manager-view-card {
  padding: 16px 18px;
  border-radius: 8px;
  background: #fbfaf9;
}

.info-readonly-grid article.wide {
  grid-column: 1 / -1;
}

.info-readonly-grid span,
.manager-view-card small {
  display: block;
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.info-readonly-grid strong,
.manager-view-card strong {
  display: block;
  margin-top: 8px;
  color: #25262b;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.manager-view-card p {
  margin: 10px 0 0;
  color: #74767c;
  font-size: 13px;
  line-height: 1.5;
}

.current-row-menu {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 20;
  width: 210px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #eeeeef;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(32, 30, 28, 0.14);
}

.current-row-menu button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 0 10px;
  background: #fbfaf9;
  color: #55575f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-align: left;
  text-transform: uppercase;
}

.current-row-menu button:hover {
  background: #fff0e5;
  color: #9b4b17;
}

.pagination-dots {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 26px auto 0;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(36, 33, 31, 0.04);
}

.pagination-dots button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #74767c;
  font-weight: 900;
}

.pagination-dots button.active {
  background: var(--op-orange);
  color: #fff;
}

.create-client-screen {
  min-height: 0;
  padding: 36px 34px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.45), rgba(255,255,255,0)),
    #fbfaf9;
  overflow: auto;
}

.create-client-card {
  width: min(980px, 100%);
  display: grid;
  gap: 28px;
}

.create-client-header,
.manager-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.create-client-header span,
.manager-heading span {
  display: block;
  color: #8f9299;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.create-client-header h2,
.manager-heading h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.save-client-btn,
.add-manager-btn {
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  font-weight: 900;
}

.save-client-btn {
  color: #fff;
  background: var(--op-orange);
}

.add-manager-btn {
  color: var(--op-orange);
  background: #fff;
  box-shadow: 0 10px 22px rgba(32, 30, 28, 0.045);
}

.add-manager-btn .ui-icon {
  width: 18px;
  height: 18px;
}

.client-form-grid,
.upload-row,
.manager-card {
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 23px 40px rgba(36, 33, 31, 0.045);
}

.client-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 18px;
  padding: 24px;
}

.form-field {
  display: grid;
  gap: 9px;
  color: #74767c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-field.wide,
.form-field.full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid #e8e8ea;
  border-radius: 5px;
  background: #fbfbfb;
  color: var(--op-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 14px 15px;
  outline: 0;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #f3aa79;
  box-shadow: 0 0 0 3px rgba(242, 109, 33, 0.12);
}

.user-create-card {
  max-width: 980px;
}

.user-list-panel {
  width: min(980px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 23px 40px rgba(36, 33, 31, 0.045);
}

.user-list-panel h3 {
  margin: 0;
  color: #25262b;
  font-size: 18px;
  font-weight: 900;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fbfaf9;
}

.user-row.editing {
  align-items: start;
}

.user-row > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff0e5;
  color: var(--op-orange);
  font-weight: 900;
  overflow: hidden;
}

.user-row strong {
  display: block;
  color: #25262b;
  font-size: 14px;
  font-weight: 900;
}

.user-row small {
  display: block;
  margin-top: 4px;
  color: #8f9299;
  font-size: 11px;
  font-weight: 800;
}

.user-row b {
  color: #9b4b17;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.user-row-actions {
  display: flex;
  gap: 8px;
}

.user-row-actions button,
.user-edit-actions button {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  background: #f3f0ef;
  color: #7f8087;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.user-row-actions button:first-child,
.user-edit-actions button:last-child {
  background: #202125;
  color: #fff;
}

.user-row-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.user-edit-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #ece8e5;
  border-radius: 6px;
  background: #fff;
}

.user-edit-panel label {
  display: grid;
  gap: 7px;
  color: #9699a1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.user-edit-panel label.wide {
  grid-column: span 2;
}

.user-edit-panel input,
.user-edit-panel select {
  min-height: 40px;
  width: 100%;
  border: 1px solid #dedbd8;
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: #25262b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.user-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.profile-page-card {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 23px 40px rgba(36, 33, 31, 0.045);
}

.profile-page-avatar {
  width: 118px;
  height: 118px;
  overflow: hidden;
  border-radius: 24px;
  background: #f1eeee;
}

.profile-page-card span {
  display: block;
  color: #8f9299;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.profile-page-card h2 {
  margin: 8px 0;
  color: #25262b;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.profile-page-card p {
  margin: 5px 0;
  color: #74767c;
  font-size: 14px;
  font-weight: 700;
}

.upload-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  padding: 20px;
}

.upload-box {
  position: relative;
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 2px dashed #dedede;
  border-radius: 7px;
  background: #fbfbfb;
  color: #74767c;
  text-align: center;
  overflow: hidden;
}

.upload-box .ui-icon {
  width: 29px;
  height: 29px;
  color: var(--op-orange);
}

.upload-box strong {
  color: var(--op-ink);
  font-size: 15px;
  font-weight: 900;
}

.upload-box span {
  color: #9da0a6;
  font-size: 12px;
  max-width: 92%;
  overflow-wrap: anywhere;
}

.upload-box small {
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.manager-section {
  display: grid;
  gap: 18px;
}

.manager-list {
  display: grid;
  gap: 16px;
}

.manager-card {
  position: relative;
  margin: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 24px 24px;
}

.manager-card legend {
  padding: 0;
  color: var(--op-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.remove-manager {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #a9abb1;
  background: #f5f5f5;
}

.remove-manager .ui-icon {
  width: 17px;
  height: 17px;
}

.form-success {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 5px;
  color: #9b4b17;
  background: #fff0e5;
  font-weight: 800;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(210, 210, 210, 0.62);
  backdrop-filter: blur(5px);
}

.client-detail-panel {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  width: 504px;
  max-width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  color: var(--op-ink);
  box-shadow: -28px 0 48px rgba(32, 30, 28, 0.12);
  overflow: hidden;
}

.detail-header {
  position: relative;
  padding: 28px 32px 24px;
  border-bottom: 1px solid #eeeeef;
}

.detail-close {
  position: absolute;
  top: 25px;
  right: 28px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #989ba2;
  font-size: 34px;
  line-height: 1;
}

.detail-header h2 {
  margin: 0;
  padding-right: 48px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.detail-header p {
  margin: 8px 0 24px;
  color: #6b6e75;
  font-size: 15px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-meta-grid article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: 6px;
  background: #f6f3f2;
}

.detail-meta-grid span {
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.detail-meta-grid strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.detail-meta-grid .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--op-orange);
}

.detail-body {
  min-height: 0;
  overflow: auto;
  padding: 28px 32px;
}

.detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  border-radius: 10px;
  background: #f3f0ef;
}

.detail-tabs button {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #74767c;
  font-weight: 900;
}

.detail-tabs button.active {
  background: #fff;
  color: #9b4b17;
  box-shadow: inset 0 0 0 2px #1668d8;
}

.client-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.client-data-grid article {
  min-height: 58px;
  padding: 12px;
  border-radius: 5px;
  background: #fbfaf9;
}

.client-data-grid span {
  display: block;
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.client-data-grid strong {
  display: block;
  margin-top: 7px;
  color: #303136;
  font-size: 12px;
  line-height: 1.35;
}

.full-info {
  grid-column: 1 / -1;
}

.info-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.info-edit-form label,
.manager-edit-card label,
.mini-edit-form label {
  display: grid;
  gap: 7px;
  color: #8f9299;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.info-edit-form input,
.info-edit-form textarea,
.manager-edit-card input,
.manager-edit-card textarea,
.mini-edit-form input,
.mini-edit-form textarea {
  width: 100%;
  border: 1px solid #e8e8ea;
  border-radius: 5px;
  background: #fff;
  color: var(--op-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 11px 12px;
  outline: 0;
}

.info-counts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.info-counts article {
  min-height: 58px;
  padding: 12px;
  border-radius: 5px;
  background: #fbfaf9;
}

.info-counts span {
  display: block;
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.info-counts strong {
  display: block;
  margin-top: 7px;
  color: #303136;
  font-size: 12px;
}

.save-info-btn {
  grid-column: 1 / -1;
  height: 42px;
  border: 0;
  border-radius: 5px;
  background: #d96710;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.asset-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.asset-heading h3,
.info-managers h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.asset-heading span {
  display: block;
  margin-top: 5px;
  color: #9b9ea5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.asset-upload {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 6px;
  background: #fff0e5;
  color: #9b4b17;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
}

.asset-upload .ui-icon {
  width: 16px;
  height: 16px;
}

.asset-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.asset-upload-control,
.inline-upload-block {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.asset-upload-control small,
.inline-upload-block small {
  max-width: 230px;
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.asset-upload-control [data-file-summary].is-error,
.inline-upload-block [data-file-summary].is-error,
.upload-box [data-file-summary].is-error {
  color: #c14d2b;
}

.asset-list,
.gallery-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.asset-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fbfaf9;
}

.asset-row .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--op-orange);
}

.asset-row strong,
.gallery-tile strong {
  min-width: 0;
  color: #303136;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.asset-row span {
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gallery-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-tile {
  min-height: 118px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fafafa, #f0f0ef);
  text-align: center;
}

.editable-gallery {
  align-content: center;
}

.gallery-tile span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #b9bbc0;
}

.gallery-tile span img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.empty-asset {
  min-height: 138px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  border: 2px dashed #e0e0e2;
  border-radius: 8px;
  color: #aeb0b5;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

.info-grid {
  margin-top: 22px;
}

.info-managers {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.info-managers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.info-manager-list {
  display: grid;
  gap: 12px;
}

.manager-edit-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 58px 14px 14px;
  border-radius: 6px;
  background: #fbfaf9;
}

.manager-edit-card > button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #f1eeee;
  color: #a4a6ac;
}

.manager-edit-card > button .ui-icon {
  width: 15px;
  height: 15px;
}

.item-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.item-actions button,
.item-actions a {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  background: #f1eeee;
  color: #8f9299;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
}

.item-actions button:first-child,
.item-actions a:first-child {
  color: #9b4b17;
  background: #fff0e5;
}

.mini-edit-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.mini-edit-form button {
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: #d96710;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.activity-edit-form {
  margin-top: 10px;
}

.activity-heading,
.vault-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.activity-heading {
  margin-top: 24px;
}

.activity-heading h3,
.vault-heading h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.activity-heading button {
  border: 0;
  background: transparent;
  color: #9b4b17;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-inline-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 7px;
  background: #fbfaf9;
  border: 1px solid #eeeeef;
}

.segmented-type {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.segmented-type label {
  display: block;
}

.segmented-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-type span {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f1eeee;
  color: #74767c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.segmented-type input:checked + span {
  background: #fff;
  color: #9b4b17;
  box-shadow: inset 0 0 0 1px rgba(155, 75, 23, 0.16);
}

.detail-inline-form label {
  display: grid;
  gap: 7px;
  color: #8f9299;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.detail-inline-form textarea,
.detail-inline-form input[type="date"],
.detail-inline-form input[type="time"],
.detail-inline-form input[type="text"] {
  border: 1px solid #e8e8ea;
  border-radius: 5px;
  background: #fff;
  color: var(--op-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 11px 12px;
  outline: 0;
}

.mini-calendar {
  display: grid;
  gap: 10px;
}

.mini-calendar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-calendar header strong {
  color: #303136;
  font-size: 13px;
  font-weight: 900;
}

.mini-calendar header span {
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.mini-calendar-grid button {
  min-height: 54px;
  border: 1px solid #e8e8ea;
  border-radius: 6px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: #fff;
  color: #74767c;
}

.mini-calendar-grid button span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mini-calendar-grid button strong {
  color: #303136;
  font-size: 15px;
  font-weight: 900;
}

.mini-calendar-grid button.active {
  border-color: rgba(242, 109, 33, 0.5);
  background: #fff0e5;
  color: #9b4b17;
}

.inline-upload {
  min-height: 42px;
  grid-template-columns: auto 1fr;
  align-items: center;
  position: relative;
  padding: 0 12px;
  border: 1px dashed #d9d9dc;
  border-radius: 5px;
  background: #fff;
  color: #9b4b17;
  overflow: hidden;
}

.inline-upload .ui-icon {
  width: 18px;
  height: 18px;
}

.inline-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.date-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inline-actions button {
  height: 38px;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.inline-actions button:first-child {
  background: #f1eeee;
  color: #8f9299;
}

.inline-actions button:last-child {
  background: var(--op-orange);
  color: #fff;
}

.activity-list {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 24px;
  padding-left: 34px;
}

.activity-list::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #ececef;
}

.activity-item {
  position: relative;
}

.activity-icon {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0e5;
  color: var(--op-orange);
}

.activity-icon .ui-icon {
  width: 12px;
  height: 12px;
}

.activity-item header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.activity-item strong {
  font-size: 14px;
  font-weight: 900;
}

.activity-item time {
  color: #9b9ea5;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.activity-item p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 3px;
  background: #fbfaf9;
  color: #676970;
  font-size: 13px;
  line-height: 1.55;
}

.activity-item p small {
  display: block;
  margin-top: 8px;
  color: #9b4b17;
  font-size: 11px;
  font-weight: 900;
}

.activity-item p small button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #9b4b17;
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
}

.activity-item.missed strong,
.activity-item.missed .activity-icon {
  color: #c53030;
}

.activity-item.missed .activity-icon {
  background: #fff5f5;
}

.vault-heading {
  margin-top: 32px;
}

.vault-heading span {
  color: #9b9ea5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.vault-grid span {
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: linear-gradient(135deg, #f9f9f9, #f0f0ef);
  color: #b9bbc0;
}

.vault-grid .ui-icon {
  width: 18px;
  height: 18px;
}

.detail-actions {
  padding: 24px 32px 28px;
  border-top: 1px solid #eeeeef;
  background: #fff;
  display: grid;
  gap: 16px;
}

.next-followup,
.lost-btn,
.won-btn {
  height: 48px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.next-followup {
  background: #f6f3f2;
  color: #222328;
}

.detail-actions > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lost-btn {
  background: #f6f6f6;
  color: #a4a6ac;
}

.won-btn {
  background: #d96710;
  color: #fff;
  box-shadow: 0 18px 34px rgba(217, 103, 16, 0.2);
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(35, 35, 38, 0.24);
}

.confirm-dialog {
  position: fixed;
  z-index: 61;
  right: 92px;
  bottom: 118px;
  width: min(360px, calc(100vw - 34px));
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(32, 30, 28, 0.2);
}

.followup-edit-dialog {
  top: 50%;
  right: 50%;
  bottom: auto;
  width: min(560px, calc(100vw - 34px));
  transform: translate(50%, -50%);
}

.followup-edit-dialog form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.followup-edit-dialog > form > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-dialog h3 {
  margin: 0;
  color: var(--op-ink);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.confirm-dialog p {
  margin: 10px 0 18px;
  color: #696b72;
  font-size: 13px;
  line-height: 1.5;
}

.confirm-dialog > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-dialog button {
  height: 42px;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.confirm-dialog button:first-child {
  background: #f1eeee;
  color: #8f9299;
}

.confirm-won {
  background: #d96710;
  color: #fff;
}

.confirm-lost {
  background: #2f3035;
  color: #fff;
}

@media (max-width: 1050px) {
  .operator-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .operator-sidebar {
    padding-left: 18px;
    padding-right: 14px;
  }

  .pipeline-board {
    grid-template-columns: 285px repeat(4, 260px);
    overflow-x: auto;
  }

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

  .dashboard-side-stack {
    align-content: start;
  }

  .performance-card {
    min-height: 240px;
  }

  .client-form-grid,
  .upload-row,
  .manager-card,
  .client-filter-card,
  .current-stats,
  .current-client-row,
  .team-stat-row,
  .info-readonly-grid {
    grid-template-columns: 1fr;
  }

  .current-client-row {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .operator-shell {
    display: block;
    overflow: auto;
  }

  .operator-sidebar,
  .operator-main {
    height: auto;
  }

  .operator-sidebar {
    gap: 28px;
  }

  .operator-topbar {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    padding: 18px;
  }

  .pipeline-search {
    order: 3;
    width: 100%;
  }

  .dashboard-global-search {
    width: 100%;
  }

  .view-switch {
    order: 4;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-screen {
    padding: 24px 18px;
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-hero h1 {
    font-size: 34px;
  }

  .dashboard-kpis,
  .priority-row,
  .profile-page-card,
  .team-stat-row {
    grid-template-columns: 1fr;
  }

  .priority-row {
    align-items: stretch;
  }

  .user-row,
  .user-edit-panel {
    grid-template-columns: 1fr;
  }

  .user-row-actions,
  .user-edit-actions {
    justify-content: stretch;
  }

  .user-row-actions button,
  .user-edit-actions button {
    width: 100%;
  }

  .user-edit-panel label.wide {
    grid-column: auto;
  }

  .pipeline-board {
    min-height: 760px;
    grid-template-columns: 285px repeat(4, 260px);
    overflow-x: auto;
  }

  .create-client-screen {
    padding: 24px 18px;
  }

  .create-client-header,
  .manager-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .save-client-btn,
  .add-manager-btn {
    width: 100%;
  }

  .current-clients-screen {
    padding: 24px 18px;
  }

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

  .detail-backdrop {
    background: rgba(28, 28, 30, 0.42);
  }

  .client-detail-panel {
    inset: 18px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 36px);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }

  .confirm-dialog {
    right: 18px;
    left: 18px;
    bottom: 34px;
    width: auto;
  }

  .detail-header,
  .detail-body,
  .detail-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .detail-meta-grid,
  .client-data-grid,
  .info-edit-form,
  .info-counts,
  .manager-edit-card,
  .vault-grid,
  .gallery-list {
    grid-template-columns: 1fr;
  }

  .asset-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
