:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #20352f;
  background: #f3f4ee;
  font-size: 16px;
  --ink: #20352f;
  --muted: #65746b;
  --line: #dce1d6;
  --green: #183c35;
  --lime: #e4edcb;
  --orange: #bb4928;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--green);
  color: white;
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
}
button:hover,
.button:hover {
  filter: brightness(1.12);
}
button.secondary,
.button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
button.danger {
  background: #9f302a;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.layout {
  display: grid;
  grid-template-columns: 246px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: #eef1e6;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand img {
  width: 40px;
}
.brand small {
  font-size: 11px;
  font-weight: 500;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b5c4b5;
  margin-top: 2px;
}
.side-label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  color: #a1b7aa;
  margin: 42px 12px 12px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav button {
  justify-content: flex-start;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #dde6dc;
  padding: 13px;
}
.sidebar nav button.active {
  background: #34534a;
  color: #fff;
}
.side-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.side-bottom p {
  font-size: 12px;
  line-height: 1.6;
  color: #bdcabc;
}
.side-bottom button {
  border: 1px solid #60776b;
  background: transparent;
  width: 100%;
}
.main {
  padding: 34px 48px 60px;
  min-width: 0;
  max-width: 1600px;
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 35px;
  font-size: 12px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 11px;
  background: #fff;
}
.dot {
  width: 7px;
  height: 7px;
  background: #568b47;
  border-radius: 50%;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 10px;
}
h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  margin: 0 0 16px;
  font-weight: 650;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 12px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head p {
  margin: 0;
  max-width: 680px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 25px 0;
}
.stat,
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
}
.stat strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1.5px;
  margin-top: 10px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.card {
  margin-bottom: 20px;
}
.card.lime {
  background: var(--lime);
  border: 0;
}
.card.dark {
  background: var(--green);
  color: white;
}
.card.dark p {
  color: #d4ded0;
}
.grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.grid.equal {
  grid-template-columns: 1fr 1fr;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.rows {
  display: grid;
}
.project-row {
  display: grid;
  grid-template-columns: 1fr 110px 120px 36px;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.project-row:last-child {
  border-bottom: 0;
}
.project-row strong {
  display: block;
  font-size: 15px;
}
.project-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.project-row button {
  padding: 5px;
  min-height: 36px;
}
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #edf1e9;
  width: max-content;
}
.tag.warn {
  background: #fff0dc;
  color: #814b10;
}
.tag.good {
  background: #e4efdc;
  color: #345731;
}
.empty {
  padding: 36px 14px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin: 8px;
}
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.step-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.step-list b {
  font-size: 11px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9efe1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38523d;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.tabs button {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  font-size: 13px;
  min-height: 40px;
  padding: 8px 14px;
}
.tabs button.active {
  background: var(--green);
  color: white;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cad3c6;
  border-radius: 9px;
  background: #fbfcf8;
  color: var(--ink);
  font-weight: 400;
  min-height: 46px;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
}
.field small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  margin: 15px 0;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.note {
  font-size: 13px;
  background: #eef2e8;
  padding: 15px 18px;
  border-radius: 10px;
  line-height: 1.65;
}
.warning {
  background: #fff1de;
  color: #7d4819;
}
.error {
  color: #a22c22;
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.legal-text {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
  max-height: 350px;
  overflow: auto;
  padding: 16px;
  background: #f7f8f4;
  border-radius: 8px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f0f3eb;
  padding: 18px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: var(--green);
  color: #f5f6ed;
  padding: 50px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-story h1 {
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -3px;
  max-width: 550px;
}
.login-story p {
  color: #c6d6c4;
  max-width: 440px;
}
.login-story .eyebrow {
  color: #cbd9bd;
}
.orb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 40px solid #e4edcb;
  position: relative;
  margin: 30px 0;
}
.orb:after {
  content: "";
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: #eb7c50;
  position: absolute;
  right: -60px;
  bottom: -30px;
  transform: rotate(-15deg);
}
.login-main {
  padding: 70px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  max-width: 430px;
  width: 100%;
}
.login-box h1 {
  font-size: 33px;
}
.login-box footer {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 32px;
}
.login-box button[type="submit"] {
  width: 100%;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.service-card {
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 12px;
  background: #fafbf7;
}
.service-card small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 7px;
}
.money {
  font-size: 36px;
  letter-spacing: -1.5px;
  font-weight: 650;
}
.money small {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
}
.loading {
  padding: 70px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(90vw, 720px);
  background: #203b32;
  color: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 30px #142e2526;
  font-size: 14px;
  line-height: 1.5;
}
#notice.visible {
  padding: 16px 22px;
}
#notice.failure {
  background: #8d3029;
}
.hidden {
  display: none;
}
.full {
  grid-column: 1/-1;
}
.small {
  font-size: 12px;
}
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.scope-grid .check {
  margin: 0;
  padding: 10px;
  background: #f5f7f1;
  border-radius: 8px;
}
.breadcrumb {
  margin-bottom: 20px;
  font-size: 13px;
}
.hero-line {
  border-top: 1px solid #63796e;
  padding-top: 20px;
  font-size: 12px;
  color: #c4d1bd;
}
.mobile-brand {
  display: none;
}
@media (max-width: 1100px) {
  .main {
    padding: 28px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 40px;
  }
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px;
    display: block;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 34px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 18px;
  }
  .sidebar nav button {
    white-space: nowrap;
  }
  .side-label,
  .side-bottom p {
    display: none;
  }
  .side-bottom {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 0;
  }
  .side-bottom button {
    min-height: 36px;
    font-size: 12px;
    padding: 7px 10px;
  }
  .main {
    padding: 24px 18px;
  }
  .topline {
    margin-bottom: 26px;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat span {
    font-size: 10px;
  }
  .card {
    padding: 20px;
  }
  .project-row {
    grid-template-columns: 1fr 70px 34px;
    gap: 10px;
  }
  .project-row .state-col {
    display: none;
  }
  .form-grid,
  .grid.equal {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 24px;
    min-height: auto;
  }
  .login-story > div:not(:first-child),
  .login-story > .hero-line {
    display: none;
  }
  .login-main {
    padding: 40px 24px;
  }
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }
  .scope-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    letter-spacing: -1px;
  }
}

