/* AuditHub product preview: a faithful miniature of the real application.
   These are not screenshots: every surface below is markup, so it stays
   crisp, responsive, translatable, and cheap to keep in step with the app.
   The palette, radii, and chrome mirror the product's design system. */

.ah {
  --ah-ink: #101828;
  --ah-text: #384254;
  --ah-muted: #6b7789;
  --ah-line: #e4e9f1;
  --ah-line-soft: #eef1f6;
  --ah-surface: #ffffff;
  --ah-canvas: #f6f8fb;
  --ah-blue: #246bfd;
  --ah-blue-soft: #edf3ff;
  --ah-violet: #7f56d9;
  --ah-violet-soft: #f2edfe;
  --ah-green: #087a4b;
  --ah-green-soft: #e6f5ee;
  --ah-amber: #b54708;
  --ah-amber-soft: #fef3e6;
  --ah-red: #c4320a;
  --ah-red-soft: #fdeeea;

  container-type: inline-size;
  display: block;
  overflow: hidden;
  border: 1px solid #d7deea;
  border-radius: 16px;
  background: var(--ah-surface);
  box-shadow: var(--shadow-lg);
  color: var(--ah-text);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.ah *,
.ah *::before,
.ah *::after {
  box-sizing: border-box;
}

.ah p,
.ah h2,
.ah h3,
.ah h4,
.ah ul,
.ah ol,
.ah figure {
  margin: 0;
  padding: 0;
  color: inherit;
  letter-spacing: normal;
}

.ah ul,
.ah ol {
  list-style: none;
}

/* Browser chrome ---------------------------------------------------------- */
.ah-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--ah-line);
  background: #f2f4f8;
}

.ah-dots {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.ah-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d3d9e4;
}

.ah-url {
  overflow: hidden;
  flex: 1 1 auto;
  padding: 4px 12px;
  border: 1px solid #e2e7f0;
  border-radius: 999px;
  background: #fff;
  color: var(--ah-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-url b {
  color: var(--ah-text);
  font-weight: 600;
}


/* Application top navigation --------------------------------------------- */
.ah-topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  height: 50px;
  border-bottom: 1px solid var(--ah-line);
  background: #fff;
}

.ah-wordmark b {
  color: var(--ah-blue);
  font-weight: 800;
}

.ah-wordmark {
  flex: 0 0 auto;
  color: var(--ah-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ah-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.ah-nav span {
  position: relative;
  padding: 15px 0;
  color: #5b6779;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ah-nav span.is-active {
  color: var(--ah-blue);
}

.ah-nav span.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--ah-blue);
}

.ah-nav span.ah-nav-ai {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ah-violet);
}

.ah-topnav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ah-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 190px;
  padding: 6px 11px;
  border: 1px solid var(--ah-line);
  border-radius: 8px;
  background: #f8fafc;
  color: #9aa4b4;
  font-size: 11.5px;
}

.ah-bell {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  color: #8b95a6;
}

.ah-bell::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--ah-red);
}

.ah-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ah-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.ah-avatar.ah-avatar-soft {
  background: #e4eaf4;
  color: #4b586c;
}

/* Page body --------------------------------------------------------------- */
.ah-body {
  padding: 20px;
  background: var(--ah-canvas);
}

.ah-body-flush {
  padding: 0;
}

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

.ah-crumb {
  display: block;
  margin-bottom: 5px;
  color: var(--ah-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ah-title {
  color: var(--ah-ink);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.ah-subtitle {
  margin-top: 3px;
  color: var(--ah-muted);
  font-size: 11.5px;
}

.ah-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.ah-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--ah-line);
  border-radius: 8px;
  background: #fff;
  color: #46536a;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.ah-btn-primary {
  border-color: var(--ah-blue);
  background: var(--ah-blue);
  color: #fff;
}

.ah-btn-ai {
  border-color: var(--ah-violet);
  background: var(--ah-violet);
  color: #fff;
}

.ah-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ah-blue);
}

/* Cards ------------------------------------------------------------------- */
.ah-card {
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: #fff;
}

.ah-card-pad {
  padding: 16px;
}

.ah-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ah-line-soft);
}

.ah-card-head h4 {
  color: var(--ah-ink);
  font-size: 13px;
  font-weight: 700;
}

.ah-card-head > span:not([class]) {
  color: var(--ah-muted);
  font-size: 11px;
}

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

