:root {
  --kca-blue: #009cbd;
  --kca-green: #3a913f;
  --ink: #20272a;
  --muted: #637174;
  --line: #d8e2e5;
  --surface: #ffffff;
  --page: #f6f8f8;
  --soft-blue: #e8f6f9;
  --soft-green: #edf7ef;
  --shadow: 0 12px 30px rgba(23, 45, 50, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.site-login-screen {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.site-login-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 520px;
  padding: 28px;
  width: 100%;
}

.site-login-card img {
  max-width: 250px;
  width: 100%;
}

.site-login-card h1 {
  color: var(--kca-blue);
  margin-bottom: 6px;
}

.site-login-card p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.mobile-menu-button,
.mobile-menu-close,
.mobile-nav-backdrop {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 24px 18px;
}

.brand {
  display: block;
  padding: 6px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.section-nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.nav-link {
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  min-height: 40px;
  padding: 9px 10px;
  position: relative;
  text-align: left;
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  background: var(--soft-blue);
  color: #006e86;
}

.nav-link.group-link {
  padding-right: 34px;
}

.nav-link.group-link::after {
  color: var(--muted);
  content: "+";
  font-weight: 700;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-link.group-link.expanded::after {
  content: "-";
}

.nav-link.child-link {
  color: var(--muted);
  font-size: 0.92rem;
  margin-left: 14px;
  min-height: 34px;
  padding-left: 16px;
  position: relative;
}

.nav-link.child-link::before {
  background: var(--line);
  content: "";
  height: 1px;
  left: 4px;
  position: absolute;
  top: 50%;
  width: 7px;
}

.nav-link.grandchild-link {
  font-size: 0.86rem;
  margin-left: 30px;
}

.nav-link.admin-nav-link {
  border-top: 1px solid var(--line);
  color: var(--kca-green);
  font-weight: 700;
  margin-top: 8px;
  padding-top: 14px;
}

.workspace {
  min-width: 0;
  padding: 28px clamp(20px, 4vw, 48px) 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.eyebrow {
  color: var(--kca-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 0;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
}

.auth-status {
  align-items: end;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 8px;
  justify-content: flex-end;
}

.auth-status span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-status .secondary-button {
  min-height: 42px;
}

.search-box {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-box input {
  width: min(320px, 34vw);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: #ffffff;
}

.search-box input:focus {
  border-color: var(--kca-blue);
  outline: 3px solid rgba(0, 156, 189, 0.15);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--kca-blue);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(90deg, var(--soft-blue), var(--soft-green));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 28px;
}

.summary-band p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 760px;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(94px, 1fr));
  gap: 10px;
}

.summary-metrics div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  padding: 12px;
}

.summary-metrics strong,
.summary-metrics span {
  display: block;
}

.summary-metrics strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.summary-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
}

.content-layout {
  max-width: 1040px;
}

.ask-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: clamp(18px, 2.6vw, 26px);
}

.ask-copy p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.ask-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ask-input {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.ask-input textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.ask-input textarea:focus {
  border-color: var(--kca-blue);
  outline: 3px solid rgba(0, 156, 189, 0.15);
}

.ask-actions {
  display: flex;
  gap: 8px;
}

.primary-button,
.secondary-button {
  border-radius: 6px;
  cursor: pointer;
  min-height: 38px;
  padding: 8px 14px;
}

.primary-button {
  background: var(--kca-blue);
  border: 1px solid var(--kca-blue);
  color: #ffffff;
  font-weight: 700;
}

.secondary-button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.ask-answer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 14px;
}

.ask-answer p {
  margin-bottom: 0;
}

.ask-result {
  display: grid;
  gap: 12px;
}

.result-summary {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.result-summary h3 {
  color: var(--ink);
  margin-bottom: 0;
}

.result-summary p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.source-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 7px;
  list-style: none;
  padding: 11px 12px;
}

.source-list li > div {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.source-list span,
.source-list p {
  color: var(--muted);
  font-size: 0.84rem;
}

.source-list span {
  text-align: right;
}

.source-list p {
  margin-bottom: 0;
}

.source-list mark {
  background: #fff3a3;
  border-radius: 3px;
  color: var(--ink);
  padding: 0 2px;
}

.source-link {
  background: transparent;
  border: 0;
  color: #007f9b;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(0, 127, 155, 0.35);
  text-underline-offset: 2px;
}

.roster-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-card {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 16px;
}

.person-role {
  color: var(--kca-green);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0;
  text-transform: uppercase;
}

.person-card h3 {
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.person-details {
  display: grid;
  gap: 4px;
}

.person-details p {
  color: var(--muted);
  margin-bottom: 0;
}

.person-details a {
  color: #007f9b;
  font-weight: 700;
  text-decoration-color: rgba(0, 127, 155, 0.35);
  text-underline-offset: 2px;
}

.committee-grid {
  display: grid;
  gap: 14px;
}

.committee-card {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.committee-card h3 {
  color: var(--kca-blue);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.committee-purpose {
  color: var(--ink);
  margin-bottom: 0;
  max-width: 82ch;
}

.committee-members {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.committee-members p {
  color: var(--muted);
  margin-bottom: 0;
}

.committee-members a {
  color: #007f9b;
  font-weight: 700;
  text-decoration-color: rgba(0, 127, 155, 0.35);
  text-underline-offset: 2px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 8px;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  padding: 4px 8px;
  white-space: nowrap;
}

.child-count {
  color: var(--kca-green);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-list,
.attachment-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
}

.detail-list li,
.attachment-list li {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  min-height: 36px;
  padding: 8px 10px;
}

.detail-list li {
  background: #fbfdfd;
}

.attachment-list li {
  background: var(--soft-green);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  padding: 14px;
}

.content-reader {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.reader-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.reader-header h2 {
  color: var(--kca-blue);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.approval-date {
  color: var(--kca-green);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.reader-header p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}

.reader-header .approval-date {
  color: var(--kca-green);
}

.reader-body {
  display: grid;
  gap: 10px;
}

.reader-body h2,
.reader-body h3,
.reader-body h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 14px 0 2px;
}

.reader-body h2 {
  color: var(--kca-blue);
  font-size: 1.32rem;
}

.reader-body h3 {
  color: var(--kca-green);
  font-size: 1.1rem;
}

.reader-body h4 {
  font-size: 0.96rem;
}

.reader-body p {
  margin-bottom: 0;
  max-width: 78ch;
}

.reader-body .title-line {
  color: var(--kca-blue);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
}

.reader-body .list-item {
  padding-left: 24px;
  position: relative;
}

.reader-body .list-item::before {
  color: var(--kca-green);
  content: "•";
  font-weight: 700;
  left: 8px;
  position: absolute;
}

.reader-body a,
.content-row a {
  color: #007f9b;
  font-weight: 700;
  text-decoration-color: rgba(0, 127, 155, 0.35);
  text-underline-offset: 2px;
}

.content-figure {
  margin: 4px 0 0;
}

.content-figure img {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: auto;
  max-width: 100%;
}

.content-figure figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.content-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(160px, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.content-row span:first-child {
  font-weight: 700;
}

.attachment-callout {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--soft-blue);
  padding: 12px;
}

.attachment-callout span {
  color: var(--muted);
}

.attachment-library {
  display: grid;
  gap: 14px;
}

.attachment-group {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.attachment-group h3 {
  color: var(--kca-blue);
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.attachment-group p {
  color: var(--muted);
  margin-bottom: 0;
}

.attachment-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.attachment-group li {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 8px 10px;
}

.attachment-group li span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.attachment-group a {
  color: #007f9b;
  font-weight: 700;
  text-decoration-color: rgba(0, 127, 155, 0.35);
  text-underline-offset: 2px;
}

.empty-attachment-group {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 10px;
}

.board-forms-app {
  margin-top: 18px;
}

.forms-auth-panel,
.forms-dashboard {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.admin-status-panel {
  margin-top: 16px;
}

.public-status-panel {
  margin-top: 16px;
}

.forms-auth-panel h3,
.forms-dashboard h3,
.form-card h3 {
  color: var(--kca-blue);
  margin-bottom: 4px;
}

.forms-auth-panel p,
.forms-dashboard p,
.form-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.forms-login-form {
  display: grid;
  gap: 12px;
  max-width: 460px;
}

.forms-login-form label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.forms-login-form input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 40px;
  padding: 8px 10px;
}

.forms-login-form input:focus {
  border-color: var(--kca-blue);
  outline: 3px solid rgba(0, 156, 189, 0.15);
}

.form-message {
  color: var(--kca-green);
  font-weight: 700;
}

.forms-dashboard-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.forms-list {
  display: grid;
  gap: 10px;
}

.form-card {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.form-card > div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.form-open-button {
  min-height: 34px;
  padding: 6px 10px;
}

.response-detail-button {
  min-height: 32px;
  padding: 5px 9px;
  white-space: nowrap;
}

.form-detail {
  background: #ffffff;
}

.document-link {
  color: #007f9b;
  font-weight: 700;
  text-decoration-color: rgba(0, 127, 155, 0.35);
  text-underline-offset: 2px;
}

.board-response-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.board-response-form.locked {
  opacity: 0.68;
}

.board-response-form.locked::before {
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  content: "Open the PDF document to unlock this form.";
  display: block;
  font-weight: 700;
  padding: 10px;
}

.form-field,
.form-check {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 9px 10px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--kca-blue);
  outline: 3px solid rgba(0, 156, 189, 0.15);
}

.form-check {
  align-items: start;
  color: var(--ink);
  display: flex;
  gap: 10px;
  line-height: 1.35;
}

.form-check input {
  margin-top: 3px;
}

.status-complete,
.status-incomplete {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 9px;
  white-space: nowrap;
}

.status-complete {
  background: var(--soft-green);
  color: #216b26;
}

.status-incomplete {
  background: #fdecec;
  color: #a42323;
}

.completion-mark {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  margin-right: 6px;
  width: 24px;
}

.completion-mark.complete {
  background: var(--soft-green);
  color: #216b26;
}

.completion-mark.incomplete {
  background: #fdecec;
  color: #a42323;
}

.form-disclosure {
  margin-top: 8px;
}

.public-status-group {
  display: grid;
  gap: 8px;
}

.public-status-group + .public-status-group {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.public-status-group h4 {
  color: var(--kca-blue);
  margin: 0;
}

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

.form-status-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.form-status-table th,
.form-status-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.form-status-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.form-status-table td {
  color: var(--ink);
}

.form-status-table td span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  margin-top: 2px;
}

.form-status-table td .completion-mark {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 0.9rem;
  justify-content: center;
  line-height: 1;
  margin-top: 0;
  vertical-align: middle;
}

.form-status-table td .status-complete,
.form-status-table td .status-incomplete {
  display: inline-block;
  margin-top: 0;
  vertical-align: middle;
}

.response-detail-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
}

.response-detail-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.response-detail-list div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.response-detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.response-detail-list dd {
  color: var(--ink);
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.response-answer-list {
  display: grid;
  gap: 8px;
}

.response-answer-list h4 {
  color: var(--kca-blue);
  margin: 0;
}

.response-answer-list div {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.response-answer-list strong {
  color: var(--ink);
}

.response-answer-list span {
  color: var(--muted);
  white-space: pre-wrap;
}

.policy-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0 10px;
}

.reader-attachments {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

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

  .mobile-menu-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    left: 14px;
    min-height: 42px;
    padding: 8px 12px;
    position: fixed;
    top: 12px;
    z-index: 30;
  }

  .mobile-menu-button span[aria-hidden="true"] {
    color: var(--kca-blue);
    font-size: 1.2rem;
    line-height: 1;
  }

  .mobile-menu-close {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.4rem;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 38px;
  }

  .mobile-nav-backdrop {
    background: rgba(32, 39, 42, 0.42);
    border: 0;
    cursor: pointer;
    display: none;
    inset: 0;
    position: fixed;
    z-index: 20;
  }

  .app-shell.mobile-nav-open .mobile-nav-backdrop {
    display: block;
  }

  .sidebar {
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    height: 100vh;
    left: 0;
    max-width: min(86vw, 330px);
    padding: 62px 16px 18px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    width: 330px;
    z-index: 25;
  }

  .app-shell.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .brand {
    max-width: 220px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
  }

  .section-nav {
    display: grid;
    gap: 4px;
    overflow: visible;
    padding: 0;
  }

  .nav-link {
    border: 0;
    min-height: 40px;
    white-space: normal;
  }

  .nav-link.child-link {
    margin-left: 14px;
  }

  .nav-link.grandchild-link {
    margin-left: 30px;
  }

  .topbar,
  .summary-band {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding-left: 74px;
  }

  .toolbar {
    align-items: stretch;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

}

@media (max-width: 620px) {
  .sidebar {
    padding: 62px 16px 18px;
  }

  .brand {
    max-width: 170px;
  }

  .workspace {
    padding: 18px 16px 36px;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .ask-form {
    grid-template-columns: 1fr;
  }

  .roster-grid {
    grid-template-columns: 1fr;
  }

  .icon-button {
    flex: 0 0 42px;
  }

  .result-summary,
  .source-list li > div {
    align-items: start;
    flex-direction: column;
  }

  .source-list span {
    text-align: left;
  }

  .forms-dashboard-header,
  .form-card {
    grid-template-columns: 1fr;
  }
}
