@font-face {
  font-family: Urbanist;
  src: url("/crm/urbanist.ttf") format("truetype");
  font-display: swap;
}
:root {
  --paper: #f8f5ee;
  --card: #fffdfa;
  --ink: #252a24;
  --muted: #707469;
  --sage: #7b876d;
  --pale: #e7e9df;
  --rust: #893f04;
  --orange: #c67f43;
  --peach: #ddb8a6;
  --line: #e3e0d7;
  --dark: #273128;
  --error: #a72e21;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Urbanist, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
a {
  color: var(--rust);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 800;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
}
small,
.muted {
  color: var(--muted);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loading {
  padding: 80px;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--dark);
  color: #f8f5ee;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 46px;
}
.brand img {
  width: 46px;
  height: 58px;
  object-fit: contain;
  background: #fffdfa;
  border-radius: 13px;
  padding: 4px;
}
.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.brand small {
  display: block;
  color: #c4cbbd;
  letter-spacing: 2px;
  font-size: 9px;
  margin-top: 7px;
}
.nav-title {
  font-size: 10px;
  letter-spacing: 2px;
  color: #abb6a4;
  margin: 0 12px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 10px;
  text-align: left;
  color: #cbd2c6;
  font-size: 15px;
}
.nav button:hover {
  background: #354035;
}
.nav .active,
.nav button.active:hover {
  background: #e7e9df;
  color: #273128;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 36px;
}
.studio-status {
  border: 1px solid #495446;
  border-radius: 12px;
  padding: 15px;
  line-height: 1.5;
}
.studio-status span {
  display: block;
  font-size: 12px;
  color: #c4cbbd;
  margin-top: 5px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #c2d79b;
  border-radius: 50%;
  margin-right: 7px;
}
.sidebar-bottom .quiet {
  color: #c4cbbd;
  margin-top: 17px;
}
.main {
  padding: 0 40px 40px;
  min-width: 0;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.topbar strong {
  color: var(--ink);
}
.top-meta {
  display: flex;
  align-items: center;
  gap: 17px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--pale);
  font-weight: 700;
  color: var(--dark);
}
.badge {
  font-size: 11px;
  border-radius: 6px;
  padding: 5px 8px;
  white-space: nowrap;
  display: inline-block;
  background: var(--pale);
  color: #46523e;
}
.demo-badge {
  color: var(--rust);
  background: #f2e2ce;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 30px 0 25px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 9px;
  color: var(--rust);
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 7px;
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  min-height: 42px;
  text-decoration: none;
  white-space: nowrap;
}
.primary {
  background: var(--rust);
  color: #fffdfa;
  box-shadow: 0 3px 0 #642e05;
}
.primary:hover {
  background: #713403;
}
.secondary {
  background: var(--card);
  border: 1px solid var(--line);
}
.quiet {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(110deg, #73391c, #9d572f);
  color: #fff8ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px;
  margin-bottom: 24px;
  min-height: 158px;
}
.hero h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 7px 0;
}
.hero p {
  font-size: 14px;
  color: #efdac8;
  max-width: 510px;
  line-height: 1.5;
}
.hero .eyebrow {
  color: #efd3b5;
}
.hero .record {
  width: 116px;
  height: 116px;
  flex-shrink: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #9f6740 0,
    #9f6740 3px,
    #a76e47 4px,
    #975c37 5px
  );
  box-shadow: 10px 12px 20px #43251666;
  display: grid;
  place-items: center;
  transform: rotate(-18deg);
  margin-right: 20px;
}
.record:before {
  content: "HOD";
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
  border: 5px solid #fff2d7;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  padding: 21px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.stat-top svg {
  color: var(--sage);
}
.stat strong {
  font-size: 31px;
  display: block;
  letter-spacing: -0.8px;
  margin: 12px 0 6px;
}
.stat small {
  font-size: 11px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 16px;
}
.section-heading h2 {
  font-size: 20px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
  min-width: 0;
}
.stage-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin: 25px 0;
}
.stage-block {
  border-top: 5px solid var(--stage);
  padding: 12px 3px;
}
.stage-block span {
  font-size: 11px;
  color: var(--muted);
}
.stage-block strong {
  font-size: 25px;
  display: block;
  margin-top: 10px;
}
.stage-New {
  --stage: #b9bdb1;
}
.stage-Contacted {
  --stage: #ddb8a6;
}
.stage-Qualified {
  --stage: #c67f43;
}
.stage-Proposal {
  --stage: #893f04;
}
.stage-Won {
  --stage: #7b876d;
}
.stage-Lost {
  --stage: #929083;
}
.list-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  text-align: left;
}
.list-row:hover .row-name {
  color: var(--rust);
}
.mini-avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: var(--pale);
  color: #556148;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-name {
  font-weight: 700;
  font-size: 14px;
  display: block;
}
.row-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  display: block;
  line-height: 1.4;
}
.row-value {
  font-size: 13px;
  text-align: right;
}
.row-value .badge {
  margin-top: 7px;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.task-toggle {
  width: 23px;
  height: 23px;
  border: 1px solid #b8bcad;
  border-radius: 50%;
  margin-top: 1px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.task-toggle svg {
  width: 15px;
  height: 15px;
}
.task-toggle.done {
  background: var(--sage);
  color: white;
}
.task-main {
  flex: 1;
  text-align: left;
  padding: 0;
}
.overdue {
  color: var(--error);
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.search {
  position: relative;
  flex: 1;
  min-width: 210px;
}
.search svg {
  position: absolute;
  left: 13px;
  top: 12px;
  color: var(--muted);
  width: 18px;
}
.search input {
  padding-left: 40px;
  width: 100%;
}
input,
select,
textarea {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  max-width: 100%;
  min-height: 42px;
}
select {
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.view-toggle button {
  padding: 10px;
}
.view-toggle .selected {
  background: var(--pale);
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(205px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 20px;
  align-items: start;
}
.column {
  background: #eeece5;
  border-radius: 12px;
  padding: 12px;
  min-height: 250px;
}
.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid var(--stage);
  padding: 13px 0;
}
.column-head h3 {
  font-size: 14px;
}
.column-head span {
  background: #e0dfd5;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
}
.column-total {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.lead-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 17px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 3px 5px #27312805;
  border-radius: 9px;
  margin-bottom: 11px;
}
.lead-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}
.lead-card h3 {
  font-size: 15px;
  margin: 12px 0 5px;
  line-height: 1.3;
}
.service-tag {
  font-size: 10px;
  color: var(--rust);
  letter-spacing: 0.3px;
}
.lead-card .card-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.lead-card .card-price {
  font-size: 17px;
  font-weight: 700;
  margin-top: 15px;
}
.priority {
  font-size: 10px;
  color: var(--rust);
}
.empty {
  padding: 35px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  background: #f0eee7;
  padding: 15px 18px;
}
td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
td button {
  padding: 0;
  text-align: left;
  font-weight: 700;
}
td small {
  display: block;
  margin-top: 5px;
}
td .stage-dot {
  display: inline-block;
  background: var(--stage);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}
.footer-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.6;
}
.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.channel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.channel p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 13px 0 20px;
}
.channel .channel-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--sage);
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--dark);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--paper);
}
.login-art .brand {
  margin-bottom: 70px;
}
.login-art h1 {
  font-size: 58px;
  max-width: 500px;
  line-height: 1.08;
}
.login-art p {
  color: #bcc7b2;
  line-height: 1.7;
  max-width: 380px;
  margin-top: 24px;
}
.login-form {
  padding: 60px;
  max-width: 530px;
  align-self: center;
  justify-self: center;
  width: 100%;
}
.login-form h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.login-form p {
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 27px;
}
.login-form label {
  display: block;
  margin: 20px 0 8px;
  font-size: 13px;
}
.login-form input,
.login-form .btn {
  width: 100%;
  margin-bottom: 10px;
}
.login-form .btn {
  margin-top: 8px;
}
.notice {
  padding: 14px 16px;
  background: var(--pale);
  font-size: 12px;
  line-height: 1.6;
  border-radius: 9px;
  margin-top: 20px;
}
.error {
  color: var(--error);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0;
}
.error:empty {
  display: none;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 17px;
  width: min(760px, calc(100% - 28px));
  max-height: 92vh;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 100px #1b22194d;
}
dialog::backdrop {
  background: #1e291b88;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.dialog-head h2 {
  margin-bottom: 6px;
}
.close {
  font-size: 25px;
  padding: 0 5px;
  line-height: 1;
  min-width: 32px;
  min-height: 32px;
}
.dialog-content {
  padding: 24px 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 23px;
}
.detail-section h3 {
  margin-bottom: 14px;
}
.detail-section .btn {
  margin-top: 10px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  border-left: 2px solid var(--pale);
  padding: 0 0 17px 14px;
  margin-left: 4px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.timeline small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.booking-detail {
  padding: 18px;
  background: var(--pale);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.8;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.inline-form .field {
  flex: 1;
  min-width: 180px;
}
.inline-form .btn {
  margin: 0;
}
.full-input {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  padding: 13px 23px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 20px #0002;
  z-index: 10;
  display: none;
  max-width: 90vw;
}
#toast.visible {
  display: block;
}
.enquiry {
  max-width: 720px;
  margin: 45px auto;
  padding: 30px;
}
.enquiry .brand {
  margin-bottom: 30px;
}
.enquiry .brand small {
  color: var(--muted);
}
.enquiry .panel {
  margin-top: 25px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 20px;
}
.consent input {
  min-height: 20px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (min-width: 1550px) {
  .main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .hero {
    min-height: 175px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 15px;
  }
  .main {
    padding: 0 25px 30px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px 15px;
  }
  .stat strong {
    font-size: 26px;
  }
  .hero .record {
    margin-left: 25px;
    margin-right: 0;
  }
  .top-meta .date-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px 18px;
  }
  .brand {
    margin: 0;
  }
  .brand img {
    width: 31px;
    height: 40px;
    border-radius: 8px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand small {
    font-size: 8px;
    margin-top: 4px;
  }
  .nav-title,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 17px;
    gap: 3px;
  }
  .nav button {
    padding: 10px 12px;
    white-space: nowrap;
    font-size: 12px;
    gap: 7px;
  }
  .nav svg {
    width: 16px;
    height: 16px;
  }
  .main {
    padding: 0 18px 26px;
  }
  .topbar {
    height: 60px;
    font-size: 12px;
  }
  .top-meta {
    gap: 8px;
  }
  .top-meta .avatar {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    margin: 24px 0 21px;
  }
  h1 {
    font-size: 29px;
  }
  .page-heading .actions .secondary {
    display: none;
  }
  .page-heading .btn {
    padding: 10px 13px;
    font-size: 12px;
  }
  .hero {
    padding: 24px;
    min-height: 148px;
  }
  .hero h2 {
    font-size: 25px;
    max-width: 240px;
  }
  .hero p {
    font-size: 12px;
    max-width: 240px;
  }
  .hero .record {
    width: 75px;
    height: 75px;
    margin-left: 12px;
  }
  .record:before {
    width: 35px;
    height: 35px;
    font-size: 10px;
    border-width: 3px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat small {
    font-size: 10px;
  }
  .stat-top {
    font-size: 12px;
  }
  .panel {
    padding: 19px;
  }
  .stage-block span {
    font-size: 9px;
  }
  .stage-block strong {
    font-size: 23px;
  }
  .channels {
    grid-template-columns: 1fr;
  }
  .toolbar select {
    font-size: 12px;
    flex: 1;
    min-width: 110px;
  }
  .search {
    flex-basis: 100%;
  }
  .pipeline {
    grid-template-columns: repeat(6, 230px);
  }
  .login-layout {
    display: block;
  }
  .login-art {
    padding: 30px;
  }
  .login-art .brand {
    margin-bottom: 28px;
  }
  .login-art h1 {
    font-size: 37px;
  }
  .login-art p {
    font-size: 13px;
    margin-top: 14px;
  }
  .login-form {
    padding: 30px;
  }
  .dialog-head {
    padding: 20px;
  }
  .dialog-content {
    padding: 20px;
  }
  .form-grid {
    gap: 13px;
  }
  .enquiry {
    padding: 18px;
    margin: 20px auto;
  }
  .row-value {
    font-size: 11px;
  }
  .row-sub {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .nav {
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
}
.project-toolbar {
  margin-top: 20px;
}
#password-form {
  max-width: 460px;
  margin-top: 24px;
}
#password-form .field {
  margin-bottom: 15px;
}
.top-meta .badge {
  white-space: normal;
  max-width: 250px;
}
.project-toolbar + .table-wrap {
  margin-top: 20px;
}

.login-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}
.login-option {
  padding: 14px;
  border: 1px solid var(--line, #d8d7cc);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.login-option strong,
.login-option small {
  display: block;
}
.login-option small {
  font-size: 12px;
  margin-top: 6px;
}
.login-option.selected {
  background: #e2e6db;
  border: 2px solid #4c604d;
  padding: 13px;
}
.profile-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  align-items: center;
  justify-content: center;
  background: #e2e6db;
  color: #293b2b;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-avatar.large {
  width: 96px;
  height: 96px;
  font-size: 28px;
}
.profile-shortcut {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
}
.profile-shortcut:focus-visible {
  outline: 3px solid #965328;
  outline-offset: 3px;
}
.profile-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}
#photo-form {
  max-width: 520px;
  margin: 24px 0;
}
#photo-preview {
  margin-top: 16px;
}
#photo-form .actions {
  flex-wrap: wrap;
}

