:root {
  --ink: #182e2a;
  --muted: #74807b;
  --green: #165b48;
  --line: #e2e7e0;
  --paper: #f5f6f1;
  --white: #fff;
  --lime: #d8ef8c;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
.login-page {
  --ink: #17212b;
  --muted: #52606d;
  --green: #005daa;
  --line: #d7dfe6;
  --paper: #f5f7fa;
  --lime: #e8f2fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.login-brand {
  background: #111;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 26px;
  width: fit-content;
  max-width: 100%;
}
.login-brand img { display: block; max-width: 100%; height: auto; }
.login-page .login-card { border: 1px solid #d7dfe6; }
.login-page input:focus-visible, .login-page button:focus-visible {
  outline: 3px solid #005daa;
  outline-offset: 3px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #92b951;
  outline-offset: 3px;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 250px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 33px 22px 20px;
  display: flex;
  flex-direction: column;
  z-index: 4;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--lime);
  font-size: 35px;
  font-weight: 700;
  width: 43px;
  height: 45px;
  line-height: 1;
}
.brand-mark span {
  font-size: 22px;
  align-self: flex-start;
  margin-top: 4px;
  margin-left: -5px;
}
.brand small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1.8px;
  margin-top: 6px;
  font-weight: 600;
}
.workspace-label {
  margin: 38px 0 30px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.workspace-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}
