:root{--red:#d71920;--red-dark:#b20f17;--red-soft:#fff1f1;--black:#15171b;--gray:#656b76;--line:#e8e9ed;--bg:#f5f5f6;--white:#fff;--green:#148454;--greenbg:#e9f6ee;--orange:#bd6a13;--orangebg:#fff4e1;--shadow:0 7px 24px rgba(20,20,20,.045)}
*{box-sizing:border-box}html,body{margin:0;padding:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:var(--black);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--red)}.shell{display:flex;min-height:100vh}.sidebar{width:277px;flex-shrink:0;padding:28px 17px;background:#fff;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 8px 28px;border-bottom:1px solid var(--line)}.sidebar-brand img{height:46px;width:46px;object-fit:cover;border-radius:15px}.sidebar-brand strong{display:block;font-size:17px}.sidebar-brand small{display:block;color:#999;font-size:11px;margin-top:4px}.side-caption{font-size:10px;letter-spacing:1.6px;color:#999;padding:29px 12px 10px;font-weight:700}.desktop-nav{display:flex;flex-direction:column;gap:5px}.desktop-nav button{text-align:left;background:transparent;border:0;border-radius:10px;color:#555e6c;font-size:17px;padding:12px 14px;display:flex;gap:14px;align-items:center}.desktop-nav button span{font-size:13px;font-weight:600}.desktop-nav button.active{background:var(--red-soft);color:var(--red)}.desktop-nav button:hover{background:#f6f6f7}.sidebar-note{margin-top:auto;font-size:12px;line-height:1.55;background:#f6f6f7;border-radius:12px;padding:14px;color:#777}.sidebar-note b{color:#222}.main{flex:1;min-width:0;max-width:1500px;margin:0 auto}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;justify-content:space-between;gap:12px;background:#fff}.brand-mobile{display:none}.top-subtitle{font-size:13px;color:#858b94}.demo-badge{font-size:10px;color:var(--red);background:var(--red-soft);border:1px solid #ffdbdd;border-radius:100px;padding:8px 12px;font-weight:800;letter-spacing:.6px;white-space:nowrap}.screen{padding:30px 32px 70px}.page-title{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin:2px 0 22px}.page-title h1{font-size:29px;line-height:1.13;margin:0 0 6px;letter-spacing:-.8px;font-weight:750}.subtitle{margin:0;font-size:13px;line-height:1.6;color:#8b9199}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:#fff;border-radius:11px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#32363d;font-size:13px;font-weight:700;min-height:42px}.btn.primary{background:var(--red);color:#fff;border-color:var(--red)}.btn.primary:hover{background:var(--red-dark)}.btn.soft{background:var(--red-soft);border-color:#ffd7da;color:var(--red)}.btn.danger{color:var(--red)}.btn.small{font-size:12px;min-height:32px;padding:7px 10px;border-radius:8px}.btn.full{width:100%}.btn[disabled]{opacity:.48;cursor:not-allowed}.card{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.card-pad{padding:19px}.card-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:6px}.card-h h2,.card h2{margin:0;font-size:16px;letter-spacing:-.2px}.muted{color:var(--gray)}.smalltxt{font-size:12px}.fine{font-size:11px;color:#8a9098}.top-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.quick{border:1px solid #f0d0d0;background:#fff;border-radius:13px;display:flex;align-items:center;gap:13px;padding:16px;text-align:left;font-weight:750;color:var(--red)}.quick-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#fff1f1;font-size:20px}.quick.primary{background:var(--red);color:#fff;border-color:var(--red)}.quick.primary .quick-icon{background:rgba(255,255,255,.17)}.month-switch{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;padding:7px;border:1px solid var(--line);border-radius:13px;min-width:210px}.month-switch button{background:#f5f5f6;border:0;width:34px;height:34px;border-radius:9px;font-size:18px}.month-switch strong{font-size:13px;white-space:nowrap}.layout-two{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.85fr);gap:18px;align-items:start}.stack{display:grid;gap:15px}.table-wrap{overflow:auto;border-radius:12px;border:1px solid var(--line)}table{border-collapse:collapse;font-size:12px;width:100%;font-variant-numeric:tabular-nums}th{background:#f2f2f3;color:#585d66;font-size:11px;text-align:right;font-weight:700;padding:12px 10px;white-space:nowrap}td{padding:11px 10px;text-align:right;border-top:1px solid #eceef0;white-space:nowrap}tr:hover td{background:#fffafa}.num{text-align:right;font-variant-numeric:tabular-nums}.left{text-align:left}.sticky{position:sticky;left:0;background:#fff;z-index:1;box-shadow:1px 0 #e6e6e6}th.sticky{background:#f2f2f3;z-index:2}.weekend td.sticky{color:var(--red)}.tfoot td{background:#f8f8f9;font-weight:800;border-top:2px solid var(--black)}.rowlink{color:var(--red);font-weight:700;cursor:pointer}.status{border-radius:100px;padding:5px 8px;font-size:10px;font-weight:750;white-space:nowrap;display:inline-block}.status.good{background:var(--greenbg);color:var(--green)}.status.wait{background:var(--orangebg);color:var(--orange)}.status.bad{background:var(--red-soft);color:var(--red)}.table-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:12px}.table-top h2{font-size:17px;margin:0}.meter-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px}.metric label{display:block;font-size:11px;color:#737982;margin-bottom:9px}.metric strong{font-size:22px;letter-spacing:-.7px;display:block;font-variant-numeric:tabular-nums}.metric .hint{font-size:10px;color:#999;margin-top:6px}.metric.accent{border-color:#ffd9da;background:linear-gradient(135deg,#fff,#fff3f4)}.pillrow{display:flex;flex-wrap:wrap;gap:7px;margin:11px 0}.pill{display:inline-block;border-radius:50px;background:#f3f3f4;color:#656975;font-size:11px;padding:8px 10px;border:1px solid #eceef0}.pill.red{color:var(--red);background:#fff0f1;border-color:#ffdfe0}.pill.green{color:var(--green);background:var(--greenbg);border-color:#d8f0df}.line-list{margin:0}.lineitem{display:flex;justify-content:space-between;gap:9px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}.lineitem:last-child{border-bottom:0}.lineitem small{display:block;color:#9699a0;font-size:10px;margin-top:4px}.lineitem .v{font-weight:700;white-space:nowrap}.lineitem.total{font-weight:800;border-top:1px solid #ccc}.alert{border-radius:11px;background:#f5f5f7;padding:12px 14px;font-size:12px;color:#666d75;line-height:1.5}.alert.warn{background:#fff6e9;color:#a56825}.alert.green{background:var(--greenbg);color:#216c43}.alert.red{background:var(--red-soft);color:#a9303a}.sep{height:1px;background:var(--line);margin:18px 0}.field{display:flex;flex-direction:column;gap:7px;margin:0 0 14px}.field label{font-size:12px;color:#696f79;font-weight:650}.field input,.field select,.field textarea{border:1px solid #dfe1e5;border-radius:11px;padding:12px 13px;background:#fff;color:#15171b;outline:0;width:100%;font-size:15px}.field input:focus,.field select:focus{border-color:var(--red);box-shadow:0 0 0 3px #fff1f1}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.form-actions{display:flex;gap:9px;flex-wrap:wrap}.segmented{display:flex;background:#f3f3f4;border-radius:12px;padding:4px;gap:3px}.segmented button{flex:1;border:0;background:transparent;border-radius:9px;padding:11px 12px;color:#737780;font-size:12px;font-weight:750}.segmented button.active{background:#fff;color:var(--red);box-shadow:0 2px 8px rgba(0,0,0,.06)}.operation-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}.operation-tile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 16px;text-align:left;min-height:120px;display:flex;flex-direction:column;justify-content:space-between;font-size:15px;font-weight:750}.operation-tile .icon{font-size:25px;color:var(--red)}.operation-tile.red{background:var(--red);color:#fff;border-color:var(--red)}.operation-tile.red .icon{color:#fff}.notelist{display:grid;gap:7px}.notice{padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:12px;display:flex;align-items:center;gap:9px}.notice i{width:7px;height:7px;background:var(--red);border-radius:50%;flex-shrink:0}.chart-container{width:100%;overflow:hidden}.chart-container svg{width:100%;height:auto;display:block}.legend{display:flex;gap:16px;flex-wrap:wrap;color:#777;font-size:11px;margin-top:10px}.legend span::before{content:' ';display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--red);margin-right:6px}.empty{text-align:center;padding:28px 12px;color:#9599a1;font-size:12px}.bottom-nav{display:none}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,30px);background:#232429;color:#fff;border-radius:12px;padding:12px 17px;font-size:13px;opacity:0;pointer-events:none;transition:.25s;z-index:600;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}.modal-scrim{position:fixed;inset:0;background:rgba(20,20,25,.54);z-index:500;display:flex;align-items:center;justify-content:center;padding:16px}.modal{background:#fff;border-radius:20px;width:min(100%,470px);max-height:90vh;overflow:auto;box-shadow:0 20px 70px rgba(0,0,0,.25)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 14px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:19px}.modal-head button{background:#f3f3f4;border:0;border-radius:10px;width:34px;height:34px;font-size:22px}.modal-body{padding:18px 20px 22px}.chip{font-size:10px;border:1px solid #dedee2;border-radius:100px;padding:5px 8px;color:#8b8f96}.barchart{display:flex;align-items:end;gap:4px;height:80px;margin-top:15px}.barchart span{background:#e83d44;border-radius:4px 4px 0 0;flex:1;min-height:1px}.page-footer{padding:15px 0;font-size:11px;color:#9699a1;line-height:1.5}.stat-list{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#666}.divider-strong{border-top:1px solid var(--line);margin:13px 0}.earnings{font-size:31px;letter-spacing:-1px;font-weight:800;color:var(--red)}.month-summary{display:grid;gap:8px}.summary-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;padding:8px 0;border-bottom:1px solid var(--line)}.summary-row strong{font-variant-numeric:tabular-nums}.more-list{display:grid;gap:10px}.more-list button{width:100%;text-align:left;min-height:54px;border-radius:13px;border:1px solid var(--line);background:#fff;font-weight:700;padding:15px}.badge{border-radius:7px;background:#fff0f0;color:var(--red);font-size:11px;padding:4px 6px}.revenue-currency{white-space:nowrap}.hint-box{background:#f8f8fa;border-left:3px solid var(--red);padding:13px;border-radius:0 10px 10px 0;font-size:12px;color:#666;line-height:1.5}
@media(min-width:1250px){.layout-two{grid-template-columns:minmax(0,1.7fr) minmax(310px,.82fr)}}
@media(max-width:1050px){.sidebar{width:236px}.screen{padding:24px 18px 60px}.topbar{padding:0 20px}.layout-two{grid-template-columns:1fr}.sidebar-brand strong{font-size:14px}}
@media(max-width:700px){body{background:#f5f5f6}.shell{display:block}.sidebar{display:none}.topbar{height:61px;position:sticky;top:0;z-index:40;padding:0 15px}.top-subtitle{display:none}.brand-mobile{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:780}.brand-mobile img{width:34px;height:34px;border-radius:11px;object-fit:cover}.demo-badge{font-size:9px;padding:6px 9px}.screen{padding:19px 13px calc(92px + env(safe-area-inset-bottom));max-width:600px;margin:0 auto}.page-title{margin:0 0 17px;align-items:center}.page-title h1{font-size:23px}.subtitle{font-size:11px}.page-title .btn{padding:8px;font-size:11px}.card-pad{padding:15px}.layout-two{grid-template-columns:1fr;gap:13px}.table-top{align-items:center}.table-top h2{font-size:15px}.month-switch{min-width:182px}.month-switch strong{font-size:12px}.table-wrap{margin:0 -3px}.table-wrap table{min-width:700px}.table-wrap th,.table-wrap td{padding:10px 8px}.table-wrap table .sticky{min-width:47px}.meter-grid{gap:8px}.metric{padding:13px}.metric strong{font-size:20px}.top-actions{gap:9px}.quick{padding:11px;gap:8px;font-size:13px}.quick-icon{width:32px;height:32px;font-size:17px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:8px 4px calc(8px + env(safe-area-inset-bottom));background:#fff;z-index:100;box-shadow:0 -4px 16px rgba(0,0,0,.07);border-top:1px solid #e7e7eb;justify-content:space-around}.bottom-nav button{border:0;background:none;color:#8a8e97;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:58px;font-size:10px;padding:4px 3px;font-weight:700}.bottom-nav button.active{color:var(--red)}.nav-ic{font-size:22px;height:24px;line-height:24px}.grid2,.grid3{gap:9px}.grid3{grid-template-columns:1fr 1fr}.modal-scrim{align-items:end;padding:0}.modal{width:100%;max-height:93vh;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}.actions{justify-content:flex-start}.operation-tile{min-height:105px;padding:18px 14px}.toast{bottom:calc(85px + env(safe-area-inset-bottom))}}
@media(max-width:355px){.table-top{flex-direction:column;align-items:stretch}.month-switch{align-self:stretch}.top-actions{grid-template-columns:1fr 1fr}.metric strong{font-size:18px}}


/* V1.1 — рукописный журнал: первый экран, остальные разделы без изменений. */
.paper-home{--ink:#22242a;--paper:#fffefa;--rule:rgba(68,86,104,.29);}
.paper-home .paper-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.paper-home .paper-kicker{display:block;font-size:10px;color:#96999f;letter-spacing:1.45px;font-weight:800;margin-bottom:7px}
.paper-home h1{font-weight:760;font-size:27px;letter-spacing:-.8px;margin:0;color:#18191d}
.paper-stamp{padding:7px 9px;border:1px solid #f6cccc;border-radius:8px;color:#c51722;font-size:10px;font-weight:800;white-space:nowrap;letter-spacing:.3px;transform:rotate(-2deg)}
.paper-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.paper-tools-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.paper-action{border:1px solid #e6c4c4;background:#fff;border-radius:12px;padding:11px 21px;min-height:45px;font-size:15px;font-weight:780;color:var(--red);display:inline-flex;align-items:center;justify-content:center;gap:9px}
.paper-action-main{background:var(--red);color:#fff;border-color:var(--red)}
.paper-action span{font-size:18px}
.paper-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,315px);gap:16px;align-items:start}
.paper-sheet{background:var(--paper);border:1px solid #e6e0d5;box-shadow:0 8px 27px #3f32111a,0 0 0 7px #fffd; padding:15px 15px 20px;border-radius:5px;min-width:0;overflow:hidden;position:relative}
.paper-sheet::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.3;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 28px,rgba(80,92,103,.032) 29px);}
.paper-sheet>*{position:relative}
.paper-sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;border-bottom:2px solid #42484c;padding-bottom:8px;font-size:10px;letter-spacing:.8px;color:#727476;font-weight:800}
.paper-sheet-heading .paper-month-caption{font-family:'Chalkboard SE','Segoe Print','Bradley Hand','Comic Sans MS',cursive;font-size:21px;color:#313131;font-weight:700;letter-spacing:0}
.paper-mobile-help{display:none;font-size:10px;color:#6b6d6d;padding:10px 0 6px;line-height:1.55}
.paper-ledger-scroll{overflow-x:auto;max-width:100%;background:#fffef9;scrollbar-color:#cdcdcd transparent;scrollbar-width:thin;overscroll-behavior-x:contain}
.paper-ledger{width:100%;min-width:850px;border-collapse:collapse;table-layout:fixed;font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums;border:1px solid #75818a}
.paper-ledger th,.paper-ledger td{border:1px solid var(--rule);padding:5px 6px;text-align:center;line-height:1.25;white-space:nowrap;background:transparent}
.paper-ledger thead th{height:43px;white-space:normal;font:700 11px/1.15 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:#292d32;background:#f6f5f1}
.paper-ledger thead th small{display:block;font-size:9px;font-weight:500;color:#888;margin-top:4px}
.paper-ledger th.paper-date{position:sticky;left:0;z-index:2;width:59px;min-width:59px;background:#fffefa;box-shadow:1px 0 1px #d3d3d3}
.paper-ledger thead th.paper-date{z-index:3;background:#f4f3ed}
.paper-ledger td.paper-pay,.paper-ledger th.paper-pay{min-width:87px;width:87px}
.paper-ledger td.paper-revenue,.paper-ledger td.paper-cumul{min-width:117px;text-align:right;font-weight:650}
.paper-ledger td.paper-cumul{background:rgba(210,215,218,.09);color:#555b62}
.paper-ledger tbody td{font-family:'Chalkboard SE','Segoe Print','Comic Sans MS',ui-rounded,sans-serif;font-size:16px;font-weight:700;font-style:normal;letter-spacing:0;color:#30343a}
.paper-ledger tbody tr{cursor:pointer}
.paper-ledger tbody tr:hover td,.paper-ledger tbody tr:hover th{background:#fff1eb}
.paper-ledger tbody tr.paper-today td,.paper-ledger tbody tr.paper-today th{outline:1px solid #eda9a9;outline-offset:-1px}
.paper-ledger tbody tr.paper-error td{background:#fff2f1}
.paper-ledger tbody th.paper-date{font-family:'Chalkboard SE','Segoe Print','Comic Sans MS',ui-rounded,sans-serif;font-size:16px;font-weight:700;font-style:normal;letter-spacing:0}
.paper-ledger .paper-date small{display:block;font:600 9px/1.1 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:#929294;letter-spacing:0}
.paper-ledger .weekend .date-number{color:#cd1c2a}
.paper-ledger .ink{display:inline-block;transform:none}
.paper-ledger .paper-dash{color:#b3b0b0}
.paper-ledger .paper-pay em{display:block;font:500 8px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;letter-spacing:0;color:#858585}
.paper-ledger tfoot th,.paper-ledger tfoot td{border-top:2px solid #242629;background:#f4f3ef;font-size:13px;font-weight:800}
.paper-ledger tfoot th.paper-date{background:#f4f3ef;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;font-size:11px}
.paper-legend{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:10px 0 13px;color:#717272;font-size:10px}
.paper-legend span{display:flex;align-items:center;gap:5px}
.paper-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ccc}
.paper-legend i.paper-dot-green{background:#1c9568}.paper-legend i.paper-dot-yellow{background:#dca22f}.paper-legend i.paper-dot-red{background:#dc4444}
.paper-bottom{padding:12px 2px 4px;border-top:1px solid #989d9d}
.paper-bottom-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-weight:750;font-size:15px}
.paper-edit{border:0;background:none;color:#c01c24;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.paper-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.paper-bottom-col+.paper-bottom-col{border-left:1px solid #999;padding-left:17px}
.paper-field{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid #939ba4b0;margin-bottom:5px;padding:5px 3px 3px;min-height:29px}
.paper-field>span{font:600 13px/1.18 'Chalkboard SE','Segoe Print','Bradley Hand','Comic Sans MS',cursive;color:#343838}
.paper-field>b{font:700 15px/1.1 'Chalkboard SE','Segoe Print','Bradley Hand','Comic Sans MS',cursive;color:#292d30;white-space:nowrap;text-align:right}
.paper-field small{font-size:9px;color:#666}
.paper-withdrawals{margin-top:10px;padding:9px 4px;border-top:1px dashed #989da1;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}
.paper-withdrawals b{font:700 17px 'Chalkboard SE','Segoe Print','Bradley Hand','Comic Sans MS',cursive;white-space:nowrap}
.paper-withdrawals small{color:#777;display:block}
.paper-note{margin-top:13px;font-size:10px;color:#858585;line-height:1.6;border-top:1px solid #eeecea;padding-top:11px}
.paper-aside{display:grid;gap:15px}
.paper-aside .lineitem{align-items:center}
.paper-aside .lineitem b{white-space:nowrap}
@media(max-width:1150px){.paper-layout{grid-template-columns:1fr}.paper-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.paper-sheet{padding:13px}}
@media(max-width:700px){
 .paper-home h1{font-size:22px;line-height:1.15}
 .paper-home .paper-kicker{font-size:9px;margin-bottom:6px}
 .paper-stamp{display:none}
 .paper-tools{flex-direction:column-reverse;align-items:stretch;margin-bottom:11px;gap:9px}
 .paper-tools .month-switch{width:100%;border-radius:12px}
 .paper-tools-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}
 .paper-action{min-height:45px;padding:8px 10px}
 .paper-sheet{margin:0 -8px;padding:10px 8px 15px;box-shadow:0 4px 20px #3f32110f}
 .paper-sheet-heading{font-size:9px}
 .paper-sheet-heading .paper-month-caption{font-size:18px}
 .paper-mobile-help{display:block}
 .paper-ledger{min-width:838px}
 .paper-ledger th,.paper-ledger td{padding:6px 5px}
 .paper-ledger tbody td{font-size:16px}
 .paper-bottom-grid{gap:9px}
 .paper-bottom-col+.paper-bottom-col{padding-left:9px}
 .paper-field{flex-wrap:wrap;gap:3px}
 .paper-field>span{font-size:12px}
 .paper-field>b{font-size:14px}
 .paper-bottom-title{font-size:14px}
 .paper-edit{font-size:10px}
 .paper-aside{grid-template-columns:1fr;margin-top:5px}
}

.paper-ledger tbody tr.paper-status-good th.paper-date::after,.paper-ledger tbody tr.paper-status-wait th.paper-date::after,.paper-ledger tbody tr.paper-status-bad th.paper-date::after{content:'';position:absolute;left:5px;top:7px;width:5px;height:5px;border-radius:50%;background:#1c9568}.paper-ledger tbody tr.paper-status-wait th.paper-date::after{background:#dca22f}.paper-ledger tbody tr.paper-status-bad th.paper-date::after{background:#dc4444}
.paper-ledger .paper-date{position:relative}.paper-ledger tbody tr.paper-status-empty th.paper-date::after{display:none}
@media(min-width:701px){.paper-mobile-help{display:block;padding:8px 0 5px;font-size:11px}}

.cloud-top{color:#b51a23;border:1px solid #f4ced1;border-radius:12px;padding:6px 8px;font-size:11px;font-weight:700;white-space:nowrap;background:#fff7f7;cursor:pointer}
.cloud-top.cloud-ok{color:#27774d;border-color:#c4e9d0;background:#f4fdf5}
.cloud-top.cloud-bad{color:#b51a23;background:#fff0f0}
.cloud-lock{position:fixed;inset:0;z-index:2000;background:rgba(245,245,246,.97);display:grid;place-items:center;padding:18px;overflow:auto}
.cloud-dialog{width:min(100%,440px);background:white;border-radius:19px;box-shadow:0 15px 55px #20232a33;border:1px solid #ddd;padding:22px 23px 26px}
.cloud-dialog h2{margin:0 0 8px;font-size:21px}.cloud-dialog p{font-size:13px;color:#686b72;line-height:1.5}
.cloud-dialog .cloud-logo{display:flex;align-items:center;gap:11px;margin-bottom:12px}.cloud-dialog .cloud-logo img{width:45px;height:45px;border-radius:50%}
.cloud-dialog .field{margin-bottom:12px}.cloud-dialog .field input{font-size:14px}.cloud-actions{display:flex;gap:8px;flex-wrap:wrap}
.cloud-dialog .err{border-radius:10px;background:#fff0f0;color:#9d1c26;padding:9px;font-size:12px;margin:10px 0}
.cloud-dialog .success{border-radius:10px;background:#eef9f1;color:#175533;padding:9px;font-size:12px;margin:10px 0}
.ledger-expand{display:block;margin-bottom:8px;border-color:#edc9c9;color:#b51a23;background:#fff7f7}
body.ledger-fullscreen{overflow:hidden}
body.ledger-fullscreen .paper-ledger-scroll{position:fixed;inset:66px 0 0;z-index:1800;max-width:none;max-height:none;overflow:auto;background:#fffefa;padding:12px 5px 35px;border:0;border-radius:0}
body.ledger-fullscreen .paper-ledger{min-width:950px}
body.ledger-fullscreen .paper-ledger thead th{position:sticky;top:0;z-index:1802}
body.ledger-fullscreen .paper-ledger thead th.paper-date{z-index:1804}
body.ledger-fullscreen .paper-ledger tbody th.paper-date{z-index:1803}
body.ledger-fullscreen .ledger-expand{position:fixed;z-index:1806;top:8px;left:9px;background:white;box-shadow:0 0 5px #ddd}
@media(max-width:740px){.cloud-top{font-size:10px;padding:5px}.topbar{gap:4px}}
/* V1.2.4: keep fixed mobile navigation and header inside the viewport. */
@media(max-width:700px){
  .topbar{min-width:0;gap:8px;overflow:hidden}
  .brand-mobile{min-width:0;flex:1 1 auto}
  .brand-mobile span{min-width:0}
  .cloud-top{flex:0 0 auto;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .demo-badge{display:none!important}
}
/* RC3.5.5 TEST bundle: distinguish non-production data at every screen size. */
.pk-test-warning { position: relative; z-index: 2000; padding: 9px 12px; background: #6c1d1d; color: #fff; text-align: center; font: 700 13px/1.35 system-ui, sans-serif; letter-spacing: .025em; }