/* Owner workspace */
.owner-hero {
  min-height: 215px;
}
.owner-quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.owner-quick-actions .btn {
  background: #fff8ed;
  color: #64341d;
  border: 1px solid #fff8ed;
}
.owner-quick-actions .btn + .btn {
  background: transparent;
  color: #fff8ed;
  border-color: #d7b49b;
}
.owner-stats .stat {
  text-align: left;
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.owner-stats .stat:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
}
.owner-attention {
  display: flex;
  gap: 12px 22px;
  flex-wrap: wrap;
  align-items: center;
  background: #ece6dc;
  padding: 17px 22px;
  border-radius: 12px;
  margin: -6px 0 24px;
}
.owner-attention button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #713d26;
}
.owner-attention svg {
  width: 15px;
  height: 15px;
}
.owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
}
.owner-caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}
.owner-project {
  width: 100%;
  text-align: left;
}
.owner-project-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.owner-project-end small {
  font-size: 11px;
}
.owner-finances {
  background: #e7e9df;
}
.owner-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 26px 0;
}
.owner-amounts span,
.owner-amounts small {
  display: block;
  font-size: 12px;
}
.owner-amounts strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.owner-source {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(45px, 1fr) 30px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
}
.owner-source strong {
  text-align: right;
}
.owner-source meter {
  width: 100%;
  height: 12px;
  accent-color: var(--sage);
}
.owner-source meter::-webkit-meter-bar {
  background: var(--pale);
  border: none;
}
.owner-source meter::-webkit-meter-optimum-value {
  background: var(--sage);
}
.owner-team-note {
  padding-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .owner-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .owner-attention {
    align-items: flex-start;
    flex-direction: column;
  }
  .owner-hero h2 {
    max-width: none;
  }
  .owner-amounts {
    gap: 16px;
  }
  .owner-amounts strong {
    font-size: 25px;
  }
  .owner-finances .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .owner-project {
    align-items: flex-start;
  }
}