.tag {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 10px;
  padding: 2px 4px;
  color: var(--muted);
}
.nav-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 15px;
}
.nav-label {
  font-size: 9px;
  margin-left: 11px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: none;
  text-align: left;
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
  color: #67756e;
}
nav button span {
  font-size: 19px;
  width: 20px;
  line-height: 18px;
}
nav button.active {
  background: #edf3e6;
  color: #254c39;
  font-weight: 650;
}
nav button:hover {
  background: #f4f6f1;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.source-note {
  font-size: 10px;
  line-height: 1.6;
  color: #4d6558;
  padding: 0 10px;
}
.source-note small {
  display: block;
  color: #909a94;
  font-size: 9px;
  margin-left: 13px;
}
.pulse,
.live-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55906d;
  margin-right: 5px;
}
.signout {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  padding: 15px 10px;
}
.profile {
  border-top: 1px solid var(--line);
  padding: 20px 2px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
}
.profile > span {
  background: #efeee6;
  border-radius: 50%;
  padding: 10px;
  font-size: 10px;
}
.profile small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.main-shell {
  margin-left: 250px;
  width: calc(100% - 250px);
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 43px;
  background: #fafbf8;
}
.breadcrumb {
  font-size: 11px;
  color: #8c968f;
}
.breadcrumb span {
  margin: 0 12px;
  color: #bec5bd;
}
.breadcrumb strong {
  font-weight: 500;
  color: #506354;
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.live-label {
  font-size: 10px;
  color: var(--muted);
}
#refresh {
  border: 0;
  background: none;
  font-size: 22px;
  color: var(--muted);
}
.repo-link {
  font-size: 11px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 9px 13px;
}
#mobile-menu {
  display: none;
}
main#main {
  padding: 41px 43px 0;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 31px;
}
.page-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.6px;
  line-height: 1.18;
  margin: 0 0 12px;
  font-weight: 600;
}
h1 > span {
  color: #80a54c;
}
.page-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.project-badge {
  font-size: 9px;
  color: #929b94;
  letter-spacing: 1.2px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 4px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
}
.vision-card {
  background: #193b31;
  border-radius: 12px;
  min-height: 277px;
  padding: 26px 30px;
  color: white;
  overflow: hidden;
  position: relative;
}
.vision-card:after {
  content: "";
  width: 270px;
  height: 270px;
  border: 1px solid #9cbd8c20;
  border-radius: 50%;
  position: absolute;
  right: -120px;
  top: 0;
  box-shadow:
    0 0 0 28px #9cbd8c08,
    0 0 0 60px #9cbd8c05;
  pointer-events: none;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c4daa9;
}
.pill {
  border: 1px solid #617c5f;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.hero-top > span:last-child {
  font-size: 22px;
}
.vision-card h2 {
  font-size: 30px;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 23px 0 13px;
}
.vision-card p {
  font-size: 11px;
  color: #b6cbb9;
  line-height: 1.8;
  margin: 0;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  color: #87aa96;
  font-size: 9px;
}
.orbit {
  font-size: 26px;
  color: var(--lime);
}
.focus-card {
  background: #e9eddf;
  border: 1px solid #dce2ce;
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.focus-card .eyebrow {
  font-size: 8px;
  color: #879276;
  margin-bottom: 20px;
}
.focus-label {
  font-size: 10px;
  color: #56703e;
  display: flex;
  align-items: center;
  gap: 7px;
}
.focus-label i {
  width: 6px;
  height: 6px;
  background: #75964c;
  border-radius: 50%;
}
.focus-card h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 550;
  margin: 11px 0;
}
.focus-card p {
  color: #738067;
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 13px;
}
.text-button {
  border: 0;
  background: none;
  text-align: left;
  padding: 5px 0;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.focus-foot {
  border-top: 1px solid #d6ddc9;
  padding-top: 13px;
  margin-top: auto;
  font-size: 9px;
  color: #8c977e;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 20px 0 37px;
}
.metrics > div {
  padding: 19px 22px;
  border-right: 1px solid var(--line);
}
.metrics > div:last-child {
  border: 0;
}
.metric-label {
  font-size: 10px;
  color: #7a867d;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.metric-label > span {
  color: #99a293;
}
.metrics strong {
  display: block;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 10px 0 4px;
}
.metrics em {
  font-style: normal;
  font-size: 18px;
  color: #aab2a7;
  font-weight: 400;
}
.metrics small {
  font-size: 9px;
  color: #99a194;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading .eyebrow {
  font-size: 8px;
  margin: 0 0 8px;
}
.section-heading h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 0;
}
.section-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 12px;
  margin: 20px 0 15px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 13px;
  flex: 1;
}
.search > span {
  font-size: 24px;
  color: #8f9b90;
  line-height: 20px;
}
.search input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  font-size: 11px;
  color: var(--ink);
}
.search:focus-within {
  outline: 2px solid #9abb74;
}
.search input::placeholder {
  color: #9aa39b;
}
.search kbd {
  border: 1px solid #e4e8e0;
  color: #b2b8af;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}
select {
  background: #fff;
  border: 1px solid var(--line);
  color: #6c7c6e;
  border-radius: 6px;
  padding: 10px 30px 10px 13px;
  font-size: 10px;
}
.document-table {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.table-head,
.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 100px 16px;
  gap: 15px;
  align-items: center;
  padding: 14px 20px;
}
.table-head {
  font-size: 8px;
  letter-spacing: 1px;
  color: #8b978b;
  background: #fafbf7;
  padding-top: 13px;
  padding-bottom: 13px;
}
.document-row {
  background: white;
  border: 0;
  border-top: 1px solid #eef0e9;
  width: 100%;
  text-align: left;
  min-height: 78px;
}
.document-row:hover {
  background: #f8faf4;
}
.document-title {
  display: flex;
  gap: 13px;
  min-width: 0;
  align-items: center;
}
.document-title > span:last-child {
  min-width: 0;
}
.file-icon {
  flex: 0 0 35px;
  height: 38px;
  border-radius: 6px;
  background: #f0f3e9;
  border: 1px solid #e6eadf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #859478;
}
.document-title strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-title small {
  display: block;
  font-size: 10px;
  color: #9aa294;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-title small span {
  margin: 0 7px;
}
.status {
  font-size: 9px;
  border-radius: 5px;
  padding: 5px 8px;
  width: fit-content;
  white-space: nowrap;
  background: #f1f2ee;
  color: #899180;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status.in-progress {
  color: #9c7628;
  background: #fbf3de;
}
.status.done {
  color: #458363;
  background: #edf5eb;
}
.status.blocked {
  color: #b25a50;
  background: #fbede8;
}
.document-row time {
  font-size: 10px;
  color: #96a08f;
}
.row-arrow {
  color: #a5ae9b;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.board-column {
  padding: 12px;
  background: #ecefe7;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 240px;
}
.board-column h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 16px;
}
.board-column h3 > span:last-child {
  margin-left: auto;
  color: #89957e;
  font-weight: 400;
}
.column-dot {
  height: 6px;
  width: 6px;
  background: #b6bdad;
  border-radius: 50%;
}
.column-dot.in-progress {
  background: #c29c4e;
}
.column-dot.blocked {
  background: #c87769;
}
.column-dot.done {
  background: #69a181;
}
.board-card {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid #e1e6d9;
  border-radius: 7px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 2px #1a372306;
}
.board-card:hover {
  border-color: #9aaa85;
}
.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  font-size: 8px;
  color: #8c9980;
}
.card-kicker b {
  font-size: 8px;
  font-weight: 500;
  background: #f1f4ec;
  border-radius: 3px;
  padding: 1px 3px;
}
.board-card > strong {
  display: block;
  font-size: 12px;
  margin: 12px 0 8px;
  line-height: 1.5;
}
.board-card p {
  font-size: 10px;
  color: #859179;
  line-height: 1.6;
}
.card-footer {
  font-size: 8px;
  color: #98a18e;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #edf0e6;
}
.empty-column {
  text-align: center;
  font-size: 10px;
  color: #9ca58f;
  padding: 25px 0;
}
.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 12px;
}
.empty > span {
  font-size: 35px;
}
.empty h3 {
  font-size: 16px;
  color: var(--ink);
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9da697;
  padding: 24px 0 28px;
}
#error-banner {
  background: #fff1e6;
  color: #9a5d33;
  border: 1px solid #eed7c6;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(900px, 94vw);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 90px #10271f33;
}
dialog::backdrop {
  background: #10282066;
  backdrop-filter: blur(3px);
}
.dialog-top {
  position: sticky;
  top: 0;
  background: #f9faf6;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 24px;
  gap: 15px;
  z-index: 1;
}
.dialog-top > span {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.dialog-top > div {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.dialog-top a {
  font-size: 10px;
  text-decoration: none;
}
.dialog-top button {
  background: none;
  border: 0;
  font-size: 18px;
  color: var(--muted);
}
.document-content {
  padding: 32px 44px 48px;
}
#doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
#doc-meta .eyebrow {
  margin: 0;
}
article {
  font-size: 14px;
  line-height: 1.85;
  color: #526353;
}
article h1,
article h2,
article h3 {
  color: var(--ink);
  line-height: 1.35;
}
article h1 {
  font-size: 29px;
  margin-bottom: 25px;
}
article h2 {
  font-size: 21px;
  margin: 30px 0 12px;
  letter-spacing: -0.5px;
}
article h3 {
  font-size: 16px;
  margin-top: 25px;
}
article a {
  color: #2f7e5c;
  text-underline-offset: 3px;
}
article table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin: 20px 0;
}
article td,
article th {
  text-align: left;
  padding: 10px;
  border: 1px solid var(--line);
}
article th {
  background: #f4f6ef;
}
article blockquote {
  border-left: 3px solid #b5ce88;
  margin: 20px 0;
  padding: 6px 20px;
  background: #f6f8f0;
}
article code {
  font-size: 0.9em;
  background: #f0f3eb;
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
article pre {
  background: #f0f3eb;
  padding: 17px;
  overflow: auto;
}
article input {
  accent-color: #518058;
  margin-right: 5px;
}
article li {
  margin: 6px 0;
}
article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #edf1e6;
}
.login-card {
  padding: 45px;
  width: min(460px, 92vw);
  background: #fff;
  border: 1px solid #dfe5d7;
  border-radius: 18px;
  box-shadow: 0 20px 60px #244d2710;
}
.login-card > .brand-mark {
  margin-bottom: 35px;
}
.login-card .eyebrow {
  font-size: 9px;
}
.login-card h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -2px;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.login-card form {
  margin-top: 32px;
}
.login-card label {
  font-size: 11px;
  display: block;
  margin-bottom: 9px;
}
.login-card input {
  width: 100%;
  border: 1px solid #ced8c4;
  border-radius: 6px;
  padding: 13px;
  outline-color: #6e9754;
}
.primary {
  background: var(--ink);
  color: var(--lime);
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 15px;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.login-foot {
  font-size: 10px;
  color: #96a08d;
  margin: 27px 0 0;
  line-height: 1.6;
}
.error {
  font-size: 12px;
  color: #b25843;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .vision-card {
    min-height: 290px;
  }
  .vision-card h2 {
    font-size: 35px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 215px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .main-shell {
    margin-left: 215px;
    width: calc(100% - 215px);
  }
  main#main {
    padding: 30px 26px 0;
  }
  .topbar {
    padding: 0 26px;
  }
  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .vision-card {
    padding: 25px;
  }
  .vision-card h2 {
    font-size: 26px;
  }
  .vision-card p br {
    display: none;
  }
  .focus-card {
    padding: 23px;
  }
  .metrics > div {
    padding: 17px 15px;
  }
  .metric-label {
    font-size: 9px;
  }
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-head,
  .document-row {
    grid-template-columns: minmax(0, 1fr) 95px 16px;
  }
  .table-head > span:nth-child(3),
  .document-row time {
    display: none;
  }
  .project-badge {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 80px #173a3040;
  }
  .main-shell {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  #mobile-menu {
    display: inline-block;
    border: 0;
    background: none;
    margin-right: 12px;
    padding: 6px;
    font-size: 16px;
  }
  .top-actions {
    gap: 9px;
  }
  .live-label {
    display: none;
  }
  .repo-link {
    font-size: 10px;
  }
  main#main {
    padding: 28px 20px 0;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  h1 {
    font-size: 30px;
  }
  .page-subtitle {
    font-size: 11px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .vision-card {
    min-height: 260px;
  }
  .focus-card {
    min-height: 220px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 30px;
  }
  .metrics > div:nth-child(2) {
    border-right: 0;
  }
  .metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metrics small {
    font-size: 9px;
  }
  .table-head,
  .document-row {
    grid-template-columns: minmax(0, 1fr) 83px;
    padding: 14px 12px;
    gap: 10px;
  }
  .row-arrow,
  .table-head > span:last-child {
    display: none;
  }
  .file-icon {
    display: none;
  }
  .document-title strong {
    font-size: 11px;
  }
  .document-title small {
    font-size: 9px;
  }
  .status {
    font-size: 8px;
    padding: 5px 6px;
  }
  .filters {
    gap: 8px;
  }
  .search {
    padding: 9px;
  }
  .search input {
    font-size: 10px;
  }
  .search kbd {
    display: none;
  }
  select {
    width: 106px;
    padding: 9px 6px;
    font-size: 9px;
  }
  .board {
    gap: 10px;
  }
  .board-column {
    padding: 9px;
  }
  .board-card {
    padding: 11px;
  }
  .board-card > strong {
    font-size: 11px;
  }
  .card-kicker {
    font-size: 7px;
  }
  footer {
    gap: 15px;
    font-size: 8px;
    line-height: 1.7;
  }
  .document-content {
    padding: 25px 22px;
  }
  article h1 {
    font-size: 24px;
  }
  .dialog-top {
    padding: 15px;
  }
  .dialog-top a {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.product .sidebar {
  background: #193b31;
  border-color: #214b3d;
  color: #e2eada;
}
.product .brand-mark {
  background: #d8ef8c;
  color: #193b31;
}
.product .brand small {
  color: #8fae9a;
}
.product .workspace-label {
  border-color: #3c5b46;
  color: #ccdac3;
}
.product .tag {
  border-color: #51654d;
  color: #b4cb9e;
}
.product .nav-label {
  color: #789a83;
}
.product nav button {
  color: #a9c0aa;
}
.product nav button.active {
  background: #d8ef8c;
  color: #243d29;
}
.product nav button:hover {
  background: #2a4a38;
}
.product nav button.active:hover {
  background: #d8ef8c;
}
.product .profile {
  border-color: #36543c;
}
.product .profile > span {
  background: #39503a;
  color: #cbdca9;
}
.product .profile small,
.product .source-note,
.product .signout {
  color: #9fb49b;
}
.product .source-note small {
  color: #79937b;
}
.demo-banner {
  font-size: 10px;
  color: #8b9279;
  line-height: 1.6;
  padding: 10px 13px;
  background: #eef0e5;
  border: 1px solid #e0e5d5;
  border-radius: 5px;
  margin-bottom: 28px;
}
.demo-banner > span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-right: 12px;
  color: #7f896c;
}
.action-button {
  background: #213e30;
  color: #e8f5ca;
  border: 1px solid #213e30;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.action-button:hover {
  background: #36553b;
}
.secondary {
  border: 1px solid #dce3d1;
  background: white;
  color: #536747;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 11px;
}
.small-button {
  border: 1px solid #dce3d1;
  background: #fff;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 10px;
}
.product .metrics {
  margin: 0 0 28px;
}
.service-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.service-head,
.ticket-row {
  display: grid;
  grid-template-columns: 72px minmax(170px, 1fr) 90px 100px 130px;
  gap: 15px;
  align-items: center;
  padding: 15px 18px;
}
.service-head {
  font-size: 8px;
  letter-spacing: 1px;
  color: #8e9b86;
  background: #fafbf7;
}
.ticket-row {
  width: 100%;
  border: 0;
  border-top: 1px solid #eef1e7;
  text-align: left;
  background: #fff;
  min-height: 87px;
}
.ticket-row:hover {
  background: #f8faf3;
}
.ticket-number {
  font-size: 10px;
  color: #8b9c7c;
}
.ticket-main {
  min-width: 0;
}
.ticket-main strong {
  font-size: 12px;
  display: block;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-main small {
  font-size: 10px;
  color: #929f85;
  display: block;
  margin-top: 7px;
}
.priority {
  font-size: 9px;
  color: #839476;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.priority i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9bb78b;
}
.priority.high {
  color: #bb8733;
}
.priority.high i {
  background: #bb8733;
}
.priority.urgent {
  color: #bd5f50;
}
.priority.urgent i {
  background: #bd5f50;
}
.owner {
  font-size: 10px;
  color: #8b9a7d;
}
.owner small {
  display: block;
  font-size: 8px;
  margin-top: 5px;
}
.status.new {
  color: #737f94;
  background: #eef1f7;
}
.status.waiting {
  color: #96834f;
  background: #f6f1df;
}
.status.resolved {
  color: #458363;
  background: #edf5eb;
}
.filter-chips {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.filter-chip {
  background: transparent;
  border: 1px solid #dfe4d7;
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 10px;
  color: #829273;
}
.filter-chip.active {
  background: #e5edda;
  border-color: #c4d3ae;
  color: #48623b;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label,
.field > span {
  font-size: 10px;
  color: #7c8c6c;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d7dfcb;
  border-radius: 5px;
  padding: 11px;
  background: white;
  color: #334c2e;
  font-size: 12px;
  min-width: 0;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #b3cb8e;
  outline-offset: 1px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.form-error {
  color: #ae5743;
  background: #fff2e9;
  border: 1px solid #f2d9c9;
  border-radius: 5px;
  padding: 11px;
  font-size: 11px;
  line-height: 1.5;
  margin: 15px 0 0;
}
.form-note {
  font-size: 10px;
  line-height: 1.7;
  color: #879674;
}
.modal-title {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.modal-subtitle {
  font-size: 11px;
  color: #8b997a;
  margin: 0 0 24px;
  line-height: 1.7;
}
.detail-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.coverage-card {
  background: #eff4e7;
  border: 1px solid #d9e5ca;
  border-radius: 8px;
  padding: 18px;
}
.coverage-card .eyebrow {
  font-size: 8px;
  margin: 0 0 12px;
}
.coverage-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.coverage-card p {
  font-size: 11px;
  color: #6f825a;
  line-height: 1.7;
}
.coverage-foot {
  font-size: 9px;
  color: #91a07c;
  border-top: 1px solid #dae4cc;
  padding-top: 10px;
  line-height: 1.8;
}
.detail-description {
  font-size: 12px;
  line-height: 1.8;
  color: #7a8d69;
  white-space: pre-wrap;
  margin: 0 0 20px;
}
.detail-section-title {
  font-size: 13px;
  font-weight: 550;
  margin: 25px 0 14px;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form select {
  font-size: 11px;
  flex: 1;
  padding: 9px;
}
.booking-summary {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: #7e8d6d;
  line-height: 1.8;
}
.booking-summary strong {
  display: block;
  color: #4d653b;
}
.booking-summary .secondary {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.time-entry {
  border-left: 2px solid #c5d9ab;
  padding: 0 0 0 13px;
  margin: 0 0 22px;
}
.time-entry header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
}
.time-entry p {
  font-size: 11px;
  line-height: 1.7;
  color: #7b8b68;
  margin: 8px 0;
}
.time-entry small {
  font-size: 9px;
  color: #95a080;
  line-height: 1.6;
}
.time-form {
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 8px;
  background: #fafbf7;
  margin-top: 20px;
}
.time-form h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 16px;
}
.time-form .form-actions {
  margin-top: 15px;
  padding-top: 13px;
}
.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contract-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.contract-card .eyebrow {
  font-size: 8px;
}
.contract-card h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.6px;
  line-height: 1.4;
  margin: 9px 0;
}
.contract-card > p {
  font-size: 11px;
  color: #8c9b7b;
}
.contract-type {
  font-size: 9px;
  background: #edf3e3;
  color: #6b8653;
  display: inline-block;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 5px;
}
.contract-facts {
  border-top: 1px solid var(--line);
  margin: 20px 0 0;
  padding: 15px 0 0;
  font-size: 10px;
}
.contract-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 12px 0;
}
.contract-facts dt {
  color: #99a28b;
}
.contract-facts dd {
  margin: 0;
  color: #5c7448;
  text-align: right;
}
.contract-card .coverage-card {
  margin-top: 20px;
  padding: 15px;
}
.contract-card .coverage-card p {
  font-size: 10px;
  margin: 0;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
  gap: 15px;
}
.calendar-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #7f8e6e;
}
.calendar-toolbar input {
  border: 1px solid #d9e1ce;
  background: white;
  padding: 9px;
  border-radius: 5px;
  color: #527041;
  font-size: 12px;
}
.calendar-toolbar small {
  font-size: 10px;
  color: #94a080;
}
.dispatch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}
.calendar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: auto;
}
.calendar-row {
  display: grid;
  grid-template-columns: 52px repeat(3, minmax(100px, 1fr));
  min-width: 420px;
}
.calendar-heading {
  background: #f8faf3;
  position: sticky;
  top: 0;
}
.calendar-row > div {
  border-bottom: 1px solid #edf0e6;
  border-right: 1px solid #edf0e6;
  min-height: 54px;
  padding: 6px;
}
.calendar-row > div:last-child {
  border-right: 0;
}
.calendar-heading > div {
  min-height: 65px;
  text-align: center;
  font-size: 10px;
  font-weight: 550;
  padding: 16px 5px;
}
.calendar-heading small {
  display: block;
  font-size: 8px;
  color: #93a07e;
  font-weight: 400;
  margin-top: 5px;
}
.hour-label {
  font-size: 9px;
  color: #a0aa92;
  padding-top: 15px !important;
  text-align: center;
}
.calendar-slot {
  position: relative;
}
.slot-add {
  border: 0;
  background: none;
  display: block;
  width: 100%;
  min-height: 39px;
  opacity: 0;
  color: #819d61;
  font-size: 15px;
}
.calendar-slot:hover .slot-add,
.slot-add:focus {
  opacity: 1;
}
.calendar-booking {
  background: #e9f1dc;
  border: 1px solid #d1dfbc;
  border-left: 3px solid #99b869;
  border-radius: 4px;
  padding: 8px;
  text-align: left;
  width: 100%;
  display: block;
  margin-bottom: 4px;
}
.calendar-booking strong {
  font-size: 9px;
  font-weight: 550;
  display: block;
  line-height: 1.5;
}
.calendar-booking small {
  font-size: 8px;
  color: #84966d;
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}
.unscheduled {
  background: #edf0e5;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
}
.unscheduled h3 {
  font-size: 12px;
  font-weight: 550;
  margin: 0 0 6px;
}
.unscheduled > p {
  font-size: 9px;
  color: #99a58a;
  margin: 0 0 20px;
  line-height: 1.6;
}
.unscheduled-card {
  width: 100%;
  padding: 13px;
  border: 1px solid #dfe6d1;
  background: white;
  text-align: left;
  border-radius: 6px;
  margin: 0 0 10px;
}
.unscheduled-card > small {
  font-size: 8px;
  color: #91a17e;
}
.unscheduled-card strong {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 550;
  margin: 8px 0;
}
.unscheduled-card > span {
  font-size: 9px;
  color: #8d9d78;
}
.quote-line {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 55px 85px 85px 28px;
  gap: 8px;
  margin-bottom: 10px;
  align-items: end;
}
.quote-line input {
  padding: 9px;
  font-size: 11px;
}
.quote-line button {
  background: none;
  border: 0;
  color: #a09c80;
  height: 35px;
}
.quote-totals {
  padding: 18px;
  background: #f1f5e9;
  border: 1px solid #dfe8d0;
  border-radius: 7px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.quote-totals span {
  font-size: 9px;
  color: #8b9c75;
}
.quote-totals strong {
  font-size: 19px;
  font-weight: 500;
  display: block;
  margin-top: 8px;
  letter-spacing: -0.5px;
  color: #56713f;
}
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 22px;
}
.quote-table td,
.quote-table th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.quote-table th {
  font-size: 9px;
  color: #98a486;
  font-weight: 500;
}
.activity-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 22px;
}
.activity-item {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child {
  border: 0;
}
.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  flex-shrink: 0;
  background: #acc885;
  border-radius: 50%;
}
.activity-item strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.activity-item small {
  font-size: 9px;
  color: #9da78c;
  display: block;
  margin-top: 8px;
}
.product dialog {
  width: min(940px, 95vw);
}
.product #close-modal {
  border: 0;
  background: none;
  color: #839273;
  font-size: 19px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 30px;
  background: #23452f;
  color: #e1f0ce;
  padding: 14px 22px;
  border-radius: 7px;
  box-shadow: 0 8px 30px #1b3b2420;
  font-size: 12px;
  z-index: 20;
  max-width: 90vw;
}
.empty-inline {
  color: #9ca78b;
  font-size: 11px;
  line-height: 1.6;
  padding: 10px 0;
}
.card-grid-empty {
  grid-column: 1/-1;
}
.prototype-footnote {
  font-size: 10px;
  line-height: 1.8;
  color: #94a181;
  margin-top: 25px;
}
.product .dialog-top {
  background: #f9faf6;
}
.product .document-content {
  padding: 28px 32px 35px;
}
@media (max-width: 1250px) {
  .service-head,
  .ticket-row {
    grid-template-columns: 65px minmax(150px, 1fr) 75px 90px;
    gap: 12px;
  }
  .service-head > span:last-child,
  .ticket-row > .owner {
    display: none;
  }
  .contract-grid {
    grid-template-columns: 1fr;
  }
  .contract-card {
    padding: 22px;
  }
  .contract-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }
  .dispatch-layout {
    grid-template-columns: 1fr;
  }
  .unscheduled {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .unscheduled h3,
  .unscheduled > p {
    grid-column: 1/-1;
  }
  .unscheduled > p {
    margin-bottom: 10px;
  }
}
@media (max-width: 760px) {
  .product .page-heading {
    gap: 20px;
    align-items: flex-start;
  }
  .product .page-heading h1 {
    font-size: 27px;
  }
  .action-button {
    font-size: 10px;
    padding: 11px 12px;
  }
  .product .page-heading > .action-button {
    font-size: 9px;
    padding: 10px;
  }
  .service-head,
  .ticket-row {
    grid-template-columns: minmax(0, 1fr) 75px;
    gap: 10px;
    padding: 15px 12px;
  }
  .service-head > span:first-child,
  .ticket-row > .ticket-number,
  .service-head > span:nth-child(3),
  .ticket-row > .priority {
    display: none;
  }
  .ticket-main strong {
    font-size: 11px;
  }
  .ticket-main small {
    font-size: 9px;
  }
  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .calendar-row {
    grid-template-columns: 40px repeat(3, minmax(90px, 1fr));
    min-width: 360px;
  }
  .calendar {
    margin: 0 -5px;
  }
  .unscheduled {
    grid-template-columns: 1fr 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout > aside {
    grid-row: 1;
  }
  .product .document-content {
    padding: 24px 19px;
  }
  .form-grid {
    gap: 15px;
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: 1;
  }
  .quote-line {
    grid-template-columns: 1fr 1fr 1fr 25px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .quote-line > .field:first-child {
    grid-column: 1/-1;
  }
  .quote-totals {
    padding: 14px;
    gap: 10px;
  }
  .quote-totals strong {
    font-size: 16px;
  }
  .quote-totals span {
    font-size: 8px;
  }
  .contract-facts {
    grid-template-columns: 1fr;
  }
  .demo-banner {
    font-size: 9px;
  }
  .demo-banner > span {
    display: block;
    margin-bottom: 5px;
  }
  .product .metrics > div {
    padding: 15px;
  }
  .product .metrics strong {
    font-size: 27px;
  }
  .product .metrics small {
    font-size: 8px;
  }
  .product .filters {
    flex-wrap: wrap;
  }
  .product .filters .search {
    min-width: 170px;
  }
  .quote-table {
    display: block;
    overflow: auto;
  }
  .prototype-footnote {
    font-size: 9px;
  }
  .product .repo-link {
    font-size: 9px;
    padding: 8px;
  }
}
.quote-from-ticket {
  margin-top: 15px;
  width: 100%;
}
.quote-list {
  margin-top: 20px;
}
.quote-detail-title {
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}
.login-card input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.login-card .form-note {
  line-height: 1.6;
  margin-bottom: 20px;
}
.login-card .error {
  overflow-wrap: anywhere;
}
.read-only #status-form,
.read-only #time-form,
.read-only [data-slot],
.read-only [data-unbook],
.read-only [data-schedule],
.read-only [data-quote-ticket],
.read-only [data-new-quote] {
  display: none;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
}
.account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.account-card h2,
.account-card h3 {
  margin: 8px 0 12px;
}
.account-card p {
  font-size: 13px;
  line-height: 1.7;
}
.account-badges,
.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
}
.customer-selection {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
}
.customer-selection legend {
  font-size: 12px;
  padding: 0 5px;
}
.customer-selection .check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}
.customer-selection input {
  width: 18px;
  height: 18px;
  margin: 0;
}
#setup-link {
  overflow-wrap: anywhere;
}
#operator-profile {
  overflow-wrap: anywhere;
  min-width: 0;
}
#account-nav-label {
  width: auto;
  font: inherit;
  text-align: left;
}

