:root {
  --navy:#03172b;
  --navy2:#0a2946;
  --gold:#cc9b50;
  --gold-light:#f6dfb5;
  --ink:#183249;
  --muted:#738291;
  --line:#e4eaf0;
  --surface:#fff;
  --bg:#f4f7fa;
  --green:#12826c;
  --red:#bf4751;
  --shadow:0 8px 30px #17324b08
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  line-height:1.55
}
a {
  color:#285b81;
  text-decoration:none
}
a:hover {
  color:#9e702f
}
button,.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:9px;
  padding:11px 18px;
  background:var(--navy2);
  color:#fff;
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  cursor:pointer;
  transition:transform .18s,box-shadow .18s,background .18s;
  white-space:nowrap
}
button:hover,.button:hover {
  transform:translateY(-1px);
  box-shadow:0 4px 14px #03294b22;
  color:#fff;
  background:#123d60
}
button:disabled {
  opacity:.6;
  cursor:wait
}
.secondary {
  background:white;
  color:var(--ink);
  border-color:var(--line)
}
.secondary:hover {
  background:#edf2f6;
  color:var(--ink)
}
.danger-button {
  background:#fff0f1;
  color:var(--red);
  border-color:#f1c9cc
}
.danger-button:hover {
  background:var(--red);
  color:#fff
}
.full {
  width:100%
}
.sidebar {
  width:238px;
  position:fixed;
  inset:0 auto 0 0;
  background:linear-gradient(160deg,var(--navy),#07233c);
  color:#ced6df;
  z-index:30;
  display:flex;
  flex-direction:column;
  padding:15px 16px;
  overflow:auto
}
.brand {
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:2px;
  padding:0 20px 17px;
  border-bottom:1px solid #ffffff13
}
.brand img {
  width:142px;
  height:132px;
  object-fit:cover;
  border-radius:12px
}
.brand span {
  font-size:10px;
  letter-spacing:3px;
  color:var(--gold-light)
}
.nav-label {
  font-size:9px;
  letter-spacing:2px;
  color:#7491a9;
  margin:22px 16px 10px
}
nav {
  display:flex;
  flex-direction:column;
  gap:3px
}
nav a {
  display:flex;
  align-items:center;
  gap:11px;
  color:#a9bac9;
  font-size:12px;
  font-weight:500;
  padding:10px 13px;
  border-radius:8px;
  transition:background .2s,color .2s
}
nav a:hover {
  background:#ffffff09;
  color:#fff
}
nav a.active {
  background:linear-gradient(90deg,#c59a502b,#c59a5013);
  color:#f5d89f;
  border:1px solid #c59a502b
}
.nav-icon {
  font-size:19px;
  line-height:1;
  width:20px;
  text-align:center
}
.nav-count {
  margin-left:auto;
  font-size:10px;
  background:var(--gold);
  color:var(--navy);
  padding:1px 6px;
  border-radius:4px
}
.sidebar-bottom {
  margin-top:auto;
  padding:25px 12px 10px;
  color:#758da2
}
.sidebar-bottom p {
  font-size:9px;
  letter-spacing:1.5px;
  margin:0
}
.sidebar-bottom small {
  font-size:10px
}
.workspace {
  margin-left:238px
}
.topbar {
  height:80px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 35px;
  position:sticky;
  top:0;
  z-index:20
}
.breadcrumb {
  font-size:12px;
  color:var(--muted)
}
.breadcrumb span {
  margin:0 12px;
  color:#bec9d2
}
.top-actions {
  display:flex;
  align-items:center;
  gap:25px
}
.timezone {
  font-size:11px;
  color:var(--muted)
}
.profile {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font-size:12px
}
.profile b {
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  border-radius:50%;
  background:#f5ead8;
  color:#9d722f
}
.profile small {
  font-size:10px;
  display:block;
  color:var(--muted)
}
.icon-button {
  display:none;
  padding:6px 10px;
  background:#eef3f8;
  color:var(--ink)
}
.content {
  max-width:1720px;
  margin:auto;
  padding:30px 35px 45px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:25px
}
.eyebrow {
  font-size:9px;
  font-weight:700;
  letter-spacing:2px;
  color:#a67d3b
}
h1 {
  font-size:28px;
  font-weight:650;
  letter-spacing:-.8px;
  margin:4px 0
}
h2 {
  font-size:17px;
  font-weight:650;
  letter-spacing:-.25px;
  margin:0 0 13px
}
h3 {
  font-size:16px
}
p {
  margin:8px 0 17px
}
.page-heading-actions {
  display:flex;
  gap:16px;
  align-items:center
}
.date-pill {
  font-size:11px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:9px 13px;
  border-radius:7px;
  background:#fff
}
.hero {
  background:radial-gradient(ellipse at 85% 10%,#c79a5028,transparent 50%),linear-gradient(110deg,#092740,#03172b);
  border-radius:14px;
  color:#fff;
  padding:30px 35px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:35px;
  margin-bottom:22px;
  box-shadow:var(--shadow)
}
.hero h2 {
  font-size:27px;
  line-height:1.35;
  font-weight:550;
  margin:9px 0 12px
}
.hero p {
  color:#9eb1c2;
  font-size:12px;
  margin-bottom:0
}
.hero .eyebrow {
  color:#d8b77e
}
.hero-summary {
  min-width:240px;
  border-left:1px solid #ffffff18;
  padding-left:35px
}
.hero-summary>span {
  font-size:11px;
  color:#bdcbd7
}
.hero-summary>strong {
  font-size:38px;
  letter-spacing:-1px;
  display:block;
  color:#f7dfb7;
  font-weight:500
}
.hero-summary>small {
  display:block;
  color:#a2b4c3;
  font-size:11px
}
.stat-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:22px
}
.stat-card {
  border:1px solid var(--line);
  border-radius:12px;
  padding:21px 23px;
  background:#fff;
  box-shadow:var(--shadow);
  position:relative;
  transition:transform .2s
}
.stat-card:hover {
  transform:translateY(-3px)
}
.stat-card:before {
  content:'';
  width:3px;
  height:26px;
  background:var(--gold);
  position:absolute;
  left:0;
  top:22px;
  border-radius:0 3px 3px 0
}
.stat-card>span {
  font-size:11px;
  color:var(--muted)
}
.stat-card>strong {
  font-size:29px;
  font-weight:650;
  display:block;
  line-height:1.6;
  letter-spacing:-.6px
}
.stat-card>small {
  font-size:10px;
  color:#8e9aa5
}
.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  margin-bottom:22px;
  box-shadow:var(--shadow);
  animation:rise .35s ease both
}
.panel-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px
}
.panel-title h2 {
  margin:0
}
.panel-title>a {
  font-size:11px
}
.dashboard-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.dashboard-grid .panel {
  min-width:0
}
.stage-list {
  display:flex;
  flex-direction:column;
  gap:17px
}
.stage-list a {
  display:grid;
  grid-template-columns:110px 1fr 25px;
  align-items:center;
  gap:16px;
  color:var(--ink);
  font-size:11px
}
.stage-list b {
  text-align:right
}
progress {
  appearance:none;
  -webkit-appearance:none;
  border:0;
  border-radius:10px;
  overflow:hidden;
  height:6px;
  background:#edf1f5;
  width:100%
}
progress::-webkit-progress-bar {
  background:#edf1f5;
  border-radius:10px
}
progress::-webkit-progress-value {
  background:linear-gradient(90deg,#b48643,#e6c183);
  border-radius:10px
}
progress::-moz-progress-bar {
  background:var(--gold);
  border-radius:10px
}
.progress {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:120px;
  margin:9px 0
}
.progress span {
  font-size:10px
}
.hero progress::-webkit-progress-bar {
  background:#ffffff1a
}
.table-wrap {
  overflow-x:auto;
  width:100%
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:11px
}
th {
  background:#f7f9fb;
  color:#7c8996;
  font-size:9px;
  letter-spacing:.4px;
  font-weight:650;
  text-transform:uppercase;
  padding:13px 12px;
  border-bottom:1px solid var(--line);
  white-space:nowrap
}
td {
  padding:15px 12px;
  border-bottom:1px solid #edf1f4;
  vertical-align:top
}
td small {
  display:block;
  color:#8c98a3;
  font-size:10px;
  margin-top:3px
}
td strong {
  font-size:11px;
  font-weight:650
}
tr:hover td {
  background:#fbfcfd
}
.table-link {
  font-weight:650;
  color:var(--ink)
}
.positive {
  color:var(--green);
  font-weight:600
}
.badge {
  display:inline-block;
  padding:4px 8px;
  background:#eef3f8;
  color:#4a6b85;
  border:1px solid #dce6ee;
  border-radius:5px;
  font-size:9px;
  font-weight:600;
  white-space:nowrap
}
.badge.won {
  color:#157763;
  background:#e9f7f2;
  border-color:#cceadf
}
.badge.danger {
  color:var(--red);
  background:#fff0f1;
  border-color:#f2d7da
}
.muted {
  color:var(--muted)
}
.small {
  font-size:11px
}
.empty {
  text-align:center;
  color:#8a98a6;
  font-size:12px;
  padding:35px 15px
}
.list-item {
  padding:15px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-size:12px
}
.list-item small {
  display:block;
  color:var(--muted);
  font-size:10px
}
.followup-item {
  display:flex;
  align-items:center;
  gap:13px;
  border-bottom:1px solid #edf1f4;
  padding:12px 0;
  color:var(--ink)
}
.followup-item>div:nth-child(2) {
  flex:1
}
.followup-item strong {
  font-size:12px
}
.followup-item small {
  display:block;
  font-size:10px;
  color:var(--muted);
  max-width:300px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.time-chip {
  font-size:12px;
  font-weight:650;
  background:#edf4f9;
  padding:8px 10px;
  border-radius:7px;
  color:#436d8c
}
.time-chip small {
  font-size:9px;
  text-align:center
}
.time-chip.overdue {
  background:#fff1eb;
  color:#b5794d
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px
}
label {
  display:block;
  font-size:11px;
  font-weight:550;
  color:#536a7c;
  margin:12px 0 17px
}
input,select,textarea {
  width:100%;
  border:1px solid #dce4eb;
  border-radius:8px;
  padding:11px 12px;
  font:400 13px/1.4 "Segoe UI",Arial,sans-serif;
  background:#fff;
  color:var(--ink);
  margin-top:7px;
  outline:none;
  transition:border .2s,box-shadow .2s
}
input:focus,textarea:focus,select:focus {
  border-color:var(--gold);
  box-shadow:0 0 0 3px #d5ae6a18
}
input:disabled {
  background:#f4f6f8;
  color:#8d9aa6
}
textarea {
  resize:vertical;
  min-height:90px
}
input[type=file] {
  font-size:12px;
  padding:9px
}
.checkbox {
  display:flex;
  gap:9px;
  align-items:center;
  padding-top:10px
}
.checkbox input {
  width:17px;
  margin:0
}
.filters {
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:24px
}
.filters label {
  margin:0;
  flex:1;
  min-width:130px
}
.filters button,.filters .button {
  height:42px
}
.inline-form {
  display:flex;
  align-items:flex-end;
  gap:12px
}
.inline-form label {
  margin:0;
  min-width:150px
}
.narrow {
  max-width:960px
}
.notice {
  padding:13px 17px;
  border-radius:8px;
  margin:15px 0;
  font-size:12px;
  border:1px solid transparent
}
.notice.success {
  background:#eaf7f1;
  color:#21775e;
  border-color:#cbe8da
}
.notice.error {
  background:#fff0f1;
  color:#a64650;
  border-color:#efccd0
}
.notice.info {
  background:#eef4f9;
  color:#52748d;
  border-color:#d7e5ef
}
.chips {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:14px 0
}
.chips span {
  padding:6px 11px;
  border:1px solid #ffffff25;
  border-radius:5px;
  font-size:10px
}
.panel .chips span {
  border-color:var(--line)
}
.details {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px;
  margin:0
}
.details>div {
  padding:13px 0;
  border-bottom:1px solid #edf1f4;
  min-width:0
}
.details dt {
  font-size:10px;
  color:var(--muted)
}
.details dd {
  margin:5px 0 0;
  font-size:12px;
  overflow-wrap:anywhere
}
.lead-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
.lead-summary h2 {
  font-size:26px;
  margin:5px 0 10px
}
.row-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.timeline article {
  display:flex;
  gap:17px;
  position:relative;
  padding:4px 0 20px
}
.timeline article:before {
  content:'';
  position:absolute;
  top:13px;
  bottom:0;
  left:5px;
  width:1px;
  background:var(--line)
}
.timeline-dot {
  width:11px;
  height:11px;
  background:var(--gold);
  border:3px solid #f6ead4;
  border-radius:50%;
  position:relative;
  top:5px;
  flex-shrink:0
}
.timeline strong {
  font-size:12px
}
.timeline small {
  display:block;
  color:var(--muted);
  font-size:10px
}
.timeline p {
  font-size:12px;
  margin:7px 0 0;
  overflow-wrap:anywhere
}
.danger-panel {
  border-color:#edced1
}
.pagination {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px
}
.workspace-footer {
  padding:15px 35px;
  border-top:1px solid var(--line);
  color:#9aa6b1;
  font-size:10px;
  display:flex;
  justify-content:space-between
}
.bar-chart {
  display:flex;
  flex-direction:column;
  gap:13px;
  margin:20px 0 28px
}
.bar-chart>div {
  display:grid;
  grid-template-columns:150px 1fr 100px;
  gap:18px;
  align-items:center;
  font-size:11px
}
.bar-chart span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.bar-chart b {
  text-align:right
}
details {
  font-size:11px;
  margin-top:8px
}
summary {
  color:#557892;
  cursor:pointer
}
pre {
  font-size:10px;
  white-space:pre-wrap;
  max-width:550px;
  overflow-wrap:anywhere
}
dialog {
  border:1px solid var(--line);
  border-radius:15px;
  padding:25px;
  max-width:700px;
  width:calc(100% - 30px);
  box-shadow:0 20px 80px #03172b33
}
dialog::backdrop {
  background:#03172b66;
  backdrop-filter:blur(3px)
}
.dialog-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.dialog-header h2 {
  margin:7px 0
}
#reminder-items {
  max-height:50vh;
  overflow:auto
}
.reminder-card {
  display:block;
  padding:16px;
  border:1px solid #e8dcc7;
  background:#fffcf6;
  border-radius:8px;
  margin:12px 0;
  color:var(--ink)
}
.reminder-card strong {
  display:block
}
.reminder-card small {
  display:block;
  color:var(--muted);
  margin:5px 0
}
.login {
  min-height:100vh;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  background:#fff
}
.login-story {
  background:radial-gradient(ellipse at 80% 20%,#c49b5030,transparent 60%),linear-gradient(140deg,#092940,#011225);
  color:#fff;
  padding:45px 10%;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}
.login-story img {
  width:210px;
  border-radius:10px
}
.login-story h1 {
  font-size:39px;
  line-height:1.3;
  margin:16px 0 20px;
  font-weight:500
}
.login-story p {
  color:#a1b3c3;
  font-size:13px
}
.login-story .eyebrow {
  color:#e2c48f
}
.login-story .chips {
  margin-top:35px;
  margin-bottom:45px
}
.login-card {
  max-width:440px;
  width:100%;
  margin:auto;
  padding:45px
}
.login-card h2 {
  font-size:29px;
  line-height:1.35;
  margin:13px 0
}
.login-card form {
  margin:25px 0
}
.login-card footer {
  font-size:10px;
  color:#9ca8b2;
  margin-top:60px
}
.setup {
  display:grid;
  place-items:center;
  min-height:100vh;
  padding:30px
}
.setup-panel {
  width:100%;
  max-width:550px
}
.hidden {
  display:none!important
}
@keyframes rise {
  from {
    opacity:0;
    transform:translateY(8px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@media(min-width:1550px) {
  .content {
    padding:35px 50px
  }
  .hero {
    padding:35px 45px
  }
}
@media(max-width:1100px) {
  .stat-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .dashboard-grid {
    grid-template-columns:1fr
  }
  .hero-summary {
    min-width:200px
  }
  .hero h2 {
    font-size:22px
  }
  .content {
    padding:25px
  }
  .topbar {
    padding:0 25px
  }
  .timezone {
    display:none
  }
}
@media(max-width:800px) {
  .sidebar {
    transform:translateX(-100%);
    transition:transform .2s
  }
  .sidebar.open {
    transform:translateX(0);
    box-shadow:20px 0 80px #001b3655
  }
  .workspace {
    margin-left:0
  }
  .icon-button {
    display:block
  }
  .topbar {
    height:66px;
    padding:0 18px;
    gap:15px
  }
  .breadcrumb {
    margin-right:auto;
    font-size:11px
  }
  .content {
    padding:22px 16px
  }
  .page-heading {
    align-items:flex-start
  }
  h1 {
    font-size:24px
  }
  .date-pill {
    display:none
  }
  .hero {
    padding:25px;
    flex-direction:column;
    align-items:stretch;
    gap:22px
  }
  .hero-summary {
    border-left:0;
    border-top:1px solid #ffffff18;
    padding:18px 0 0
  }
  .hero-summary>strong {
    font-size:31px
  }
  .stat-grid {
    gap:12px
  }
  .stat-card {
    padding:17px
  }
  .stat-card>strong {
    font-size:24px
  }
  .panel {
    padding:19px
  }
  .form-grid,.details {
    grid-template-columns:1fr
  }
  .lead-summary {
    align-items:flex-start;
    flex-direction:column
  }
  .panel-title {
    flex-wrap:wrap
  }
  .workspace-footer span {
    display:none
  }
  .filters label {
    min-width:100%
  }
  .bar-chart>div {
    grid-template-columns:100px 1fr 80px;
    gap:10px
  }
  .profile span {
    display:none
  }
  .login {
    grid-template-columns:1fr
  }
  .login-story {
    padding:30px;
    min-height:280px
  }
  .login-story img {
    width:110px;
    align-self:flex-start
  }
  .login-story h1 {
    font-size:25px
  }
  .login-story .chips {
    display:none
  }
  .login-story p {
    margin-bottom:0
  }
  .login-card {
    padding:35px 28px
  }
  .login-card h2 {
    font-size:25px
  }
  .login-card footer {
    margin-top:25px
  }
  .inline-form {
    flex-wrap:wrap
  }
  .page-heading-actions .button {
    font-size:11px;
    padding:10px 13px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important
  }
}
.sidebar-close {
  display: none;
}
@media (max-width: 800px) {
  .sidebar-close {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    font-size: 20px;
    background: #ffffff15;
    border: 1px solid #ffffff20;
    color: #e4cfaa;
  }
}