.ah-grid-main {
  display: grid;
  grid-template-columns: minmax(0, var(--ah-split, 1.75fr)) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

/* Stat tiles -------------------------------------------------------------- */
.ah-stat {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: #fff;
}

.ah-stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ah-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ah-stat-icon .ah-i,
.ah-secitem .ah-i,
.ah-chip .ah-i,
.ah-hint .ah-i {
  width: 13px;
  height: 13px;
}

.ah-ai-mark .ah-i {
  width: 12px;
  height: 12px;
}

.ah-stat-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ah-blue-soft);
  color: var(--ah-blue);
}

.ah-stat-icon.is-amber {
  background: var(--ah-amber-soft);
  color: var(--ah-amber);
}

.ah-stat-icon.is-green {
  background: var(--ah-green-soft);
  color: var(--ah-green);
}

.ah-stat-value {
  color: var(--ah-ink);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ah-stat-foot {
  color: var(--ah-muted);
  font-size: 11px;
}

/* Tables ------------------------------------------------------------------ */
.ah-table {
  width: 100%;
  border-collapse: collapse;
}

.ah-table th {
  padding: 9px 16px;
  border-bottom: 1px solid var(--ah-line-soft);
  background: #fafbfd;
  color: var(--ah-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.ah-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--ah-line-soft);
  font-size: 12px;
  vertical-align: middle;
}

.ah-table tr:last-child td {
  border-bottom: 0;
}

.ah-table strong {
  display: block;
  color: var(--ah-ink);
  font-weight: 650;
}

.ah-table small {
  display: block;
  margin-top: 2px;
  color: var(--ah-muted);
  font-size: 10.5px;
}

.ah-table .ah-num {
  color: var(--ah-muted);
  font-variant-numeric: tabular-nums;
}

.ah-person {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.ah-person .ah-avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.ah-overdue {
  color: var(--ah-red);
  font-weight: 650;
}

.ah-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--ah-line-soft);
  color: var(--ah-muted);
  font-size: 11px;
}

.ah-pager {
  display: flex;
  gap: 5px;
}

.ah-pager span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 10.5px;
}

.ah-pager span.is-active {
  background: var(--ah-blue);
  color: #fff;
  font-weight: 700;
}

/* Chips ------------------------------------------------------------------- */
.ah-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef1f6;
  color: #4f5c70;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.ah-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentcolor;
}

.ah-chip-plain::before {
  display: none;
}

.ah-chip-blue {
  background: var(--ah-blue-soft);
  color: #1748ad;
}

.ah-chip-green {
  background: var(--ah-green-soft);
  color: var(--ah-green);
}

.ah-chip-amber {
  background: var(--ah-amber-soft);
  color: var(--ah-amber);
}

.ah-chip-red {
  background: var(--ah-red-soft);
  color: var(--ah-red);
}

.ah-chip-violet {
  background: var(--ah-violet-soft);
  color: #5c34ae;
}

.ah-chip-grey {
  background: #eef1f6;
  color: #5b6779;
}

/* Progress ---------------------------------------------------------------- */
.ah-bar {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #e8ecf3;
}

.ah-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ah-blue);
}

.ah-bar i.is-green {
  background: var(--ah-green);
}

.ah-meter {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

.ah-meter:last-child {
  margin-bottom: 0;
}

.ah-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ah-text);
  font-size: 11px;
  font-weight: 600;
}

.ah-meter-head span:last-child {
  color: var(--ah-muted);
  font-variant-numeric: tabular-nums;
}

.ah-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ah-strip .ah-meter {
  margin-bottom: 0;
}

/* Feed -------------------------------------------------------------------- */
.ah-feed {
  display: grid;
  gap: 13px;
  padding: 14px 16px;
}

.ah-feed li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.ah-feed p {
  font-size: 11.5px;
  line-height: 1.5;
}

.ah-feed b {
  color: var(--ah-ink);
  font-weight: 650;
}

.ah-feed time {
  display: block;
  margin-top: 2px;
  color: var(--ah-muted);
  font-size: 10.5px;
}

/* Audit workspace --------------------------------------------------------- */
.ah-auditbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--ah-line);
  background: #fff;
}

.ah-auditbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  color: var(--ah-muted);
  font-size: 11px;
}

