:root {
  --web-sidebar: #17212b;
  --web-sidebar-muted: #aeb9c5;
  --web-accent: #2f7d68;
  --web-border: #dce2e8;
  --web-surface: #ffffff;
  --web-background: #f4f6f8;
  --web-text: #17212b;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--web-text);
  background: var(--web-background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.web-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.web-sidebar {
  padding: 24px 16px;
  color: #ffffff;
  background: var(--web-sidebar);
  border-right: 1px solid #263544;
}

.web-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 8px 20px;
  font-size: 18px;
  font-weight: 700;
}

.web-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--web-accent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.web-nav {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #314151;
}

.web-nav-item {
  display: block;
  min-height: 40px;
  padding: 10px 12px;
  color: var(--web-sidebar-muted);
  border-radius: 6px;
  cursor: default;
}

.web-nav-link {
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.web-nav-link:hover,
.web-nav-link:focus-visible,
.web-nav-active {
  color: #ffffff;
  background: #263746;
}

.web-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.web-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 64px;
  padding: 0 32px;
  background: var(--web-surface);
  border-bottom: 1px solid var(--web-border);
}

.web-mobile-brand {
  display: none;
  font-weight: 700;
}

.web-status {
  color: #617180;
  font-size: 13px;
}

.web-content {
  display: grid;
  place-items: center;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 48px 32px;
}

.web-empty-state {
  width: min(100%, 620px);
  padding: 24px 0;
}

.web-eyebrow {
  margin: 0 0 10px;
  color: var(--web-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.web-empty-state h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.web-lead {
  margin: 16px 0 0;
  color: #52616f;
  font-size: 17px;
  line-height: 1.6;
}

.web-command {
  margin-top: 24px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--web-accent);
  border: 1px solid var(--web-accent);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.web-command-link { display: inline-block; text-decoration: none; }
.web-command-secondary { color: var(--web-text); background: var(--web-surface); border-color: var(--web-border); }
.web-identity-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.web-identity-labels span { padding: 5px 8px; background: #e7f1ed; border-radius: 4px; font-size: 13px; font-weight: 700; }

.consultation-page {
  width: 100%;
}

.consultation-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.consultation-heading h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.consultation-scope {
  color: #52616f;
  font-size: 14px;
  font-weight: 700;
}

.consultation-tabs {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  border-bottom: 1px solid var(--web-border);
}

.consultation-tab {
  padding: 10px 2px 9px;
  color: #52616f;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.consultation-tab span {
  margin-left: 4px;
  color: #778491;
  font-size: 13px;
}

.consultation-tab-active {
  color: var(--web-text);
  border-bottom-color: var(--web-accent);
  font-weight: 700;
}

.consultation-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.consultation-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2.2fr);
  gap: 24px;
  padding: 18px;
  background: var(--web-surface);
  border: 1px solid var(--web-border);
  border-radius: 6px;
}

.consultation-primary {
  align-content: start;
}

.consultation-primary h2 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: 0;
}

.status-badge {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 4px 7px;
  color: #315d51;
  background: #e7f1ed;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.status-urgent {
  color: #8a3b31;
  background: #f8e8e5;
}

.consultation-metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}

.consultation-metadata div {
  min-width: 0;
}

.consultation-metadata dt {
  margin-bottom: 3px;
  color: #778491;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.consultation-metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
}

.consultation-empty {
  margin: 20px 0 0;
  padding: 28px 20px;
  color: #617180;
  background: var(--web-surface);
  border: 1px solid var(--web-border);
  border-radius: 6px;
  text-align: center;
}

.consultation-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.consultation-pagination a {
  color: var(--web-accent);
  font-weight: 700;
  text-decoration: none;
}

.consultation-pagination a:first-child,
.consultation-pagination span:first-child {
  text-align: left;
}

.consultation-pagination a:last-child,
.consultation-pagination span:last-child {
  text-align: right;
}

.consultation-pagination span[aria-disabled="true"] {
  color: #9aa5af;
}

.web-footer {
  padding: 16px 32px;
  color: #778491;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 720px) {
  .web-shell {
    grid-template-columns: 1fr;
  }

  .web-sidebar {
    display: none;
  }

  .web-header {
    justify-content: space-between;
    min-height: 56px;
    padding: 0 20px;
  }

  .web-mobile-brand {
    display: inline;
  }

  .web-content {
    place-items: start;
    padding: 40px 20px;
  }

  .consultation-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .consultation-tabs {
    gap: 18px;
  }

  .consultation-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .consultation-metadata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-empty-state h1 {
    font-size: 28px;
  }

  .web-footer {
    padding: 16px 20px;
  }
}

@media (max-width: 430px) {
  .consultation-metadata {
    grid-template-columns: 1fr;
  }
}
