@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --ink: #243f35;
  --muted: #7b857e;
  --bg: #f7f8f4;
  --line: #e1e6de;
  --green: #335e47;
  --pale: #eaf0e5;
  --orange: #c77144;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    14px 'DM Sans',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 600;
}
button:hover {
  background: var(--pale);
  border-color: #adc1a9;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #254a36;
}
/* Links styled as buttons (for example "Add this care plan to the app"). */
a.button-link {
  display: inline-block;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 600;
  text-decoration: none;
}
.text {
  background: transparent;
  border: 0;
  padding: 5px;
  color: var(--green);
}
.danger {
  color: #a6463c;
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #f0f3eb;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font:
    800 25px Manrope,
    sans-serif;
  letter-spacing: -1.3px;
}
.brand span {
  font-weight: 400;
}
.brand small {
  display: block;
  font: 9px 'DM Sans';
  letter-spacing: 2.4px;
  margin: 8px 0 0 36px;
}
.leaf {
  display: inline-block;
  width: 27px;
  height: 27px;
  vertical-align: -4px;
  margin-right: 7px;
  color: var(--green);
}
.leaf svg,
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.practice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  margin: 25px 0 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  background: #e0e8d6;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  font-weight: 700;
  flex-shrink: 0;
}
.practice strong {
  font-size: 12px;
}
.practice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.navlabel,
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 18px 10px 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 12px 13px;
  font-weight: 500;
  color: #6a776d;
}
.nav button.active {
  background: #dfe8d6;
  color: #294d36;
  font-weight: 700;
}
.navicon {
  width: 27px;
  display: inline-block;
  font-size: 18px;
}
.sidefoot {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.sidefoot strong {
  color: var(--ink);
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: #ffffffa8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 500;
}
.switcher {
  display: flex;
  padding: 4px;
  background: #edf0e9;
  border-radius: 9px;
  gap: 2px;
}
.switcher button {
  font-size: 11px;
  border: 0;
  background: transparent;
  padding: 7px 12px;
}
.switcher .active {
  background: white;
  box-shadow: 0 1px 4px #20302014;
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 32px 38px 50px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font: 600 29px Manrope;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
h2 {
  font: 600 18px Manrope;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 14px;
}
p {
  color: var(--muted);
  line-height: 1.65;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.heading {
  margin-bottom: 26px;
}
.heading p {
  margin: 0;
  font-size: 13px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #e6eddd;
  border: 1px solid #dce4d3;
  border-radius: 12px;
  padding: 29px 32px;
  margin-bottom: 25px;
  min-height: 188px;
}
.hero h2 {
  font:
    500 28px Georgia,
    serif;
  max-width: 470px;
  line-height: 1.25;
  margin: 8px 0 10px;
}
.hero p {
  font-size: 12px;
  max-width: 420px;
  color: #63735d;
  margin-bottom: 18px;
}
.hero .eyebrow {
  margin: 0;
  color: #6b805c;
}
.botanical {
  position: absolute;
  right: 15px;
  bottom: -15px;
  width: 280px;
  height: 225px;
  opacity: 0.8;
  pointer-events: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.stat {
  padding: 20px;
}
.stat label {
  font-size: 12px;
  color: var(--muted);
}
.stat b {
  display: block;
  font: 600 28px Manrope;
  margin: 12px 0 7px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 10px;
  color: #698364;
}
.stat .stat-icon {
  float: right;
  color: #8b9a83;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}
.card {
  padding: 23px;
  margin-bottom: 22px;
}
.card-head {
  margin-bottom: 19px;
}
.card-head h2 {
  margin: 0;
}
.sub {
  font-size: 11px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tabs button {
  font-size: 12px;
  border-color: transparent;
  background: transparent;
}
.tabs .active {
  background: var(--pale);
  border-color: #d8e2d0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  padding: 12px 10px;
  background: #f8f9f6;
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid #eef0eb;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
tr:last-child td {
  border-bottom: 0;
}
.badge {
  font-size: 10px;
  border-radius: 20px;
  padding: 5px 9px;
  background: #edf3e8;
  color: #527341;
  display: inline-block;
}
.badge.pending {
  background: #fff2df;
  color: #ad7a2c;
}
.badge.cancelled,
.badge.expired {
  background: #f8e9e5;
  color: #a05d4c;
}
.badge.completed {
  background: #e9eef7;
  color: #687d9b;
}
.activity {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #edf0e9;
  padding: 15px 0;
  font-size: 12px;
  line-height: 1.5;
}
.activity:last-child {
  border: 0;
}
.activity p {
  font-size: 11px;
  margin: 4px 0;
}
.dot {
  background: #edf1e7;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.note {
  padding: 17px;
  background: #f4f5ec;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: #718065;
}
.note strong {
  display: block;
  color: #526448;
  margin-bottom: 4px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.toolbar input {
  flex: 1;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product {
  padding: 0;
  overflow: hidden;
  margin: 0;
}
.product-art {
  height: 145px;
  background: #f0f2e8;
  display: grid;
  place-items: center;
  position: relative;
}
.product-art .tag {
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #78826b;
}
.bottle {
  height: 92px;
  width: 55px;
  background: linear-gradient(90deg, #67482b, #96704c 35%, #694828);
  border-radius: 8px 8px 12px 12px;
  position: relative;
  box-shadow: 7px 8px 11px #243a2420;
  display: flex;
  align-items: center;
}
.bottle:before {
  content: '';
  position: absolute;
  top: -10px;
  left: -1px;
  width: 57px;
  height: 15px;
  border-radius: 4px 4px 1px 1px;
  background: repeating-linear-gradient(90deg, #ebe9da, #ebe9da 2px, #d6d5c8 3px);
}
.bottle-label {
  background: #f4f1df;
  width: 100%;
  padding: 7px 3px;
  font-size: 6px;
  text-align: center;
  color: #38543b;
  border-top: 3px solid #7b925f;
  border-bottom: 3px solid #7b925f;
}
.bottle-label b {
  display: block;
  font-size: 8px;
  margin: 4px 0;
}
.product-body {
  padding: 19px;
}
.product-body h3 {
  margin: 5px 0 7px;
}
.product-body p {
  font-size: 11px;
  min-height: 18px;
  margin-bottom: 15px;
}
.product-body .row {
  font-size: 12px;
}
.product-body .text {
  font-size: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #69786b;
}
input,
select,
textarea {
  border: 1px solid #dce3d8;
  background: white;
  border-radius: 7px;
  padding: 10px;
  color: var(--ink);
  min-width: 0;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 67px;
}
.full {
  grid-column: 1/-1;
}
.rx-item {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
  margin-bottom: 17px;
}
.rx-item h3 {
  margin: 0;
}
.rx-item .fields {
  margin-top: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 14px 0;
}
.total {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-weight: 700;
  font-size: 16px;
}
.empty {
  text-align: center;
  padding: 45px;
  color: var(--muted);
}
.wide {
  width: 100%;
}
.spaced {
  margin-top: 16px;
}
.sticky {
  position: sticky;
  top: 20px;
  align-self: start;
}
.chart {
  height: 150px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 15px;
  padding: 20px 5px 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.bar {
  background: #c3d3b7;
  flex: 1;
  max-width: 45px;
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 5px;
}
.bar:last-child {
  background: var(--green);
}
.bar span {
  position: absolute;
  bottom: -20px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 620px;
  width: calc(100% - 36px);
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 20px 90px #102c3430;
}
dialog::backdrop {
  background: #1a302b55;
  backdrop-filter: blur(3px);
}
dialog .fields {
  margin: 20px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #243f35;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  z-index: 100;
  display: none;
  font-size: 13px;
  box-shadow: 0 5px 30px #243f3533;
}
.patient {
  max-width: 960px;
  margin: auto;
  padding: 35px 24px;
}
.patient-header {
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 36px;
}
.patient-brand {
  font: 26px Georgia;
  margin: 12px;
}
.patient-intro {
  text-align: center;
  margin-bottom: 28px;
}
.patient-intro h1 {
  font: 36px Georgia;
  margin: 12px;
}
.patient-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.patient .rx-item {
  background: #fafbf7;
}
.patient footer {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 30px;
}
.instruction {
  font-size: 12px;
  line-height: 1.8;
  background: #eff3ea;
  border-radius: 7px;
  padding: 14px;
  margin-top: 14px;
}
.modebar {
  background: #233f35;
  color: #f6f8f1;
  padding: 9px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.modebar button {
  padding: 5px 11px;
  font-size: 10px;
}
.step {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 25px;
}
.step b {
  background: var(--pale);
  padding: 6px 10px;
  border-radius: 20px;
  color: var(--green);
}
.success-icon {
  font-size: 36px;
  margin: 15px auto;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: var(--pale);
  border-radius: 50%;
}
.demo-label {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.mobilebrand {
  display: none;
}
.checkrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  margin: 18px 0;
}
.checkrow input {
  width: auto;
}
.linkbox {
  word-break: break-all;
  background: var(--bg);
  padding: 13px;
  font-size: 12px;
  border-radius: 8px;
}
.protocol {
  display: flex;
  align-items: center;
  gap: 15px;
}
.protocol .dot {
  width: 48px;
  height: 48px;
  font-size: 24px;
}
.protocol p {
  font-size: 12px;
  margin: 5px 0;
}
.protocol h3 {
  margin: 0;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.amount {
  color: var(--green);
  font-weight: 700;
}
.mini {
  font-size: 10px;
}
.help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.logo-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  color: var(--green);
}
.outcome {
  text-align: center;
  padding: 35px 20px;
}
.outcome h1 {
  font-family: Georgia;
}
.notification {
  border: 1px solid #e7dbc5;
  background: #fff9ed;
  padding: 13px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
  color: #917343;
}
@media (min-width: 1450px) {
  .content {
    padding-top: 40px;
  }
  .hero {
    min-height: 205px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 25px 15px;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }
  .sticky {
    position: static;
  }
  .grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .botanical {
    opacity: 0.4;
  }
  .rx-item .fields {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px;
  }
  .sidebar .brand,
  .practice,
  .navlabel,
  .sidefoot {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    gap: 3px;
  }
  .nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px;
  }
  .navicon {
    display: none;
  }
  .topbar {
    height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .mobilebrand {
    display: block;
  }
  .breadcrumb {
    display: none;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    align-items: start;
  }
  .heading h1 {
    font-size: 24px;
  }
  .heading .primary {
    font-size: 11px;
    white-space: nowrap;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 24px;
  }
  .hero h2 {
    font-size: 25px;
    max-width: 270px;
  }
  .hero p {
    max-width: 260px;
  }
  .botanical {
    right: -90px;
  }
  .two-col,
  .patient-grid {
    grid-template-columns: 1fr;
  }
  .grid > aside {
    display: block;
  }
  .catalog {
    gap: 12px;
  }
  .product-body {
    padding: 14px;
  }
  .product-body .row {
    flex-wrap: wrap;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    flex-basis: 100%;
  }
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    padding: 18px;
  }
  .modebar {
    gap: 15px;
    font-size: 10px;
  }
  .patient {
    padding: 24px 16px;
  }
  .patient-intro h1 {
    font-size: 29px;
  }
}
@media print {
  .modebar,
  button,
  .sidebar,
  .topbar {
    display: none !important;
  }
  .patient {
    max-width: none;
  }
  .card {
    break-inside: avoid;
  }
}
.shell > div,
.grid > *,
.patient-grid > * {
  min-width: 0;
}
.hero > *:not(.botanical) {
  position: relative;
  z-index: 1;
}
@media (min-width: 721px) and (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .heading {
    align-items: flex-start;
  }
  .heading .primary {
    min-width: 150px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1.6px;
    margin-left: 23px;
  }
}
.sync-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0;
  border-radius: 0;
  text-align: center;
}
.sync-banner button {
  margin-left: 12px;
}

.conversation {
  max-height: 420px;
  overflow: auto;
  margin: 20px 0;
}
.message {
  border: 1px solid var(--line, #e0e5df);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  background: #f8faf6;
}
.message-patient {
  background: #fff;
}
.message-admin {
  border-left: 3px solid #bc9955;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
}
.message small {
  font-size: 11px;
  color: #697669;
}
.message .row {
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .notification {
    line-height: 1.7;
  }
  .topbar .row {
    flex-wrap: wrap;
  }
  .message {
    padding: 12px;
  }
}

.company-browser summary {
  cursor: pointer;
  font-weight: 600;
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.company-grid button {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
}
.company-grid button span {
  font-size: 11px;
  color: var(--muted);
}
.company-grid .selected {
  background: var(--pale);
  border-color: var(--green);
}
.catalog-filters {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr 1fr;
  gap: 14px;
}
.catalog-results,
.catalog-results > .row,
.catalog-pagination {
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-results {
  font-size: 12px;
}
.catalog-art {
  background: #edf2e7;
  min-height: 95px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.catalog-art span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.catalog-art b {
  font: 20px Georgia;
}
.catalog-basket {
  position: sticky;
  top: 8px;
  z-index: 4;
}
.catalog-pagination {
  justify-content: center;
}
.catalog .product-body .row {
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 1000px) {
  .company-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-filters {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-search {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .company-grid {
    grid-template-columns: 1fr 1fr;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    grid-template-columns: 1fr;
  }
  .catalog-art {
    min-height: 70px;
  }
  .heading {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Builder section 04: treatment-type checkboxes. */
fieldset.checks {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
fieldset.checks legend {
  padding: 0;
  margin-bottom: 6px;
}
label.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
}
/* Outcome report: groups hidden for privacy. */
tr.muted td {
  color: var(--muted, #777);
}
fieldset.checks label.check {
  white-space: nowrap;
  width: auto;
}
fieldset.checks label.check input {
  width: auto;
  min-height: 0;
  margin: 0;
  flex: none;
}
/* Patient website: sign-in buttons side by side. */
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
