/* GENERATED by build-budget-embed.mjs from budget.css — do not edit by hand.
 *
 * Board styles are scoped to .budget-scope so they cannot fight the deck's own
 * .line / .phase / .note / .row. Dialog styles are unscoped: they mount on <body>.
 */

/* The two stylesheets share a palette; these are the only tokens deck.css lacks. */
:root {
  --claimed: #3f6b4a;
  --claimed-soft: #edf3ee;
}

.budget-scope .eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.budget-scope .live {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.budget-scope .live[data-on="true"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--claimed);
  margin-right: 7px;
  vertical-align: 1px;
}

.budget-scope .btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s ease;
}

.budget-scope .btn:hover { opacity: 0.85; }

.budget-scope .btn.ghost { background: none; color: var(--ink); border-color: var(--rule); }

.budget-scope .btn.small { padding: 6px 13px; font-size: 12.5px; border-radius: 6px; }

.modal input,
.modal textarea,
.modal select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus { outline: none; border-color: var(--accent); background: #fff; }

.budget-scope .phase {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 20px;
  overflow: hidden;
}

.budget-scope .phase > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.budget-scope .phase h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0; }

.budget-scope .phase header .note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

.budget-scope .phase header .amount { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }

.budget-scope .line {
  display: grid;
  grid-template-columns: 1fr 78px 92px 104px 108px;
  gap: 14px;
  align-items: center;
  padding: 13px 22px;
  border-bottom: 1px solid var(--rule);
}

.budget-scope .line:last-of-type { border-bottom: 0; }

.budget-scope .line:not(.admin) {
  grid-template-columns: minmax(0, 1fr) 92px 92px 104px 172px;
  column-gap: 26px;
  align-items: start;
}

.budget-scope .line:not(.admin) .num { text-align: right; padding-top: 2px; }

.budget-scope .line:not(.admin):not(.divider):not(.segment-sum) .detail { padding-left: 20px; }

.budget-scope .line:not(.admin) .line-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.budget-scope .line:not(.admin) .line-actions .btn { width: 100%; text-align: center; }

.proposal-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.budget-scope .line.segment-sum {
  border-bottom: 0;
  padding-top: 6px;
  padding-bottom: 14px;
}

.budget-scope .line.segment-sum.phase-total { padding-top: 12px; padding-bottom: 20px; }

.budget-scope .phase-total-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.budget-scope .line.segment-sum.phase-total .num.sub {
  font-size: 15px;
  border-top: 2px solid var(--ink);
  padding-top: 7px;
}

.budget-scope .line.segment-sum .num.sub {
  font-size: 13.5px;
  font-weight: 600;
  border-top: 1px solid var(--rule);
  padding-top: 6px;
}

.budget-scope .line .num.time,
.budget-scope .line .num.rate { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.budget-scope .line .num.sub {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.budget-scope .line[data-claimed="true"] { background: var(--claimed-soft); }

.budget-scope .line.divider {
  display: flex;
  align-items: baseline;
  gap: 12px;
  grid-template-columns: none;
  padding: 18px 22px 6px;
  background: none;
  border-bottom: 0;
}

.budget-scope .divider-name {
  flex: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.budget-scope .divider-span {
  flex: 0 0 auto;
  order: 3;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  white-space: nowrap;
}

.budget-scope .line.divider.expenses-mark { cursor: default; padding-top: 22px; }

.budget-scope .line.divider .line-actions { flex: 0 0 auto; order: 4; }

.budget-scope .only-here {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}

.budget-scope .line .name { font-size: 14.5px; font-weight: 600; }

.budget-scope .line .note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

.budget-scope .line .num {
  font-family: var(--mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.budget-scope .line .amount { font-weight: 600; }

.budget-scope .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 7px;
  vertical-align: 1px;
}

.budget-scope .line-actions { display: flex; gap: 6px; justify-content: flex-end; }

.budget-scope .summary {
  background: var(--accent-soft);
  border: 1px solid rgba(176, 58, 26, 0.25);
  border-radius: 10px;
  padding: 24px 26px;
  margin-top: 34px;
}

.budget-scope .summary .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(176, 58, 26, 0.18);
  font-size: 14.5px;
}

.budget-scope .summary .row:last-child { border-bottom: 0; }

.budget-scope .summary .row.total {
  border-top: 2px solid var(--accent);
  border-bottom: 0;
  margin-top: 8px;
  padding-top: 14px;
  font-size: 19px;
  font-weight: 600;
}

.budget-scope .summary .row .v { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.budget-scope .summary .row.sub { color: var(--muted); font-size: 13px; }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 21, 15, 0.42);
  z-index: 40;
  animation: fade 0.15s ease both;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 32px 64px -28px rgba(23, 21, 15, 0.55);
  padding: 22px 24px 24px;
  animation: pop 0.16s ease both;
}

@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.modal h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0; }

.x {
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}

.x:hover { color: var(--ink); }

.modal-task { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; }

.modal-task b { color: var(--ink); }

.modal-task select { margin-top: 9px; }

.modal label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 6px;
}

