:root {
  --deep: #153d32;
  --green: #265c49;
  --ink: #263d33;
  --muted: #73857a;
  --line: #e3e9e3;
  --fog: #f5f7f3;
  --cream: #faf9f5;
  --white: #fff;
  --gold: #bd9b62;
  --red: #a24d47;
  --amber: #a87526;
  --shadow: 0 8px 28px rgba(37, 64, 46, 0.035);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--fog);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  font-size: 13px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
.initial {
  padding: 80px;
  text-align: center;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 20%, #dfece2 0, transparent 32%), #f6f8f4;
}
.login-card {
  background: white;
  max-width: 460px;
  width: 100%;
  padding: 38px;
  border-radius: 20px;
  box-shadow: 0 24px 80px #244d3117;
  border: 1px solid var(--line);
}
.login-brand {
  text-align: center;
}
.brand-seal {
  border: 1px solid #b4c5ae;
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 31px;
  border-radius: 50%;
  margin: auto;
  color: var(--green);
}
.brand-type {
  font-family: Georgia, serif;
  letter-spacing: 4px;
  font-size: 27px;
  margin-top: 9px;
  color: var(--deep);
}
.brand-sub {
  color: #8e998c;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  margin-top: 4px;
}
.login-card h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  margin: 31px 0 7px;
  text-align: center;
  font-weight: 400;
}
.login-card .sub {
  text-align: center;
}
.field {
  display: block;
  margin: 15px 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #4e6858;
}
.text-input {
  width: 100%;
  border-radius: 9px;
  padding: 12px;
  border: 1px solid #d7e1d7;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.text-input:focus {
  border-color: #6b9b77;
  box-shadow: 0 0 0 3px #6e9b7726;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: white;
  color: var(--green);
  border: 1px solid #d7e2d7;
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 650;
  font-size: 12px;
  line-height: 1.3;
}
.btn:hover:not(:disabled) {
  background: #eef4ee;
}
.btn.primary {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}
.btn.primary:hover:not(:disabled) {
  background: #245a48;
}
.btn.small {
  padding: 7px 10px;
  font-size: 11px;
}
.btn.danger {
  color: #93423e;
  border-color: #ebd6d1;
}
.btn.full {
  width: 100%;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.hint {
  font-size: 11px;
  line-height: 1.55;
  color: #7d897e;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--deep);
  color: #e8f0eb;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  padding: 3px 12px 28px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand-round {
  width: 35px;
  height: 35px;
  border: 1px solid #668875;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 20px;
}
.brand-text {
  font-family: Georgia, serif;
  letter-spacing: 2.1px;
  font-size: 20px;
}
.brand-micro {
  font-size: 9px;
  color: #a7beb0;
  letter-spacing: 1.5px;
  margin-top: 2px;
}
.side-label {
  font-size: 9px;
  color: #92ae9d;
  padding: 12px 13px 5px;
  letter-spacing: 1.25px;
  font-weight: 700;
}
.nav {
  background: transparent;
  color: #cadcd1;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  text-align: left;
  border-radius: 9px;
  font-weight: 600;
}
.nav:hover,
.nav.active {
  background: #315c4a;
  color: white;
}
.nav .icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #3a604f;
  padding: 15px 12px;
  font-size: 11px;
  line-height: 1.75;
  color: #b1c7b9;
}
.main {
  min-width: 0;
  padding: 29px 34px 42px;
  max-width: 1850px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.breadcrumb {
  color: #809083;
  font-size: 11px;
}
.top-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.userpill {
  border: 1px solid #dfe8dd;
  background: white;
  border-radius: 25px;
  padding: 8px 12px;
  font-size: 11px;
  color: #496657;
}
.pill {
  padding: 5px 8px;
  background: #eef4ed;
  border-radius: 15px;
  color: #587461;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.pill.gold {
  background: #f9f0e0;
  color: #986f33;
}
.pill.red {
  background: #fff1ee;
  color: #aa5546;
}
.pill.gray {
  background: #f0f2ee;
  color: #728375;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 22px;
}
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 31px;
  color: var(--deep);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
h2,
h3,
p {
  margin-top: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  padding: 18px 19px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.stat label {
  color: #8b998e;
  font-size: 10px;
  letter-spacing: 0.65px;
  font-weight: 650;
  text-transform: uppercase;
}
.stat strong {
  font-family: Georgia, serif;
  font-size: 33px;
  color: var(--deep);
  font-weight: 400;
  display: block;
  margin: 8px 0 4px;
}
.stat small {
  color: #8a948a;
  font-size: 11px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head {
  padding: 18px 20px;
  border-bottom: 1px solid #e8eee8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card-head h3 {
  font-size: 14px;
  margin: 0;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  width: 215px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #dde6da;
  border-radius: 8px;
  outline: none;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  min-width: 830px;
}
th {
  padding: 13px 17px;
  background: #fafbf9;
  font-size: 10px;
  font-weight: 700;
  color: #8d998e;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}
td {
  border-top: 1px solid #eef1ec;
  padding: 15px 17px;
  vertical-align: middle;
  font-size: 12px;
  color: #506455;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #f4f8f3;
}
.strong {
  font-weight: 700;
  color: #314a39;
}
.muted {
  font-size: 11px;
  color: #8a998d;
  margin-top: 5px;
}
.footer-note {
  font-size: 11px;
  color: #819083;
  padding: 12px 19px;
  border-top: 1px solid #eff1ec;
  background: #fafbf9;
}
.client-header {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.client-header h2 {
  font-family: Georgia, serif;
  color: var(--deep);
  font-weight: 400;
  font-size: 25px;
  margin: 3px 0 8px;
}
.client-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(180px, 0.83fr) minmax(215px, 1.05fr) minmax(335px, 1.75fr);
  gap: 13px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 580px;
}
.panel-head {
  padding: 16px 16px 13px;
  border-bottom: 1px solid #eaf0e9;
}
.panel-head h3 {
  font-size: 13px;
  margin: 0 0 4px;
}
.panel-head small {
  color: #8c998c;
  font-size: 10px;
}
.panel-content {
  padding: 11px;
}
.step-row,
.action-row {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  padding: 12px 11px;
  margin: 3px 0;
  color: #425a48;
}
.step-row:hover,
.action-row:hover {
  background: #f6f9f5;
}
.step-row.selected,
.action-row.selected {
  background: #ecf4ed;
  border-color: #d2e3d3;
}
.step-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 650;
  line-height: 1.3;
  font-size: 12px;
}
.step-number {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #edf1eb;
  color: #6b8270;
  flex: none;
  font-size: 10px;
}
.selected .step-number {
  background: #31694f;
  color: white;
}
.step-note {
  font-size: 10px;
  color: #879587;
  padding-left: 31px;
  margin-top: 5px;
}
.section-caption {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #839585;
  border-top: 1px solid #edf1eb;
  padding: 17px 8px 6px;
  margin-top: 12px;
  text-transform: uppercase;
  font-weight: 700;
}
.action-row {
  border-color: #eef0eb;
  padding: 13px;
}
.action-row.selected {
  border-color: #accdb1;
}
.action-row strong {
  display: block;
  font-size: 11px;
  line-height: 1.5;
}
.action-row small {
  font-size: 10px;
  color: #859689;
  display: block;
  margin-top: 6px;
}
.task-panel {
  padding: 19px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8a998a;
  font-weight: 700;
}
.execution-title {
  font-size: 18px;
  margin: 9px 0;
  color: var(--deep);
  line-height: 1.35;
}
.progress-bg {
  height: 6px;
  background: #eaf0e8;
  border-radius: 8px;
  overflow: hidden;
}
.progress-value {
  height: 100%;
  background: #669879;
  transition: width 0.2s;
}
.task {
  border: 1px solid #e3ebe2;
  border-radius: 10px;
  padding: 13px;
  margin-top: 11px;
}
.task.done {
  background: #fbfdf9;
}
.task-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.checkbox-icon {
  border: 1px solid #bac8b7;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 5px;
  color: transparent;
  margin-top: 1px;
  font-size: 12px;
}
.checkbox-icon.checked {
  background: #3e805d;
  color: white;
  border-color: #3e805d;
}
.task-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.task-owner {
  font-size: 10px;
  color: #8a978a;
  margin: 7px 0;
}
.task-note {
  font-size: 10px;
  color: #6d8977;
  margin-top: 7px;
}
.task-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  align-items: center;
}
.info {
  background: #f4f7f2;
  border: 1px solid #e3e9dd;
  padding: 13px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.6;
  color: #5b735f;
  margin-top: 14px;
}
.info.warn {
  background: #fff7ec;
  border-color: #f0e2ca;
  color: #976a3c;
}
.info.good {
  background: #eef8f1;
  border-color: #d9e9db;
  color: #427653;
}
.side-widget {
  padding: 15px;
  border-radius: 11px;
  background: #f5f8f4;
  border: 1px solid #e5eee2;
  margin-bottom: 12px;
}
.side-widget h3 {
  font-size: 13px;
  margin-bottom: 10px;
}
.box-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e7ece5;
}
.box-row:last-child {
  border-bottom: 0;
}
.split {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 14px;
}
.appointment {
  padding: 16px 18px;
  border-bottom: 1px solid #edf1ec;
  display: flex;
  align-items: center;
  gap: 14px;
}
.appt-time {
  width: 56px;
  color: #3d6148;
  font-weight: 750;
}
.appt-body {
  flex: 1;
}
.appt-title {
  font-weight: 650;
}
.appt-sub {
  font-size: 11px;
  color: #839587;
  margin-top: 5px;
}
.empty {
  padding: 37px;
  text-align: center;
  color: #87958a;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #09261b87;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal {
  width: min(520px, 100%);
  border-radius: 16px;
  padding: 25px;
  background: white;
  box-shadow: 0 24px 60px #0a2b1b40;
}
.modal h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--deep);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #204a38;
  color: white;
  border-radius: 10px;
  padding: 13px 18px;
  z-index: 200;
  box-shadow: 0 8px 35px #1b493344;
  max-width: 450px;
}
.toast.error {
  background: #8e403d;
}
.tiny {
  font-size: 10px;
  color: #95a295;
}
.activity {
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
}
.activity small {
  color: #819282;
}
.role-legend {
  font-size: 11px;
  color: #7f9283;
  margin: 8px 0 0;
}
.no-access {
  font-size: 10px;
  color: #987241;
  margin-top: 8px;
}
.actions-below {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.light-divider {
  border: 0;
  border-top: 1px solid #e7ede5;
  margin: 17px 0;
}
.teal {
  color: #3c7853;
}
input[type='number'] {
  max-width: 145px;
}
textarea {
  resize: vertical;
  min-height: 73px;
}
.gridtwo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 1250px) {
  .workspace {
    grid-template-columns: minmax(140px, 0.8fr) minmax(190px, 0.95fr) minmax(280px, 1.5fr);
  }
  .main {
    padding: 25px 20px;
  }
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 19px 9px;
  }
  .main {
    padding: 18px 15px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .workspace .panel:last-child {
    grid-column: 1/-1;
    min-height: 0;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
  }
  .brand {
    padding: 0 8px 0 0;
  }
  .side-label,
  .side-bottom {
    display: none;
  }
  .brand-micro {
    display: none;
  }
  .nav {
    padding: 8px;
  }
  .main {
    padding: 15px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace .panel:last-child {
    grid-column: auto;
  }
  .panel {
    min-height: 0;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 27px;
  }
  .userpill {
    display: none;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}
.profile-grid .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.profile-grid input,
.profile-grid select {
  width: 100%;
  min-width: 0;
}

/* Clinic Dashboard: the former Clinic Overview is embedded below the client list. */
.clinic-operations {
  margin-top: 28px;
  scroll-margin-top: 18px;
}
.clinic-operations-head {
  margin-bottom: 14px;
}
.operations-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 23px;
  color: var(--deep);
  margin: 0 0 5px;
}

/* Company-X usability pass: readable desktop panels and dashboard */
html {
  font-size: 16px;
}
body {
  font-size: 15px;
  line-height: 1.55;
}
.page-head .sub,
.sub {
  font-size: 14px;
  line-height: 1.6;
}
.card-head h3,
.panel-head h3 {
  font-size: 17px;
  line-height: 1.4;
}
.panel-head small,
.card-head small {
  font-size: 12px;
}
.stat label {
  font-size: 12px;
  letter-spacing: 0.3px;
}
.stat small,
.footer-note,
.muted,
.hint,
.appt-sub,
.role-legend {
  font-size: 13px;
  line-height: 1.55;
}
.table-scroll td,
td {
  font-size: 14px;
  line-height: 1.5;
}
th {
  font-size: 12px;
  letter-spacing: 0.3px;
}
.step-title,
.action-row strong {
  font-size: 14px;
  line-height: 1.5;
}
.step-note,
.action-row small,
.section-caption {
  font-size: 12px;
}
.step-number {
  width: 27px;
  height: 27px;
  font-size: 12px;
}
.panel-head {
  padding: 17px 17px 15px;
}
.panel-content {
  padding: 13px;
}
.action-row {
  padding: 14px;
}
.task-panel {
  padding: 19px;
}
.task-title {
  font-size: 15px;
  line-height: 1.5;
}
.task-owner,
.task-note,
.no-access {
  font-size: 12px;
  line-height: 1.5;
}
.task {
  padding: 16px;
  margin-top: 13px;
}
.eyebrow,
.info {
  font-size: 12px;
  line-height: 1.6;
}
.execution-title {
  font-size: 21px;
}
.btn,
.pill,
.nav {
  font-size: 13px;
}
.workspace {
  grid-template-columns: minmax(200px, 0.84fr) minmax(245px, 1.07fr) minmax(380px, 1.75fr);
}

/* Actual to-do data entry, with persistent drafts and explicit completion */
.entry-form {
  margin: 14px 0 2px;
  padding-top: 13px;
  border-top: 1px solid #e4ece4;
}
.task-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  color: #405a49;
  font-weight: 650;
}
.form-field.wide {
  grid-column: 1/-1;
}
.task-fields .text-input {
  width: 100%;
  min-width: 0;
  max-width: none;
  border: 1px solid #cfdccf;
  border-radius: 7px;
  padding: 10px 11px;
  background: #fff;
  color: #2b4033;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}
.task-fields textarea.text-input {
  resize: vertical;
  min-height: 75px;
}
.form-field select.text-input {
  min-height: 42px;
}
.task-fields input[type='time'],
.task-fields input[type='date'] {
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
.required-mark {
  color: #ad5137;
  font-weight: 700;
}
.field-hint {
  font-size: 12px;
  color: #728676;
  font-weight: 400;
  line-height: 1.45;
}
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #e0e8de;
  background: #f9fbf8;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}
.field-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #326f50;
  margin: 1px 0 0;
}
.entry-form .task-actions {
  margin: 15px 0 8px;
  flex-wrap: wrap;
}
.entry-form .task-actions .btn {
  font-size: 13px;
  padding: 10px 12px;
}
.saved-record {
  border: 1px solid #e2eae0;
  border-radius: 9px;
  background: #f9fcf8;
  padding: 12px;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.saved-record > div:not(.eyebrow) {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  font-size: 12px;
}
.saved-record > div > span {
  color: #748775;
  flex: 1;
}
.saved-record > div > strong {
  text-align: right;
  font-weight: 650;
  color: #31543b;
  flex: 1;
}
@media (max-width: 1250px) {
  .workspace {
    grid-template-columns: minmax(165px, 0.8fr) minmax(205px, 0.95fr) minmax(320px, 1.5fr);
  }
}
@media (max-width: 950px) {
  .workspace {
    grid-template-columns: minmax(200px, 0.8fr) minmax(245px, 1.05fr);
  }
  .workspace .panel:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 620px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace .panel:last-child {
    grid-column: auto;
  }
  .task-fields {
    grid-template-columns: 1fr;
  }
}
.timer {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}
.timer.green {
  background: #3f8f5f;
}
.timer.amber {
  background: #d49a2a;
}
.timer.red {
  background: #c0392b;
}
.profile-more summary,
.card details summary {
  cursor: pointer;
  margin: 6px 0;
}
.modal.wide {
  max-width: 760px;
  width: 92vw;
  max-height: 88vh;
  overflow: auto;
}
@media print {
  body * {
    visibility: hidden;
  }
  .printable,
  .printable * {
    visibility: visible;
  }
  .printable {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* ---- Redesign: iris ink, porcelain, verdigris (done) and brass (current step) ---- */
:root {
  --deep: #241f3a;
  --green: #2f6b5c;
  --ink: #1f2433;
  --muted: #6a6f80;
  --line: #e4e4ea;
  --fog: #f4f4f7;
  --cream: #fbfbfc;
  --gold: #a8814a;
  --red: #b0453a;
  --amber: #b07a26;
  --iris: #241f3a;
  --iris-2: #342d52;
  --verdigris: #3e7c6b;
  --brass: #a8814a;
  --porcelain: #f4f4f7;
  --shadow: none;
  --serif: 'Bodoni Moda', Didot, Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, 'Segoe UI', sans-serif;
}
body {
  font-family: var(--sans);
  background: var(--porcelain);
  color: var(--ink);
}
h1,
.modal h2,
.client-header h2,
.operations-title,
.brand-text,
.brand-type,
.login-card h2,
.stat strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--iris);
}
h1 {
  font-size: 34px;
  letter-spacing: -0.2px;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* sidebar */
.sidebar {
  background: var(--iris);
  color: #e9e7f2;
}
.brand-round {
  border-color: #6c6390;
  font-family: var(--serif);
}
.brand-micro,
.side-label {
  color: #9d97b8;
  text-transform: none;
  letter-spacing: 0.2px;
}
.nav {
  color: #c9c5dc;
  border-radius: 6px;
}
.nav:hover {
  background: var(--iris-2);
  color: #fff;
}
.nav.active {
  background: transparent;
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brass);
  border-radius: 0 6px 6px 0;
}
.side-bottom {
  border-top-color: #3c3560;
  color: #a9a3c4;
}

/* login */
.login-page {
  background: linear-gradient(160deg, var(--iris) 0 38%, var(--porcelain) 38%);
}
.login-card {
  border-radius: 4px;
  box-shadow: 0 30px 70px #241f3a26;
  border-color: #e2e0ea;
}
.brand-seal {
  border-color: var(--brass);
  color: var(--brass);
  font-family: var(--serif);
}
.brand-sub {
  text-transform: none;
  letter-spacing: 0.3px;
  color: var(--muted);
}

/* surfaces: hierarchy by radius, not one radius everywhere */
.card,
.panel,
.client-header,
.stat {
  border-radius: 6px;
  border-color: var(--line);
  box-shadow: none;
}
.modal {
  border-radius: 6px;
}
.btn {
  border-radius: 4px;
  color: var(--iris);
  border-color: #d9d8e2;
}
.btn:hover:not(:disabled) {
  background: #f0eff5;
}
.btn.primary {
  background: var(--iris);
  border-color: var(--iris);
}
.btn.primary:hover:not(:disabled) {
  background: var(--iris-2);
}
.text-input,
.search,
.task-fields .text-input {
  border-radius: 4px;
  border-color: #d6d5df;
}
.text-input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px #a8814a26;
}
.pill {
  border-radius: 3px;
  background: #eeedf3;
  color: #4c4766;
}
.pill.gold {
  background: #f6efe3;
  color: #85622f;
}
.stat label,
th,
.eyebrow,
.section-caption {
  text-transform: none;
  letter-spacing: 0.1px;
}
th {
  background: #f8f8fa;
  color: var(--muted);
}
tr.clickable:hover {
  background: #f6f5f9;
}

/* the signature: the nine steps as one connected journey rail */
.panel-content {
  position: relative;
}
.step-row {
  position: relative;
  border-radius: 0;
  margin: 0;
  padding-left: 14px;
  background: transparent;
}
.step-row::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #dcdbe5;
}
.step-row:first-of-type::before {
  top: 50%;
}
.step-row:last-of-type::before {
  bottom: 50%;
}
.step-number {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cfcde0;
  color: var(--muted);
}
.step-row:hover {
  background: transparent;
}
.step-row:hover .step-title {
  color: var(--iris);
}
.step-row.selected {
  background: transparent;
  border-color: transparent;
}
.selected .step-number {
  background: #fff;
  color: var(--brass);
  border: 2px solid var(--brass);
}
.step-row.selected .step-title {
  color: var(--iris);
  font-weight: 700;
}
.step-row.done .step-number {
  background: var(--verdigris);
  border-color: var(--verdigris);
  color: #fff;
}
.action-row {
  border-radius: 4px;
}
.action-row.selected {
  background: #f6f2ea;
  border-color: #e2d3b8;
}
.progress-value {
  background: var(--verdigris);
}
.checkbox-icon {
  border-radius: 3px;
}
.checkbox-icon.checked {
  background: var(--verdigris);
  border-color: var(--verdigris);
}
.task {
  border-radius: 4px;
}
.info {
  border-radius: 4px;
}
.timer.green {
  background: var(--verdigris);
}
.timer.amber {
  background: #c9952f;
}
.timer.red {
  background: var(--red);
}
.toast {
  background: var(--iris);
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
