:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#292723;background:#f7f4ef;--ink:#27231f;--muted:#8d867b;--line:#ebe4da;--gold:#b58a50;--gold-dark:#96703e;--paper:white;--nav:#211d1b;--green:#237453;--red:#b24443;--soft:#f7f3eb}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:progress}.hide{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.hint{font-size:12px;color:#8c8375;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:var(--gold)}.auth-page{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-graphic{background:radial-gradient(ellipse at center,#3b3026 0%,#211d1a 60%,#181614 100%);display:grid;place-items:center;padding:40px;color:#f5e5ca;text-align:center}.auth-art img{width:200px;height:200px;object-fit:contain}.auth-art h1{font:normal 46px Georgia,serif;margin:12px 0 4px;color:#e9c898}.auth-art p{letter-spacing:4px;font-size:11px}.auth-art .sub{letter-spacing:0;font:italic 21px Georgia,serif}.ornament{color:#d7ac6a;font-size:35px;margin-top:50px}.auth-panel{display:grid;place-items:center;padding:30px;background:#f9f7f3}.auth-form{width:min(410px,100%)}.auth-form h2{font:normal 41px Georgia,serif;margin:15px 0}.auth-form .muted{line-height:1.6}.tabs{display:flex;background:#ede9e2;padding:4px;border-radius:12px;gap:4px;margin:28px 0 23px}.tab{flex:1;border:0;background:transparent;padding:12px;border-radius:9px;color:#6f675d}.tab.on{background:white;color:#7f5b34;box-shadow:0 2px 12px #00000010;font-weight:750}label{display:block;font-weight:650;font-size:12px;margin:13px 0;color:#665f54}label>input,label>select,label>textarea{display:block;width:100%;font-weight:450;margin:7px 0 0}input,select,textarea{border:1px solid #ded6ca;background:white;color:#292621;border-radius:10px;min-height:42px;padding:10px 12px;outline:0}textarea{min-height:74px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#b28d5b;box-shadow:0 0 0 3px #d6b68133}.primary,.secondary,.ghost,.danger,.smallbtn,.iconbtn{border-radius:10px;min-height:40px;border:1px solid transparent;padding:10px 15px;font-weight:700}.primary{background:#b58a50;color:#fff}.primary:hover{background:#9e773e}.secondary{background:white;color:#544839;border-color:#e5ddd0}.secondary:hover{background:#f8f4eb}.ghost{color:#75654c;background:transparent;border-color:#e8dfd1}.danger{background:#b04443;color:white}.wide{width:100%;margin-top:15px}.safe-note{margin-top:25px;background:#f1ede5;color:#776c61;padding:14px;border-radius:12px;font-size:12px;line-height:1.6}.auth-message{padding:13px;border-radius:10px;background:#fdf0e7;color:#9c593b;margin-top:12px}.app{display:flex;min-height:100vh}.sidebar{width:248px;background:var(--nav);color:#e7dbca;flex-shrink:0;position:sticky;top:0;align-self:flex-start;height:100vh;display:flex;flex-direction:column;padding:22px 14px}.brand{display:flex;align-items:center;gap:10px;padding:5px 7px 28px}.brand img{height:50px;width:50px;object-fit:cover;border-radius:13px}.brand strong{font:normal 22px Georgia,serif;color:#e3bf8c}.brand span{display:block;font-size:8px;letter-spacing:1.6px;color:#c6b296;margin-top:6px}.side-label{margin:9px 13px 10px;color:#81766b;letter-spacing:2px;font-size:10px;font-weight:750}.sidebar nav{overflow:auto;flex:1}.nav-item{width:100%;display:flex;gap:14px;align-items:center;padding:12px 15px;border:0;border-radius:10px;background:transparent;color:#c7bdb1;text-align:left;font-size:17px;margin:2px 0}.nav-item span{font-size:13px}.nav-item:hover,.nav-item.active{background:#47372a;color:#f8e9ce}.nav-item.active{box-shadow:inset 3px 0 #d8ab73}.side-footer{padding:16px 12px;border-top:1px solid #483d35}.side-footer .small{color:#b8a58e;margin:5px 0 12px}.side-footer .secondary{background:#302a26;color:#e2ccaf;border:1px solid #514538}.workspace{flex:1;min-width:0}.topbar{height:90px;background:#fffcf9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 33px}.top-title{font:normal 27px Georgia,serif;margin-top:4px}.top-actions{display:flex;align-items:center;gap:13px}.online{color:var(--green);font-size:12px;display:flex;align-items:center;gap:7px}.online-dot{height:7px;width:7px;border-radius:50%;background:#48a57a}.user-chip{width:38px;height:38px;border-radius:50%;background:#eddbbf;display:grid;place-items:center;color:#64472a;font-weight:750}.main{padding:28px 33px 75px;max-width:1550px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.page-heading h1{font:normal 30px Georgia,serif;margin:0}.page-heading p{margin:7px 0 0;color:var(--muted);font-size:12px}.page-buttons{display:flex;gap:9px;flex-wrap:wrap}.grid{display:grid;gap:16px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-aside{grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr)}.card{background:var(--paper);border:1px solid #ece6dc;border-radius:16px;box-shadow:0 6px 22px #493b2706;padding:20px;min-width:0}.metric-label{font-size:12px;color:#77716b;font-weight:600}.metric-value{font-size:29px;font-weight:740;letter-spacing:-1px;margin-top:14px}.metric-foot{font-size:11px;color:var(--muted);margin-top:12px}.stat-accent{background:linear-gradient(135deg,#49392c,#2a221f);color:#f3dab3}.stat-accent .metric-label,.stat-accent .metric-foot{color:#d2bfa5}.section-title{font:normal 20px Georgia,serif;margin:0 0 16px}.space{display:flex;align-items:center;justify-content:space-between;gap:15px}.scroll-x{overflow:auto}.table{border-collapse:collapse;width:100%;min-width:550px}.table th{text-align:left;color:#958b7f;font-size:10px;letter-spacing:.7px;text-transform:uppercase;border-bottom:1px solid var(--line);padding:12px 10px}.table td{padding:13px 10px;border-bottom:1px solid #f0ebe5;font-size:12px}.table tr:last-child td{border:0}.table .actions{white-space:nowrap}.badge{display:inline-flex;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700;background:#f5eddf;color:#936d36}.badge.green{background:#e9f7f0;color:#276b4f}.badge.red{background:#fbeaea;color:#b04748}.badge.gray{background:#f0efec;color:#756f67}.empty{padding:35px;color:#9b9287;text-align:center;font-size:13px;border:1px dashed #e5d8c4;border-radius:12px}.empty strong{display:block;color:#766958;font-size:15px;margin-bottom:6px}.list-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #f1ede6;padding:13px 0}.list-item:last-child{border:0}.list-item strong{font-size:13px}.list-item small{display:block;margin-top:5px;color:var(--muted)}.filters{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:16px}.filters input,.filters select{width:auto;min-width:160px}.progress{height:8px;background:#f0e9df;border-radius:30px;overflow:hidden}.progress>div{height:100%;background:#b9945e}.amount{font-variant-numeric:tabular-nums}.gold{color:#a4753c}.red{color:var(--red)}.green{color:var(--green)}.split{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mutedline{font-size:12px;color:var(--muted);line-height:1.6}.panel-soft{padding:16px;background:#f9f5ee;border-radius:12px;border:1px solid #ece2d2}.mini-label{font-size:11px;font-weight:650;color:#877c70}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}.form-grid .span2{grid-column:span 2}.field-row{display:flex;gap:10px;align-items:end}.field-row>*{flex:1;min-width:0}.taglist{display:flex;flex-wrap:wrap;gap:6px}.taglist span{background:#f7f1e8;color:#9c7645;font-size:10px;padding:6px 8px;border-radius:8px}.toast{position:fixed;z-index:30;right:25px;bottom:22px;max-width:400px;background:#2f332a;color:#f5f2ea;padding:15px 20px;border-radius:12px;box-shadow:0 8px 36px #0002;display:none;font-size:13px;line-height:1.5}.toast.visible{display:block}.toast.error{background:#862c2c}.toast.success{background:#2d6043}dialog{border:0;border-radius:19px;max-width:min(640px,calc(100% - 28px));width:100%;padding:0;box-shadow:0 22px 80px #0005}dialog::backdrop{background:#17110c98}#modal-form{padding:24px}#modal-body{max-height:min(65vh,620px);overflow:auto;padding:1px 4px}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.modal-head h2{font:normal 24px Georgia,serif;margin:0}.iconbtn{background:transparent;font-size:19px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:19px}.service-photo{width:100%;aspect-ratio:1.6;object-fit:cover;background:#f1e4d1;border-radius:10px;margin-bottom:12px}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.gallery .card{padding:12px}.gallery h3{font:normal 17px Georgia,serif;margin:9px 0}.gallery p{font-size:12px;color:#847a6c}.mobile-nav{display:none}.desktop-only{display:initial}button.link{background:none;border:0;color:#9f713d;font-weight:700;padding:3px}.mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px}.check-row{display:flex;align-items:center;gap:8px}.check-row input{min-height:initial;width:16px;height:16px}.check-row label{margin:0}.divider{height:1px;background:#ede6db;margin:20px 0}.pill-switch{display:flex;gap:6px;flex-wrap:wrap}.pill-switch button{border:1px solid #e8dbca;background:#faf8f5;border-radius:30px;padding:8px 12px}.pill-switch button.on{background:#bd9560;color:white}.photo-tiny{width:38px;height:38px;object-fit:cover;border-radius:8px}.emph{font-size:18px;font-weight:700}.caption{color:#8f8578;font-size:11px;margin-top:7px}.error-box{padding:15px;border:1px solid #e9b8b5;border-radius:12px;background:#fff0ef;color:#9e3a35;margin-bottom:15px}.mobile-nav button{border:0;background:transparent}
@media(max-width:1150px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-aside{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.auth-page{grid-template-columns:1fr}.auth-graphic{min-height:210px;padding:20px}.auth-art img{width:92px;height:92px}.auth-art h1{font-size:31px;margin:0}.auth-art .ornament,.auth-art .sub{display:none}.auth-panel{padding:23px 20px 45px}.auth-form h2{font-size:31px}.sidebar{display:none}.topbar{height:72px;padding:0 16px}.top-title{font-size:21px}.top-actions{gap:8px}.top-actions .online,.top-actions #reload span{display:none}.main{padding:19px 14px 96px}.page-heading h1{font-size:25px}.grid-4,.grid-2{grid-template-columns:1fr 1fr}.grid-aside{grid-template-columns:1fr}.card{padding:16px}.metric-value{font-size:24px}.mobile-nav{display:grid;grid-template-columns:repeat(6,1fr);position:fixed;bottom:0;left:0;right:0;height:calc(67px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fffdf9;border-top:1px solid var(--line);z-index:10;box-shadow:0 -8px 20px #00000009}.mobile-nav button{font-size:24px;color:#847565;display:flex;flex-direction:column;align-items:center;justify-content:center}.mobile-nav button.active{color:#ad7c43}.mobile-nav span{font-size:10px;margin-top:2px}.gallery{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.grid-4{grid-template-columns:1fr 1fr}.grid-2{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr}.service-photo{aspect-ratio:1.25}.page-heading{align-items:flex-start;flex-direction:column}.filters input,.filters select{width:100%}.table{min-width:500px}.topbar .eyebrow{font-size:8px}.form-grid{grid-template-columns:1fr}.form-grid .span2{grid-column:1}.field-row{flex-direction:column}.field-row>*{width:100%}}