.modal textarea { resize: vertical; line-height: 1.5; font-size: 14.5px; }

.calc {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: 14px 16px;
  margin-top: 16px;
}

.calc label { margin-top: 0; }

.calc input,
.calc select { font-family: var(--mono); }

.calc .times,
.calc .equals {
  font-family: var(--mono);
  color: var(--muted);
  padding-bottom: 10px;
  font-size: 15px;
}

.calc .unit {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 5px;
}

.calc-total output {
  display: block;
  font-family: var(--mono);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  padding: 8px 0 0;
}

.modal-actions { display: flex; gap: 10px; margin-top: 22px; }

@media (max-width: 820px) {
  .budget-scope .line {
      grid-template-columns: 1fr auto;
      gap: 4px 12px;
      padding: 14px 16px;
    }
  
  .budget-scope .line .detail { grid-column: 1 / -1; }
  
  .budget-scope .line .num.qty,
  .budget-scope .line .num.rate { display: none; }
  
  .budget-scope .line .num.amount { grid-column: 1; font-size: 15px; }
  
  .budget-scope .line-actions { grid-column: 2; grid-row: 2; }
  
  .calc { grid-template-columns: 1fr; gap: 12px; }
  
  .calc .times,
  .calc .equals { display: none; }
}

.budget-scope .comments { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }

.budget-scope .comment {
  position: relative;
  padding: 9px 12px;
  border-left: 2px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: var(--accent-soft);
  font-size: 13px;
}

.budget-scope .comment .who { font-weight: 600; }

.budget-scope .comment.public { border-left-color: var(--claimed); background: var(--claimed-soft); }

.budget-scope .comment .tag { margin-left: 7px; }

.budget-scope .ctext {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
}

.budget-scope .comment .remove { position: absolute; top: 6px; right: 8px; }

.proposals { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }

.proposal {
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 8px 11px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  
  background: #fff;
}

.proposal.on { border-color: rgba(63, 107, 74, 0.45); background: var(--claimed-soft); }

.proposal .who { font-weight: 600; }

.proposal.on .who { color: var(--claimed); }

.proposal .terms { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.proposal .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.on-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--claimed);
}

.pnote {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.scope-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.budget-scope .line .num.scope,
.budget-scope .line .num.base { color: var(--muted); }

.budget-scope .line .num.base .terms {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 3px;
  white-space: nowrap;
}

.budget-scope .prow-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }

.others {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: 13px 15px;
  margin-bottom: 4px;
}

.others-label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.other {
  display: grid;
  grid-template-columns: minmax(80px, auto) 1fr auto;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
}

.other:last-of-type { border-bottom: 0; }

.other .who { font-weight: 600; }

