/* The client workspace uses the same sage, paper and dark teal palette as the public site. */
:root {
  --cream: #f7f5eb;
  --forest: #244939;
  --chalk: #f8f8ee;
  --display: "Lexend Zetta",Arial,sans-serif;
}
body {
  min-height: 100vh;
  background: #395f4e;
  color: #20372c;
  background-image: radial-gradient(ellipse at 88% 3%,#4b6b58,transparent 48%),
    linear-gradient(120deg,#234637,#3e624c 66%,#2e503e);
  background-attachment: fixed;
}
svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.mast {
  color: var(--chalk);
  background: #243e3199;
  border-color: #e9f2e026;
  padding: .8rem clamp(1.1rem,4vw,4.5rem);
  position: relative;
}
.mast .brand,
.mast .product {
  color: var(--chalk);
}
.brand img {
  filter: brightness(0) invert(1);
}
.product {
  border-color: #f4f6e54d;
}
.mast #account {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mast button {
  background: transparent;
  color: var(--chalk);
  border-color: #d9e7d76b;
  font-size: .82rem;
}
.bell {
  position: relative;
  color: var(--chalk);
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
}
.bell svg {
  width: 25px;
  height: 25px;
}
.bell.unread::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5edbb;
  position: absolute;
  right: 5px;
  top: 4px;
}
#sidebar {
  background: #223d319c;
  border-color: #e9f2e02e;
  color: var(--chalk);
  width: 232px;
  padding: 2.2rem 1.15rem;
}
#sidebar label {
  font-size: .74rem;
  color: #dfebdb;
}
#sidebar select {
  background: #f2f2e8;
  color: var(--forest);
  border-color: transparent;
}
#sidebar .links a {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #edf3e8;
  font-size: .93rem;
  padding: .65rem .7rem;
}
#sidebar .links a:hover,
#sidebar .links a[aria-current] {
  color: #244c36;
  background: #eaefdf;
  border-color: #add093;
}
#layout {
  width: 100%;
  min-width: 0;
}
main {
  width: 100%;
  max-width: 1260px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(1.25rem,3.7vw,3.5rem);
  color: var(--chalk);
}
main h1,
main h2 {
  color: inherit;
}
main > div:not(.business-home) > h1 {
  margin-bottom: 1rem;
}
.card,
.welcome,
.panel,
.empty,
.notice,
.organization-form {
  color: #203a2e;
  background: var(--cream);
}
main > .welcome {
  max-width: 520px;
  margin: 8vh auto;
  padding: clamp(1.6rem,4vw,3rem);
  border-radius: 22px;
  box-shadow: 0 15px 55px #17332433;
}
main > .welcome h1 {
  color: #213c2e;
}
main .card,
form.panel {
  border-radius: 16px;
  color: #263e30;
  background: var(--cream);
  border-color: #e1e5d8;
}
main a:not(.button):not(.metric-tile):not(.approval-strip):not(.action-link) {
  text-underline-offset: 3px;
}
main section > h2 {
  letter-spacing: -.04em;
}
main .meta,
.card small {
  color: #51634f;
}
.business-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  padding: .6rem .2rem 1.5rem;
}
.business-hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 3%;
  top: -27%;
  width: 45%;
  height: 165%;
  background: #d3eaca1a;
  mask: url("/mark.svg") no-repeat center/contain;
  transform: rotate(-4deg);
}
.business-hero h1 {
  font: 450 clamp(1.75rem,4vw,3.25rem)/1.15 var(--display);
  letter-spacing: -.055em;
  color: var(--chalk);
  margin: .4rem 0;
  max-width: 92%;
  overflow-wrap: anywhere;
}
.greeting {
  font-size: clamp(1.05rem,2.3vw,1.5rem);
  letter-spacing: .04em;
  color: #f0f4e6;
  margin: 0;
}
.hero-caption {
  font-size: .9rem;
  letter-spacing: .13em;
  margin: .5rem 0 0;
  color: #f2f4e7;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 .76rem;
}
.section-heading h2,
.support-panel h2,
.approval-strip h2 {
  font: 500 clamp(1.15rem,2vw,1.5rem)/1.25 var(--display);
  letter-spacing: -.06em;
  margin: 0;
}
.section-heading small,
.range {
  color: #f1f4e8;
  font-size: .8rem;
}
.period {
  margin: .3rem 0 .65rem;
}
.period h2 {
  font: 600 .8rem/1.3 Arial,sans-serif;
  letter-spacing: .035em;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .8rem;
}
.metric-tile,
.project-panel,
.support-panel,
.approval-strip,
.mobile-nav {
  background: linear-gradient(145deg,#fbfaf2,#eae8dc);
  border: 1px solid #f7f7ea9c;
  box-shadow: 0 5px 16px #1e382512;
  color: #1d3527;
}
.metric-tile {
  border-radius: 17px;
  padding: 1.1rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  text-decoration: none;
  min-width: 0;
}
.glyph-box {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #dfe4d4;
  color: #426b4e;
  flex: none;
}
.glyph-box svg {
  width: 1.5rem;
  height: 1.5rem;
}
.metric-text {
  display: grid;
  gap: .16rem;
  min-width: 0;
}
.metric-name {
  font-size: .86rem;
  font-weight: 600;
}
.metric-value {
  font-size: clamp(1.3rem,2.6vw,1.9rem);
  line-height: 1.25;
  letter-spacing: -.05em;
  color: #152a1d;
  overflow-wrap: anywhere;
}
.metric-text small,
.project-panel small {
  font-size: .75rem;
  color: #52664f;
  line-height: 1.4;
}
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--chalk);
  font-size: .8rem;
  text-decoration: none;
  white-space: nowrap;
}
.quiet-link svg,
.action-link svg {
  width: 1rem;
}
.project-group {
  display: grid;
  gap: .65rem;
}
.project-panel {
  padding: 1.15rem 1.4rem;
  border-radius: 18px;
}
.project-head,
.approval-strip {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.project-head h3 {
  font-size: 1.13rem;
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.overline {
  font-size: .7rem;
  color: #577158;
  letter-spacing: .06em;
  margin: 0;
}
.state-pill {
  margin-left: auto;
  align-self: flex-start;
  background: #dce6d7;
  color: #365c40;
  border-radius: 99px;
  padding: .22rem .65rem;
  font-size: .75rem;
  text-transform: capitalize;
}
.phase-bars {
  display: grid;
  gap: .61rem;
  margin: .85rem 0 .15rem;
}
.phase-label {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  font-size: .8rem;
  color: #354d3a;
}
.phase-label strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.phase progress {
  appearance: none;
  display: block;
  width: 100%;
  height: .52rem;
  margin-top: .2rem;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #d2d3c5;
  color: #476e50;
}
.phase progress::-webkit-progress-bar {
  background: #d2d3c5;
  border-radius: 99px;
}
.phase progress::-webkit-progress-value {
  background: #42714c;
  border-radius: 99px;
}
.phase.logic progress::-webkit-progress-value {
  background: #4c7770;
}
.phase.launch progress::-webkit-progress-value {
  background: #798653;
}
.phase progress::-moz-progress-bar {
  background: #48744e;
  border-radius: 99px;
}
.home-lower {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: .85rem;
  margin: 1rem 0;
}
.updates-panel,
.support-panel {
  border-radius: 18px;
  padding: 1.1rem 1.35rem;
}
.updates-panel {
  border: 1px solid #e2efdb70;
  background: #ffffff12;
  color: var(--chalk);
}
.updates-panel .section-heading {
  margin: 0 0 .85rem;
}
.update-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}
.update-feed li {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: .52rem 0;
  border-bottom: 1px solid #f5f9e730;
}
.update-feed li:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b6d5ac;
  flex: none;
}
.update-feed li:last-child {
  border: 0;
}
.update-feed a {
  color: var(--chalk);
  text-decoration: none;
}
.update-feed small {
  display: block;
  font-size: .7rem;
  color: #e0e8db;
}
.update-feed time {
  margin-left: auto;
  white-space: nowrap;
  font-size: .74rem;
}
.support-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: .65rem;
}
.support-panel p,
.support-panel .action-link {
  grid-column: 1/-1;
}
.support-panel p {
  margin: .6rem 0 .8rem;
  font-size: .89rem;
}
.action-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  background: #375f44;
  border-radius: 99px;
  padding: .55rem 1rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
}
.approval-strip {
  border-radius: 18px;
  padding: 1.1rem 1.35rem;
  text-decoration: none;
}
.approval-strip h2 {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: 0;
  font-size: 1.09rem;
}
.approval-strip p {
  margin: .12rem 0 0;
  font-size: .85rem;
}
.approval-strip > svg {
  margin-left: auto;
}
.analytics-notes {
  margin-top: 1.2rem;
}
.analytics-notes h3 {
  font-size: .95rem;
}
.analytics-notes p {
  color: #49604c;
}
.mobile-nav {
  display: none;
}
@media (min-width:751px) {
  .mobile-nav.has-chat { display:block; position:fixed; z-index:10; right:1.25rem; bottom:1.25rem; border-radius:2rem; }
  .mobile-nav.has-chat a:not(.chat-shortcut) { display:none; }
  .mobile-nav .chat-shortcut { display:flex; align-items:center; gap:.45rem; border-radius:2rem; padding:.7rem 1rem; margin:0; background:#24564c; color:#fff; box-shadow:0 3px 12px #19392f33; font-weight:600; }
  .chat-shortcut svg { width:1.2rem; height:1.2rem; }
  body.in-workspace main { padding-bottom:5rem; }
}
@media (max-width:1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  #sidebar {
    width: 205px;
  }
}
@media (max-width:750px) {
  .mast {
    min-height: 60px;
    background: transparent;
    border: 0;
    padding: .8rem 1.12rem;
  }
  .mast .product {
    display: none;
  }
  #sidebar {
    padding: .35rem 1rem .7rem;
    background: transparent;
    border: 0;
    width: 100%;
  }
  #sidebar label {
    display: inline;
    margin-right: .55rem;
  }
  #sidebar select {
    width: auto;
    max-width: 74%;
    margin: 0;
    padding: .32rem 1.4rem .32rem .55rem;
    font-size: .8rem;
  }
  #sidebar .links {
    margin-top: .5rem;
    gap: .35rem;
    overflow: auto;
  }
  #sidebar .links a {
    font-size: .76rem;
    padding: .35rem .5rem;
  }
  #sidebar .links a svg {
    display: none;
  }
  #sidebar .links a:is([href$="/overview"],[href$="/analytics"],[href$="/projects"],[href$="/support"],[href$="/organization"],[href$="/notifications"]) {
    display: none;
  }
  main {
    padding: .75rem 1rem 6rem;
  }
  .mobile-nav {
    position: fixed;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .35rem .1rem max(.4rem,env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 18px #24382a2e;
  }
  .mobile-nav a {
    display: grid;
    justify-items: center;
    gap: .12rem;
    margin: 0;
    padding: .2rem .4rem;
    font-size: .68rem;
    color: #324735;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    align-content: center;
  }
  .mobile-nav a[aria-current] {
    border: 0;
    border-radius: 5px;
    background: #dce5d4;
  }
  .mobile-nav svg {
    width: 21px;
    height: 21px;
  }
  .business-hero {
    padding: .35rem .1rem .85rem;
  }
  .home-lower {
    grid-template-columns: 1fr 1fr;
  }
  .project-panel {
    padding: 1rem;
  }
  .business-hero h1 {
    font-size: clamp(1.55rem,6vw,2.5rem);
  }
}
@media (max-width:470px) {
  .metric-tile {
    padding: .83rem .65rem;
    gap: .45rem;
  }
  .metric-name {
    font-size: .76rem;
  }
  .glyph-box {
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
  }
  .glyph-box svg {
    width: 1.18rem;
    height: 1.18rem;
  }
  .kpi-grid {
    gap: .55rem;
  }
  .metric-text small {
    font-size: .68rem;
  }
  .updates-panel,
  .support-panel {
    padding: .85rem;
  }
  .section-heading h2,
  .support-panel h2 {
    font-size: .99rem;
  }
  .support-panel {
    display: block;
  }
  .support-panel > .glyph-box {
    margin-bottom: .45rem;
  }
  .update-feed li {
    flex-wrap: wrap;
  }
  .update-feed time {
    margin: 0;
  }
  .home-lower {
    gap: .6rem;
  }
  .period small {
    font-size: .64rem;
  }
  .state-pill {
    font-size: .66rem;
  }
}
@media (prefers-reduced-motion:no-preference) {
  .metric-tile,
  .action-link {
    transition: transform .15s ease;
  }
  .metric-tile:hover,
  .action-link:hover {
    transform: translateY(-2px);
  }
}

