/* Final reference: one bound working file and a fixed-height result column. */
:root{--rail:136px;--header:82px;--ink:#26343a;--navy:#233e50;--muted:#736c5f;--line:#b8ab92;--green:#47634d;--red:#8f5148;--surface:#f3ead8;--paper:url('../assets/paper-grain.svg');--grain:var(--paper);--sheet-light:radial-gradient(ellipse at 45% 32%,#fffaf03b,transparent 70%)}
body{background-color:#c3b59c;background-image:var(--paper),radial-gradient(ellipse at 42% 25%,#e0d3bd66,transparent 70%);color:var(--ink)}
.service-header{height:var(--header);padding:0 26px 0 calc(var(--rail) + 42px);grid-template-columns:330px minmax(320px,1fr) auto;gap:25px;background-color:#e9deca;background-image:var(--paper);border-bottom:1px solid #817665;box-shadow:0 2px 4px #4f40251c}
.service-brand{font:600 31px/1.2 'Segoe UI',sans-serif;letter-spacing:-1px;color:#20323a}.service-brand span{color:inherit;padding:0 3px}
.service-title{position:relative;isolation:isolate;align-self:stretch;display:flex;flex-direction:column;justify-content:center;justify-self:stretch;font:500 21px/1.3 'Segoe UI',sans-serif;letter-spacing:0;border-inline:1px solid #948671;margin:16px 0;padding:0 18px;white-space:nowrap}.service-title>span{font:11px 'Segoe UI',sans-serif;letter-spacing:2px;color:#6e675d;margin-top:5px}.header-engraving{position:absolute;z-index:-1;right:8px;bottom:-14px;width:235px;height:74px;object-fit:contain;opacity:.24;mix-blend-mode:multiply}
.service-register{gap:20px;font:12px 'Segoe UI',sans-serif;color:#514f47}.service-register>span{font-size:12px;letter-spacing:0;border-color:#a79a84;padding-left:20px;white-space:nowrap}.service-register button{font-size:13px;padding-left:20px;border-color:#a79a84;gap:12px;color:#3e4544}.service-register button .icon{width:32px;height:36px;padding:6px;border:1px solid #b0a38d;border-radius:4px}
.service-rail{width:var(--rail);background-color:#252e31;background-image:var(--paper),linear-gradient(90deg,#101a2140,transparent 40%,#070d1238);color:#dad2bd;border:1px solid #5c5b4e;box-shadow:inset -5px 0 0 #ffffff05,inset -7px 0 0 #cbbf9620;overflow:hidden}
.service-rail:after{content:'';pointer-events:none;position:absolute;inset:4px 6px;border:1px solid #d3c7a323;border-radius:3px}.rail-monogram{height:155px;padding:16px 0 21px;font:600 24px Georgia,serif;border-bottom:3px double #c8bb943d;color:#e9dfc9}.rail-monogram img{display:block;height:61px;width:61px;object-fit:contain;margin:0 auto 5px;filter:invert(.85) sepia(.35);opacity:.9}.rail-monogram span{font-size:11px;letter-spacing:2px;color:#c5c0ac}
.service-rail nav{padding:0}.rail-link{align-items:flex-start;margin:0 7px;gap:10px;padding:20px 23px 21px;border-bottom:1px solid #cdbf982e;color:#d4cdbb;min-height:120px}.rail-index{font-size:11px;letter-spacing:0;color:#b7b5a5}.rail-link .icon{width:25px;height:25px}.rail-caption{font-size:12px;white-space:nowrap}.rail-link small{font-size:9px;right:13px;top:19px}.rail-link.active{background:#e7ded911;color:#fff3dc}.rail-link.active:before{left:-7px;top:0;bottom:0;border-left:6px solid #a35f4c}.rail-link:hover{background:#fff4d910}.rail-engraving{width:310px;height:164px;object-fit:cover;object-position:55% center;margin-top:auto;margin-bottom:15px;filter:sepia(1) brightness(1.55);opacity:.26;align-self:center}.rail-status{align-items:flex-start;align-self:stretch;gap:7px;padding:0 24px 23px;font:11px/1.5 'Segoe UI',sans-serif;color:#c6c4b2;margin-top:0}.rail-status small{border:0;padding-top:14px;font:10px 'Segoe UI',sans-serif;align-self:center}.storage-indicator{font-size:10px;white-space:nowrap}.storage-indicator:before{content:'';display:inline-block;width:7px;height:7px;background:#8bac70;border-radius:50%;margin-right:6px}
#main-content.desk-content{margin-left:var(--rail);padding:20px 22px 25px;min-height:calc(100dvh - var(--header))}.document-spread{max-width:none;grid-template-columns:minmax(0,1.62fr) minmax(510px,1fr);gap:27px;align-items:start}.case-file{position:relative;isolation:isolate;min-width:0;padding:0 7px 7px 9px}.folder-backing{position:absolute;z-index:-2;inset:24px 21px 6px 18px;transform:rotate(-.7deg);background-color:#c2a77c;background-image:var(--paper);border:1px solid #977d57;border-radius:5px;box-shadow:0 3px 7px #4e382835,inset 0 0 0 3px #e6ce9d70}.folder-backing:after{content:'';position:absolute;inset:11px -13px -4px -8px;border:1px solid #ab9069;border-radius:4px;background:#ddc59e;box-shadow:inset 0 0 0 3px #ead7b6;background-image:var(--paper);transform:rotate(.9deg)}
.folder-bar{position:relative;z-index:3;display:block;padding:0 30px;margin:0;max-width:none}.folder-tabs{gap:7px;order:initial;width:auto}.folder-tab{min-width:190px;padding:13px 22px 14px;gap:13px;justify-content:center;font:500 14px 'Segoe UI',sans-serif;border:1px solid #ae9875;border-bottom:0;border-radius:8px 8px 0 0;background-color:#dfd4bf;background-image:var(--paper);color:#555650;box-shadow:inset 0 0 0 3px #f6ebd488,0 -2px 3px #6f4e2515}.folder-tab>span{font-size:11px;color:#71685b;letter-spacing:0}.folder-tab.active{background-color:#f4ecdc;background-image:var(--paper);padding-top:17px;margin-top:-4px;color:#233744;border-color:#a58a65;box-shadow:0 -4px 0 3px #c9ae8490,inset 0 0 0 3px #fff7e059}.folder-tab.active:after{height:8px;bottom:-5px;background-color:#f4ecdc;background-image:var(--paper)}
.working-folio{position:relative;padding:0 33px 0 0;background-color:#f4ecdb;background-image:var(--paper),var(--sheet-light);border:1px solid #ac9c7f;border-radius:5px 7px 4px 9px;box-shadow:0 5px 9px #44382240,inset 0 0 0 5px #fff8e526,inset 0 0 26px #92764617;min-height:calc(100dvh - 170px)}
.working-folio:before{content:'';position:absolute;z-index:-1;inset:-4px 5px 2px -6px;background-color:#e3d4b9;background-image:var(--paper);border:1px solid #b5a185;border-radius:3px 5px 9px 4px;transform:rotate(.22deg);box-shadow:-2px 2px 3px #5c48282b}.working-folio:after{inset:3px -5px -4px 5px;z-index:-1;background:#e2d2b5;background-image:var(--paper);border-color:#b29d7a;border-radius:4px;transform:rotate(-.18deg)}
.paperclip{position:absolute;z-index:5;top:4px;left:17px;width:21px;height:72px;border:2px solid #807660;border-radius:12px;transform:rotate(3deg);box-shadow:1px 1px 1px #fff7d1,inset 1px 0 1px #fff6d7,1px 2px 3px #32271966}.paperclip:after{content:'';position:absolute;inset:3px 3px 3px 3px;border:1px solid #b9b19b;border-radius:8px;box-shadow:inset 1px 0 1px #4e463b}
.folio-masthead{position:relative;margin-left:55px;padding:31px 0 25px;border-bottom:1px solid #ac9e85}.folio-registration{align-items:center;color:#6e6558;font:11px/1.35 'Segoe UI',sans-serif;letter-spacing:0}.folio-registration>span:first-child{font:12px 'Segoe UI',sans-serif;color:#5b594f;letter-spacing:0;padding-left:23px}.folio-registration>span:last-child{text-align:right}.folio-title{position:relative;z-index:1;padding:17px 0 12px}.folio-title>p{font:10px 'Segoe UI',sans-serif;letter-spacing:2.4px;color:#776b59}.folio-title h1{font:700 37px/1.15 Georgia,'Times New Roman',serif;margin:10px 0 8px;color:#21343d;letter-spacing:.1px}.folio-number{font:16px 'Segoe UI',sans-serif;letter-spacing:2px;color:#3d4340}.folio-instruction{font:11px/1.5 'Segoe UI',sans-serif;color:#786d5b;margin-top:1px}.folio-watermark{position:absolute;right:20px;top:75px;width:125px;height:125px;opacity:.07;mix-blend-mode:multiply}
.folio-section{grid-template-columns:55px minmax(0,1fr)}.folio-gutter{margin-left:18px;border-right:1px solid #b7a68966;padding-top:26px;justify-content:center}.folio-gutter span{font:16px/1 'Segoe UI',sans-serif;color:#9e9076;letter-spacing:1px}.folio-section-body{padding:22px 0 23px 24px;border-color:#bcad93}.folio-section-heading{margin-bottom:19px;gap:12px}.folio-section-heading h2{font:600 25px Georgia,serif;color:#283b43;white-space:nowrap}.folio-section-heading h2>.people-count{font:inherit;display:inline;padding:0;margin:0 0 0 6px;border:0;color:inherit}.section-actions{display:flex;gap:20px}.text-button{font-size:12px;color:#2f4550;gap:8px}.text-button span{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#73807b70}.text-button .icon{width:18px;height:18px}.document-lines{grid-template-columns:1fr 1.42fr .87fr;gap:18px}.line-field{gap:7px}.line-field>span{font-size:12px;color:#6d6556}.line-field i{color:#a45f4e}.line-field input{height:38px;min-height:38px;border:1px solid #b4a78f;border-radius:3px;padding:7px 11px;background:#fff8e421;font:15px 'Segoe UI',sans-serif;box-shadow:inset 0 1px 2px #5844220c}.line-field input:focus{border-color:#6e828b;background:#fff9eb7d;box-shadow:0 0 0 2px #40586b13}.inline-record{font-size:12px;gap:16px}.inline-record select{font-size:14px;border:1px solid #b4a78f;border-radius:2px;background:#fff7e12b}.practice-record legend{font-size:12px}.practice-record .skill{font-size:12px;border:1px solid #bbae93;border-radius:3px;background:#fff8df2e;padding:6px 9px}.practice-record .skill.selected{background:#bdc9ad61;color:#3f5847;border-color:#9ba98b}
.entry-register{border-color:#b0a38c;font-size:14px;background:transparent}.entry-register th,.entry-register td{border-color:#bdb098;padding:5px 9px}.entry-register thead th{font-size:12px;background:#c5bba545;color:#5c5c51;padding:9px;text-align:center}.entry-register thead th:nth-child(2){text-align:left}.entry-register tbody tr{height:45px}.entry-register tbody th{font:12px 'Segoe UI',sans-serif;color:#746c5f}.entry-register input{font-size:14px;padding:5px 3px;color:#28373b}.entry-register .entry-number{width:42px}.entry-register .entry-static{width:130px}.entry-register .entry-result{width:190px}.entry-register .entry-delete{width:40px}.entry-register .entry-grade{width:134px}.entry-register .result-select{font:13px 'Segoe UI',sans-serif;border:0;border-radius:7px;padding:5px 9px;min-height:30px}.entry-register .pass{background:#bdcdb27d;color:#334c39}.entry-register .fail{background:#dba79783;color:#754639}.entry-register .remove-person{width:28px;color:#8e8471}.entry-register .row-errors{font-size:11px}.entry-register tbody tr:hover{background:#fffaf132}.entry-register tbody tr.invalid{background:#e7c6b762;box-shadow:inset 2px 0 #a96352}.entry-register .empty-register{font-size:12px;color:#8c816d;height:58px}.entry-actions{margin-top:6px;gap:12px}.entry-actions .button{font-size:10px;min-height:21px;padding:2px 0;color:#8a816b}.entry-actions .button .icon{width:13px;height:13px}.entry-actions .button:disabled{opacity:.5}.entry-register .exam-details{gap:3px}.entry-register .exam-details input{font-size:12px}.compact .entry-register tbody tr{height:35px}
.document-totals th{text-align:center;font-size:12px;font-weight:400;padding:0 16px 4px;color:#756a58;border-color:#b5a68d}.document-totals td{text-align:center;font:500 31px/1.1 'Segoe UI',sans-serif;padding:3px 16px 0;color:#283c3d;border-color:#b5a68d}.document-totals th:first-child,.document-totals td:first-child{padding-left:16px}.document-totals .positive{color:#47634d}.document-totals .negative{color:#945b4e}.notes-line textarea{font:13px/28px 'Segoe UI',sans-serif;color:#3d4847;min-height:52px}
.folio-footer{margin-left:55px;padding:15px 0 14px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px}.folio-filing{align-self:center}.folio-filing #save-status{display:block;font:10px 'Segoe UI',sans-serif;color:#8a7f6b;margin-top:7px}.folio-footer>.button{padding:10px 18px;min-height:41px;align-self:center;font-size:13px;box-shadow:inset 0 1px #ffffff13;border-radius:3px;background:#263f50;background-image:var(--paper);color:#f7edda;gap:10px}.folio-footer>.button:after{content:'→';font-size:20px;margin-left:14px}.folio-history{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;font:9px 'Segoe UI',sans-serif;color:#9a8e77}.folio-history .button{font-size:10px;padding:0;min-height:18px;color:#807962}.validation,.form-ready{font-size:11px;color:#687255}.validation details{color:#8c6a43}.validation li button{font-size:12px}.form-ready .icon{width:15px;height:15px}
.output-leaves{position:sticky;top:14px;height:calc(100dvh - var(--header) - 40px);min-height:710px;border:1px solid #aa987b;border-radius:6px;background-color:#deceb248;background-image:var(--paper);padding:0 14px 10px;box-shadow:inset 0 0 0 3px #fff7e11f;display:flex;flex-direction:column;gap:10px;min-width:0}.output-index{min-height:43px;flex:0 0 auto;margin:0;padding:8px 0 2px;letter-spacing:0;gap:8px}.output-index h2{font:600 21px Georgia,serif;color:#293b42;white-space:nowrap}.output-index h2>span{font:12px 'Segoe UI',sans-serif;color:#8c816b}.folder-tools{order:initial;display:flex;gap:8px;padding:0;margin:0 0 0 auto;width:auto;justify-content:flex-end}.folder-tools .button{font:10px 'Segoe UI',sans-serif;min-height:28px;padding:3px 0;color:#304653;gap:5px;white-space:nowrap}.folder-tools .button span{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#7e85806b}.folder-tools .icon{width:15px;height:15px}
.result-workspace{display:grid;grid-template-rows:minmax(280px,1.24fr) 49px minmax(200px,.95fr);gap:12px;min-height:0;flex:1}.leaf-stack{display:contents}.generated-leaf{grid-row:1;display:flex;flex-direction:column;min-height:0;filter:drop-shadow(0 3px 2px #55432720)}.generated-leaf:before{inset:3px -2px -3px 2px;background:#dbcbb0;border-color:#ae9b7b;border-radius:6px}.png-preview{background:#f3e9d4;min-height:0;max-height:none;flex:1;overflow:auto;border:1px solid #b9a588;border-radius:5px 8px 4px 10px;box-shadow:inset 0 0 0 3px #fff3d847}.png-preview .report-card{min-height:100%;border:0}.page-controls{flex:0 0 auto;padding:3px 0;font-size:11px}.page-controls .button{font-size:11px;padding:2px 6px;min-height:24px}.small-note{font-size:9px;color:#76694f}
.result-copy{grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}.result-copy .button{font:600 13px 'Segoe UI',sans-serif;gap:11px;border:1px solid #a48f70;border-radius:5px;background-color:#eee2cb;background-image:var(--paper);box-shadow:inset 0 0 0 3px #fff4dc3d,0 2px 3px #65512c24;color:#233d4e;min-height:49px;padding:8px 10px}.result-copy .icon{width:23px;height:23px}.result-copy .button:hover{background-color:#f7eedb;border-color:#77817a}.result-copy .button.is-success{background:#dce5cf;color:#3f6244;border-color:#8a9c7a}
.report-card{padding:23px 24px 19px;background-color:#f4ead5;background-image:var(--paper),radial-gradient(ellipse at 35% 20%,#fffaf363,transparent 74%);border-color:#b5a185;border-radius:4px;box-shadow:inset 0 0 24px #a1865320;font-family:Georgia,'Times New Roman',serif;color:#2a3331}.card-letterhead{align-items:center;gap:15px}.card-emblem{width:58px;height:62px;object-fit:contain;opacity:.83;mix-blend-mode:multiply}.card-letterhead>div{gap:5px}.card-letterhead strong{font:600 18px Georgia,serif;letter-spacing:.5px;color:#263b44}.card-letterhead>div>span{font:11px Georgia,serif;color:#77705e}.card-number{font:11px/1.5 Georgia,serif;color:#756b5c}.card-rule{border-top:1px solid #aa9b80;margin:9px 0 17px}.report-card h2{font:700 26px/1.16 Georgia,serif;letter-spacing:0;margin:0 0 6px;color:#273941}.card-subtitle{font:15px Georgia,serif;color:#343e3b;margin:0 0 21px}.card-data{font:12px/1.5 Georgia,serif;margin:0 0 16px}.card-data>div{grid-template-columns:85px minmax(0,1fr);gap:5px;margin-bottom:3px}.card-data dt{color:#695f50}.card-data dd{color:#303c3b}.card-table{font:12px/1.25 Georgia,serif}.card-table th,.card-table td{padding:7px 6px;border-color:#b3a58b}.card-table th{font:11px Georgia,serif;background:#cbbda447;color:#514e43}.card-table td:first-child{font-size:11px;width:27px;text-align:center;color:#5c6053}.card-table .positive,.card-table .negative{position:relative;isolation:isolate;text-align:center;white-space:nowrap}.card-table .positive:before,.card-table .negative:before{position:absolute;z-index:-1;content:'';inset:3px 4px;background:#bdcbb0b0;border-radius:8px}.card-table .negative:before{background:#dab09faa}.card-table .positive{color:#3a5342}.card-table .negative{color:#774838}.card-metrics{margin:20px 0 0}.card-metrics>div{border-color:#baab8f;gap:7px;padding:0 16px}.card-metrics span{font:12px Georgia,serif;color:#6a6353}.card-metrics b{font:600 25px Georgia,serif;color:#375346}.card-metrics>div:nth-child(3) b{color:#8b5144}.card-footer{margin:20px 0 0;border-color:#ad9d81;padding:12px 0 0;font:10px/1.5 Georgia,serif;color:#81735b}.card-notes{font:12px/1.5 Georgia,serif}.card-empty{font-size:12px;color:#8d8068}.png-stage .report-card{padding:30px 35px 26px}.png-stage .card-emblem{width:68px;height:73px}.png-stage .card-letterhead strong{font:600 22px Georgia,serif}.png-stage .card-letterhead>div>span{font:13px Georgia,serif}.png-stage .card-number{font:13px Georgia,serif}.png-stage .card-rule{margin:13px 0 23px}.png-stage .report-card h2{font-size:31px}.png-stage .card-subtitle{font:17px Georgia,serif;margin-bottom:25px}.png-stage .card-data{font:15px/1.5 Georgia,serif}.png-stage .card-table{font:15px Georgia,serif}.png-stage .card-table th{font:13px Georgia,serif}.png-stage .card-table td{padding:10px 8px}.png-stage .card-metrics span{font:14px Georgia,serif}.png-stage .card-metrics b{font:600 30px Georgia,serif}.png-stage .card-footer{font:12px/1.5 Georgia,serif}
.discord-clipping{grid-row:3;display:flex;flex-direction:column;min-height:0;border:1px solid #3b3d3e;border-radius:5px;background:#2c3035;box-shadow:0 3px 4px #44371f25}.discord-channel{padding:9px 13px;font:600 13px 'Segoe UI',sans-serif;color:#d2d0c9;background:#262b30;border-color:#484a49;flex:0 0 auto;gap:10px}.discord-channel>span{font-size:22px;color:#b0b4b2}.discord-channel>small{font:11px 'Segoe UI',sans-serif;color:#a0a5a6}.discord-message{flex:1;max-height:none;min-height:0;padding:13px 14px;gap:12px;overflow:auto}.bot-avatar{width:38px;height:38px;background:#9b896833;border:2px solid #a08d65;box-shadow:inset 0 0 0 2px #293238;border-radius:50%;padding:4px}.bot-avatar img{width:100%;height:100%;object-fit:contain;filter:invert(.83) sepia(.7);opacity:.9}.discord-author{font:600 13px 'Segoe UI',sans-serif;color:#e1dfd6;margin-bottom:7px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bot-badge{font:500 9px 'Segoe UI',sans-serif;color:#fff;background:#5865ed;padding:2px 4px;border-radius:3px}.discord-author>span{font:10px 'Segoe UI',sans-serif;color:#969da2;margin-left:0}.discord-text{font:12px/1.4 'Segoe UI',sans-serif;color:#d8d9d9}.discord-line{min-height:5px}.discord-list-heading{border:0;padding-top:0;margin-top:4px}.discord-participant{margin-bottom:2px}.mention{font-weight:400;color:#c2ccf5;background:#5865ed32}.result-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:15px}.desk-readiness{gap:5px;color:#957344}.desk-readiness .icon{width:12px;height:12px}.desk-readiness strong{font-size:9px;font-weight:400}.desk-readiness small{display:none}.desk-readiness.ready{color:#5c7351}.result-summary{padding:0}.message-length{font-size:9px;color:#83755c}.message-length>span:last-child{display:none}.message-length .icon{display:none}.notifications{bottom:22px;right:25px}.toast{font-size:12px;background:#e8ebd6;border-color:#adb598;box-shadow:0 3px 9px #48432c26}
.register-document{background-color:#f4ecdb;background-image:var(--paper);border-color:#af9b7b;box-shadow:0 5px 10px #4e402b32}.register-desk .page-heading h1{font-size:31px}.template-card,.journal-row{border-color:#b6a98e}.journal-row strong{font-size:13px}.journal-row span{font-size:12px}.settings-fields input{font-size:15px}.settings-fields .field>span{font-size:12px}.settings-fields .field-hint{font-size:11px}.settings-sheet .section-title h2{font-size:24px}dialog{background-color:#f2e8d5;background-image:var(--paper);border-color:#ab9674;border-radius:5px}.modal-header,.modal-footer{background:#dfd3ba55;border-color:#b8a586}
@media(min-width:1700px){.document-spread{grid-template-columns:minmax(0,1.58fr) minmax(580px,1fr)}.folio-title h1{font-size:42px}.folio-masthead{padding-top:36px;padding-bottom:27px}.folio-section-body{padding-top:27px;padding-bottom:25px}.folio-section-heading{margin-bottom:22px}.folio-section-heading h2{font-size:28px}.entry-register tbody tr{height:48px}.line-field input{height:41px;min-height:41px}.report-card{padding:24px 27px 21px}.report-card h2{font-size:28px}.card-table th,.card-table td{padding:8px 6px}.card-table{font-size:13px}.card-metrics{margin-top:22px}.card-footer{margin-top:22px}.discord-text{font-size:14px;line-height:1.4}.discord-author{font-size:14px}.discord-message{padding:14px 16px}.output-index h2{font-size:23px}.folder-tools .button{font-size:11px}}
@media(max-width:1550px) and (min-width:1101px){:root{--rail:112px;--header:74px}.service-header{padding-left:calc(var(--rail) + 27px);grid-template-columns:255px minmax(240px,1fr) auto;gap:18px}.service-brand{font-size:25px}.service-title{font-size:16px}.service-register{gap:12px;font-size:10px}.service-register>span,.service-register button{font-size:10px;padding-left:12px}.header-engraving{width:160px;opacity:.19}.rail-monogram{height:143px}.rail-link{padding:18px 16px;min-height:113px}.rail-caption{font-size:11px}.rail-status{padding-inline:17px;font-size:10px}#main-content.desk-content{padding:19px 16px 22px}.document-spread{grid-template-columns:minmax(0,1.55fr) minmax(450px,1fr);gap:19px}.folder-bar{padding-inline:25px}.folder-tab{min-width:150px;padding:12px 13px;font-size:12px;gap:9px}.folder-tab>span{font-size:10px}.folder-tab.active{padding-top:16px}.working-folio{padding-right:22px}.folio-section{grid-template-columns:43px minmax(0,1fr)}.folio-gutter{margin-left:10px}.folio-masthead,.folio-footer{margin-left:43px}.folio-masthead{padding-top:27px;padding-bottom:23px}.folio-title h1{font-size:32px}.folio-title{padding-top:17px}.folio-instruction{font-size:10px}.folio-section-body{padding:22px 0 22px 19px}.folio-section-heading h2{font-size:23px}.section-actions{gap:12px}.text-button{font-size:10px;gap:5px}.text-button .icon{width:16px;height:16px}.line-field>span{font-size:10px}.document-lines{grid-template-columns:.95fr 1.4fr .8fr;gap:13px}.line-field input{font-size:13px;padding:6px 9px}.entry-register .entry-static{width:83px}.entry-register .entry-result{width:137px}.entry-register .entry-number{width:32px}.entry-register .entry-delete{width:29px}.entry-register .entry-grade{width:90px}.entry-register input{font-size:12px}.entry-register thead th{font-size:10px;padding:8px 5px}.entry-register td{padding:5px}.entry-register .result-select{font-size:11px;padding:4px 6px}.exam-register .exam-details{flex-direction:column;gap:0}.folio-footer{padding-left:19px}.folio-footer>.button{font-size:11px;padding:9px 12px}.folio-footer>.button:after{margin-left:4px}.output-leaves{padding-inline:10px;min-height:650px}.output-index{flex-wrap:wrap;gap:5px}.output-index h2{font-size:19px}.folder-tools{gap:10px}.folder-tools .button{font-size:9px;gap:3px}.folder-tools .icon{width:12px;height:12px}.result-workspace{grid-template-rows:minmax(270px,1.15fr) 45px minmax(180px,.9fr);gap:10px}.result-copy .button{min-height:45px;font-size:12px}.report-card{padding:18px 19px}.card-emblem{width:46px;height:52px}.card-letterhead strong{font-size:15px}.card-letterhead>div>span,.card-number{font-size:10px}.report-card h2{font-size:22px}.card-rule{margin:7px 0 13px}.card-subtitle{font-size:13px;margin-bottom:17px}.card-data{font-size:10px;margin-bottom:13px}.card-data>div{grid-template-columns:68px minmax(0,1fr)}.card-table{font-size:11px}.card-table th{font-size:10px}.card-table td{padding:6px 4px}.card-metrics{margin-top:16px}.card-metrics span{font-size:11px}.card-metrics b{font-size:23px}.card-footer{font-size:9px;margin-top:17px}.discord-text{font-size:11px}.discord-message{padding:10px;gap:9px}.bot-avatar{width:29px;height:29px}.discord-author{font-size:12px}.discord-channel{font-size:12px}.folio-registration>span:first-child{padding-left:14px}.paperclip{left:12px;width:18px;height:65px}}
@media(max-width:1100px){:root{--rail:82px;--header:72px}.service-header{height:var(--header);padding-left:calc(var(--rail) + 20px);padding-right:18px;grid-template-columns:auto 1fr auto;gap:18px}.service-brand{font-size:21px}.service-title{font-size:14px;min-width:0;white-space:normal;margin-block:14px}.service-title>span{display:block;font-size:9px}.service-register time,.service-register>span{display:none}.service-register button{padding:0;border:0}.service-register button span{display:none}.header-engraving{width:135px;height:55px;opacity:.15}.rail-monogram{height:136px;font-size:22px}.rail-monogram img{width:48px;height:54px}.rail-monogram span{font-size:9px}.rail-link{padding:16px 0;align-items:center;min-height:101px;gap:8px}.rail-caption{font-size:9px}.rail-link .icon{width:23px;height:23px}.rail-engraving{width:260px;height:150px}.rail-status{padding:0 10px 18px;font-size:10px}.storage-indicator{font-size:8px}#main-content.desk-content{margin-left:var(--rail);padding:24px 20px 110px}.document-spread{display:block;max-width:820px;margin:auto}.case-file{padding-inline:6px;margin-bottom:26px}.working-folio{min-height:0;padding-right:27px}.folder-bar{padding-left:30px}.folder-tabs{width:auto;order:initial}.folder-tab{min-width:155px;font-size:13px;padding-inline:13px}.folder-tab>span{font-size:10px}.folio-title h1{font-size:32px}.folio-section-heading h2{font-size:23px}.section-actions{gap:10px}.text-button{font-size:11px}.document-lines{grid-template-columns:1fr 1.4fr .7fr;gap:13px}.line-field>span{font-size:10px}.line-field input{font-size:13px}.entry-register .entry-static{width:84px}.entry-register .entry-result{width:140px}.entry-register .entry-number{width:31px}.entry-register .entry-delete{width:28px}.entry-register .entry-grade{width:100px}.entry-register input{font-size:12px}.entry-register .result-select{font-size:11px}.entry-register thead th{font-size:10px}.folio-footer>.button{font-size:11px;padding:9px 12px}.output-leaves{height:auto;min-height:0;position:static;padding:0 14px 12px;gap:12px}.output-index{min-height:49px;flex-wrap:wrap}.output-index h2{font-size:22px}.folder-tools{width:auto;order:initial;margin-left:auto;gap:13px}.folder-tools .button{font-size:10px}.result-workspace{display:flex;flex-direction:column;gap:13px}.generated-leaf{order:1;display:block}.png-preview{max-height:680px;overflow:auto}.discord-clipping{order:2;min-height:230px;max-height:430px}.discord-message{max-height:360px}.result-copy{position:fixed;z-index:30;left:var(--rail);right:0;bottom:0;padding:12px 20px;background:#d9ccb3;background-image:var(--paper);border-top:1px solid #a58f6f;box-shadow:0 -2px 6px #69543225;gap:12px}.result-copy .button{min-height:44px}.report-card{padding:24px 27px}.report-card h2{font-size:27px}.card-table{font-size:13px}.card-letterhead strong{font-size:20px}.card-data{font-size:13px}.card-footer{font-size:11px}.discord-text{font-size:13px}.result-footer{padding-top:4px}.notifications{bottom:84px}.register-document{padding:25px}.template-card h2{font-size:21px}.journal-row strong{font-size:12px}}
@media(max-width:600px){:root{--rail:0px;--header:61px}.service-header{padding:0 12px;gap:10px;grid-template-columns:auto 1fr auto}.service-brand{font-size:17px;letter-spacing:-.4px}.service-title{font-size:10px;border:0;padding:0;line-height:1.4}.service-title>span{font-size:7px;letter-spacing:1px}.header-engraving{display:none}.service-register button .icon{width:25px;height:29px;padding:4px}.service-rail{position:sticky;top:0;z-index:25;width:100%;height:44px;overflow:visible;border-inline:0;display:block}.service-rail:after,.rail-monogram,.rail-engraving,.rail-status{display:none}.service-rail nav{height:100%;display:flex;justify-content:space-between}.rail-link{min-height:0;height:44px;flex:1;flex-direction:row;padding:0 10px;margin:0;gap:6px;border:0;justify-content:center}.rail-link .icon{width:17px;height:17px}.rail-index{font-size:9px}.rail-caption,.rail-link small{display:none}.rail-link.active:before{top:auto;left:10px;right:10px;bottom:0;border:0;border-bottom:3px solid #b06e53}#main-content.desk-content{margin:0;padding:20px 9px 94px}.case-file{padding:0 3px 5px;margin-bottom:20px}.folder-bar{padding:0 16px;display:block}.folder-tabs{gap:4px;display:flex;width:100%}.folder-tab{min-width:0;flex:1;padding:10px 8px;font-size:11px;gap:4px;border-radius:5px 5px 0 0}.folder-tab>span{font-size:7px}.folder-tab.active{padding-top:14px}.folder-backing{inset:20px 15px 8px}.working-folio{padding-right:13px;border-radius:4px}.paperclip{left:8px;top:5px;width:13px;height:48px;border-width:1px}.paperclip:after{inset:3px 2px}.folio-masthead{margin-left:29px;padding:21px 0 17px}.folio-registration{font-size:8px}.folio-registration>span:first-child{font-size:9px;padding-left:9px}.folio-title{padding:20px 0 10px}.folio-title>p{font-size:8px;letter-spacing:1.5px}.folio-title h1{font-size:24px;margin:8px 0}.folio-number{font-size:12px;letter-spacing:1px}.folio-instruction{font-size:9px;line-height:1.5;padding:0 4px}.folio-watermark{width:76px;height:82px;right:3px;top:65px}.folio-section{grid-template-columns:29px minmax(0,1fr)}.folio-gutter{margin-left:5px;padding-top:22px}.folio-gutter span{font-size:11px}.folio-section-body{padding:18px 0 17px 10px}.folio-section-heading{align-items:flex-start;gap:7px;flex-wrap:wrap;margin-bottom:13px}.folio-section-heading h2{font-size:20px}.folio-section-heading h2>.people-count{font-size:18px}.section-actions{gap:13px;flex-wrap:wrap}.folio-section-heading .button{font-size:9px;gap:4px;padding:2px 0}.folio-section-heading .icon{display:block;width:12px;height:12px}.document-lines{grid-template-columns:minmax(0,1fr) 66px;gap:12px 9px}.document-lines>.line-field:first-child{max-width:155px;grid-column:1/-1}.line-field>span{font-size:9px}.line-field input{height:34px;min-height:34px;font-size:12px;padding:5px 7px}.entry-register .entry-number{width:22px}.entry-register .entry-static{width:48px}.entry-register .entry-result{width:89px}.entry-register .entry-delete{width:19px}.entry-register th,.entry-register td{padding:4px 2px}.entry-register thead th{padding:7px 3px;font-size:8px}.entry-register tbody th{font-size:9px}.entry-register input{font-size:10px;padding:4px 1px;min-height:27px}.entry-register tbody tr{height:39px}.entry-register .result-select{font-size:9px;padding:4px 2px;border-radius:4px;min-height:27px}.entry-register .remove-person{width:16px}.entry-register .remove-person .icon{width:11px}.entry-register .row-errors{font-size:8px}.exam-register .entry-grade{width:49px}.exam-register .exam-details{flex-direction:column}.exam-register .exam-details input{font-size:9px}.entry-register.exam-register{table-layout:fixed}.exam-register .entry-result{width:65px}.exam-register .entry-static{width:40px}.entry-register .empty-register{font-size:10px;padding:12px 6px}.entry-actions .button{font-size:9px}.document-totals th{font-size:9px;padding:0 7px 4px}.document-totals td{font-size:25px;padding:2px 7px}.document-totals th:first-child,.document-totals td:first-child{padding-left:7px}.folio-footer{margin-left:29px;padding:12px 0 12px 10px;gap:10px;grid-template-columns:1fr}.folio-footer>.button{justify-self:stretch;font-size:12px;min-height:37px;padding:7px 10px}.folio-history{flex-wrap:wrap;gap:8px;font-size:8px}.folio-history .button{font-size:9px}.validation,.form-ready{font-size:9px}.folio-filing #save-status{font-size:9px}.output-leaves{padding:0 9px 10px}.output-index{gap:8px;padding-top:12px}.output-index h2{font-size:20px}.folder-tools{gap:12px;margin:0;width:100%;justify-content:space-between}.folder-tools .button{font-size:9px;gap:3px}.folder-tools .icon{width:12px;height:12px}.report-card{padding:17px 14px}.card-emblem{width:40px;height:47px}.card-letterhead{gap:9px}.card-letterhead strong{font-size:14px}.card-letterhead>div>span,.card-number{font-size:9px}.card-rule{margin:8px 0 13px}.report-card h2{font-size:21px}.card-subtitle{font-size:13px;margin-bottom:17px}.card-data{font-size:10px;margin-bottom:13px}.card-data>div{grid-template-columns:65px minmax(0,1fr)}.card-table{font-size:10px}.card-table th{font-size:9px}.card-table th,.card-table td{padding:6px 3px}.card-table td:first-child{font-size:9px;width:20px}.card-table .positive,.card-table .negative{white-space:normal}.card-metrics{margin-top:16px}.card-metrics span{font-size:10px}.card-metrics b{font-size:23px}.card-metrics>div{padding-inline:9px}.card-footer{font-size:8px;margin-top:17px}.discord-channel{font-size:11px}.discord-author{font-size:12px;gap:6px}.discord-author>span{font-size:9px}.discord-text{font-size:11px}.discord-message{gap:8px;padding:11px 9px}.bot-avatar{width:27px;height:27px;padding:3px}.result-copy{left:0;right:0;gap:8px;padding:9px 10px}.result-copy .button{font-size:11px;gap:7px;min-height:41px}.result-copy .icon{width:18px;height:18px}.result-footer{gap:7px;flex-wrap:wrap}.desk-readiness strong,.message-length{font-size:8px}.notifications{bottom:76px;right:12px}.register-document{padding:18px 13px}.register-desk .page-heading h1{font-size:26px}.settings-sheet .section-title h2{font-size:20px}.settings-fields input{font-size:12px}.settings-fields .field>span{font-size:10px}.settings-fields .field-hint{font-size:10px}.journal-row strong{font-size:10px}.journal-row span{font-size:10px}.template-card h2{font-size:19px}.inline-record{font-size:10px}.inline-record select{font-size:12px}.practice-record legend{font-size:10px}.practice-record .skill{font-size:11px}.notes-line textarea{font-size:12px}}
@media(max-width:360px){.service-brand{font-size:14px}.service-title{font-size:9px}.folder-tab{font-size:10px;padding-inline:7px}.folder-tab>span{display:none}.folio-title h1{font-size:20px}.folio-section-heading h2{font-size:18px}.entry-register .entry-static{width:40px}.entry-register .entry-result{width:75px}.entry-register .entry-number{width:18px}.entry-register .entry-delete{width:16px}.entry-register .result-select{font-size:8px}.entry-register input{font-size:9px}.exam-register .entry-result{width:52px}.exam-register .entry-grade{width:40px}.exam-register .entry-static{width:34px}.card-table{font-size:9px}.card-metrics span{font-size:9px}.card-letterhead>div>span{font-size:8px}.card-number{font-size:8px}.card-emblem{width:32px;height:40px}.card-letterhead strong{font-size:12px}.result-copy .button{font-size:10px}}
/* Keep the complete three-row document visible at the reference desktop size. */
@media(min-width:1101px){
  .folio-masthead{padding-top:24px;padding-bottom:20px}
  .folio-title{padding-top:12px;padding-bottom:8px}
  .folio-section-body{padding-top:18px;padding-bottom:18px}
  .folio-section-heading{margin-bottom:14px}
  .folio-footer{padding-top:13px;padding-bottom:10px;row-gap:8px}
  .result-workspace{grid-template-rows:minmax(280px,1.45fr) 49px minmax(200px,1fr)}
  .png-preview .report-card{padding:18px 24px 16px}
  .png-preview .card-emblem{height:54px;width:51px}
  .png-preview .card-rule{margin:8px 0 12px}
  .png-preview .card-subtitle{margin-bottom:15px}
  .png-preview .card-data{margin-bottom:12px}
  .png-preview .card-table th,.png-preview .card-table td{padding-block:6px}
  .png-preview .card-metrics{margin-top:15px}
  .png-preview .card-footer{margin-top:15px;padding-top:10px}
}
@media(min-width:1101px) and (max-width:1550px){
  .result-workspace{grid-template-rows:minmax(270px,1.6fr) 45px minmax(180px,1fr)}
  .png-preview .report-card{padding:15px 18px}
  .png-preview .card-emblem{height:45px;width:42px}
  .png-preview .card-subtitle{margin-bottom:12px}
  .png-preview .card-metrics{margin-top:12px}
  .png-preview .card-footer{margin-top:12px}
}
@media(min-width:1551px) and (max-width:1699px){
  .folio-section-body{padding-top:14px;padding-bottom:14px}
  .folio-footer{padding-top:10px;padding-bottom:8px;row-gap:5px}
  .png-preview .report-card{padding-top:14px;padding-bottom:12px}
  .png-preview .card-emblem{height:48px;width:46px}
  .png-preview .card-table th,.png-preview .card-table td{padding-block:5px}
  .png-preview .card-metrics{margin-top:12px}
  .png-preview .card-metrics>div{gap:5px}
  .png-preview .card-footer{font-size:9px;margin-top:12px}
}
/* Paper edges may extend beyond their sheet; keep decorative pixels off the mobile scrollbar. */
body{overflow-x:clip}
@media(min-width:601px) and (max-height:850px){
  .rail-monogram{height:120px;padding-top:10px;padding-bottom:10px;flex-shrink:0}
  .rail-monogram img{height:49px;width:49px}
  .rail-link{min-height:90px;padding-top:12px;padding-bottom:12px;gap:7px}
  .rail-engraving{max-height:100px;min-height:0;flex-shrink:1;margin-bottom:8px}
  .rail-status{flex-shrink:0;padding-bottom:12px}
  .rail-status small{padding-top:5px}
}
