@font-face {
  font-family: "Review Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-400.woff2") format("woff2");
}
@font-face {
  font-family: "Review Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-500.woff2") format("woff2");
}
@font-face {
  font-family: "Review Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/noto-sans-sc-700.woff2") format("woff2");
}
:root {
  --bg: #f4f6f9;
  --paper: #fff;
  --ink: #1c2d42;
  --muted: #69788c;
  --line: #e5eaf0;
  --nav: #102a43;
  --navtext: #a9bdcf;
  --brand: #2458ce;
  --tint: #edf2fd;
  --green: #14836a;
  --amber: #ac681b;
  --red: #c44849;
  --radius: 12px;
  font-family:
    -apple-system, "SF Pro Text", "PingFang SC", "Review Sans SC",
    "Noto Sans SC", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
button:hover {
  background: var(--tint);
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ib {
  width: 38px;
  padding: 7px;
}
.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.primary:hover {
  background: #1947af;
}
a {
  color: var(--brand);
  text-decoration: none;
}
input,
select,
textarea {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  min-width: 0;
}
input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 2px solid var(--tint);
}
textarea {
  resize: vertical;
  min-height: 100px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: white;
  padding: 30px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}
.brandmark {
  height: 38px;
  width: 38px;
  background: #2b62ce;
  color: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.brand strong {
  font-size: 23px;
  letter-spacing: 3px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--navtext);
}
.brandtext {
  display: grid;
  gap: 4px;
}
.navgroup {
  display: grid;
  gap: 5px;
}
.navlabel {
  color: #8ea5ba;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 0 15px 8px;
}
.navitem {
  border: 0;
  background: transparent;
  color: var(--navtext);
  justify-content: flex-start;
  padding: 12px 15px;
  border-radius: 8px;
  min-height: 46px;
}
.navitem:hover {
  background: #ffffff0d;
  color: white;
}
.navitem.active {
  background: #ffffff17;
  color: white;
  box-shadow: inset 3px 0 #82aaff;
}
.navitem .icon {
  margin-right: 3px;
}
.sidebottom {
  margin-top: auto;
  display: grid;
  gap: 17px;
}
.sidefoot {
  border-top: 1px solid #ffffff16;
  padding: 18px 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #ffffff14;
  border-radius: 50%;
  color: #c2d3e3;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  gap: 20px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.crumb strong {
  color: var(--ink);
  font-weight: 500;
}
.tools {
  display: flex;
  gap: 9px;
  align-items: center;
}
.topbar .ib {
  border: 0;
}
.date {
  padding-right: 14px;
  font-size: 13px;
  color: var(--muted);
}
.content {
  padding: 32px 36px 45px;
  max-width: 1740px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.heading .eyebrow {
  color: var(--muted);
  letter-spacing: 2px;
  font-size: 10px;
  margin-bottom: 8px;
}
.heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.statlabel {
  color: var(--muted);
  font-size: 13px;
}
.statnum {
  font-size: 31px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.statbadge {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panelhead {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-left: 10px;
  color: var(--muted);
}
.search input {
  border: 0;
  width: 210px;
  padding: 8px;
  background: none;
}
.seg {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 3px;
  border-radius: 8px;
}
.seg button {
  border: 0;
  background: none;
  min-height: 30px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 13px;
}
.seg button.active {
  background: var(--paper);
  box-shadow: 0 1px 4px #102a4310;
  color: var(--ink);
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  background: #f9fafc;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding: 13px 20px;
  white-space: nowrap;
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #f9fbff;
}
.projectname {
  display: flex;
  align-items: center;
  gap: 13px;
}
.projecticon {
  background: #f0f4f9;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #526f94;
  display: grid;
  place-items: center;
  width: 39px;
  height: 43px;
  flex-shrink: 0;
}
.projectname strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.projectname small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint);
  color: var(--brand);
  font-size: 12px;
  border-radius: 5px;
  padding: 4px 8px;
  white-space: nowrap;
}
.tag.green {
  background: #eaf6f1;
  color: var(--green);
}
.tag.amber {
  background: #fcf3e5;
  color: var(--amber);
}
.tag.red {
  background: #fceeee;
  color: var(--red);
}
.tag.gray {
  color: var(--muted);
  background: #f0f3f6;
}
.dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
}
.empty {
  min-height: 290px;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--muted);
  text-align: center;
}
.empty > .icon {
  height: 40px;
  width: 40px;
  stroke-width: 1.2;
  color: #8ca2ba;
}
.empty h3 {
  color: var(--ink);
  font-weight: 500;
}
.panelbottom {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs button {
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--muted);
  padding: 12px 2px;
  white-space: nowrap;
}
.tabs .active {
  color: var(--brand);
  box-shadow: inset 0 -2px var(--brand);
}
.detailhead {
  display: flex;
  align-items: center;
  gap: 15px;
}
.detailhead h1 {
  font-size: 22px;
}
.split {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(400px, 1.35fr);
  gap: 22px;
}
.finding {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  cursor: pointer;
}
.finding.selected {
  background: var(--tint);
}
.findingtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.finding p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.evidencepane {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 18px;
}
.evidencecard {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.evidencehead {
  padding: 12px 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.evidencetext {
  padding: 20px;
  line-height: 1.9;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 480px;
  overflow: auto;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.gridcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}
.projectcard {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 18px;
  cursor: pointer;
}
.projectcard:hover {
  border-color: #98afe2;
}
.projectcard .cardtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.projectcard p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.cardmeta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 12px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  width: min(600px, 94vw);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 90px #102a4333;
}
dialog::backdrop {
  background: #0c203b66;
  backdrop-filter: blur(3px);
}
.dialoghead {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form {
  padding: 25px;
  display: grid;
  gap: 18px;
}
.form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.formcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.dialogfoot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}
.filedrop {
  border: 1px dashed #9db3d4;
  border-radius: 10px;
  text-align: center;
  padding: 38px;
  display: grid;
  place-items: center;
  gap: 13px;
  background: #f8faff;
}
.filedrop .icon {
  height: 35px;
  width: 35px;
  color: var(--brand);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9px;
  background: #18354e;
  color: white;
  padding: 12px 20px;
  box-shadow: 0 8px 30px #102a4320;
  display: none;
  z-index: 99;
  font-size: 14px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.loginhero {
  background: var(--nav);
  padding: 60px;
  display: flex;
  flex-direction: column;
  color: white;
  position: relative;
  overflow: hidden;
}
.loginhero .brand {
  padding: 0;
}
.loginhero h1 {
  font-size: 44px;
  line-height: 1.5;
  letter-spacing: 2px;
  margin: auto 0 15px;
  font-weight: 500;
  max-width: 650px;
}
.loginhero p {
  color: #adbed0;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: auto;
}
.loginhero footer {
  font-size: 11px;
  color: #8ca4bc;
  letter-spacing: 3px;
}
.loginbox {
  display: grid;
  place-items: center;
  padding: 30px;
}
.loginbox .form {
  width: min(380px, 100%);
  padding: 0;
  gap: 24px;
}
.loginbox h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 5px;
}
.loginbox .primary {
  height: 46px;
}
.modelcard {
  display: grid;
  gap: 22px;
  padding: 26px;
}
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  font-size: 14px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.report {
  padding: 32px;
  line-height: 1.9;
  max-width: 920px;
}
.report h3 {
  margin: 24px 0 12px;
}
.report p {
  white-space: pre-wrap;
}
.report .finding {
  cursor: default;
}
.inlineerror {
  color: var(--red);
  font-size: 13px;
}
.fileprogress {
  display: grid;
  gap: 10px;
  font-size: 13px;
  max-height: 220px;
  overflow: auto;
}
.progress {
  background: var(--line);
  height: 4px;
  border-radius: 3px;
  overflow: hidden;
}
.progress span {
  display: block;
  background: var(--brand);
  height: 100%;
}
.warm {
  --nav: #283a3b;
  --brand: #326c61;
  --bg: #f5f5f0;
  --tint: #ebf3ee;
  --ink: #263c37;
  --line: #e1e7e0;
}
.warm .primary:hover {
  background: #27564e;
}
.warm th {
  background: #f8f9f5;
}
@media (min-width: 1600px) {
  .content {
    padding: 38px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
  .stats {
    gap: 24px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .content {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .gridcards {
    grid-template-columns: repeat(2, 1fr);
  }
  .date {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 7px;
    gap: 22px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .sidebar .brandtext,
  .sidebar .navlabel,
  .sidebar .navitem span,
  .sidebar .sidefoot,
  .sidebar .sidebottom small {
    display: none;
  }
  .sidebar .navitem {
    padding: 10px;
    justify-content: center;
  }
  .sidebar .navitem .icon {
    margin: 0;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 22px;
  }
  .panelhead {
    flex-wrap: wrap;
  }
  .search input {
    width: 150px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .statbadge {
    display: none;
  }
  .content {
    padding: 20px 15px;
  }
  .topbar {
    height: 60px;
    padding: 0 15px;
  }
  .gridcards {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .loginhero {
    display: none;
  }
  .formcols {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 20px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .heading,
  .tabs,
  .actions {
    display: none;
  }
  .layout {
    display: block;
  }
  .content {
    padding: 0;
  }
  .panel {
    border: 0;
  }
  .report {
    padding: 0;
  }
  body {
    background: white;
  }
}

.crumb {
  min-width: 0;
}
.crumb strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toolbar .search {
  min-width: 0;
}
.toolbar .search input {
  min-width: 0;
}
@media (max-width: 760px) {
  .crumbroot {
    display: none;
  }
  .crumb {
    gap: 6px;
    font-size: 12px;
  }
  .toolbar {
    width: 100%;
  }
  .toolbar .search {
    flex: 1;
  }
  .toolbar .search input {
    width: 100%;
  }
  .seg {
    flex-shrink: 0;
  }
}

/* Fiscal workflow surfaces share the workspace tokens and existing controls. */
.wf-tabs {
  gap: 24px;
}
.wf-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf-code {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
  white-space: nowrap;
}
.wf-reason {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.wf-amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wf-statusbar {
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px 23px;
  border-bottom: 1px solid var(--line);
}
.wf-statusbar > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf-statusbar strong {
  font-size: 14px;
  font-weight: 550;
}
.wf-icon-link {
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  border-radius: 7px;
}
.wf-icon-link:hover {
  background: var(--tint);
}
.wf-checkbox {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  min-height: 35px;
  color: var(--ink) !important;
}
.wf-checkbox input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
}
.wf-document-picker {
  max-height: 300px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wf-document-picker .wf-checkbox {
  align-items: flex-start;
  padding: 7px;
  line-height: 1.7;
}
.wf-document-picker .wf-checkbox input {
  margin-top: 5px;
}
.wf-form-context {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-wrap;
}
.wf-history {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  font-size: 13px;
  line-height: 1.8;
}
.wf-history p {
  white-space: pre-wrap;
}
.wf-evidence-actions {
  margin-top: -12px;
  display: flex;
  justify-content: flex-end;
}
.wf-finding-rule {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.wf-report-dialog {
  width: min(1040px, 94vw);
}
.wf-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}
.wf-export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.3px;
}
.wf-export-link:hover {
  background: var(--tint);
}
.wf-report-blockers {
  padding: 15px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--amber);
  font-size: 13px;
  line-height: 1.8;
}
.wf-report-blockers summary {
  cursor: pointer;
}
.wf-report-blockers ul {
  margin: 10px 0 0;
}
.wf-report-body {
  padding: 35px 48px;
  font-size: 14px;
  line-height: 1.9;
}
.wf-report-body h1 {
  font-size: 24px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.wf-report-body h2 {
  font-size: 18px;
  margin: 26px 0 15px;
}
.wf-report-body h3 {
  font-size: 15px;
  margin: 20px 0 12px;
}
.wf-report-body p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wf-report-hash {
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.wf-report-editor {
  min-height: min(60vh, 650px);
  font-size: 14px;
  line-height: 1.8;
}
.wf-change-list {
  margin: 0;
  display: grid;
  gap: 16px;
}
.wf-change-list > div {
  display: grid;
  gap: 6px;
}
.wf-change-list dt {
  color: var(--muted);
  font-size: 12px;
}
.wf-change-list dd {
  margin: 0;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wf-chat-launch {
  position: fixed;
  right: 30px;
  bottom: 26px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border: 0;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  box-shadow: 0 7px 30px #19375d2b;
}
.wf-chat-launch:hover {
  color: var(--brand);
}
.wf-chat-launch .icon {
  height: 24px;
  width: 24px;
}
.wf-chat {
  position: fixed;
  right: 24px;
  top: 96px;
  bottom: 24px;
  width: min(470px, calc(100vw - 40px));
  z-index: 30;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 14px 65px #17345225;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wf-chat-header {
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.wf-chat-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.wf-chat-identity .brandmark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.wf-chat-identity h2 {
  font-size: 15px;
}
.wf-chat-identity p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-chat-header .actions {
  gap: 3px;
  flex-wrap: nowrap;
}
.wf-chat-header .ib {
  border: 0;
  width: 32px;
  min-height: 32px;
}
.wf-chat-history {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
}
.wf-chat-history select {
  border: 0;
  font-size: 12px;
  padding: 4px 0;
  width: 100%;
  color: var(--muted);
}
.wf-chat-history .icon {
  width: 15px;
  height: 15px;
}
.wf-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-behavior: smooth;
}
.wf-message {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.wf-message-role {
  color: var(--muted);
  font-size: 11px;
}
.wf-message-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  font-size: 14px;
}
.wf-message-user {
  margin-left: 42px;
}
.wf-message-user .wf-message-role {
  text-align: right;
}
.wf-message-user .wf-message-content {
  padding: 12px 15px;
  background: var(--tint);
  border-radius: 10px 2px 10px 10px;
}
.wf-chat-citations {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.wf-chat-citations button {
  min-height: 29px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--brand);
  border-color: transparent;
  background: var(--tint);
}
.wf-chat-citations .icon {
  width: 13px;
  height: 13px;
}
.wf-chat-action {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 11px;
}
.wf-chat-action p {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.wf-chat-action button {
  justify-self: end;
  font-size: 12px;
  min-height: 31px;
  padding: 5px 10px;
}
.wf-chat-action .tag {
  justify-self: end;
}
.wf-chat-action .tag .icon {
  width: 13px;
  height: 13px;
}
.wf-chat-empty {
  margin: auto 0;
  display: grid;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
  text-align: center;
}
.wf-chat-empty > .icon {
  width: 35px;
  height: 35px;
  stroke-width: 1.2;
  color: #839bb5;
}
.wf-chat-empty h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.wf-chat-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}
.wf-chat-prompts button {
  font-size: 12px;
  min-height: 34px;
}
.wf-chat-prompts .icon {
  width: 15px;
  height: 15px;
}
.wf-chat-composer {
  flex-shrink: 0;
  padding: 15px 17px 13px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.wf-chat-composer textarea {
  width: 100%;
  min-height: 66px;
  max-height: 150px;
  border: 0;
  padding: 3px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
}
.wf-chat-composer textarea:focus {
  outline: none;
}
.wf-chat-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}
.wf-chat-compose-foot .muted {
  font-size: 11px;
}
.wf-chat-compose-foot .ib {
  min-height: 34px;
  width: 34px;
}
.wf-chat-pending {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 0;
}
.wf-chat-pending i {
  width: 4px;
  height: 4px;
  background: #9caec0;
  border-radius: 50%;
  animation: wf-pulse 1.2s infinite;
}
.wf-chat-pending i:nth-child(2) {
  animation-delay: 0.15s;
}
.wf-chat-pending i:nth-child(3) {
  animation-delay: 0.3s;
}
.wf-chat-pending span {
  margin-left: 7px;
}
.wf-chat-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.7;
  padding: 12px 14px;
  border: 1px solid #eec5c5;
  border-radius: 8px;
}
@keyframes wf-pulse {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wf-chat-pending i {
    animation: none;
  }
  .wf-chat-messages {
    scroll-behavior: auto;
  }
}
@media (max-width: 1000px) {
  .wf-tabs {
    gap: 20px;
  }
  .wf-reason {
    max-width: 280px;
  }
}
@media (max-width: 760px) {
  .wf-tabs {
    gap: 21px;
  }
  .wf-chat {
    right: 8px;
    left: 8px;
    top: 68px;
    bottom: 8px;
    width: auto;
    border-radius: 12px;
  }
  .wf-chat-launch {
    right: 18px;
    bottom: 18px;
    width: 49px;
    height: 49px;
  }
  .wf-chat-identity p {
    max-width: calc(100vw - 180px);
  }
  .wf-chat-messages {
    padding: 19px 16px;
  }
  .wf-report-toolbar {
    flex-wrap: wrap;
    padding: 15px 20px;
  }
  .wf-report-body {
    padding: 24px;
  }
  .wf-report-body h1 {
    font-size: 21px;
  }
  .wf-report-blockers {
    padding: 13px 23px;
  }
  .wf-statusbar {
    padding: 15px;
    gap: 10px 15px;
  }
  .wf-statusbar .tag {
    font-size: 11px;
  }
  .panelhead > .actions {
    flex-wrap: wrap;
  }
  .panelhead > .actions .search {
    flex-basis: 100%;
  }
}
@media print {
  #wf-chat-root,
  .wf-report-toolbar {
    display: none;
  }
  .wf-report-body {
    padding: 0;
  }
}
.tag.wf-status-pass,
.tag.wf-status-issued,
.tag.wf-status-closed {
  background: #eaf6f1;
  color: var(--green);
}
.tag.wf-status-suspected,
.tag.wf-status-needs_evidence,
.tag.wf-status-incomplete,
.tag.wf-status-submitted,
.tag.wf-status-rechecking,
.tag.wf-status-reviewed {
  background: #fcf3e5;
  color: var(--amber);
}
.tablewrap table {
  min-width: 700px;
}
.tablewrap .projectname {
  min-width: 230px;
}

/* Long original paths remain in the DOM and native title without expanding rows. */
.wf-document-table .projectname > div {
  min-width: 0;
  max-width: 360px;
}
.wf-document-table .projectname strong,
.wf-document-table .projectname small {
  display: block;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  .wf-document-table .projectname > div,
  .wf-document-table .projectname strong,
  .wf-document-table .projectname small {
    max-width: 220px;
  }
}

.projectname a,
.projectcard h3 {
  color: #1f2329;
}

.wf-rule-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.wf-rule-categories {
  padding: 12px;
}
.wf-rule-groups {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.wf-rule-group {
  border: 0;
  width: 100%;
  justify-content: space-between;
  padding: 11px 12px;
  background: transparent;
  font-size: 14px;
}
.wf-rule-group.active {
  background: var(--tint);
  color: var(--brand);
  font-weight: 550;
}
.wf-rule-category-count {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.wf-rule-stages {
  display: grid;
  gap: 3px;
  padding-top: 11px;
}
.wf-rule-stage {
  border: 0;
  background: transparent;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.wf-rule-stage.active {
  color: var(--brand);
  background: var(--tint);
}
.wf-rule-stage small {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.wf-rule-table {
  min-width: 0;
}
.wf-rule-table-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wf-rule-table .search input {
  width: 180px;
}
.wf-rule-table .tablewrap table {
  min-width: 650px;
}
@media (max-width: 1100px) {
  .wf-rule-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wf-rule-categories {
    padding: 10px 12px;
  }
  .wf-rule-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 9px;
    gap: 9px;
  }
  .wf-rule-stages {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 9px;
  }
  .wf-rule-stage {
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 10px;
    min-height: 36px;
    padding: 8px 11px;
  }
}
@media (max-width: 760px) {
  .wf-rule-group {
    padding: 10px;
    font-size: 13px;
  }
  .wf-rule-table .panelhead {
    padding: 17px;
  }
  .wf-rule-table .search {
    width: 100%;
  }
  .wf-rule-table .search input {
    width: 100%;
  }
}
