.cc-body {
  background: #f5f2eb;
  color: #1f2a24;
}

/* The corporate stylesheet treats every form as a large glass card. Portal forms
   live inside their own bounded panels, so reset that global presentation here. */
.cc-body form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cc-body .site-header {
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 78px;
}

.cc-body .site-name {
  width: 210px;
  height: 78px;
  background-position: -21px -91px;
  background-size: 297px 297px;
}

.cc-body .site-header nav {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .9rem;
}

.cc-logout {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.cc-nav-toggle {
  display: none;
}

.cc-link-button {
  margin: 0 !important;
  background: transparent !important;
  color: inherit !important;
  border: 0 !important;
  padding: .25rem !important;
  box-shadow: none !important;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.cc-link-button:hover,
.cc-link-button:focus-visible {
  background: transparent !important;
  color: #71351e !important;
  box-shadow: none !important;
  transform: none !important;
}

.cc-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.cc-auth-card {
  max-width: 520px;
  margin: 5rem auto;
  background: #fff;
  border: 1px solid #d9d3c6;
  border-radius: 18px;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 0 20px 60px rgba(22, 40, 30, .08);
}

.cc-auth-logo {
  width: 170px;
  height: auto;
  margin-bottom: 1.5rem;
}

.cc-auth-help {
  margin: .75rem 0 0;
}

main a.cc-auth-link,
main a.cc-auth-link:hover,
main a.cc-auth-link:focus-visible {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .5rem 0;
  border: 0;
  background: transparent;
  color: #71351e;
  box-shadow: none;
  transform: none;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.cc-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
  color: #47705a;
}

.cc-stack {
  display: grid;
  gap: .8rem;
}

.cc-stack label,
.cc-form-grid label {
  display: grid;
  gap: .35rem;
  margin-top: 0;
  font-weight: 700;
}

.cc-stack input,
.cc-stack textarea,
.cc-stack select,
.cc-form-grid input,
.cc-form-grid select,
.cc-inline-form input,
.cc-inline-form select {
  width: 100%;
  border: 1px solid #a9b2aa;
  border-radius: 8px;
  padding: .72rem;
  background: #fff;
  color: #17231d;
}

.cc-stack textarea {
  min-height: 110px;
}

.cc-body input:focus-visible,
.cc-body select:focus-visible,
.cc-body textarea:focus-visible {
  border-color: #71351e;
  outline: 3px solid #71351e;
  outline-offset: 2px;
}

.cc-heading,
.cc-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cc-heading {
  margin-bottom: 1.5rem;
}

.cc-heading h1 {
  margin: .1rem 0;
}

.cc-grid,
.cc-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cc-panel {
  background: #fff;
  border: 1px solid #ded8cc;
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.cc-wide {
  grid-column: 1 / -1;
}

.cc-panel h2 {
  margin-top: 0;
}

.cc-row {
  border-bottom: 1px solid #ece8df;
  padding: .7rem 0;
}

.cc-row:last-child {
  border-bottom: 0;
}

.cc-status {
  display: inline-block;
  background: #edf4ef;
  color: #284d38;
  border: 1px solid #c6d9ca;
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .78rem;
  white-space: nowrap;
}

.cc-quick {
  display: grid;
  gap: .55rem;
}

.cc-quick a {
  display: block;
  border: 1px solid #cfd8d0;
  border-radius: 8px;
  padding: .65rem;
  text-decoration: none;
}

.cc-report-period {
  font-size: 1.45rem;
  font-weight: 800;
}

.cc-alert {
  max-width: 850px;
  margin: 0 auto 1rem;
  border-radius: 9px;
  padding: .8rem 1rem;
}

.cc-success {
  background: #e8f5eb;
  border: 1px solid #47705a;
}

.cc-error {
  background: #fff0ee;
  border: 1px solid #9b4e2d;
}

.cc-warning {
  background: #fff7dd;
  border: 1px solid #806400;
}

.cc-break {
  overflow-wrap: anywhere;
}

.cc-request {
  border-top: 1px solid #e4ded3;
  padding: 1rem 0;
}

.cc-request:first-of-type {
  border-top: 0;
}

.cc-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .25rem 1rem;
}

.cc-dl dt {
  font-weight: 800;
}

.cc-dl dd {
  margin: 0;
}

.cc-notice,
.cc-warning-box {
  border-left: 4px solid #d0a62e;
  background: #fff9e7;
  padding: .7rem 1rem;
}

.cc-comments {
  background: #f7f7f3;
  padding: .8rem;
  border-radius: 8px;
}

.cc-inline-form {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cc-inline-form label {
  flex: 1;
  margin-top: 0;
}

.cc-inline-form button,
.cc-actions button {
  white-space: nowrap;
}

.cc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cc-check {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start;
  font-weight: 500 !important;
}

.cc-stack .cc-check input {
  width: 20px;
  height: 20px;
  margin: .1rem 0 0;
}

.cc-optional {
  font-weight: 400;
  color: #5f6762;
}

.cc-meter {
  height: 12px;
  overflow: hidden;
  border: 1px solid #bcc9be;
  border-radius: 999px;
  background: #edf0eb;
}

.cc-meter span {
  display: block;
  height: 100%;
  min-width: 0;
  background: #47705a;
}

.cc-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.cc-service-grid .cc-panel {
  margin-bottom: 0;
}

.cc-placeholder {
  max-width: 760px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cc-body button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.cc-full {
  grid-column: 1 / -1;
}

.cc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.cc-asset {
  border: 1px solid #ded8cc;
  border-radius: 10px;
  padding: .8rem;
  min-width: 0;
}

.cc-asset img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.cc-asset h3 {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.cc-file-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #edf0eb;
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: .1em;
}

.cc-table-wrap {
  overflow-x: auto;
}

.cc-body table {
  width: 100%;
  border-collapse: collapse;
}

.cc-body th,
.cc-body td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2ddd2;
  padding: .65rem;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.cc-actions form {
  margin: 0;
}

.cc-command-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid #d8ded8;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef4ef 0%, #fffaf0 100%);
}

.cc-command-intro h2 { margin: .15rem 0 .35rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cc-command-intro p:last-child { margin-bottom: 0; }
.cc-command-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }

.cc-command-metric {
  position: relative;
  display: grid;
  min-height: 130px;
  padding: 1.1rem;
  border: 1px solid #ded8cc;
  border-radius: 14px;
  background: #fff;
  color: #1f2a24;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 42, 36, .04);
  overflow: hidden;
}

.cc-command-metric::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: #688275; content: ""; }
.cc-command-metric > span { color: #56645c; font-weight: 700; font-size: .86rem; }
.cc-command-metric > strong { align-self: end; font-family: Georgia, serif; font-size: 2.4rem; line-height: 1; }
.cc-command-metric > small { margin-top: .35rem; color: #758179; }
.cc-command-metric.cc-metric-attention::before { background: #b84d3c; }
.cc-command-metric.cc-metric-warning::before { background: #b98424; }
.cc-command-metric.cc-metric-healthy::before { background: #3e8060; }
.cc-command-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 1rem; align-items: start; }
.cc-command-side { display: grid; gap: 1rem; }
.cc-command-side .cc-panel { margin: 0; }
.cc-section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.cc-section-heading h2 { margin: .1rem 0 0; }
.cc-empty-state { padding: 2rem 1rem; border: 1px dashed #c9d1ca; border-radius: 10px; text-align: center; color: #56645c; }

.cc-operator-card {
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  margin-top: 1rem;
  border: 1px solid #dce1dc;
  border-radius: 12px;
  background: #fbfcfb;
  overflow: hidden;
}

.cc-operator-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: #71877c; content: ""; }
.cc-operator-card.is-blocking::before { background: #b84d3c; }
.cc-operator-card h3 { margin: .6rem 0 .35rem; }
.cc-operator-meta { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; color: #66736b; font-size: .78rem; }
.cc-priority { padding: .2rem .5rem; border-radius: 99px; background: #f4e5df; color: #8f382b; font-weight: 800; font-size: .7rem; letter-spacing: .04em; }
.cc-operator-card details { margin: .9rem 0; padding: .8rem; border-radius: 8px; background: #f0f3f0; }
.cc-operator-card summary { cursor: pointer; font-weight: 700; }
.cc-decision-form { display: grid; gap: .7rem; margin-top: 1rem !important; }
.cc-decision-form label { display: grid; gap: .35rem; font-weight: 700; }
.cc-decision-form textarea { width: 100%; min-height: 80px; padding: .7rem; border: 1px solid #a9b2aa; border-radius: 8px; }
.cc-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.cc-choice-grid label { display: flex; align-items: center; gap: .45rem; padding: .65rem; border: 1px solid #cfd8d0; border-radius: 8px; background: #fff; cursor: pointer; }
.cc-workspace-list { display: grid; gap: .7rem; }
.cc-workspace-list > a, .cc-workspace-list > div { display: grid; gap: .25rem; padding: .9rem; border: 1px solid #d8ded8; border-radius: 9px; background: #f7faf7; text-decoration: none; }
.cc-workspace-list span { color: #67746c; font-size: .82rem; line-height: 1.45; }
.cc-client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.cc-client-grid > a { display: flex; align-items: center; gap: .7rem; padding: .8rem; border: 1px solid #e1ddd4; border-radius: 9px; color: inherit; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.cc-client-grid > a:hover { border-color: #8ba095; box-shadow: 0 8px 20px rgba(45, 64, 54, .08); transform: translateY(-1px); }
.cc-client-grid > a > span:nth-child(2) { display: grid; flex: 1; gap: .2rem; }
.cc-client-grid small { color: #69766e; }
.cc-client-mark { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: #e1eae3; color: #345943; font-weight: 800; }
.cc-breadcrumb { display: flex; gap: .5rem; align-items: center; margin-bottom: .8rem; color: #68756d; font-size: .88rem; }
.cc-client-hero { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.2rem; border: 1px solid #d8ded8; border-radius: 12px; background: linear-gradient(135deg, #f8faf7, #eef3ef); }
.cc-client-identity { display: flex; align-items: center; gap: 1rem; }
.cc-client-identity h2 { margin: .15rem 0; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cc-client-identity p:last-child { margin: 0; color: #66736b; }
.cc-client-mark-large { width: 3.5rem; height: 3.5rem; font-size: 1.35rem; }
.cc-client-hero-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.cc-workspace-nav { position: sticky; top: .4rem; z-index: 4; display: flex; gap: .35rem; overflow-x: auto; margin: 0 0 1rem; padding: .45rem; border: 1px solid #d8ded8; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(45,64,54,.06); }
.cc-workspace-nav a { flex: 0 0 auto; padding: .55rem .75rem; border-radius: 7px; color: #33483d; font-size: .86rem; font-weight: 700; text-decoration: none; }
.cc-workspace-nav a:hover { background: #edf3ee; }
.cc-client-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.cc-client-overview-grid h3 { margin-top: 0; }
.cc-client-summary-strip { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e1e5e1; }
.cc-client-summary-strip span { padding: .65rem .8rem; border-radius: 8px; background: #f0f3f0; color: #59675f; }
.cc-workflow-list { display: grid; gap: .65rem; }
.cc-workflow-list article { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; padding: .85rem; border: 1px solid #e1e5e1; border-radius: 9px; }
.cc-workflow-list article > div { display: grid; gap: .2rem; }
.cc-workflow-list article small { color: #68756d; }
.cc-workflow-list article p { grid-column: 1 / -1; margin: .35rem 0 0; color: #8b4a34; }
.cc-timeline { display: grid; }
.cc-timeline > div { position: relative; display: grid; grid-template-columns: 9rem 1fr auto; gap: .75rem; align-items: center; padding: .75rem 0 .75rem 1.25rem; border-bottom: 1px solid #e4e7e3; }
.cc-timeline > div::before { position: absolute; left: .1rem; width: .55rem; height: .55rem; border-radius: 50%; background: #6d887a; content: ""; }
.cc-timeline time, .cc-timeline small { color: #6c776f; font-size: .8rem; }
.cc-form-wide { grid-column: 1 / -1; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .cc-command-intro { align-items: flex-start; flex-direction: column; }
  .cc-command-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-command-layout { grid-template-columns: 1fr; }
  .cc-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-client-hero { align-items: flex-start; flex-direction: column; }
  .cc-body .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem 1rem;
    width: min(100% - 1rem, 1180px);
    min-height: 0;
    padding-block: .65rem;
  }

  .cc-body .site-name {
    width: 180px;
    height: 68px;
    background-position: -18px -78px;
    background-size: 254px 254px;
  }

  .cc-body .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    order: initial;
    width: 100%;
    gap: 1.15rem;
    padding: .2rem .15rem .65rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .cc-body .site-header nav > a:not(.site-name) {
    flex: 0 0 auto;
  }

  .cc-logout {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .cc-main {
    width: min(100% - 1rem, 1180px);
    margin: 1rem auto 2rem;
  }

  .cc-auth-card {
    margin: 2rem auto;
  }

  .cc-grid,
  .cc-admin-grid,
  .cc-form-grid {
    grid-template-columns: 1fr;
  }

  .cc-wide,
  .cc-full {
    grid-column: auto;
  }

  .cc-form-wide { grid-column: auto; }
  .cc-client-grid,
  .cc-client-overview-grid,
  .cc-choice-grid { grid-template-columns: 1fr; }

  .cc-timeline > div { grid-template-columns: 1fr; gap: .2rem; }

  .cc-heading,
  .cc-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cc-heading h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
    line-height: 1.02;
  }

  .cc-inline-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .cc-inline-form label {
    flex-basis: 100%;
  }

  .cc-body .site-footer {
    width: min(100% - 2rem, 1180px);
    padding-block: 2rem;
  }
}

@media (max-width: 720px) {
  .cc-body .site-header[data-client-nav] {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .5rem;
  }

  .cc-body .site-header[data-client-nav] .site-name {
    width: 140px;
    height: 56px;
    background-position: -14px -61px;
    background-size: 198px 198px;
  }

  .cc-body .site-header[data-client-nav] .cc-logout {
    grid-column: 2;
    grid-row: 1;
  }

  .cc-body .site-header[data-client-nav][data-client-nav-ready] .cc-nav-toggle {
    grid-column: 3;
    grid-row: 1;
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 2px solid #71351e;
    border-radius: .7rem;
    background: #fff;
    color: #71351e;
    box-shadow: none;
  }

  .cc-body .site-header[data-client-nav] .cc-nav-toggle:hover,
  .cc-body .site-header[data-client-nav] .cc-nav-toggle:focus-visible {
    background: #eee9df;
    color: #71351e;
    transform: none;
  }

  .cc-nav-icon,
  .cc-nav-icon::before,
  .cc-nav-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform .18s ease, opacity .18s ease;
  }

  .cc-nav-icon {
    position: relative;
  }

  .cc-nav-icon::before,
  .cc-nav-icon::after {
    position: absolute;
    left: 0;
  }

  .cc-nav-icon::before { transform: translateY(-7px); }
  .cc-nav-icon::after { transform: translateY(7px); }
  .cc-nav-toggle[aria-expanded="true"] .cc-nav-icon { background: transparent; }
  .cc-nav-toggle[aria-expanded="true"] .cc-nav-icon::before { transform: rotate(45deg); }
  .cc-nav-toggle[aria-expanded="true"] .cc-nav-icon::after { transform: rotate(-45deg); }

  .cc-body .site-header[data-client-nav] .cc-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: .35rem 0 .75rem;
    border-top: 1px solid #d9d3c6;
    overflow: visible;
    white-space: normal;
  }

  .cc-body .site-header[data-client-nav] .cc-navigation[hidden] {
    display: none;
  }

  .cc-body .site-header[data-client-nav] .cc-navigation > a:not(.site-name) {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: .7rem .5rem;
    font-size: 1rem;
  }
}
