:root{font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;color:#303030;background:#f5f5f5;--red:#c90000;--dark:#343434;--line:#dedede;--muted:#666}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:#a80000}h1,h2,h3,p{margin-top:0}.topbar{background:var(--dark);color:#fff;border-bottom:4px solid #f00000}.top-inner{width:100%;margin:0;min-height:78px;padding:9px 16px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px}.brand img{width:58px;height:58px;object-fit:contain;background:white;border:2px solid white;border-radius:4px}.brand span{display:flex;flex-direction:column;line-height:1.2}.brand strong{font-size:17px}.brand small{font-size:13px;color:#ddd;margin-top:4px}.top-user{display:flex;gap:12px;align-items:center;font-size:14px}.top-user button{background:transparent;color:white;border:1px solid #888;border-radius:7px;padding:6px 10px}.role{background:#5a5a5a;border-radius:25px;padding:3px 9px;font-size:12px}.container{max-width:1320px;margin:auto;padding:45px 28px 90px}.intro{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:35px}.eyebrow{font-size:12px;color:#b60000;letter-spacing:.14em;font-weight:800;margin-bottom:7px}.intro h1{font-size:clamp(32px,4vw,48px);line-height:1.1;letter-spacing:-.055em;margin:0}.intro h1 i{color:#f00000;font-style:normal}.intro p{color:#666;margin:13px 0 0}.overview-count{border-left:3px solid #e50000;padding:4px 18px;display:flex;flex-direction:column;min-width:170px}.overview-count strong{font-size:30px;line-height:1.1;color:#c50000}.overview-count strong span{color:#999;font-size:21px}.overview-count small{font-size:13px;color:#666;margin-top:6px}.tabs{display:flex;gap:8px;border-bottom:1px solid #d5d5d5;overflow:auto;scrollbar-width:none}.tabs button{border:0;background:transparent;padding:13px 17px;color:#575757;white-space:nowrap;font-size:15px;font-weight:600;border-bottom:3px solid transparent}.tabs button[aria-selected=true]{border-color:#e00000;color:#b50000}.tab-count{background:#eaeaea;border-radius:15px;padding:2px 6px;font-size:12px;margin-left:4px}.section-top{margin:34px 0 22px;display:flex;justify-content:space-between;align-items:center;gap:15px}.section-top h2{font-size:24px;letter-spacing:-.035em;margin:0 0 2px}.section-top p{font-size:14px;color:#747474;margin:0}.button{border:1px solid #d1d1d1;border-radius:8px;background:white;color:#393939;font-weight:700;padding:9px 14px;font-size:14px;line-height:1.3}.button:hover{background:#f5f5f5}.button.primary{background:var(--red);color:white;border-color:var(--red)}.button.primary:hover{background:#a90000}.button.danger{color:#a20000;border-color:#e1bdbd}.button:disabled{opacity:.6;cursor:wait}.filters{display:flex;gap:12px;margin-bottom:22px}.filters input,.filters select{height:44px;border:1px solid #d8d8d8;border-radius:8px;background:white;padding:0 14px;outline-color:var(--red);color:#333}.filters input{width:380px;max-width:100%}.filters select{min-width:190px}.material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.material-card{background:white;border:1px solid #e0e0e0;border-radius:13px;padding:22px;min-height:280px;display:flex;flex-direction:column;box-shadow:0 2px 8px #00000008}.material-card.unavailable{background:#eee;color:#777}.card-top,.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.category{background:#fbecec;color:#b60000;font-size:12px;font-weight:700;border-radius:5px;padding:5px 9px}.unavailable .category{background:#dedede;color:#858585}.status{font-size:12px;font-weight:700;border-radius:20px;padding:5px 9px;white-space:nowrap}.status.free{background:#e8f4ec;color:#226642}.status.busy{background:#e3e3e3;color:#656565}.status.neutral{background:#f0f0f0;color:#666}.material-icon,.loan-icon{background:#f9ebeb;color:#c40000;width:54px;height:54px;display:grid;place-items:center;border-radius:10px;margin:25px 0 13px;font-size:24px}.unavailable .material-icon{background:#e1e1e1;color:#888}.material-card h3{font-size:19px;margin:0 0 3px}.location{color:#777;font-size:14px;margin:0}.card-bottom{border-top:1px solid #e8e8e8;margin-top:auto;padding-top:17px;flex-wrap:wrap}.card-bottom>span{color:#777;font-size:13px;margin-right:auto}.card-bottom button{padding:7px 10px}.link-button{border:0;background:none;color:#a70000;padding:4px;font-size:13px;text-decoration:underline}.empty{border:1px dashed #d1d1d1;background:white;border-radius:13px;text-align:center;padding:65px 20px;color:#777}.empty h3{color:#333;margin:0 0 4px}.empty p{font-size:14px;margin:0}.list,.panel{background:white;border:1px solid #dedede;border-radius:12px;overflow:hidden}.panel{padding:23px;margin-bottom:18px}.panel h3{font-size:18px;margin:0 0 5px}.panel p{font-size:14px;color:#666}.row,.loan{display:flex;align-items:center;gap:17px;padding:17px 20px;border-bottom:1px solid #eee}.row:last-child,.loan:last-child{border-bottom:0}.row-main,.loan-main{min-width:150px;flex:1;display:flex;flex-direction:column}.row-main small,.loan-main small,.loan-main span{color:#777;font-size:13px;overflow-wrap:anywhere}.loan-icon{margin:0;flex:none;width:44px;height:44px;font-size:19px}.loan-date{min-width:145px;display:flex;flex-direction:column}.loan-date small{color:#777}.loan-date strong{font-size:14px}.loan-actions{display:flex;gap:7px;flex-wrap:wrap}.note{font-size:14px;background:#fff5e8;border:1px solid #f0dab7;border-radius:8px;color:#7c541c;padding:10px 13px;margin-bottom:18px}.muted{color:#777;font-size:14px}.entry{background:white;border:1px solid #e5e5e5;box-shadow:0 12px 35px #0000000b;border-radius:12px;max-width:480px;margin:clamp(50px,10vh,115px) auto;padding:36px;text-align:center}.entry img{height:95px;width:95px;object-fit:contain;margin:0 auto 18px}.entry h1{font-size:34px;letter-spacing:-.05em;margin:0 0 8px}.entry p{color:#666;margin:0 0 24px}.entry .eyebrow{margin-bottom:7px}.entry .form{margin-top:22px}.entry .links{display:flex;justify-content:center;gap:15px;margin-top:18px;font-size:14px}.form{display:grid;gap:15px;text-align:left}.form label{display:grid;gap:6px;font-size:14px;font-weight:700;color:#444}.form input:not([type=checkbox]),.form textarea,.form select{border:1px solid #ccc;border-radius:8px;padding:10px 12px;min-height:42px;background:white;color:#333;width:100%;font-weight:400}.form textarea{min-height:75px}.form .button{justify-self:start}.entry .form .button{width:100%}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex!important;align-items:center;gap:8px!important}.check input{width:18px;height:18px}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.form-note{font-size:13px;color:#777;margin:0}.error{background:#fff0f0;color:#921e1e;border:1px solid #e7c0c0;border-radius:8px;padding:11px;font-size:14px;margin:15px 0}.security-box{background:#f8f8f8;border:1px solid #e0e0e0;border-radius:8px;padding:15px;margin:12px 0}.security-box code{display:block;font:13px/1.5 monospace;overflow-wrap:anywhere;margin-top:8px}.security-box p{margin:0 0 8px}.secret{font:bold 17px/1.5 monospace;letter-spacing:.05em;overflow-wrap:anywhere}dialog{border:1px solid #ddd;border-radius:10px;padding:24px;width:min(500px,calc(100% - 28px));max-height:90vh;overflow:auto;box-shadow:0 20px 65px #0004;color:#333}dialog::backdrop{background:rgba(15,23,42,.7);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}dialog h2{font-size:22px;margin:0 0 4px}dialog .sub{font-size:14px;color:#777;margin-bottom:18px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.close{border:0;background:transparent;font-size:24px;color:#777;line-height:1}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#333;color:white;padding:10px 16px;border-radius:8px;box-shadow:0 10px 30px #0003;z-index:10;max-width:min(500px,90vw);text-align:center;display:none}.toast.show{display:block}.loading{text-align:center;color:#777;margin:18vh auto}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.account-grid .panel{margin:0}.kv{display:flex;flex-direction:column;margin:14px 0}.kv small{color:#777}.notification{display:flex;align-items:center;gap:15px;border-bottom:1px solid #eee;padding:12px 0}.notification:last-child{border:0}.notification span{flex:1}.notification small{display:block;color:#777}.notification strong{font-size:12px;color:#93620c}.notif-sent{color:#226642!important}@media(max-width:940px){.material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-inner{padding:9px 18px}.container{padding:35px 18px 70px}}@media(max-width:650px){.brand img{height:45px;width:45px}.brand strong{font-size:14px;max-width:160px}.brand small{font-size:12px}.top-user{font-size:12px;gap:6px}.top-user>span:first-child{display:none}.container{padding:28px 16px 60px}.intro{align-items:flex-start;margin-bottom:25px}.intro p{font-size:14px}.overview-count{min-width:100px;padding-left:10px}.overview-count strong{font-size:24px}.overview-count strong span{font-size:15px}.overview-count small{font-size:11px}.tabs button{padding:11px 12px}.section-top{align-items:flex-start;flex-direction:column}.filters{flex-direction:column}.filters input{width:100%}.material-grid,.account-grid{grid-template-columns:1fr}.loan,.row{flex-wrap:wrap;padding:16px}.loan-main{min-width:calc(100% - 65px)}.loan-actions{width:100%}.entry{margin:30px auto;padding:25px 22px}.form-row{grid-template-columns:1fr}}
.material-photo{width:100%;height:165px;object-fit:cover;border-radius:9px;background:#eee;margin:18px 0 12px}.material-card.unavailable .material-photo{filter:grayscale(1);opacity:.65}.material-photo.preview{height:185px;margin:0;object-fit:contain;border:1px solid #ddd}
/* Feuerwehrfarben: helle Kopfzeile mit klarer roter Linie */
:root{background:#f7f8f9;--red:#c3141c;--dark:#252a30}
.topbar{background:#fff;color:#252a30;border-bottom:3px solid var(--red);box-shadow:0 5px 22px #1e293b12}
.top-inner{min-height:84px}.brand strong{color:#20252b}.brand small{color:#a31c22;font-weight:700}
.top-user button{color:#3e454c;border-color:#d7dce0;background:#fff}.top-user button:hover{background:#f8eeee;border-color:#c3141c}
.role{background:#fff0f0;color:#9d1620;border:1px solid #f0d8da;font-weight:700}
.status.planned{background:#e9f1fa;color:#265c8f}.status.collected{background:#e9f1fa;color:#245a86}.status.overdue{background:#ffe2e2;color:#9f161b}
.booking-list{display:flex;flex-direction:column;gap:6px;padding:12px;background:#f7f8fa;border:1px solid #e1e5e9;border-radius:8px;font-size:13px;max-height:220px;overflow-y:auto}
.booking-list span{color:#505761;border-top:1px solid #e1e5e9;padding-top:5px}
dialog.calendar-dialog{width:min(720px,calc(100% - 24px))}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin:22px 0 13px;gap:12px}.calendar-toolbar strong{text-transform:capitalize}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:14px}
.calendar-weekday{text-align:center;font-size:12px;color:#66707a;padding-bottom:7px}
.calendar-day{border:1px solid #dce2e6;border-radius:7px;background:#fff;color:#26303a;min-height:63px;text-align:left;padding:7px;display:flex;flex-direction:column;justify-content:space-between}
.calendar-day:hover{border-color:#c3141c;background:#fff8f8}.calendar-day.booked{background:#fff0f0;border-color:#e4b4b7}.calendar-day.today{box-shadow:inset 0 0 0 2px #c3141c}
.calendar-day small{font-size:10px;color:#676e76}.calendar-day.booked small{color:#ab252a;font-weight:700}
.calendar-blank{min-height:63px}.audit-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1.3fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e8eaed;font-size:13px}
.audit-row:last-child{border:0}.audit-row span{overflow-wrap:anywhere}.audit-row small{color:#747b83}
@media(max-width:650px){.calendar-grid{gap:2px}.calendar-day{min-height:55px;padding:4px}.calendar-day small{font-size:9px}.audit-row{grid-template-columns:1fr;gap:3px}.calendar-blank{min-height:55px}}
/* Klarer Einstieg für das interne Verleihportal */
.entry.login-entry{max-width:550px;text-align:left;border-top:0;border-left:0;padding:38px 42px;box-shadow:0 18px 50px #24303b16;margin:clamp(38px,7vh,90px) auto}
.entry-heading{display:flex;align-items:center;gap:20px;text-align:left;margin-bottom:20px}
.entry .entry-heading img{height:72px;width:72px;flex:none;margin:0;object-fit:contain}
.entry-heading .eyebrow{margin:0 0 5px}.entry-heading h1{margin:0;font-size:clamp(27px,3vw,36px);line-height:1.1}
.entry.login-entry>p{text-align:left;color:#5d6670;margin:0 0 20px}
.login-note{background:#f6f8f9;border:1px solid #e3e7e9;border-radius:8px;color:#4f5963;font-size:13px;padding:10px 13px;margin-bottom:22px}
.entry.login-entry .form{margin-top:0}.entry.login-entry .links{justify-content:flex-end;margin-top:14px}
.account-grid .panel>.section-top{margin:0 0 16px;align-items:center}.account-grid .panel>.section-top h3{margin:0}
[hidden]{display:none!important}.extra-recipient{display:grid;gap:6px}.extra-recipient .link-button{justify-self:start}
.password-field{position:relative;display:block}.entry .password-field input{padding-right:88px}
.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#a5232a;font-size:13px;font-weight:700;padding:7px;line-height:1}
.password-toggle:hover{text-decoration:underline}
/* Meldungen bleiben am unteren Fensterrand und bei Dialogen in der obersten Ebene. */
.toast,.toast:popover-open{position:fixed;top:auto;right:auto;bottom:calc(18px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);margin:0;width:max-content;max-width:min(520px,calc(100vw - 32px));padding:12px 18px;background:#253139;border:0;border-radius:8px;color:white;text-align:center;box-shadow:0 12px 32px #17202b38;z-index:2147483647}
.toast.show{display:block}
@media(max-width:650px){.entry.login-entry{padding:28px 23px}.entry .entry-heading img{height:60px;width:60px}.entry-heading{gap:14px}.entry-heading h1{font-size:28px}}

/* Zeitraum, Aufgaben und zusammengefasste Admin-Einstellungen */
.period-filter{background:#fff;border:1px solid #e0e4e8;border-radius:10px;padding:16px 18px;margin:0 0 22px}
.period-filter .form-row{max-width:720px}.period-filter label{display:grid;gap:5px;font-size:14px;font-weight:600;color:#414951}
.period-filter input[type="datetime-local"]{width:100%;min-height:42px;border:1px solid #d8dce0;border-radius:7px;padding:7px 10px;background:white;color:#303030}
.period-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.period-actions label.check{display:flex;align-items:center;gap:8px;margin:0}.period-actions .button{padding:7px 11px}
.period-filter .form-note,.period-filter .note{margin:12px 0 0}
.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #d5d5d5}
.settings-tabs button{border:1px solid #dce0e4;border-radius:7px;background:white;color:#4a5159;font-weight:600;padding:8px 13px}
.settings-tabs button[aria-selected=true]{color:#ae151e;border-color:#dc8b92;background:#fff6f6}
.tabs button.settings-toggle[aria-expanded=true]{color:#a31c22;border-color:#c3141c}
.task-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 12px}
.task-summary>div{display:flex;flex-direction:column;background:#fff;border:1px solid #e1e4e8;border-radius:10px;padding:16px}
.task-summary strong{font-size:28px;line-height:1.1}.task-summary span{color:#606970;font-size:13px;margin-top:6px}
@media(max-width:650px){.task-summary{grid-template-columns:1fr;gap:8px}.task-summary>div{padding:12px 14px}.period-filter{padding:14px}}
.maintenance-list{display:grid;gap:7px;margin:14px 0;color:#4e5862;font-size:12px}
.maintenance-list>div{display:grid;gap:3px;background:#fff8ec;border:1px solid #edddbd;border-radius:7px;padding:9px 11px}
.maintenance-list strong{color:#745519}.maintenance-list .link-button{justify-self:start}
.return-photo{display:block;width:110px;max-height:100px;object-fit:cover;border:1px solid #ddd;border-radius:6px;margin-top:7px}
/* Admin-configurable portal appearance */
:root{--brand-accent:#c3141c;--brand-header:#ffffff;--brand-page:#f7f8f9;--brand-header-text:#20252b;--red:var(--brand-accent);background:var(--brand-page)}
#app{min-height:100vh;display:flex;flex-direction:column}
#view{flex:1;width:100%}
.topbar{background:var(--brand-header);color:var(--brand-header-text);border-bottom-color:var(--brand-accent)}
.topbar .brand strong,.topbar .brand small{color:var(--brand-header-text)}
.top-user button{background:var(--brand-header);color:var(--brand-header-text);border-color:currentColor}
.eyebrow,.overview-count strong,.tabs button[aria-selected=true],.tabs button.settings-toggle[aria-expanded=true],.settings-tabs button[aria-selected=true],.link-button,a{color:var(--brand-accent)}
.overview-count,.tabs button[aria-selected=true],.tabs button.settings-toggle[aria-expanded=true],.calendar-day.today{border-color:var(--brand-accent)}
.button.primary:hover{filter:brightness(.88);background:var(--brand-accent)}
.category,.material-icon{color:var(--brand-accent)}
.portal-footer{padding:16px 24px;text-align:center;color:#5b646c;font-size:12px;border-top:1px solid #dfe3e7}
.branding-preview{max-width:170px;max-height:120px;object-fit:contain;display:block;margin:12px 0 20px}
.form input[type=color]{width:100%;height:48px;padding:4px;cursor:pointer}
.settings-tabs button[aria-selected=true],.role{background:color-mix(in srgb,var(--brand-accent) 9%,white);border-color:color-mix(in srgb,var(--brand-accent) 40%,white);color:var(--brand-accent)}
.category,.material-icon{background:color-mix(in srgb,var(--brand-accent) 9%,white)}
.top-user button:hover{border-color:var(--brand-accent)}
/* Branding: clearly separated controls and actions */
.branding-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.branding-layout>.panel{margin:0;overflow:visible}
.branding-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.branding-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}
.branding-logo-actions{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:14px}
.branding-logo-actions>.form{flex:1 1 220px;display:grid;gap:12px}
.branding-logo-actions>.button{flex:0 0 auto;margin:0}
.branding-credit{margin:18px 2px 0}
@media(max-width:820px){.branding-layout{grid-template-columns:1fr}}
@media(max-width:450px){.branding-colors{grid-template-columns:1fr}.branding-logo-actions>.button{margin-top:2px}}
/* Manual ordering and catalog layout */
.option-row{gap:10px}.option-row .row-main{min-width:130px}
.filters .view-toggle{margin-left:auto;display:flex;gap:6px;align-items:center}.view-toggle .button[aria-pressed=true]{background:var(--brand-accent);color:#fff;border-color:var(--brand-accent)}
.material-grid.list-view{grid-template-columns:1fr;gap:12px}
.material-grid.list-view .material-card{display:grid;grid-template-columns:90px minmax(0,1fr);column-gap:18px;row-gap:5px;min-height:0;padding:16px 20px}
.material-grid.list-view .card-top{grid-column:2;grid-row:1;justify-content:flex-start;flex-wrap:wrap}
.material-grid.list-view .material-photo,.material-grid.list-view .material-icon{grid-column:1;grid-row:1/span 3;width:90px;height:90px;margin:0;object-fit:cover}
.material-grid.list-view .material-card h3{grid-column:2;grid-row:2;margin:0}
.material-grid.list-view .material-card>.location{grid-column:2;grid-row:3}
.material-grid.list-view .maintenance-list{grid-column:2}
.material-grid.list-view .card-bottom{grid-column:1/-1;margin-top:8px;padding-top:12px;gap:8px}
@media(max-width:650px){.filters .view-toggle{margin-left:0}.material-grid.list-view .material-card{grid-template-columns:64px minmax(0,1fr);column-gap:12px;padding:14px}.material-grid.list-view .material-photo,.material-grid.list-view .material-icon{width:64px;height:64px}.option-row .row-main{width:100%}}
/* Vertical drag handle for category and location ordering */
.option-columns{margin-top:16px}
.option-list{min-width:0}
.option-row{touch-action:auto}
.drag-handle{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border:1px solid #d7dce0;border-radius:7px;background:#fff;color:#56616a;cursor:grab;touch-action:none}
.drag-handle:active{cursor:grabbing}.drag-handle:hover,.drag-handle:focus-visible{color:var(--brand-accent);border-color:var(--brand-accent)}
.drag-handle span{display:block;width:18px;height:14px;background:linear-gradient(currentColor,currentColor) left top/18px 2px no-repeat,linear-gradient(currentColor,currentColor) left center/18px 2px no-repeat,linear-gradient(currentColor,currentColor) left bottom/18px 2px no-repeat}
.option-row.is-dragging{background:color-mix(in srgb,var(--brand-accent) 8%,white);box-shadow:inset 3px 0 var(--brand-accent)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* MFA enrollment QR generated locally */
.totp-setup{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:10px 0 16px}
.totp-qr{width:210px;height:210px;max-width:100%;background:white;border:1px solid #dce1e5;border-radius:8px;padding:9px;image-rendering:pixelated}
.totp-setup .security-box{flex:1 1 195px;min-width:0;margin:0}
.totp-setup+.form-note{margin-bottom:16px}

.entry.mfa-entry>p{text-align:left}

.signed-out .topbar{display:none}

.material-card>.inventory-no{display:block;color:#67717b;font-size:12px;margin:0 0 5px}
.material-grid.list-view .material-card>.inventory-no{grid-column:2;grid-row:3;margin:0}
.material-grid.list-view .material-card>.location{grid-row:4}
.material-grid.list-view .material-photo,.material-grid.list-view .material-icon{grid-row:1/span 4}

.card-bottom>span:empty{display:none}

/* Fixed application frame: navigation stays visible, only content scrolls. */
body:not(.signed-out){height:100dvh;min-height:0;overflow:hidden}
body:not(.signed-out) #app{height:100dvh;min-height:0;overflow:hidden}
body:not(.signed-out) .topbar{flex:0 0 auto;z-index:2}
body:not(.signed-out) .top-inner{min-height:64px;padding:8px 24px}
.header-nav{padding:0 24px;background:var(--brand-header)}
.header-nav .tabs,.header-nav .settings-tabs{margin:0;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:8px 0;scrollbar-width:thin}
.header-nav .tabs{border-top:1px solid color-mix(in srgb,var(--brand-header-text) 15%,transparent);border-bottom:0}
.header-nav button{flex:0 0 auto;white-space:nowrap;color:var(--brand-header-text)}
.header-nav button[aria-selected=true]{background:var(--brand-accent);color:#fff;border-color:var(--brand-accent)}
body:not(.signed-out) .container{flex:1 1 auto;min-height:0;max-width:1600px;width:100%;padding:20px 24px 16px;display:flex;flex-direction:column;overflow:hidden}
body:not(.signed-out) .intro{flex:0 0 auto;margin:0 0 16px;gap:16px}
body:not(.signed-out) .intro h1{font-size:24px;margin-bottom:2px}
body:not(.signed-out) .intro p{margin:0;font-size:13px}
body:not(.signed-out) .intro .eyebrow{display:none}
body:not(.signed-out) .overview-count strong{font-size:26px}
body:not(.signed-out) #panel{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px;background:#fff;border:1px solid #dfe3e7;border-radius:12px;box-shadow:0 4px 20px #1e293b06}
body:not(.signed-out) .portal-footer{flex:0 0 auto;padding:8px 16px;font-size:11px}
.status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.status-card{margin:0}.status-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.status-card h3{margin:0;font-size:16px}.status-card p,.status-errors p{margin:0;font-size:14px;overflow-wrap:anywhere}
.status-errors p+p{margin-top:8px}.status-time{margin:0}.status-errors{margin-bottom:14px}
@media(max-width:650px){body:not(.signed-out) .top-inner{padding:8px 12px;min-height:56px}.header-nav{padding:0 12px}body:not(.signed-out) .container{padding:12px 10px 10px}body:not(.signed-out) #panel{padding:16px 12px}body:not(.signed-out) .intro{margin-bottom:10px}body:not(.signed-out) .intro h1{font-size:20px}body:not(.signed-out) .intro p{display:none}.status-grid{grid-template-columns:1fr}.status-card-head{flex-wrap:wrap}}
@media(max-height:600px){body:not(.signed-out) .intro{display:none}body:not(.signed-out) .top-inner{min-height:48px}body:not(.signed-out) .portal-footer{padding:4px 12px}}
/* Release 02: clear surfaces and independent, keyboard-accessible boxes. */
:root{--ui-ink:#263342;--ui-muted:#647387;--ui-line:#e2e8ef;--ui-radius:14px}
body{color:var(--ui-ink)}
body:not(.signed-out) .topbar{box-shadow:0 2px 12px #20304708;border-bottom-width:1px}
body:not(.signed-out) .top-inner{min-height:62px}
.header-nav .tabs button,.header-nav .settings-tabs button{border-radius:9px;padding:10px 14px;border-bottom:0;font-size:13px;transition:background .15s,color .15s}
.header-nav button:hover{background:color-mix(in srgb,var(--brand-header-text) 7%,transparent)}
.header-nav .tabs button[aria-selected=true],.header-nav .settings-tabs button[aria-selected=true]{background:var(--brand-accent);color:#fff;box-shadow:0 3px 9px color-mix(in srgb,var(--brand-accent) 18%,transparent)}
.header-nav .tabs button.settings-toggle[aria-expanded=true]{background:color-mix(in srgb,var(--brand-accent) 9%,var(--brand-header));color:var(--brand-header-text)}
.header-nav .tab-count{background:color-mix(in srgb,currentColor 12%,transparent);color:inherit}
.header-nav .settings-tabs{border-top:1px solid color-mix(in srgb,var(--brand-header-text) 10%,transparent);padding-top:6px;padding-bottom:6px}
body:not(.signed-out) .container{max-width:1800px;padding:16px 24px 12px}
body:not(.signed-out) #panel.workspace{display:flex;flex-direction:column;gap:14px;overflow:hidden;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;scrollbar-gutter:auto}
.workspace>.section-top{margin:0;flex:0 0 auto;min-height:44px}.section-top h2{font-size:22px;letter-spacing:-.025em}.section-top p:empty{display:none}
.workspace>.form-note,.workspace>.note{flex:0 0 auto;margin:0}
.workspace .view-body{display:flex;flex:1 1 auto;min-height:0;min-width:0;gap:16px;flex-direction:column;overflow:hidden}
.workspace .box-scroll{overflow:auto;min-height:0;min-width:0;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#b9c4d0 transparent}
.workspace .box-scroll:focus-visible{outline:2px solid var(--brand-accent);outline-offset:-3px}
.workspace .view-body>.box-scroll{flex:1 1 0;margin:0}
.workspace .panel,.workspace .list,.workspace .empty{border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:#fff;box-shadow:0 3px 14px #22354b04}
.workspace .panel{padding:20px}.workspace .empty{padding:32px 20px}
.workspace .account-grid,.workspace .branding-layout{flex:1 1 0;min-height:0;min-width:0;align-items:stretch;margin:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
.workspace .account-grid>.panel,.workspace .branding-layout>.panel{min-height:0;min-width:0;margin:0}
.workspace-options .option-columns{flex:1 1 0;min-height:0;margin:0;gap:18px}
.workspace-options .option-columns>.panel{display:flex;flex-direction:column;overflow:hidden;padding:0}
.workspace-options .option-columns>.panel>.section-top{flex:0 0 auto;margin:0;padding:16px 18px;border-bottom:1px solid var(--ui-line);background:#fafbfd;gap:10px}
.workspace-options .option-columns>.panel>.section-top h3{font-size:16px}
.workspace-options .option-list{flex:1 1 0;min-height:0;padding:4px 10px}
.workspace-options .option-columns>.panel>.muted{padding:20px;margin:0}
.workspace-options .order-note{font-weight:600;color:var(--ui-ink)}
.workspace .row,.workspace .loan{border-bottom-color:#edf1f5;gap:14px;padding:16px}
.workspace .row:hover,.workspace .loan:hover{background:#fafbfd}
.workspace-options .option-row{padding:12px 8px;gap:10px}.workspace-options .row-main{min-width:70px;overflow-wrap:anywhere}
.workspace-options .option-row .button{font-size:12px;padding:8px 10px}
.button{border-radius:9px;font-weight:600;border-color:#dce3eb;transition:background .15s,border-color .15s,box-shadow .15s}
.button:hover{border-color:#becad7;background:#f6f8fb}.button.primary{background:var(--brand-accent);border-color:var(--brand-accent);box-shadow:0 2px 6px color-mix(in srgb,var(--brand-accent) 15%,transparent)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--brand-accent);outline-offset:3px}
.workspace .filters{margin:0;flex:0 0 auto;gap:10px}.workspace .filters input{flex:1;min-width:120px;width:auto}
.workspace .period-filter{margin:0;flex:0 0 auto;padding:12px 16px;border-radius:12px;background:#fff;border:1px solid var(--ui-line)}
.workspace .material-grid{align-content:start;padding:2px 5px 8px 2px;gap:16px}
.workspace .material-card{border-color:var(--ui-line);border-radius:var(--ui-radius);padding:20px;box-shadow:0 3px 14px #22354b05}
.workspace .material-card.unavailable{background:#f2f4f7}.material-card h3{letter-spacing:-.015em}
.workspace .view-body>.branding-credit{flex:0 0 auto;margin:0}
.workspace-smtp .view-body{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);grid-template-rows:minmax(0,1fr)}
.task-board{flex:1 1 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-height:0;overflow:hidden}
.task-column{display:flex;flex-direction:column;min-height:0;min-width:0;gap:10px}.task-column>.section-top{margin:0;min-height:58px;flex:0 0 auto}.task-column h2{font-size:17px}.task-column .section-top p{font-size:12px}
.task-column>.box-scroll{flex:1 1 0;margin:0}.task-column .loan{flex-wrap:wrap}.task-column .loan-main{min-width:calc(100% - 64px)}.task-column .loan-date{min-width:0}.task-column .loan-actions{width:100%}.task-column .notification{flex-wrap:wrap}
.workspace .task-summary{flex:0 0 auto;margin:0}.workspace .task-summary>div{padding:10px 14px}
.workspace-status #status-content{flex:1 1 0;padding:18px;background:#fff;border:1px solid var(--ui-line);border-radius:var(--ui-radius)}
.workspace .status-card{box-shadow:none}.workspace .form input,.workspace .form select,.workspace .form textarea{border-color:#dce3eb;background:#fdfefe}
@media(max-width:1000px){.task-board{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-auto-columns:minmax(280px,1fr);overflow-x:auto}.workspace-options .option-columns>.panel>.section-top{align-items:flex-start;flex-direction:column}.workspace-smtp .view-body{grid-template-columns:minmax(0,1fr) minmax(220px,.75fr)}}
@media(max-width:650px){body:not(.signed-out) .container{padding:10px 10px 8px}body:not(.signed-out) #panel.workspace{gap:10px}.workspace>.section-top{min-height:0;flex-direction:row;align-items:center;gap:8px}.workspace>.section-top h2{font-size:19px}.workspace>.section-top p{font-size:12px}.workspace .account-grid,.workspace .branding-layout,.workspace-options .option-columns{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}.workspace-options .option-columns>.panel>.section-top{flex-direction:row;align-items:center;padding:10px 12px}.workspace-options .option-columns>.panel>.section-top .button{font-size:11px;padding:7px}.workspace-options .option-row .row-main{width:auto}.workspace .view-body{gap:10px}.workspace .filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.workspace .filters input{grid-column:1/-1;width:100%}.workspace .filters select{min-width:0;width:100%;font-size:13px}.workspace .filters .view-toggle{margin:0}.workspace .period-filter{padding:10px}.workspace .period-filter .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.workspace .period-filter input{min-width:0;font-size:12px;padding:7px}.workspace .period-filter label{font-size:12px}.workspace-smtp .view-body{grid-template-columns:minmax(0,1fr);grid-template-rows:2fr 1fr}.task-board{grid-template-columns:minmax(0,1fr);grid-auto-columns:100%;scroll-snap-type:x proximity}.task-column{scroll-snap-align:start}.workspace .task-summary strong{font-size:20px}.workspace .task-summary span{font-size:11px}.workspace .status-grid{grid-template-columns:1fr}.workspace>.form-note{font-size:11px;line-height:1.4}}
@media(prefers-reduced-motion:reduce){button{transition:none!important}}

/* Access area beside the username, including compact touch layouts. */
.top-user{min-width:0}.header-username{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.access-area{white-space:nowrap;font-size:12px;padding:5px 10px;border-radius:8px}
.top-user button{min-height:44px;padding:8px 12px;flex-shrink:0}
body:not(.signed-out) .intro{align-items:center}.intro>div:first-child{min-width:0}
@media(max-width:650px){body:not(.signed-out) .top-inner{gap:10px;padding:8px 12px;align-items:center}.brand{min-width:0;max-width:32%;gap:6px}.brand span{min-width:0}.brand strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12px}.brand small{display:none}.brand img{width:30px;height:30px}.top-user{flex:1;justify-content:flex-end;gap:6px;flex-wrap:wrap}.top-user>.header-username:first-child{display:block;max-width:100px;min-width:0;font-size:12px}.top-user .access-area{font-size:10px;padding:4px 6px}.top-user button{font-size:11px;padding:8px;min-height:44px}.header-nav .tabs button,.header-nav .settings-tabs button{min-height:44px;padding:10px 12px}.workspace .button,.workspace .drag-handle{min-height:44px}.workspace-options .option-row{flex-wrap:wrap}.workspace-options .option-row .row-main{flex:1;min-width:60px}.workspace-options .option-row .button{padding:8px;min-height:44px}}
@media(max-width:380px){.top-user>.header-username:first-child{max-width:74px}.top-user .access-area{max-width:112px;white-space:normal;text-align:center;line-height:1.25}.top-user{gap:5px}.brand{max-width:27%}}
/* Keep SMTP forms compact so near-fitting boxes do not need a tiny scroll. */
.workspace-smtp .view-body>.panel{padding:16px 18px}
.workspace-smtp .view-body>.panel>p{margin-bottom:12px}
.workspace-smtp .form{gap:11px}
.workspace-smtp .form label{gap:4px}
.workspace-smtp .form input,.workspace-smtp .form select{min-height:40px;padding:8px 11px}
.workspace-smtp .form-note{line-height:1.4}
/* Mobile tasks show one selected list instead of cramped competing columns. */
.task-summary-button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;border:1px solid var(--ui-line);border-radius:10px;padding:12px 14px;color:var(--ui-ink);min-width:0}
.task-summary-button strong{font-size:24px;line-height:1.15}.task-summary-button span{font-size:12px;color:var(--ui-muted);margin-top:5px;overflow-wrap:anywhere}
@media(max-width:650px){
 .workspace-tasks .task-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .task-summary-button{padding:10px 8px;min-height:72px}.task-summary-button strong{font-size:20px}.task-summary-button span{font-size:10px;line-height:1.3}
 .task-summary-button[aria-pressed=true]{border-color:var(--brand-accent);background:color-mix(in srgb,var(--brand-accent) 6%,white);box-shadow:inset 0 0 0 1px var(--brand-accent)}
 .workspace-tasks .task-board{display:flex;overflow:hidden;min-height:0}
 .workspace-tasks .task-column{display:none;flex:1 1 0;min-width:0;min-height:0}
 .task-board[data-mobile-view="0"]>[data-task-column="0"],.task-board[data-mobile-view="1"]>[data-task-column="1"],.task-board[data-mobile-view="2"]>[data-task-column="2"]{display:flex}
 .workspace-tasks .task-column>.section-top{min-height:0;display:block;margin:0}.workspace-tasks .task-column h2{font-size:16px}.workspace-tasks .task-column p{font-size:11px;line-height:1.35}
 .workspace>.section-top>div{min-width:0;flex:1}.workspace>.section-top>.button{flex-shrink:0;max-width:48%;white-space:normal}
 .workspace .notification{flex-wrap:wrap;gap:10px}.workspace .notification>span{min-width:0;flex:1 1 130px;overflow-wrap:anywhere}
 .workspace .row-main,.workspace .loan-main{overflow-wrap:anywhere}.workspace .row>.muted{overflow-wrap:anywhere;min-width:0}
 .workspace .period-filter input{width:100%;max-width:100%;box-sizing:border-box}.workspace .period-filter .form-row>label{min-width:0}
 .workspace .loan-date strong{font-size:12px;overflow-wrap:anywhere}.workspace .loan-date{min-width:0;max-width:100%}
 .workspace-options .option-row .button{flex-shrink:0}.workspace-options .option-row .row-main{overflow-wrap:anywhere}
 .workspace .status-card-head h3{min-width:0;overflow-wrap:anywhere}.workspace .status-card-head .status{flex-shrink:0}
}
/* Native mobile date inputs must not impose their intrinsic width on the grid. */
.workspace .period-filter,.workspace .period-filter .form-row,.workspace .period-filter .form-row>label{min-width:0;max-width:100%}
.workspace .period-filter input[type="datetime-local"]{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:650px){
 .workspace .period-filter .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .workspace .period-filter input[type="datetime-local"]{display:block;appearance:none;-webkit-appearance:none;inline-size:100%;min-inline-size:0;max-inline-size:100%;height:44px;min-height:44px;padding:8px 10px;font-size:16px;line-height:1.2;overflow:hidden}
 .workspace .period-filter input[type="datetime-local"]::-webkit-date-and-time-value{min-width:0;text-align:left}
 .workspace .period-actions{flex-wrap:wrap;min-width:0;gap:8px}
 .workspace .period-actions>.check{flex:1 1 100%;min-width:0}
}

@media(max-width:650px){.workspace .period-filter input[type="datetime-local"]{width:100%;min-width:0;padding:6px 4px;font-size:12px}.workspace .period-filter input[type="datetime-local"]::-webkit-calendar-picker-indicator{margin:0;padding:0;flex-shrink:0}}
.mobile-filter-button,.mobile-filter-done{display:none}
@media(max-width:650px){
 .workspace-catalog .mobile-filter-button{display:block;width:100%;min-height:44px;text-align:left}
 .workspace-catalog .period-filter{display:none}
 .workspace-catalog.mobile-filters-open .period-filter{display:flex;flex-direction:column;gap:12px;min-height:0;max-height:42dvh;overflow:auto;overscroll-behavior:contain;flex:0 1 auto}
 .workspace-catalog .mobile-category select{width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid #d8dce0;border-radius:7px;background:#fff;color:var(--ui-ink);font-size:14px}
 .workspace-catalog .mobile-filter-done{display:block;align-self:flex-end;min-height:44px}
 .workspace-catalog .period-filter .form-note,.workspace-catalog .period-filter .note{margin:0}
}

/* Compact phone layout. Desktop rules above remain unchanged. */
@media(max-width:650px){
 :root{font-size:14px;line-height:1.4}
 /* Keep native controls at 16px so iOS does not zoom on focus. */
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea,
 .workspace .filters input,.workspace .filters select,.form input:not([type=checkbox]),.workspace .form input:not([type=checkbox]),.workspace .form select,.workspace .form textarea,
 .workspace .period-filter input[type="datetime-local"],.workspace-catalog .mobile-category select{font-size:16px}
 .form input:not([type=checkbox]),.form select,.form textarea,.workspace .form input:not([type=checkbox]),.workspace .form select,.workspace .form textarea{min-width:0;max-width:100%;min-height:44px;padding:8px 10px}
 .form label,.period-filter label{min-width:0;font-size:12px}
 .form{gap:11px}.form-row{gap:10px;min-width:0}
 body:not(.signed-out) .top-inner{min-height:50px;padding:5px 10px;gap:8px}
 .top-user{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;flex-wrap:nowrap}
 .top-user>.header-username:first-child{max-width:90px;min-width:0;font-size:11px}
 .top-user .access-area{max-width:28vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding:4px 5px}
 .top-user button{min-height:44px;padding:6px 8px;font-size:11px}
 .brand{max-width:27%;gap:5px}.brand strong{font-size:11px}.brand img{width:28px;height:28px}
 .header-nav{padding:0 8px}
 .header-nav .tabs,.header-nav .settings-tabs{gap:4px;padding:4px 0}
 .header-nav .tabs button,.header-nav .settings-tabs button{min-height:44px;padding:8px 10px;font-size:12px;border-radius:7px}
 body:not(.signed-out) .container{padding:8px 8px 6px}
 body:not(.signed-out) #panel.workspace{gap:8px}
 body:not(.signed-out) .portal-footer{padding:5px 8px;font-size:10px;line-height:1.3}
 .workspace>.section-top{gap:8px}.workspace>.section-top h2{font-size:18px;line-height:1.25}
 .workspace>.section-top p{font-size:11px;line-height:1.35}
 .workspace .button{font-size:12px;padding:7px 10px;min-height:44px}
 .workspace .view-body{gap:8px}
 .workspace .panel,.workspace-smtp .view-body>.panel{padding:12px}
 .workspace .panel h3{font-size:16px}.workspace .panel p{font-size:12px}
 .workspace .box-scroll{scrollbar-gutter:auto;-webkit-overflow-scrolling:touch}
 .workspace .empty{padding:22px 12px}.empty h3{font-size:16px}.empty p{font-size:12px}
 .workspace .filters{gap:6px}.workspace .filters input{min-width:0;height:44px;padding:8px 10px}
 .workspace .filters .view-toggle{gap:5px}
 .workspace .material-grid{gap:10px;padding:1px 0 6px}
 .workspace .material-card{min-height:0;padding:13px;border-radius:11px}
 .material-card h3{font-size:17px;line-height:1.3}.material-card>.location{font-size:12px}
 .material-card .category,.material-card .status{font-size:10px;padding:4px 7px}
 .material-card .material-icon{width:38px;height:38px;font-size:20px;margin:12px 0 8px}
 .material-card .material-photo{height:112px;margin:10px 0 8px}
 .material-card .card-bottom{margin-top:10px;padding-top:10px;gap:6px}
 .material-card .card-bottom button{min-height:44px;font-size:12px;padding:7px 9px}
 .material-grid.list-view .material-card{grid-template-columns:48px minmax(0,1fr);padding:12px;column-gap:10px}
 .material-grid.list-view .material-photo,.material-grid.list-view .material-icon{width:48px;height:48px;margin:0}
 .material-grid.list-view .card-bottom{margin-top:5px;padding-top:8px}
 .workspace .row,.workspace .loan{padding:11px 10px;gap:9px}
 .workspace .row-main{min-width:0}.workspace .row-main strong,.workspace .loan-main strong{font-size:14px}
 .workspace .row-main small,.workspace .loan-main small,.workspace .loan-main span{font-size:12px}
 .workspace .row>.muted{font-size:12px}
 .workspace .loan-icon{width:36px;height:36px;font-size:17px}
 .workspace .loan-main,.task-column .loan-main{min-width:calc(100% - 46px)}
 .workspace .loan-date small{font-size:11px}.workspace .loan-actions{gap:6px}
 .workspace-options .option-columns{gap:8px}
 .workspace-options .option-columns>.panel>.section-top{padding:8px 10px;gap:7px}
 .workspace-options .option-list{padding:2px 6px}
 .workspace-options .option-row{padding:7px 4px;gap:6px}
 .workspace-options .option-row .row-main{min-width:0}
 .workspace-options .option-row .button{font-size:11px;padding:6px 8px}
 .workspace-options .drag-handle{flex-basis:44px;width:44px;height:44px}
 .workspace .period-filter{padding:10px}
 .workspace .period-filter input[type="datetime-local"]{font-size:16px;padding:7px 4px;min-width:0;width:100%;max-width:100%;overflow:hidden}
 .workspace .period-filter .form-row{gap:6px}
 .workspace .period-actions{gap:6px}.workspace .period-actions label.check{font-size:12px}
 .workspace-catalog.mobile-filters-open .period-filter{gap:10px}
 .workspace .task-summary-button{min-height:62px;padding:8px 7px}
 .workspace .task-summary-button strong{font-size:18px}.workspace .task-summary-button span{margin-top:3px}
 .workspace .notification{padding:10px 0;gap:8px}.workspace .notification small{font-size:12px}
 .workspace .status-card-head{gap:8px}.workspace .status-card p{font-size:12px}
 .kv{margin:10px 0}.kv strong{overflow-wrap:anywhere;font-size:14px}
 .branding-colors{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .branding-preview{max-width:130px;max-height:90px;margin:10px 0 14px}
 .entry,.entry.login-entry{padding:22px 18px;margin:20px auto}
 .entry h1,.entry-heading h1{font-size:25px}.entry p{font-size:14px;margin-bottom:18px}
 .entry-heading{gap:12px;margin-bottom:15px}.entry .entry-heading img{width:48px;height:48px}
 .entry .links{font-size:13px}.login-note{padding:9px 10px;margin-bottom:16px}
 dialog{padding:16px;width:calc(100% - 20px);max-height:calc(100dvh - 24px)}
 dialog h2{font-size:20px}dialog .sub{font-size:12px;margin-bottom:14px}
 dialog .close{width:44px;height:44px;flex:0 0 44px;margin:-8px -8px 0 0}
 dialog .button{min-height:44px;font-size:13px}
 .security-box{padding:11px}.totp-qr{width:170px;height:170px}
}
