:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#243a32;background:#f6f7f5;font-synthesis:none;--green:#194e3b;--green-dark:#123b2d;--muted:#7d8982;--line:#e6ebe6;--lime:#e8f3b9;--radius:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button{transition:background .15s,box-shadow .15s}button:focus-visible,a:focus-visible{outline:3px solid #9dbb64;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #b2cbbc;outline-offset:1px}input,select,textarea{min-width:0;border:1px solid #dfe5df;border-radius:9px;background:#fff;color:#243a32;padding:12px 13px}input::placeholder,textarea::placeholder{color:#919b95}textarea{resize:vertical;min-height:88px}select{cursor:pointer}input[type=number]{width:100%}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:34px;font-weight:650;letter-spacing:-1.3px;line-height:1.2}h2{font-size:18px;font-weight:650;letter-spacing:-.3px}p{line-height:1.6}svg.icon{width:20px;height:20px;display:block;flex-shrink:0}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}[hidden]{display:none!important}.eyebrow{display:block;font-size:10px;letter-spacing:1.8px;font-weight:750;color:#728178;margin-bottom:10px}.muted{color:var(--muted);font-size:13px}.brand{display:flex;align-items:center;gap:10px;font-weight:750;letter-spacing:-1.1px;font-size:25px}.brand img{width:37px;height:37px}.brand-dot{color:#8dad54}.button{border:1px solid transparent;border-radius:10px;min-height:43px;padding:11px 17px;display:inline-flex;justify-content:center;align-items:center;gap:9px;font-size:13px;font-weight:650;white-space:nowrap}.primary{background:var(--green);color:#fff;box-shadow:0 3px 6px #194e3b12}.primary:hover{background:#256247}.secondary{background:#fff;color:#385246;border-color:#dce4dd}.secondary:hover{background:#f5f8f3}.entry{background:var(--green);color:white}.entry:hover{background:#256247}.danger{background:#a54235;color:#fff}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:none;border:0;color:#52705e;padding:9px;font-size:12px;font-weight:650}.text-button:hover{background:#f1f5ee;border-radius:8px}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;border-radius:8px;width:35px;height:35px;color:#6f7e74}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;padding:30px 20px 18px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.sidebar .brand{padding-left:11px}.workspace{display:flex;gap:11px;align-items:center;padding:17px 11px;margin:29px 0 26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.store-mark{display:grid;place-items:center;background:#f3f5f1;border:1px solid #e8ece5;width:36px;height:36px;border-radius:10px;font-size:25px;color:#63816e}.workspace strong{font-size:12px;display:block;font-weight:650}.workspace small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.nav-caption{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#98a099;padding:0 15px;margin-bottom:12px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;border:0;background:none;text-align:left;padding:13px 15px;border-radius:10px;font-size:13px;font-weight:550;color:#78877d;width:100%}.nav-item.active{color:var(--green);background:#eaf2e9;font-weight:700}.nav-item:hover{background:#f2f5ef}.sidebar-bottom{margin-top:auto;padding-top:50px}.help-card{padding:17px;background:#f6f8f2;border:1px solid #e9eee0;border-radius:12px;margin:0 5px 24px}.help-card>span{color:#689060;margin-bottom:12px}.help-card strong{font-size:11px;display:block}.help-card p{font-size:10px;margin-top:6px;color:#879078;line-height:1.6}.account{display:flex;gap:10px;align-items:center;padding:14px 5px;border:0;border-top:1px solid var(--line);background:none;width:100%;text-align:left}.avatar{width:34px;height:34px;border-radius:50%;background:#e9eedd;color:#577140;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:650;flex-shrink:0}.account strong{display:block;font-size:12px;color:#3c5044;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account small{font-size:10px;display:block;margin-top:4px;color:#91a091}.account>span:last-child{margin-left:auto;color:#a4afa6}.logout{display:flex;align-items:center;gap:7px;border:0;background:none;font-size:11px;color:#8a978d;padding:4px 6px}.logout svg{width:14px;height:14px}.main-area{margin-left:246px;width:calc(100% - 246px)}.topbar{height:73px;background:#ffffffc9;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 42px;font-size:11px}.breadcrumb{color:#8b958e;display:flex;gap:13px;align-items:center}.breadcrumb span{color:#c5cdc6}.breadcrumb strong{font-weight:550;color:#506253}.connection{display:flex;align-items:center;gap:7px;color:#87958a;font-size:10px}.connection i{width:6px;height:6px;border-radius:100%;background:#78a47a}.connection.offline{color:#a35f42}.connection.offline i{background:#c77d48}#main-content{max-width:1450px;margin:0 auto;padding:37px 42px 20px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:29px}.page-heading p{font-size:13px;color:#8a948b;margin-top:9px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;display:flex;justify-content:space-between;gap:10px;box-shadow:0 2px 3px #213e2802}.stat>div>span{display:block;font-size:11px;font-weight:550;color:#7a897e}.stat strong{display:block;font-size:33px;font-weight:600;letter-spacing:-1px;margin:11px 0 6px}.stat small{font-size:10px;color:#9aa398}.stat-icon{height:38px;width:38px;border-radius:11px}.mint{background:#eef5ed;color:#668e6e}.beige{background:#f4f2e8;color:#9a9767}.amber{background:#fcf1dc;color:#c39542}.stat.attention strong{color:#a97c29}.quick-actions{background:#edf2e5;border:1px solid #e1e8d7;border-radius:13px;padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 30px}.quick-actions>div{display:flex;align-items:center;gap:14px}.quick-icon{width:42px;height:42px;background:#e2ead4;border:1px solid #d9e3ca;border-radius:12px;color:#6c8352}.quick-actions strong{font-size:13px;font-weight:650;color:#40583e}.quick-actions p{font-size:11px;color:#819075;margin-top:4px}.quick-actions .action-pair{gap:9px}.quick-actions .button{font-size:11px;padding:10px 14px;min-height:40px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-heading{padding:24px 25px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px}.panel-heading h2{display:flex;align-items:center;gap:8px}.panel-heading p{font-size:11px;color:#95a093;margin-top:6px}.count{display:inline-flex;background:#f0f3ed;border:1px solid #e7ece1;padding:3px 7px;font-size:10px;border-radius:6px;color:#71866a;font-weight:650}.filters{padding:0 25px 20px;display:flex;gap:10px;align-items:center}.filters input,.filters select{font-size:11px;min-height:40px}.search{position:relative;display:flex;align-items:center;flex:1}.search input{width:100%;padding-left:39px;background:#fbfcfa;border-color:#e7ece3}.search>span{position:absolute;left:12px;color:#a4afa1}.search svg{width:16px;height:16px}.filters select{max-width:190px;background:#fff}.filter-chip{font-size:11px;display:flex;align-items:center;gap:6px;padding:11px 12px;border-radius:8px;border:1px solid #e7eade;background:white;color:#859173;min-height:40px}.filter-chip svg{width:14px;height:14px}.filter-chip[aria-pressed=true]{background:#fff0d5;border-color:#d6b46e;color:#95691f}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:9px;font-weight:650;letter-spacing:.8px;color:#96a18f;background:#fafbf8;padding:13px 18px;border-block:1px solid #eff2ea;white-space:nowrap}th:first-child,td:first-child{padding-left:25px}th:last-child,td:last-child{padding-right:25px}td{padding:19px 18px;border-bottom:1px solid #eff2ec;font-size:12px}.product-cell{display:flex;align-items:center;gap:12px}.product-symbol{width:39px;height:42px;background:#f3f5ec;border:1px solid #edf0e5;border-radius:10px;color:#8c9e72;flex-shrink:0;display:flex;align-items:center;justify-content:center}.product-symbol.tone-1{background:#eff4f2;color:#76998d}.product-symbol.tone-2{background:#faf2e6;color:#c3a26a}.product-symbol.tone-3{background:#f5eff2;color:#a1859a}.product-symbol.tone-4{background:#eff1f7;color:#8c96b5}.product-name{font-size:12px;font-weight:600;color:#455843;display:block;max-width:240px;overflow-wrap:anywhere}.product-name.editable{border:0;background:none;text-align:left;padding:0}.product-name.editable:hover{text-decoration:underline}.product-code{font-size:9px;color:#a2aba0;display:block;margin-top:5px}.category-pill{display:inline-block;font-size:10px;color:#8b9982;border:1px solid #ebefe5;background:#fafbf7;border-radius:6px;padding:5px 8px}.stock-qty{font-size:16px;font-weight:650;color:#465d41}.stock-unit{font-size:10px;margin-left:5px;color:#8c9887}.minimum{display:block;font-size:9px;color:#a1ab9a;margin-top:5px}.status{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 8px;font-size:9px;font-weight:600;background:#eef5e8;color:#75915b;white-space:nowrap}.status:before{content:'';width:4px;height:4px;background:currentColor;border-radius:100%}.status.low{background:#fcf2dd;color:#b89342}.status.zero{background:#fcf0e9;color:#bc8a70}.align-right{text-align:right}.row-actions{display:flex;gap:7px;justify-content:flex-end}.row-actions button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e6eadf;border-radius:7px;background:#fff;color:#7c9471;height:31px;min-width:33px;gap:4px;padding:5px 8px;font-size:10px}.row-actions button:hover{background:#eef5e7}.row-actions svg{width:14px;height:14px}.panel-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 25px;color:#a1ab9b;font-size:9px}.main-footer{margin-top:31px;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#b1baac}.main-footer>span:first-child{font-size:13px;font-weight:700;letter-spacing:-.5px}.empty{padding:56px 25px;text-align:center;color:#7a8c75}.empty>span{display:flex;justify-content:center;color:#9fb18c;margin-bottom:15px}.empty>span svg{width:35px;height:35px}.empty strong{font-size:15px;display:block;font-weight:600;color:#52674a}.empty p{font-size:12px;margin:9px 0 18px}.history-filters{padding-top:22px}.history-filters label{font-size:10px;color:#7e8b78;display:flex;align-items:center;gap:8px}.history-item{padding:22px 25px;display:flex;align-items:center;gap:16px;border-top:1px solid var(--line)}.movement-icon{width:38px;height:38px;border-radius:10px;background:#ecf5e9;color:#6e9960;flex-shrink:0;display:flex;align-items:center;justify-content:center}.movement-icon.out{background:#fcf0e4;color:#bd986a}.movement-info{flex:1;min-width:0}.movement-info strong{font-size:13px;display:block;overflow-wrap:anywhere}.movement-info p{font-size:11px;color:#8e9a86;margin-top:5px}.movement-info small{font-size:10px;color:#9ba591;display:block;margin-top:5px;overflow-wrap:anywhere}.movement-number{text-align:right}.movement-number strong{font-size:18px;color:#5c8850;white-space:nowrap}.movement-number.out strong{color:#b49366}.movement-number small{font-size:9px;color:#9aa88f;display:block;margin-top:5px}.reversed{opacity:.65}.history-item .text-button{font-size:10px}.team-item{padding:24px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.team-person{flex:1;min-width:0}.team-person strong{font-size:13px;overflow-wrap:anywhere}.team-person small{display:block;font-size:11px;color:#96a08c;margin-top:5px}.team-actions{display:flex;gap:7px}.team-note{margin-top:16px}dialog{border:1px solid #e1e8dc;border-radius:20px;padding:27px;width:min(510px,calc(100vw - 32px));box-shadow:0 25px 100px #18342126;color:#2b432f;max-height:90dvh;overflow:auto}dialog::backdrop{background:#1f342c66;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:24px}.modal-heading h2{font-size:24px}.modal-heading .eyebrow{font-size:9px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label,.stack label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;color:#63745a}.span-2{grid-column:1/-1}.stack{display:flex;flex-direction:column;gap:17px}.form-grid input,.form-grid textarea,.form-grid select,.stack input{width:100%;font-size:13px}.hint{font-size:11px;color:#92a085;line-height:1.6;font-weight:400}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px;align-items:center}.form-error{color:#ad5143;font-size:12px;line-height:1.5;background:#fff2ed;border-radius:8px;padding:11px;margin-top:15px}.balance-preview{display:flex;align-items:center;justify-content:space-between;padding:16px;background:#f3f6ee;border:1px solid #e9eee0;border-radius:10px;font-size:11px;color:#7f9272}.balance-preview strong{font-size:19px;color:#557845}.balance-preview.invalid strong{color:#b35442}.balance-preview .arrow{font-size:18px;color:#a8b59c}.balance-preview span span{display:block;margin-bottom:6px}.full-width{width:100%}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:14px 22px;border-radius:11px;font-size:12px;box-shadow:0 8px 35px #1b432a30;z-index:20;max-width:calc(100vw - 30px);text-align:center}#toast.error{background:#a14e3e}.auth-shell{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh;background:#fafbf8}.auth-story{padding:44px 60px;background:var(--green);color:#f5f8e9;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.auth-story>.brand{font-size:28px}.auth-story .brand-dot{color:#d1e88f}.auth-story>.brand img{background:#e8f3b9}.auth-story h1{font-size:clamp(42px,5vw,76px);line-height:1.08;letter-spacing:-3px;margin:18px 0 24px}.auth-story p{color:#b4c9b2;font-size:14px;line-height:1.9}.auth-story small{font-size:10px;color:#9eb798}.light{color:#c1d59d;font-size:10px}.auth-panel{padding:50px;display:flex;flex-direction:column;justify-content:center;align-items:center}.auth-panel>div{width:100%;max-width:350px}.auth-panel h2{font-size:29px;letter-spacing:-1px;margin-bottom:10px}.auth-panel .intro{font-size:13px;color:#89977f;margin-bottom:30px}.auth-panel .stack label{font-size:12px}.auth-panel input{padding:14px;font-size:14px;background:#fff}.auth-panel .button{margin-top:9px;min-height:47px}.auth-foot{margin-top:32px;font-size:10px;color:#a3ae99}.shelf-art{position:relative;height:150px;border-bottom:9px solid #74935a;margin:25px 0 30px;display:flex;align-items:flex-end;gap:18px;width:85%;max-width:350px;opacity:.8}.bottle{height:105px;width:43px;background:#a1bd70;border-radius:8px 8px 4px 4px;position:relative}.bottle:before{content:'';position:absolute;width:21px;height:22px;background:#b1c781;top:-18px;left:11px;border-radius:3px 3px 0 0}.bottle:after{content:'';position:absolute;inset:35px 5px 25px;background:#d4df9a;border-radius:2px}.bottle.b{height:130px;background:#7e9f59}.box{height:98px;width:67px;background:#d6d39c;border-radius:3px;position:relative}.box:after{content:'';position:absolute;inset:20px 8px 25px;border:2px solid #b2b073}.can{height:73px;width:39px;border-radius:6px 6px 4px 4px;background:#d1dea3;border-top:4px solid #aebc87;border-bottom:4px solid #aebc87}.can.e{height:90px;background:#97af72}.auth-loading{text-align:center;color:#8d9d7f}
@media(min-width:1500px){.stat{padding:27px}.stat strong{font-size:38px}td{padding-block:22px}.product-name{max-width:340px}}
@media(max-width:1200px){.sidebar{width:212px;padding-inline:15px}.main-area{margin-left:212px;width:calc(100% - 212px)}#main-content{padding:30px 25px 20px}.topbar{padding-inline:25px}.stats{gap:12px}.stat{padding:18px}.quick-actions{flex-wrap:wrap}.quick-actions .action-pair{margin-left:auto}.product-name{max-width:180px}th,td{padding-inline:12px}.row-actions .action-label{display:none}.auth-story{padding:40px}.panel-footer>span:last-child{display:none}}
@media(max-width:900px){.sidebar{width:180px;padding:24px 12px}.sidebar .brand{font-size:21px;padding-left:3px;gap:7px}.brand img{width:31px;height:31px}.workspace{padding-inline:3px}.store-mark{display:none}.nav-item{font-size:12px;padding-inline:10px;gap:9px}.nav-caption{padding-left:10px}.main-area{margin-left:180px;width:calc(100% - 180px)}#main-content{padding:27px 20px}.topbar{padding-inline:20px}.stats{gap:9px}.stat{padding:15px}.stat-icon{display:none}.stat>div>span{font-size:10px}.stat small{font-size:9px}.page-heading h1{font-size:29px}.quick-actions{padding:17px}.panel-heading{padding:22px 18px 18px}.filters{padding-inline:18px;flex-wrap:wrap}.search{flex-basis:100%}.filters select{flex:1;max-width:none}.product-table th:nth-child(2),.product-table td:nth-child(2){display:none}.product-name{max-width:150px}th:first-child,td:first-child{padding-left:18px}th:last-child,td:last-child{padding-right:18px}.product-symbol{display:none}.history-filters{padding-top:18px}.history-item{padding:18px 16px;gap:10px}.history-item .text-button{font-size:9px;padding:5px}.team-item{flex-wrap:wrap;padding:20px}.team-actions{width:100%;padding-left:48px}.auth-panel{padding:35px}.auth-story{padding:30px}.auth-story p{font-size:12px}.auth-story small{max-width:190px;line-height:1.6}}
@media(max-width:650px){.app-shell{display:block}.sidebar{position:sticky;top:0;width:100%;height:auto;padding:15px 18px 0;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;background:#fffffff5;backdrop-filter:blur(10px)}.sidebar .brand{font-size:23px;padding:0;grid-column:1}.sidebar nav{flex-direction:row;grid-column:1/-1;gap:6px;margin-top:14px}.nav-item{width:auto;flex:1;justify-content:center;border-radius:8px 8px 0 0;padding:12px 7px;font-size:11px;gap:7px}.nav-item svg{width:16px;height:16px}.workspace,.nav-caption,.help-card{display:none}.sidebar-bottom{grid-column:2;grid-row:1;margin:0;padding:0;display:flex;align-items:center;gap:12px}.account{border:0;padding:0;width:auto}.account>span:nth-child(2),.account>span:last-child{display:none}.avatar{width:31px;height:31px;font-size:11px}.logout{font-size:10px;padding:0}.logout svg{display:none}.main-area{margin:0;width:100%}.topbar{height:46px;padding:0 19px;font-size:9px;background:transparent}.breadcrumb{gap:9px}.connection{font-size:9px}#main-content{padding:22px 16px 20px}.page-heading{margin-bottom:22px;gap:12px;align-items:center}.page-heading h1{font-size:29px;letter-spacing:-1px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.page-heading p{font-size:11px;max-width:220px;margin-top:6px}.page-heading>.button{font-size:10px;padding:10px;gap:5px;min-height:38px}.page-heading>.button svg{width:15px;height:15px}.stats{gap:8px}.stat{padding:14px 11px;border-radius:12px;min-width:0}.stat strong{font-size:28px;margin:9px 0 3px}.stat>div>span{font-size:9px;line-height:1.5;min-height:27px;max-width:95px}.stat small{font-size:8px;line-height:1.5;display:block}.quick-actions{padding:18px 16px;margin:18px 0 24px;gap:16px}.quick-actions strong{font-size:12px}.quick-actions p{font-size:10px}.quick-icon{width:36px;height:36px;flex-shrink:0}.quick-actions>div{gap:10px}.quick-actions .action-pair{margin:0;width:100%}.quick-actions .button{flex:1;font-size:11px;padding:11px;min-height:42px}.panel-heading{padding:20px 15px 17px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:10px;max-width:225px}.panel-heading .text-button{font-size:10px;padding:0}.panel-heading .text-button svg{width:14px}.filters{padding:0 15px 16px;gap:8px}.filters select{font-size:10px}.filter-chip{font-size:10px}.table-wrap{overflow:visible}.product-table thead{display:none}.product-table tbody{display:block}.product-table tr{display:grid;grid-template-columns:1fr auto;gap:11px 10px;padding:17px 15px;border-top:1px solid var(--line)}.product-table td{border:0;padding:0!important;min-width:0}.product-table td:first-child{grid-column:1;grid-row:1}.product-symbol{display:flex;width:33px;height:36px}.product-cell{gap:9px}.product-name{max-width:190px;font-size:12px}.product-code{font-size:9px}.product-table td:nth-child(3){grid-column:2;grid-row:1;text-align:right}.stock-qty{font-size:20px}.stock-unit{font-size:10px}.minimum{font-size:9px}.product-table td:nth-child(4){grid-column:1;grid-row:2;display:flex;align-items:center}.product-table td:last-child{grid-column:2;grid-row:2}.row-actions{gap:7px}.row-actions button{height:33px;padding:6px 9px;gap:5px}.row-actions .action-label{display:inline;font-size:10px}.status{font-size:9px}.panel-footer{padding:14px 15px;font-size:9px}.main-footer{margin-top:24px;font-size:8px}.main-footer>span:first-child{font-size:12px}.history-filters{padding-top:18px;gap:12px}.history-filters>select{flex-basis:100%}.history-filters label{flex:1;display:flex;flex-direction:column;align-items:stretch;gap:5px}.history-filters input{width:100%;font-size:12px}.history-filters .text-button{padding:3px}.history-item{flex-wrap:wrap;position:relative;gap:10px}.movement-icon{width:30px;height:33px}.movement-info strong{font-size:12px}.movement-info p{font-size:9px;max-width:210px}.movement-info small{font-size:10px}.movement-number strong{font-size:17px}.history-item .text-button{margin-left:40px;margin-top:-4px;font-size:10px}.history-item .movement-number{margin-left:auto}.team-item .status{font-size:9px}.team-actions{padding-left:0}.team-actions .text-button{font-size:11px}.auth-shell{grid-template-columns:1fr}.auth-story{padding:28px 25px 32px;min-height:270px}.auth-story>.brand{font-size:24px}.auth-story>div{margin-top:34px}.auth-story h1{font-size:45px;letter-spacing:-2px;margin:12px 0 15px}.auth-story p{font-size:12px}.auth-story .eyebrow{font-size:8px}.auth-story small,.shelf-art{display:none}.auth-panel{padding:35px 28px 30px}.auth-panel h2{font-size:26px}.auth-panel .intro{margin-bottom:23px;font-size:12px}.auth-foot{font-size:9px}.form-grid{gap:13px}.form-actions .button{padding-inline:12px}dialog{padding:22px}.modal-heading h2{font-size:22px}.balance-preview{padding:13px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.auth-switch{margin:22px auto 10px;display:flex}.auth-switch+.hint{text-align:center;font-size:10px}.companies-panel{margin-top:25px}.company-item{display:flex;align-items:center;gap:16px;padding:24px;border-top:1px solid var(--line)}.company-symbol{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:12px;background:#eef3e8;color:#789766;flex-shrink:0}.company-info{flex:1;min-width:0}.company-info h2{font-size:15px;overflow-wrap:anywhere}.company-info p{font-size:12px;color:#778c6e;margin-top:5px;letter-spacing:.5px}.company-info small{display:block;font-size:10px;color:#929f88;margin-top:7px;overflow-wrap:anywhere}.company-actions{display:flex;align-items:center;gap:8px}.company-actions .button{font-size:11px;padding:8px 13px;min-height:36px}.workspace strong{overflow:hidden;text-overflow:ellipsis;max-width:150px}.breadcrumb{overflow:hidden;white-space:nowrap}.account strong{max-width:125px}.auth-story>.brand img{background:transparent}.auth-panel input[name=cnpj]{text-transform:uppercase}
@media(max-width:1100px){.company-item{flex-wrap:wrap}.company-actions{width:100%;justify-content:flex-end}.company-info{min-width:150px}}
@media(max-width:650px){.company-item{padding:20px 15px;gap:12px}.company-symbol{width:34px;height:37px}.company-info h2{font-size:13px}.company-info p{font-size:11px}.company-info small{font-size:9px}.company-actions{justify-content:flex-end;border-top:1px solid #f0f3eb;padding-top:9px}.breadcrumb{max-width:65%;font-size:9px}.companies-panel{margin-top:20px}}

.credit-heading-actions{display:flex;gap:10px;flex-wrap:wrap}.credit-heading-actions .button{font-size:12px}.credit-stats .stat strong{font-size:clamp(23px,2.1vw,35px);white-space:nowrap}.credit-stats .stat>div{min-width:0}.credit-total-card{background:#eef4eb;border-color:#dce8d4}.credit-total-card strong{color:#1d503b}.credit-panel{margin-top:28px}.credit-customer{display:grid;grid-template-columns:minmax(165px,1.2fr) minmax(125px,.8fr) minmax(100px,.8fr) auto;align-items:center;gap:18px;padding:23px 25px;border-top:1px solid var(--line)}.credit-person{display:flex;align-items:center;gap:12px;min-width:0}.credit-person>div{min-width:0}.credit-avatar{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;background:#eff3e7;color:#6c8552;font-size:12px;font-weight:700}.credit-name{display:block;border:0;background:none;text-align:left;padding:6px 0;color:#37513e;font-size:13px;font-weight:650;overflow-wrap:anywhere}.credit-name:hover{text-decoration:underline}.credit-person small,.credit-balance small,.credit-state small{display:block;color:#8b9783;font-size:10px;line-height:1.6}.credit-balance strong{display:block;font-size:19px;font-weight:650;color:#38543b;margin:4px 0}.credit-balance>span{display:block;font-size:10px;color:#8b9783}.credit-state small{margin-top:7px}.credit-actions{display:flex;gap:7px;justify-content:flex-end}.credit-actions .button{font-size:11px;padding:9px 11px;min-height:40px}.credit-page-note{margin:18px 4px 0}.credit-stock-note{background:#f5f7ef;border:1px solid #e8eddf;padding:12px;border-radius:9px}.credit-dialog{width:min(650px,calc(100vw - 32px))}.credit-account-info{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:-12px}.credit-account-info p{font-size:12px;color:#819077}.credit-customer-note{margin-top:12px;overflow-wrap:anywhere}.credit-account-summary{display:flex;align-items:center;justify-content:space-between;background:#eff4e9;border:1px solid #e1e9d8;border-radius:13px;padding:20px;margin:20px 0 14px;gap:12px}.credit-account-summary>span{font-size:11px;color:#7b8f6d}.credit-account-summary strong{display:block;font-size:32px;letter-spacing:-1px;color:#214f38;margin-top:7px}.credit-account-summary>div{text-align:right}.credit-account-summary small{display:block;font-size:11px;color:#ae7754;margin-top:8px}.credit-account-actions{display:flex;gap:10px}.credit-account-actions .button{flex:1;font-size:12px}.credit-history-title{font-size:14px;margin-top:30px;display:flex;align-items:center;justify-content:space-between;gap:10px}.credit-history-title>span{font-size:10px;font-weight:400;color:#9aa48f}.credit-ledger{margin-top:14px;border-top:1px solid var(--line)}.credit-entry{display:flex;gap:11px;padding:18px 0;border-bottom:1px solid var(--line)}.credit-entry-icon{width:32px;height:32px;display:grid;place-items:center;background:#fbf1e3;color:#b8935f;border-radius:9px;flex-shrink:0}.credit-entry-icon svg{width:17px;height:17px}.credit-entry-icon.payment{background:#edf4e7;color:#6e9455}.credit-entry-info{min-width:0;flex:1}.credit-entry-info strong{font-size:12px}.credit-entry-info p{font-size:11px;color:#7e8b77;margin-top:5px;line-height:1.5;overflow-wrap:anywhere}.credit-entry-info small{display:block;font-size:10px;color:#9aa48f;margin-top:5px;line-height:1.4}.credit-entry-value{text-align:right}.credit-entry-value>strong{font-size:13px;white-space:nowrap;color:#a67d49}.credit-entry-value>strong.paid{color:#467a48}.credit-entry-value .text-button{display:block;font-size:10px;margin:6px 0 0 auto;min-height:32px}.credit-reversed-label{display:block;color:#aa8e79;font-size:10px;margin-top:6px}.credit-entry.is-reversed .credit-entry-value>strong{text-decoration:line-through;color:#9ba195}.credit-no-entries{font-size:12px;color:#8b9980;padding:24px 0;line-height:1.6}.credit-ledger-note{margin-top:16px}.credit-payment-summary{background:#edf4e7;border-radius:11px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.credit-payment-summary span{font-size:12px;color:#7d916c}.credit-payment-summary strong{font-size:22px;color:#3a653a}
@media(max-width:1200px){.credit-customer{grid-template-columns:minmax(150px,1fr) minmax(110px,.7fr) auto;gap:15px}.credit-state{grid-column:1;grid-row:2;margin-left:52px}.credit-actions{grid-column:3;grid-row:1/3}.credit-balance{grid-column:2;grid-row:1/3}.credit-state small{display:inline;margin-left:7px}.credit-stats .stat-icon{display:none}}
@media(max-width:650px){
 /* Full web: touch-friendly navigation, with no installation or service worker. */
 .sidebar{padding:13px 16px;z-index:10}.sidebar nav{position:fixed;bottom:0;left:0;right:0;top:auto;display:flex;margin:0;padding:7px 8px max(7px,env(safe-area-inset-bottom));gap:4px;background:#fff;border-top:1px solid #e2e9dc;box-shadow:0 -5px 24px #254b2909;backdrop-filter:none;z-index:12}.sidebar{backdrop-filter:none}.nav-item{flex:1;min-width:0;min-height:54px;flex-direction:column;gap:5px;padding:7px 3px;border-radius:10px;font-size:10px}.nav-item svg{width:20px;height:20px}.nav-item.active{background:#edf4e8;color:#255439}.app-shell{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.main-footer{padding-bottom:8px}.account .avatar{width:37px;height:37px}.logout{min-height:44px;padding:0 7px}.button,.filter-chip,.row-actions button{min-height:44px}.row-actions button{height:44px;min-width:44px}.text-button{min-height:40px}.auth-panel input,.form-grid input,.form-grid textarea,.form-grid select,.stack input,.stack select,.stack textarea,.filters input,.filters select{font-size:16px;min-height:44px}.form-grid label,.stack label{font-size:12px}.form-grid{grid-template-columns:1fr}.form-grid label{grid-column:1/-1}.credit-heading{align-items:flex-start;flex-wrap:wrap}.credit-heading h1{font-size:32px}.credit-heading-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:9px;margin-top:4px}.credit-heading-actions .button{font-size:12px}.credit-stats{grid-template-columns:1fr 1fr;gap:10px}.credit-total-card{grid-column:1/-1;padding:20px}.credit-total-card .stat-icon{display:flex;width:44px;height:44px}.credit-stats .stat>div>span{font-size:11px;max-width:none;min-height:0}.credit-stats .stat strong{font-size:24px;letter-spacing:-.7px}.credit-stats .credit-total-card strong{font-size:36px}.credit-stats .stat small{font-size:10px}.credit-stats .stat:not(.credit-total-card){padding:16px 14px}.credit-panel{margin-top:22px}.credit-panel .panel-heading{padding:20px 16px 18px}.credit-panel .panel-heading p{font-size:11px;line-height:1.6;max-width:none}.credit-filters .search{flex-basis:100%}.credit-filters select{flex-basis:100%;font-size:14px}.credit-customer{grid-template-columns:minmax(0,1fr) auto;padding:20px 16px;gap:13px 8px}.credit-person{grid-column:1/-1;grid-row:1}.credit-name{font-size:14px;min-height:32px}.credit-person small{font-size:11px}.credit-avatar{width:40px;height:40px}.credit-balance{grid-column:1;grid-row:2;text-align:left}.credit-balance small{font-size:10px}.credit-balance strong{font-size:23px}.credit-state{grid-column:2;grid-row:2;margin:0;text-align:right}.credit-state small{display:block;font-size:10px;max-width:130px;margin:6px 0 0}.credit-actions{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:9px}.credit-actions .button{font-size:12px;min-height:44px}.credit-actions .button:only-child{grid-column:1/-1}.credit-page-note{font-size:11px;margin:16px 0}.credit-dialog{padding:22px 18px;width:calc(100vw - 20px);max-height:calc(100dvh - 28px)}.credit-dialog .modal-heading{margin-bottom:22px}.credit-dialog .modal-heading h2{font-size:23px;overflow-wrap:anywhere}.credit-account-summary{padding:17px 14px}.credit-account-summary strong{font-size:29px}.credit-account-actions .button{font-size:11px;padding:10px 8px;gap:5px}.credit-entry{gap:8px}.credit-entry-icon{width:27px;height:29px}.credit-entry-info strong{font-size:11px}.credit-entry-info p{font-size:11px}.credit-entry-value>strong{font-size:12px}.credit-entry-value .text-button{min-height:40px;font-size:11px}.credit-payment-summary{padding:14px}.credit-payment-summary strong{font-size:23px}#toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:13px;z-index:30}.topbar{padding-inline:16px}.connection span{font-size:9px}.credit-account-info .text-button{font-size:11px}input[type=date]{min-width:0}
}
@media(max-width:360px){
 .credit-account-actions{display:grid;grid-template-columns:1fr}.credit-account-actions .button{width:100%;min-width:0}.credit-history-title{flex-wrap:wrap}.credit-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.credit-entry-icon{display:none}.credit-entry-value{min-width:0}.credit-entry-value>strong{font-size:11px}.form-actions{flex-direction:column-reverse;align-items:stretch}.form-actions .button{white-space:normal;width:100%}.credit-account-summary{flex-wrap:wrap}.credit-account-summary>div{text-align:left}.credit-stats .stat:not(.credit-total-card) strong{font-size:18px}.credit-heading-actions .button{font-size:11px;padding-inline:8px}
}

@media(max-width:650px){
 .demo-bar{position:fixed;inset:0 0 auto;height:0px}
 .auth-shell{margin-top:0px}
 #app{
  position:fixed;
  inset:0px 0 0;
  height:var(--mobile-app-height,auto);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  grid-template-columns:minmax(0,1fr);
  min-height:0;
  padding:0;
  overflow:hidden;
 }
 .sidebar{position:relative;inset:auto;grid-row:1;min-width:0;width:100%;height:auto}
 .main-area{grid-row:2;min-height:0;min-width:0;width:100%;margin:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
 #app>.app-navigation{
  position:relative;
  inset:auto;
  grid-row:3;
  z-index:10;
  display:flex;
  flex-flow:row nowrap;
  align-items:stretch;
  gap:4px;
  width:auto;
  max-width:none;
  margin:0;
  padding:7px max(8px,env(safe-area-inset-right,0px)) 7px max(8px,env(safe-area-inset-left,0px));
  border-top:1px solid #e2e9dc;
  background:#fff;
  box-shadow:0 -5px 24px #254b2909;
 }
 .app-navigation .nav-item{
  flex:1 1 0;
  width:0;
  min-width:0;
  min-height:54px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin:0;
  padding:7px 2px;
  border-radius:10px;
  font-size:10px;
  line-height:1.3;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  touch-action:manipulation;
 }
 .app-navigation .nav-item svg{width:20px;height:20px}
 #toast{bottom:calc(var(--navigation-height,70px) + 16px);z-index:50}
}
@supports(height:100dvh){
 @media(max-width:650px){#app{height:var(--mobile-app-height,calc(100dvh - 0px));bottom:auto}}
}
@media(max-width:360px){.app-navigation .nav-item{font-size:9px;white-space:nowrap;overflow-wrap:normal}}

/* Ajustes da versão de produção (sem a faixa de demonstração). */
.sidebar{top:0}
/* Ocultos (não removidos): o app.js ainda atualiza esses elementos. */
.help-card,.topbar,.main-footer{display:none!important}

/* Conta e "Sair" num só bloco: perfil à esquerda, ícone de sair à direita. */
.sidebar-bottom{display:flex;align-items:center;gap:4px;padding-top:12px;border-top:1px solid var(--line)}
.account{flex:1;min-width:0;border-top:0;padding:8px 6px;border-radius:10px}
.account>span:nth-child(2){min-width:0}
.account strong{max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account small{line-height:1.35}
.account>span:last-child{display:none}
.account:hover{background:#f2f5ef}
.logout{font-size:0;gap:0;width:40px;height:40px;min-height:0;padding:0;justify-content:center;border-radius:10px;flex-shrink:0}
.logout svg{display:block;width:18px;height:18px}
.logout:hover{background:#f8ece8;color:#a14e3e}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased}

/* Legibilidade em qualquer tela: nenhum texto de uso frequente abaixo de 11px. */
.eyebrow{font-size:10px}
.connection,.connection span{font-size:11px}
label,.form-grid label,.stack label{font-size:12px}
.hint{font-size:12px}
.status{font-size:11px;padding:5px 10px}
.product-code,.minimum{font-size:11px}
.stat small,.stat>div>span{font-size:11px}
.row-actions button,.row-actions .action-label{font-size:11px}
.company-info small,.team-person small,.movement-info p,.movement-number small,.team-item .status{font-size:11px}
.company-actions .button{font-size:12px}
.history-item .text-button{font-size:11px}
.panel-footer,.auth-foot,.main-footer{font-size:11px}
.modal-heading .eyebrow{font-size:10px}
.credit-person small,.credit-balance small,.credit-state small,.credit-balance>span,.credit-entry-info small,.credit-history-title>span{font-size:11px}
.credit-entry-value .text-button{font-size:11px}
.credit-state small{display:block;margin-top:7px}
.row-actions button{height:34px}
.logout{min-height:32px}
.credit-name{min-height:32px}
.breadcrumb{min-width:0}
.breadcrumb strong{white-space:nowrap}
.product-name,.credit-name,.movement-info strong,.team-person strong,.company-info h2{overflow-wrap:anywhere}
dialog{overscroll-behavior:contain}

/* Administrador: lista de usuários */
.users-summary{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 18px}
.users-summary span{font-size:12px;color:#6f7e74;background:#f3f6ef;border:1px solid #e6ece0;border-radius:20px;padding:6px 12px}
.users-summary strong{color:#244b37;font-size:13px}
.users-group+.users-group{margin-top:22px}
.users-group h3{font-size:13px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.users-group h3 small{font-size:11px;font-weight:400;color:#8b968c}
.users-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #f0f3ec}
.users-person{flex:1;min-width:0}
.users-person strong{display:block;font-size:13px;overflow-wrap:anywhere}
.users-person small{display:block;font-size:11px;color:#8e9a86;margin-top:3px;overflow-wrap:anywhere}
.users-note{margin-top:16px}
#company-list .company-actions{flex-wrap:wrap}

/* Em telas de toque não existe "passar o mouse": sem realces presos após o toque. */
@media (hover:none){
 .nav-item:hover:not(.active),.text-button:hover,.row-actions button:hover{background:transparent}
 .product-name.editable:hover,.credit-name:hover{text-decoration:none}
}

/* Menu lateral e tabela: rótulos legíveis no computador e no tablet. */
th{font-size:10px}
.nav-caption{font-size:10px}
.workspace small,#user-role,.help-card p{font-size:11px}

/* Tablet e notebook pequeno: menu lateral estreito, conteúdo sem aperto. */
@media (min-width:651px) and (max-width:1200px){
 .row-actions button{height:38px;min-width:38px}
 .logout{min-height:36px}
 .history-item .text-button,.credit-entry-value .text-button{min-height:36px}
 .credit-name{min-height:36px}
}
@media (min-width:651px) and (max-width:1000px){
 .stat>div>span,.stat small{font-size:11px}
 .product-name{max-width:none}
 .history-item .text-button{font-size:11px;padding:8px}
 .company-actions .button{min-height:40px}
 .credit-customer{grid-template-columns:minmax(0,1fr) auto;row-gap:16px}
 .credit-state small{margin-top:6px}
}

/* Telas de toque (celular, iPad, tablet Android): áreas de toque de 44px. */
@media (pointer:coarse){
 .row-actions button,.icon-button{min-height:44px;min-width:44px}
 .logout,.text-button,.filter-chip,.credit-name,.account{min-height:44px}
 .product-name.editable{padding:13px 0;margin:-13px 0}
 input,select,textarea{font-size:16px}
}

/* Celular */
@media (max-width:650px){
 /* Campos com 16px: o iPhone não dá zoom ao tocar. */
 input,select,textarea,.filters select,.history-filters input{font-size:16px}
 .search input{font-size:16px}

 /* Topo */
 .sidebar{padding-top:max(12px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .avatar{width:38px;height:38px;font-size:13px}
 .account{min-height:44px;min-width:44px;justify-content:center}
 .sidebar-bottom{border-top:0;padding-top:0;gap:2px}
 .account{flex:0 0 auto;padding:0}
 .account:hover{background:transparent}
 .logout{width:44px;height:44px}
 .logout svg{display:block;width:20px;height:20px}
 .topbar{height:44px;padding:0 16px;font-size:11px;gap:12px}
 .breadcrumb{font-size:11px;gap:7px;overflow:hidden;white-space:nowrap;max-width:none;flex:1}
 .breadcrumb>*{overflow:hidden;text-overflow:ellipsis}
 .connection{flex-shrink:0}

 /* Cabeçalho das páginas */
 .page-heading{flex-wrap:wrap;align-items:flex-end}
 .page-heading>div{flex:1 1 180px;min-width:0}
 .page-heading .eyebrow{font-size:10px;letter-spacing:1.2px}
 .page-heading h1{font-size:28px}
 .page-heading p{font-size:13px;max-width:none}
 .page-heading>.button{font-size:13px;min-height:44px;padding:10px 14px}
 .credit-heading-actions{width:100%}
 .credit-heading-actions .button{flex:1;min-height:44px;font-size:13px}

 /* Cartões de resumo */
 .stat>div>span{font-size:11px;min-height:0;max-width:none}
 .stat small,.credit-stats .stat small{font-size:11px}
 .stat strong{font-size:26px}
 .credit-stats .stat strong{font-size:19px}

 /* Ações rápidas */
 .quick-actions strong{font-size:14px}
 .quick-actions p{font-size:12px}
 .quick-actions .button{font-size:13px;min-height:48px}

 /* Painéis e filtros */
 .panel-heading p{font-size:12px;max-width:none}
 .panel-heading .text-button{font-size:12px;min-height:44px;padding:0 6px}
 .filters select,.filter-chip{min-height:44px}
 .filter-chip{font-size:13px}
 .panel-footer{font-size:11px}
 .history-filters .text-button{min-height:44px;font-size:13px}

 /* Lista de produtos */
 .product-name{font-size:14px;max-width:none}
 .product-name.editable{padding:13px 0;margin:-13px 0}
 .product-code,.minimum{font-size:11px}
 .stock-unit{font-size:12px}
 .status{font-size:11px}
 .row-actions{gap:8px}
 .row-actions button{height:44px;min-width:44px;padding:0 12px}
 .row-actions .action-label{font-size:12px}

 /* Movimentações */
 .movement-info strong{font-size:14px}
 .movement-info p{font-size:11px;max-width:none}
 .movement-info small{font-size:12px}
 .history-item .text-button{font-size:12px;min-height:44px;padding:0 10px}
 .movement-number small{font-size:11px}
 .history-filters label{font-size:12px}
 .stat small{font-size:11px}
 .team-item .status{font-size:11px}

 /* Equipe e empresas */
 .team-person strong{font-size:14px}
 .team-actions .text-button{font-size:13px;min-height:44px}
 .company-info h2{font-size:15px}
 .company-info p{font-size:12px}
 .company-info small{font-size:11px}
 .company-actions .button,.company-actions .text-button{min-height:44px;font-size:13px}

 /* Fiado */
 .credit-name{font-size:15px;min-height:44px;padding:10px 0}
 .credit-actions .button{min-height:44px;font-size:13px}
 .credit-entry-info strong{font-size:13px}
 .credit-entry-info p{font-size:12px}
 .credit-entry-value .text-button{font-size:12px;min-height:40px}

 /* Menu inferior: rótulos legíveis e espaço da barra de gestos do iPhone */
 #app>.app-navigation{padding-bottom:max(7px,env(safe-area-inset-bottom))}
 .app-navigation .nav-item{font-size:11px}

 /* Janelas: folha que sobe de baixo, com botões grandes */
 dialog,.credit-dialog{width:100%;max-width:100%;margin:auto 0 0;border-radius:20px 20px 0 0;max-height:92dvh;padding:20px 18px max(20px,env(safe-area-inset-bottom));border-bottom:0}
 .icon-button{width:44px;height:44px}
 .modal-heading{margin-bottom:18px}
 .modal-heading h2{font-size:21px;overflow-wrap:anywhere}
 .form-grid{grid-template-columns:1fr}
 .form-grid .span-2{grid-column:auto}
 .form-actions .button{min-height:48px;font-size:14px}
 .credit-account-summary strong{font-size:28px}
 .credit-account-actions{flex-direction:column}
 .credit-account-actions .button{min-height:48px}
 .hint{font-size:12px}
 #toast{left:16px;right:16px;transform:none;max-width:none;text-align:center;font-size:14px}

 /* Login: topo verde compacto, formulário visível sem rolar */
 .auth-story{min-height:0;padding:max(20px,env(safe-area-inset-top)) 20px 22px}
 .auth-story>div{margin-top:16px}
 .auth-story h1{font-size:30px;letter-spacing:-1px;margin:6px 0 6px}
 .auth-story h1 br{display:none}
 .auth-story p{font-size:13px}
 .auth-story p br{display:none}
 .auth-story .eyebrow{font-size:10px}
 .auth-panel{padding:24px 20px max(28px,env(safe-area-inset-bottom))}
 .auth-panel h2{font-size:24px}
 .auth-panel .intro{margin-bottom:18px;font-size:13px}
 .auth-panel .stack{gap:14px}
 .auth-panel input{padding:12px 14px}
 .auth-panel .button{min-height:50px;font-size:15px}
 .auth-switch{min-height:44px;font-size:13px}
 .auth-panel .hint{font-size:12px}
 .auth-foot{font-size:11px;margin-top:20px}
}

/* Celulares baixos: no login, o topo verde fica só com marca e título. */
@media (max-width:650px) and (max-height:700px){
 .auth-story{padding-bottom:16px}
 .auth-story>div{margin-top:10px}
 .auth-story .eyebrow,.auth-story p{display:none}
 .auth-story h1{font-size:26px;margin:0}
 .auth-panel{padding-top:18px}
 .auth-panel .eyebrow{margin-bottom:6px}
 .auth-panel h2{font-size:22px;margin-bottom:6px}
 .auth-panel .intro{margin-bottom:14px}
 .auth-panel .stack{gap:11px}
 .auth-panel .stack label{gap:5px}
 .auth-panel .button{margin-top:4px}
}

/* Celulares estreitos (até 360px) */
@media (max-width:360px){
 #main-content{padding-inline:12px}
 .stats{grid-template-columns:1fr 1fr}
 .stats>.stat:last-child{grid-column:1/-1}
 .page-heading>.button{width:100%}
 .row-actions .action-label{display:none}
 .quick-actions .action-pair{flex-direction:column}
 .credit-customer{grid-template-columns:1fr}
}
