:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #23353d;
  background: #f5f7f8;
  font-synthesis: none;
  font-size: 14px;
  --ink: #172e38;
  --muted: #697b84;
  --line: #e3e9eb;
  --accent: #147d68;
  --nav: #142d37;
  --soft: #eef7f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #72c7b1;
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid #cdd8dd;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #a4d8cc;
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  line-height: 1.6;
  width: 100%;
  min-height: 70px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 20px;
}
label input:not([type='checkbox']):not([type='radio']),
label select {
  display: block;
  width: 100%;
  margin-top: 8px;
}
label textarea {
  display: block;
  margin-top: 8px;
  font-weight: 400;
}
label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 12px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  color: var(--ink);
}
h3 {
  font-size: 15px;
  margin: 24px 0 12px;
}
h4 {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 5px;
}
p {
  line-height: 1.65;
}
a {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 14px;
}
.primary,
.secondary {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 41px;
  padding: 10px 16px;
  font-weight: 600;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
}
.primary {
  background: var(--accent);
  color: white;
}
.primary:hover {
  background: #0d6958;
}
.secondary {
  background: white;
  border-color: #cdd8dd;
  color: #344b56;
}
.secondary:hover {
  background: #f0f5f5;
}
.text-button,
.icon-button,
.back-link {
  border: 0;
  background: none;
  color: #4a6570;
  padding: 8px;
  font-weight: 600;
}
.text-button:hover,
.back-link:hover {
  color: var(--accent);
}
.icon-button {
  font-size: 21px;
  line-height: 1;
}
.danger {
  color: #b64b4b;
}
.wide {
  width: 100%;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brand small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #9cbbc7;
  margin-top: 7px;
}
.brand-mark {
  background: #84ddbf;
  color: #153b38;
  width: 38px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 27px;
}
.sidebar {
  width: 266px;
  background: var(--nav);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 18px 24px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  margin: 0 14px 46px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: #829eaa;
  margin: 19px 14px 11px;
  font-weight: 700;
}
.nav-item {
  width: 100%;
  border: 0;
  background: none;
  color: #b8cbd3;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  padding: 13px 12px;
  border-radius: 7px;
  margin-bottom: 4px;
  line-height: 1.5;
  font-size: 12px;
  min-height: 46px;
}
.nav-item > span:nth-child(2) {
  flex: 1;
}
.nav-item:hover {
  background: #203e49;
  color: #fff;
}
.nav-item.active {
  background: #254953;
  color: #fff;
}
.nav-item .count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  padding: 2px 6px;
  background: #ffffff0a;
  border-radius: 4px;
  color: #9fbdc5;
}
.nav-item.active .count {
  color: #a4e6cf;
  background: #ffffff12;
}
.nav-icon {
  font-size: 21px;
  width: 17px;
}
.dept-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #86cfb5;
}
.dot-1 {
  background: #9eace4;
}
.dot-2 {
  background: #dbbc85;
}
.dot-3 {
  background: #79bad8;
}
.dot-4 {
  background: #bd9bd4;
}
.dot-5 {
  background: #db9e98;
}
.dot-6 {
  background: #adb9c1;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff16;
  padding: 24px 12px 0;
}
.access-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #98b9c5;
  font-weight: 700;
}
.sidebar-bottom p {
  color: #87a4b0;
  font-size: 11px;
  line-height: 1.7;
  margin: 10px 0 0;
}
.main-wrap {
  margin-left: 266px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 78px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: #617a86;
}
.breadcrumb > span {
  margin: 0 12px;
  color: #acb9bf;
}
.account-nav {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 12px;
}
.user-button {
  background: none;
  border: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: #344b56;
}
.avatar {
  width: 32px;
  height: 32px;
  background: #e9f1ef;
  color: #417065;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
  flex: none;
}
.main-content {
  padding: 36px 38px 60px;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-heading p {
  margin-bottom: 0;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-heading h1 {
  margin-bottom: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 21px;
}
.stats span {
  display: block;
  font-size: 12px;
  color: #596e78;
}
.stats strong {
  display: block;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 14px 0 9px;
  color: var(--ink);
}
.stats small {
  font-size: 10px;
  color: #8a9aa2;
}
.list-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.list-toolbar {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.list-toolbar h2 {
  margin-bottom: 6px;
  font-size: 16px;
}
.list-toolbar p {
  font-size: 11px;
  margin: 0;
}
.small-count {
  background: #f0f3f5;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 4px;
  color: #72848d;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
}
.filters select {
  font-size: 11px;
  width: 160px;
  min-height: 39px;
}
.search-field {
  position: relative;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}
.search-field input {
  width: 240px !important;
  margin: 0 !important;
  padding-left: 33px;
}
.search-field > span {
  position: absolute;
  top: 8px;
  left: 11px;
  font-size: 20px;
  color: #92a1a8;
}
.table-scroll {
  overflow: auto;
}
.items-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.items-table th {
  font-size: 10px;
  color: #83939b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
  background: #fafbfc;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.items-table td {
  padding: 20px;
  border-bottom: 1px solid #eef1f2;
  font-size: 12px;
}
.items-table tr:last-child td {
  border: 0;
}
.items-table tbody tr:hover {
  background: #fafcfb;
}
.items-table th:first-child,
.items-table td:first-child {
  width: 65px;
  padding-left: 24px;
}
.items-table th:last-child,
.items-table td:last-child {
  width: 40px;
  padding-left: 0;
}
.item-number {
  color: #93a4ad;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.item-link {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: #25414c;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  max-width: 480px;
}
.item-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.department-text {
  font-size: 11px;
  color: #788d97;
  display: inline-block;
  max-width: 180px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  padding: 5px 8px;
  white-space: nowrap;
  background: #f0f3f5;
  color: #76858e;
}
.badge:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}
.badge.proceed {
  background: #f0e9ff;
  color: #5b1fe8;
}
.badge.awaiting,
.badge.responding {
  background: #e9f2fb;
  color: #4d79a2;
}
.badge.reopened,
.badge.clarify {
  background: #fff3db;
  color: #9f752a;
}
.badge.defer {
  background: #f1ecf8;
  color: #8771a5;
}
.badge.decline {
  background: #f9ecec;
  color: #aa6060;
}
.row-arrow {
  border: 0;
  background: none;
  font-size: 19px;
  color: #97a9b1;
  padding: 4px;
}
.change-note {
  display: block;
  color: #b58236;
  font-size: 10px;
  margin-top: 4px;
}
.app-footer {
  padding: 18px 38px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #96a5ad;
  font-size: 10px;
}
.back-link {
  font-size: 11px;
  padding: 0;
  margin-bottom: 23px;
  font-weight: 500;
}
.item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.item-heading h1 {
  font-size: 27px;
  max-width: 800px;
  margin: 10px 0 0;
}
.item-kicker {
  font-size: 10px;
  letter-spacing: 0.7px;
  color: #728994;
  font-weight: 650;
}
.item-kicker span {
  margin: 0 9px;
  color: #b1bfc6;
}
.item-heading > .badge {
  margin-top: 24px;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #dce4e8;
  margin-bottom: 26px;
}
.tabs button {
  background: none;
  border: 0;
  color: #7c8f99;
  padding: 13px 0;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.selected {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 27px;
  margin-bottom: 23px;
}
.panel-caption {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #7c929e;
  font-weight: 700;
  margin-bottom: 20px;
  gap: 10px;
}
.panel-caption span {
  font-weight: 400;
  letter-spacing: 0;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.prose {
  font-size: 13px;
  color: #49616d;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.prose p {
  margin-bottom: 16px;
}
.prose ul {
  padding-left: 19px;
  margin: 0 0 20px;
}
.prose li {
  padding-left: 4px;
  margin-bottom: 12px;
}
.questions-preview {
  padding-left: 19px;
  color: #49616d;
  font-size: 13px;
  line-height: 1.75;
}
.questions-preview li {
  padding: 0 0 13px 4px;
}
.response-foot {
  font-size: 11px;
  color: #83949d;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 24px 0 0;
}
.question-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 25px;
}
.question-label b {
  color: var(--accent);
  margin-right: 3px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 25px 0;
}
legend {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 14px;
}
.decision-choice {
  display: flex;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 400;
}
.decision-choice:has(input:checked) {
  border-color: #a886ea;
  background: #f5f1fc;
}
.decision-choice input {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  accent-color: var(--accent);
}
.decision-choice strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.decision-choice small {
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.5;
}
.form-actions {
  display: flex;
  gap: 9px;
  margin: 22px 0 14px;
}
.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
}
.section-heading p {
  margin: 8px 0 0;
  font-size: 12px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}
.editor-grid label {
  margin-bottom: 25px;
}
.editor-grid textarea {
  font-size: 13px;
}
.optional {
  font-size: 10px;
  color: #a1afb6;
  margin-left: 5px;
  font-weight: 400;
}
.question-edit {
  display: flex;
  align-items: start;
  gap: 8px;
  margin: 10px 0 15px;
}
.question-edit .icon-button {
  color: #a0afb7;
  padding: 6px;
}
.publishing p {
  font-size: 12px;
  color: #71858f;
}
.checkbox {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.checkbox input {
  margin-top: 3px;
  accent-color: var(--accent);
}
.publishing .text-button {
  margin: 14px 0 8px;
  font-size: 11px;
}
.publishing .small {
  margin: 18px 0 0;
  font-size: 11px;
}
.editor-note {
  padding: 0 10px;
  color: #7c8f99;
  font-size: 12px;
}
.editor-note h3 {
  color: #596f7a;
  margin-top: 0;
}
.discussion h2 {
  font-size: 16px;
}
.comment {
  display: flex;
  gap: 13px;
  border-bottom: 1px solid #eff2f3;
  padding: 16px 0;
}
.comment > div {
  min-width: 0;
}
.comment strong {
  font-size: 12px;
}
.comment small {
  font-size: 10px;
  color: #92a2ab;
  margin-left: 11px;
}
.comment p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 9px 0 0;
  color: #506874;
}
.comment-form {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.comment-form button {
  flex: none;
  font-size: 12px;
}
.comment-form textarea {
  font-size: 12px;
}
.internal-panel {
  border-left: 3px solid #9babc3;
}
.answer {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.answer h4 {
  font-weight: 600;
}
.answer p {
  font-size: 13px;
  color: #58707b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
.multiline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.research-panel .section-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.research {
  font-size: 12px;
  color: #516672;
  overflow-wrap: anywhere;
  line-height: 1.8;
  max-width: 100%;
}
.research h2 {
  margin-top: 30px;
  font-size: 21px;
}
.research h3 {
  margin-top: 26px;
}
.research-line {
  white-space: pre-wrap;
}
.research code {
  background: #eff3f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
}
.history-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.history-entry summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  align-items: center;
  font-size: 12px;
  line-height: 1.8;
}
.history-entry summary .badge {
  margin-right: 10px;
}
.historical-wording {
  background: #f7f9fa;
  padding: 16px;
  margin-top: 18px;
  font-size: 12px;
}
.historical-wording summary {
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 600;
}
.activity > div {
  display: flex;
  gap: 16px;
  align-items: start;
  margin-bottom: 17px;
}
.activity-dot {
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a88bd0;
  flex: none;
}
.activity p {
  margin: 0;
  font-size: 12px;
}
.activity small {
  display: block;
  color: #8798a2;
  font-size: 10px;
  margin-top: 3px;
}
.people-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.person-row > div {
  flex: 1;
  overflow-wrap: anywhere;
}
.person-row small {
  display: block;
  color: #8d9ca5;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 5px;
}
.person-row button {
  font-size: 11px;
}
.invite-link {
  margin-top: 24px;
}
.invite-link input {
  font-size: 11px;
}
.account-panel {
  max-width: 560px;
}
.empty {
  text-align: center;
  padding: 60px 30px;
}
.empty p {
  color: #7c919d;
  font-size: 13px;
  max-width: 490px;
  margin: 12px auto 24px;
}
.empty-symbol {
  display: block;
  font-size: 38px;
  color: #b19bcf;
  margin-bottom: 18px;
}
.empty-copy {
  padding: 20px 0;
  color: #80949e;
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.mobile-menu {
  display: none;
}
.boot {
  padding: 14vh 30px;
  text-align: center;
  color: #5d7681;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-story {
  background: #142f39;
  padding: 54px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: '';
  position: absolute;
  right: -180px;
  bottom: 140px;
  width: 480px;
  height: 480px;
  border: 1px solid #ffffff08;
  border-radius: 50%;
  pointer-events: none;
}
.auth-story .brand {
  margin: 0;
  align-items: center;
  gap: 20px;
}
.auth-product {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  color: #ded0f1;
}
.auth-main {
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 40px;
}
.auth-card {
  width: 100%;
  max-width: 370px;
}
.auth-card h2 {
  font-size: 30px;
  letter-spacing: -0.7px;
  margin-bottom: 28px;
}
.auth-card label {
  font-size: 12px;
}
.auth-card input {
  min-height: 46px;
}
.auth-card .primary {
  min-height: 47px;
  justify-content: center;
  margin-top: 4px;
}
.inline-error {
  font-size: 12px;
  color: #b54747;
  line-height: 1.7;
}
.inline-error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: #351575;
  color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 28px #21133530;
  font-size: 12px;
  max-width: calc(100vw - 30px);
  z-index: 100;
  transition:
    opacity 0.15s,
    transform 0.15s;
  line-height: 1.6;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #8d3535;
}
@media (min-width: 1700px) {
  .main-content {
    padding-top: 46px;
  }
  .items-table td {
    padding-top: 23px;
    padding-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 230px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar .brand {
    margin-left: 12px;
  }
  .main-wrap {
    margin-left: 230px;
  }
  .main-content {
    padding: 28px 25px 40px;
  }
  .topbar {
    padding: 0 25px;
  }
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .filters {
    width: 100%;
  }
  .search-field {
    flex: 1;
  }
  .search-field input {
    width: 100% !important;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .review-layout {
    gap: 18px;
  }
  .panel {
    padding: 23px;
  }
  .stats {
    gap: 12px;
  }
  .stats > div {
    padding: 19px 16px;
  }
  .stats small {
    line-height: 1.5;
    display: block;
  }
  .breadcrumb {
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .nav-open .sidebar {
    transform: none;
    box-shadow: 10px 0 50px #11253038;
  }
  .main-wrap {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
  }
  .breadcrumb {
    margin-right: auto;
    max-width: 35%;
  }
  .account-nav {
    gap: 7px;
  }
  .user-button > span:last-child {
    display: none;
  }
  .main-content {
    padding: 28px 23px;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .editor-note {
    padding: 20px 0;
  }
  .auth-story {
    padding: 45px 10%;
  }
  .auth-main {
    padding: 40px 30px;
  }
  .auth-layout {
    grid-template-columns: 0.9fr 1fr;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .department-text {
    font-size: 10px;
  }
  .items-table td {
    padding: 18px 14px;
  }
  .items-table th {
    padding: 13px 14px;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .auth-layout {
    display: flex;
    flex-direction: column;
  }
  .auth-story {
    min-height: 0;
    padding: 28px 25px;
  }
  .auth-story .brand {
    margin: 0;
  }
  .auth-main {
    padding: 45px 25px;
    min-height: 0;
    flex: 1;
    align-items: flex-start;
  }
  .auth-card {
    max-width: 440px;
  }
  .topbar {
    padding: 0 14px;
  }
  .breadcrumb {
    display: none;
  }
  .account-nav {
    margin-left: auto;
  }
  .main-content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .secondary {
    font-size: 0;
    min-width: 42px;
    padding: 9px;
  }
  .page-heading .secondary:before {
    content: '↓';
    font-size: 20px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stats > div {
    padding: 16px;
  }
  .stats strong {
    font-size: 29px;
  }
  .stats span {
    font-size: 11px;
  }
  .list-toolbar {
    padding: 20px 16px;
  }
  .filters {
    flex-wrap: wrap;
    gap: 9px;
  }
  .search-field {
    min-width: 100%;
  }
  .filters select {
    width: 100%;
  }
  .items-table th:nth-child(3),
  .items-table td:nth-child(3) {
    display: none;
  }
  .items-table td {
    padding: 17px 11px;
  }
  .items-table th:first-child,
  .items-table td:first-child {
    padding-left: 16px;
    width: 40px;
  }
  .items-table th:last-child,
  .items-table td:last-child {
    display: none;
  }
  .item-link {
    font-size: 11px;
  }
  .badge {
    font-size: 9px;
    padding: 5px 6px;
    white-space: normal;
  }
  .items-table td:nth-child(4) {
    min-width: 90px;
    width: 90px;
  }
  .items-table th:nth-child(4) {
    font-size: 9px;
  }
  .item-heading {
    display: block;
  }
  .item-heading h1 {
    font-size: 25px;
  }
  .item-heading > .badge {
    margin-top: 15px;
  }
  .tabs {
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .tabs button {
    font-size: 11px;
  }
  .review-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel {
    padding: 21px 18px;
  }
  .editor-grid > aside {
    display: block;
  }
  .comment-form {
    display: block;
  }
  .comment-form button {
    margin-top: 10px;
  }
  .comment small {
    display: block;
    margin: 3px 0;
  }
  .section-heading {
    gap: 9px;
  }
  .section-heading .secondary {
    font-size: 10px;
    padding: 8px;
    min-height: 36px;
  }
  .history-entry summary {
    display: block;
  }
  .history-entry summary > span {
    display: block;
  }
  .app-footer {
    padding: 20px;
    font-size: 9px;
  }
  .app-footer > span {
    display: none;
  }
  .person-row {
    gap: 9px;
  }
  .person-row .text-button {
    font-size: 10px;
    padding: 3px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .empty {
    padding: 40px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.nav-item > span.count {
  flex: 0 0 auto;
}
.sidebar-close {
  position: absolute;
  right: 12px;
  top: 10px;
  color: #a9c5d0;
}
@media (max-width: 900px) {
  .sidebar {
    visibility: hidden;
  }
  .nav-open .sidebar {
    visibility: visible;
  }
}

/* Multi-client workspace and collaborative item workflow. */
[hidden] { display: none !important; }
.workspace-picker { color: #9cbbc7; font-size: 9px; letter-spacing: 1.4px; margin: 22px 12px 10px; }
.workspace-picker select { background: #254953; color: white; border-color: #3b5963; font-size: 13px; letter-spacing: 0; }
.sidebar .brand { margin-bottom: 25px; }
.sidebar nav { overflow-y: auto; min-height: 0; }
.workspace-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 22px; }
.workspace-card { display: flex; align-items: flex-start; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: white; color: var(--ink); min-height: 200px; transition: border-color .15s, box-shadow .15s; }
.workspace-card:hover { border-color: #70b6a5; box-shadow: 0 6px 24px #163c3510; }
.workspace-card-copy { flex: 1; min-width: 0; }
.workspace-card-copy small { color: var(--muted); display: block; margin-bottom: 8px; }
.workspace-card-copy h2 { font-size: 22px; margin-bottom: 10px; }
.workspace-card-copy p { color: var(--muted); font-size: 13px; }
.workspace-initial { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #e5f3ee; color: #177862; font-size: 22px; font-weight: 700; flex: none; }
.workspace-totals { font-size: 12px; color: #57716c; line-height: 1.8; }
.workspace-totals span { padding: 0 5px; color: #b6c8c3; }
.workspace-arrow { font-size: 22px; color: #4b786b; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.workspace-choices { margin: 22px 0; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.workspace-choices .checkbox:last-child { margin-bottom: 0; }
.work-meta { display: block; font-size: 11px; color: var(--muted); margin: 7px 0 0; }
.work-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 24px; align-items: start; }
.work-layout .panel { margin-bottom: 22px; }
.work-aside { position: sticky; top: 20px; }
.work-aside .panel { padding: 24px; }
.work-aside .checkbox { font-size: 12px; line-height: 1.5; }
.work-aside #save-indicator { display: block; min-height: 20px; margin-bottom: 8px; }
.point { padding: 20px 0; border-bottom: 1px solid var(--line); }
.point:first-of-type { padding-top: 0; }
.point strong { display: block; line-height: 1.6; }
.point small { display: block; color: var(--muted); margin: 5px 0 14px; }
.point.resolved { background: #f4f9f6; padding: 16px; border-radius: 6px; margin: 10px 0; }
.point p { white-space: pre-wrap; }
.point-form label { margin-bottom: 5px; margin-top: 12px; }
#point-form { margin-top: 20px; }
#point-form button { margin-top: 10px; }
.description-panel summary { cursor: pointer; font-weight: 650; }
.description-panel article { margin-top: 22px; }
.description-panel li { line-height: 1.7; margin-bottom: 10px; }
.new-item-panel { max-width: 820px; }
.badge.backlog { background: #edf0f4; color: #566a7c; }
.badge.discussing { background: #e6f0fe; color: #3566a4; }
.badge.waiting_team, .badge.waiting_client { background: #fcf2de; color: #997524; }
.badge.finalized { background: #f0e9ff; color: #5b1fe8; }
.badge.on_hold { background: #f0eafa; color: #78599b; }
.comment-list { max-height: 560px; overflow-y: auto; padding-right: 6px; }
.comment p, .multiline, .point, .workspace-card-copy { overflow-wrap: anywhere; }
@media (max-width: 1250px) { .work-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 16px; } .work-aside .panel { padding: 18px; } }
@media (max-width: 1000px) { .work-layout { grid-template-columns: 1fr; } .work-aside { position: static; } }
@media (max-width: 600px) {
 .workspace-cards, .form-grid { grid-template-columns: 1fr; }
 .workspace-card { padding: 20px; gap: 12px; min-height: 170px; }
 .workspace-arrow { display: none; }
 .page-heading .form-actions { flex-wrap: wrap; }
 .topbar { gap: 5px; }
 .breadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .account-nav { gap: 4px; }
 .person-row { flex-wrap: wrap; }
 .person-row > div { overflow-wrap: anywhere; min-width: 0; }
}

/* Milltech identity, matching the existing proposal brand palette. */
:root { --ink:#171322; --muted:#706a7e; --line:#e7e3ee; --accent:#5B1FE8; --nav:#211335; --soft:#f1ebff; color:#312b3c; background:#f7f6fa; font-size:15px; }
.sidebar { background:#211335; }
.brand { display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.milltech-logo { display:block; width:132px; height:75px; overflow:hidden; }
.brand-subtitle { font-size:9px; font-weight:650; letter-spacing:2.8px; color:#bba6e8; margin-left:4px; }
.sidebar .brand { margin:0 14px 30px; }
.nav-item { color:#d0c5e1; font-size:13px; }
.nav-item:hover { background:#302047; color:white; }
.nav-item.active { background:#432572; color:white; }
.nav-item.active .count { background:#62428e; color:#f0e5ff; }
.nav-item .count { color:#c9b8e2; }
.workspace-label,.workspace-picker,.access-label { color:#b5a0cd; }
.workspace-picker select { background:#332147; border-color:#51356e; }
.sidebar-bottom { border-color:#ffffff1a; }
.sidebar-bottom p { color:#b5a0cd; }
.primary { background:#5B1FE8; }
.primary:hover { background:#4A14CC; }
.secondary:hover { background:#f2edfb; }
input:focus,textarea:focus,select:focus { border-color:#7144d6; outline-color:#d6c4fc; }
button:focus-visible,a:focus-visible { outline-color:#b397ee; }
.text-button,.back-link { color:#645575; }
.tabs button.selected { color:#5B1FE8; border-bottom-color:#5B1FE8; }
.avatar { color:#5a387f; background:#f0eaf8; }
.workspace-initial { color:#5B1FE8; background:#f0e9ff; }
.workspace-card:hover { border-color:#bba0ee; box-shadow:0 6px 24px #2c165110; }
.workspace-totals,.workspace-arrow { color:#6c5584; }
.dept-dot { background:#bda2f2; }
.dot-1 { background:#9eace4; } .dot-2 { background:#d8b883; } .dot-3 { background:#82b7d4; }
.point.resolved { background:#f4f1fa; }
.auth-story { background:#3b147a; }
.auth-story .milltech-logo { width:260px; height:auto; max-width:100%; aspect-ratio:2462 / 1394; }
@media(max-width:650px) {
  .auth-story .milltech-logo { width:132px; }
  .auth-story .brand { gap:10px; }
  .auth-product { font-size:14px; }
}
.description-panel { border-left:3px solid #7950d9; }
.description-panel .prose { font-size:15px; line-height:1.75; }
.description-panel article { margin-top:0; }
.prose p:last-child { margin-bottom:0; }
.discussion .comment p { color:#453c50; font-size:14px; }
.research-panel { min-width:0; overflow:hidden; }
.research { font-size:15px; line-height:1.8; color:#38313f; max-width:100%; overflow-x:auto; }
.research h1 { font-size:27px; line-height:1.35; margin:24px 0; }
.research h2 { font-size:22px; line-height:1.4; margin:38px 0 18px; }
.research h3 { font-size:18px; line-height:1.5; margin:28px 0 14px; }
.research h4 { font-size:16px; margin-top:24px; }
.research p { line-height:1.8; margin:0 0 18px; }
.research ul,.research ol { padding-left:25px; margin:16px 0 24px; }
.research li { margin:10px 0; }
.research table { border-collapse:collapse; width:100%; font-size:13px; margin:24px 0; }
.research th { background:#f1ecf8; color:#37234e; text-align:left; }
.research th,.research td { padding:12px; vertical-align:top; border:1px solid #e2dbe9; min-width:130px; line-height:1.7; }
.research code { background:#f0edf4; border-radius:4px; padding:2px 5px; font-size:12px; overflow-wrap:anywhere; }
.research pre { background:#f5f2f8; padding:18px; border-radius:8px; overflow-x:auto; }
.research blockquote { border-left:3px solid #a27ce3; margin:20px 0; padding-left:20px; color:#6a567f; }
.source-reference { color:#6e46a0; border-bottom:1px dotted #bba6d2; }
.internal-panel { background:#f8f5fc; border-color:#e6dcf2; }
@media(max-width:600px){ .milltech-logo {width:110px;height:63px;} .research {font-size:14px;} .research h1 {font-size:23px;} }

/* Work-item sections: shared content, conversation and decision each have a place. */
.item-page { max-width:1080px; margin:0 auto; }
.item-page > .back-link { padding:0; margin-bottom:18px; font-size:13px; }
.item-page .item-heading { margin-bottom:22px; }
.item-page .item-heading h1 { font-size:26px; line-height:1.35; margin-top:12px; }
.item-page .item-kicker { display:flex; align-items:center; gap:12px; font-size:12px; letter-spacing:0; color:var(--muted); }
.item-page .item-kicker .badge { margin:0; font-weight:500; }
.item-next-step { font-size:13px; margin:12px 0 0; line-height:1.6; }
.item-next-step span { color:var(--muted); }
.item-toolbar { display:flex; align-items:center; gap:20px; border-bottom:1px solid var(--line); margin-bottom:24px; }
.item-toolbar .tabs { flex:1; min-width:0; overflow-x:auto; margin:0; border:0; gap:24px; }
.item-toolbar .tabs button { flex:none; font-size:13px; white-space:nowrap; padding:12px 0; margin:0; }
.item-toolbar #refresh-item { flex:none; font-size:12px; color:var(--muted); padding:8px 0; }
.tab-count { display:inline-block; background:#ece7f5; border-radius:4px; padding:1px 5px; margin-left:4px; font-size:11px; }
.activity-notice { background:var(--soft); color:#513391; padding:12px 16px; border-radius:6px; font-size:13px; }
.activity-notice:empty { display:none; }
.item-overview { background:white; border:1px solid var(--line); border-radius:8px; padding:0 28px; }
.item-section { padding:24px 0; }
.item-section + .item-section { border-top:1px solid var(--line); }
.item-section .section-heading { margin-bottom:16px; align-items:center; }
.item-section .section-heading h2 { margin:0; font-size:17px; }
.item-section .text-button { font-size:13px; padding:4px 0; }
.item-section .prose { font-size:15px; line-height:1.7; color:#403949; max-width:80ch; }
.item-section h3 { font-size:15px; margin:22px 0 12px; }
.description-questions { line-height:1.65; padding-left:22px; }
.description-questions li { margin-bottom:10px; }
.question-list { list-style:none; counter-reset:question; margin:0; padding:0; }
.question-row { counter-increment:question; padding:18px 0 18px 32px; border-bottom:1px solid var(--line); position:relative; }
.question-row::before { content:counter(question) '.'; position:absolute; left:0; top:18px; color:var(--muted); font-size:14px; }
.question-row:first-child { padding-top:0; }
.question-row:first-child::before { top:0; }
.question-row:last-child { border-bottom:0; padding-bottom:0; }
.question-heading { display:flex; align-items:flex-start; gap:16px; }
.question-heading p { flex:1; margin:0; line-height:1.65; font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.question-state { font-size:11px; color:#5b1fe8; background:#f0e9ff; border-radius:4px; padding:3px 7px; }
.question-answer { border-left:2px solid #cbb8ef; padding:0 0 0 14px; margin-top:12px; }
.question-answer p { margin:0 0 6px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; }
.question-answer small { color:var(--muted); }
.question-reply { margin-top:8px; }
.question-reply summary,.question-add summary,.question-agreement summary,.question-history summary { cursor:pointer; color:var(--accent); font-size:13px; width:fit-content; }
.question-reply summary:hover,.question-add summary:hover,.question-agreement summary:hover,.question-history summary:hover { text-decoration:underline; }
.point-reply-form,.question-agreement .point-form { margin-top:12px; }
.point-reply-form textarea { margin-bottom:10px; }
.question-agreement { margin-top:20px; padding-top:14px; border-top:1px solid var(--line); }
.question-history { margin-top:14px; }
.question-history summary { color:var(--muted); }
.question-discussion { margin:18px 0; border-left:2px solid var(--line); padding-left:16px; }
.question-message { padding:10px 0; overflow-wrap:anywhere; }
.question-message strong { font-size:13px; }
.question-message small { color:var(--muted); font-size:12px; margin-left:10px; }
.question-message p { margin:6px 0 0; line-height:1.6; }
.question-answer strong { display:block; font-size:13px; margin-bottom:6px; }
.question-add { border-top:1px solid var(--line); padding-top:18px; margin-top:18px; }
.question-add #point-form { margin-top:14px; }
.question-add #point-form button { margin-top:0; }
.item-discussion .comment-list { max-height:none; }
.item-discussion .comment-form { display:grid; grid-template-columns:1fr; gap:12px; }
.item-discussion .comment-form textarea { min-height:110px; }
.item-discussion .comment-form button { justify-self:end; }
.item-discussion .section-heading .muted:empty { display:none; }
.decision-panel h2 { font-size:18px; margin-bottom:24px; }
.decision-panel form { max-width:780px; }
.decision-panel .form-grid { gap:24px; }
.decision-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:24px; }
.decision-panel .checkbox { line-height:1.6; }
@media(max-width:650px) {
  .item-page .item-heading h1 { font-size:23px; }
  .item-toolbar { gap:12px; }
  .item-toolbar .tabs { gap:20px; }
  .item-overview { padding:0 18px; }
  .item-section { padding:20px 0; }
  .item-section .section-heading { flex-wrap:wrap; gap:8px; }
  .question-heading { flex-wrap:wrap; gap:6px; }
  .question-heading p { flex-basis:100%; }
  .decision-actions { flex-wrap:wrap; }
}

/* Files belong to the posted message and download from authenticated server storage. */
.attachment-picker { min-width: 0; display: grid; gap: 5px; }
.attachment-picker label { font-weight: 500; font-size: 12px; }
.attachment-picker input { width: 100%; min-width: 0; padding: 6px; font-size: 12px; }
.attachment-picker input::file-selector-button { border: 0; border-radius: 4px; background: #f0eafc; color: #49249a; padding: 7px 10px; margin-right: 8px; cursor: pointer; }
.attachment-picker small { color: var(--muted); font-size: 11px; }
.selected-files { font-size: 12px; overflow-wrap: anywhere; }
.selected-files > div { padding: 3px 0; }
.attachments { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.attachments li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 12px; }
.attachments a { color: var(--accent); overflow-wrap: anywhere; min-width: 0; }
.attachments span { color: var(--muted); white-space: nowrap; }
.comment-form { grid-template-columns: minmax(0,1fr); }
.comment-form > button { justify-self: end; }
.comment > div { min-width: 0; }
.question-message, .comment p { overflow-wrap: anywhere; }

@media (max-width: 650px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select { font-size: 16px; }
  .attachment-picker input { font-size: 14px; }
  .primary, .secondary { min-height: 44px; }
  .item-toolbar .tabs button { min-height: 44px; }
}
#toast { width: max-content; overflow-wrap: anywhere; }

.sidebar-signout { display: block; width: 100%; margin-top: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid #5b4276; border-radius: 6px; background: transparent; color: #f1e9ff; font-size: 13px; text-align: left; }
.sidebar-signout:hover { background: #432572; }
.sidebar { height: 100dvh; overflow-y: auto; }
