@font-face {
  font-family: Manrope;
  src: url(/static/manrope.ttf) format("truetype");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1d302a;
  --brand: #214d3e;
  --lime: #d5f296;
  --muted: #596b63;
  --line: #dae3dc;
  --canvas: #f5f7f4;
  --paper: #fff;
  --soft: #eff4ed;
  --a: #c3dcff;
  --b: #d9d0f5;
  --c: #ffd8b5;
  --radius: 16px;
  --shadow: 0 2px 5px #23493208;
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.55;
}
.brand b,
.hero-number,
.metric strong,
.calc-value {
  font-family: Manrope, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
a {
  color: var(--brand);
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #65934c;
  outline-offset: 2px;
}
.ic {
  flex: none;
  vertical-align: middle;
}
.initial {
  padding: 3rem;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}
.sidebar {
  background: #fbfcfa;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 30px 17px 15px;
  display: flex;
  flex-direction: column;
  z-index: 12;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 9px;
  color: var(--ink);
  width: max-content;
}
.brand b,
.brand small,
.profile b,
.profile small {
  display: block;
}
.brand b {
  font-size: 21px;
  letter-spacing: -1px;
  line-height: 1.12;
  font-weight: 800;
}
.brand small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.1em;
}
.sidebar nav {
  margin-top: 37px;
  overflow: auto;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-heading .drawer-close { display: none; }
.nav-group {
  margin: 0 0 24px;
}
.nav-label {
  font-size: 12px;
  font-weight: 650;
  color: #69786f;
  letter-spacing: 0.08em;
  padding: 0 13px;
  margin: 0 0 9px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  margin: 3px 0;
  color: #495c52;
  font-size: 14px;
  font-weight: 610;
  border-radius: 10px;
  min-height: 40px;
}
.nav-link:hover {
  background: var(--soft);
}
.nav-link.selected {
  background: #233e32;
  color: #fff;
}
.nav-link.selected .ic {
  color: var(--lime);
}
.sidebar-foot {
  margin-top: auto;
}
.demo-marker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64746a;
  margin: 16px 10px;
}
.demo-marker i {
  width: 7px;
  height: 7px;
  border: 1.5px solid #779868;
  border-radius: 50%;
}
.profile,
.profile-link {
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile {
  border-top: 1px solid var(--line);
  padding: 16px 2px 0;
  justify-content: space-between;
}
.profile-initial,
.avatar {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  border-radius: 11px;
  font-weight: 750;
  background: #e0ebd6;
  color: #3e5944;
}
.profile b {
  font-size: 13px;
}
.profile small {
  font-size: 11px;
  color: var(--muted);
}
.workspace {
  min-width: 0;
}
.topbar {
  border-bottom: 1px solid var(--line);
  min-height: 63px;
  padding: 0 clamp(20px, 3.6vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafcf9;
}
.crumb,
.top-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.crumb strong {
  color: var(--ink);
  font-weight: 650;
}
.top-identity {
  gap: 7px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.icon-btn:hover {
  background: #e9efe8;
}
#mobile-menu,
.shade {
  display: none;
}
#workspace-content {
  width: min(100%, 1620px);
  margin: auto;
  padding: clamp(24px, 3vw, 42px) clamp(20px, 3.6vw, 58px) 58px;
  animation: entry 0.2s ease-out;
}
#workspace-content.restoring-list { animation: none; }
#workspace-content:focus { outline: none; }
.returned-link:focus { outline: 2px solid #65934c; outline-offset: 2px; }
.top-identity:has(.route-status) > :not(.route-status) { display: none; }
.top-identity .route-status { color: var(--muted); font-size: 13px; }
body:has(dialog:modal), body:has(.shell.menu-open) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dialog-in 150ms ease-out; }
  dialog[open]::backdrop { animation: backdrop-in 140ms ease-out; }
  .nav-link { transition: background-color 130ms ease-out, color 130ms ease-out; }
}
@keyframes dialog-in {
  from { opacity: 0; translate: 0 5px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 780;
  line-height: 1.24;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 16px;
}
.muted,
.hint,
.subtle {
  color: var(--muted);
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.page-head p,
.section-intro {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.actions,
.head-actions,
.toolbar,
.inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn,
button.primary,
button.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid #cdd8d0;
  background: var(--paper);
  box-shadow: 0 1px 2px #17392107;
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.42;
  transition:
    background 0.14s,
    transform 0.14s;
}
.btn:hover,
button.secondary:hover {
  background: #edf3eb;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary,
button.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn.primary:hover,
button.primary:hover {
  background: #173e30;
}
.btn.small {
  min-height: 31px;
  padding: 4px 10px;
  font-size: 13px;
}
.btn.quiet {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}
.btn.danger {
  color: #973e34;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel + .panel {
  margin-top: 16px;
}
.panel-head,
.panel-title,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.field {
  display: grid;
  align-content: start;
  gap: 7px;
  font-size: 14px;
  font-weight: 620;
}
.field input,
.field textarea,
.field select,
input.input,
select.input,
textarea.input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #bfcfc3;
  background: #fff;
  font-weight: 450;
  min-height: 40px;
}
.field textarea {
  resize: vertical;
  min-height: 78px;
}
.field small {
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
}
select {
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e8eee8;
}
th {
  font-size: 12px;
  color: var(--muted);
  background: #f5f8f4;
  font-weight: 650;
}
td {
  vertical-align: middle;
}
tr:last-child > td {
  border-bottom: 0;
}
.empty,
.state-panel {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.state-panel h2 {
  color: var(--ink);
  margin-bottom: 8px;
}
.state-panel .btn {
  margin-top: 18px;
}
.tag,
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #edf2ee;
  color: #43584b;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.status.ok,
.tag.green {
  background: #e7f1db;
  color: #456236;
}
.status.pending,
.tag.amber {
  background: #fff1d7;
  color: #835a1f;
}
.status.unclaimed {
  background: #eaf0ee;
  color: #4d635b;
}
.context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  flex-wrap: wrap;
}
.project-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  min-width: 0;
}
.project-switch > .ic {
  color: #667b6d;
}
.project-switch select {
  max-width: min(65vw, 430px);
  padding: 3px 3px;
  background: transparent;
  border: 0;
  font-weight: 700;
  font-size: 16px;
}
.settle-date {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.ledger-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(320px, 1.25fr);
  align-items: center;
  gap: 35px;
  border-radius: 17px;
  padding: 25px clamp(22px, 2.4vw, 37px);
  color: #fff;
  background: linear-gradient(108deg, #1c382f, #294d3b);
  position: relative;
  overflow: hidden;
}
.ledger-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    128deg,
    transparent 0 20px,
    #ffffff06 21px,
    transparent 22px
  );
  mask-image: linear-gradient(105deg, transparent 40%, #000);
}
.ledger-hero > * {
  position: relative;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ebf2e8;
  font-weight: 650;
  font-size: 14px;
}
.hero-label .ic {
  color: var(--lime);
}
.hero-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(34px, 4.2vw, 65px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.2;
  margin: 6px 0;
}
.hero-number em {
  color: #d6e9d6;
  font-style: normal;
  font-size: 0.52em;
}
.hero-note,
.composition-caption {
  font-size: 12px;
  color: #d1e1d2;
}
.composition {
  padding: 10px 0 7px;
}
.composition-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 8px;
}
.composition-caption strong {
  color: #fff;
  font-size: 14px;
}
.composition-bar {
  display: flex;
  height: 12px;
  gap: 4px;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff16;
}
.composition-bar i {
  display: block;
  min-width: 0;
}
.a-bg {
  background: var(--a);
}
.b-bg {
  background: var(--b);
}
.c-bg {
  background: var(--c);
}
.composition-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.composition-legend div {
  border-right: 1px solid #ffffff24;
}
.composition-legend div:last-child {
  border: 0;
}
.composition-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e8f0e7;
  font-size: 12px;
}
.composition-legend b {
  display: block;
  margin-top: 3px;
  font-size: clamp(14px, 1.35vw, 21px);
  letter-spacing: -0.035em;
}
.dot-square {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 2px;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 23px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: white;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 620;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #49664f;
  background: #edf3eb;
}
.metric strong {
  font-size: 28px;
  letter-spacing: -0.05em;
  line-height: 1.25;
}
.metric small {
  margin-left: 5px;
  font-size: 12px;
  color: var(--muted);
}
.roster-panel {
  padding: 0;
  overflow: hidden;
}
.roster-head {
  padding: 20px 21px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.roster-head h2 span {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 8px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.searchfield {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}
.searchfield input {
  border: 0;
  outline: 0 !important;
  background: none;
  width: 140px;
  font-size: 13px;
}
.filters select {
  font-size: 13px;
  border-radius: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.roster-table {
  min-width: 680px;
  font-variant-numeric: tabular-nums;
}
.roster-table th:first-child,
.roster-table td:first-child {
  padding-left: 21px;
}
.roster-table td {
  font-size: 13px;
}
.number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.person-cell {
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}
.person-cell strong {
  display: block;
  font-size: 14px;
}
.person-cell small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  font-size: 13px;
}
.tone-1 {
  background: #e4e3f5;
  color: #5c537d;
}
.tone-2 {
  background: #f6e5d8;
  color: #825737;
}
.tone-3 {
  background: #dfecf5;
  color: #4b647d;
}
.tone-4 {
  background: #ecedda;
  color: #636b39;
}
.expand-person[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
.detail-cell {
  padding: 0 !important;
  background: #f6f8f4;
}
.detail-box {
  display: grid;
  gap: 10px;
  padding: 15px 20px;
}
.channel-label {
  font-size: 13px;
  color: #526358;
}
.work-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.work-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.work-head a,
.text-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.work-head small,
.small-note {
  font-size: 12px;
  color: var(--muted);
}
.abc-modules {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 10px;
}
.abc-module {
  display: block;
  min-width: 34px;
}
.abc-module summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  font-weight: 750;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--a);
  color: #283b53;
}
.abc-module:nth-child(2) summary {
  background: var(--b);
  color: #463759;
}
.abc-module:nth-child(3) summary {
  background: var(--c);
  color: #684526;
}
summary::-webkit-details-marker {
  display: none;
}
.abc-module[open] {
  flex-basis: 100%;
}
.abc-module[open] .module-body {
  border-left: 2px solid #c2d3c1;
  margin: 7px 0;
  padding-left: 10px;
}
.module-body p {
  font-size: 13px;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.module-body small {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.pending-line {
  padding: 10px 21px;
  background: #fafbf8;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.project-list,
.case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.task-card,
.case-item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}
.task-card + .task-card,
.case-item + .case-item {
  margin: 0;
}
.project-stamp {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 23px;
}
.project-stamp i {
  width: 7px;
  border-radius: 2px;
  transform: skew(-12deg);
  height: 11px;
  background: #87a6cb;
}
.project-stamp i:nth-child(2) {
  height: 17px;
  background: #ac98ce;
}
.project-stamp i:nth-child(3) {
  height: 23px;
  background: #d8a278;
}
.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.task-card p,
.case-item p {
  color: var(--muted);
  font-size: 14px;
}
.task-title {
  font-size: 21px;
}
.task-bottom {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.project-income {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
}
.project-income > strong {
  color: var(--brand);
  font: 800 clamp(27px, 2.4vw, 34px)/1.2 Manrope, sans-serif;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.project-income strong small { font-size: .55em; }
.project-income > small { font-size: 12px; }
.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.tabs a {
  font-size: 14px;
  border-radius: 8px;
  padding: 6px 13px;
  color: var(--muted);
}
.tabs a.active {
  background: #deead9;
  color: #214d37;
  font-weight: 700;
}
.task-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  align-items: start;
  gap: 16px;
}
.task-detail > .panel {
  margin: 0;
}
.calc-value {
  font-size: 36px;
  letter-spacing: -0.05em;
  font-weight: 750;
  margin: 10px 0 4px;
}
.backlink {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.backlink svg {
  transform: rotate(180deg);
}
#notice {
  z-index: 1000;
  position: fixed;
  bottom: 23px;
  left: 50%;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 0.2s;
  max-width: 90vw;
}
#notice.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.external-demo {
  max-width: 550px;
  margin: 12vh auto;
}
.external-demo p {
  margin: 16px 0;
}
.mobile-roster {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes entry {
  from {
    opacity: 0.5;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1650px) {
  .shell {
    grid-template-columns: 245px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .metric {
    padding: 12px;
  }
  .metric-strip {
    gap: 8px;
  }
  .ledger-hero {
    gap: 20px;
  }
  .roster-head {
    align-items: flex-start;
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 30;
    left: 0;
    width: min(272px, 85vw);
    transform: translateX(-105%);
    transition: transform 180ms ease-out;
  }
  .sidebar-heading .drawer-close, #mobile-menu {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .shade {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: #13281c64;
    display: block;
    width: 100%;
    height: 100%;
  }
  #mobile-menu {
    display: inline-flex;
  }
  .topbar {
    min-height: 52px;
    padding: 0 14px;
  }
  #workspace-content {
    padding: 23px 17px 42px;
  }
  .project-list,
  .case-list {
    gap: 12px;
  }
  .nav-link {
    min-height: 43px;
  }
  .form-grid {
    gap: 12px;
  }
}
@media (max-width: 620px) {
  .ledger-hero {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 19px;
  }
  .composition {
    padding: 0;
  }
  .composition-legend {
    margin-top: 8px;
  }
  .composition-caption {
    margin-bottom: 6px;
  }
  .composition-bar {
    height: 8px;
  }
  .hero-number {
    font-size: 44px;
  }
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0 16px;
  }
  .metric-top {
    font-size: 13px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric {
    padding: 10px 13px;
  }
  .status {
    font-size: 11px;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 17px;
  }
  .page-head h1 {
    font-size: 29px;
  }
  .page-head .btn {
    font-size: 13px;
  }
  .context-row {
    align-items: flex-start;
    gap: 4px;
    flex-direction: column;
  }
  .settle-date {
    font-size: 12px;
  }
  .roster-head {
    padding: 16px 13px 12px;
  }
  .filters {
    width: 100%;
  }
  .searchfield {
    flex: 1;
  }
  .searchfield input {
    width: 100%;
    min-width: 0;
  }
  .project-list,
  .case-list,
  .task-detail,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel {
    padding: 17px;
  }
  .panel.roster-panel {
    padding: 0;
  }
  .roster-panel > .table-wrap {
    display: none;
  }
  .mobile-roster {
    display: block;
  }
  .mobile-person {
    border-top: 1px solid var(--line);
    padding: 12px 13px;
  }
  .mobile-person > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    font-size: 14px;
    list-style: none;
  }
  .mobile-person[open] .detail-box {
    padding: 13px 0 0;
  }
  .top-identity {
    font-size: 12px;
  }
  .task-card,
  .case-item {
    padding: 17px;
  }
  .detail-box {
    padding: 12px;
  }
  .external-demo {
    margin: 8vh 15px;
  }
  .roster-head h2 span {
    display: inline;
  }
  .crumb {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.work-foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.calc-field,
.calc-caption,
.description {
  margin-top: 16px;
}
.description {
  margin-bottom: 16px;
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 14px;
}
.receipt {
  margin-top: 17px;
}
.receipt .detail-box {
  padding-left: 0;
  padding-right: 0;
}
.creator-total {
  display: block;
}
.creator-total .hero-number strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}
.creator-total + .project-list, .creator-total + .state-panel {
  margin-top: 16px;
}
.case-item > .small-note {
  margin-top: auto;
}

/* Cross-project totals, open recruitment briefs and case studies. */
.portfolio-projects {
  padding: 0;
  overflow: hidden;
}
.portfolio-projects > .panel-head {
  padding: 19px 22px;
}
.portfolio-rows {
  border-top: 1px solid var(--line);
}
.portfolio-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.7fr) minmax(90px, 0.8fr) minmax(
      60px,
      0.5fr
    ) minmax(90px, 0.7fr) 16px;
  align-items: center;
  gap: 15px;
  padding: 15px 22px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.portfolio-row:last-child {
  border-bottom: 0;
}
.portfolio-row:hover {
  background: #f4f8f1;
}
.portfolio-row strong,
.portfolio-row b,
.portfolio-row small {
  display: block;
}
.portfolio-row small {
  color: var(--muted);
  font-size: 12px;
}
.portfolio-name strong {
  font-size: 16px;
}
.portfolio-vol b {
  font-size: 14px;
  font-weight: 600;
}
.portfolio-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.portfolio-row > .ic {
  color: #7e9283;
}
.expanded-tasks {
  display: grid;
  gap: 16px;
}
.expanded-task + .expanded-task {
  margin: 0;
}
.expanded-task {
  padding: clamp(18px, 2vw, 28px);
}
.task-overline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.expanded-task-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
  gap: clamp(22px, 3vw, 50px);
  align-items: start;
}
.task-prose h3 {
  font-size: 14px;
  margin: 15px 0 4px;
}
.task-prose > p {
  font-size: 14px;
  color: var(--muted);
  white-space: pre-line;
  margin: 7px 0;
  line-height: 1.65;
}
.task-signup-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 14px;
}
.task-details {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--brand);
  font-size: 14px;
}
.task-details:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.id-dialog.signup-dialog {
  width: min(360px, calc(100% - 32px));
  background: var(--paper);
  overscroll-behavior: contain;
}
.signup-dialog > header h2 {
  font-size: 20px;
}
.signup-dialog > header form {
  margin: 0;
}
.signup-dialog > header button {
  width: 40px;
  height: 40px;
}
.signup-sheet {
  padding: 0 22px 24px;
  text-align: center;
}
#signup-qr-project {
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.signup-sheet figure {
  margin: 16px auto 0;
}
.signup-code {
  display: grid;
  place-items: center;
  width: min(250px, 100%);
  aspect-ratio: 1;
  margin: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.signup-code img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.signup-code img[hidden],
.signup-code button[hidden] {
  display: none;
}
.signup-code-feedback {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.signup-code[data-state="loading"] .signup-code-feedback::before,
.calc-working::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #bdcebe;
  border-top-color: var(--brand);
  border-radius: 50%;
}
.signup-code[data-state="error"] .signup-code-feedback {
  color: #87442f;
}
.signup-sheet figcaption,
.signup-error {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}
.signup-sheet > a {
  margin-top: 16px;
}
.estimate-box {
  padding: 18px 19px;
  background: #eff4ec;
  border: 1px solid #dce6d8;
  border-radius: 12px;
}
.estimate-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.estimate-box .calc-field {
  margin-top: 12px;
  font-size: 13px;
}
.calc-base,
.calc-placeholder {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.calc-base a {
  text-decoration: underline;
}
.estimate-result .calc-caption {
  border-top: 1px solid #d2dfcf;
  padding-top: 13px;
  margin-top: 13px;
}
.estimate-result .calc-value {
  margin: 4px 0;
  line-height: 1.15;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}
.calc-feedback {
  min-height: 54px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}
.calc-working {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.calc-retry {
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
}
.calc-retry[aria-disabled="true"] { opacity: .55; }
.estimate-result[data-state="error"] .calc-feedback { color: #87442f; }
.estimate-box:focus-within { border-color: #8eaa92; }
.task-detail-calculator {
  padding: 0;
  overflow: hidden;
}
.task-detail-calculator .estimate-box {
  border: 0;
}
.fee-lines {
  margin: 7px 0;
}
.fee-lines > div {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}
.fee-lines dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}
.fee-lines dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.fee-letter {
  min-width: 21px;
  height: 21px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  color: #30423a;
}
.abc-module summary {
  font-size: 12px;
  font-weight: 650;
  padding: 4px 8px;
  gap: 6px;
  min-height: 29px;
}
.abc-module summary::after {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.abc-module[open] summary::after { transform: translateY(1px) rotate(225deg); }
.abc-module[open] summary { box-shadow: inset 0 0 0 1px currentColor; }
@media (pointer: coarse) {
  .abc-module summary, .calc-retry { min-height: 36px; }
}
@media (prefers-reduced-motion: no-preference) {
  .abc-module summary::after, .case-disclosure .ic { transition: transform 160ms ease-out; }
  .abc-module[open] > .module-body,
  .case-earnings[open] > .case-breakdown,
  .estimate-result[data-state="ready"] .calc-value { animation: earning-reveal 160ms ease-out; }
  .signup-code[data-state="loading"] .signup-code-feedback::before,
  .calc-working::before { animation: earning-loading 900ms linear infinite; }
  .estimate-box { transition: border-color 140ms ease-out; }
}
@keyframes earning-reveal {
  from { opacity: .4; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}
@keyframes earning-loading {
  to { transform: rotate(360deg); }
}
.abc-modules {
  column-gap: 5px;
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(294px, 100%), 1fr));
  gap: 17px;
  align-items: start;
}
.case-story {
  padding: 0;
  overflow: hidden;
}
.case-story + .case-story {
  margin: 0;
}
.case-story > header {
  padding: 15px 18px;
}
.case-story h2 {
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.case-work {
  margin: 0;
}
.case-player {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1b2422;
}
.case-player > * {
  position: absolute;
  inset: 0;
}
.case-player a,
.case-player video,
.case-player img {
  display: block;
  width: 100%;
  height: 100%;
}
.case-player img,
.case-player video[poster] {
  object-fit: cover;
  object-position: center;
}
.case-player video.case-playing,
.case-player video:fullscreen {
  object-fit: contain;
}
.case-work figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  padding: 12px 18px;
}
.case-work figcaption strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.case-work figcaption strong a {
  color: var(--ink);
}
.case-work figcaption strong a:hover {
  text-decoration: underline;
}
.case-source-link,
.case-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand);
}
.case-source-link:hover,
.case-earnings > summary:hover .case-disclosure {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case-earnings {
  background: #f6f8f3;
  border-block: 1px solid var(--line);
}
.case-earnings > summary,
.case-income-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.case-earnings > summary {
  list-style: none;
  padding: 10px 18px;
  min-height: 48px;
}
.case-earnings > summary:focus-visible {
  outline-offset: -3px;
}
.case-sum,
.case-income-line > span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}
.case-sum > span,
.case-breakdown > p,
.case-breakdown > small {
  color: var(--muted);
  font-size: 12px;
}
.case-sum > strong {
  font-size: 23px;
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.case-disclosure {
  flex-shrink: 0;
}
.case-earnings[open] .case-disclosure .ic {
  transform: rotate(180deg);
}
.case-breakdown {
  padding: 0 18px 12px;
}
.case-breakdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-breakdown li {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}
.case-income-line {
  font-size: 14px;
}
.case-income-line > span {
  align-items: center;
}
.case-breakdown > small {
  display: block;
  margin-top: 10px;
}
.case-story footer {
  padding: 9px 18px;
  color: var(--muted);
  font-size: 12px;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.faq-layout > .panel {
  margin: 0;
}
.faq-section-icon {
  font-size: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 10px;
  margin-bottom: 12px;
  color: var(--brand);
}
.faq-answer p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
  line-height: 1.7;
}
.faq-answer .fee-lines {
  margin: 16px 0;
}
.faq-answer .fee-lines > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(88px, 0.5fr) 1.5fr;
}
.faq-example {
  background: var(--soft);
  border-radius: 10px;
  padding: 12px 15px;
}
.faq-example p {
  margin: 4px 0;
}
.faq-queue ul {
  padding: 0;
  list-style: none;
  margin: 10px 0 0;
}
.faq-queue li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.faq-queue li:last-child {
  border: 0;
}
.faq-queue small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .expanded-task-body {
    gap: 16px;
  }
  .case-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .expanded-task-body,
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .case-gallery {
    grid-template-columns: 1fr;
  }
  .portfolio-projects {
    padding: 0;
  }
  .portfolio-row {
    grid-template-columns: minmax(95px, 1fr) auto 12px;
    gap: 8px;
    padding: 13px 12px;
  }
  .portfolio-row .portfolio-vol,
  .portfolio-row .portfolio-state {
    display: none;
  }
  .portfolio-name strong {
    font-size: 14px;
  }
  .portfolio-name small {
    font-size: 11px;
  }
  .portfolio-projects > .panel-head {
    padding: 15px 13px;
  }
  .expanded-task {
    padding: 16px;
  }
  .expanded-task-body {
    gap: 15px;
  }
  .fee-lines > div {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .task-overline .settle-date {
    font-size: 11px;
  }
  .composition-legend span {
    font-size: 11px;
  }
  .estimate-box {
    padding: 14px;
  }
  .task-detail-calculator {
    padding: 0;
  }
  .case-story {
    padding: 0;
  }
  .faq-answer .fee-lines > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Project settlement contacts */
.roster-table { min-width: 890px; }
.roster-nickname {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; text-align: start; cursor: pointer; padding: 5px 0;
}
.roster-nickname span { overflow-wrap: anywhere; }
.roster-nickname svg { flex: none; color: var(--muted); }
.roster-nickname:hover span { text-decoration: underline; }
.roster-chat { white-space: nowrap; }
.roster-chat:disabled { opacity: .55; cursor: default; }
.roster-copy-issue { padding: 0 18px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mobile-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px 12px; }
.mobile-contact > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mobile-contact small { flex: none; color: var(--muted); }