.sidebar .side-bottom button {
  color: #eef1e6;
}
.sidebar {
  min-width: 0;
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar nav {
    max-width: 100%;
  }
  .topline {
    flex-wrap: wrap;
  }
  .card,
  .field {
    min-width: 0;
  }
}

.security-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid #b8bea9;
  border-radius: 20px;
  padding: 24px;
  color: #20281f;
  background: #fafbf7;
}
.security-dialog::backdrop { background: rgb(12 22 15 / 65%); }
.security-dialog button { margin: 8px 8px 0 0; }
.dialog-error { color: #922f2f; }
.task-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #dce0d2; }
.task-row > div { min-width: 0; overflow-wrap: anywhere; }
.task-row p { margin: 5px 0; }
.task-row button { flex-shrink: 0; }

.template-variant { border-top:1px solid #cad1c0; padding:16px 0; }
.template-variant .actions { align-items:center; flex-wrap:wrap; }
.template-variant h3 { font-size:18px; margin-bottom:8px; }
#template-detail li { margin:16px 0; line-height:1.6; }

.calendar-toolbar { display:flex; align-items:end; gap:20px; justify-content:space-between; flex-wrap:wrap; margin:24px 0; }
.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; margin-bottom:24px; }
.calendar-day { display:flex; flex-direction:column; padding:12px 6px; background:#f3f6ef; color:#25433a; border:1px solid #ccd7c5; gap:10px; min-width:0; width:100%; }
.calendar-day span { font-size:12px; }
.calendar-day.selected { background:#24473c; color:#fff; }
.calendar-booking { border-left:4px solid #839e6e; }
.calendar-dialog { width:min(620px,calc(100vw - 24px)); max-height:90vh; overflow:auto; padding:28px; border:1px solid #bac5b0; border-radius:20px; color:#1b392f; }
.calendar-dialog::backdrop { background:#112a2370; }
.calendar-dialog form { display:grid; gap:16px; }
.calendar-dialog label { display:grid; gap:8px; }
.calendar-dialog input,.calendar-dialog textarea { width:100%; padding:12px; border:1px solid #bac5b0; border-radius:8px; font:inherit; }
.form-error { color:#9b2424; }
@media(max-width:600px) { .calendar-days { grid-template-columns:repeat(3,minmax(0,1fr)); } .calendar-toolbar { align-items:stretch; } .calendar-dialog { padding:20px; } }

.work-form { display:grid; gap:16px; padding:24px; border:1px solid #dce0d4; border-radius:16px; margin:20px 0; }
.work-form label { display:grid; gap:8px; }
.work-form textarea,.work-form input,.work-form select { padding:12px; border:1px solid #cdd4c4; border-radius:8px; width:100%; font:inherit; }
.work-form textarea { min-height:110px; }
.snippet-preview { white-space:pre-wrap; overflow-wrap:anywhere; }

.setup-step { border:1px solid #d4ddce; border-radius:14px; padding:20px; margin:18px 0; }
.setup-step>summary { font-size:20px; font-weight:650; cursor:pointer; padding:8px 0; }
.setup-step-content { display:grid; gap:18px; }
#service-editor { display:grid; gap:18px; }
#service-editor fieldset { border:1px solid #d4ddce; border-radius:14px; padding:20px; min-width:0; display:grid; gap:14px; }
#service-editor label { display:grid; gap:8px; }
#service-editor input,#service-editor textarea { width:100%; padding:12px; font:inherit; border:1px solid #cdd4c4; border-radius:8px; }

.image-settings { flex-basis:100%; width:100%; margin-top:12px; }
.image-settings form { display:grid; gap:14px; margin-top:16px; }
.project-row:has(.image-settings) { flex-wrap:wrap; }

[hidden] { display:none !important; }
.design-block{padding:22px;border:1px solid #d9dfd2;border-radius:16px;margin:16px 0}.design-block .page-head{margin-bottom:0}.design-block details{margin-top:12px}.design-items>[data-item]{padding:18px;margin:12px 0;background:#eef1e8;border-radius:12px}.design-block:has([name=enabled]:not(:checked)){opacity:.68}.design-form .actions{flex-wrap:wrap}
.office-editor{margin:24px 0}.office-editor>summary{font-weight:700}.office-links{margin:20px 0;padding:18px;background:#eef1e8;border-radius:12px}.office-lines fieldset{border:1px solid #d9dfd2;margin:16px 0;border-radius:12px}.office-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.office-detail img{width:100%;max-height:360px;object-fit:contain}.finance-filter{padding:20px;background:#eef1e8;border-radius:12px;margin-bottom:24px}.office-form textarea{min-height:100px}

/* Trade options and private service checklists. */
#options-editor details { margin: 14px 0; padding: 16px; border: 1px solid #d4ddce; border-radius: 12px; min-width: 0; }
#options-editor summary { cursor: pointer; font-weight: 650; overflow-wrap: anywhere; }
#options-editor details[open] > summary { margin-bottom: 18px; }
#options-editor details .field { margin-top: 14px; }
.calendar-dialog label.check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
.calendar-dialog .check input { width: 18px; height: 18px; flex: 0 0 18px; padding: 0; margin-top: 2px; }
.calendar-dialog fieldset { min-width: 0; padding: 16px; border: 1px solid #d4ddce; border-radius: 12px; }
.calendar-dialog legend { font-weight: 650; padding: 0 6px; }

.kit-guidance{margin:22px 0;padding:20px;background:#eef1e8;border:1px solid #d4ddce;border-radius:14px}.kit-guidance summary{font-weight:650;cursor:pointer}.website-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px}.website-checks .card{margin:0}.quality-error{border-left:5px solid #a43d32}.quality-warning{border-left:5px solid #a7782c}.quality-info,.quality-ok{border-left:5px solid #647e69}

.request-workspace { width:min(760px,calc(100vw - 32px)); }
.request-workspace .case-appointments { display:grid; gap:12px; margin:16px 0; }
.capability-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; }
.capability-list .card { margin:0; }
