/* Keep the layout width identical on short pages, long pages and loading states. */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
@charset "UTF-8";
:root {
  --amber: #8a691b;
  --red: #a43b2e;
  --radius: 0;
  --shadow: none;
  --font: "Inter",-apple-system,BlinkMacSystemFont,"PingFang SC","PingFang HK","Microsoft YaHei",sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.65 var(--font);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea {
  font: inherit;
}
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: .55;
}
a {
  color: inherit;
  text-decoration: none;
}
button svg, a svg {
  flex-shrink: 0;
}
h1 {
  margin: 0;
}
h2 {
  margin: 0;
}
h3 {
  margin: 0;
}
p {
  margin: 0;
}
small, .small {
  font-size: 12px;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  background: var(--green);
  color: #fff;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
.secondary-text {
  color: var(--secondary);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.9px;
  font-weight: 650;
  color: var(--green);
  margin-bottom: 12px;
}
.wordmark {
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .4px;
}
.wordmark small {
  display: block;
  font-size: 12px;
  letter-spacing: 1.25px;
  font-weight: 500;
  color: var(--secondary);
  margin-top: 4px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.icon-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: none;
  color: var(--secondary);
  width: 33px;
  height: 33px;
  font-size: 24px;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.icon-button:hover {
  background: var(--pale);
  color: var(--green);
}
.notification-button {
  position: relative;
}
.notification-button.has-unread:after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 5px;
  height: 5px;
  background: #b8860b;
  border-radius: 50%;
  border: 1px solid white;
}
.content {
  margin: 0 auto;
  width: 100%;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
}
.page-heading .eyebrow {
  margin-bottom: 8px;
}
.page-heading p:not(.eyebrow) {
  color: var(--secondary);
}
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .15s,color .15s,border-color .15s;
}
.button:hover {
  border-color: var(--green);
}
.primary:hover {
  background: var(--green-dark);
}
.subtle {
  font-size: 13px;
}
.danger {
  background: #fbefed;
  color: var(--red);
}
.wide {
  width: 100%;
}
.text-link {
  color: var(--green);
}
.text-link:hover {
  text-decoration: underline;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero p:not(.eyebrow) {
  color: var(--secondary);
  font-size: 12px;
  margin-top: 6px;
}
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 10px;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-action {
  z-index: 1;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}
.hero-action:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.grid {
  display: grid;
}
.stats-grid {
  border-top: 1px solid var(--line);
}
.stat-card {
  border-radius: 0;
}
.stat-label {
  display: flex;
}
.stat-value {
  margin: 8px 0 0;
}
.stat-value small {
  letter-spacing: 0;
}
.stat-card.accent {
  border-bottom: 0;
}
.today-grid>.stack:last-child .panel {
  border-top: 1px solid var(--line);
}
.panel {
  border-radius: 0;
}
.panel-header {
  display: flex;
  justify-content: space-between;
}
.panel-footer {
  border-top: 1px solid var(--line);
  color: var(--secondary);
}
.stack {
  display: flex;
  flex-direction: column;
}
.project-support {
  border-top: 1px solid var(--line);
}
.project-support>summary {
  font-weight: 550;
  cursor: pointer;
}
.project-support>.stack {
  margin-top: 4px;
}
.task-row {
  display: flex;
  transition: background .15s;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row.clickable:hover {
  background: var(--bg);
}
.task-symbol {
  display: grid;
  place-items: center;
  border-radius: 0;
  flex-shrink: 0;
}
.task-copy h3 {
  white-space: normal;
  overflow-wrap: anywhere;
}
.task-copy h3 > .button {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  justify-content: flex-start;
}
.task-meta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 0;
  background: var(--bg);
  color: var(--secondary);
}
.pill.green {
  background: var(--pale);
  color: var(--green);
}
.pill.amber {
  background: #fcf7e9;
  color: #8a691b;
}
.pill.red {
  background: #fbefed;
  color: #a43b2e;
}
.pill.outline {
  background: #fff;
  border: 1px solid var(--line);
}
.empty-state {
  text-align: center;
}
.empty-state .empty-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 0;
}
.empty-state p {
  max-width: 330px;
  margin: 0 auto;
  line-height: 1.8;
}
.empty-state .button {
  font-weight: 550;
}
.side-title {
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 15px;
}
.deadline-row {
  display: flex;
  margin: 0 0 19px;
  align-items: center;
}
.deadline-row:last-child {
  margin-bottom: 0;
}
.date-block {
  flex-shrink: 0;
  text-align: center;
  border-radius: 0;
  color: var(--green);
}
.date-block strong {
  display: block;
  margin-bottom: 2px;
}
.deadline-row h3 {
  margin-bottom: 4px;
}
.deadline-row p {
  font-size: 12px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-card {
  border-radius: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s,border-color .15s;
}
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.project-icon {
  border-radius: 0;
  display: grid;
}
.project-card h3 {
  overflow-wrap: anywhere;
}
.project-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.project-card .participants {
  display: flex;
  align-items: center;
  gap: 6px;
}
.progress-track {
  border-radius: 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  max-width: 100%;
}
.toolbar {
  display: flex;
  justify-content: space-between;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  flex: 1;
  color: var(--muted);
}
.search-box svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.search-box input {
  border: 0;
  background: none;
  padding: 7px 0;
  outline: none;
  width: 100%;
  min-width: 0;
}
.search-box:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter {
  border: 0;
  background: none;
  padding: 7px 12px;
  border-radius: 0;
  color: var(--secondary);
  font-size: 13px;
  min-height: 38px;
}
.filter.active {
  background: var(--pale);
  color: var(--green);
  font-weight: 600;
}
.notice {
  background: var(--pale);
  border-radius: 0;
  color: var(--green);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.notice.error {
  color: #a43b2e;
  background: #fbefed;
  border-color: #e8c9c3;
}
.notice.warning {
  color: #8a691b;
  background: #fcf7e9;
  border-color: #e8d8ad;
}
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 300px;
  color: var(--secondary);
  font-size: 12px;
}
.spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.workspace-footer {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  letter-spacing: .5px;
}
.tabs {
  display: flex;
  overflow: auto;
  scrollbar-width: none;
}
.tab {
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  color: var(--secondary);
  white-space: nowrap;
}
.tab.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-list {
  margin: 0;
  display: grid;
}
.detail-list>div {
  display: flex;
  align-items: baseline;
}
.detail-list dt {
  flex-shrink: 0;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.member-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.member-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 4px 9px 4px 4px;
  border-radius: 0;
  font-size: 12px;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 13px;
  padding: 0 0 24px;
  font-size: 12px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item:before {
  position: absolute;
  content: "";
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-item:last-child:before {
  display: none;
}
.timeline-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 3px solid var(--pale);
  background: var(--green);
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
}
.timeline-item h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}
.timeline-item p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.timeline-item.active .timeline-dot {
  background: var(--green);
  border-color: var(--pale);
}
.timeline-item.completed .timeline-dot {
  background: var(--green);
}
.table-wrap {
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.data-table th {
  border-bottom: 1px solid var(--line);
}
.data-table td {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.member-name {
  display: flex;
  gap: 10px;
  align-items: center;
}
.member-name small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.load-value {
  display: flex;
  align-items: center;
  gap: 10px;
}
.load-value .progress-track {
  width: 70px;
  margin: 0;
  flex-shrink: 0;
}
.board {
  display: grid;
  grid-template-columns: repeat(4,minmax(210px,1fr));
  overflow: auto;
  padding-bottom: 4px;
}
.board-column {
  border-radius: 0;
  min-width: 0;
}
.board-column h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.board-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 10px;
  white-space: normal;
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.board-card h3 {
  color: var(--ink);
  margin-bottom: 10px;
}
.board-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.board-card:hover {
  border-color: var(--green);
}
.board-empty {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  padding: 20px 0;
}
.modal {
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
}
.modal::backdrop {
  backdrop-filter: none;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
}
.modal-heading .eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
  margin-bottom: 5px;
}
.modal-heading h2 {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.modal form {
  display: flex;
  flex-direction: column;
}
.field {
  display: flex;
  flex-direction: column;
}
.field small {
  font-size: 12px;
  color: var(--muted);
}
.field input {
  width: 100%;
  border: 1px solid #d5ddd7;
  background: #fff;
  color: var(--ink);
}
.field textarea {
  width: 100%;
  border: 1px solid #d5ddd7;
  background: #fff;
  color: var(--ink);
}
.field select {
  width: 100%;
  border: 1px solid #d5ddd7;
  background: #fff;
  color: var(--ink);
}
.field textarea {
  resize: vertical;
}
.field select[multiple] {
  min-height: 100px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.form-actions .button {
  font-weight: 550;
}
.form-section {
  border-top: 1px solid var(--line);
}
.form-section>p {
  color: var(--muted);
}
.chain-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 8px;
  align-items: center;
  margin: 9px 0;
}
.chain-row select {
  font-size: 14px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #d5ddd7;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}
.chain-controls {
  display: flex;
  gap: 1px;
}
.chain-controls .icon-button {
  width: 25px;
  font-size: 16px;
}
.inline-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 12px;
  background: var(--bg);
  border-radius: 0;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--secondary);
}
.check-label input {
  accent-color: var(--green);
  margin-top: 4px;
}
.submission {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 16px;
  border-radius: 0;
  margin: 12px 0;
}
.submission .description {
  font-size: 14px;
  line-height: 1.9;
}
.submission-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.submission a {
  color: var(--green);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.submission ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.task-detail-header {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.task-actions {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.approval-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.approval-step {
  display: flex;
  gap: 11px;
  font-size: 12px;
  position: relative;
  padding-bottom: 21px;
}
.approval-step:before {
  content: "";
  position: absolute;
  width: 1px;
  background: var(--line);
  top: 24px;
  bottom: 0;
  left: 11px;
}
.approval-step:last-child {
  padding-bottom: 0;
}
.approval-step:last-child:before {
  display: none;
}
.step-number {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  background: var(--bg);
}
.approval-step.current .step-number {
  color: var(--green);
  background: var(--pale);
  border-color: var(--green);
}
.approval-step.done .step-number {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.approval-step small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  background: var(--green);
  color: white;
  padding: 12px 22px;
  border-radius: 0;
  box-shadow: var(--shadow);
  z-index: 100;
  max-width: calc(100% - 30px);
  font-size: 12px;
}
.toast.error {
  background: #a43b2e;
}
.attachment-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.attachment-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.attachment-row > .button {
  flex-shrink: 0;
}
.attachment-row:last-child {
  border-bottom: 0;
}
.attachment-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.notification-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.notification-row:last-child {
  border: 0;
}
.notification-row h3 {
  font-size: 12px;
  font-weight: 500;
}
.notification-row p {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 5px;
}
.notification-row time {
  font-size: 12px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.text-button:hover {
  text-decoration: underline;
}
.table-actions {
  display: flex;
}
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.radio-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.radio-card input {
  accent-color: var(--green);
}
.metadata-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: var(--secondary);
}
.full-width {
  grid-column: 1/-1;
}
.error-content {
  padding: 55px 24px;
  text-align: center;
}
.error-content p {
  font-size: 12px;
  color: var(--secondary);
  margin: 12px 0 20px;
}
.error-content h2 {
  font-size: 18px;
}
.read-only-label {
  color: var(--muted);
  font-size: 12px;
}
.stat-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
.stat-list .stat-card {
  padding: 16px 24px;
  border: 0;
  background: transparent;
}
.stat-list .stat-value {
  font-size: 28px;
  margin: 8px 0 0;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.milestone-completed {
  color: var(--muted);
  text-decoration: line-through;
}
.nowrap {
  white-space: nowrap;
}
.required {
  color: #8a691b;
  margin-left: 3px;
}
@media (min-width:1500px) {
  .content {
    padding-top: 40px;
  }
}
@media (max-width:1180px) {
  .stats-grid {
    border-top: 1px solid var(--line);
  }
  .toast {
    left: 50%;
  }
  .wordmark small {
    font-size: 12px;
    letter-spacing: 1px;
  }
}
@media (max-width:930px) {
  .today-grid>.stack {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .stats-grid {
    border-top: 1px solid var(--line);
  }
  .toolbar {
    flex-direction: column;
  }
  .search-box {
    flex-basis: auto;
    min-height: 42px;
  }
  .toolbar .filter-group {
    width: 100%;
  }
}
@media (max-width:700px) {
  .content {
    width: 100%;
  }
  .page-heading .eyebrow {
    font-size: 12px;
    letter-spacing: 1.4px;
  }
  .page-actions .button {
    font-size: 13px;
    padding: 9px 13px;
    min-height: 40px;
    font-weight: 550;
  }
  .hero .eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  .hero p:not(.eyebrow) {
    font-size: 12px;
  }
  .stats-grid {
    border-top: 1px solid var(--line);
  }
  .stat-value {
    margin: 8px 0 0;
  }
  .today-grid>.stack {
    align-items: stretch;
  }
  .task-symbol {
    border-radius: 0;
  }
  .task-meta {
    flex-direction: column;
    align-items: flex-end;
  }
  .task-meta .pill {
    font-size: 12px;
    padding: 3px 7px;
  }
  .task-meta .muted {
    font-size: 12px;
  }
  .section-heading {
    margin-top: 25px;
  }
  .workspace-footer {
    display: block;
  }
  .workspace-footer span:last-child {
    display: none;
  }
  .modal {
    border-radius: 0;
  }
  .modal-heading h2 {
    color: var(--ink);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .chain-row {
    grid-template-columns: 1fr 1.2fr auto;
    gap: 4px;
  }
  .chain-row select {
    font-size: 12px;
    padding: 8px 5px;
  }
  .chain-controls .icon-button {
    width: 22px;
  }
  .field input {
    border: 1px solid #d5ddd7;
  }
  .field textarea {
    border: 1px solid #d5ddd7;
  }
  .field select {
    border: 1px solid #d5ddd7;
  }
  .chain-row select {
    font-size: 16px;
  }
  .form-actions .button {
    flex: 1;
    font-weight: 550;
  }
  .filter {
    padding: 7px 11px;
    font-size: 13px;
    min-height: 38px;
  }
  .toast {
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    font-size: 12px;
    min-width: 160px;
    text-align: center;
  }
  .board {
    grid-template-columns: repeat(4,235px);
  }
  .stat-list {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Planning controls and explicit changes retain a compact mobile layout. */
.change-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.change-comparison>div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
}
.change-comparison>div:last-child {
  border-color: rgba(0,107,94,.25);
  background: var(--pale);
}
.change-comparison small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.change-comparison .description {
  font-size: 14px;
  line-height: 1.9;
}
.directory-filters {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.1fr 1fr 1fr;
  gap: 10px;
  margin: -3px 0 22px;
}
.directory-options {
  margin: -8px 0 20px;
}
.directory-options>summary {
  width: fit-content;
  padding: 6px 0;
  color: var(--green);
  font-size: 13px;
  cursor: pointer;
}
.directory-options .directory-filters {
  margin: 10px 0 0;
}
.directory-filters label {
  font-size: 12px;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.directory-filters select, .directory-filters input, .sort-select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
  color: var(--secondary);
  font-size: 13px;
  min-height: 40px;
  padding: 6px 8px;
  max-width: 100%;
  min-width: 0;
}
.sort-select {
  margin-left: 3px;
}
.field input[type=checkbox] {
  width: auto;
  min-height: auto;
}
.project-card .project-card-bottom svg {
  width: 13px;
  height: 13px;
}
@media (max-width:1100px) {
  .directory-filters {
    grid-template-columns: repeat(3,1fr);
  }
  .page-actions {
    row-gap: 8px;
  }
}
@media (max-width:700px) {
  .directory-filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .directory-filters label {
    font-size: 12px;
  }
  .directory-filters select, .directory-filters input {
    font-size: 12px;
  }
  .change-comparison {
    grid-template-columns: 1fr;
  }
  .sort-select {
    font-size: 12px;
  }
  .page-actions .button {
    font-size: 13px;
    min-height: 40px;
    padding: 9px 13px;
    font-weight: 550;
  }
  .task-actions {
    align-items: stretch;
  }
  .task-actions .button {
    flex: 1;
    font-size: 13px;
    min-height: 40px;
    padding: 9px 15px;
    font-weight: 550;
  }
  .task-row .task-meta .button {
    padding: 9px 15px;
    font-size: 13px;
    min-height: 40px;
    font-weight: 550;
  }
  .task-detail-header .pill {
    white-space: normal;
    font-size: 12px;
    padding: 3px 8px;
  }
}
.panel-header {
  border-color: var(--line);
}
.panel-footer {
  border-color: var(--line);
}
.modal .form-actions .button {
  font-weight: 550;
}
/* Brand, modules and account tools share a light header. */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  width: 100%;
}
.app-header {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
}
.app-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.module-nav {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  scrollbar-width: none;
  scroll-padding-inline: 8px;
}
.module-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
.module-link svg {
  width: 18px;
  height: 18px;
}
.module-link:hover {
  background: transparent;
  color: var(--green);
}
.module-link.active {
  background: transparent;
}
.module-link.active {
  border-bottom-color: var(--green);
}
.module-link.active::before {
  content: "";
  position: absolute;
  inset: 20px 4px;
  z-index: -1;
  background: var(--pale);
}
.topbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
.header-date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.app-header .icon-button {
  flex-shrink: 0;
  border-radius: 0;
  color: var(--secondary);
}
.app-header .icon-button:hover {
  background: var(--pale);
  color: var(--green);
}
.app-header :focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
}
/* The avatar primitive remains shared with member lists and task chips. */
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: var(--pale);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.member-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 3px 0;
  color: var(--ink);
  line-height: 1.45;
  text-decoration: none;
}
.member-identity .avatar {
  color: var(--green);
}
.member-identity > div {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-identity small {
  color: var(--secondary);
  font-size: 12px;
}
.header-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.header-logout:hover {
  background: var(--pale);
  color: var(--green);
}
.module-nav::-webkit-scrollbar {
  display: none;
}
.module-nav:empty {
  display: none;
}
.nav-count {
  display: inline-block;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.module-link.active .nav-count {
  background: transparent;
  color: var(--green);
}
@media (max-width: 1180px) {
  .topbar {
    padding-right: 27px;
    padding-left: 27px;
  }
}
@media (min-width: 931px) and (max-width: 1100px) {
  .member-identity > div {
    display: none;
  }
  .module-link {
    padding-right: 12px;
    padding-left: 12px;
  }
}
@media (max-width: 930px) {
  .topbar {
    display: grid;
  }
  .app-brand {
    grid-area: brand;
  }
  .topbar-right {
    grid-area: tools;
  }
  .module-nav {
    grid-area: modules;
    width: 100%;
  }
  .module-link.active::before {
    inset: 6px 3px;
  }
  .member-identity > div {
    max-width: 100px;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding-right: 19px;
    padding-left: 19px;
  }
  .app-brand {
    gap: 8px;
  }
  .topbar-right .icon-button {
    width: 30px;
    height: 30px;
  }
  .member-identity {
    padding: 0;
  }
  .member-identity > div {
    display: none;
  }
  .module-link {
    white-space: nowrap;
  }
  .module-link svg {
    width: 16px;
    height: 16px;
  }
}
/* Secondary destinations belong to the current page, not another header row. */
.page-nav {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  color: var(--secondary);
  line-height: 1.5;
  white-space: nowrap;
}
.page-nav-link:hover {
  color: var(--green);
}
.page-nav-link.active {
  color: var(--green);
}
.page-nav-link.active {
  border-bottom-color: var(--green);
}
.page-nav::-webkit-scrollbar {
  display: none;
}
.management-tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.management-tools:empty {
  display: none;
}
.header-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--secondary);
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.header-control svg {
  width: 18px;
  height: 18px;
}
.header-control:hover, .utility-menu[open]>.header-control {
  background: var(--pale);
  color: var(--green);
}
.utility-menu {
  position: relative;
}
.utility-menu>summary {
  list-style: none;
}
.utility-menu>summary::-webkit-details-marker {
  display: none;
}
.utility-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 3px;
  width: 212px;
  max-width: calc(100vw - 38px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}
.utility-menu:not([open])>.utility-dropdown {
  display: none;
}
.utility-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}
.utility-link:hover, .utility-link.active {
  color: var(--green);
  background: var(--pale);
}
.utility-link.active {
  font-weight: 600;
}
.hero p.welcome-back {
  letter-spacing: .02em;
  text-transform: none;
}
/* Shared administration modules use the same fields, panels and tables. */
.service-layout, .management-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 20px;
  min-width: 0;
}
.content-form {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.svc-form {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.case-detail {
  min-width: 0;
  overflow-wrap: anywhere;
}
.link-fields, .svc-link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.svc-link-row {
  display: grid;
  align-items: end;
  min-width: 0;
}
.svc-link-row>* {
  min-width: 0;
}
.svc-review-card {
  background: var(--surface);
  min-width: 0;
}
.svc-review-card h3 {
  font-size: 16px;
  line-height: 1.5;
}
.svc-image {
  display: block;
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
}
.svc-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
}
.mgmt-case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.mgmt-case-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  white-space: normal;
}
.mgmt-case-row:hover {
  border-color: var(--green);
  background: var(--pale);
}
.mgmt-secret {
  padding: 16px;
  border: 1px solid rgba(0,107,94,.2);
  background: var(--pale);
  overflow-wrap: anywhere;
}
.mgmt-weekdays {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.mgmt-weekdays label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary);
}
.mgmt-weekdays input {
  accent-color: var(--green);
}
@media (max-width:930px) {
  .today-grid>.stack:first-child {
    grid-template-columns: 1fr;
  }
  .stats-grid .stat-card:nth-child(odd) {
    border-left: 0;
  }
  .stats-grid .stat-card:nth-child(n/**/+3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width:700px) {
  .content {
    padding-top: 24px;
  }
  .page-heading .page-actions:has(>.button:nth-child(3)) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats-grid .stat-card {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .today-grid>.stack {
    align-items: stretch;
    width: 100%;
  }
  .responsive-table {
    display: block;
    width: 100%;
    white-space: normal;
  }
  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .responsive-table tbody {
    display: block;
  }
  .responsive-table tbody tr {
    display: grid;
    border-bottom: 1px solid var(--line);
  }
  .responsive-table tbody tr:last-child {
    border-bottom: 0;
  }
  .responsive-table td[data-label] {
    display: grid;
    align-items: baseline;
    max-width: none;
    border: 0;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .responsive-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 400;
    color: var(--muted);
  }
  .responsive-table td[data-label]:first-child {
    display: block;
  }
  .responsive-table td[data-label]:first-child::before {
    display: none;
  }
  .responsive-table .table-actions {
    flex-wrap: wrap;
    white-space: normal;
  }
  .responsive-table .pill {
    justify-self: start;
  }
}
@media (max-width:700px) {
  .mgmt-case-row {
    padding: 14px;
  }
}
/* Member list and collaborator chips keep their existing compact avatars. */
.member-chip .avatar {
  height: 23px;
  width: 23px;
  font-size: 12px;
}
.member-name .avatar {
  width: 29px;
  height: 29px;
  font-size: 12px;
}
/* Shared visual system: one grid, one hierarchy and one set of controls. */
:root {
  --bg: #f4f6f3;
  --surface: #fff;
  --ink: #20342c;
  --secondary: #596c62;
  --muted: #718078;
  --line: #dfe6df;
  --green: #006b5e;
  --green-dark: #00564b;
  --pale: #e8f1eb;
}
body {
  font-size: 14px;
  line-height: 1.65;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.7px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
h3 {
  font-size: 15px;
  font-weight: 550;
  line-height: 1.5;
}
.app-header {
  --header-max: 1280px;
  border-top: 3px solid var(--green);
  background: var(--surface);
}
.topbar {
  max-width: var(--header-max);
  min-height: 64px;
  padding: 0 40px;
  gap: 40px;
}
.app-brand {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--green);
}
.module-nav {
  justify-content: flex-start;
  gap: 28px;
}
.module-link {
  min-height: 64px;
  padding: 0 2px;
  font-size: 14px;
  color: var(--secondary);
  border-bottom-width: 2px;
}
.module-link.active::before {
  display: none;
}
.module-link.active {
  color: var(--green);
  font-weight: 600;
}
.topbar-right {
  gap: 8px;
}
.header-date {
  display: none;
}
.header-control {
  font-size: 12px;
  gap: 6px;
}
.app-header .icon-button {
  width: 32px;
  height: 32px;
}
.member-identity {
  font-size: 12px;
  gap: 8px;
  margin-left: 4px;
}
.member-identity>div {
  max-width: 96px;
}
.member-identity .avatar {
  width: 28px;
  height: 28px;
  background: var(--pale);
}
.header-logout {
  padding: 5px;
  min-height: 32px;
}
.header-logout span {
  display: none;
}
.content:focus-visible {
  outline: none;
}
.content {
  max-width: 1280px;
  padding: 38px 40px 48px;
}
.workspace-footer {
  max-width: 1280px;
  padding: 16px 40px 24px;
  font-size: 12px;
  color: var(--muted);
}
.page-heading {
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 10px;
  max-width: 680px;
}
.page-actions {
  gap: 10px;
}
.button {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  border-radius: 0;
}
.button svg {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.secondary {
  background: var(--surface);
  border-color: #d4ded6;
  color: var(--ink);
}
.secondary:hover {
  background: var(--pale);
  border-color: #a9c4b7;
  color: var(--green);
}
.subtle {
  background: var(--pale);
  color: var(--green);
  border-color: transparent;
}
.text-link {
  font-size: 13px;
  font-weight: 500;
}
.hero {
  padding: 24px 28px;
  margin-bottom: 0;
  background: #e3eee6;
  border: 0;
  border-left: 3px solid var(--green);
  min-height: 114px;
}
.hero h1, .hero h2 {
  font-size: 25px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -.4px;
}
.hero p.welcome-back {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  margin: 0 0 6px;
  line-height: 1.5;
}
.hero-action {
  align-self: center;
  min-height: 40px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-secondary {
  background: transparent;
  border-color: transparent;
  color: var(--green);
}
.hero-secondary:hover {
  background: rgba(255,255,255,.5);
}
.grid {
  gap: 24px;
}
.stats-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin-bottom: 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.stat-card {
  padding: 22px 24px;
  min-width: 0;
  background: transparent;
  border: 0;
}
.stats-grid .stat-card+.stat-card {
  border-left: 0;
}
.stats-grid .stat-card:first-child {
  padding-left: 0;
}
.stats-grid .stat-card:last-child {
  padding-right: 0;
}
.stat-label {
  font-size: 12px;
  color: var(--secondary);
  gap: 12px;
  justify-content: flex-start;
}
.stat-label svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  order: -1;
}
.stat-value {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.8px;
  color: var(--ink);
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}
.stat-card.accent .stat-value {
  color: var(--green);
}
.stat-value small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
}
.stat-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.today-grid {
  grid-template-columns: minmax(0,1fr) 280px;
  align-items: start;
  gap: 32px;
}
.stack {
  gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}
.panel-header {
  padding: 18px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.panel-header h2 {
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}
.panel-header h2 small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.panel-header .button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}
.panel-body {
  padding: 24px;
}
.panel-footer {
  padding: 14px 24px;
  font-size: 12px;
}
.today-grid>.stack:last-child .panel {
  background: transparent;
  border: 0;
}
.today-grid>.stack:last-child .panel+.panel {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.today-grid>.stack:last-child .panel-header {
  padding: 0 0 16px;
  border: 0;
}
.today-grid>.stack:last-child .panel-body {
  padding: 0;
}
.task-row {
  padding: 18px 24px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.task-copy {
  min-width: 0;
  flex: 1;
}
.task-row:hover {
  background: #fafbf9;
}
.task-symbol {
  width: 28px;
  height: 28px;
  background: var(--pale);
  border: 0;
  color: var(--green);
}
.task-symbol svg {
  width: 15px;
  height: 15px;
}
.task-copy h3 {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
  margin-bottom: 4px;
}
.task-copy h3 .text-button, .task-copy h3>a {
  color: var(--ink);
}
.task-copy h3 .text-button:hover, .task-copy h3>a:hover {
  color: var(--green);
}
.task-copy p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.task-meta {
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 45%;
}
.pill {
  font-size: 12px;
  line-height: 1.5;
  padding: 3px 7px;
  font-weight: 400;
}
.pill.blue {
  background: #eef1f0;
  color: #576d65;
}
.section-heading {
  margin: 32px 0 16px;
}
.section-heading h2 {
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
}
.project-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}
.project-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.project-card-top {
  margin-bottom: 22px;
}
.project-icon {
  width: 30px;
  height: 30px;
  background: none;
  color: var(--green);
  place-items: start;
}
.project-icon svg {
  width: 25px;
  height: 25px;
}
.project-card h3 {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 550;
  margin-bottom: 8px;
}
.project-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--secondary);
}
.project-card-bottom {
  padding-top: 24px;
  font-size: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.project-card:hover {
  border-color: #a2bdae;
  box-shadow: none;
}
.progress-track {
  height: 3px;
  background: #e5ece6;
  margin-top: 20px;
}
.empty-state {
  padding: 32px 24px;
  color: var(--muted);
}
.empty-state .empty-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  background: transparent;
  color: #8b9b90;
}
.empty-state .empty-icon svg {
  width: 22px;
  height: 22px;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 0;
}
.empty-state p {
  font-size: 13px;
  margin-top: 6px;
}
.empty-state .button {
  min-height: 36px;
  margin-top: 16px;
  font-size: 13px;
  padding: 7px 12px;
}
.toolbar {
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.search-box {
  height: 42px;
  max-width: 360px;
  border-color: #d4ded6;
}
.search-box input {
  font-size: 14px;
  color: var(--ink);
}
.page-nav {
  gap: 28px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.page-nav-link {
  min-height: 42px;
  padding: 8px 0 12px;
  font-size: 14px;
  font-weight: 400;
}
.page-nav-link.active {
  font-weight: 600;
}
.tabs {
  gap: 28px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 10px 0 14px;
  font-size: 14px;
  min-height: 44px;
}
.metadata-line {
  gap: 10px 18px;
  margin-bottom: 22px;
  font-size: 12px;
  line-height: 1.7;
}
.metadata-line>span:not(.pill) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.metadata-line svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.metadata-line>a {
  margin-left: auto;
}
.detail-grid {
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 40px;
}
.description {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink);
}
.detail-list {
  gap: 14px;
}
.detail-list>div {
  font-size: 13px;
  line-height: 1.75;
  gap: 16px;
}
.detail-list dt {
  min-width: 64px;
  color: var(--muted);
}
.detail-section {
  margin-top: 24px;
}
.detail-section>h3 {
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 10px;
  color: var(--secondary);
}
.project-summary {
  background: transparent;
  border: 0;
}
.project-summary>.panel-header {
  padding: 0 0 14px;
  border: 0;
}
.project-summary>.panel-body {
  padding: 0 0 4px;
}
.project-aside {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  gap: 28px;
}
.project-aside>.panel {
  border: 0;
  background: transparent;
}
.project-aside>.panel>.panel-header {
  border: 0;
  padding: 0 0 16px;
}
.project-aside>.panel>.panel-body {
  padding: 0;
}
.project-aside .panel-header .button {
  padding: 4px 8px;
  background: transparent;
}
.project-aside .page-actions {
  gap: 8px;
}
.project-aside .page-actions .button {
  padding: 6px 10px;
  min-height: 34px;
  font-size: 12px;
  background: transparent;
}
.project-edit {
  background: transparent;
  border-color: transparent;
  color: var(--secondary);
}
.project-edit:hover {
  color: var(--green);
  background: var(--pale);
}
.project-actions-menu>summary {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 13px;
  gap: 6px;
}
.project-actions-menu>summary svg {
  width: 16px;
  height: 16px;
}
.project-actions-menu .utility-link {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  font-size: 13px;
}
.project-actions-menu .project-cancel {
  color: var(--red);
}
.project-actions-menu .utility-dropdown {
  top: calc(100% + 6px);
}
.project-support {
  padding-top: 4px;
}
.project-support>summary {
  padding: 16px 0;
  color: var(--secondary);
  font-size: 14px;
}
.date-block {
  width: 38px;
  padding: 6px 2px;
  background: #e7eee7;
  font-size: 11px;
  line-height: 1.35;
}
.date-block strong {
  font-size: 19px;
  color: var(--green);
  font-weight: 500;
}
.deadline-row {
  gap: 12px;
  margin-bottom: 20px;
}
.deadline-row h3 {
  font-size: 13px;
  font-weight: 500;
}
.deadline-row .text-button {
  color: var(--ink);
}
.data-table {
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
}
.data-table th {
  padding: 12px 20px;
  background: #f7f9f6;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.data-table td {
  padding: 17px 20px;
  max-width: 360px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.data-table td:first-child {
  min-width: 180px;
  font-weight: 500;
  color: var(--ink);
}
.data-table td:first-child small {
  font-weight: 400;
}
.data-table td .text-link {
  font-size: 14px;
  font-weight: 500;
}
.data-table tbody tr:hover {
  background: #fafbf9;
}
.table-actions {
  gap: 8px;
  align-items: center;
}
.table-actions .button {
  min-height: 32px;
  padding: 5px 8px;
  border-color: transparent;
  background: transparent;
  color: var(--green);
  font-size: 12px;
}
.table-actions .button:hover {
  background: var(--pale);
  border-color: transparent;
}
.table-actions .button[data-action*="delete"], .table-actions .button[data-action*="revoke"] {
  color: var(--red);
}
.notice {
  font-size: 13px;
  line-height: 1.75;
  padding: 13px 16px;
  border: 0;
  border-left: 2px solid #92b4a5;
  margin-bottom: 20px;
}
.notice.error {
  border-left-color: var(--red);
}
.notice.warning {
  border-left-color: var(--amber);
}
.modal {
  width: min(660px,calc(100% - 40px));
  max-height: calc(100svh - 64px);
  box-shadow: 0 20px 80px rgba(23,48,35,.16);
  border: 1px solid #d1ddd3;
}
.modal:has(.field-row), .modal:has(.form-section) {
  width: min(760px,calc(100% - 40px));
}
.modal::backdrop {
  background: rgba(21,39,30,.32);
}
.modal-heading {
  padding: 24px 28px;
  align-items: center;
}
.modal-heading h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}
#modal-body {
  padding: 28px;
}
.modal form {
  gap: 22px;
}
.field {
  gap: 8px;
}
.field label, .form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
.field input, .field textarea, .field select {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  border-color: #cedbd0;
  line-height: 1.5;
  border-radius: 0;
}
.field textarea {
  min-height: 112px;
  line-height: 1.8;
}
.field textarea.short {
  min-height: 80px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--green);
  outline: 2px solid rgba(0,107,94,.12);
  outline-offset: 0;
}
.field-row {
  gap: 20px;
}
.form-actions {
  gap: 10px;
  padding-top: 20px;
  margin-top: 4px;
}
.form-actions .button, .modal .form-actions .button {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
}
.modal .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 20px 0 0;
  background: var(--surface);
}
.form-section {
  padding-top: 24px;
  margin-top: 4px;
}
.form-section>h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-section>p {
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.modal .notice {
  font-size: 13px;
}
.content-form, .svc-form {
  gap: 20px;
}
.content-form {
  max-width: none;
}
.svc-link-row {
  grid-template-columns: repeat(2,minmax(0,1fr));
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  gap: 12px;
}
.svc-review-card {
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.board {
  gap: 16px;
}
.board-column {
  background: #eaf0ea;
  padding: 14px;
}
.board-column>h3 {
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d3ded3;
}
.board-card {
  padding: 16px;
  border-color: #dce5dc;
}
.board-card h3 {
  font-size: 14px;
  line-height: 1.6;
}
.utility-dropdown {
  border-color: #d4dfd5;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(22,51,35,.1);
}
@media (max-width:1100px) {
  .topbar {
    gap: 28px;
    padding-inline: 28px;
  }
  .module-nav {
    gap: 22px;
  }
  .member-identity>div {
    display: none;
  }
  .content {
    padding-inline: 28px;
  }
  .workspace-footer {
    padding-inline: 28px;
  }
  .detail-grid {
    gap: 28px;
  }
}
@media (max-width:930px) {
  .topbar {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "brand tools" "modules modules";
    gap: 0;
    min-height: 0;
  }
  .app-brand, .topbar-right {
    min-height: 58px;
  }
  .module-nav {
    justify-content: flex-start;
    gap: 32px;
    overflow-x: auto;
  }
  .module-link {
    min-height: 44px;
    padding: 10px 2px;
  }
  .today-grid, .detail-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
  }
  .today-grid>.stack {
    display: flex;
    flex-direction: column;
  }
  .today-grid>.stack:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .today-grid>.stack:last-child .panel+.panel {
    border: 0;
    padding-top: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .stats-grid .stat-card {
    padding: 20px 16px;
    border: 0;
  }
  .stats-grid .stat-card:first-child {
    padding-left: 0;
  }
  .stats-grid .stat-card:last-child {
    padding-right: 0;
  }
  .project-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .project-aside {
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .project-aside>.panel:first-child {
    grid-row: span 2;
  }
  .hero-action {
    display: inline-flex;
  }
}
@media (max-width:700px) {
  h1 {
    font-size: 25px;
    line-height: 1.4;
    letter-spacing: -.4px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .app-brand {
    font-size: 14px;
    min-height: 56px;
  }
  .topbar-right {
    min-height: 56px;
    gap: 4px;
  }
  .module-nav {
    justify-content: space-between;
    gap: 0;
  }
  .module-link {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 10px 10px;
    font-size: 14px;
  }
  .module-link:first-child {
    padding-left: 0;
  }
  .module-link:last-child {
    padding-right: 0;
  }
  .app-header .icon-button {
    width: 28px;
    height: 32px;
  }
  .header-control {
    width: 28px;
    min-height: 32px;
    padding: 4px;
  }
  .header-control span {
    display: none;
  }
  .member-identity {
    margin-left: 2px;
  }
  .member-identity .avatar {
    width: 26px;
    height: 26px;
  }
  .header-logout {
    min-width: 24px;
    width: 24px;
    padding: 3px;
  }
  .header-logout svg {
    width: 16px;
    height: 16px;
  }
  .content {
    padding: 28px 20px 36px;
  }
  .workspace-footer {
    padding: 16px 20px 24px;
  }
  .page-heading {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
  }
  .page-heading>div:first-child {
    flex: 1;
    min-width: 0;
  }
  .page-heading:has(.page-actions > :nth-child(2))>div:first-child {
    flex-basis: 100%;
    width: 100%;
  }
  .page-heading .page-actions {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  .page-heading .page-actions:has(>.button:nth-child(3)) {
    display: flex;
    width: auto;
  }
  .button {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 13px;
  }
  .hero {
    min-height: 100px;
    padding: 20px;
    margin-bottom: 0;
    gap: 12px;
  }
  .hero h1, .hero h2 {
    font-size: 21px;
  }
  .hero-actions {
    flex-shrink: 0;
  }
  .hero-secondary {
    font-size: 12px;
    padding: 8px 0;
    min-height: 40px;
  }
  .hero-secondary svg {
    display: none;
  }
  .hero-action {
    display: none;
  }
  .stats-grid {
    position: relative;
    grid-template-columns: repeat(4,minmax(0,1fr));
    margin-bottom: 24px;
    row-gap: 0;
  }
  .stats-grid:has(.stat-note) {
    padding-bottom: 30px;
  }
  .stats-grid .stat-card,
  .stats-grid .stat-card:nth-child(odd),
  .stats-grid .stat-card:nth-child(even),
  .stats-grid .stat-card:nth-child(n+3) {
    padding: 18px 8px;
    border: 0;
  }
  .stats-grid .stat-card:first-child {
    padding-left: 0;
  }
  .stats-grid .stat-card:last-child {
    padding-right: 0;
  }
  .stats-grid .stat-label svg {
    display: none;
  }
  .stats-grid .stat-value {
    font-size: 26px;
  }
  .stats-grid .stat-note {
    position: absolute;
    left: 0;
    bottom: 12px;
    margin: 0;
    max-width: none;
    line-height: 1.5;
  }
  .stats-grid .stat-note::before {
    content: "临近截止：";
  }
  .stat-value {
    font-size: 28px;
    margin-top: 6px;
  }
  .stat-note {
    max-width: 130px;
    line-height: 1.5;
  }
  .today-grid>.stack:last-child {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
  }
  .today-grid>.stack:last-child .panel+.panel {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .grid, .stack {
    gap: 20px;
  }
  .panel-header {
    padding: 17px 18px;
    gap: 12px;
  }
  .panel-body {
    padding: 20px 18px;
  }
  .panel-header h2 {
    font-size: 16px;
  }
  .task-row {
    padding: 18px;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .task-copy {
    min-width: 0;
    flex: 1 1 160px;
  }
  .task-symbol {
    width: 24px;
    height: 24px;
    margin-top: 1px;
  }
  .task-meta {
    flex-direction: row;
    align-items: center;
    max-width: 100%;
    gap: 8px;
    font-size: 12px;
    margin-left: 36px;
    justify-content: flex-start;
  }
  .task-meta .pill {
    white-space: nowrap;
    text-align: left;
  }
  .task-meta .button {
    min-height: 36px;
    padding: 6px 10px;
  }
  .project-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .project-card {
    padding: 22px;
  }
  .project-card h3 {
    font-size: 17px;
  }
  .project-card-top {
    margin-bottom: 18px;
  }
  .page-nav, .tabs {
    gap: 26px;
    margin-bottom: 24px;
  }
  .tab, .page-nav-link {
    font-size: 14px;
  }
  .metadata-line {
    font-size: 12px;
    gap: 8px 14px;
    margin-bottom: 18px;
  }
  .metadata-line>a {
    margin-left: 0;
  }
  .project-aside {
    display: flex;
    gap: 28px;
    padding-top: 24px;
  }
  .project-summary>.panel-body {
    padding-bottom: 0;
  }
  .project-edit {
    padding: 10px 4px;
    min-height: 40px;
  }
  .project-actions-menu>summary {
    width: auto;
    min-height: 40px;
    padding: 10px 4px;
  }
  .project-actions-menu .utility-dropdown {
    right: 0;
    max-width: calc(100vw - 40px);
  }
  .project-actions-menu .utility-link {
    min-height: 44px;
  }
  .empty-state {
    padding: 28px 18px;
  }
  .toolbar {
    align-items: stretch;
    gap: 12px;
  }
  .search-box {
    max-width: none;
    width: 100%;
  }
  .responsive-table tbody tr {
    gap: 9px;
    padding: 20px 18px;
  }
  .responsive-table td[data-label] {
    font-size: 13px;
    grid-template-columns: 76px minmax(0,1fr);
    gap: 12px;
    min-width: 0;
    padding: 0;
  }
  .responsive-table td[data-label]:first-child {
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 4px;
    min-width: 0;
    font-weight: 550;
  }
  .responsive-table td[data-label]::before {
    font-size: 12px;
  }
  .responsive-table .table-actions {
    gap: 12px;
    margin-left: -8px;
  }
  .responsive-table .table-actions .button {
    min-height: 40px;
    font-size: 13px;
  }
  .modal, .modal:has(.field-row), .modal:has(.form-section) {
    width: calc(100% - 24px);
    max-height: calc(100svh - 32px);
  }
  .modal-heading {
    padding: 20px;
  }
  .modal-heading h2 {
    font-size: 20px;
  }
  #modal-body {
    padding: 22px 20px;
  }
  .modal form, .content-form, .svc-form {
    gap: 20px;
  }
  .field input, .field textarea, .field select {
    font-size: 16px;
    min-height: 46px;
  }
  .field-row {
    gap: 16px;
  }
  .modal .form-actions {
    bottom: 0;
    padding-top: 18px;
  }
  .form-actions .button, .modal .form-actions .button {
    min-height: 44px;
    padding: 10px 15px;
  }
  .svc-link-row {
    grid-template-columns: minmax(0,1fr);
    padding: 16px 0;
  }
  .svc-review-card {
    padding: 18px 0;
  }
  .detail-list>div {
    gap: 18px;
  }
}
@media (max-width:360px) {
  .topbar {
    padding-inline: 16px;
  }
  .content {
    padding-inline: 16px;
  }
  .app-brand {
    font-size: 13px;
  }
  .topbar-right {
    gap: 2px;
  }
  .app-header .icon-button {
    width: 26px;
  }
  .member-identity .avatar {
    width: 24px;
    height: 24px;
  }
  .header-control {
    width: 26px;
  }
}


/* Native management forms follow the same rhythm as collaborative forms. */
.content > .panel + .panel {
  margin-top: 24px;
}
.panel-body > form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.panel:has(#management-profile-form) {
  max-width: 760px;
}
fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
fieldset.field legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--secondary);
}

#management-profile-status:empty {
  display: none;
}
.modal form > .notice, .panel-body > form > .notice {
  margin-bottom: 0;
}

/* One focused entrance, sharing the workbench's square and jade primitives. */
.login-screen {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0;
  background: var(--bg);
}
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  min-height: 64px;
  padding: 0 max(40px,calc((100% - 1200px)/2));
  border: 0;
  background: var(--green);
  color: #fff;
  gap: 20px;
}
.login-header .wordmark {
  gap: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
}
.login-header .text-link {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.login-header .text-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.login-header :focus-visible {
  outline-color: #fff;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: center;
  justify-items: center;
  flex: 1;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 64px 24px 88px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  box-shadow: none;
}
.login-heading {
  margin-bottom: 32px;
}
.login-card .login-welcome {
  color: var(--green);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.6;
  margin: 0 0 7px;
  letter-spacing: .3px;
}
.login-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 600;
}
.login-card #passkey-login {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 550;
}
.login-card #login-icon {
  display: inline-flex;
  color: inherit;
}
.login-card #login-icon svg {
  width: 18px;
  height: 18px;
}
.login-card .login-button-arrow {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
}
.login-card #login-error {
  margin: 16px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.login-recovery {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.login-card #recovery-code-login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  margin: 0;
  color: var(--green);
  font-size: 13px;
}
@media (max-width:700px) {
  .login-header {
    min-height: 56px;
    padding: 0 20px;
    gap: 12px;
  }
  .login-header .wordmark {
    font-size: 13px;
  }
  .login-header .text-link {
    font-size: 12px;
  }
  .login-layout {
    width: 100%;
    max-width: none;
    gap: 0;
    padding: 40px 20px 56px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 24px;
  }
}
@media (max-width:360px) {
  .login-header {
    padding-right: 16px;
    padding-left: 16px;
  }
  .login-layout {
    padding: 32px 16px 48px;
  }
  .login-card {
    padding: 24px;
  }
  .login-card h1 {
    font-size: 24px;
  }
}

/* Operation feedback is a slim full-width strip adjoining the header. */
.toast {
  top:68px;
  bottom:auto;
  left:0;
  right:0;
  transform:none;
  width:auto;
  min-width:0;
  max-width:none;
  padding:6px 16px;
  border:0;
  border-radius:0;
  background:#f0f6f3;
  color:#20594d;
  box-shadow:none;
  font-size:12px;
  font-weight:500;
  line-height:1.5;
  text-align:center;
  overflow-wrap:anywhere;
  pointer-events:none;
}
.toast.error {
  background:#fbf0ed;
  color:#8f3327;
}

/* Jade navigation with white labels; dropdown content keeps its own palette. */
.app-header { background:#006b5e; color:#fff; border:0; }
.app-header .topbar { background:transparent; }
.app-header .app-brand,
.app-header .module-link,
.app-header .header-control,
.app-header .icon-button,
.app-header .header-logout,
.app-header .member-identity { color:#fff; }
.app-header .module-link { opacity:.8; }
.app-header .module-link.active { color:#fff; opacity:1; border-bottom-color:#fff; }
.app-header .module-link:hover { color:#fff; opacity:1; }
.app-header .header-control:hover,
.app-header .utility-menu[open]>.header-control,
.app-header .icon-button:hover,
.app-header .member-identity:hover { background:rgba(255,255,255,.1); color:#fff; }
.app-header .member-identity .avatar { background:rgba(255,255,255,.15); color:#fff; }
.app-header :focus-visible { outline-color:#fff; }
.app-header .utility-dropdown :focus-visible { outline-color:var(--green); }

/* One compact, full-width navigation drawer for every permitted destination. */
.app-header .topbar { display:block; min-height:64px; padding:0 40px; }
.app-header .header-unified-menu { width:100%; position:static; }
.app-header .header-menu-trigger { display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; min-height:64px; padding:0; color:#fff; font-size:14px; line-height:1.4; cursor:pointer; white-space:nowrap; }
.app-header .header-menu-trigger .app-brand { min-height:0; font-size:14px; }
.header-identity { display:flex; align-items:center; gap:9px; min-width:0; }
.app-header .header-member-name { max-width:160px; overflow:hidden; text-overflow:ellipsis; }
.menu-chevron { width:6px; height:6px; flex:none; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); margin-top:-4px; opacity:.75; }
.utility-menu[open]>.header-menu-trigger .menu-chevron { transform:rotate(225deg); margin-top:3px; }
.app-header .header-menu-trigger:hover { background:transparent; color:#fff; }
.app-header .header-unified-menu>.utility-dropdown { top:100%; left:0; right:0; width:100%; max-width:none; max-height:calc(100vh - 64px); max-height:calc(100dvh - 64px); overflow-y:auto; padding:0; border:0; box-shadow:0 10px 20px rgba(20,50,40,.05); }
.header-panel-inner { width:100%; max-width:1280px; margin:0 auto; padding:24px 40px 28px; }
.header-unified-grid { display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:48px; align-items:start; }
.app-header .utility-link { display:flex; width:100%; justify-content:flex-start; min-height:40px; padding:8px 0; border:0; background:transparent; color:var(--ink); text-align:left; font-family:inherit; font-size:14px; font-weight:400; }
.app-header .header-primary-links .utility-link { font-size:20px; font-weight:500; }
.app-header .utility-link:hover,.app-header .utility-link.active { background:transparent; color:var(--green); }
.app-header .utility-link.active { font-weight:600; }
.header-panel-label { margin:0 0 8px; color:var(--muted); font-size:12px; font-weight:400; }
.header-menu-section:empty { display:none; }
.app-header .header-menu-logout { color:#a43b2e; margin-top:4px; }
.member-unread-dot { width:5px; height:5px; flex:none; background:#cce7de; border-radius:50%; }
@media(max-width:768px) {
 .app-header .topbar { padding-inline:20px; min-height:56px; }
 .app-header .header-menu-trigger { min-height:56px; font-size:13px; }
 .app-header .header-menu-trigger .app-brand { font-size:13px; }
 .app-header .header-member-name { max-width:112px; }
 .app-header .header-unified-menu>.utility-dropdown { max-height:calc(100vh - 56px); max-height:calc(100dvh - 56px); }
 .header-panel-inner { padding:20px 20px 24px; }
 .header-unified-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
 .header-primary-links { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
 .app-header .header-primary-links .utility-link { font-size:18px; }
}
@media(max-width:360px) {
 .app-header .topbar { padding-inline:16px; }
 .app-header .header-member-name { max-width:88px; }
 .header-panel-inner { padding-inline:16px; }
 .header-unified-grid { gap:20px; }
}

/* The complete jade header is one explicit, keyboard-accessible hot zone. */
.app-header .topbar { max-width:none; padding:0; }
.app-header .header-menu-trigger { border:0; background:transparent; font-family:inherit; padding-inline:max(40px,calc((100% - 1200px)/2)); }
.app-header .header-menu-trigger .app-brand { font-weight:600; }
.app-header .header-unified-menu>.utility-dropdown[hidden] { display:none; }
@media(max-width:768px) {
 .app-header .header-menu-trigger { padding-inline:20px; }
}
@media(max-width:360px) {
 .app-header .header-menu-trigger { padding-inline:16px; }
}

/* Reveal within the drawer bounds; never translate its surface over the header. */
.app-header .header-unified-menu>.utility-dropdown { clip-path:inset(0); overflow-x:hidden; }

/* Every route reports progress in a slim strip adjoining the header. */
.route-loading {
  position:fixed; top:64px; left:0; right:0; z-index:19;
  display:flex; align-items:center; justify-content:center; gap:8px;
  min-height:30px; padding:4px 20px; overflow:hidden;
  background:#e5f1ec; color:var(--green); font-size:12px; line-height:22px;
  border:0; box-shadow:none; pointer-events:none;
}
.route-loading::after {
  content:""; position:absolute; left:0; bottom:0; width:35%; height:2px;
  background:#438e7c; animation:route-strip-progress 1s ease-in-out infinite;
}
.route-loading .spinner { width:13px; height:13px; }
.route-loading[data-state="complete"] .spinner { animation:none; border-color:transparent; border-radius:0; width:10px; height:6px; border-left:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(-45deg); }
.route-loading[data-state="complete"]::after { width:100%; transform-origin:left; animation:route-strip-finish .35s ease-out both; }
@keyframes route-strip-finish { from {transform:scaleX(.08);} to {transform:scaleX(1);} }
@keyframes route-strip-progress { from {transform:translateX(-110%);} to {transform:translateX(390%);} }
@media(max-width:768px) { .route-loading { top:56px; } }
@media(prefers-reduced-motion:reduce) { .spinner,.route-loading::after,.route-loading[data-state="complete"]::after { animation:none; } }

/* Dialogs enter softly without scaling text or changing their layout bounds. */
.modal[open] { animation:workspace-dialog-enter .3s cubic-bezier(.2,.65,.25,1) both; }
.modal[open]::backdrop { animation:workspace-backdrop-enter .3s ease-out both; }
@keyframes workspace-dialog-enter {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes workspace-backdrop-enter {
  from { opacity:0; }
  to { opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
  .modal[open], .modal[open]::backdrop { animation:none; }
}

.chain-row.flow-template-row { grid-template-columns:minmax(0,1fr) auto; align-items:center; }

.chain-row.flow-template-reviewer { grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto; }
@media(max-width:480px) {
  .chain-row.flow-template-reviewer { grid-template-columns:minmax(0,1fr) auto; }
  .flow-template-reviewer [data-chain-reviewer] { grid-row:2; grid-column:1/-1; }
  .flow-template-reviewer .chain-controls { grid-column:2; grid-row:1; }
}

.route-loading[data-state="error"] { background:#f8ebe8; color:var(--red); }
.route-loading[data-state="error"] .spinner,.route-loading[data-state="error"]::after { display:none; }

/* Without an organization section, keep the work and personal menus balanced. */
.header-unified-grid.without-management { grid-template-columns:1.1fr 1fr; }

/* Project task planning: one readable chain per task. */
.project-tree { --branch-indent: clamp(12px, 2.8vw, 28px); --branch-line: #b8cfc1; }
.project-tree-root, .project-tree-lead, .project-tree-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.project-tree-root { background: var(--green); color: #fff; font-size: 16px; }
.project-tree-lead { background: #dceee5; color: var(--green); }
.project-tree-group { background: #edf3ef; font-size: 14px; }
.project-tree-branches { list-style: none; margin: 0; padding-inline-start: 8px; }
.project-tree-branches > li {
  position: relative;
  min-width: 0;
  padding: 12px 0 0 var(--branch-indent);
}
.project-tree-branches > li::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--branch-indent);
  border-inline-start: 1px solid var(--branch-line);
  background: linear-gradient(var(--branch-line), var(--branch-line)) left 27px / 100% 1px no-repeat;
  pointer-events: none;
}
.project-tree-branches > li:last-child::before { bottom: auto; height: 28px; }
.project-tree-branches > li > p { margin: 4px 0 0; }
.project-tree-task { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); }
.project-tree-assignee { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.task-plan-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-plan-title .text-button { min-width: 0; text-align: left; font-weight: 600; overflow-wrap: anywhere; }
.task-plan-title .pill { flex-shrink: 0; }
.task-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.task-chain-step { padding: 4px 8px; background: #edf3ef; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.task-chain-step + .task-chain-step::before { content: '→'; color: var(--green); margin-right: 8px; }
.task-chain-step.current { background: #dceee5; color: var(--green); font-weight: 600; }
.task-chain-step small { margin-inline-start: 6px; font-size: 11px; }
.project-tree-group-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.project-tree-group-header .button { min-height: 34px; padding: 5px 9px; }

select:not([multiple]):not([size]) {
  appearance: none;
  min-height: 40px;
  padding-inline: 10px 32px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%232b665e' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink);
}
select:not([multiple]):not([size]):focus-visible {
  border-color: var(--green);
  outline: 2px solid rgba(0,107,94,.22);
  outline-offset: 1px;
}
select:not([multiple]):not([size]):disabled { opacity: .65; }

@supports (appearance: base-select) and selector(select::picker(select)) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker(select) {
    appearance: base-select;
  }
  select:not([multiple]):not([size]) {
    padding-inline: 10px;
    background: var(--surface);
  }
  select:not([multiple]):not([size])::picker-icon { color: var(--green); }
  select:not([multiple]):not([size])::picker(select) {
    margin-block: 4px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(23, 53, 44, .12);
  }
  select:not([multiple]):not([size]) option { padding: 8px 10px; }
  select:not([multiple]):not([size]) option:is(:hover, :focus-visible, :checked) {
    background: #edf3ef;
    color: var(--green);
  }
}
.modal:has(.plan-preview) { width: min(1000px,calc(100% - 40px)); }
.plan-preview iframe { display:block; width:100%; height:min(70vh,760px); border:0; background:#f2f5f2; }
.plan-preview-actions { display:flex; justify-content:flex-end; padding:12px 20px; }

/* Short responsibility forms and direct project task trees. */
.responsibility-choices{display:flex;flex-wrap:wrap;gap:8px 24px;padding:12px 0}
.responsibility-choices .check-label{margin:0;white-space:nowrap}
#task-approval-preview:empty{display:none}
.chain-row.flow-template-row{grid-template-columns:minmax(0,1fr) auto}
.project-tree-task .approval-flow{margin-top:16px;flex-wrap:wrap}
.project-tree-task .approval-step{min-width:0;flex:1 1 130px}
.project-tree-task .task-plan-title .text-button{overflow-wrap:anywhere}
#modal-body .detail-list dd{min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){.responsibility-choices{gap:10px 16px}.project-tree-branches{padding-left:16px}.project-tree-task .approval-step{flex-basis:100%}.form-actions{flex-wrap:wrap}.form-actions .button{flex:1;min-width:72px}}
.project-tree-task .approval-flow{flex-direction:row;gap:10px;align-items:stretch}
.project-tree-task .approval-step{flex:1 1 145px;padding:10px;background:var(--bg)}
.project-tree-task .approval-step::before{display:none}
@media(max-width:640px){.project-tree-task .approval-step{flex:1 1 100%;padding:10px}}
