.budget-b1{--budget-line:#dbe4ee;--budget-line-soft:#eef2f6;--budget-ink-2:#33465c;--budget-paid:#0b2545;--budget-remaining:#1e40af;--budget-planned:#c9d6e3;--budget-over:#c2410c;display:flex;flex-direction:column;gap:18px;min-width:0}.budget-b1-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-4)}.budget-b1-title-row{display:flex;flex:999 1 320px;align-items:center;gap:var(--space-2);min-width:0}.budget-b1-title{margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--text)}.budget-b1-head-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.budget-b1-head-actions .ghost-button,.budget-b1-head-actions .primary-button,.budget-b1-view-action{min-height:44px;border-radius:12px}.budget-b1-pay-button,.budget-b1-phone-pay{background:var(--accent-deep);box-shadow:none}.budget-b1-phone-more{position:relative;display:none;margin-left:auto}.budget-b1-icon-button{display:inline-grid;place-items:center;width:44px;height:44px;border:1px solid var(--budget-line);border-radius:12px;background:#ffffff;color:var(--text);cursor:pointer}.budget-b1-icon-button svg{width:20px;height:20px;fill:currentColor}.budget-b1-phone-menu{top:calc(100% + 6px);right:0;border-radius:12px;background:#ffffff;box-shadow:0 12px 32px rgba(11,37,69,.18),0 0 0 1px var(--budget-line)}.budget-b1-phone-menu .mobile-popover-item{min-height:44px;color:var(--text);font-size:var(--text-sm);font-weight:600}.budget-b1-overview{display:flex;flex-direction:column;gap:var(--space-4);padding:22px;border:1px solid var(--budget-line);border-radius:18px;background:#ffffff}.budget-b1-target{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-3);margin:0}.budget-b1-target strong{font-size:28px;font-weight:800;color:var(--text)}.budget-b1-target span{font-size:var(--text-sm);font-weight:600;color:var(--muted)}.budget-b1-bar{display:flex;height:18px;overflow:hidden;border-radius:999px;background:#e6edf4}.budget-b1-bar span{display:block;height:100%}.budget-b1-bar .is-paid{background:var(--budget-paid)}.budget-b1-bar .is-remaining{background:var(--budget-remaining)}.budget-b1-bar .is-planned{background:repeating-linear-gradient(135deg,#c9d6e3 0 6px,#dbe4ee 6px 12px)}.budget-b1-bar .is-over{background:var(--budget-over)}.budget-b1-figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:var(--space-4);gap:var(--space-4);margin:0}.budget-b1-figure{display:flex;flex-direction:column;gap:2px;min-width:0}.budget-b1-figure dt{display:flex;align-items:center;gap:6px;font-size:var(--text-xs);font-weight:600;color:var(--muted)}.budget-b1-figure dd{margin:0;font-size:19px;font-weight:800;color:var(--text);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.budget-b1-label-short{display:none}.budget-b1-dot{display:inline-block;flex-shrink:0;width:10px;height:10px;border-radius:3px;background:#e6edf4}.budget-b1-figure.is-paid .budget-b1-dot{background:var(--budget-paid)}.budget-b1-figure.is-remaining .budget-b1-dot{background:var(--budget-remaining)}.budget-b1-figure.is-planned .budget-b1-dot{background:var(--budget-planned)}.budget-b1-figure.is-over .budget-b1-dot{background:var(--budget-over)}.budget-b1-figure.is-available .budget-b1-dot{border:1px solid var(--budget-planned);background:#ffffff}.budget-b1-figure.is-over dd{color:#a13a0a}.budget-b1-body{display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px}.budget-b1-main{display:flex;flex:999 1 560px;flex-direction:column;gap:var(--space-3);min-width:0}.budget-b1-views{align-items:center}.budget-b1-pills,.budget-b1-views{display:flex;flex-wrap:wrap;gap:6px}.budget-b1-view-action{margin-left:auto}.budget-b1-empty{margin:0;padding:var(--space-5) var(--space-4);color:var(--muted);font-size:var(--text-sm);font-weight:600}.budget-b1-empty,.budget-b1-table{border:1px solid var(--budget-line);border-radius:var(--radius-lg);background:#ffffff}.budget-b1-table{overflow:hidden}.budget-b1-lot,.budget-b1-th{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr)) 160px;align-items:center;grid-gap:var(--space-3);gap:var(--space-3);padding:10px var(--space-4)}.budget-b1-th{border-bottom:1px solid var(--budget-line);font-size:var(--text-xs);font-weight:700;color:var(--muted)}.budget-b1-lot{width:100%;min-height:52px;padding-block:14px;border:0;border-top:1px solid var(--budget-line-soft);background:#ffffff;color:var(--text);font:inherit;font-size:var(--text-sm);font-weight:600;text-align:left;cursor:pointer}.budget-b1-lot-group:first-of-type .budget-b1-lot{border-top:0}.budget-b1-lot:hover{background:#f7fafc}.budget-b1-link:focus-visible,.budget-b1-lot:focus-visible,.budget-b1-quote:focus-visible,.budget-b1-row:focus-visible{outline:3px solid rgba(30,64,175,.35);outline-offset:-3px}.budget-b1-lot-name{display:flex;align-items:center;gap:var(--space-2);min-width:0;font-size:15px;font-weight:800}.budget-b1-arrow{color:var(--muted)}.budget-b1 .is-num{text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.budget-b1 .is-end{display:flex;justify-content:flex-end}.budget-b1 .is-muted{color:var(--muted)}.budget-b1-lot-phone{display:none}.budget-b1-chip{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;font-size:var(--text-xs);font-weight:700;white-space:nowrap}.budget-b1-chip.is-ok{background:#e3f4ea;color:#17663a}.budget-b1-chip.is-warn{background:#fff1dc;color:#7a4500}.budget-b1-chip.is-muted,.budget-b1-chip.is-neutral{background:var(--budget-line-soft);color:var(--budget-ink-2)}.budget-b1-sub{display:grid;grid-template-columns:minmax(0,1fr) 160px 120px;align-items:center;grid-gap:var(--space-3);gap:var(--space-3);min-height:44px;margin:0;padding:10px var(--space-4) 10px 44px;border-top:1px solid var(--budget-line-soft);background:#f7fafc;font-size:var(--text-sm)}.budget-b1-quote{width:100%;border-right:0;border-bottom:0;border-left:0;color:var(--text);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer}.budget-b1-quote:hover{background:#eef4fb}.budget-b1-quote-name{min-width:0}.budget-b1-quote-amount{font-weight:700}.budget-b1-quote-status{justify-self:end;font-size:13px;font-weight:700}.budget-b1-quote-status.is-ok{color:#17663a}.budget-b1-quote-status.is-warn{color:#7a4500}.budget-b1-quote-status.is-muted{color:var(--muted)}.budget-b1-empty-line{display:block;color:var(--muted)}.budget-b1-lot-actions{display:flex;flex-wrap:wrap;gap:var(--space-4);padding-block:0}.budget-b1-link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:13px;font-weight:700;cursor:pointer}.budget-b1-link:hover{color:#1e3a8a;text-decoration:underline}.budget-b1-list{margin:0;padding:0;overflow:hidden;border:1px solid var(--budget-line);border-radius:var(--radius-lg);background:#ffffff;list-style:none}.budget-b1-row-item+.budget-b1-row-item{border-top:1px solid var(--budget-line-soft)}.budget-b1-row{display:grid;grid-template-columns:minmax(0,1fr) 160px 120px;align-items:center;grid-gap:var(--space-3);gap:var(--space-3);width:100%;min-height:56px;padding:14px var(--space-4);border:0;background:#ffffff;color:var(--text);font:inherit;font-size:var(--text-sm);font-weight:600;text-align:left}button.budget-b1-row{cursor:pointer}button.budget-b1-row:hover{background:#f7fafc}.budget-b1-row-main{display:flex;flex-direction:column;gap:2px;min-width:0}.budget-b1-row-date,.budget-b1-row-main span{color:var(--muted)}.budget-b1-row-amount{text-align:right;font-weight:800;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.budget-b1-row-amount.is-muted{color:var(--muted)}.budget-b1-proof{margin:-8px var(--space-4) 6px}.budget-b1-watch{display:flex;flex:1 1 280px;flex-direction:column;gap:var(--space-3);max-width:320px;padding:18px;border:1px solid var(--budget-line);border-radius:var(--radius-lg);background:#ffffff}.budget-b1-watch h3{margin:0;font-size:var(--text-base);font-weight:800;color:var(--text)}.budget-b1-watch ul{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.budget-b1-watch li{display:flex;flex-direction:column;gap:var(--space-1);padding-block:var(--space-3);border-top:1px solid var(--budget-line-soft)}.budget-b1-watch li:first-child{padding-top:0;border-top:0}.budget-b1-watch li strong{font-size:var(--text-sm);font-weight:700;color:var(--text)}.budget-b1-watch-kicker{font-size:var(--text-xs);font-weight:700}.budget-b1-watch-kicker.is-warn{color:#a15c00}.budget-b1-watch-kicker.is-info{color:var(--accent)}.budget-b1-watch-detail{font-size:13px;color:var(--muted)}.budget-b1-watch .budget-b1-link{align-self:flex-start;min-height:36px}.budget-modal-remove{margin-right:auto}.budget-b1-figure-note{display:block;margin-top:2px;font-size:var(--text-xs);font-weight:600;color:var(--muted)}.budget-b1-payment-mark{align-self:flex-start;margin-top:var(--space-1)}.budget-b1-row-item.is-highlighted .budget-b1-row{background:#fff8ec;box-shadow:inset 4px 0 0 #d97706}.budget-b1-phone-bar{display:none}@media (max-width:767px){.budget-b1{gap:var(--space-3);padding-bottom:80px}.budget-b1-title{font-size:22px}.budget-b1-phone-more{display:block}.budget-b1-head-actions{display:none}.budget-b1-overview{gap:14px;padding:var(--space-4);border-radius:var(--radius-md)}.budget-b1-target{flex-direction:column;gap:2px}.budget-b1-target strong{font-size:26px}.budget-b1-target span{font-size:13px}.budget-b1-bar{height:14px}.budget-b1-figures{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}.budget-b1-figure dd{font-size:18px}.budget-b1-label-long{display:none}.budget-b1-label-short{display:inline}.budget-b1-views{flex-wrap:wrap}.budget-b1-pills{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.budget-b1-pills::-webkit-scrollbar{display:none}.budget-b1-pills .docs-category{flex:0 0 auto}.budget-b1-view-action{margin-left:0}.budget-b1-th{display:none}.budget-b1-list,.budget-b1-table{border-radius:var(--radius-md)}.budget-b1-lot{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name state" "phone phone";gap:8px 10px}.budget-b1-lot .budget-b1-lot-name{grid-area:name}.budget-b1-lot .is-end{grid-area:state}.budget-b1-lot .is-num{display:none}.budget-b1-lot-phone{display:block;grid-area:phone;font-size:13px;font-weight:600;color:var(--muted)}.budget-b1-sub{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name amount" "status status";gap:2px 10px;padding-left:var(--space-4)}.budget-b1-quote-name{grid-area:name}.budget-b1-quote-amount{grid-area:amount}.budget-b1-quote-status{grid-area:status;justify-self:start}.budget-b1-empty-line,.budget-b1-lot-actions{display:flex}.budget-b1-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main amount" "date date";gap:2px 10px}.budget-b1-row-main{grid-area:main}.budget-b1-row-amount{grid-area:amount;align-self:start}.budget-b1-row-date{grid-area:date;font-size:12px}.budget-b1-watch{max-width:none;padding:var(--space-4)}.budget-b1-phone-bar{position:fixed;right:0;bottom:calc(76px + env(safe-area-inset-bottom));left:0;z-index:39;display:flex;padding:10px var(--space-4);border-top:1px solid var(--budget-line);background:#ffffff}.budget-b1-phone-pay{flex:1 1;min-height:50px;border-radius:12px}}.closeout{--closeout-line:#dbe4ee;--closeout-line-soft:#eef2f6;--closeout-ink-2:#33465c;display:flex;flex-direction:column;gap:18px;min-width:0}.closeout-title{margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--text)}.closeout-steps{display:flex;flex-direction:column;gap:18px;margin:0;padding:0;list-style:none}.closeout-step-card{display:flex;align-items:flex-start;gap:var(--space-4);padding:22px;border:1px solid var(--closeout-line);border-radius:18px;background:#ffffff}.closeout-step.is-current .closeout-step-card{padding:21px;border:2px solid var(--accent)}.closeout-step.is-todo .closeout-step-card{opacity:.75}.closeout-step-num{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:#e6edf4;color:var(--muted);font-size:15px;font-weight:800}.closeout-step.is-done .closeout-step-num{background:#e3f4ea;color:#17663a}.closeout-step.is-done .closeout-step-num svg{width:20px;height:20px}.closeout-step.is-current .closeout-step-num{background:var(--accent);color:#ffffff}.closeout-step-body{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;min-width:0}.closeout-step-title{margin:0;font-size:18px;font-weight:800;line-height:36px;color:var(--text)}.closeout-text{margin:0;color:var(--closeout-ink-2);font-size:14px;line-height:1.55}.closeout-note{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.closeout-muted{color:var(--muted);font-weight:600}.closeout-inline-link,.closeout-link{padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:14px;font-weight:700;text-align:left;text-decoration:none;cursor:pointer}.closeout-link{display:inline-flex;align-items:center;min-height:44px}.closeout-inline-link{font-size:inherit}.closeout-inline-link:hover,.closeout-link:hover{color:#1e3a8a;text-decoration:underline}.closeout-inline-link:focus-visible,.closeout-link:focus-visible{outline:3px solid rgba(30,64,175,.35);outline-offset:2px;border-radius:6px}.closeout-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.closeout-actions .ghost-button,.closeout-actions .primary-button{min-height:44px;border-radius:12px}.closeout-primary{background:var(--accent-deep);box-shadow:none}.closeout-prep{display:flex;flex-direction:column;gap:var(--space-2)}.closeout-checklist,.closeout-insurance{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.closeout-check,.closeout-insurance li{display:flex;flex-wrap:wrap;align-items:center;gap:4px var(--space-3);min-height:44px;padding:6px 0}.closeout-check-box{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:22px;height:22px;border:2px solid #9aa9ba;border-radius:7px;color:#ffffff}.closeout-check.is-done .closeout-check-box{border-color:#17663a;background:#17663a}.closeout-check-box svg{width:16px;height:16px}.closeout-check-text,.closeout-insurance-text{display:flex;flex:1 1 220px;flex-direction:column;min-width:0;font-size:14px}.closeout-check-text strong,.closeout-insurance-text strong{font-weight:600;color:var(--text)}.closeout-check-detail{color:var(--muted);font-size:13px}.closeout-insurance{padding-left:34px}.closeout-insurance li{border-top:1px solid var(--closeout-line-soft)}.closeout-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:var(--space-3);gap:var(--space-3);margin:0}.closeout-facts>div{display:flex;flex-direction:column;min-width:0}.closeout-facts dt{color:var(--muted);font-size:12px;font-weight:600}.closeout-facts dd{margin:0;color:var(--text);font-size:14px;font-weight:700;overflow-wrap:anywhere}.closeout-facts dd .closeout-link{align-items:flex-start}.closeout-reserves-head:empty{display:none}.closeout-reserve-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.closeout-reserve{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;grid-gap:14px;gap:14px;padding:12px 0;border-top:1px solid var(--closeout-line-soft);border-radius:10px;transition:background-color .3s ease}.closeout-reserve:first-child{border-top:0}.closeout-reserve.is-focused{background:var(--accent-soft)}.closeout-reserve-photo{position:relative;display:flex;align-items:center;justify-content:center;width:56px;height:56px;padding:0;overflow:hidden;border:0;border-radius:10px;background:#c9d6e3;color:var(--muted)}button.closeout-reserve-photo{cursor:pointer}.closeout-reserve-photo .document-thumb-row{width:56px;height:56px;border:0;border-radius:10px}.closeout-reserve-photo.is-empty{border:1.5px dashed #9aa9ba;background:#f4f7fa}.closeout-reserve-photo.is-empty svg{width:22px;height:22px}.closeout-reserve-photo .closeout-reserve-photo-plus{position:absolute;right:6px;bottom:6px;width:14px;height:14px}.closeout-reserve-photo-busy{font-size:11px;font-weight:700}.closeout-reserve-photo-count{position:absolute;right:4px;bottom:4px;min-width:20px;padding:1px 6px;border-radius:999px;background:rgba(11,37,69,.82);color:#ffffff;font-size:11px;font-weight:800;text-align:center}.closeout-icon-button:focus-visible,.closeout-reserve-photo:focus-visible{outline:3px solid rgba(30,64,175,.35);outline-offset:2px}.closeout-reserve-body{display:flex;flex-direction:column;gap:2px;min-width:0}.closeout-reserve-title{color:var(--text);font-size:15px;font-weight:700;overflow-wrap:anywhere}.closeout-reserve.is-resolved .closeout-reserve-title{color:var(--muted)}.closeout-reserve-context,.closeout-reserve-notes{color:var(--muted);font-size:13px;overflow-wrap:anywhere}.closeout-reserve-due,.closeout-reserve-notes{color:var(--closeout-ink-2)}.closeout-reserve-due{font-size:var(--text-sm);font-weight:600}.closeout-reserve-due.is-late{color:#b42318}.closeout-reserve-actions{display:flex;align-items:center;gap:6px}.closeout-reserve-toggle.ghost-button{min-height:44px;padding:0 14px;border-radius:12px;white-space:nowrap}.closeout-reserve-menu-anchor{position:relative}.closeout-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #c9d6e3;border-radius:12px;background:#ffffff;color:var(--text);cursor:pointer}.closeout-icon-button svg{width:18px;height:18px}.closeout-reserve-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:20;display:flex;flex-direction:column;min-width:210px;padding:6px;border:1px solid var(--closeout-line);border-radius:12px;background:#ffffff;box-shadow:var(--shadow-md)}.closeout-reserve-menu button{display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--text);font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}.closeout-reserve-menu button:focus-visible,.closeout-reserve-menu button:hover{background:#f1f5f9}.closeout-reserve-menu button svg{width:16px;height:16px}.closeout-reserve-menu-danger{color:#b42318!important}@media (max-width:640px){.closeout-title{font-size:var(--text-xl)}.closeout-step-card{gap:var(--space-3);padding:var(--space-4)}.closeout-step.is-current .closeout-step-card{padding:calc(var(--space-4) - 1px)}.closeout-step-num{width:32px;height:32px;font-size:14px}.closeout-step-title{font-size:17px;line-height:32px}.closeout-facts{grid-template-columns:minmax(0,1fr);gap:var(--space-2)}.closeout-facts>div{flex-direction:row;justify-content:space-between;gap:var(--space-3)}.closeout-facts dd{text-align:right}.closeout-reserve{grid-template-columns:56px minmax(0,1fr);align-items:start;gap:6px 12px}.closeout-reserve-actions{grid-column:1/-1}.closeout-reserve-toggle.ghost-button{flex:1 1 auto}.closeout-insurance{padding-left:0}.closeout-actions .primary-button{width:100%}}.ai-review{--ai-review-line:#dbe4ee;--ai-review-line-soft:#eef2f6;--ai-review-ink-2:#33465c;display:flex;flex-direction:column;gap:18px;min-width:0}.ai-review-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-4)}.ai-review-head-copy{display:flex;flex:999 1 420px;flex-direction:column;gap:6px;min-width:0}.ai-review-title{margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--text)}.ai-review-status{margin:0;color:var(--muted);font-size:14px;font-weight:500}.ai-review-run.primary-button{min-height:44px}.ai-review-run-result{margin:0;color:var(--ai-review-ink-2);font-size:14px;font-weight:600}.ai-review-card{display:flex;flex-direction:column;gap:var(--space-3);padding:22px;border:1px solid var(--ai-review-line);border-radius:18px;background:#ffffff}.ai-review-card-title{margin:0;font-size:18px;font-weight:800;color:var(--text)}.ai-review-stale{margin:0;padding:var(--space-3) var(--space-4);border-left:3px solid #b26a00;border-radius:10px;background:#fff6e5;color:#7a4500;font-size:14px;font-weight:600;line-height:1.5}.ai-review-summary{margin:0;color:var(--ai-review-ink-2);font-size:15px;line-height:1.6;white-space:pre-line}.ai-review-points{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.ai-review-point{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-3) 0}.ai-review-point:last-child{padding-bottom:0}.ai-review-point+.ai-review-point{border-top:1px solid var(--ai-review-line-soft)}.ai-review-num{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;font-size:13px;font-weight:800}.ai-review-num.is-critical{background:#fde8e4;color:#b42318}.ai-review-num.is-warning{background:#fff1dc;color:#7a4500}.ai-review-num.is-info{background:#e3ecff;color:#1e40af}.ai-review-point-body{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;min-width:0;padding-top:3px}.ai-review-point-body strong{color:var(--text);font-size:15px}.ai-review-point-detail{margin:2px 0 0;color:var(--ai-review-ink-2);font-size:14px;line-height:1.5}.ai-review-link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:14px;font-weight:700;text-align:left;cursor:pointer}.ai-review-link:hover{text-decoration:underline}.ai-review-note{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.ai-review-note a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:600;text-decoration:none}.ai-review-fold{padding:0 22px;border:1px solid var(--ai-review-line);border-radius:18px;background:#ffffff}.ai-review-fold>summary{display:flex;align-items:center;min-height:56px;color:var(--text);font-size:15px;font-weight:800;cursor:pointer}.ai-review-dismissed,.ai-review-previous{display:flex;flex-direction:column;margin:0 0 var(--space-2);padding:0;list-style:none}.ai-review-dismissed li,.ai-review-previous li{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);min-height:44px;border-top:1px solid var(--ai-review-line-soft);font-size:14px}.ai-review-previous-day{flex-shrink:0;color:var(--text)}.ai-review-previous-summary{overflow:hidden;min-width:0;color:var(--muted);text-align:right;text-overflow:ellipsis;white-space:nowrap}.ai-review-dismissed .ghost-button{flex-shrink:0;min-height:44px}.ai-review-start{display:flex;flex-direction:column;gap:var(--space-3);padding-bottom:var(--space-4)}@media (max-width:640px){.ai-review-title{font-size:var(--text-xl)}.ai-review-run.primary-button{width:100%}.ai-review-card{padding:var(--space-4)}.ai-review-fold{padding:0 var(--space-4)}.ai-review-previous li{flex-direction:column;align-items:flex-start;justify-content:center;gap:0;padding:var(--space-2) 0}.ai-review-previous-summary{max-width:100%;text-align:left}}.project-activity,.project-settings{--psa-line:#dbe4ee;--psa-line-soft:#eef2f6;--psa-field:#c9d6e3;display:flex;flex-direction:column;gap:var(--space-4);min-width:0}.project-activity-title,.project-settings-title{margin:0;color:var(--text);font-size:30px;font-weight:800;letter-spacing:-.02em}.project-settings-card{display:flex;flex-direction:column;gap:14px;padding:22px;border:1px solid var(--psa-line);border-radius:18px;background:#ffffff;min-width:0}.project-settings-card.is-danger{border-color:rgba(180,35,24,.25)}.project-settings-card-title{margin:0;color:var(--text);font-size:17px;font-weight:800}.project-settings-subtitle{margin:var(--space-2) 0 0;color:var(--text);font-size:var(--text-sm);font-weight:800}.project-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px}.project-settings .field-label input,.project-settings .field-label select,.project-settings-select{min-height:46px}.project-settings-select{width:220px;max-width:100%}.project-settings-muted{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.project-settings-strong{margin:0;color:var(--text);font-size:15px;font-weight:700;line-height:1.5}.project-settings-actions,.project-settings-save{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--space-3)}.project-settings-save .project-settings-muted{flex:1 1 240px}.project-settings .share-choice,.project-settings .share-link-actions .ghost-button,.project-settings-actions .danger-button,.project-settings-actions .ghost-button,.project-settings-actions .primary-button,.project-settings-save .primary-button{min-height:44px}.project-settings-rows{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.project-settings-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-4);min-height:48px;padding:var(--space-1) 0;border-top:1px solid var(--psa-line-soft);font-size:14px}.project-settings-row:first-child{border-top:0}.project-settings-row-text,.project-settings-row-value{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}.project-settings-row-value{align-items:flex-end;color:var(--muted);text-align:right}@media (max-width:640px){.project-settings-row-value{align-items:flex-start;text-align:left}}.project-settings-row-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.project-settings-row-actions .ghost-button{min-height:44px}.project-settings-link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-weight:700;cursor:pointer}.project-settings-link:hover{text-decoration:underline}.project-settings-invite{display:flex;flex-direction:column;gap:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--psa-line-soft)}.project-settings-invite .field-label{max-width:420px}.project-activity-composer{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--psa-line);border-radius:16px;background:#ffffff}.project-activity-composer-label{color:var(--text);font-size:13px;font-weight:700}.project-activity-composer-row{display:flex;align-items:flex-end;gap:10px}.project-activity-composer-field{flex:1 1 auto;min-width:0}.project-activity-composer-field textarea{width:100%;min-height:64px;padding:10px 12px;border:1px solid var(--psa-field);border-radius:12px;font:inherit;font-size:14px;resize:vertical}.project-activity-send.primary-button{flex-shrink:0;min-height:44px}.project-activity-note{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.project-activity-feed{padding:4px 20px 12px;border:1px solid var(--psa-line);border-radius:16px;background:#ffffff}.project-activity-empty{margin:0;padding:var(--space-4) 0;color:var(--muted);font-size:14px}.project-activity-day-label{margin:0;padding:16px 0 6px;color:var(--muted);font-size:13px;font-weight:800}.project-activity-list{margin:0;padding:0;list-style:none}.project-activity-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:start;grid-gap:12px;gap:12px;padding:12px 0;border-top:1px solid var(--psa-line-soft)}.project-activity-item:first-child{border-top:0}.project-activity-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:#e3ecff;color:var(--accent);font-size:12px;font-weight:800}.project-activity-avatar.is-you{background:var(--bg);color:#33465c}.project-activity-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.project-activity-line{margin:0}.project-activity-line,.project-activity-message{color:var(--text);font-size:14px;line-height:1.5;overflow-wrap:anywhere}.project-activity-message{align-self:stretch;margin:6px 0 0;padding:10px 12px;border-radius:12px;background:#f3f7ff;white-space:pre-line}.project-activity-delete{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.project-activity-delete:hover{color:#b42318;text-decoration:underline}.project-activity-time{padding-top:2px;color:var(--muted);font-size:12px;font-weight:600;text-align:right;white-space:nowrap}@media (max-width:640px){.project-activity-title,.project-settings-title{font-size:var(--text-xl)}.project-activity .filter-pills,.project-settings .filter-pills{flex-wrap:wrap;overflow:visible}.project-settings-card{padding:var(--space-4)}.project-settings-grid{grid-template-columns:minmax(0,1fr)}.project-settings-actions .danger-button,.project-settings-actions .ghost-button,.project-settings-actions .primary-button,.project-settings-save .primary-button,.project-settings-select{width:100%}.project-activity-composer-row{flex-direction:column;align-items:stretch}.project-activity-feed{padding:4px var(--space-4) 12px}.project-activity-item{grid-template-columns:32px minmax(0,1fr) auto;gap:10px}.project-activity-avatar{width:32px;height:32px}}.documents-incomplete{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;margin-bottom:18px;border-left:3px solid var(--amber);border-radius:var(--radius-md);background:rgba(217,119,6,.06)}.documents-incomplete-count{margin:2px 0 0;font-weight:600;color:var(--text)}.documents-families{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.documents-family-chip{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border:1px solid var(--panel-border);border-radius:999px;background:var(--panel-strong);font-size:.88rem;color:var(--text);cursor:pointer}.documents-family-chip span{font-size:.76rem;color:var(--muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.documents-family-chip.is-active{border-color:var(--accent);background:var(--accent-soft);font-weight:600}.documents-family-chip.is-active span{color:var(--accent)}.documents-tools{display:flex;flex-wrap:wrap;gap:8px}.documents-tools .ghost-button.is-active,.ghost-button.is-active{border-color:var(--accent);color:var(--accent)}.documents-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--panel-border);border-radius:var(--radius-md);overflow:hidden}.documents-row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:13px 16px;border:0;border-top:1px solid var(--panel-border);background:var(--panel-strong);text-align:left;cursor:pointer}.documents-rows li:first-child .documents-row{border-top:0}.documents-row:hover{background:var(--bg-soft)}.documents-row-main{display:flex;flex-direction:column;gap:2px;min-width:0}.documents-row-main strong{font-size:.95rem;overflow-wrap:anywhere}.documents-row-context{font-size:.82rem;color:var(--muted)}.documents-row-side{display:flex;align-items:center;gap:12px;flex-shrink:0}.documents-row-amount{font-weight:600;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.documents-row-date{font-size:.82rem;color:var(--muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.documents-row-flag{padding:3px 9px;border-radius:999px;background:rgba(217,119,6,.12);color:var(--amber);font-size:.74rem;font-weight:600;white-space:nowrap}.documents-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px}.documents-create-hint{margin-top:4px}.document-detail{display:flex;flex-direction:column;gap:18px}.document-detail-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--panel-border)}.document-detail-file{margin:0;font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.document-detail-actions-inline{display:flex;gap:8px}.document-detail-actions-inline .ghost-button{min-height:44px}.document-detail-missing{padding:12px 14px;border-left:3px solid var(--amber);border-radius:var(--radius-sm);background:rgba(217,119,6,.06)}.document-detail-missing ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:.88rem}.document-detail-context dl{display:grid;grid-template-columns:auto 1fr;grid-gap:6px 16px;gap:6px 16px;margin:8px 0 0;font-size:.9rem}.document-detail-context dt{color:var(--muted);font-size:.82rem}.document-detail-context dd{margin:0;overflow-wrap:anywhere}.document-detail-anchor{display:contents}.document-detail-context .ghost-button{margin-left:8px;min-height:32px}.document-detail-extracted{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:.9rem}.document-detail-error{margin:0 0 12px;color:var(--red);font-size:.88rem}.document-detail-load-error{display:grid;justify-items:start;grid-gap:var(--space-2);gap:var(--space-2);padding:var(--space-3);border-radius:12px;background:rgba(220,38,38,.06);color:var(--text);font-size:var(--text-sm)}.document-detail-load-error p{margin:0}.documents-task-filter{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2);margin:var(--space-2) 0;padding:var(--space-2) var(--space-3);border-radius:12px;background:var(--accent-soft,rgba(30,64,175,.08));font-size:var(--text-sm)}.ui-modal-footer .document-detail-delete{margin-right:auto}.pdf-viewer{display:grid;grid-gap:var(--space-2);gap:var(--space-2)}.pdf-viewer-status{margin:0;color:var(--muted);font-size:var(--text-sm)}.pdf-viewer-pages{display:grid;justify-items:center;grid-gap:var(--space-1);gap:var(--space-1);max-height:72vh;overflow-y:auto;padding:var(--space-2);border-radius:18px;background:#dbe4f0}.pdf-viewer-pages[hidden]{display:none}.pdf-viewer-page{display:block;max-width:100%;height:auto;background:#ffffff;box-shadow:0 1px 3px rgba(18,32,51,.18)}.pdf-viewer-page-label{margin:0 0 var(--space-2);padding:2px var(--space-2);border-radius:999px;background:rgba(15,23,42,.78);color:#ffffff;font-size:var(--text-xs);font-weight:600;line-height:1.5}.pdf-viewer-error{display:grid;grid-gap:var(--space-2);gap:var(--space-2);padding:var(--space-3);border-radius:12px;background:rgba(220,38,38,.06)}.pdf-viewer-error p{margin:0}.pdf-viewer-error-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}@media (max-width:640px){.documents-incomplete{flex-direction:column;align-items:stretch}.documents-incomplete .ghost-button{min-height:44px}.document-detail-summary{flex-direction:column;align-items:stretch}.document-detail-actions-inline .ghost-button{flex:1 1}.document-detail-context dl{grid-template-columns:1fr;gap:2px}.document-detail-context dt{margin-top:8px}}.document-thumb{position:relative;display:inline-grid;place-items:center;flex-shrink:0;overflow:hidden;border-radius:var(--radius-sm);background:var(--bg-subtle);border:1px solid var(--panel-border)}.document-thumb img{width:100%;height:100%;object-fit:cover;display:block}.document-thumb-row{width:48px;height:48px}.document-thumb-tile{width:100%;aspect-ratio:4/3;border-radius:var(--radius-md)}.document-thumb-large{width:132px;height:132px;border-radius:var(--radius-md)}.document-thumb-placeholder svg{width:40%;max-width:44px;height:auto}.document-thumb-row.document-thumb-placeholder svg{width:22px}.document-thumb-format{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);font-size:.56rem;font-weight:700;letter-spacing:.04em}.document-thumb-money{background:rgba(30,64,175,.08);color:var(--accent)}.document-thumb-company{background:rgba(22,163,74,.09);color:var(--green)}.document-thumb-site{background:rgba(217,119,6,.1);color:var(--amber)}.document-thumb-other{background:var(--ink-soft);color:var(--muted)}.documents-search-bar{display:flex;gap:var(--space-2);align-items:stretch}.documents-search-field{display:flex;align-items:center;gap:var(--space-2);flex:1 1;min-width:0;min-height:44px;padding:0 var(--space-3);border:1px solid var(--panel-border);border-radius:12px;background:var(--panel-strong);color:var(--muted)}.documents-search-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.documents-search-field svg{width:18px;height:18px;flex-shrink:0}.documents-search-field input{flex:1 1;min-width:0;border:0;background:transparent;font-size:var(--text-base);color:var(--text);outline:none;padding:0;box-shadow:none}.documents-filters-toggle{display:none;align-items:center;min-height:44px;padding:0 var(--space-4);border:1px solid var(--panel-border);border-radius:12px;background:var(--panel-strong);color:var(--text);font-weight:600;cursor:pointer}.documents-filters-toggle.has-filters:after{content:"";width:7px;height:7px;margin-left:6px;border-radius:999px;background:var(--accent)}.documents-filters-toggle.is-active{border-color:var(--accent);color:var(--accent)}.documents-filters-panel{display:grid;grid-template-columns:repeat(2,minmax(160px,220px));grid-gap:var(--space-3);gap:var(--space-3)}.documents-families{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-bottom:0;padding-bottom:2px}.documents-families::-webkit-scrollbar{display:none}.documents-family-chip{flex-shrink:0;min-height:36px}.documents-library-scope{gap:var(--space-2) var(--space-3)}.documents-library-scope .section-note{margin:0 auto 0 0}.documents-incomplete-chip{min-height:32px;padding:0 var(--space-3);border:1px solid rgba(217,119,6,.35);border-radius:999px;background:rgba(217,119,6,.08);color:var(--amber);font-size:var(--text-sm);font-weight:600;cursor:pointer}.documents-incomplete-chip.is-active{background:var(--amber);color:#ffffff}.documents-layout-switch{display:inline-flex;padding:2px;border-radius:10px;background:var(--ink-soft)}.documents-layout-switch button{min-height:30px;padding:0 var(--space-3);border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:var(--text-sm);font-weight:600;cursor:pointer}.documents-layout-switch button.is-active{background:var(--panel-strong);color:var(--text);box-shadow:0 1px 2px rgba(18,32,51,.12)}.documents-tools .ghost-button{min-height:34px;font-size:var(--text-sm)}.documents-row{justify-content:flex-start;gap:var(--space-3);padding:var(--space-2) var(--space-3)}.documents-row-main{flex:1 1}.documents-row-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}.documents-row-context{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.documents-row-side{flex-direction:column;align-items:flex-end;gap:4px}.documents-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-gap:var(--space-3);gap:var(--space-3)}.documents-tile{display:grid;grid-gap:6px;gap:6px;width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.documents-tile:focus-visible .document-thumb,.documents-tile:hover .document-thumb{border-color:var(--accent)}.documents-tile-title{font-size:var(--text-sm);font-weight:600;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.documents-tile-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:var(--text-xs);color:var(--muted)}.document-detail-content{display:flex;align-items:center;gap:var(--space-4);padding-bottom:var(--space-4);border-bottom:1px solid var(--panel-border)}.document-detail-preview{padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:var(--radius-md)}.document-detail-content-side{display:grid;grid-gap:var(--space-2);gap:var(--space-2);min-width:0}.document-detail-content-side .document-detail-file{margin:0;overflow-wrap:anywhere}.document-detail-context .compact-grid{margin-top:var(--space-3)}.document-viewer{position:fixed;inset:0;z-index:55;display:grid;grid-template-rows:auto 1fr auto auto;grid-template-columns:minmax(0,1fr);background:#0b1220;color:#f1f5f9}.document-viewer-head{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);padding-top:calc(var(--space-2) + env(safe-area-inset-top));padding-left:var(--space-4)}.document-viewer-title{display:grid;grid-template-columns:minmax(0,1fr);flex:1 1;min-width:0;text-align:center}.document-viewer-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base)}.document-viewer-title span{font-size:var(--text-xs);color:#94a3b8}.document-viewer-icon-button,.document-viewer-nav{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:0;border-radius:999px;background:rgba(255,255,255,.08);color:inherit;cursor:pointer}.document-viewer-icon-button svg,.document-viewer-nav svg{width:22px;height:22px}.document-viewer-stage{position:relative;display:flex;align-items:stretch;min-height:0}.document-viewer-content{display:grid;place-items:center;flex:1 1;min-width:0;min-height:0;overflow:hidden}.document-viewer-nav{position:absolute;top:50%;z-index:2;transform:translateY(-50%);background:rgba(15,23,42,.72)}.document-viewer-nav-previous{left:var(--space-3)}.document-viewer-nav-next{right:var(--space-3)}.document-viewer-image-frame{display:grid;place-items:center;width:100%;height:100%;overflow:hidden;touch-action:none;cursor:zoom-in;-webkit-user-select:none;-moz-user-select:none;user-select:none}.document-viewer-image-frame.is-zoomed{cursor:-webkit-grab;cursor:grab}.document-viewer-image-frame img{max-width:100%;max-height:100%;object-fit:contain;transition:transform .12s ease-out;transform-origin:center}.document-viewer-pdf-frame{width:min(1100px,100%);height:100%;border:0;background:#ffffff}.document-viewer-pdf{width:min(900px,100%);height:100%;overflow-y:auto;padding:var(--space-2)}.document-viewer-pdf .pdf-viewer-pages{max-height:none}.document-viewer-pdf .pdf-viewer-status,.document-viewer-status{color:#cbd5e1}.document-viewer-fallback{display:grid;justify-items:center;grid-gap:var(--space-3);gap:var(--space-3);max-width:360px;padding:var(--space-5);text-align:center}.document-viewer-fallback .ghost-button{color:#f1f5f9;border-color:rgba(255,255,255,.3)}.document-viewer-fallback-actions{display:flex;gap:var(--space-2)}.document-viewer-notice{margin:0 var(--space-3) var(--space-2);padding:var(--space-2) var(--space-3);border-radius:10px;background:rgba(220,38,38,.18);color:#fecaca;font-size:var(--text-sm)}.document-viewer-actions{display:flex;justify-content:center;gap:var(--space-1);padding:var(--space-2) var(--space-3);padding-bottom:calc(var(--space-2) + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.08)}.document-viewer-actions button{display:grid;justify-items:center;grid-gap:2px;gap:2px;min-width:76px;min-height:52px;padding:var(--space-1) var(--space-2);border:0;border-radius:10px;background:transparent;color:#e2e8f0;font-size:var(--text-xs);cursor:pointer}.document-viewer-actions button:hover{background:rgba(255,255,255,.08)}.document-viewer-actions .document-viewer-step{display:none}.document-viewer-actions button:disabled{opacity:.35;cursor:default}.document-viewer-actions button.is-danger{color:#fca5a5}.document-viewer-actions svg{width:22px;height:22px}@media (min-width:761px){.documents-filters-panel{grid-template-columns:repeat(2,minmax(180px,220px))}.documents-search-bar{max-width:640px}}@media (max-width:760px){.documents-library-shell{padding:0;border:0;background:transparent;gap:var(--space-3)}.documents-library-shell .documents-library-scope{flex-direction:row;align-items:center;gap:var(--space-2)}.documents-incomplete-chip,.documents-layout-switch button{padding:0 var(--space-2);font-size:var(--text-xs)}.documents-filters-toggle{display:inline-flex}.documents-filters-panel{display:none;grid-template-columns:1fr 1fr}.documents-filters-panel.is-open{display:grid}.documents-tools{gap:var(--space-2)}.documents-tools .ghost-button{flex:1 1;min-height:36px}.documents-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.document-viewer-nav{display:none}.document-viewer-actions .document-viewer-step{display:grid}.document-viewer-actions button{min-width:0;flex:1 1}.document-viewer-pdf-frame{width:100%}.document-detail-content{gap:var(--space-3)}.document-detail-content .document-thumb-large{width:96px;height:96px}}@media (max-width:360px){.document-viewer-actions button{min-width:64px}.documents-filters-panel{grid-template-columns:1fr}}.context-documents{display:grid;grid-gap:var(--space-2);gap:var(--space-2);margin-top:var(--space-4)}.context-documents-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}.context-documents-head .ui-panel-kicker{margin:0}.context-documents-count{color:var(--muted);font-weight:600}.context-documents-add{min-height:36px;font-size:var(--text-sm)}.context-documents-rows{margin:0}.context-documents-more{justify-self:start;font-size:var(--text-sm)}.document-context-links{display:grid;grid-gap:var(--space-2);gap:var(--space-2);margin:var(--space-2) 0 0;padding:0;list-style:none}.document-context-links li{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--accent-soft)}.document-context-link-text{display:grid;min-width:0}.document-context-link-heading{color:var(--muted);font-size:var(--text-xs)}.document-context-link-label{font-size:var(--text-sm);font-weight:600;overflow-wrap:anywhere}.document-context-links .ghost-button{flex-shrink:0;min-height:32px;margin:0}.context-upload-link{display:grid;grid-gap:var(--space-1);gap:var(--space-1);margin:0;padding:var(--space-3);border-radius:var(--radius-sm);background:var(--accent-soft);font-size:var(--text-sm)}.context-upload-link .ui-panel-kicker{margin:0}.reserve-photo-open{padding:0;background:none;cursor:pointer}.reserve-photo-open .document-thumb-row{width:100%;height:100%;border:0;border-radius:0}.reserve-card-focused{outline:2px solid var(--accent);outline-offset:2px}.quote-sheet-piece-title{display:inline-flex;align-items:center;gap:var(--space-2);min-width:0}.budget-document-open{padding:0;text-align:left;color:inherit}@media (max-width:560px){.context-documents-head .ghost-button,.document-context-links .ghost-button{width:auto}.context-documents-head .ui-panel-kicker{min-width:0}}.documents-load-more{display:grid;justify-items:center;grid-gap:var(--space-2);gap:var(--space-2);margin-top:var(--space-3);text-align:center}.documents-load-more .ghost-button{min-width:200px}.documents-browser.has-record-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,440px);grid-gap:var(--space-4);gap:var(--space-4);align-items:start}.documents-record-panel{position:-webkit-sticky;position:sticky;top:88px;max-height:calc(100vh - 104px);overflow-y:auto;border:1px solid var(--panel-border);border-radius:var(--radius-lg);background:var(--panel-strong);box-shadow:var(--shadow)}.documents-record-placeholder{display:grid;grid-gap:var(--space-2);gap:var(--space-2);padding:var(--space-5) var(--space-4);color:var(--text)}.documents-record-placeholder p{margin:0}.documents-row-item{display:flex;align-items:center;background:var(--panel-strong)}.documents-row-item+.documents-row-item{border-top:1px solid var(--panel-border)}.documents-row-item .documents-row{flex:1 1;min-width:0;min-height:64px;border-top:0;background:transparent;padding-left:var(--space-2)}.documents-row-item:hover{background:var(--bg-soft)}.documents-row-item.is-selected{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}.documents-row-preview,.documents-tile-preview{flex-shrink:0;padding:var(--space-2) 0 var(--space-2) var(--space-3);border:0;background:transparent;cursor:zoom-in}.documents-tile-preview{display:block;width:100%;padding:0}.documents-grid li{display:grid;grid-gap:6px;gap:6px}.documents-grid li.is-selected .document-thumb{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.documents-row-preview:focus-visible,.documents-row:focus-visible,.documents-tile-preview:focus-visible,.documents-tile:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.document-record{flex-direction:column;min-height:0}.document-record,.document-record-bar{display:flex;background:var(--panel-strong)}.document-record-bar{position:-webkit-sticky;position:sticky;top:0;z-index:1;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-1) var(--space-2);border-bottom:1px solid var(--panel-border)}.document-record-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 var(--space-2);border:0;border-radius:10px;background:transparent;color:var(--accent-deep);font:inherit;font-weight:600;cursor:pointer}.document-record-back svg,.document-record-step svg{width:20px;height:20px}.document-record-back:hover{background:var(--bg-soft)}.document-record-steps{display:flex;align-items:center;gap:4px}.document-record-position{margin-right:6px;color:var(--muted);font-size:var(--text-sm);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.document-record-step{display:inline-grid;place-items:center;width:44px;height:44px;border:1px solid var(--panel-border);border-radius:999px;background:var(--panel);color:var(--text);cursor:pointer}.document-record-step:disabled{opacity:.35;cursor:default}.document-record-body{display:grid;grid-gap:var(--space-4);gap:var(--space-4);padding:var(--space-4)}.document-record-identity{display:grid;grid-gap:2px;gap:2px}.document-record-identity .ui-panel-kicker{margin:0}.document-record-identity h2{margin:0;font-size:var(--text-xl);line-height:1.25;overflow-wrap:anywhere}.document-record-identity h2:focus{outline:none}.document-record-file{margin:0;color:var(--muted);font-size:var(--text-sm);overflow-wrap:anywhere}.document-record-preview-row{display:grid;grid-template-columns:auto minmax(0,1fr);grid-gap:var(--space-3);gap:var(--space-3);align-items:start}.document-record-preview{position:relative;padding:0;border:0;border-radius:var(--radius-md);background:transparent;cursor:zoom-in}.document-record-preview .document-thumb-large{width:156px;height:156px}.document-record-preview-hint{position:absolute;top:6px;right:6px;padding:2px var(--space-2);border-radius:999px;background:rgba(15,23,42,.78);color:#ffffff;font-size:var(--text-xs);font-weight:600}.document-record-actions{flex-direction:column;align-items:stretch}.document-record-notice{margin:0;padding:var(--space-2) var(--space-3);border-radius:10px;background:rgba(22,163,74,.08);color:var(--green);font-size:var(--text-sm);font-weight:600}.document-record-section{display:grid;grid-gap:var(--space-2);gap:var(--space-2)}.document-record-form .ui-panel-kicker,.document-record-section .ui-panel-kicker{margin:0}.document-record-info{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-gap:var(--space-2) var(--space-4);gap:var(--space-2) var(--space-4);margin:0}.document-record-info dt{color:var(--muted);font-size:var(--text-xs)}.document-record-info dd{margin:0;font-weight:600;overflow-wrap:anywhere}.document-record-description{margin:0;white-space:pre-line;overflow-wrap:anywhere}.document-record-form{display:grid;grid-gap:var(--space-4);gap:var(--space-4)}.document-record-form section{display:grid;grid-gap:var(--space-2);gap:var(--space-2)}.document-record-form-actions{position:-webkit-sticky;position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:var(--space-2);padding:var(--space-3) 0 var(--space-1);background:linear-gradient(to bottom,transparent,var(--panel-strong) 35%)}.document-record-danger{padding-top:var(--space-3);border-top:1px solid var(--panel-border)}.document-record-skeleton{display:grid;grid-gap:var(--space-2);gap:var(--space-2)}.document-record-skeleton span:not(.visually-hidden){display:block;border-radius:8px;background:linear-gradient(90deg,var(--bg-soft),var(--panel-border),var(--bg-soft));background-size:200% 100%;animation:document-record-shimmer 1.2s ease-in-out infinite}.document-record-skeleton-thumb{width:156px;height:156px}.document-record-skeleton-line{height:16px;width:80%}.document-record-skeleton-line.is-short{width:45%}@keyframes document-record-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion:reduce){.document-record-skeleton span:not(.visually-hidden){animation:none}}.document-record-layer{position:fixed;inset:0;z-index:52;display:flex;justify-content:flex-end;background:rgba(15,23,42,.45)}.document-record-layer-sheet{width:min(560px,100%);height:100%;overflow-y:auto;overscroll-behavior:contain;background:var(--panel-strong);box-shadow:var(--shadow-md)}.document-record-layer-notice{margin:0 var(--space-4) var(--space-4);color:var(--red);font-size:var(--text-sm)}@media (max-width:767px){.document-record-layer{background:var(--panel-strong)}.document-record-layer-sheet{width:100%;box-shadow:none;padding-bottom:env(safe-area-inset-bottom)}.document-record.is-screen .document-record-bar{padding-top:calc(var(--space-1) + env(safe-area-inset-top))}.document-record-body{padding:var(--space-3)}.document-record-preview .document-thumb-large,.document-record-skeleton-thumb{width:112px;height:112px}.document-record-form-actions{padding-bottom:calc(var(--space-2) + env(safe-area-inset-bottom))}.document-record-form-actions .ghost-button,.document-record-form-actions .primary-button{flex:1 1;min-height:48px}.document-record-identity h2{font-size:var(--text-lg)}.document-record .danger-button,.document-record .ghost-button,.document-record .primary-button{min-height:44px}}.docs-screen{--docs-line:#dbe4ee;--docs-line-soft:#eef2f6;--docs-ink-2:#33465c;flex-direction:column;min-width:0}.docs-head,.docs-screen{display:flex;gap:var(--space-4)}.docs-head{flex-wrap:wrap;align-items:flex-end}.docs-head-text{display:flex;flex:999 1 420px;flex-direction:column;gap:6px;min-width:0}.docs-head-title-row{display:flex;align-items:center;gap:var(--space-2)}.docs-title{margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--text)}.docs-summary{margin:0;font-size:var(--text-sm);font-weight:600;color:var(--docs-ink-2)}.docs-summary-link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-weight:700;cursor:pointer}.docs-summary-link:hover{color:#1e3a8a;text-decoration:underline}.docs-head-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.docs-head-actions .ghost-button,.docs-head-actions .primary-button{min-height:44px;border-radius:12px}.docs-journal-button.is-active{border-color:var(--accent);color:var(--accent)}.docs-add-button{background:var(--accent-deep);box-shadow:none}.docs-phone-more{position:relative;display:none;margin-left:auto}.docs-icon-button{display:inline-grid;place-items:center;width:44px;height:44px;border:1px solid var(--docs-line);border-radius:12px;background:#ffffff;color:var(--text);cursor:pointer}.docs-icon-button svg,.document-record-more-button svg{width:20px;height:20px;fill:currentColor}.docs-phone-menu,.document-record-menu{top:calc(100% + 6px);right:0;border-radius:12px;background:#ffffff;box-shadow:0 12px 32px rgba(11,37,69,.18),0 0 0 1px var(--docs-line)}.docs-phone-menu .mobile-popover-item,.document-record-menu .mobile-popover-item{min-height:44px;color:var(--text);font-size:var(--text-sm);font-weight:600}.docs-phone-menu .mobile-popover-item.is-current{color:var(--accent)}.docs-browser{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}.docs-browser.has-record-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,360px);align-items:start;grid-gap:18px;gap:18px}.docs-library{display:flex;flex-direction:column;gap:var(--space-3);min-width:0;border-radius:var(--radius-lg)}.docs-library.is-dragging{outline:2px dashed var(--accent);outline-offset:6px}.docs-categories{display:flex;flex-wrap:wrap;gap:6px}.docs-category{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:1px solid #c9d6e3;border-radius:999px;background:#ffffff;color:var(--text);font:inherit;font-size:14px;font-weight:600;cursor:pointer}.docs-category-count{font-size:12px;font-weight:700;color:var(--muted)}.docs-category.is-active{border-color:var(--accent);background:var(--accent);color:#ffffff;font-weight:700}.docs-category.is-active .docs-category-count{color:#dbe6ff}.docs-category:focus-visible,.docs-photo:focus-visible,.docs-row-preview:focus-visible,.docs-row:focus-visible,.docs-summary-link:focus-visible{outline:3px solid rgba(30,64,175,.35);outline-offset:2px}.docs-toolbar{flex-wrap:wrap;gap:10px}.docs-search,.docs-toolbar{display:flex;align-items:center}.docs-search{position:relative;flex:1 1 240px}.docs-search svg{position:absolute;left:14px;width:18px;height:18px;color:var(--muted);pointer-events:none}.docs-search input{width:100%;padding:0 14px 0 40px;background:#ffffff;font:inherit;font-size:14px;font-weight:500}.docs-search input,.docs-sort select{height:44px;border:1px solid #c9d6e3;border-radius:12px;color:var(--text)}.docs-sort select{padding:0 36px 0 14px;background-color:#ffffff}.docs-incomplete,.docs-sort select{font:inherit;font-size:14px;font-weight:700}.docs-incomplete{min-height:44px;padding:0 14px;border:1px solid #f3c98b;border-radius:12px;background:#fff8ef;color:#7a4500;cursor:pointer}.docs-incomplete.is-active{border-color:#7a4500;background:#fff1dc}.docs-compare-button{min-height:44px;border-radius:12px;background:var(--accent);box-shadow:none}.docs-result-count{margin:0;font-size:var(--text-sm);color:var(--muted)}.docs-rows{margin:0;padding:0;list-style:none;overflow:hidden;border:1px solid var(--docs-line);border-radius:var(--radius-lg);background:#ffffff}.docs-row-item{display:flex;align-items:center;background:#ffffff}.docs-row-item+.docs-row-item{border-top:1px solid var(--docs-line-soft)}.docs-row-item:hover{background:#f8fafc}.docs-row-item.is-selected{background:#f3f7ff;box-shadow:inset 3px 0 0 var(--accent)}.docs-row-preview{flex-shrink:0;padding:12px 0 12px var(--space-4);cursor:zoom-in}.docs-row,.docs-row-preview{border:0;background:transparent}.docs-row{display:grid;flex:1 1;grid-template-columns:minmax(0,1fr) auto 110px;align-items:center;grid-gap:14px;gap:14px;min-width:0;min-height:72px;padding:12px var(--space-4) 12px 14px;color:var(--text);font:inherit;text-align:left;cursor:pointer}.docs-row-main{display:flex;flex-direction:column;gap:2px;min-width:0}.docs-row-main strong{font-size:15px;font-weight:700}.docs-row-context,.docs-row-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.docs-row-context{color:var(--muted);font-size:13px;font-weight:500}.docs-row-state{display:flex;justify-content:flex-start;min-width:0}.docs-row-amount{font-size:14px;font-weight:700;text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.docs-state{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.docs-state.is-todo{background:#fff1dc;color:#7a4500}.docs-state.is-ok{background:#e3f4ea;color:#17663a}.docs-state.is-info{background:#eff4f8;color:var(--docs-ink-2)}.docs-state.is-danger{background:#fde8e4;color:#b42318}.docs-screen .document-thumb-row,.docs-screen .document-thumb-tile{border-color:transparent}.docs-screen .document-thumb-row.document-thumb-placeholder svg{display:none}.docs-screen .document-thumb-row .document-thumb-format{position:static;transform:none;font-size:11px;font-weight:800;letter-spacing:.02em}.docs-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));grid-gap:12px;gap:12px;margin:0;padding:0;list-style:none}.docs-photo{display:flex;flex-direction:column;width:100%;height:100%;padding:0;overflow:hidden;border:0;border-radius:14px;background:#ffffff;box-shadow:0 0 0 1px var(--docs-line);color:var(--text);font:inherit;text-align:left;cursor:pointer}.docs-photo .document-thumb-tile{border-radius:0}.docs-photo-item.is-selected .docs-photo{box-shadow:0 0 0 3px var(--accent)}.docs-photo-text{display:flex;flex-direction:column;gap:2px;padding:10px 12px}.docs-photo-text strong{font-size:14px;font-weight:700;overflow-wrap:anywhere}.docs-drop-hint,.docs-photo-text span{color:var(--muted);font-size:13px}.docs-drop-hint{margin:0}.docs-tool{display:flex;flex-direction:column;gap:var(--space-3)}.docs-tool-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2)}.docs-tool-head h3{margin:0;font-size:var(--text-md);font-weight:800}.docs-tool-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.docs-record-panel{position:-webkit-sticky;position:sticky;top:88px;max-height:calc(100vh - 104px);overflow-y:auto;border:1px solid var(--docs-line);border-radius:var(--radius-lg);background:#ffffff}.docs-record-panel .document-record-bar{border-bottom-color:var(--docs-line-soft)}.document-record-body{gap:14px}.document-record-preview{display:block;width:100%;overflow:hidden;border:1px solid #e6edf4;border-radius:12px;background:#f7fafc}.document-record-preview .document-thumb-large{display:grid;width:100%;height:168px;border:0;border-radius:0}.document-record-preview .document-thumb-large img{object-fit:contain}.document-record-type{margin:0;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.document-record-identity h2{font-size:17px;font-weight:800}.document-record-file{font-size:13px}.document-record-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.document-record-info>div.is-wide{grid-column:1/-1}.document-record-info dt{font-size:12px;font-weight:600}.document-record-info dd{font-size:14px;font-weight:700}.document-record-link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-weight:700;text-align:left;cursor:pointer}.document-record-link:hover{text-decoration:underline}.document-record-decision{display:flex;flex-direction:column;gap:var(--space-2)}.document-record-decision-options{display:flex;gap:2px;padding:4px;border-radius:14px;background:#e6edf4}.document-record-decision-option{flex:1 1;min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.document-record-decision-option[aria-pressed=true]{background:#ffffff;font-weight:800;box-shadow:0 1px 2px rgba(11,37,69,.12)}.document-record-decision-option.is-chosen:not([aria-pressed=true]){outline:2px solid var(--accent);outline-offset:-2px;color:var(--accent);font-weight:700}.document-record-decision-option:focus-visible{outline:3px solid rgba(30,64,175,.35);outline-offset:1px}.document-record-decision-confirm{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid #c9d6e3;border-radius:12px;background:#f7fafc;font-size:13px;line-height:1.5}.document-record-decision-confirm p{margin:0}.document-record-decision-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.document-record-decision-actions .ghost-button,.document-record-decision-actions .primary-button{min-height:44px;border-radius:12px}.document-record-note{margin:0;padding:10px 12px;border-radius:12px;background:#fff8ef;color:#33465c;font-size:13px;line-height:1.5}.document-record-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--space-2)}.document-record-actions>.ghost-button{flex:1 1;min-height:44px;border-radius:12px}.document-record-more{position:relative;flex-shrink:0}.document-record-more .document-record-more-button{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border-radius:12px}.docs-add-card{width:min(620px,calc(100vw - 32px))}.docs-add{display:flex;flex-direction:column;gap:18px}.docs-add-file{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e6edf4;border-radius:14px;background:#f7fafc}.docs-add-file .ghost-button{flex-shrink:0;width:auto}.docs-add-file-thumb{flex-shrink:0;width:48px;height:48px;border-radius:10px;object-fit:cover}.docs-format-badge{display:inline-grid;place-items:center;background:#e3ecff;color:var(--accent);font-size:11px;font-weight:800}.docs-add-file-text{display:flex;flex:1 1;flex-direction:column;gap:2px;min-width:0}.docs-add-file-text strong{font-size:14px;overflow-wrap:anywhere}.docs-add-file-text span,.docs-hint{color:var(--muted);font-size:12px;font-weight:500}.docs-add-drop{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-5) var(--space-4);border:2px dashed #c9d6e3;border-radius:14px;background:#f7fafc;text-align:center}.docs-add-drop.is-dragging{border-color:var(--accent);background:#f3f7ff}.docs-add-drop p{margin:0}.docs-add-kind{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding:0;border:0}.docs-add-kind legend{margin-bottom:var(--space-2);padding:0;font-size:14px;font-weight:700}.docs-add-kind-chips{display:flex;flex-wrap:wrap;gap:6px}.docs-add-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.docs-add-extract{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}.docs-add-extract .docs-hint{margin:0}.docs-add-warning{margin:0;padding:10px 12px;border-radius:12px;background:#fff8ef;color:#7a4500;font-size:13px;font-weight:600}@media (max-width:1199px){.docs-row{grid-template-columns:minmax(0,1fr) auto auto}}@media (max-width:767px){.docs-screen{gap:var(--space-3)}.docs-title{font-size:22px}.docs-phone-more{display:block}.docs-head-actions{display:none}.docs-categories{flex-wrap:nowrap;padding-bottom:2px;overflow-x:auto;scrollbar-width:none}.docs-categories::-webkit-scrollbar{display:none}.docs-category{flex:0 0 auto}.docs-drop-hint,.docs-sort{display:none}.docs-search{flex-basis:100%}.docs-compare-button{width:100%;background:#ffffff;border:1px solid var(--accent);color:var(--accent)}.docs-rows{border-radius:var(--radius-md)}.docs-row-preview{padding-left:var(--space-4)}.docs-row-preview .document-thumb-row{width:44px;height:44px}.docs-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main amount" "state state";gap:4px 10px;min-height:64px;padding:12px var(--space-4) 12px 12px}.docs-row-main{grid-area:main}.docs-row-state{grid-area:state}.docs-row-amount{grid-area:amount;align-self:start}.docs-row-state:empty{display:none}.docs-state{min-height:22px;padding:0 8px;font-size:11px}.docs-row-context{font-size:12px;font-weight:600;white-space:normal}.docs-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.docs-add-grid{grid-template-columns:minmax(0,1fr)}}