*{box-sizing:border-box}body{margin:0;background:#f8f8f8;color:#202124;font:15px Tahoma,Arial,sans-serif}main{max-width:620px;margin:auto;min-height:100vh;background:#fff}header,nav,footer{background:#fff;display:flex;align-items:center;gap:6px;padding:8px;border-block-end:1px solid #ddd}header,nav{position:sticky;top:0;z-index:2;min-height:56px}header h1{font-size:20px;flex:1;margin:0;text-align:center}footer{position:sticky;bottom:0;margin-top:auto;border-block-start:1px solid #ddd;border-block-end:0;justify-content:space-around}main{display:flex;flex-direction:column}section{padding:12px;flex:1}button,input,textarea,select{font:inherit;color:inherit}button{background:#fff;border:1px solid #bfbfc4;border-radius:8px;min-height:44px;padding:6px 9px;cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid #2862be}button.primary{background:#282828;color:#fff;border-color:#282828}.wide{width:100%}.plus{border-radius:50%;width:48px;font-size:26px;padding:0}.tabs{display:flex;overflow:auto;gap:0;white-space:nowrap;scrollbar-width:none}.tabs button{border:0;border-radius:0;flex:1;padding:9px 5px;font-size:13px;border-bottom:3px solid transparent}.tabs .active{font-weight:bold;border-bottom-color:#222}.card,fieldset{border:1px solid #c9c9cc;border-radius:10px;padding:10px;margin:0 0 12px;min-width:0}.card h2{margin:0;font-size:18px}.row{display:flex;align-items:center;gap:8px}.spread{justify-content:space-between}.grow{flex:1}.thumb{width:47px;height:47px;border-radius:8px;object-fit:cover}.avatar{border-radius:50%}.muted,legend,small{color:#626367}.red{color:#ba1620}.blue{color:#1454c9}.green{color:#17582b}.summary{display:flex;overflow:auto;text-align:center;margin-top:8px}.summary button{min-width:65px;flex:1;border:0;border-radius:0;border-inline-end:1px solid #ddd;font-size:11px}.summary b,.tabs b{display:block;margin-top:6px}.control{width:100%;border:0;background:white;min-height:30px;text-align:right}textarea.control{min-height:72px}fieldset legend{font-size:12px;padding:0 5px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.grid button{min-height:76px}.icon{display:block;font-size:20px}.toolbar{display:flex;gap:5px;margin:9px 0}.toolbar button{flex:1;font-size:12px;min-width:0}.num{text-align:left;direction:ltr}.popup{border:1px solid #bbb;border-radius:10px;background:white;padding:8px}.popup button{width:100%;margin-bottom:3px}.layer{position:fixed;inset:0;background:#0005;z-index:5;display:flex;align-items:flex-end;justify-content:center;padding:0 10px 57px}.layer .popup{width:min(100%,600px);position:relative}.layer .popup:after{content:'';position:absolute;bottom:-9px;left:calc(50% - 8px);width:16px;height:16px;background:#fff;border-right:1px solid #bbb;border-bottom:1px solid #bbb;transform:rotate(45deg)}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:right;border-bottom:1px solid #e4e4e4;padding:8px 4px}th{background:#f1f1f1}td button{border:0;padding:3px;min-height:36px;background:transparent;text-align:right}.form-actions{margin-top:12px}.photo-row{display:flex;gap:5px}.photo-row button{flex:1;min-width:0;border-style:dashed;font-size:12px}.error{color:#a51618}.bubble{max-width:86%;border-radius:13px;padding:10px;margin-bottom:8px;background:#eee}.own{margin-right:auto;background:#edf3ed}.badge{color:#ba1620;font-weight:bold}.money-line{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;text-align:center}.money-line button{border:0}.pill{padding:5px;border-bottom:1px solid #eee}
footer:has(.plus){position:sticky;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;justify-items:center}footer:has(.plus)>button:first-child{grid-column:1}footer:has(.plus)>.plus{grid-column:3}footer:has(.plus)>button:nth-last-child(2){grid-column:4}footer:has(.plus)>button:last-child{grid-column:5}footer .thumb{width:32px;height:32px;display:block}.row select.control{width:auto;min-width:76px}.control.num{min-width:0}.toolbar button small{display:inline-block;background:#ececec;border-radius:20px;min-width:14px}.card .thumb{vertical-align:middle}

.search-large{min-width:52px;min-height:52px;font-size:30px;line-height:1}
.note-editor{position:fixed;inset:0;z-index:10;background:#fff;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 12px env(safe-area-inset-bottom)}
.note-editor header{position:relative}
.note-title{font-size:20px;font-weight:bold;border:0;padding:16px 8px;outline:none}
.note-body{flex:1;resize:none;border:0;padding:8px;line-height:1.9;outline:none;font-size:17px}
.note-editor footer{margin:0 -12px}
.chat-composer{min-height:48px;max-height:140px;resize:none;border:1px solid #ccc;border-radius:22px;padding:12px;line-height:1.5;overflow:auto}

.note-editor{padding:0}
.note-editor header{flex:none}
.note-scroll{overflow:auto;padding:0;overscroll-behavior:contain}
.note-form{margin:0 auto;max-width:760px;min-height:100%;padding:20px 20px 36px}
.note-title{display:block;width:100%;font-size:24px;padding:8px 0 16px}
.note-writing{display:grid;min-height:calc(100vh - 150px)}
.note-body,.note-measure{grid-area:1/1;min-width:0;width:100%;padding:4px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:17px;font-family:inherit}
.note-measure{visibility:hidden}
.note-body{overflow:hidden;resize:none;background:transparent}
main[data-page="chat"]{min-height:0;height:100vh;height:100dvh;overflow:hidden}
main[data-page="chat"]>header{flex:none}
.chat-history{min-height:0;overflow:auto;background:#f5f4f1;overscroll-behavior:contain}
.chat-history .bubble{width:fit-content;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff}
.chat-history .own{background:#e3efdf}
.chat-controls{flex:none;position:relative;align-items:flex-end;justify-content:initial;padding:6px;gap:6px}
.chat-input{display:flex;align-items:flex-end;min-width:0;flex:1;background:#f4f4f4;border-radius:22px}
.chat-composer{min-width:0;flex:1;background:transparent;border:0;min-height:44px;max-height:144px;max-height:min(144px,30dvh);padding:10px 12px;scrollbar-width:thin}
.chat-attach{border:0;background:transparent;min-width:44px;font-size:20px}
.chat-attachments{position:absolute;bottom:calc(100% + 4px);inset-inline-start:8px;background:#fff;border:1px solid #ddd;border-radius:10px;padding:5px;display:flex;gap:5px}
.chat-controls .chat-send{border-radius:24px}

.bottom-nav>.pdf-action{grid-column:2;grid-row:1}
.pdf-action{min-width:44px;font-weight:bold;font-size:12px}
.record-footer{justify-content:flex-start;gap:12px;padding:8px 12px}
.record-footer span{display:grid;gap:3px}
.record-footer strong{font-size:13px;font-weight:600}
.note-bar{gap:12px;padding:8px 16px}
.note-bar .note-title{flex:1;min-width:0;font-size:19px;padding:8px 0}
.note-bar button{min-width:44px}
.chat-actions{display:flex;flex-direction:column;align-items:stretch;gap:3px}
.chat-actions .chat-attach{padding:0;min-height:44px;background:#f4f4f4}
.chat-input{align-self:stretch}
.chat-composer{height:100%;padding-inline:10px}
.document-grid{gap:10px}
.document-grid .document-tile{min-width:0;min-height:112px;display:grid;align-content:center;justify-items:center;gap:8px;padding:10px 6px;background:#fafafa;border-color:#e4e4e7}
.document-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.document-tile small{font-size:10px}
.document-icon{position:relative;display:block;width:40px;height:48px;color:#8b4b36;background:#fbe2d7;border-radius:4px 8px 5px 5px;overflow:hidden}
.document-icon::before{content:'';position:absolute;inset:0 0 auto auto;width:12px;height:12px;background:#ecc1af;clip-path:polygon(0 0,100% 100%,0 100%)}
.document-icon i{position:absolute;top:17px;left:9px;right:9px;height:15px;background:repeating-linear-gradient(to bottom,currentColor 0 1px,transparent 1px 5px);opacity:.65}
.document-icon.icon-file{color:#405e81;background:#e4edf7}
.document-icon.icon-file::before{background:#a1bbd9}
.document-icon.icon-photo{color:#516c64;background:#deeee7}
.document-icon.icon-photo::before{background:#a0c8b7}
.document-icon.icon-photo i{background:currentColor;clip-path:polygon(0 100%,30% 46%,48% 72%,72% 21%,100% 100%)}
.document-icon.icon-folder{height:31px;margin-top:8px;margin-bottom:9px;background:#f6dfa3;color:#b48634;overflow:visible}
.document-icon.icon-folder::before{inset:-5px auto auto 3px;width:17px;height:7px;background:#ecd08c;border-radius:4px 4px 0 0;clip-path:none}
.document-icon.icon-folder i{top:8px;height:1px;opacity:.3}
.document-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;align-items:start}
.document-grid .document-tile{min-height:0;padding:0 0 5px;background:transparent;border-color:transparent;gap:7px;align-content:start}
.document-face{position:relative;display:grid;place-items:center;aspect-ratio:1;overflow:hidden;background:#f1f3f5;border-radius:12px;width:100%}
.document-face img,.document-face video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.document-face img[hidden],.document-face video[hidden]{display:none}
.document-face.media-face{background:#e2e8e8}
.document-icon b{position:absolute;inset:auto 2px 6px;font-size:9px;text-align:center;direction:ltr}
.document-icon.icon-video{background:#eae5f5;color:#675385}
.play-marker{position:absolute;inset:auto 6px 6px auto;display:grid;place-items:center;width:22px;height:22px;border-radius:100%;color:#fff;background:#151515ba;font-size:10px}
.files-footer button{font-size:13px}
.trash-card{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.trash-card .document-icon{flex:none}
.trash-card .grow{min-width:80px;overflow-wrap:anywhere}
.trash-card button{font-size:12px}
.document-destinations{display:grid;gap:8px}
.document-preview{position:fixed;inset:0;z-index:10;display:flex;flex-direction:column;background:#141517;color:#fff}
.document-preview header,.document-preview footer{background:#26282c;border-color:#444}
.document-preview button{color:#fff;background:#26282c;border-color:#777}
.document-preview section{display:grid;place-items:center;min-height:0;padding:0;overflow:hidden}
.document-preview .document-face{width:min(50%,220px)}
.document-full-image,.document-player{width:100%;height:100%;max-height:100%;object-fit:contain}
.profile-setting input{width:22px;height:22px;accent-color:#282828}
.amount-input{background:#fff0c7!important;color:#3d2700!important;border:1px solid #d6a64a!important;border-radius:8px;font-weight:700;padding:8px;min-height:44px}
.amount-input:focus{outline:2px solid #bc780f}
.invoice-total{font-weight:bold;color:#825300;background:#fff0c7;border-radius:8px;padding:8px 12px}
.ledger-options{justify-content:flex-end;margin-bottom:8px}
.ledger-options select{border:1px solid #aaa;border-radius:8px;padding:8px}
.invoice-queue{position:relative;font-size:20px;min-width:50px}
.invoice-queue sup{position:absolute;top:3px;inset-inline-end:3px;min-width:16px;padding:1px 3px;border-radius:10px;font-size:11px;background:#a42328;color:#fff}
.report-path{display:block;white-space:nowrap;overflow-x:auto;padding-block:4px;line-height:1.55}
td .report-path{max-width:43vw;font-size:11px;color:#535862}
.path-separator{padding-inline:6px;color:#6b707a}
.toolbar.wrap{flex-wrap:wrap}
.toolbar.wrap button{flex:0 1 auto}
button.danger{color:#991d24;border-color:#db9699;background:#fff5f5}
.sheet-layer{padding:0;align-items:flex-end;z-index:20}
.sheet{width:min(100%,620px);min-height:45vh;max-height:85vh;max-height:85dvh;overflow:auto;background:#fff;border-radius:20px 20px 0 0;padding:16px 16px 24px;box-shadow:0 -4px 18px #0004}
.sheet h2{margin:0;font-size:18px}
.sheet-choices{display:grid;gap:7px;margin:12px 0}
.sheet form{margin-top:14px}
.assigned-pin{display:block;text-align:center;padding:18px;background:#f1f3f5;border-radius:12px;font-size:26px;font-weight:700;letter-spacing:5px}
.role-footer,.role-footer:has(.plus){display:flex;flex-direction:column;gap:4px;align-items:stretch}
.role-footer>.plus{align-self:center}
.role-footer nav{position:static;display:flex;justify-content:space-between;border:0;padding:0;gap:3px;min-height:44px}
.role-footer nav button{border:0;min-width:0;flex:1;padding:3px;font-size:12px}
.role-footer nav button.active{font-weight:700;background:#e8f0fb}
[data-theme=night]{color-scheme:dark}
[data-theme=night] body,[data-theme=night] main,[data-theme=night] header,[data-theme=night] nav,[data-theme=night] footer,[data-theme=night] .sheet,
[data-theme=night] .popup,[data-theme=night] .popup:after,[data-theme=night] .note-editor{background:#1b2028;color:#edf1f8}
[data-theme=night] button,[data-theme=night] .control,[data-theme=night] .document-face,[data-theme=night] .assigned-pin,
[data-theme=night] th,[data-theme=night] .chat-input,[data-theme=night] .chat-actions .chat-attach,
[data-theme=night] .chat-attachments{background:#293342;color:#edf1f8;border-color:#536076}
[data-theme=night] button.primary,[data-theme=night] .role-footer nav button.active{background:#284e79;color:#fff;border-color:#6390bd}
[data-theme=night] .note-title,[data-theme=night] .note-body{color:#edf1f8;background:transparent}
[data-theme=night] .chat-history{background:#151a20}
[data-theme=night] .chat-history .bubble{background:#293342;color:#edf1f8}
[data-theme=night] .chat-history .own{background:#214743}
[data-theme=night] .muted,[data-theme=night] legend,[data-theme=night] small,[data-theme=night] td .report-path{color:#bac4d4}
[data-theme=night] .blue{color:#a7cdff}
[data-theme=night] .green{color:#9ee3b6}
[data-theme=night] .red,[data-theme=night] .error{color:#ffabb2}
[data-theme=night] button.danger{color:#ffabb2;border-color:#a4545c}
fieldset:disabled{opacity:.55}
.contact-suggestions{max-height:12rem;overflow:auto;padding-top:6px}
.contact-suggestions button{margin-bottom:4px;text-align:right}
.contact-suggestions [hidden]{display:none}
.account-root{color:#17582b}
[data-theme=night] .account-root{color:#9ed29d}
header .report-path{text-align:right;font-size:clamp(14px,4vw,20px)}
.contact-create{position:fixed;inset:0;z-index:4;background:#0005;display:flex;align-items:flex-end;justify-content:center}
.contact-create .sheet{height:56vh;height:56dvh;max-height:90dvh}
.contact-create .contact-expanded{height:88vh;height:88dvh}
.contact-create form>.row button{flex:1}

.document-import progress{width:100%;margin-block:8px 2px;accent-color:#17582b}
.document-tile{position:relative;touch-action:pan-y;user-select:none;-webkit-touch-callout:none}
.document-tile .document-face{pointer-events:none}
.document-tile.selected .document-face{box-shadow:inset 0 0 0 3px #1454c9}
.document-check{position:absolute;inset:5px 5px auto auto;z-index:1;display:grid;place-items:center;width:22px;height:22px;border:2px solid #fff;border-radius:50%;background:#0005;color:#fff;box-shadow:0 0 0 1px #343434}
.selected .document-check{background:#1454c9}
.selection-footer button{font-size:12px}
.currency-text,select[name="currency"],select[name="reportCurrency"]{color:#1454c9}
[data-theme=night] .currency-text,[data-theme=night] select[name="currency"],[data-theme=night] select[name="reportCurrency"]{color:#86b8ff}
.cashbox-title-currency{font-size:.68em;font-weight:400;margin-inline-start:5px}
.ledger-photo,.contact-avatar,.contact-name{border:none;background:transparent;padding:0 6px}
.ledger-photo .thumb{display:block}
.ledger-tools{display:flex;flex-flow:row nowrap;overflow:auto;align-items:stretch}
.ledger-tools>button,.report-choices>button{flex:1 0 auto;min-width:0;white-space:nowrap;font-size:clamp(9px,2.7vw,12px);padding-inline:6px}
.report-choices{display:flex;gap:3px}
.report-choices:empty{display:none}
.contact-card{padding:7px 9px;margin-inline:6px;margin-bottom:8px}
.contact-card .thumb{width:37px;height:37px}
.contact-card .wide{min-height:32px}
.contact-quick{display:flex;align-items:center;margin-block:3px;gap:3px;min-width:0}
.contact-plus{min-height:34px;width:36px;font-size:20px;flex-shrink:0;padding:0}
.contact-actions{position:static;min-height:0;display:flex;gap:2px;overflow-x:auto;background:#f1f2f4;border:none;padding:2px 3px;border-radius:6px}
.contact-actions button{white-space:nowrap;min-height:34px;border:0;background:transparent;font-size:11px;padding-inline:5px}
[data-theme=night] .contact-actions{background:#283141}
.screenshot-permit{display:block;color:#17582b;margin-top:3px}
.unlock-pane{max-width:480px;width:100%;margin-inline:auto}
.unlock-submit{margin-top:7px;position:sticky;bottom:8px}
.invoice-item{padding:9px}
.invoice-item label,.invoice-item-grid>span{display:block;color:#626367;font-size:12px}
.invoice-item label input{display:block;margin:4px 0}
.invoice-item-grid{display:grid;grid-template-columns:45px minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1fr);align-items:start;gap:6px;margin-top:8px}
.invoice-item-grid input{padding:4px;border:1px solid #d5d5d9;border-radius:6px}
.invoice-item-grid output,.invoice-item-grid>span b{display:block;margin-top:9px;font-size:14px;overflow-wrap:anywhere}
.invoice-remove{min-height:32px;font-size:11px}
[data-theme=night] .invoice-item label,[data-theme=night] .invoice-item-grid>span{color:#bac4d4}
.contact-avatar{position:relative;min-width:42px}
.avatar-placeholder{width:37px;height:37px;display:grid;place-items:center;border-radius:50%;background:#e2eef5;color:#214757}
.unread-badge{position:absolute;inset:auto 0 0 auto;min-width:19px;border:2px solid #fff;border-radius:12px;background:#b62645;color:#fff;font-size:10px;font-weight:bold;padding-inline:3px}
.contact-activity{border:none;background:transparent;font-size:11px}
.contact-actions{display:grid;grid-template-columns:1fr;margin:3px 8px;padding:4px;background:#ebeff3}
.contact-actions button{text-align:start;padding-inline:14px}
.locked-contact{padding:3px 0;margin:3px 0;color:#626367}
.chat-history{background:#edf4f6;padding:14px 12px}
.bubble{width:fit-content;max-width:min(83%,410px);min-width:76px;background:#fff;border-radius:4px 14px 14px 14px;box-shadow:0 1px 3px #25425018;padding:8px 11px}
.bubble.own{background:#dceef1;border-radius:14px 4px 14px 14px}
.message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.message-time{display:block;text-align:end;color:#4e6873;font-size:10px;padding-top:4px}
.bubble-media img{display:block;max-height:300px;width:auto;object-fit:contain}
.voice-media{display:grid;min-width:min(54vw,215px);grid-template-columns:1fr;gap:2px}
.voice-media audio{width:100%;height:38px;max-width:280px}
.voice-timer{color:#ab2341;font-weight:bold}
.voice-controls{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px}
.voice-button{border:0;background:#e6eff3;color:#224b58;font-size:12px;white-space:nowrap}
[data-theme=night] .chat-history{background:#172530}
[data-theme=night] .bubble{background:#253643}
[data-theme=night] .bubble.own{background:#214354}
[data-theme=night] .message-time{color:#a6c4cf}
.private-capture{position:fixed;inset:auto 10px 68px auto;z-index:11;min-height:36px;font-size:11px;color:#234c57;background:#eef7f7;border:1px solid #c1d9db}
.private-capture[hidden]{display:none}
.trash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.trash-tile{min-width:0;border:1px solid #e0e5e6;border-radius:12px;padding:8px;display:grid;gap:8px}
.trash-tile .document-face{aspect-ratio:4/3}
.trash-tile time{color:#626367;font-size:11px}
.trash-tile .row button{flex:1;min-width:0;font-size:11px;padding-inline:4px}
.document-audio{width:min(90%,420px)}
.rich-note{overflow:hidden}

.note-format button,.note-format label{font-size:11px;min-height:32px}
.note-format label{display:flex;align-items:center;gap:4px}
.note-format select{min-height:28px}
.note-rich{min-height:100%;outline:none;overflow-wrap:anywhere;font-size:17px}
.note-rich img{max-width:100%;max-height:420px;object-fit:contain}
.note-check{cursor:pointer;color:#285d61}
.album{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:10px;scrollbar-width:thin}
.album figure{flex:0 0 100%;position:relative;min-width:0;margin:0;scroll-snap-align:start;background:#eaf1f3}
.album img{display:block;width:100%;max-height:min(65vh,470px);aspect-ratio:4/3;object-fit:contain}
.album figcaption{position:absolute;inset:auto auto 8px 8px;background:#1f3038bb;color:#fff;padding:3px 8px;border-radius:12px;font-size:11px}
.program-gallery{padding:8px 12px}
.program-gallery .album img,.program-list-card .album img{max-height:160px}
.program-history .bubble,.program-history .bubble.own{width:100%;max-width:100%;margin-inline:0;border-radius:8px}
.program-author{display:block;font-size:12px;margin-bottom:4px;color:#245969}
.contact-programs{position:relative;padding-inline:5px;font-size:11px;border:0;background:transparent}
.program-badge{display:inline-grid;place-items:center;min-width:17px;border-radius:10px;background:#b62645;color:#fff;font-size:9px;padding:2px}
.message-selection{display:flex;gap:4px;overflow-x:auto;width:100%}
.message-selection button{font-size:11px;flex-shrink:0;min-height:36px}
.selected-message,.bubble.own.selected-message{outline:2px solid #386a88;background:#e0e9fa}
.bubble blockquote{margin:0 0 6px;padding:5px 8px;border-inline-start:3px solid #648c9b;background:#89a7b71f}
.bubble blockquote span{display:block;font-size:12px}
.reply-strip{flex-basis:100%;padding:5px 8px;border-inline-start:3px solid #648c9b;font-size:12px}
[data-message-id]{touch-action:pan-y}
.document-grid,.trash-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.document-grid .document-name{font-size:11px}
.trash-grid .trash-tile{padding:4px;gap:3px}
.trash-grid .trash-tile .document-face{aspect-ratio:1}
.trash-grid .document-tile{width:100%}
.media-browser{text-align:center;background:#26282c;padding:4px 8px}
.bottom-nav>button,.bottom-nav .pdf-action{border:0;box-shadow:none}
.bottom-bell{display:inline-block;font-size:26px;filter:grayscale(1);line-height:1}
.contact-field .avatar{width:37px;height:37px}
.invoice-item{border:1px solid #dadfe2;border-radius:8px;margin-block:0 6px}
.invoice-item-grid{grid-template-columns:26px 18px minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1fr);align-items:center;gap:4px}
.invoice-item-grid .invoice-remove{padding:0;color:#a62339;border:0;background:transparent;font-size:19px}
[data-theme=night] .invoice-item{border-color:#48525e}
[data-theme=night] .invoice-item-grid .invoice-remove{color:#ffabb7}
.invoice-item-grid .invoice-line-index,.invoice-item-grid output{margin-top:0;text-align:center}
.invoice-line-index{font-size:12px;color:#52666e}
.contact-report{border-block-start:1px solid #e0e5e7;padding-block-start:3px}
.contact-report-link,.contact-report select{border:0;background:transparent;min-height:32px}
.contact-report select{width:auto;color:#1454c9}
.contact-report .money-line{grid-template-columns:repeat(3,minmax(0,1fr));font-size:13px}
[data-theme=night] .contact-report{border-color:#48525e}
[data-theme=night] .contact-report select{color:#86b8ff}
.subaccount-link{display:inline-flex;align-items:center;gap:5px}
.subaccount-icon{display:inline-grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:5px}
.subaccount-book{background:#e8eff4;font-size:16px}
.document-pdf{width:100%;height:100%;min-height:60vh;border:0}
.reply-strip strong,.reply-strip .grow>span,.reply-quote strong,.reply-quote span{display:block}
.reply-strip .grow{min-width:0}
.reply-strip .grow>span,.reply-quote span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bubble .reply-quote{min-height:0;width:100%;min-width:0;text-align:start;padding:0;border:0;background:transparent}
.message-highlight{outline:2px solid #388097}
.tabs [data-private-entry]{user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
.private-files-bar{gap:4px;padding-inline:6px;justify-content:space-between}
.private-files-bar button{border:0;background:transparent;white-space:nowrap;min-width:40px;padding-inline:6px}
.private-files-tabs{display:flex;flex:1;align-items:stretch}
.private-files-tabs button{flex:1;border-radius:0;border-bottom:3px solid transparent}
.private-files-tabs button.active{border-bottom-color:currentColor;font-weight:700}
.blind-pin-bar{justify-content:flex-start;border:0}
#blind-pin{position:fixed;inset:0 auto auto 0;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
#blind-pin input{position:absolute;width:1px;height:1px;padding:0;border:0;font-size:16px;caret-color:transparent}
.contact-report-link{padding-inline:0;text-align:start}
.contact-report .money-line span:not(:first-child){text-align:center}
.contact-currency-menu{position:relative;display:flex;align-items:center}
.contact-currency-menu::after{content:'⌄';position:absolute;inset-inline-end:0;pointer-events:none;font-size:12px}
.contact-report .contact-currency-menu select{appearance:none;padding-inline:0 12px;text-align-last:end}
.invoice-item{padding:3px 4px 4px}
.invoice-item-grid{grid-template-columns:20px 14px minmax(0,1.3fr) minmax(0,.68fr) minmax(0,1.05fr);gap:2px;margin-top:3px}
.invoice-item-grid input{min-width:0;padding-inline:3px}
.invoice-item-grid output{text-align:end;padding-inline-end:1px}
.attachment-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-block:4px}
.attachment-photo-grid button{padding:2px;min-width:0;min-height:44px;overflow:hidden}
.attachment-photo-grid img{display:block;width:100%;height:auto;max-height:73px;aspect-ratio:1;object-fit:cover}
.archive-header h1{min-width:0;font-size:17px}
.publication-actions{justify-content:center;flex-wrap:wrap}
.publication-entry{user-select:none;-webkit-touch-callout:none}
.publication-selected{outline:2px solid #388097;outline-offset:-2px}
.showcase{padding:8px 12px}
.showcase-post{padding:0 0 12px;margin:0 0 12px;border-block-end:1px solid #dfe5e7}
.showcase-post:last-child{border-block-end:0}
.publication-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.showcase .publication-title{white-space:nowrap;display:block;text-overflow:ellipsis;font-size:16px;margin:6px 0}
.post-copy{display:block;width:100%;border:0;min-height:0;padding:0;text-align:start;background:transparent;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:5px 0}
.post-copy.collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.post-toggle{border:0;min-height:30px;padding:0 2px;color:#285d77;background:transparent}
.carousel-track{scrollbar-width:none;scroll-behavior:smooth;overscroll-behavior-x:contain}
.carousel-track img,.publication-placeholder{max-height:min(65vh,470px);aspect-ratio:4/3;width:100%;object-fit:contain;background:#eaf1f3;border-radius:8px}
.carousel-dots{display:flex;justify-content:center;gap:3px;padding:3px 0}
.carousel-dots button{border:0;background:transparent;min-height:22px;width:24px;padding:0;display:grid;place-items:center}
.carousel-dots button::after{content:'';width:6px;height:6px;border-radius:50%;background:#a9b5b9}
.carousel-dots button[aria-current="true"]::after{background:#275d71}
.program-photo-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-block:3px}
.program-photo-row>img,.program-photo-row>span{width:100%;display:block;aspect-ratio:1.25;object-fit:cover;background:#eaf1f3;border-radius:5px}
.program-gallery{flex:none;padding:0 8px;max-height:26vh;overflow:hidden}
.program-gallery .program-photo-row>img{max-height:23vh}
.program-name{display:block}
.publication-photo-picker{margin-block:5px}
.photo-pick-label{min-height:40px;display:inline-flex;align-items:center;margin-inline-end:8px}
.photo-pick-label input{width:1px;height:1px;opacity:0;position:absolute}
main[data-page="program"]{min-height:0;height:100vh;height:100dvh;overflow:hidden}
main[data-page="program"]>header{flex:none}
.chat-controls{flex-direction:column;align-items:stretch}
.chat-compose-row{display:flex;align-items:flex-end;gap:4px;width:100%;min-width:0}
.chat-actions{flex-direction:row;align-items:center;flex:none}
.chat-actions button{min-height:37px;white-space:nowrap;padding-inline:6px;font-size:12px}
.chat-actions .chat-attach{min-width:32px;min-height:37px;font-size:18px}
.chat-composer{min-height:44px;max-height:min(90px,18dvh);resize:none}
.reply-strip{min-width:0;width:100%;padding-block:3px;flex:none;line-height:1.22}
.reply-strip button,.chat-photo-draft button{min-height:29px;padding-block:0}
.reply-strip .reply-thumbnail,.chat-photo-draft .thumb{width:34px;height:34px;flex:none}
.reply-strip .grow>span,.chat-photo-draft .grow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-photo-draft{min-width:0;padding:2px 6px}
.photo-reply{min-height:28px;border:0;background:transparent;padding:1px 5px}
.note-edit-bar{flex:none;min-height:40px;padding:3px 6px;gap:3px}
.note-edit-bar>button{flex:none;min-width:35px}
.note-edit-bar button{min-height:34px;padding:3px 7px;white-space:nowrap}
.note-toolbar-scroll,.note-format{display:flex;gap:4px;align-items:center}
.note-toolbar-scroll{min-width:0;flex:1;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.note-toolbar-scroll>*,.note-format>*{flex:none}
.note-toolbar-scroll .note-title{font:inherit;width:128px;padding:4px;min-height:34px}
.note-scroll{min-height:0;overflow:auto;padding:0}
.note-rich{padding:8px 12px 12px;line-height:1.9}
.note-rich img{cursor:pointer;height:auto}
.note-rich [data-note-underline]{text-decoration-line:underline;text-decoration-thickness:var(--line-weight,2px)}
.note-rich [data-note-underline="near"]{text-underline-offset:.065em;text-decoration-skip-ink:auto}
.note-rich [data-note-underline="below"]{text-underline-offset:max(.42em,6px);text-decoration-skip-ink:none}
.note-rich [data-note-weight="1"]{--line-weight:1px}
.note-rich [data-note-weight="2"]{--line-weight:2px}
.note-rich [data-note-weight="3"]{--line-weight:3px}
.note-rich [data-note-weight="4"]{--line-weight:5px}
.note-image-size{display:grid;gap:6px;margin-block:8px}
@media (prefers-reduced-motion:reduce){.carousel-track{scroll-behavior:auto}}
.finance-photo{position:relative;min-width:0}
.finance-photo button{position:absolute;inset:2px 2px auto auto;min-height:26px;width:26px}
.document-actions{gap:4px;padding-inline:5px;align-items:stretch}
.document-actions button{min-width:0;height:44px;min-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline:5px;font-size:12px}
.note-edit-bar{min-height:54px}
.note-edit-bar button{min-height:45px;padding-inline:10px;flex-shrink:0}
.note-edit-bar>button{min-width:44px}
.note-toolbar-scroll .note-title{width:70vw;flex:0 0 70vw;border:0;border-bottom:1px solid #c8d6dd;min-height:44px}
.note-toolbar-scroll .note-tool{white-space:nowrap}
.note-weight-icon{display:inline-block;width:25px;border-top:solid currentColor;vertical-align:middle}
.note-rich{position:relative;isolation:isolate;line-height:1.52}
.note-rich img{max-height:none;object-fit:contain;touch-action:manipulation;user-select:none;vertical-align:middle}
.note-rich img[data-note-background="1"]{position:absolute;z-index:-1;pointer-events:none}
.note-rich [data-note-underline="near"]{text-underline-offset:.025em;text-decoration-skip-ink:none}
.note-rich [data-note-underline="below"]{text-underline-offset:.19em;text-decoration-skip-ink:auto}
.note-paper .note-rich{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(297mm - 1mm),#a6a6a6 calc(297mm - 1mm),#a6a6a6 297mm);min-height:max(100%,297mm)}
.note-media{display:inline-block;padding:0 5px;border:1px solid currentColor;border-radius:4px;line-height:1.4;margin-inline:1px;cursor:pointer;white-space:nowrap;user-select:none;touch-action:manipulation}
.note-mark{cursor:pointer;user-select:none;margin-inline-end:.25em}
.note-file-player{width:100%;max-height:62vh}
.note-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.note-choices label,.note-switch label{display:flex;align-items:center;gap:6px;min-height:38px}
.note-size-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.note-color-row,.note-switch{display:flex;align-items:center;gap:8px;min-height:45px;flex-wrap:wrap}
.note-color-row{justify-content:space-between}
.note-symbol-panel{position:absolute;z-index:4;top:54px;inset-inline:0;max-height:60vh;overflow:auto;background:#fff;box-shadow:0 2px 6px #0003;padding:6px 12px}
.note-symbol-row{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(24px,1fr) auto;align-items:center;gap:8px;min-height:38px}
.note-symbol-row button{min-height:34px}
.note-template-bar{justify-content:space-around;gap:3px}
.note-template-bar .active{font-weight:bold;border-color:currentColor}
.template-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.template-images button{padding:3px}
.template-images img{width:100%;height:auto;aspect-ratio:1;display:block}
[data-theme=night] .note-symbol-panel{background:#202b36;color:#edf1f8}
.note-rich img[data-note-initial="1"]{width:3cm;height:3cm}
@font-face{font-family:"Note Naskh";src:url("fonts/NotoNaskhArabic-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Note Kufi";src:url("fonts/NotoKufiArabic-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Note Nastaliq";src:url("fonts/NotoNastaliqUrdu-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Note Arabic";src:url("fonts/NotoSansArabic-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Note Sans";src:url("fonts/DejaVuSans.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Note Serif";src:url("fonts/DejaVuSerif.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Note Mono";src:url("fonts/DejaVuSansMono.ttf") format("truetype");font-display:swap}
.note-rich{line-height:1.368;min-height:max(100%,var(--note-photo-height,0px))}
.note-paper .note-rich{min-height:max(100%,297mm,var(--note-photo-height,0px))}
.note-rich img{touch-action:none}
.note-rich img[data-note-layer="inline"]{display:block;position:relative;max-width:100%}
.note-rich img[data-note-layer="back"],.note-rich img[data-note-layer="front"]{position:absolute;margin:0}
.note-rich img[data-note-layer="back"]{z-index:-1;pointer-events:none}
.note-rich img[data-note-layer="front"]{z-index:2}
.note-rich img[data-note-locked="1"]{pointer-events:none}
.note-rich [data-note-underline="near"]{text-underline-offset:0;text-decoration-skip-ink:none}
.note-rich [data-note-underline="medium"]{text-underline-offset:1mm;text-decoration-skip-ink:none}
.note-rich [data-note-underline="far"]{text-underline-offset:2mm;text-decoration-skip-ink:none}
.note-line-choice{display:inline-flex;align-items:center;margin-inline:8px;min-height:40px}
.note-mark[data-note-mark="dot"],.note-mark[data-note-mark="dot-small"]{display:inline-block;width:4mm;height:4mm;border-radius:50%;background:currentColor;line-height:0;font-size:0!important;vertical-align:middle}
.note-mark[data-note-mark="dot-small"]{width:2mm;height:2mm}
.note-symbol-panel{width:min(235px,96vw);inset-inline:3px auto;border-radius:9px;padding:4px 7px;top:51px;max-height:min(65vh,420px)}
.note-symbol-row{gap:4px;font-size:11px;grid-template-columns:1fr 22px 45px}
.note-symbol-row button{padding-inline:3px}
.note-photo-card{position:fixed;top:14vh;right:9px;z-index:28;width:min(254px,calc(100vw - 12px));max-height:70vh;background:#f6fafb;border:1px solid #aebcc6;border-radius:13px;box-shadow:0 6px 24px #172b3b40;color:#233945}
.note-photo-card .photo-card-top{display:flex;align-items:center;padding:3px 4px;gap:4px;border-block-end:1px solid #dde5e8}
.note-photo-card .photo-card-handle{flex:1;text-align:start;touch-action:none;cursor:grab;background:transparent;border:0}
.note-photo-card .photo-card-content{max-height:calc(70vh - 38px);overflow:auto;padding:3px 6px 7px}
.note-photo-card button{min-height:29px;font-size:11px;padding:3px 5px}
.note-photo-card .note-switch,.note-photo-card .note-switch label{min-height:28px;font-size:11px;gap:4px}
.note-photo-card .note-image-size{display:flex;align-items:center;font-size:11px;gap:4px;margin:2px 0}
.note-photo-card .note-image-size input{min-width:0;flex:1;width:82px}
.note-photo-card .photo-layer-controls,.note-photo-card .photo-item-actions,.note-photo-card .photo-rotation{gap:3px;justify-content:space-around}
.note-photo-card .photo-layer-controls button[aria-pressed="true"]{font-weight:bold;background:#e0edf1;border-color:#7593a1}
.note-photo-card .photo-crop{display:grid;grid-template-columns:1fr 1fr;gap:2px 3px}
.note-photo-card .photo-crop input{width:45px}
.note-drag-ghost{position:fixed;z-index:30;pointer-events:none;opacity:.76;object-fit:contain}
.trash-preview-image{width:100%;max-height:62vh;object-fit:contain}
.download-list{display:grid;gap:6px}

.showcase-compose textarea[name="showcase-text"]{line-height:1.5;min-height:calc(9em + 10px);padding:4px 8px;resize:vertical}
.publication-actions button{flex:1;min-width:0;padding-inline:3px}
.program-scroll{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.program-scroll .program-gallery{max-height:none;overflow:visible}
.program-scroll .program-history{overflow:visible;flex:1 0 auto}
.program-scroll .chat-controls{position:static;flex:none}
.document-grid,.trash-grid{isolation:isolate}
.files-footer,.selection-footer{z-index:3}
.ledger-section{padding-inline:7px}
.compact-ledger{font-size:clamp(11px,3.19vw,14.3px)}
.compact-ledger th,.compact-ledger td{padding:3.3px 4.4px;line-height:1.35}
.compact-ledger th:first-child,.compact-ledger td:first-child,.ledger-number{white-space:nowrap}
.compact-ledger td:nth-last-child(3){width:100%;overflow-wrap:anywhere}
.compact-ledger button{min-height:0;padding:4.4px 0}
.compact-ledger select{font-size:inherit;min-height:26px;max-width:100%;padding-inline:0;background:transparent}
.ledger-number{direction:ltr;text-align:end;font-variant-numeric:tabular-nums}
.ledger-ink{color:#141414}
[data-theme=night] .ledger-ink{color:#f3f4f4}
.ledger-links{display:flex;gap:4px;flex-wrap:wrap;margin-block:3px}
.ledger-links button{border:0;min-height:30px}
.record-line{min-height:38px;padding:5px 1px;border-block-end:1px solid #d5d8dc;overflow-wrap:anywhere}
.record-line .thumb,.record-picture-placeholder{width:32px;height:32px;flex:none}
.record-picture-placeholder{display:grid;place-items:center}
.note-paper-surface{position:relative;min-height:max(100%,var(--note-paper-height,0px))}
.note-paper .note-rich{background-image:none;min-height:max(100%,var(--note-photo-height,0px))}
.note-page-breaks{position:absolute;inset:0;pointer-events:none;z-index:3}
.note-page-breaks i{position:absolute;inset-inline:0;border-block-start:1mm solid #a6a6a6}
.note-paper-choice label{margin-inline-end:16px}
.locked-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.locked-photo-grid button{overflow:hidden;padding:0;min-height:0;aspect-ratio:1}
.locked-photo-grid .thumb,.locked-photo-grid img{display:block;width:100%;height:100%;object-fit:cover}
.photo-rotation label{display:grid;flex:1;min-width:0;font-size:11px}
.photo-rotation input{width:100%;min-height:32px;text-align:center;border:1px solid #a3a7af;background:transparent;border-radius:4px}

.project-metrics{position:static;margin-bottom:8px}
.project-metrics button{font-size:12px;min-width:78px}
.project-card-summary button.active{font-weight:bold}
.project-accounts-table button{display:inline-flex;align-items:center;gap:4px}
.project-controls{justify-content:center;gap:12px}
.project-controls select{max-width:180px;color:#1454c9}
.entry-identity{gap:9px;min-width:0}
.entry-thumb{width:37px;height:37px;border-radius:8px;flex:none}
.entry-placeholder{display:grid;place-items:center;background:#e8eef3;color:#465363}
.entry-identity-text{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere;text-align:start}
.entry-identity-text small{line-height:1.35}
.entry-picker,.entry-option{display:flex;align-items:center;gap:8px;text-align:start;min-width:0;padding:5px 8px}
.entry-picker{justify-content:space-between}
.entry-choice-list{display:grid;gap:4px;margin-block:8px}
.entry-choice-list [aria-pressed="true"]{border:2px solid #3a76bc}
[data-theme=night] .entry-placeholder{background:#2a3b4e;color:#b8cce4}
.finance-nav,.finance-nav:has(.plus){display:flex;flex-direction:column;align-items:stretch}
.finance-footer-row{width:100%;justify-content:space-between}
.workspace-invite{margin-top:5px;padding-top:5px;border-top:1px solid #d5d8dc}
.workspace-invite bdi{font-variant-numeric:tabular-nums;color:#1454c9;font-weight:700}
.workspace-invite button{min-height:32px}
[data-workspace-upload]{font-size:10px;overflow-wrap:anywhere}
body.da-panel-open{overflow:hidden}
.da-launch,.da-notice-launch{display:grid;place-items:center;min-height:44px;width:44px;height:44px;padding:0;border:1px solid #fff;border-radius:50%;background:#134a67;color:#fff;font-size:25px;font-weight:bold}
.da-launch{position:fixed;inset:auto 11px max(64px,env(safe-area-inset-bottom)) auto;z-index:65;box-shadow:0 3px 14px #0005}
.da-launch[hidden]{display:none}
.da-profile-switch{gap:20px}
.da-profile-switch label{display:flex;align-items:center;gap:6px;min-height:40px}
.da-editor{position:fixed;inset:0;z-index:70;margin:auto;width:min(100%,620px);height:100%;padding:0;background:#fff;display:flex;flex-direction:column;outline:0}
.da-bar{position:static;font-size:14px;min-height:56px;padding-top:max(8px,env(safe-area-inset-top))}
.da-bar>button:first-child{min-width:44px}
.da-bar h1{font-size:24px}
.da-contexts{position:static;display:flex;flex:0 0 auto;overflow:auto;gap:5px;padding:6px 8px;white-space:nowrap;min-height:0}
.da-contexts button{min-height:34px;padding:4px 8px;font-size:12px}
.da-contexts [aria-pressed=true]{background:#e8f2f7;border-color:#1d6b8c;font-weight:bold}
.da-body{flex:1;overflow:auto;min-height:0;padding:12px 12px max(18px,env(safe-area-inset-bottom));overscroll-behavior:contain}
.da-body h2{font-size:16px;margin:0 0 8px}
.da-fields{display:grid;gap:7px}
.da-fields label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.9fr);align-items:start;gap:7px;border-block-end:1px solid #dfe5e9;padding-block:5px;font-size:13px}
.da-fields textarea,.da-copy-text{width:100%;border:1px solid #aebcc8;border-radius:6px;background:#fff;padding:6px;line-height:1.55;resize:vertical}
.da-fields label:last-child{grid-template-columns:1fr}
.da-local{margin-top:12px}
.da-local-input,.da-options{display:flex;gap:7px;margin-top:8px}
.da-local-input input{border:1px solid #aebcc8;border-radius:6px;padding:6px}
.da-progress:empty{display:none}
.da-notice{position:fixed;inset:auto max(12px,calc((100vw - 600px)/2)) max(12px,env(safe-area-inset-bottom));z-index:73;background:#fff;color:#202124;border:1px solid #b7c8d3;border-radius:13px;box-shadow:0 4px 24px #0005;padding:10px;overflow:auto;max-height:44vh;font-size:13px}
.da-notice-collapsed{inset-inline-start:auto;width:min(82vw,350px)}
.da-notice-launch{width:34px;height:34px;min-height:34px;font-size:20px;flex-shrink:0}
.da-summary{max-height:21vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
[data-theme=night] .da-editor,[data-theme=night] .da-notice,[data-theme=night] .da-fields textarea,[data-theme=night] .da-copy-text{background:#172231;color:#e8eef5}
[data-theme=night] .da-contexts [aria-pressed=true]{background:#244661}

.contact-presence,.chief-person{display:flex;flex-direction:column;align-items:center;gap:3px}
.presence{font-size:.68rem;line-height:1.25;font-weight:400;text-align:center}
.presence-online{color:#176ac6}.presence-offline{color:#171717}
[data-theme=night] .presence-offline{color:#171717;background:#e6e9ed;border-radius:4px;padding-inline:3px}
[data-theme=night] .presence-online{color:#74b8ff}
.chief-card{display:flex;align-items:center;gap:10px}
.chief-card .grow small{display:block;font-size:.72rem}
.workspace-block label{display:inline-flex;align-items:center;gap:4px;margin-inline:4px}
.chief-card .workspace-block{padding:3px;white-space:nowrap}
.contact-subaccount{margin-inline-start:calc(var(--sub-depth)*8px);display:flex;align-items:center}
.project-record-selection{display:grid;gap:4px;margin-block:8px}

.stage-installed,.stage-pass{color:#197542}.stage-fail{color:#9e252d}.stage-manual{color:#805804}
.stage-results{padding-inline-start:24px}.stage-results li{padding-block:7px;border-bottom:1px solid var(--line,#ddd)}
.stage-results span{margin-inline:8px}.stage-results small{display:block}
.da-context-part ul{display:flex;flex-wrap:wrap;gap:6px 18px;margin-block:4px;padding-inline-start:20px}
.da-context-part{border-bottom:1px solid var(--line,#ddd);padding-block:6px}

.stage-guide{position:fixed;inset:auto 12px 116px 12px;max-width:560px;margin-inline:auto;z-index:64;
 display:flex;align-items:center;gap:8px;padding:8px;background:#f0f7ff;color:#183748;border:1px solid #849fbb;border-radius:10px}
.da-source-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:28vh;overflow:auto;padding:6px}

.workspace-entry{width:min(100%,520px);margin:clamp(12px,6vh,60px) auto 0}
.workspace-entry-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.workspace-entry-modes label{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 6px}
.workspace-entry-modes input{margin:0;flex:none}
.workspace-entry-modes label:has(input:checked){font-weight:700}

.da-server-status{margin:8px 0}
.da-server-status p{margin:3px 0;font-size:.88rem;overflow-wrap:anywhere}
.da-server-status output{display:block;margin:4px 0}
.da-server-status .row{flex-wrap:wrap}

.offline-workspace-label{font-size:.77rem;margin:.5rem 1rem;color:#596579}