.business-tools { margin-top:.85rem; border-top:1px solid #8ea394; padding-top:.4rem; }
#sidebar .business-tools summary { padding:.65rem .4rem; color:#f2f7ed; cursor:pointer; }
#sidebar .business-tools a { color:#eff5ea; display:flex; align-items:center; gap:.65rem; }
#sidebar .business-tools a:is(:hover,[aria-current]) { background:#e6efdc; color:#254635; }
#sidebar .business-tools :focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
main > div:not(.business-home):has(>h1) {
  padding:clamp(1rem,3vw,2.2rem); border-radius:1rem; background:#f8f9f3; color:#203c32;
}
main > div:not(.business-home) :is(.range,.section-heading small) { color:#485f4d; }
main > div:not(.business-home) :is(.card,.panel) { background:#fff; }
main > div:not(.business-home) summary { padding:.5rem .2rem; }
:is(.support-tabs,.chat-compose) { max-width:100%; }
.metric-text small,.project-panel small { font-size:.83rem; }
.mobile-nav a:focus-visible,.support-tabs a:focus-visible { outline-offset:-3px; }
@media(max-width:750px) {
  #sidebar .business-tools { margin:.3rem 0 0; }
  #sidebar .business-tools summary { min-height:44px; align-content:center; padding-inline:0; }
  #sidebar .business-tools a { display:inline-flex; min-height:44px; margin:.1rem; }
  #sidebar .links { flex-wrap:wrap; }
  #sidebar .links a { min-height:44px; align-content:center; font-size:.85rem; }
  .mobile-nav a { font-size:.75rem; }
  .mobile-nav span { overflow-wrap:anywhere; }
}
@media(max-width:440px) {
  .home-lower { grid-template-columns:1fr; }
  .section-heading { flex-wrap:wrap; gap:.4rem; }
  .support-tabs { flex-wrap:wrap; }
}

@media(max-width:470px) {
  .metric-tile { display:grid; grid-template-columns:auto minmax(0,1fr); align-content:start; align-items:center; }
  .metric-text { display:contents; }
  .metric-value,.metric-text small { grid-column:1/-1; }
  .metric-value { font-variant-numeric:tabular-nums; }
}