.recovery-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid #d1b45a;
  background: #fff7df;
  border-radius: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}

/* Contextual assistant uses product controls and deterministic evidence cards. */
.assistant-panel {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  width: min(var(--assistant-width, 460px), 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper, #fff);
  border-left: 1px solid #cdd8d1;
  box-shadow: -8px 0 28px #163d2920;
}
.assistant-panel[hidden] {
  display: none;
}
.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 12px;
  border-bottom: 1px solid #e2e7e3;
}
.assistant-header h2 {
  font-size: 22px;
  margin: 0;
}
.assistant-header .eyebrow {
  margin: 0 0 5px;
}
.assistant-context {
  padding: 10px 22px;
  background: #f3f6f3;
}
.assistant-context p {
  margin: 3px 0 7px;
  font-size: 12px;
}
.assistant-context label {
  font-size: 11px;
  display: block;
  margin: 5px 0;
}
.assistant-context select {
  width: 100%;
  padding: 8px;
  border: 1px solid #becdc1;
  border-radius: 5px;
  background: #fff;
}
.assistant-context small,
.assistant-policy {
  font-size: 11px;
  color: #526358;
  line-height: 1.5;
}
.assistant-policy {
  padding: 10px 22px;
}
.assistant-shortcuts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 22px 10px;
}
.assistant-shortcuts .small-button {
  font-size: 11px;
}
.assistant-messages {
  overflow: auto;
  flex: 1;
  min-height: 80px;
  padding: 10px 18px;
  overscroll-behavior: contain;
}
.assistant-message {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.assistant-message.user {
  background: #eaf1ec;
  padding: 10px 14px;
  border-radius: 10px 10px 2px 10px;
  margin-left: 32px;
  white-space: pre-wrap;
}
.assistant-message p {
  margin: 6px 0;
}
.assistant-evidence {
  margin: 8px 0;
  border: 1px solid #d9e2db;
  border-radius: 6px;
  padding: 9px 12px;
  background: #f9fbf9;
}
.assistant-evidence summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.assistant-evidence small {
  display: block;
  color: #566b5d;
}
.evidence-link {
  border: 0;
  background: transparent;
  color: #1d6346;
  text-align: left;
  padding: 2px 0;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.assistant-calculation {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.assistant-calculation div {
  flex: 1;
  background: #edf3ee;
  border-radius: 5px;
  padding: 8px;
}
.assistant-calculation dt {
  font-size: 10px;
  color: #536a5b;
}
.assistant-calculation dd {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 700;
}
.assistant-plan {
  border: 1px solid #819f8d;
  border-left: 4px solid #245d43;
  border-radius: 6px;
  padding: 14px;
  margin: 12px 0;
  background: white;
}
.assistant-plan .eyebrow {
  font-size: 9px;
}
.assistant-plan h3 {
  font-size: 15px;
  margin: 8px 0;
}
.plan-changes div {
  margin: 8px 0;
}
.plan-changes dt {
  font-size: 11px;
  color: #516959;
}
.plan-changes dd {
  margin: 3px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: pre-wrap;
}
.plan-changes dd span {
  color: #68736c;
}
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.plan-actions button {
  font-size: 12px;
  padding: 9px;
}
.plan-feedback {
  font-size: 12px;
  color: #244f39;
}
.assistant-answer-note {
  display: block;
  font-size: 10px;
  color: #667269;
  margin-top: 10px;
}
.assistant-progress {
  font-size: 11px;
  color: #415c4c;
  padding: 0 22px;
  margin: 8px 0;
}
#assistant-form {
  padding: 12px 22px 18px;
  border-top: 1px solid #d9e2db;
  background: #f8faf8;
}
#assistant-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
#assistant-question {
  width: 100%;
  resize: vertical;
  min-height: 70px;
  max-height: 160px;
  border: 1px solid #b9cabe;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.assistant-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
#assistant-error {
  color: #9c302f;
  font-size: 12px;
}
@media (min-width: 1200px) {
  .assistant-open .app-shell {
    margin-right: var(--assistant-width, 460px);
  }
}
@media (max-width: 600px) {
  .assistant-panel {
    width: 100vw;
  }
  .assistant-header {
    padding-top: 14px;
  }
  .assistant-policy {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .top-actions #open-assistant {
    font-size: 11px;
    padding: 7px;
  }
}

.assistant-resize {
  position: absolute;
  inset: 0 auto 0 -4px;
  width: 8px;
  cursor: ew-resize;
  touch-action: none;
}
.assistant-resize:focus-visible {
  outline: 2px solid #1d6346;
}
@media (max-width: 600px) {
  .assistant-resize {
    display: none;
  }
}

@media (max-width: 600px) {
  body.assistant-open {
    overflow: hidden;
  }
}

/* Customer and agreement management. */
.product .sidebar {
  overflow-y: auto;
}
.commercial-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.commercial-list,
.commercial-related-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.customer-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 85px 20px;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  text-align: left;
  color: #334c2e;
  cursor: pointer;
}
.customer-row:last-child,
.related-record:last-child {
  border-bottom: 0;
}
.customer-row:hover,
.related-record:hover {
  background: #f5f8ef;
}
.customer-row:focus-visible,
.related-record:focus-visible {
  outline: 2px solid #6c8c4d;
  outline-offset: -3px;
}
.customer-identity,
.customer-counts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-identity strong {
  font-size: 14px;
  font-weight: 600;
}
.customer-identity small,
.customer-counts small {
  color: #78896b;
  font-size: 11px;
  line-height: 1.5;
}
.customer-counts strong {
  font-size: 12px;
  font-weight: 500;
}
.commercial-arrow {
  color: #7c9567;
  font-size: 18px;
}
.commercial-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.commercial-status.active {
  background: #ecf5e7;
  color: #4c713f;
}
.commercial-status.archived {
  background: #f1f0ec;
  color: #756f61;
}
.commercial-title-row,
.commercial-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.commercial-actions {
  margin: 20px 0;
}
.revision-label {
  font-size: 10px;
  color: #7d8a72;
}
.customer-contact {
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #6e8061;
}
.commercial-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.commercial-section-heading h3 {
  font-size: 16px;
  font-weight: 550;
}
.commercial-section-heading > span {
  font-size: 10px;
  color: #829071;
}
.commercial-related-list > .empty-inline {
  margin: 0;
  padding: 18px;
}
.related-record {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 15px 18px;
  color: #405b36;
  text-align: left;
  cursor: pointer;
}
.related-record > span:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
  overflow-wrap: anywhere;
}
.related-record strong {
  font-size: 12px;
  font-weight: 550;
}
.related-record small {
  font-size: 10px;
  line-height: 1.5;
  color: #829071;
}
.commercial-notice {
  border: 1px solid #e1d8b5;
  border-radius: 7px;
  background: #faf7eb;
  color: #786a43;
  padding: 14px;
  font-size: 11px;
  line-height: 1.7;
  margin: 18px 0;
}
.commercial-notice .secondary {
  display: block;
  margin-top: 10px;
}
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #557b3e;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  cursor: pointer;
  text-align: left;
  overflow-wrap: anywhere;
}
.time-agreement-link {
  margin-top: 5px;
}
.contract-detail-button {
  margin-top: 18px;
  width: 100%;
}
.contract-card h2,
.agreement-revision strong,
.saved-context p,
.contract-facts dd {
  overflow-wrap: anywhere;
}
.saved-context,
.agreement-revision {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
  background: #fff;
}
.saved-context {
  margin-bottom: 24px;
}
.saved-context summary,
.agreement-revision summary {
  padding: 15px;
  cursor: pointer;
  color: #4a653e;
  font-size: 12px;
  line-height: 1.6;
}
.saved-context summary:focus-visible,
.agreement-revision summary:focus-visible {
  outline: 2px solid #6c8c4d;
  outline-offset: 2px;
}
.saved-context > p,
.saved-context > .contract-facts {
  margin: 0 15px 15px;
  font-size: 12px;
  line-height: 1.7;
}
.agreement-revision summary > span:first-child {
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
  vertical-align: top;
}
.agreement-revision summary strong {
  font-size: 12px;
  font-weight: 600;
}
.agreement-revision summary small {
  color: #839175;
  font-size: 10px;
}
.agreement-revision summary .revision-label {
  display: block;
  margin-top: 6px;
}
.revision-content {
  padding: 0 16px 16px;
}
.revision-reason {
  color: #617452;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
}
.history-more {
  margin-top: 12px;
}
.commercial-worktypes {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.commercial-worktypes legend {
  font-size: 11px;
  color: #71855d;
  padding: 0 5px;
}
.commercial-worktypes label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #506b40;
}
.commercial-worktypes input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  accent-color: #6b8c4e;
}
.commercial-worktypes .form-note {
  flex-basis: 100%;
  margin: 0;
}
.field input[readonly] {
  background: #f4f6ef;
  color: #748263;
}
@media (max-width: 700px) {
  .commercial-metrics {
    grid-template-columns: 1fr;
  }
  .customer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px;
    gap: 13px;
  }
  .customer-identity {
    grid-column: 1/-1;
  }
  .customer-row > .commercial-arrow {
    display: none;
  }
  .commercial-actions > button {
    flex-grow: 1;
  }
  .related-record {
    flex-wrap: wrap;
    padding: 15px;
  }
  .related-record > span:first-child {
    flex-basis: 100%;
  }
  .related-record > span:last-child {
    margin-left: auto;
  }
  .contract-facts > div {
    align-items: flex-start;
  }
  .contract-facts dt,
  .contract-facts dd {
    flex: 1;
    min-width: 0;
  }
}

/* Login and native consent use the observed DD colour direction. */
.login-page { background: #f5f7fa; }
.login-page .login-card { box-shadow: 0 16px 55px #17212b12; border-radius: 10px; }
.login-page .primary { background: #005daa; color: #fff; }
.login-page .primary:hover { background: #004884; }
.login-page .login-card input { border-color: #687787; outline-color: #005daa; }
.login-page .login-foot, .login-page .form-note { color: #52606d; }
.login-page .secondary { border-color: #687787; color: #17212b; }
/* Single sign-on link on the staff login page. */
.login-page .button-link { display: flex; justify-content: space-between; text-decoration: none; padding: 14px 18px; border-radius: 6px; font-weight: 600; margin-top: 8px; }
.login-page .sso-or { text-align: center; margin: 12px 0 0; font-size: 14px; }
.login-page #sso-error { margin: 4px 0 12px; }