.ah-auditbar-meta a {
  color: var(--ah-blue);
  font-weight: 600;
}

.ah-progress-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ah-muted);
  font-size: 11px;
  white-space: nowrap;
}

.ah-progress-inline .ah-bar {
  width: 92px;
}

.ah-workspace {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  min-height: 330px;
  background: var(--ah-canvas);
}

.ah-rail {
  padding: 15px 13px;
  border-right: 1px solid var(--ah-line);
  background: #fff;
}

.ah-rail-title {
  display: block;
  margin-bottom: 11px;
  color: var(--ah-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ah-rail-item {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 9px;
  margin-bottom: 4px;
}

.ah-rail-item.is-active {
  background: var(--ah-blue-soft);
}

.ah-rail-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #46536a;
  font-size: 11.5px;
  font-weight: 650;
}

.ah-rail-item.is-active .ah-rail-item-head {
  color: #1748ad;
}

.ah-rail-item-head span:last-child {
  color: var(--ah-muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.ah-rail-plain {
  padding: 9px 10px;
  color: #5b6779;
  font-size: 11.5px;
  font-weight: 600;
}

.ah-questions {
  overflow: hidden;
  padding: 15px;
}

.ah-question {
  padding: 14px;
  border: 1px solid var(--ah-line);
  border-left: 3px solid var(--ah-blue);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
}

.ah-question-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left-color: var(--ah-line);
  padding: 12px 14px;
}

.ah-question-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.ah-question-code {
  color: var(--ah-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.ah-question h4 {
  color: var(--ah-ink);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}

.ah-question-guidance {
  margin-top: 5px;
  color: var(--ah-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ah-field-label {
  display: block;
  margin: 13px 0 7px;
  color: var(--ah-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ah-choices {
  display: flex;
  gap: 7px;
}

.ah-choices span {
  padding: 6px 15px;
  border: 1px solid var(--ah-line);
  border-radius: 8px;
  color: #5b6779;
  font-size: 11.5px;
  font-weight: 650;
}

.ah-choices span.is-picked {
  border-color: var(--ah-blue);
  background: var(--ah-blue-soft);
  color: #1748ad;
}

.ah-note {
  padding: 9px 11px;
  border: 1px solid var(--ah-line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ah-text);
  font-size: 11.5px;
  line-height: 1.55;
}

.ah-evidence {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ah-evidence-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--ah-line);
  border-radius: 8px;
  background: #fff;
  color: #46536a;
  font-size: 11px;
}

.ah-saved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ah-green);
  font-size: 10.5px;
  font-weight: 650;
}

.ah-discussion {
  padding: 14px;
  border-left: 1px solid var(--ah-line);
  background: #fff;
}

.ah-msg {
  margin-bottom: 13px;
}

.ah-msg-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.ah-msg-head b {
  flex: 1 1 auto;
  color: var(--ah-ink);
  font-size: 11.5px;
  font-weight: 650;
}

.ah-msg-head time {
  color: var(--ah-muted);
  font-size: 10px;
}

.ah-msg p {
  padding-left: 27px;
  color: var(--ah-text);
  font-size: 11.5px;
  line-height: 1.5;
}

.ah-msg-reply {
  margin: 7px 0 0 27px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f7fb;
}

.ah-msg-reply p {
  padding: 0;
}

.ah-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border: 1px solid var(--ah-line);
  border-radius: 8px;
  background: #f8fafc;
  color: #9aa4b4;
  font-size: 11px;
}

/* AI panel ---------------------------------------------------------------- */
.ah-ai {
  border: 1px solid #ddd0fb;
  border-radius: 12px;
  background: linear-gradient(180deg, #faf7ff, #fff 70%);
}

.ah-ai-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid #ede5fd;
}

.ah-ai-head h4 {
  flex: 1 1 auto;
  color: #3f2380;
  font-size: 13px;
  font-weight: 700;
}

.ah-ai-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ah-violet);
  color: #fff;
}

.ah-ai-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #ede5fd;
}

.ah-seg {
  display: flex;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 9px;
  background: #f1f3f7;
}

.ah-seg span {
  padding: 5px 12px;
  border-radius: 7px;
  color: #5b6779;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.ah-seg span.is-picked {
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.14);
  color: var(--ah-ink);
}

.ah-seg-blue span.is-picked {
  background: var(--ah-blue);
  box-shadow: none;
  color: #fff;
}