/* Personal planning workspace */
.sidebar {
  overflow-y: auto;
}
.nav button[data-page="overview"] {
  margin-top: 20px;
  border-top: 1px solid #51604e;
  padding-top: 18px;
}
.personal-hero {
  background: linear-gradient(110deg, #384636, #607155);
  border-radius: 20px;
  padding: 32px;
  color: #fff8ed;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.personal-hero .eyebrow {
  color: #d4dbc7;
}
.personal-hero h2 {
  font-size: 32px;
  margin: 10px 0;
}
.personal-hero p {
  line-height: 1.6;
  color: #e0e5d8;
}
.personal-day-progress {
  min-width: 185px;
  border-left: 1px solid #ffffff44;
  padding-left: 30px;
}
.personal-day-progress strong {
  font-size: 48px;
  font-weight: 600;
}
.personal-day-progress strong span {
  font-size: 26px;
  color: #d1d8c5;
}
.personal-day-progress p {
  font-size: 12px;
}
.personal-day-progress progress {
  width: 100%;
  height: 7px;
  margin-top: 16px;
  accent-color: #dcb49d;
}
.personal-daybar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 28px 0 20px;
}
.personal-daybar input {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 9px;
  border-radius: 8px;
  max-width: 170px;
}
.personal-daybar h2 {
  margin-bottom: 6px;
}
.personal-day-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
}
.personal-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f0dfce;
  border: 1px solid #dcbfa5;
  border-radius: 12px;
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
  font-size: 13px;
}
.personal-alert > span {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.personal-empty {
  text-align: center;
  padding: 30px 14px;
}
.personal-empty p {
  color: var(--muted);
  line-height: 1.65;
  margin: 12px auto 20px;
  max-width: 380px;
}
.personal-section-break {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.personal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.personal-item .task-toggle {
  margin-top: 3px;
  flex-shrink: 0;
}
.personal-item-main {
  min-width: 0;
  flex: 1;
  text-align: left;
  padding: 0;
}
.personal-item-main strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.personal-item-main small {
  display: block;
  font-size: 11px;
  margin-top: 9px;
}
.personal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.priority-high {
  color: var(--rust);
  font-weight: 700;
}
.is-done > .personal-item-main > strong,
.personal-agenda-row.is-done strong,
.calendar-event.is-done {
  text-decoration: line-through;
  color: var(--muted);
}
.personal-agenda-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.personal-agenda-row strong {
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.personal-section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.personal-section-intro p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 690px;
}
.personal-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.personal-project-title {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.4px;
  padding: 0;
  text-align: left;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.personal-progress {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  margin: 20px 0;
  color: var(--muted);
}
.personal-progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--sage);
}
.personal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}
.personal-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.personal-column {
  background: #ecece4;
  border-radius: 14px;
  padding: 16px;
  min-height: 300px;
}
.personal-column h2 {
  font-size: 16px;
}
.personal-board-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 13px 14px;
  margin-bottom: 13px;
}
.personal-board-card .personal-item {
  flex-wrap: wrap;
  border-bottom: 0;
}
.personal-board-card > small {
  font-size: 11px;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: start;
}
.personal-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.calendar-weekday {
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
}
.calendar-day {
  min-height: 102px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 7px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.calendar-day strong {
  font-size: 13px;
}
.calendar-day.today strong {
  background: var(--rust);
  color: white;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.calendar-day.selected {
  outline: 2px solid var(--sage);
  outline-offset: -2px;
  background: #edf0e4;
}
.calendar-day.other-month {
  color: #8a8e83;
  background: #f1eee7;
}
.calendar-event {
  display: block;
  background: #e7e9df;
  border-radius: 3px;
  padding: 3px;
  width: 100%;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.calendar-day small {
  font-size: 10px;
}
.personal-reminder-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  background: #e7e9df;
  padding: 23px;
  border-radius: 13px;
  margin-bottom: 24px;
}
.personal-reminder-info p {
  font-size: 13px;
  line-height: 1.6;
  margin: 9px 0;
  color: #535d4c;
}
.personal-reminder {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
}
.personal-reminder > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.personal-reminder-title {
  text-align: left;
  font-weight: 700;
  padding: 0;
}
.personal-reminder small {
  font-size: 12px;
}
.personal-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.personal-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.personal-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 1250px) {
  .personal-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .personal-day-grid,
  .personal-project-grid {
    grid-template-columns: 1fr;
  }
  .personal-day-progress {
    min-width: 145px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    overflow-y: visible;
  }
  .nav button[data-page="overview"] {
    margin-top: 0;
    border: 0;
    padding-top: 12px;
  }
  .personal-hero {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .personal-hero h2 {
    font-size: 28px;
  }
  .personal-day-progress {
    border-left: 0;
    border-top: 1px solid #ffffff44;
    padding: 15px 0 0;
    width: 100%;
  }
  .personal-day-progress strong {
    font-size: 32px;
  }
  .personal-daybar,
  .personal-section-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .personal-daybar .actions {
    flex-wrap: wrap;
  }
  .personal-board,
  .personal-reminder-info {
    grid-template-columns: 1fr;
  }
  .personal-alert {
    flex-wrap: wrap;
  }
  .personal-alert > span {
    margin-left: 0;
  }
  .calendar-layout > .panel {
    padding: 12px;
  }
  .calendar-layout .section-heading {
    flex-wrap: wrap;
  }
  .calendar-day {
    min-height: 70px;
    padding: 6px 3px;
  }
  .calendar-event {
    font-size: 9px;
  }
  .personal-calendar {
    gap: 3px;
  }
  .calendar-weekday {
    font-size: 10px;
  }
}

/* Hourly personal calendar */
.calendar-commandbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.calendar-view-switch {
  display: flex;
  background: #e7e9df;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.calendar-view-switch button {
  padding: 10px 22px;
  border-radius: 7px;
  font-weight: 600;
}
.calendar-view-switch button.active {
  background: var(--dark);
  color: var(--paper);
}
.calendar-jump {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.calendar-jump input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 10px;
}
.hourly-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 20px;
  align-items: start;
}
.hourly-layout.week-layout {
  display: block;
}
.hourly-panel .section-heading {
  flex-wrap: wrap;
}
.hourly-panel .owner-caption {
  margin-top: 9px;
  margin-bottom: 0;
}
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 15px;
  line-height: 1.5;
}
.schedule-legend > span:first-child {
  color: #4b6346;
}
.hourly-scroll {
  max-height: 680px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  scrollbar-gutter: stable;
}
.hourly-table {
  white-space: normal;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.hourly-table.week-table {
  min-width: 1000px;
}
.hourly-table th:first-child {
  width: 78px;
}
.hourly-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
}
.hourly-table thead th {
  background: #e7e9df;
  border-bottom: 1px solid var(--line);
  padding: 13px 5px;
  text-align: center;
}
.hourly-table thead th.current-day {
  background: #d8e1ce;
  color: #2e4c2b;
}
.hourly-table thead button {
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}
.hourly-table tbody th {
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  padding: 12px 10px 0 3px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.hourly-table td {
  padding: 5px;
  vertical-align: top;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hourly-table tr.half-hour > th {
  color: #899082;
  font-size: 10px;
}
.hourly-table .time-cell {
  height: 56px;
}
.hourly-table .current-time {
  background: #fff0dc;
  box-shadow: inset 0 2px 0 #b57535;
}
.hourly-table .untimed-row td {
  background: #f5f2eb;
}
.add-time {
  width: 100%;
  text-align: right;
  color: #7f8877;
  font-size: 13px;
  min-height: 24px;
  padding: 0 4px;
  border-radius: 4px;
}
.add-time span {
  font-size: 10px;
}
.add-time:hover,
.add-time:focus-visible {
  background: #e7e9df;
  color: #293c26;
}
.time-event {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  padding: 9px 10px;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.time-event strong {
  font-size: 13px;
  line-height: 1.35;
}
.time-event small,
.time-event span {
  font-size: 10px;
  line-height: 1.4;
}
.time-block {
  background: #dfe8d6;
  border-left: 3px solid #667d55;
  color: #2c452a;
}
.time-marker {
  background: #f7e8dc;
  border-left: 3px solid #b87849;
  color: #744923;
}
.time-event.continues {
  padding: 6px 10px;
  opacity: 0.8;
}
.time-event.event-overlap {
  border-left-color: #ad5142;
}
.event-done {
  opacity: 0.65;
}
.event-done strong {
  text-decoration: line-through;
}
.untimed-event {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  background: #eee8df;
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  margin: 3px 0;
}
.untimed-event strong {
  font-size: 12px;
}
.untimed-event small {
  font-size: 10px;
}
.calendar-footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 14px;
}
@media (max-width: 1150px) {
  .hourly-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .calendar-commandbar .actions {
    flex-wrap: wrap;
  }
  .calendar-commandbar {
    align-items: flex-start;
  }
  .hourly-panel {
    padding: 14px;
  }
  .hourly-scroll {
    max-height: 580px;
  }
  .calendar-jump {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  .hourly-table th:first-child {
    width: 66px;
  }
  .hourly-panel .section-heading .actions {
    gap: 8px;
    flex-wrap: wrap;
  }
}
