/* Bundled Bootstrap foundation; the unlayered Rivetpath presentation takes precedence. */
@import url('../vendors/bootstrap.min.css') layer(bootstrap);
/* Semantic layout scaffold. The separate presentation layer owns final styling. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  margin: 0;
  font:
    15px/1.5 var(--body-font),
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
input,
select,
textarea {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  min-height: 42px;
}
textarea {
  width: 100%;
  resize: vertical;
}
input[type='checkbox'],
input[type='radio'] {
  min-height: 20px;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  vertical-align: middle;
}
input[type='range'] {
  width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--heading-font), sans-serif;
  line-height: 1.25;
}
h1 {
  font-size: 30px;
  margin-bottom: 8px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 17px;
}
small,
.subtle,
.muted,
.help-text,
.page-description {
  color: var(--muted);
}
small {
  font-size: 13px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--chrome);
  color: var(--chrome-text);
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 24px;
  font: 600 25px var(--heading-font);
}
.brand small {
  display: block;
  font: 11px var(--body-font);
  letter-spacing: 0.13em;
  color: #bbcfca;
  margin-top: 3px;
}
.brand-mark {
  width: 34px;
  height: 34px;
}
.project-switch {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #ffffff0c;
  border: 1px solid #ffffff20;
  border-radius: 9px;
}
.project-switch > span,
.nav-label {
  font-size: 12px;
  color: #c1d0cc;
}
.project-switch select {
  width: 100%;
  background: #ffffff10;
  border-color: #ffffff20;
  color: #fff;
}
.project-switch option {
  color: var(--ink);
  background: var(--surface);
}
.project-switch small {
  color: #c1d0cc;
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 16px 0;
  background: transparent;
  border: 1px solid #ffffff25;
  border-radius: 7px;
  padding: 10px;
  color: inherit;
  font-size: 13px;
}
.sidebar-search kbd {
  margin-left: auto;
  font-size: 11px;
}
.nav-section {
  margin: 12px 0;
}
.nav-label {
  display: block;
  padding: 0 12px 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: inherit;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
.nav-item.active {
  background: #dceee621;
  box-shadow: inset 3px 0 #a5d1bf;
}
.secondary-nav summary {
  padding: 10px 12px;
  font-size: 13px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.local-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 10px 0;
  font-size: 12px;
  color: #c3d2ce;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.local-badge .status-dot {
  background: #a5d1bf;
}
.workspace {
  margin-left: 236px;
  min-width: 0;
}
.topbar {
  min-height: 72px;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-title,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}
.btn.primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
[data-theme='dark'] .btn.primary {
  color: #102e30;
}
.btn.danger {
  color: var(--danger);
}
.btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn.small {
  padding: 7px 10px;
  font-size: 12px;
  min-height: 34px;
}
.icon-btn {
  padding: 9px;
  min-width: 40px;
}
.mobile-nav,
.nav-backdrop {
  display: none;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  flex: none;
}
.profile-link .avatar {
  width: 36px;
  height: 36px;
}
main {
  padding: 28px 30px;
  max-width: 1800px;
  margin: 0 auto;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 9px;
}
.page-description {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 14px;
}
.heading-actions,
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-heading h2 {
  margin: 0;
}
.split-layout,
.desk-layout,
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.project-grid,
.card-grid,
.review-split,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.report-grid,
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.report-card,
.help-card,
.document-card,
.saved-view-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.report-number {
  color: var(--copper);
  display: block;
  margin-bottom: 18px;
}
.report-card h2 {
  font-size: 19px;
}
.text-link,
.issue-link,
.person-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.issue-key {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 5px;
  background: var(--surface-related);
  color: var(--ink);
  white-space: nowrap;
}
.badge.teal,
.badge.good {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.copper,
.badge.warm {
  background: var(--surface-footer);
  color: var(--copper);
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sprint-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  overflow: hidden;
}
.sprint-goal {
  padding: 22px 24px;
}
.sprint-goal h2 {
  font-size: 25px;
  margin-bottom: 5px;
}
.sprint-checkpoint {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
  background: var(--surface-related);
}
.sprint-checkpoint h3 {
  margin-bottom: 6px;
}
.capacity-note {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.sprint-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.sprint-progress progress {
  width: 140px;
}
progress {
  accent-color: var(--accent);
  max-width: 100%;
  height: 8px;
}
.board-workspace {
  min-width: 0;
}
.board-toolbar,
.board-bottom,
.table-toolbar,
.table-pagination,
.register-summary,
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.board-toolbar {
  margin-bottom: 18px;
}
.board-toolbar h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
.board-toolbar p {
  font-size: 13px;
  margin-bottom: 0;
  color: var(--muted);
}
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.kanban-lane {
  min-width: 0;
  padding: 12px;
  background: var(--surface-related);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.lane-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.lane-heading h3 {
  font: 500 13px var(--body-font);
  margin: 0;
}
.lane-heading > span {
  font-size: 12px;
}
.lane-points {
  margin-left: auto;
  color: var(--muted);
}
.lane-cards {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 80px;
}
.issue-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  min-width: 0;
}
.issue-card-top {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 9px;
}
.issue-card .badge {
  font-size: 11px;
  padding: 2px 5px;
}
.issue-title {
  display: block;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 10px;
}
.issue-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}
.issue-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.priority {
  font-size: 11px;
}
.points {
  margin-left: auto;
  font-size: 12px;
  padding: 1px 6px;
  background: var(--surface-related);
  border-radius: 4px;
}
.issue-move {
  font-size: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.issue-move summary {
  color: var(--muted);
}
.issue-move label {
  display: grid;
  gap: 5px;
  margin: 7px 0;
}
.issue-move select {
  padding: 7px 5px;
  font-size: 12px;
  width: 100%;
  min-height: 36px;
}
.mobile-status-switch {
  display: none;
}
.desk-layout {
  grid-template-columns: minmax(0, 1fr) 270px;
}
.desk-rail .panel {
  padding: 18px;
}
.blocker-card h3 {
  margin: 10px 0;
}
.owner-line,
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.owner-line small,
.people-list small {
  display: block;
}
.checklist {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.check-ring {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  margin-right: 9px;
}
.project-mini {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.project-mini img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
}
.project-mini > span {
  display: block;
  padding: 14px;
}
.project-mini small {
  display: block;
}
.board-bottom {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.board-bottom p {
  margin: 0;
  font-size: 13px;
  max-width: 620px;
}
.table-toolbar {
  padding-bottom: 18px;
  align-items: end;
  justify-content: flex-start;
}
.table-toolbar > label {
  font-size: 13px;
}
.search-field {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 180px;
}
.search-field input {
  width: 100%;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
.simple-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  white-space: normal;
}
.simple-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.simple-table td,
.simple-table th {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sort-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}
.sort-button span {
  margin-left: 6px;
}
.simple-table td:first-child {
  min-width: 160px;
}
.simple-table .check-cell,
.simple-table td:has(> input[type='checkbox']) {
  min-width: 36px;
  width: 36px;
}
.simple-table .actions {
  flex-wrap: nowrap;
}
.column-menu {
  position: relative;
  font-size: 13px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.column-menu label {
  display: block;
  padding: 5px;
}
.register-summary {
  justify-content: flex-start;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 18px;
}
.register-summary span {
  padding-right: 18px;
}
.table-pagination {
  font-size: 13px;
  margin-top: 17px;
}
.table-pagination label {
  margin-left: auto;
}
.table-pagination select {
  min-height: 36px;
  padding: 6px;
}
.bulk-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--accent-soft);
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 14px;
}
.field-error:empty {
  display: none;
}
.field-error {
  color: var(--danger);
}
.stack-form {
  max-width: 100%;
  display: block;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.form-footer,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.form-result {
  padding: 14px;
  background: var(--accent-soft);
  border-radius: 7px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.detail-list {
  display: grid;
  gap: 13px;
}
.detail-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  gap: 12px;
}
.detail-list dt {
  color: var(--muted);
  font-size: 13px;
}
.detail-list dd {
  margin: 0;
}
.inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0;
}
.inline-stats dt {
  color: var(--muted);
  font-size: 12px;
}
.inline-stats dd {
  margin: 6px 0 0;
  font-size: 19px;
  font-family: var(--heading-font);
}
.project-card {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.project-card > img {
  aspect-ratio: 2.2/1;
  object-fit: cover;
  width: 100%;
}
.card-content {
  padding: 22px;
}
.photo-note {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
}
.photo-note img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
}
.dossier-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}
.people-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.people-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 10px;
}
.people-list small {
  grid-column: 2;
}
.entity-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.entity-header h2 {
  margin-top: 9px;
}
.issue-detail {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
  padding-bottom: 12px;
}
.tabs .btn {
  border: 0;
}
.comment-list,
.activity-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}
.comment-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.comment-list time {
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
}
.comment-list p {
  margin: 12px 0 0;
}
.activity-list time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.activity-list .avatar {
  margin-right: 10px;
}
.gate-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.gate-row span {
  flex: 1;
}
.gate-row small {
  display: block;
}
.capacity-summary {
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.wizard-steps {
  display: flex;
  gap: 20px;
  padding: 0 0 16px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.wizard-steps .active {
  color: var(--accent);
  font-weight: 600;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 15px 0;
}
legend {
  font-weight: 500;
  padding: 0 7px;
}
.upload-zone {
  padding: 28px;
  background: var(--surface-related);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.staged-files > article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.staged-files > article > div {
  flex: 1;
}
.process-list {
  padding-left: 20px;
}
.process-list li {
  padding-left: 4px;
  margin-bottom: 16px;
}
.process-list p {
  margin: 4px 0 0;
  color: var(--muted);
}
.work-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.work-row > div {
  flex: 1;
}
.work-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.label-grid,
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.label-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.label-card strong {
  font-size: 14px;
}
.roadmap-axis {
  display: flex;
  justify-content: space-between;
  margin: 15px 0 15px 36%;
  font-size: 12px;
  color: var(--muted);
}
.roadmap-row {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.roadmap-row h3 {
  font-size: 15px;
  margin: 7px 0;
}
.roadmap-row p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.timeline-track {
  background: var(--surface-related);
  height: 42px;
  border-radius: 6px;
}
.timeline-bar {
  display: flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  width: var(--span);
  margin-left: var(--start);
  min-height: 42px;
  border-radius: 6px;
  font-size: 12px;
  padding: 8px;
}
.timeline-bar.optic {
  border-left: 3px solid var(--copper);
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.calendar-toolbar {
  margin-bottom: 24px;
}
.calendar-toolbar h2 {
  margin: 0;
}
.calendar-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px;
}
.calendar-day {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 48px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.calendar-day.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.calendar-day.outside {
  border: 0;
}
.event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
}
.month-grid > strong {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.agenda-event {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.agenda-event h4 {
  font-size: 16px;
  margin-bottom: 5px;
}
.agenda-event time {
  font-family: var(--heading-font);
}
.agenda-event p {
  font-size: 13px;
  margin-bottom: 8px;
}
.message-row {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.message-row > div {
  min-width: 0;
  flex: 1;
}
.message-row h2 {
  font-size: 16px;
  margin: 8px 0;
}
.message-row p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.message-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.message-heading time {
  font-size: 12px;
  color: var(--muted);
}
.unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}
.message-sender {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.message-sender p {
  margin: 4px 0;
  font-size: 13px;
}
.message-body {
  font-size: 16px;
  line-height: 1.8;
}
.linked-issue {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
}
.document-header,
.document-parties {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.document-header h2 {
  font-size: 30px;
}
.brand-text {
  font: 600 28px var(--heading-font);
}
.document-parties p {
  margin-bottom: 4px;
}
.document-parties dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  margin: 0;
}
.document-parties dd {
  margin: 0;
}
.document-total {
  display: flex;
  justify-content: flex-end;
  gap: 35px;
  font-size: 20px;
  margin: 25px 0;
}
.estimate-table input {
  width: 100px;
  min-width: 90px;
}
.estimate-table td:first-child {
  min-width: 200px;
}
.estimate-table td:first-child input {
  width: 100%;
  min-width: 160px;
}
.estimate-table td:first-child .btn {
  margin-top: 8px;
  display: flex;
  width: max-content;
}
.estimate-totals {
  margin-left: auto;
  max-width: 260px;
}
.estimate-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.estimate-totals dd {
  margin: 0;
}
.ai-result {
  background: var(--surface-related);
  border: 1px solid var(--line);
  padding: 16px;
  margin: 18px 0;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-error {
  color: var(--danger);
}
.service-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.service-note a,
.reading-panel a {
  text-decoration: underline;
}
.chart-figure {
  margin: 20px 0;
}
.data-chart {
  width: 100%;
  height: auto;
  max-height: 290px;
}
.chart-grid {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
.chart-line {
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
  stroke-linejoin: round;
}
.chart-point {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart-label {
  fill: var(--muted);
  font-size: 12px;
  font-family: var(--body-font);
}
.chart-area {
  fill: var(--accent-soft);
}
figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.bar-chart {
  display: grid;
  gap: 16px;
}
.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.bar-tracks {
  display: grid;
  gap: 4px;
}
.bar {
  width: var(--bar-size);
  background: var(--accent);
  min-width: 28px;
  min-height: 25px;
  color: var(--surface);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
}
.bar.secondary {
  background: var(--copper);
}
[data-theme='dark'] .bar {
  color: var(--canvas);
}
.reconciliation {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
  padding: 25px;
}
.reconciliation > div {
  display: grid;
  gap: 8px;
}
.reconciliation strong {
  font-size: 40px;
  font-family: var(--heading-font);
}
.math-symbol {
  font-size: 24px;
  color: var(--muted);
}
.state-composition {
  display: flex;
  gap: 4px;
  margin: 25px 0;
}
.state-segment {
  flex-basis: var(--segment);
  background: var(--accent-soft);
  padding: 15px;
  border-radius: 6px;
  min-width: 60px;
}
.state-segment strong,
.state-segment span {
  display: block;
}
.state-segment span {
  font-size: 12px;
}
.state-in-review {
  border-bottom: 3px solid var(--copper);
}
.activity-matrix > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
}
.activity-matrix h3 {
  width: 150px;
}
.heat-cell {
  display: grid;
  min-width: 80px;
  text-align: center;
  background: var(--surface-related);
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
}
.heat-cell.filled {
  background: var(--accent-soft);
}
.heat-cell strong {
  font-size: 22px;
}
.directory-intro {
  display: flex;
  align-items: center;
  gap: 30px;
}
.directory-intro > div {
  flex: 1;
}
.directory-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.directory-links a {
  display: block;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.directory-links span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
}
.directory-group h2 {
  margin-bottom: 20px;
}
.notice {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-related);
  border-radius: 8px;
  margin-bottom: 20px;
}
.notice h3 {
  margin-bottom: 8px;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice.warm {
  border-left: 3px solid var(--copper);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: auto;
}
.auth-card {
  padding: 32px;
}
.auth-card h2 {
  margin-top: 25px;
}
.auth-photo img {
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.auth-photo {
  position: relative;
}
.auth-photo p {
  position: absolute;
  bottom: 15px;
  left: 25px;
  background: var(--surface);
  padding: 10px 15px;
  border-radius: 6px;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  margin-top: 20px;
}
.password-wrap {
  display: flex;
  gap: 6px;
}
.password-wrap input {
  flex: 1;
  min-width: 0;
}
.reading-panel {
  max-width: 830px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px;
}
.reading-panel h3 {
  margin-top: 30px;
}
.lead {
  font-size: 19px;
  line-height: 1.65;
}
.error-layout {
  padding: 50px 20px;
  text-align: center;
}
.error-layout .actions {
  justify-content: center;
}
.error-code {
  display: block;
  font: 600 70px var(--heading-font);
  color: var(--accent);
  margin-bottom: 20px;
}
.search-kinds {
  margin-top: 20px;
}
.search-results,
.command-results {
  display: grid;
  gap: 8px;
}
.search-result,
.command-results > a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
}
.search-result small,
.command-results small {
  display: block;
  margin-top: 5px;
}
.command-results > a.active {
  background: var(--accent-soft);
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.color-swatch {
  display: grid;
  gap: 7px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
}
.color-swatch > span {
  height: 70px;
  border-radius: 5px;
}
.disclosure {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.disclosure summary {
  font-weight: 500;
}
.disclosure p {
  margin: 16px 0 0;
}
.disclosure .btn {
  margin-top: 12px;
}
.progress-track {
  height: 10px;
  border-radius: 10px;
  background: var(--surface-related);
  overflow: hidden;
  margin: 12px 0 25px;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.empty-state {
  padding: 35px 15px;
  text-align: center;
}
.empty-symbol {
  font-size: 32px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.loading-line {
  height: 16px;
  width: 80%;
  display: block;
  background: var(--surface-related);
  border-radius: 4px;
  margin: 14px 0;
}
.loading-line.short {
  width: 50%;
}
.horizontal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.focus-layout {
  max-width: 780px;
  margin: auto;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.footer a {
  text-decoration: underline;
}
.demo-note {
  font-size: 12px;
  color: var(--muted);
  margin: 25px 0 15px;
}
.noscript {
  padding: 15px;
  background: var(--surface);
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  width: 650px;
}
dialog::backdrop {
  background: #102b3280;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 24px;
  background: var(--surface-related);
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  margin: 0;
}
.modal-body {
  padding: 24px;
  overflow: auto;
}
.modal-footer {
  background: var(--surface-footer);
  margin: 0;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.modal-footer > span:first-child {
  margin-right: auto;
  color: var(--muted);
}
.modal-body .modal-footer {
  margin: 20px -24px -24px;
}
.app-dialog.drawer,
.issue-drawer {
  margin-right: 16px;
  width: 660px;
}
.command-dialog {
  width: 700px;
}
.command-input {
  padding: 15px 20px;
}
.command-input input {
  width: 100%;
}
.command-results {
  padding: 0 20px 20px;
  max-height: 55dvh;
  overflow: auto;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.6 ui-monospace,
    monospace;
  background: var(--surface-related);
  padding: 15px;
}
.toast-region {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: grid;
  gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 25px #12272c20;
}
.toast .icon-btn {
  border: 0;
}
.type-specimen h2 {
  font-size: 32px;
}
.brand-text {
  color: var(--accent);
}
.legend-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  background: var(--accent);
  border-radius: 2px;
}
.legend-key.copper {
  background: var(--copper);
}
@media (min-width: 1600px) {
  .kanban-board {
    gap: 18px;
  }
  .issue-card {
    padding: 17px;
  }
  .desk-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 1250px) {
  .desk-layout {
    grid-template-columns: 1fr;
  }
  .desk-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .desk-rail .panel {
    margin-bottom: 0;
  }
  .desk-rail .project-mini img {
    aspect-ratio: 1.7/1;
  }
  .topbar {
    padding: 14px 22px;
  }
  main {
    padding: 25px 22px;
  }
  .breadcrumb > span:first-child {
    display: none;
  }
  .split-layout,
  .inbox-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .directory-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-nav {
    display: inline-flex;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #102b3270;
    z-index: 29;
    border: 0;
  }
  .topbar {
    min-height: 66px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .topbar-actions {
    gap: 7px;
  }
  .quick-create {
    min-width: 40px;
  }
  .sidebar .nav-item {
    min-height: 44px;
  }
  .calendar-layout {
    grid-template-columns: 1fr 1fr;
  }
  .label-grid,
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  main {
    padding: 22px 16px;
  }
  .topbar {
    padding: 12px 16px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar-title {
    flex: 1;
  }
  .page-heading {
    flex-direction: column;
    gap: 12px;
  }
  h1 {
    font-size: 27px;
  }
  .topbar-actions [data-copilot-open] {
    display: none;
  }
  .quick-create span {
    display: none;
  }
  .quick-create {
    padding: 9px;
  }
  .split-layout,
  .inbox-layout,
  .project-grid,
  .review-split,
  .integration-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .sprint-strip {
    grid-template-columns: 1fr;
  }
  .sprint-checkpoint {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .sprint-goal {
    padding: 20px;
  }
  .sprint-checkpoint {
    padding: 18px 20px;
  }
  .sprint-goal h2 {
    font-size: 22px;
  }
  .sprint-progress {
    flex-wrap: wrap;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .kanban-lane {
    background: var(--surface-related);
  }
  .issue-card {
    padding: 16px;
  }
  .issue-card .badge,
  .priority {
    font-size: 12px;
  }
  .mobile-status-switch {
    display: block;
    margin-bottom: 16px;
  }
  .mobile-status-switch label {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mobile-status-switch select {
    flex: 1;
  }
  .desk-rail {
    grid-template-columns: 1fr;
  }
  .desk-rail .project-mini {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
  }
  .desk-rail .project-mini img {
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  .panel {
    padding: 18px;
  }
  .report-grid,
  .help-grid,
  .document-grid,
  .label-grid {
    grid-template-columns: 1fr;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 42px;
  }
  .calendar-toolbar h2 {
    order: -1;
    width: 100%;
  }
  .month-grid {
    gap: 4px;
  }
  .agenda {
    margin-top: 15px;
  }
  .photo-note {
    grid-template-columns: 1fr;
  }
  .photo-note img {
    height: 190px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .directory-intro {
    display: block;
  }
  .directory-intro .search-field {
    margin-top: 18px;
  }
  .directory-links {
    grid-template-columns: 1fr;
  }
  .simple-table {
    font-size: 13px;
  }
  .simple-table th {
    font-size: 12px;
  }
  .simple-table td,
  .simple-table th {
    padding: 12px 8px;
  }
  .table-toolbar > * {
    max-width: 100%;
  }
  .table-toolbar .search-field {
    flex-basis: 100%;
  }
  .table-toolbar select {
    max-width: 100%;
  }
  .table-pagination {
    justify-content: flex-start;
  }
  .table-pagination label {
    margin-left: 0;
  }
  .footer {
    flex-direction: column;
    gap: 10px;
  }
  .document-header,
  .document-parties {
    flex-direction: column;
  }
  .document-header h2 {
    font-size: 26px;
  }
  .document-total {
    font-size: 18px;
    gap: 25px;
  }
  .entity-header {
    flex-direction: column;
  }
  .issue-detail {
    padding: 18px;
  }
  .inline-stats {
    gap: 20px;
  }
  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .reconciliation {
    padding: 15px 0;
    gap: 14px;
    justify-content: space-between;
  }
  .reconciliation strong {
    font-size: 31px;
  }
  .reconciliation small {
    font-size: 12px;
  }
  .math-symbol {
    font-size: 16px;
  }
  .bar-row {
    grid-template-columns: 110px 1fr;
    font-size: 12px;
  }
  .state-composition {
    flex-direction: column;
  }
  .state-segment {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .state-segment strong {
    font-size: 18px;
  }
  .roadmap-axis {
    margin-left: 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  .roadmap-row {
    grid-template-columns: 1fr;
  }
  .timeline-bar {
    min-width: 190px;
  }
  .auth-photo {
    display: none;
  }
  .auth-card {
    padding: 22px;
  }
  .message-heading {
    flex-wrap: wrap;
  }
  .linked-issue {
    flex-wrap: wrap;
  }
  .work-row {
    flex-wrap: wrap;
  }
  .work-row > div {
    flex-basis: 65%;
  }
  .swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reading-panel {
    padding: 22px;
  }
  .error-layout {
    padding: 20px 0;
  }
  .error-code {
    font-size: 50px;
  }
  .modal-header,
  .modal-body {
    padding: 18px;
  }
  .modal-footer {
    padding: 15px 18px;
    flex-wrap: wrap;
  }
  .modal-body .modal-footer {
    margin: 18px -18px -18px;
  }
  .app-dialog.drawer,
  .issue-drawer {
    margin: 16px auto;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
  .staged-files > article {
    flex-wrap: wrap;
  }
  .saved-view-card {
    margin-bottom: 15px;
  }
  .tabs {
    overflow: auto;
    white-space: nowrap;
  }
  .type-specimen h2 {
    font-size: 26px;
  }
  .field small,
  .service-note,
  .demo-note,
  .eyebrow,
  .local-badge,
  .brand small {
    font-size: 12px;
  }
  .board-toolbar .actions {
    width: 100%;
  }
  .board-toolbar select {
    flex: 1;
    min-width: 0;
  }
  .board-toolbar h2 .subtle {
    display: block;
    margin-top: 5px;
  }
  .table-pagination .btn {
    padding: 9px 11px;
  }
  .estimate-table input {
    font-size: 14px;
  }
  .app-dialog {
    width: calc(100vw - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 760px) {
  .topbar-actions > [data-action='theme'] {
    width: 40px;
    min-width: 40px;
    padding: 9px;
    justify-content: center;
    flex: none;
  }
  .topbar-actions > [data-action='theme'] > span {
    display: none;
  }
}