.ah-seg-violet {
  background: #f0eafb;
}

.ah-seg-violet span {
  color: #6b5a92;
}

.ah-seg-violet span.is-picked {
  background: var(--ah-violet);
  box-shadow: none;
  color: #fff;
}

.ah-ai-instruction {
  flex: 1 1 190px;
  min-width: 0;
  padding: 7px 11px;
  border: 1px solid #e2d7fa;
  border-radius: 8px;
  background: #fff;
  color: #6b5a92;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-ai-body {
  padding: 14px 16px;
}

.ah-ai-body h5 {
  margin: 0 0 6px;
  color: var(--ah-ink);
  font-size: 11.5px;
  font-weight: 700;
}

.ah-ai-body p {
  color: var(--ah-text);
  font-size: 11.5px;
  line-height: 1.6;
}

.ah-proposed {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ah-proposed li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--ah-line);
  border-radius: 9px;
  background: #fff;
}

.ah-proposed b {
  display: block;
  color: var(--ah-ink);
  font-size: 11.5px;
  font-weight: 650;
}

.ah-proposed small {
  display: block;
  margin-top: 2px;
  color: var(--ah-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.ah-guard {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #f4f6fa;
  color: #4f5c70;
  font-size: 10.5px;
  line-height: 1.5;
}

/* Rich-text editor -------------------------------------------------------- */
.ah-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--ah-line-soft);
  background: #fafbfd;
}

.ah-toolbar span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  color: #5b6779;
  font-size: 11px;
  font-weight: 700;
}

.ah-toolbar span.is-picked {
  background: #e8edf6;
  color: var(--ah-ink);
}

.ah-toolbar i {
  width: 1px;
  height: 14px;
  margin: 0 4px;
  background: var(--ah-line);
}

.ah-doc {
  padding: 14px 16px;
}

.ah-doc h5 {
  margin: 0 0 7px;
  color: var(--ah-ink);
  font-size: 12.5px;
  font-weight: 700;
}

.ah-doc p {
  color: var(--ah-text);
  font-size: 11.5px;
  line-height: 1.65;
}

.ah-doc ul {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.ah-doc li {
  position: relative;
  padding-left: 14px;
  color: var(--ah-text);
  font-size: 11.5px;
  line-height: 1.55;
}

.ah-doc li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ah-blue);
}

.ah-caret {
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 1px;
  background: var(--ah-blue);
  vertical-align: text-bottom;
}

/* Integrations / MCP ------------------------------------------------------ */
.ah-endpoint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ah-line);
  border-radius: 9px;
  background: #f8fafc;
}

.ah-endpoint code {
  overflow: hidden;
  color: var(--ah-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #cfdcff;
  border-radius: 9px;
  background: #fff;
}

.ah-token code {
  overflow: hidden;
  color: #46536a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-check {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 11px;
}

.ah-box {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border: 1.5px solid #c4cdda;
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
}

.ah-box.is-on {
  border-color: var(--ah-blue);
  background: var(--ah-blue);
}

.ah-check b {
  display: block;
  color: var(--ah-ink);
  font-size: 11.5px;
  font-weight: 650;
}

.ah-check small {
  display: block;
  margin-top: 2px;
  color: var(--ah-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.ah-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
  color: var(--ah-text);
  font-size: 11.5px;
}

.ah-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid #c4cdda;
  border-radius: 50%;
}

.ah-dot.is-on {
  border: 4.5px solid var(--ah-blue);
}

.ah-inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ah-muted);
  font-size: 11px;
}

.ah-input {
  width: 56px;
  padding: 6px 9px;
  border: 1px solid var(--ah-line);
  border-radius: 7px;
  background: #fff;
  color: var(--ah-ink);
  font-size: 11.5px;
  font-weight: 600;
}

.ah-switch {
  position: relative;
  width: 32px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--ah-blue);
}

.ah-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.ah-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--ah-blue-soft);
  color: #1748ad;
  font-size: 10.5px;
  line-height: 1.5;
}

/* Template builder -------------------------------------------------------- */
.ah-outline {
  display: grid;
  gap: 4px;
}

.ah-outline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #46536a;
  font-size: 11.5px;
}

.ah-outline-row.is-section {
  background: #f3f6fb;
  color: var(--ah-ink);
  font-weight: 650;
}

