.pool-page {
  background: #f7f8f6;
  color: #192331;
  font-family: "DM Sans", Arial, sans-serif;
}
.pool-content {
  --pool-line: #d7dce2;
  --pool-secondary: #535f6e;
  --pool-blue: #254ac5;
  width: min(var(--pd-width), calc(100% - 2 * var(--pd-gutter)));
  margin: 0 auto 64px;
}
.pool-content *, .pool-content *::before, .pool-content *::after { box-sizing: border-box; }
.pool-lead { padding: clamp(40px, 5.7vw, 80px) 0 clamp(27px, 4vw, 50px); }
.pool-lead h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(52px, 6.6vw, 92px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -.075em;
}
.pool-lead h1 em {
  color: var(--pool-blue);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.pool-lead p, .pool-content section p { line-height: 1.5; }
.pool-lead p { max-width: 58ch; margin: 16px 0 0; color: var(--pool-secondary); font-size: clamp(16px, 1.5vw, 19px); }
.pool-work, .pool-terms { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 58px); }
.pool-work { align-items: start; }
.pool-ledger, .pool-task { min-width: 0; border-radius: 18px; padding: clamp(22px, 3.2vw, 42px); }
.pool-ledger {
  background: #e8eeff;
  color: #192e65;
  border: 1px solid #c9d5f5;
}
.pool-content h2 { font-size: clamp(24px, 2.3vw, 35px); line-height: 1.16; letter-spacing: -.05em; font-weight: 580; margin: 0 0 15px; }
.pool-ident { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #465985; margin-bottom: 22px; font-size: 15px; }
.pool-ident span:first-child { font-weight: 600; }
.pool-ledger h2 { margin-bottom: 22px; }
.pool-ledger .pool-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; line-height: 1.15; margin: 0; color: #465985; }
.pool-status strong { font-size: clamp(54px, 5.6vw, 80px); font-weight: 550; letter-spacing: -.085em; line-height: 1; color: #163781; font-variant-numeric: tabular-nums; }
.pool-content progress {
  display: block;
  width: 100%;
  height: 9px;
  margin: 17px 0 28px;
  overflow: hidden;
  appearance: none;
  border: none;
  border-radius: 10px;
  accent-color: var(--pool-blue);
  background-color: #c3d0f3;
}
.pool-content progress::-webkit-progress-bar { background: #c3d0f3; }
.pool-content progress::-webkit-progress-value { background: var(--pool-blue); border-radius: 10px; }
.pool-content progress::-moz-progress-bar { background: var(--pool-blue); border-radius: 10px; }
.pool-content h3 { font-size: 17px; font-weight: 650; margin: 0; line-height: 1.45; }
.ledger-members h3 { margin-bottom: 6px; }
.pool-content dl, .pool-content dd { margin: 0; }
.pool-content .balance-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--pool-line);
  overflow-wrap: anywhere;
}
.ledger-members .balance-line { border-color: #c5d1ee; }
.ledger-members .balance-line:last-child { padding-bottom: 0; }
.pool-content .balance-line dd { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.pool-task { background: #fff; border: 1px solid var(--pool-line); }
.pool-task > p, .pool-section > p, .case p, .record-heading p { color: var(--pool-secondary); margin: 0 0 18px; }
.pool-content form { display: grid; gap: 14px; }
.pool-content label { display: block; font-size: 15px; font-weight: 600; }
.pool-content input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 5px;
  padding: 9px 12px;
  border: 1px solid #a4acb6;
  border-radius: 7px;
  background: #fff;
  color: #192331;
  font: inherit;
  font-size: 16px;
  font-weight: 450;
}
.pool-content button {
  justify-self: start;
  width: fit-content;
  min-height: 46px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 18px;
  background: var(--pool-blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.pool-content button:hover { background: #1c3ba2; }
.pool-content button.alt { color: #223153; background: transparent; border-color: #9ba7bd; }
.pool-content button.alt:hover { background: #e8eeff; }
.pool-content button:disabled { color: #526073; background: #e5e8ec; border-color: #d4d8e0; cursor: default; }
.pool-content :is(input, button, a, summary):focus-visible { outline: 3px solid #3358cb; outline-offset: 3px; }
.pool-content .case { border-top: 1px solid var(--pool-line); padding: 16px 0; }
.pool-content .case p { margin: 5px 0; }
.pool-content .case-status { color: #243f82; font-weight: 650; }
.case-actions, .pool-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.case-actions { margin-top: 8px; }
.pool-terms { padding: clamp(32px, 5vw, 64px) 0; }
.pool-section { border-top: 1px solid var(--pool-line); padding-top: 24px; min-width: 0; }
.pool-section h2 { font-size: clamp(25px, 2.4vw, 34px); }
.pool-section dl + form { margin-top: 20px; }
.pool-section .account-totals { margin-top: 14px; }
.pool-section .account-totals .balance-line { border-top: none; padding: 4px 0; }
.pool-record > .record-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.record-heading p { margin: 0 0 12px; }
.pool-journal { list-style: none; margin: 5px 0 0; padding: 0; }
.pool-journal li { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 8px 15px; padding: 11px 0; border-top: 1px solid var(--pool-line); }
.pool-journal time, .record-heading time { color: var(--pool-secondary); font-variant-numeric: tabular-nums; }
.pool-journal span { overflow-wrap: anywhere; }
.pool-record details { padding: 14px 0 0; }
.pool-record summary { cursor: pointer; }
.pool-record details h3 { margin-top: 20px; }
.pool-links { margin: 22px 0 0; gap: 8px 26px; }
.pool-links a { color: #244391; text-decoration: underline; text-underline-offset: .2em; padding: 8px 0; }
#feedback { margin: -6px 0 16px; padding: 12px 16px; border-left: 3px solid var(--pool-blue); background: #e8eeff; color: #1e3261; }
#feedback:empty { display: none; }
@media (max-width: 760px) {
  .pool-content { margin-bottom: 40px; }
  .pool-work, .pool-terms { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pool-ledger, .pool-task { border-radius: 14px; }
  .pool-section { padding-top: 20px; }
  .pool-terms { padding: 30px 0; }
  .pool-journal li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 360px) {
  .pool-ledger, .pool-task { padding: 18px; }
  .pool-lead h1 { font-size: 48px; }
}