.other .terms { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.other .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.others-note { margin: 9px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.identity {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.linkish.inline {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
}

.calc.calc-5 { grid-template-columns: 0.8fr 0.9fr auto 1fr auto 1fr; }

.budget-scope .owner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.budget-scope .owner span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.budget-scope .owner input {
  width: 190px;
  font: inherit;
  font-size: 13px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}

.budget-scope .owner input:focus { outline: none; border-color: var(--accent); background: #fff; }

.budget-scope .owner-name { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }

.budget-scope .owner-name b { color: var(--ink); }

.budget-scope .kind-toggle {
  margin-left: 8px;
  vertical-align: 1px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.budget-scope .kind-toggle:hover { border-color: var(--muted); color: var(--ink); }

.budget-scope .kind-toggle.on {
  color: var(--accent);
  border-color: rgba(176, 58, 26, 0.35);
  background: var(--accent-soft);
}

@media (max-width: 820px) {
  .proposal { grid-template-columns: 1fr auto; }
  
  .proposal .terms { grid-column: 1 / -1; }
  
  .budget-scope .line .num.base { display: none; }
}

.linkish {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px;
}

.linkish:hover { color: var(--accent); }

.proposal.scope-only { grid-template-columns: minmax(90px, auto) 1fr auto; }

.other.scope-only { grid-template-columns: minmax(80px, auto) 1fr; }

.budget-scope .phase-edit { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }

.budget-scope .phase-namerow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.budget-scope .phase-edit input,
.budget-scope .phase-edit textarea {
  font: inherit;
  color: inherit;
  background: var(--paper, #fff);
  border: 1px solid var(--rule, rgba(23, 21, 15, 0.16));
  border-radius: 6px;
  padding: 7px 9px;
  min-width: 0;
}

.budget-scope .phase-edit input:focus,
.budget-scope .phase-edit textarea:focus { outline: none; border-color: var(--accent, #b03a1a); }

.budget-scope .phase-name { flex: 1 1 220px; font-size: 17px; font-weight: 600; }

.budget-scope .phase-when { flex: 0 0 120px; font-size: 13px; }

.budget-scope .phase-sub { width: 100%; font-size: 13.5px; }

.budget-scope .phase-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 720px) {
  .budget-scope .phase-lists { grid-template-columns: 1fr; }
}

.budget-scope .phase-lists label { display: flex; flex-direction: column; gap: 5px; }

.budget-scope .phase-lists span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #6e675a);
}

.budget-scope .phase-lists textarea { resize: vertical; font-size: 13px; line-height: 1.5; }

.budget-scope .phase-head-right { display: flex; align-items: flex-start; gap: 10px; flex: 0 0 auto; }

.budget-scope .phase-add { display: flex; justify-content: center; padding: 18px 0 4px; }

.budget-scope .hide-toggle {
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6e675a);
  background: none;
  border: 1px solid var(--rule, rgba(23, 21, 15, 0.16));
  border-radius: 4px;
  padding: 3px 7px;
  cursor: pointer;
}

.budget-scope .hide-toggle:hover { color: var(--ink, #17150f); border-color: var(--ink, #17150f); }

.budget-scope .hide-toggle.on {
  color: var(--accent, #b03a1a);
  border-color: var(--accent, #b03a1a);
  background: var(--accent-soft, #f6ebe5);
}

.budget-scope .hidden-tag {
  color: var(--accent, #b03a1a);
  border-color: var(--accent, #b03a1a);
}

.budget-scope .line[data-hidden="true"] { opacity: 0.72; }

.budget-scope .phase-move { display: inline-flex; gap: 2px; }

.budget-scope .phase-move .move {
  font: inherit;
  font-size: 12px;
  line-height: 1;
  width: 24px;
  height: 22px;
  color: var(--muted, #6e675a);
  background: none;
  border: 1px solid var(--rule, rgba(23, 21, 15, 0.16));
  border-radius: 4px;
  cursor: pointer;
}

.budget-scope .phase-move .move:hover:not(:disabled) { color: var(--ink, #17150f); border-color: var(--ink, #17150f); }

.budget-scope .phase-move .move:disabled { opacity: 0.35; cursor: default; }

.budget-scope .phase[data-phase-hidden="true"] > header .phase-edit,
.budget-scope .phase[data-phase-hidden="true"] > .line { opacity: 0.55; }