.ah-outline-row.is-child {
  margin-left: 14px;
}

.ah-outline-row .ah-chip {
  margin-left: auto;
}

/* Brand lockup ------------------------------------------------------------ */
.ah-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.ah-logo {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

/* Line icons: one stroked set, so nothing in a preview is an emoji glyph. */
.ah-i {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vertical-align: -2px;
}

.ah-org {
  padding-left: 10px;
  border-left: 1px solid var(--ah-line);
  line-height: 1.15;
}

.ah-org small {
  display: block;
  color: var(--ah-muted);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ah-org b {
  display: block;
  color: var(--ah-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}


.ah-caretdown {
  color: #9aa4b4;
  font-size: 9px;
}

/* Page band --------------------------------------------------------------- */
.ah-pageband {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ah-line);
  background: #fff;
}

.ah-pageband-end {
  display: grid;
  flex: 0 0 auto;
  gap: 9px;
  justify-items: end;
}

.ah-titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
}

.ah-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 7px;
  color: var(--ah-muted);
  font-size: 10.5px;
}

.ah-meta a {
  color: var(--ah-blue);
  font-weight: 650;
  text-decoration: none;
}

.ah-meta b {
  color: var(--ah-ink);
  font-weight: 650;
}

.ah-progress {
  display: grid;
  gap: 5px;
  width: 210px;
}

.ah-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--ah-text);
  font-size: 11px;
  font-weight: 600;
}

.ah-progress-head b {
  color: var(--ah-ink);
  font-size: 12.5px;
  font-weight: 750;
}

.ah-progress-note {
  color: var(--ah-muted);
  font-size: 10px;
}

.ah-btn-muted {
  background: #eef1f6;
  border-color: #eef1f6;
  color: #98a1b0;
}

/* Banners ----------------------------------------------------------------- */
.ah-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #cddcfb;
  border-radius: 10px;
  background: var(--ah-blue-soft);
  color: #1748ad;
  font-size: 11px;
  line-height: 1.5;
}

.ah-banner.is-green {
  border-color: #bfe3d2;
  background: var(--ah-green-soft);
  color: #0a6b46;
}

.ah-banner em {
  color: inherit;
  font-style: italic;
  opacity: 0.8;
}

/* Dashboard --------------------------------------------------------------- */
.ah-dash {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ah-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.ah-btn-block {
  width: 100%;
  justify-content: center;
}

.ah-stat-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ah-stat-name {
  flex: 1 1 auto;
  color: var(--ah-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ah-stat-num {
  color: var(--ah-ink);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ah-stat-link {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--ah-line-soft);
  color: var(--ah-blue);
  font-size: 11px;
  font-weight: 650;
}

.ah-action {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
}

.ah-action-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ah-amber);
}

.ah-action-copy {
  flex: 1 1 auto;
}

.ah-action-copy b {
  display: block;
  color: var(--ah-ink);
  font-size: 12px;
  font-weight: 650;
}

.ah-action-copy small {
  color: var(--ah-muted);
  font-size: 10.5px;
}

.ah-btn-violet {
  border-color: var(--ah-violet);
  border-radius: 999px;
  color: var(--ah-violet);
}

.ah-statusbar {
  display: flex;
  gap: 2px;
  overflow: hidden;
  height: 26px;
  border-radius: 7px;
}

.ah-statusbar span {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.ah-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 11px;
  color: var(--ah-text);
  font-size: 10.5px;
}

.ah-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ah-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ah-legend b {
  color: var(--ah-ink);
  font-weight: 700;
}

.ah-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ah-line-soft);
  font-size: 11.5px;
}

.ah-rows > div:last-child {
  border-bottom: 0;
}

.ah-rows b {
  color: var(--ah-ink);
  font-weight: 650;
}

.ah-rows small {
  display: block;
  margin-top: 2px;
  color: var(--ah-muted);
  font-size: 10.5px;
}

.ah-rows .ah-num {
  color: var(--ah-muted);
  font-size: 10.5px;
  text-align: right;
  white-space: nowrap;
}

