/* 1.3: readable type, bounded native controls and touch-friendly documents. */
body{font-size:17px;line-height:1.55}
h1{font-size:36px}h2{font-size:22px}h3{font-size:19px}
small{font-size:14px}.eyebrow{font-size:12px}.muted{overflow-wrap:anywhere}
.sidebar{width:260px}.workspace{margin-left:260px}
.sidebar nav a{font-size:15px;padding:12px;gap:12px}.sidebar nav a svg{width:21px;height:21px;display:block}
.sidebar-bottom{font-size:14px}.sidebar-bottom small{font-size:12px}.topbar{font-size:14px}
.page-heading h1+p,.form-card .card-heading p,.section-heading p,.quiet-note,.subtle-box{font-size:15px}
.button{font-size:15px;min-height:44px;padding:11px 16px}.back-link,.row-link{font-size:14px}
.field>label,.field label:not(.check),.filters label{font-size:14px;line-height:1.4}
.field small,.switch-row small,.deposit-actions small{font-size:13px}
.field,.form-grid,.editor-layout,.editor-layout>div,.card,.card-heading>div,.workspace,main{min-inline-size:0;max-inline-size:100%}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.field input:not([type=checkbox]):not([type=radio]):not([type=file]),.field select{
 width:100%;inline-size:100%;min-width:0;min-inline-size:0;max-width:100%;max-inline-size:100%;
 box-sizing:border-box;height:48px;min-height:48px;font-size:17px;line-height:1.4;
}
.field textarea{width:100%;min-width:0;max-width:100%;font-size:17px}
.field input[type=date]{appearance:none;-webkit-appearance:none;overflow:hidden;text-align:left}
.field input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
.field input[type=date]::-webkit-datetime-edit{min-width:0;padding:0}
.field input[type=date]::-webkit-calendar-picker-indicator{flex-shrink:0;margin-left:0}
.filters{flex-wrap:wrap}.filters .field{flex:1 1 150px;min-width:0;max-width:100%}
.filters .search{flex:2 1 220px;min-width:0}
table{font-size:15px}th{font-size:12px}td small{font-size:13px}.tag{font-size:13px}
.check{font-size:15px}.check input{width:20px;height:20px}
.stat>span,.stat>small,.summary-line,.rule-strip,.file-list,.timeline li,.timeline small{font-size:14px}
.notice,.warning,.setup-banner,.error-summary{font-size:15px}.setup-banner p,.setup-banner a{font-size:14px}
.app-footer,.auth-note{font-size:12px}.auth-card p{font-size:16px}.auth-card h1{font-size:31px}
.auth-main{flex-basis:520px;max-width:520px}.auth-card .field{width:100%}
.password-control{position:relative;min-width:0;width:100%}
.password-control input{padding-right:52px!important}
.password-toggle{position:absolute;right:3px;top:2px;width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--green);border-radius:5px}
.password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
.clickable-row{cursor:pointer}.clickable-row:hover,.clickable-row:focus-within{background:#edf3e9}
.clickable-row .row-link{display:inline-flex;align-items:center;min-height:40px}
.deletion-card{border-color:#ead1ca}.deletion-card p{font-size:15px}.deletion-summary{line-height:1.8;padding-left:22px;overflow-wrap:anywhere}
.confirmation-label{overflow-wrap:anywhere}.name-preview{margin-bottom:20px}
.pdf-viewer{display:flex;flex-direction:column;width:100%;min-width:0;max-width:100%;height:min(920px,80svh);min-height:360px;border:1px solid #d6ded2;border-radius:9px;overflow:hidden;background:#e6e9e2;margin:18px 0}
.pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px;background:#f8faf5;flex-shrink:0;border-bottom:1px solid var(--line)}
.pdf-paging,.pdf-zoom{display:flex;align-items:center;gap:6px}.pdf-paging{font-size:14px}
.pdf-tool{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:5px 9px;border:1px solid #ccd7c6;border-radius:6px;background:white;color:var(--green);font-weight:700;font-size:20px}
.pdf-fit{font-size:13px}.pdf-stage{flex:1;min-height:0;min-width:0;display:flex;overflow:auto;padding:10px;touch-action:pan-x pan-y}
.pdf-paper{flex:0 0 auto;margin:auto;background:white;box-shadow:0 2px 9px #263a2525;line-height:0}
.pdf-paper canvas{display:block;max-width:none;max-height:none}
.pdf-status{font-size:13px!important;line-height:1.4;margin:0!important;padding:7px 10px 3px;flex-shrink:0;color:#4f6357}
.pdf-fallback{font-size:13px;align-self:flex-start;padding:4px 10px 8px;flex-shrink:0}
.preview-focus .pdf-viewer{flex:1;height:auto;min-height:0;margin:4px 0}
.preview-focus .pdf-stage{min-height:0}.preview-focus .pdf-status{display:none}
.preview-focus .finalize-box .check{font-size:14px}.preview-focus .card-heading h2{font-size:19px}
.preview-focus .card-heading .button{font-size:13px;min-height:36px}
@media(max-width:1150px){.sidebar{width:230px}.workspace{margin-left:230px}}
@media(max-width:850px){
 .sidebar{width:100%}.workspace{margin-left:0}.sidebar nav a{font-size:14px;padding:10px;gap:8px}.sidebar nav a svg{display:block;width:19px;height:19px}
 .two-columns{grid-template-columns:1fr}.auth-main{width:100%}.field input:not([type=checkbox]):not([type=radio]):not([type=file]),.field select,.field textarea{font-size:17px}
}
@media(max-width:650px){
 h1{font-size:31px}h2{font-size:21px}.form-grid{grid-template-columns:minmax(0,1fr)}
 .page-heading{gap:16px}.topbar{font-size:12px}.online-account .button{font-size:13px}
 .filters{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.filters .field,.filters .search{width:100%;min-width:0;max-width:100%}
 .filters>.button{width:100%}.responsive-records td{font-size:15px}.responsive-records td::before{font-size:13px}
 .responsive-records td[data-label="Betrag"]{text-align:left}.responsive-records td[data-label="Beleg"]{font-size:17px}
 .responsive-records td>a,.responsive-records td>strong{overflow-wrap:anywhere;min-width:0}
 .auth-card{padding:24px 18px}.auth-card h1{font-size:28px}.auth-main{padding:24px 14px}
 .pdf-viewer{height:70svh;min-height:390px}.pdf-toolbar{gap:6px;justify-content:center}.pdf-paging{margin-right:auto}.pdf-zoom{margin-left:auto}
 .pdf-tool{min-width:38px;min-height:40px;padding:5px 7px}.pdf-fit{font-size:12px}
 .preview-focus .card-heading h2{font-size:16px}.preview-focus .card-heading .button{font-size:12px;min-height:34px;padding:6px 8px}
 .preview-focus .finalize-box .check{font-size:13px}.preview-focus .finalize-box .button{font-size:14px;min-height:42px}
 .preview-focus .pdf-viewer{min-height:0}.preview-focus .pdf-fallback{font-size:12px;padding-bottom:4px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
