:root{--green:#163e35;--accent:#ead49c;--bg:#f5f4ee;--paper:#fff;--line:#e2e5dc;--muted:#6a756e;--red:#a63c30;--soft:#eef2e9;--shadow:0 6px 28px #163e3508}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#1c3029;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:15px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #be9e45;outline-offset:4px}button.primary,.primary{background:var(--green);color:white;border-radius:9px;padding:13px 20px;font-weight:650}button.secondary{background:var(--soft);color:var(--green);border:1px solid var(--line);padding:12px 17px;border-radius:9px}button:hover{filter:brightness(.96)}button:disabled{opacity:.55;cursor:wait}.layout{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:var(--green);color:white;padding:34px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:29px;letter-spacing:-1px;font-weight:750;padding:0 14px}.brand span{color:var(--accent)}.brand-sub{font-size:11px;letter-spacing:3px;margin:9px 14px 44px;color:#c7d4cb}.nav{display:grid;gap:8px}.nav button{text-align:left;padding:15px;border-radius:9px;color:#d6e1db;background:transparent;display:flex;gap:12px;align-items:center}.nav button.active{background:#31564b;color:var(--accent)}.nav .symbol{font-size:20px;width:24px}.sidebar-bottom{margin-top:auto;padding:26px 12px 0;font-size:12px;color:#c8d8ce;line-height:1.8}.user{display:flex;align-items:center;gap:10px;margin-bottom:14px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:var(--green);font-weight:bold}.logout{color:#c8d8ce;background:transparent;text-decoration:underline;padding:0}.main{max-width:1600px;width:100%;padding:30px 48px 70px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:36px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--muted);text-transform:uppercase}.topbar input{width:auto;background:transparent}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6a9972;margin-right:7px}h1{font-size:34px;letter-spacing:-1.2px;font-weight:650;margin:9px 0 10px}h2{font-size:20px;letter-spacing:-.4px;margin:0}h3{font-size:15px;margin:0}.muted{color:var(--muted);line-height:1.65}.pagehead{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:30px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}.card,.panel{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.card{padding:25px}.card.featured{background:var(--green);color:white;border-color:var(--green)}.card.featured .muted{color:#d1ded7}.value{font-size:30px;letter-spacing:-1px;margin:16px 0 9px;font-weight:650;white-space:nowrap}.value small{font-size:16px;letter-spacing:0}.panel{padding:25px;margin-bottom:22px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.two-col{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.badge{display:inline-block;font-size:12px;font-weight:600;line-height:1.3;border-radius:5px;padding:6px 9px;white-space:nowrap;background:#f1f1ec;color:#687267}.badge.paid{background:#edf4e8;color:#37603a}.badge.late{background:#fae9e3;color:var(--red)}.badge.pending{background:#faf1d7;color:#826523}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);font-weight:600;padding:13px 12px;border-bottom:1px solid var(--line)}td{padding:18px 12px;border-bottom:1px solid #edf0e9;font-size:14px}tr:last-child td{border-bottom:0}td:first-child,th:first-child{padding-left:0}.money{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.small{font-size:12px}.row-button{background:var(--soft);color:var(--green);border-radius:7px;padding:9px 12px;min-height:40px}.empty{padding:38px 16px;text-align:center;color:var(--muted);line-height:1.8}.notice{padding:15px 18px;border-radius:9px;background:#fff3d6;color:#725a20;margin-bottom:20px;line-height:1.7}.notice.good{background:#eaf1e5;color:#3b6038}.notice.danger{background:#fae9e3;color:var(--red)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}.field.full{grid-column:1/-1}input,select,textarea{border:1px solid #cdd5cc;border-radius:7px;padding:12px;background:white;color:#203c30;min-height:46px;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #a6b993;outline-offset:1px}input[readonly]{background:#f0f2ec}textarea{resize:vertical;min-height:85px}input[type=checkbox]{width:22px;min-height:22px;accent-color:var(--green)}.check{display:flex;align-items:center;gap:10px;font-weight:600;margin-bottom:20px}.actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.cash-block{margin:20px 0;border-top:1px solid var(--line);padding-top:22px}.cash-block h3{color:var(--green);margin-bottom:16px;font-size:12px;letter-spacing:1.5px;text-transform:uppercase}.cash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.calc{background:var(--soft);padding:12px 15px;border-radius:7px;display:flex;justify-content:space-between;gap:15px;font-size:13px;margin-top:10px}.calc.error{background:#fae9e3;color:var(--red)}.calc strong{white-space:nowrap}.split{display:flex;justify-content:space-between;align-items:center;gap:12px}.link-button{color:var(--green);background:transparent;text-decoration:underline;padding:8px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:var(--green);color:white;padding:10vw 7vw;display:flex;flex-direction:column;justify-content:center}.auth-art .brand{padding:0;font-size:48px}.auth-art h1{font-size:52px;line-height:1.12;max-width:460px;margin:80px 0 24px;color:#f9f5e8}.auth-art p{color:#c8d9ce;line-height:1.8;max-width:360px}.auth-form{display:flex;justify-content:center;align-items:center;padding:40px}.auth-form form{width:100%;max-width:370px}.auth-form h2{font-size:30px}.auth-form .field{margin-top:23px}.auth-form .primary{width:100%;margin-top:28px}.error-text{color:var(--red);line-height:1.6;font-size:14px}dialog{border:1px solid var(--line);border-radius:16px;width:min(560px,94vw);padding:28px;color:#20382c;max-height:90vh;box-shadow:0 25px 100px #0003}dialog::backdrop{background:#142c2680}dialog h2{margin:0 0 23px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#163e35;color:white;padding:15px 25px;border-radius:9px;box-shadow:0 5px 25px #0002;z-index:30;display:none;max-width:90vw}#toast.error{background:var(--red)}.loading{padding:80px;text-align:center}.mini-list{display:grid;gap:0}.mini-item{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 0;border-bottom:1px solid var(--line)}.mini-item:last-child{border:0}.footer-note{font-size:12px;color:var(--muted);margin-top:25px;line-height:1.7}.tabs{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.tabs button{padding:10px 15px;border-radius:8px;background:#e9ece3;color:var(--green)}.tabs button.active{background:var(--green);color:white}.saved-at{font-size:12px;color:var(--muted);margin-top:10px}.mobile-brand{display:none}@media(min-width:1500px){.main{padding-left:65px;padding-right:65px}}@media(max-width:1100px){.layout{grid-template-columns:190px 1fr}.main{padding:25px}.sidebar{padding:30px 12px}.cards{gap:10px}.card{padding:18px}.value{font-size:25px}.two-col{grid-template-columns:1fr}.cash-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.layout{display:block}.sidebar{height:auto;position:sticky;z-index:5;padding:12px 12px 9px;top:0}.brand{font-size:23px;padding-left:6px}.brand-sub,.sidebar-bottom{display:none}.nav{display:flex;gap:4px;margin-top:12px;overflow-x:auto}.nav button{font-size:12px;white-space:nowrap;padding:11px 9px}.nav .symbol{display:none}.main{padding:20px 16px 40px}.topbar{margin-bottom:24px;padding-bottom:18px}.topbar .eyebrow{font-size:9px;letter-spacing:1px}.pagehead{align-items:flex-start;flex-direction:column;gap:8px}h1{font-size:29px}.cards{grid-template-columns:1fr;margin:20px 0}.card{display:grid;grid-template-columns:1fr auto;gap:0 10px;align-items:center;padding:18px}.card .value{grid-column:2;grid-row:1/3;margin:0;font-size:25px}.card .small{font-size:11px}.panel{padding:18px}.panel-title{align-items:flex-start}.cash-grid,.form-grid{grid-template-columns:1fr 1fr}.auth{grid-template-columns:1fr}.auth-art{padding:35px 28px}.auth-art h1{font-size:30px;margin:25px 0 0}.auth-art p{display:none}.auth-art .brand{font-size:30px}.auth-form{padding:35px 25px}.cash-grid .field{font-size:12px}.topbar input{max-width:160px}td,th{padding-right:16px}.value small{font-size:13px}.actions{flex-wrap:wrap}dialog{padding:22px}.two-col{gap:0}}

.brand-lockup{display:flex;align-items:center;gap:20px}.brand-logo{width:100px;height:100px;border-radius:50%;object-fit:contain;flex-shrink:0;background:white}.brand-lockup .brand{padding:0}.sidebar .brand-lockup{flex-direction:column;align-items:flex-start;gap:14px;padding:0 14px}.sidebar .brand-logo{width:78px;height:78px}.sidebar .brand-sub{margin-bottom:30px}.auth-art h1{margin-top:55px}@media(max-width:720px){.sidebar .brand-lockup{flex-direction:row;align-items:center;gap:12px;padding:0 6px}.sidebar .brand-logo{width:42px;height:42px}.auth-art .brand-logo{width:82px;height:82px}.auth-art h1{margin-top:28px}}
.sidebar{overflow-y:auto}.nav button{padding:11px 12px}.nav{gap:4px}.main{min-width:0}.compact{margin-top:0}.month-history{display:flex;gap:12px;flex-wrap:wrap}.month-chip{border:1px solid var(--line);background:var(--bg);color:var(--green);padding:15px 20px;border-radius:9px;display:grid;gap:6px;text-align:left}.month-chip.active{background:var(--green);color:white}.month-chip span{font-size:12px}.sheet-scroll{overflow:auto;max-height:70vh;border:1px solid var(--line);border-radius:7px;margin-top:10px}.sheet{font-size:12px;table-layout:fixed;width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.sheet td,.sheet th{padding:10px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);width:122px;min-width:122px;text-align:right;font-size:12px}.sheet th:first-child{position:sticky;left:0;background:#f8f9f4;text-align:left;width:235px;min-width:235px;white-space:normal;z-index:2;text-transform:none;letter-spacing:0;font-weight:600}.sheet thead th{position:sticky;top:0;background:#e8ede2;z-index:3}.sheet thead th:first-child{z-index:4;background:#e8ede2}.sheet-section td,.sheet-section th:first-child{background:var(--green);color:white;font-weight:700}.sheet-calc td,.sheet-calc th:first-child{background:#eef4e8}.sheet-error{background:#fae1dc!important;color:#a62f25;font-weight:bold}.sheet-note{white-space:normal;vertical-align:top}.sheet .closed{background:#e5e5df}.missing-days{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.wrap{white-space:normal;min-width:140px;max-width:280px;overflow-wrap:anywhere}.document-group{margin-top:20px}.file-list{max-height:36vh;overflow:auto}.file-list .mini-item{gap:12px}.file-list strong{overflow-wrap:anywhere}.row-button{text-decoration:none;display:inline-block}.sidebar-bottom{flex-shrink:0}.notice .secondary{margin-top:5px}@media(max-width:720px){.sidebar{overflow-y:visible}.nav button{padding:10px 9px}.sheet th:first-child{width:150px;min-width:150px}.sheet td,.sheet th{width:105px;min-width:105px}.sheet-scroll{max-height:65vh}.file-list .mini-item{align-items:flex-start;flex-direction:column}.split{flex-wrap:wrap}}
.sheet .sheet-revenue td,.sheet .sheet-revenue th:first-child{background:#f3db9c;color:#163e35;font-weight:800;font-size:14px;border-top:2px solid #b38b33;border-bottom:2px solid #b38b33}.file-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.delete-button{color:#a63c30;background:#fae9e3}.document-preview{width:min(1100px,96vw);max-height:94vh;padding:20px}.preview-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.preview-header h2{margin:0;font-size:19px;overflow-wrap:anywhere}.preview-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:15px 0}.preview-controls[hidden]{display:none}.preview-controls label{display:flex;align-items:center;gap:7px}.preview-controls select{width:auto}.preview-content{max-height:70vh;overflow:auto;background:#e4e7df;margin-top:16px;padding:16px;text-align:center}.preview-content canvas{display:block;margin:auto;background:white}.preview-image{display:block;max-width:100%;height:auto;margin:auto}.preview-content p{padding:30px}.file-list{max-height:38vh}@media(max-width:720px){.preview-header{align-items:flex-start;flex-direction:column}.document-preview{padding:14px}.preview-content{padding:8px;max-height:62vh}.preview-controls{gap:6px;font-size:12px}.file-actions .row-button{font-size:12px}}

.overview-date{color:var(--muted);font-size:15px;margin:-10px 0 24px}.overview-date strong{color:var(--green)}.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:720px){.overview-cards{grid-template-columns:1fr}.overview-date{font-size:13px;line-height:1.7}}

a.primary{display:inline-block;text-decoration:none;text-align:center;max-width:100%}
/* Subtle squared notebook paper; data surfaces stay opaque for legibility. */
body{
  background-color:#faf8f0;
  background-image:
    linear-gradient(rgba(91,130,148,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(91,130,148,.10) 1px,transparent 1px);
  background-size:24px 24px;
  background-position:-1px -1px;
}
.topbar input{background:#fff}
dialog{background:#fff}
@media print{body{background:#fff}}

@font-face{font-family:BufeHand;src:url('/fonts/caveat.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
.topbar{flex-wrap:wrap}
.notebook-label{font-family:BufeHand,'Segoe Print',cursive;font-size:29px;line-height:1.2;font-weight:650;color:#245a91;letter-spacing:.2px}
.period-picker{display:flex;gap:12px;align-items:center;margin-left:auto}
.period-picker label{display:flex;align-items:center;gap:8px;font-size:12px;color:#526354}
.period-picker select{width:auto;min-width:92px;background:#fff}
.period-picker #month{min-width:140px;text-transform:none}
.recipe-notebook{display:grid;grid-template-columns:260px minmax(0,1fr);border:1px solid #b39b76;border-top:9px solid #874c45;border-radius:7px 12px 12px 7px;box-shadow:3px 5px 0 #ded0b8,6px 9px 0 #e9dfca,0 18px 40px #47392314;overflow:hidden;margin:24px 0 35px;color:#41372b}
.recipe-index{padding:34px 22px;background-color:#f0e3cd;background-image:repeating-linear-gradient(0deg,transparent 0 7px,#a97c6210 7px 8px),repeating-linear-gradient(90deg,transparent 0 7px,#a97c6210 7px 8px);border-right:1px solid #caba9c;box-shadow:inset -8px 0 14px #765f3d0c}
.recipe-book-label{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#7d5044;text-align:center;font-weight:700}
.recipe-index h2{font-family:BufeHand,'Segoe Print',cursive;color:#80453e;font-size:46px;line-height:1.05;letter-spacing:0;text-align:center;margin:18px 0 6px}
.recipe-flower{text-align:center;font-size:28px;color:#a06b4e;margin-bottom:24px}
.recipe-index-caption{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:#6a5543;margin-bottom:12px}
.recipe-index nav{display:grid;gap:6px}
.recipe-index button{display:flex;align-items:baseline;gap:12px;text-align:left;border-radius:5px;background:#fffaf080;padding:13px 10px;color:#4f4233;font-size:14px;line-height:1.5;min-height:48px;border:1px solid transparent}
.recipe-index button span{font-family:BufeHand,cursive;color:#825547;font-size:22px;line-height:1;flex-shrink:0}
.recipe-index button[aria-current]{background:#fffaf0;border-color:#b98772;box-shadow:0 2px 5px #5d392610;font-weight:650}
.recipe-index-note{font-family:BufeHand,cursive;font-size:24px;line-height:1.2;color:#705e48;margin:30px 0 0;text-align:center}
.recipe-leaf{background:#fffaf0;padding:38px 46px 25px;position:relative;min-width:0;box-shadow:inset 10px 0 16px #74583e08}
.recipe-heading{border-bottom:2px solid #cfb79a;padding-bottom:22px;margin-bottom:8px}
.recipe-page-label{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:#7d6650;font-weight:650}
.recipe-heading h2{font-family:BufeHand,'Segoe Print',cursive;font-size:49px;font-weight:700;color:#81493e;line-height:1.1;letter-spacing:0;margin:14px 0 8px;overflow-wrap:anywhere}
.recipe-heading h2:focus{outline:none}
.recipe-heading p{font-size:13px;color:#6c5c49;margin:0;line-height:1.6}
.recipe-ingredients{list-style:none;padding:0;margin:0}
.recipe-ingredients li{display:grid;grid-template-columns:23px 64px minmax(0,1fr);gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid #dcd9c7;min-height:84px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.ingredient-number{font-family:BufeHand,cursive;font-size:24px;color:#876b51}
.recipe-ingredients img{width:64px;height:64px;object-fit:contain;background:#f4ecda;border:1px solid #e4d8c2;border-radius:50%;padding:5px}
.recipe-paging{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:30px}
.recipe-paging>span{text-align:center;font-family:BufeHand,cursive;font-size:26px;line-height:1;color:#785b44;white-space:nowrap}
.recipe-paging small{display:block;font-family:'Segoe UI',Arial,sans-serif;font-size:10px;letter-spacing:1px;margin-top:7px}
.recipe-paging button.secondary{background:#eee4d1;border-color:#d9c9af;color:#604534;min-height:46px}
.recipe-paging button:disabled{cursor:default;opacity:.38}
@media(max-width:1100px){.notebook-label{font-size:25px}.recipe-notebook{grid-template-columns:220px minmax(0,1fr)}.recipe-index{padding:26px 16px}.recipe-leaf{padding:30px 25px 24px}.recipe-heading h2{font-size:42px}}
@media(max-width:900px){.recipe-notebook{grid-template-columns:1fr}.recipe-index{border-right:0;border-bottom:1px solid #caba9c;padding:23px}.recipe-index h2{font-size:35px;margin:9px 0}.recipe-index h2 br{display:none}.recipe-index h2 br:after{content:' '}.recipe-index nav{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-index-note,.recipe-flower{display:none}.recipe-index-caption{margin-top:20px}.recipe-index button{font-size:13px}}
@media(max-width:520px){.notebook-label{font-size:25px}.period-picker{width:100%;justify-content:flex-end;gap:12px}.period-picker label{flex-direction:column;align-items:flex-start;gap:5px}.period-picker select{padding:10px}.recipe-leaf{padding:26px 18px 22px}.recipe-heading h2{font-size:39px}.recipe-index{padding:20px 16px}.recipe-index button{padding:10px 8px;gap:7px}.recipe-ingredients li{grid-template-columns:20px 48px minmax(0,1fr);gap:9px;font-size:15px;min-height:72px}.recipe-ingredients img{width:48px;height:48px;padding:3px}.recipe-paging{gap:7px}.recipe-paging button.secondary{font-size:13px;padding:10px 12px}}

/* Ballpoint writing and margin doodles on the sign-in notebook page. */
.auth-form{flex-direction:column;gap:24px;padding:36px 40px}
#login>.eyebrow,#login>h2,#login>p.muted,#login>.field,#login>.footer-note{font-family:BufeHand,'Segoe Print',cursive;color:#245a91;font-weight:600;letter-spacing:0;text-transform:none}
#login>.eyebrow{font-size:25px;line-height:1.25}
#login>h2{font-size:44px;line-height:1.15}
#login>p.muted{font-size:26px;line-height:1.3}
#login>.field{font-size:25px;line-height:1.2}
#login>.footer-note{font-size:22px;line-height:1.3}
#login input,#login select{font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:15px;font-weight:400;line-height:normal;letter-spacing:normal;color:#203c30}
.login-scribbles{width:100%;max-width:370px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#245a91;pointer-events:none;user-select:none;flex-shrink:0}
.login-scribbles svg{display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.login-scribbles span{font-family:BufeHand,'Segoe Print',cursive;font-size:27px;line-height:1.1;font-weight:500}
.scribble-petya{transform:rotate(-6deg);max-width:205px}
.scribble-petya svg{width:100%;height:15px;margin-top:3px}
.login-scribbles .scribble-face{width:122px;height:108px;flex-shrink:0;transform:rotate(8deg)}
.login-scribbles-bottom{justify-content:center;margin-top:2px;transform:rotate(-3deg);padding-bottom:10px}
.login-scribbles .scribble-key{width:78px;height:60px;flex-shrink:0}
.login-scribbles-bottom span{max-width:230px}
@media(max-width:720px){.auth-form{padding:28px 25px;gap:22px}.login-scribbles .scribble-face{width:105px;height:93px}.login-scribbles span{font-size:25px}#login>h2{font-size:40px}#login>.footer-note{font-size:21px}}