/* Form surfaces ----------------------------------------------------------- */
.ah-flabel {
  display: block;
  margin-bottom: 5px;
  color: var(--ah-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ah-field {
  padding: 9px 11px;
  border-radius: 8px;
  background: #f5f7fa;
  color: var(--ah-ink);
  font-size: 11.5px;
}

.ah-field.is-ph {
  color: #9aa4b4;
}

.ah-field.is-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ah-field.is-select::after {
  content: "▾";
  color: #9aa4b4;
  font-size: 9px;
}

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

.ah-hint {
  color: var(--ah-muted);
  font-size: 10.5px;
}

.ah-numbadge {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ah-blue-soft);
  color: var(--ah-blue);
  font-size: 12px;
  font-weight: 750;
}

.ah-secitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #46536a;
  font-size: 11.5px;
}

.ah-secitem.is-active {
  background: var(--ah-blue-soft);
  color: #1748ad;
  font-weight: 650;
}

.ah-secitem b {
  margin-left: auto;
  font-weight: 650;
}

/* Question rows ----------------------------------------------------------- */
.ah-qrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ah-line-soft);
}

.ah-qrow:last-child {
  border-bottom: 0;
}

.ah-qrow h4 {
  flex: 1 1 auto;
  color: var(--ah-ink);
  font-size: 12px;
  font-weight: 650;
}

.ah-qtag {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef1f6;
  color: #5b6779;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ah-chev {
  color: #9aa4b4;
  font-size: 10px;
}

.ah-qopen {
  padding: 14px;
  border-bottom: 1px solid var(--ah-line-soft);
}

.ah-tick {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid #cdd5e2;
  border-radius: 50%;
  color: transparent;
  font-size: 9px;
}

.ah-tick.is-done {
  border-color: var(--ah-green);
  background: var(--ah-green);
  color: #fff;
}

.ah-qidx {
  flex: 0 0 auto;
  width: 10px;
  color: var(--ah-muted);
  font-size: 11px;
}

.ah-rating {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.ah-rating span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid var(--ah-line);
  border-radius: 6px;
  color: #5b6779;
  font-size: 10px;
}

.ah-rating span.is-picked {
  border-color: var(--ah-blue);
  background: var(--ah-blue);
  color: #fff;
}

.ah-flag {
  display: inline-flex;
  flex: 0 0 auto;
  color: #9aa4b4;
}

.ah-detail {
  color: #5b6779;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ah-empty {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 22px 16px;
  color: var(--ah-muted);
  font-size: 11px;
  text-align: center;
}

.ah-empty b {
  color: var(--ah-ink);
  font-size: 12px;
}

.ah-empty-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  border-radius: 9px;
  background: #f1f4f9;
  font-size: 13px;
}

/* Evaluation -------------------------------------------------------------- */
.ah-evalgrid {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ah-ai {
  padding: 16px;
  border: 1px dashed var(--ah-violet);
  border-radius: 12px;
  background: #fff;
}

.ah-ai-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}

/* Finding record ---------------------------------------------------------- */
.ah-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}

.ah-pill-red {
  background: #b42318;
}

.ah-pill-blue {
  background: var(--ah-blue);
}

.ah-pill-amber {
  background: #b54708;
}

.ah-readonly {
  padding: 12px 13px;
  border-radius: 9px;
  background: #f5f7fa;
  color: var(--ah-text);
  font-size: 11.5px;
  line-height: 1.55;
}

.ah-choices span.is-filled {
  border-color: var(--ah-blue);
  background: var(--ah-blue);
  color: #fff;
}

.ah-choices span.is-high {
  border-color: #b54708;
  background: #b54708;
  color: #fff;
}

.ah-choices span.is-critical {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}

.ah-history {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.ah-history li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
}

.ah-history-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ah-blue);
  color: #fff;
  font-size: 9px;
}

.ah-history-icon.is-amber {
  background: var(--ah-amber-soft);
  color: var(--ah-amber);
}

.ah-history time {
  display: block;
  margin-top: 2px;
  color: var(--ah-muted);
  font-size: 10px;
}

.ah-history b {
  color: var(--ah-ink);
  font-weight: 650;
}

/* Calendar ---------------------------------------------------------------- */
.ah-cal {
  overflow: hidden;
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: #fff;
}

