.result-layout{grid-template-columns:minmax(0,1fr);gap:24px}
.result-sidebar{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);grid-template-areas:"chart estate" "people people";gap:20px;align-items:start}
.result-sidebar .chart-card{grid-area:chart;padding:26px;border:1px solid #d5decd}
.result-sidebar .estate{grid-area:estate;margin:0;padding:26px}
.chart-card h3,.overview-people h3{margin:0 0 20px;font-size:21px;letter-spacing:-.5px}
.overview-chart{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:center}
.overview-chart .donut{width:160px;height:160px;margin:0}
.overview-chart .donut-center{width:112px;height:112px}
.overview-chart .donut-center strong{font-size:27px}
.overview-chart .donut-center small{font-size:10px}
.overview-chart .legend{font-size:13px;gap:12px;padding:10px 0;border-bottom:1px solid #d3dbcc}
.overview-chart .legend:last-child{border:0}
.overview-chart .legend span{display:flex;align-items:center;gap:8px;min-width:0}
.overview-chart .swatch{margin:0;flex:0 0 8px;width:8px;height:8px}
.overview-chart .legend strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.chart-note{margin:18px 0 0;font-size:11px}
.overview-table-card{grid-area:people;background:var(--white);border:1px solid var(--line);border-radius:20px;padding:26px;min-width:0}
.overview-people{border:0;margin:0;padding:0}
.overview-people h3{margin-bottom:8px}
.table-hint{margin:0 0 20px}
.overview-people:has(.overview-money:not([hidden])) .table-hint{display:none}
.overview-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:15px}
.overview-table .name-col{width:43%}.overview-table .share-col{width:22%}.overview-table .money-col{width:35%}
.overview-table thead{background:#f0f3e9}
.overview-table th,.overview-table td{padding:16px 12px;vertical-align:middle}
.overview-table thead th{font-size:11px;letter-spacing:.4px;text-align:left;color:var(--muted)}
.overview-table th:nth-child(n+2),.overview-table td{text-align:right}
.overview-table tbody tr{display:table-row;border-bottom:1px solid #e4e9df}
.overview-table tbody tr:last-child{border:0}
.overview-table tbody th{text-align:left;font-weight:500;overflow-wrap:anywhere}
.overview-table td{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.person-label{display:flex;gap:9px;align-items:center}
.person-label .swatch{margin:0;flex:0 0 7px;width:7px;height:7px}
.overview-table .overview-money{font-size:inherit;margin:0;color:var(--ink)}
.overview-money:not([hidden])+.amount-placeholder{display:none}
.amount-placeholder{color:#a5afa8}
#charity-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-top:20px}
#charity-summary .charity-summary-row{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:13px;background:#f5f7ed;border-radius:12px;border:0;margin:0}
#charity-summary .charity-summary-row span{font-size:12px}
#charity-summary .charity-summary-row strong{font-size:14px;font-variant-numeric:tabular-nums}
#charity-summary>p{grid-column:1/-1;margin:2px 0}
.exact-share-details{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:0 20px;margin-bottom:18px}
.exact-share-details>summary{padding:18px 0;min-height:54px;font-weight:600;cursor:pointer}
.exact-share-details #heirs{padding-bottom:8px}
.result-layout .actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.result-layout #share{grid-column:1/-1;grid-row:1;min-height:50px}
.result-layout .actions button{min-height:48px}
.result-layout input[type=text]{font-size:16px;min-width:0;max-width:100%}
.result-layout .estate-info>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.result-layout .check{min-height:48px;align-items:center}
@media(max-width:800px){.result-sidebar{grid-template-columns:minmax(0,1fr);grid-template-areas:"chart" "estate" "people";gap:16px}.overview-chart{grid-template-columns:140px minmax(0,1fr)}.overview-chart .donut{width:140px;height:140px}.overview-chart .donut-center{width:98px;height:98px}}
@media(max-width:620px){main{padding:30px 16px}.result-header{gap:14px;align-items:flex-start}.result-header h1{font-size:32px;line-height:1.15;letter-spacing:-1px}.result-header #edit{font-size:12px;min-height:44px;padding:10px 13px;flex-shrink:0}.result-sidebar .chart-card,.result-sidebar .estate,.overview-table-card{padding:20px;border-radius:20px}.chart-card h3,.overview-people h3{font-size:19px}.overview-chart{gap:16px;grid-template-columns:128px minmax(0,1fr)}.overview-chart .donut{width:128px;height:128px}.overview-chart .donut-center{width:90px;height:90px}.overview-chart .legend{font-size:12px;padding:8px 0;gap:6px}.overview-table{font-size:13px}.overview-table th,.overview-table td{padding:15px 6px}.overview-table th:first-child{padding-left:0}.overview-table th:last-child,.overview-table td:last-child{padding-right:0}.overview-table .name-col{width:42%}.overview-table .share-col{width:22%}.overview-table .money-col{width:36%}.person-label{gap:7px}.overview-table thead th{font-size:10px;letter-spacing:0}.result-layout .money-input{max-width:none}.exact-share-details{padding:0 16px}.result-layout .explanations summary{min-height:48px;padding:14px 0}.result-layout .actions{font-size:13px}.question-card{padding:24px 20px}.question-card input[type=text],.question-card input[type=number]{font-size:16px}}
@media(max-width:360px){.overview-chart{grid-template-columns:104px minmax(0,1fr);gap:12px}.overview-chart .donut{width:104px;height:104px}.overview-chart .donut-center{width:74px;height:74px}.overview-chart .donut-center strong{font-size:23px}.overview-chart .donut-center small{font-size:9px}.result-sidebar .chart-card,.result-sidebar .estate,.overview-table-card{padding:16px}.overview-table{font-size:12px}.result-header{flex-wrap:wrap}}
@media print{.result-sidebar{display:block}.result-sidebar>*{margin-bottom:18px!important}.exact-share-details{border:0;padding:0}.exact-share-details>summary{display:none}.overview-table tbody tr{break-inside:avoid}}
