/* Claude source-design parity: history, document and plan record flows. */
.cd-record-detail,.cd-plan-detail{max-width:720px;margin:0 auto;padding:0 16px 32px;background:#fff}
.cd-record-detail-head{margin:0 -16px 18px;padding:14px 16px;border-bottom:1px solid #e6e8ec;background:#fff}
.cd-record-detail-head>div{min-width:0}.cd-record-detail-head h1{overflow-wrap:anywhere;font-size:22px;line-height:28px}.cd-record-detail-head p{margin-top:3px;color:#5b616e;font-size:14px}
.cd-record-detail .detail-total{margin:0 0 16px;padding:18px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:4px 12px;border-radius:14px;background:#15171c;color:#fff}.cd-record-detail .detail-total>span{min-width:0;color:#cdd1d8}.cd-record-detail .detail-total>strong{min-width:0;font-size:28px;line-height:34px;overflow-wrap:normal;word-break:normal}.cd-record-detail .detail-total>small{grid-column:1/-1;display:block;margin-top:2px;color:#cdd1d8;font-size:13px;line-height:18px}.cd-record-detail .detail-total.is-unknown{background:#f4f5f7;color:#15171c}.cd-record-detail .detail-total.is-unknown>span,.cd-record-detail .detail-total.is-unknown>small{color:#5b616e}.cd-record-detail .detail-total.is-unknown>strong{font-size:20px;line-height:27px}
.cd-record-detail .detail-total .small-action{grid-column:1/-1;justify-self:start;margin-top:6px;color:#1a5dcc}
.cd-record-detail .detail-total.is-unknown{grid-template-columns:minmax(0,1fr);gap:8px}
.cd-record-facts{margin:0 0 22px;border:1px solid #e6e8ec;border-radius:12px}.cd-record-facts>div{min-height:48px;padding:11px 14px;align-items:flex-start}.cd-record-facts>div+div{border-top:1px solid #e6e8ec}.cd-record-facts dt{flex:0 0 auto}.cd-record-facts dd{min-width:0;max-width:none;flex:1;text-align:right;overflow-wrap:break-word;word-break:normal}
.cd-history-summary>strong.is-unknown{overflow-wrap:normal;word-break:normal}
.cd-linked-original{margin:18px 0}.cd-linked-original__button{width:100%;min-height:68px;padding:10px 12px;display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:12px;border:1px solid #e6e8ec;border-radius:12px;background:#fff;text-align:left}.cd-linked-original__button>span:first-child{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:#fdecec;color:#e3202b}.cd-linked-original__button>span:nth-child(2){display:flex;flex-direction:column;gap:2px}.cd-linked-original__button small{color:#5b616e}
.cd-edit-range{align-self:flex-start}.cd-filter-sheet{position:fixed;inset:0;z-index:35;display:flex;align-items:flex-end}.cd-filter-sheet__scrim{position:absolute;inset:0;border:0;background:rgba(14,15,18,.5)}.cd-filter-sheet__card{position:relative;width:100%;max-width:720px;margin:0 auto;padding:8px 16px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px;border-radius:18px 18px 0 0;background:#fff}.cd-filter-sheet__handle{width:36px;height:4px;margin:0 auto;border-radius:2px;background:#cdd1d8}.cd-filter-sheet__head{display:flex;align-items:center;justify-content:space-between}.cd-filter-sheet__head h2{margin:0;font-size:20px}.cd-filter-sheet .history-range{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cd-filter-sheet .history-range label{display:flex;flex-direction:column;gap:6px}.cd-filter-sheet .history-range input{width:100%;height:50px}
.cd-manual-record{max-width:720px;margin:0 auto}.cd-manual-record .form-card{margin-top:0}.cd-manual-record .advanced summary{display:flex;flex-direction:column;gap:2px}.cd-manual-record .advanced summary small{color:#5b616e;font-weight:400}
.cd-unknown-cost{align-self:end;min-height:52px}.cd-unknown-cost span{display:flex;flex-direction:column}.cd-unknown-cost small{color:#5b616e;font-size:13px;font-weight:400}
.cd-document-upload{max-width:720px;margin:0 auto}.cd-document-upload .form-card{margin-top:0}.cd-upload-icon{width:56px;height:56px;display:grid;place-items:center;margin:0 auto 6px;border-radius:50%;background:#fdecec;color:#e3202b}.cd-upload-icon svg{width:28px;height:28px}.upload-box.has-preview{min-height:0;padding:0;border:0}.cd-upload-preview{margin:0;display:grid;gap:10px}.cd-upload-preview img{width:100%;max-height:360px;object-fit:contain;border-radius:12px;background:#f0f1f4}.cd-upload-preview figcaption{display:flex;justify-content:space-between;gap:12px}.cd-upload-preview figcaption small{color:#5b616e}.cd-upload-preview .button{width:100%}.cd-quality-check{display:flex;gap:10px;padding:12px;border-radius:10px;background:#fff4e0;color:#7a4100}.cd-quality-check>svg{width:20px;flex:0 0 20px}.cd-quality-check>span{display:flex;flex-direction:column;gap:3px}.cd-quality-check small{font-size:13px;line-height:18px}
.review-form .ocr-item.has-unknown{border-color:#e0a11b;background:#fffaf0}.cd-review-unknown{margin-left:8px;padding:2px 6px;border-radius:5px;background:#fff4e0;color:#7a4100;font-size:12px;font-weight:600}.cd-install-choice span{display:flex;flex-direction:column}.cd-install-choice small{color:#5b616e;font-size:13px;font-weight:400}
.cd-nowrap-measure,[data-completion-odometer]{white-space:nowrap}
.cd-plan-detail{min-height:100%}.cd-plan-detail__icon{width:64px;height:64px;display:grid;place-items:center;margin:6px auto 18px;border-radius:16px;background:#f4f5f7}.cd-plan-detail__icon.is-due{background:#fff4e0;color:#b45309}.cd-plan-detail__icon svg{width:30px;height:30px}.cd-plan-detail .plan-detail-actions{margin-bottom:14px;grid-template-columns:1fr 1fr}.cd-plan-detail .plan-detail-actions .button:last-child:nth-child(3){grid-column:1/-1}.cd-plan-detail>.task-inline-panel{margin-top:12px}
.cd-repeat-choice{display:flex;flex-direction:column;gap:6px}.cd-repeat-choice select{height:48px}.cd-snooze-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.cd-snooze-presets button{min-height:40px;padding:4px;border:1px solid #cdd1d8;border-radius:10px;background:#fff;font-size:13px;font-weight:600}
.plan-form .template-list{display:flex;flex-wrap:wrap;overflow:visible;gap:8px;padding-bottom:0}
.plan-form .template-list button{white-space:normal;max-width:100%;min-height:44px}
.cd-plan-detail .task-inline-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cd-plan-detail .task-inline-actions>.text-link:last-child:nth-child(3){grid-column:1/-1}
@media(max-width:390px){.cd-record-detail .detail-actions,.cd-plan-detail .plan-detail-actions{grid-template-columns:1fr}.cd-plan-detail .plan-detail-actions .button:last-child:nth-child(3){grid-column:auto}.cd-snooze-presets{grid-template-columns:1fr}}