.ah-cal-head,
.ah-cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ah-cal-head span {
  padding: 8px 6px;
  border-bottom: 1px solid var(--ah-line-soft);
  background: #fafbfd;
  color: var(--ah-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.ah-cal-cell {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 58px;
  padding: 6px;
  border-right: 1px solid var(--ah-line-soft);
  border-bottom: 1px solid var(--ah-line-soft);
}

.ah-cal-cell:nth-child(7n) {
  border-right: 0;
}

.ah-cal-week:last-child .ah-cal-cell {
  border-bottom: 0;
}

.ah-cal-cell.is-out {
  background: #f7f9fc;
}

.ah-cal-day {
  color: var(--ah-muted);
  font-size: 10px;
}

.ah-cal-day.is-today {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ah-blue);
  color: #fff;
  font-weight: 700;
}

.ah-ev {
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-ev-blue {
  background: var(--ah-blue-soft);
  color: #1748ad;
}

.ah-ev-green {
  background: var(--ah-green-soft);
  color: var(--ah-green);
}

.ah-ev-amber {
  background: var(--ah-amber-soft);
  color: var(--ah-amber);
}

.ah-ev-violet {
  background: var(--ah-violet-soft);
  color: #5c34ae;
}

/* MCP integrations -------------------------------------------------------- */
.ah-linkbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--ah-blue-soft);
  color: #1748ad;
  font-size: 11px;
  font-weight: 650;
}

.ah-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f5f7fa;
  color: var(--ah-ink);
  font-size: 11.5px;
}

.ah-stepper em {
  color: var(--ah-muted);
  font-style: normal;
}

.ah-caps {
  color: var(--ah-green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ah-caps.is-grey {
  color: var(--ah-muted);
}

.ah-revoke {
  display: inline-flex;
  color: var(--ah-red);
}

/* Tabbed showcase --------------------------------------------------------- */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.showcase-tab {
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.showcase-tab:hover {
  border-color: var(--color-border-dark);
  color: var(--color-text);
}

.showcase-tab[aria-selected="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.showcase-panel[hidden] {
  display: none;
}

.showcase-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 20px;
}

.showcase-caption strong {
  color: var(--color-navy);
  font-size: 1rem;
}

.showcase-caption p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.showcase-note {
  margin-top: 26px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Responsive -------------------------------------------------------------- */
@container (max-width: 780px) {
  .ah-search {
    display: none;
  }

  .ah-topnav {
    gap: 14px;
  }

  .ah-nav {
    gap: 14px;
  }

  .ah-nav span:nth-child(n + 5) {
    display: none;
  }
}

@container (max-width: 880px) {
  .ah-dash,
  .ah-evalgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-workspace {
    grid-template-columns: 158px minmax(0, 1fr);
  }

  .ah-discussion {
    display: none;
  }
}

@container (max-width: 720px) {
  .ah-grid-main,
  .ah-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-pageband {
    flex-direction: column;
    align-items: stretch;
  }

  .ah-pageband-end {
    justify-items: stretch;
  }

  .ah-progress {
    width: auto;
  }

  .ah-cal-cell {
    min-height: 46px;
  }

  .ah-qrow {
    flex-wrap: wrap;
  }

  .ah-qrow h4 {
    flex: 1 1 140px;
  }

  .ah-qrow .ah-choices,
  .ah-qrow .ah-seg,
  .ah-qrow .ah-rating {
    flex: 1 1 100%;
    flex-wrap: wrap;
    margin-left: 26px;
  }

  .ah-table th,
  .ah-table td,
  .ah-card-head,
  .ah-table-foot {
    padding-inline: 12px;
  }

  .ah-title {
    font-size: 17px;
  }

  .ah-stat-value {
    font-size: 22px;
  }
}

@container (max-width: 560px) {
  .ah {
    font-size: 12px;
  }

  .ah-nav span:nth-child(n + 3) {
    display: none;
  }

  .ah-caretdown {
    display: none;
  }

  .ah-body {
    padding: 14px;
  }

  .ah-grid-3,
  .ah-strip,
  .ah-quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-org {
    display: none;
  }

  .ah-pagehead,
  .ah-auditbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ah-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-rail {
    border-right: 0;
    border-bottom: 1px solid var(--ah-line);
  }
}

/* Wide tables stay readable by scrolling rather than crushing their columns. */
.ah-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ah-scroll .ah-table {
  min-width: 460px;
}

@media (max-width: 767px) {
  .showcase-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -20px;
    padding-inline: 20px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .showcase-tabs::-webkit-scrollbar {
    display: none;
  }

  .showcase-tab {
    flex: 0 0 auto;
  }
}
