:root{color-scheme:light;--ink:#202124;--muted:#69737d;--line:#dce4eb;--soft:#f4f7fa;--paper:#fff;--teal:#09579f;--teal-dark:#06457f;--mint:#eaf2fa;--orange:#09579f;--orange-soft:#eaf2fa;--shadow:0 8px 28px rgba(19,48,77,.07);font-family:Inter,Segoe UI,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#f4f7fa;color:var(--ink);font-size:14px}.app-shell{max-width:1440px;margin:0 auto;padding:0 28px}.topbar{min-height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand-lockup{display:flex;align-items:center;gap:13px}.brand-logo{width:190px;height:58px;overflow:hidden;flex:0 0 auto;background:transparent;border:0;border-radius:0}.brand-logo img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;transform:none}.brand-lockup h1{font-size:19px;letter-spacing:-.4px;margin:2px 0 0}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.3px;color:#607a93;margin:0 0 7px}.local-badge{font-size:12px;color:#496274;background:#eaf2fa;border:1px solid #d5e4f3;border-radius:999px;padding:9px 13px;display:flex;align-items:center;gap:8px}.status-dot{width:8px;height:8px;background:#09579f;border-radius:50%;box-shadow:0 0 0 3px #09579f22}.main-nav{display:flex;gap:7px;border-bottom:1px solid var(--line);padding:12px 0 0;overflow:auto}.nav-btn{flex:0 0 auto;border:0;background:transparent;color:#607282;padding:12px 16px 14px;font:600 13px Segoe UI,Arial,sans-serif;cursor:pointer;border-radius:9px 9px 0 0;border-bottom:3px solid transparent}.nav-btn:hover{background:#ebf3fa;color:var(--ink)}.nav-btn.active{color:var(--teal);border-bottom-color:var(--teal)}main{padding:29px 0 50px;min-height:75vh}.page{display:none}.page.active{display:block}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 22px}.page-heading h2{font-size:27px;letter-spacing:-.8px;margin:0 0 6px}.page-heading p{margin-top:0}.muted{color:var(--muted)}.heading-actions{display:flex;gap:9px;flex-wrap:wrap}.button{border:1px solid transparent;border-radius:9px;padding:10px 15px;font:600 13px Segoe UI,Arial,sans-serif;cursor:pointer;transition:transform .12s ease,background .12s ease,border .12s ease;white-space:nowrap}.button:active{transform:translateY(1px)}.button.primary{background:var(--teal);color:white;box-shadow:0 4px 9px #09579f20}.button.primary:hover{background:var(--teal-dark)}.button.secondary{background:white;border-color:var(--line);color:#34404a}.button.secondary:hover{background:var(--soft);border-color:#c5d8ea}.button.danger{background:#fff1ef;color:#a43d32;border-color:#f1d3ce}.button.small{padding:7px 10px;font-size:12px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.stat-card{min-height:135px;padding:20px 21px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start;gap:8px}.stat-label{font-size:12px;color:var(--muted);font-weight:600}.stat-card strong{font-size:31px;letter-spacing:-1px}.stat-note{font-size:11px;color:#849491}.stat-card.accent{background:#edf4fb;border-color:#d6e4f1}.stat-card.accent strong{color:var(--teal)}.home-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.intro-panel{display:flex;gap:15px;padding:21px;min-height:174px}.intro-panel h3,.quick-panel h3{margin:0 0 8px;font-size:16px}.intro-panel p{font-size:13px;line-height:1.6;color:#5e7182;margin:0 0 15px;max-width:520px}.panel-icon{flex:0 0 41px;height:41px;border-radius:12px;background:var(--mint);display:grid;place-items:center;color:var(--teal);font-size:24px;font-weight:700}.quick-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px}.quick-panel .eyebrow{margin-bottom:5px}.quick-panel p{margin:0;font-size:13px}.form-panel,.settings-panel{padding:25px 27px;margin-bottom:18px}.section-title{display:flex;align-items:flex-start;gap:12px;margin:0 0 17px}.section-title>span{flex:0 0 29px;height:29px;border-radius:9px;background:var(--mint);color:var(--teal);font-weight:800;font-size:11px;display:grid;place-items:center}.section-title h3{font-size:15px;margin:0 0 4px}.section-title p{font-size:12px;color:var(--muted);margin:0}.section-title.separated{border-top:1px solid var(--line);padding-top:21px;margin-top:25px}.form-grid{display:grid;gap:13px}.four-col{grid-template-columns:repeat(4,minmax(0,1fr))}.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}.five-col{grid-template-columns:repeat(5,minmax(0,1fr))}label{display:flex;flex-direction:column;gap:7px;color:#435669;font-size:12px;font-weight:650}input,select{width:100%;min-width:0;border:1px solid #d6e1eb;border-radius:8px;background:#fff;padding:10px 11px;color:var(--ink);font:400 13px Segoe UI,Arial,sans-serif;outline:none;transition:border .12s,box-shadow .12s}input:focus,select:focus{border-color:#7ca2c6;box-shadow:0 0 0 3px #7ca2c620}input::placeholder{color:#a4b0ae}input[readonly]{background:#f6f8fb;color:#73808b}.calc-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#d9e3ed;border:1px solid #d9e3ed;border-radius:11px;overflow:hidden;margin-top:19px}.calc-preview>div{background:#f1f6fb;padding:13px 16px;display:flex;flex-direction:column;gap:6px}.calc-preview span{font-size:11px;color:#60758a}.calc-preview strong{font-size:17px;color:var(--teal)}.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.photo-card{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fbfcfe}.photo-preview{height:150px;border:1px dashed #cedbe8;border-radius:7px;background:#f2f6fa;display:grid;place-items:center;overflow:hidden;color:#899995;font-size:12px;margin-bottom:10px}.photo-preview img{width:100%;height:100%;object-fit:contain;background:#edf2f7}.photo-card label{font-size:11px;gap:8px}.photo-card input[type=file]{font-size:11px;padding:7px;background:white}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);margin-top:22px;padding-top:17px}.form-footer>div{display:flex;gap:8px}.list-panel{padding:21px 23px;margin-top:18px}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.list-heading h3{font-size:16px;margin:0 0 5px}.list-heading p{font-size:12px;margin:0}.search-control{position:relative;width:min(340px,100%)}.search-control>span{position:absolute;left:12px;top:8px;font-size:21px;color:#758295}.search-control input{padding-left:37px}.table-wrap{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:780px}th{text-align:left;background:#edf2f7;padding:11px 10px;font-size:10px;color:#657589;text-transform:uppercase;letter-spacing:.55px;font-weight:800;white-space:nowrap}td{padding:10px;border-bottom:1px solid #e8edf3;font-size:12px;color:#404d59;vertical-align:middle}tbody tr:hover{background:#fbfcfe}.row-actions{display:flex;justify-content:flex-end;gap:5px}.text-button{border:0;background:transparent;color:var(--teal);font:700 11px Segoe UI,Arial,sans-serif;padding:6px;cursor:pointer}.text-button.delete{color:#a54a3e}.empty-row{text-align:center;color:#828c97;padding:24px}.pagination{display:flex;align-items:center;justify-content:space-between;padding-top:13px;color:var(--muted);font-size:12px}.pagination>div{display:flex;gap:6px}.consult-search-panel{padding:21px 24px;position:relative;max-width:820px}.consult-search-panel>label{margin-bottom:8px}.large-search{display:flex;align-items:center;gap:10px;border:1px solid #b9cee4;border-radius:11px;padding:3px 8px 3px 14px;background:#fff;box-shadow:0 0 0 4px #09579f08}.large-search span{font-size:24px;color:var(--teal)}.large-search input{border:0;box-shadow:none!important;padding:13px 0;font-size:16px}.large-search button{border:0;background:#edf3f9;border-radius:7px;width:31px;height:31px;color:#5f7184;font-size:20px;cursor:pointer}.helper-text{font-size:11px;color:var(--muted);margin:11px 0 0}.consult-result{margin-top:17px}.empty-state{min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#fbfcfd;border:1px dashed #d1dce6;border-radius:14px;padding:35px}.empty-state h3{margin:11px 0 4px}.empty-state p{margin:0;color:var(--muted);font-size:13px}.empty-icon{width:49px;height:49px;display:grid;place-items:center;background:#eaf2fa;color:var(--teal);font-size:28px;border-radius:15px}.consult-card{padding:24px}.consult-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.consult-card-header h3{font-size:21px;margin:0 0 5px}.consult-code{display:inline-block;color:var(--teal);font-size:11px;font-weight:800;background:#eaf2fa;padding:6px 9px;border-radius:6px}.price-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.price-card{background:#f3f7fb;border:1px solid #d7e4ef;border-radius:11px;padding:15px}.price-card.emphasis{background:#eaf2fa;border-color:#cddded}.price-card span{font-size:11px;color:#667e97;display:block;margin-bottom:8px}.price-card strong{font-size:20px;color:var(--teal);letter-spacing:-.4px}.spec-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 20px}.spec-cell{padding:11px 12px;background:#f6f8fb;border-radius:8px}.spec-cell span{display:block;color:#7b8791;font-size:10px;margin-bottom:5px}.spec-cell strong{font-size:13px}.material-breakdown{border-collapse:collapse;min-width:500px;margin:8px 0 20px}.material-breakdown th{background:#edf3f9}.photo-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.gallery-photo{margin:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#f5f8fb}.gallery-photo img{display:block;width:100%;height:180px;object-fit:contain;background:#edf3f9}.gallery-photo figcaption{font-size:11px;font-weight:650;color:#62768a;padding:9px 10px}.purchase-panel{padding:20px 22px;margin-bottom:18px}.purchase-meta{display:grid;grid-template-columns:1.35fr 1fr .75fr .8fr;gap:12px;margin-bottom:18px;align-items:end}.margin-chip{min-height:38px;border:1px solid #d7e4ef;background:#edf4fa;border-radius:8px;display:flex;align-items:center;justify-content:space-between;padding:8px 11px;font-size:11px;color:#637589}.margin-chip strong{font-size:13px;color:var(--teal)}.purchase-table{min-width:890px}.purchase-table th{background:#09579f;color:#fff}.purchase-table td{padding:7px 8px}.purchase-table input,.purchase-table select{padding:8px;font-size:12px}.purchase-table .qty-input{max-width:130px}.purchase-table .mode-select{min-width:115px}.purchase-table .price-cell,.purchase-table .total-cell{font-weight:700;white-space:nowrap}.purchase-table .search-cell{min-width:290px}.lookup-wrap{position:relative}.suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:15;background:#fff;border:1px solid #d0dcea;border-radius:9px;box-shadow:0 10px 24px #102a2722;max-height:250px;overflow:auto}.suggestions.hidden{display:none}.suggestion-option{width:100%;text-align:left;border:0;border-bottom:1px solid #edf2f7;background:#fff;padding:10px 12px;cursor:pointer;color:#33404a;font:400 12px Segoe UI,Arial,sans-serif}.suggestion-option:hover{background:#edf4fb}.suggestion-option:last-child{border-bottom:0}.suggestion-option small{display:block;color:#808c96;font-size:10px;margin-top:3px}.purchase-summary{display:flex;align-items:center;justify-content:flex-end;gap:20px;border-top:1px solid var(--line);margin-top:12px;padding:15px 2px}.purchase-summary span{font-size:13px;color:var(--muted)}.purchase-summary strong{font-size:23px;color:var(--teal)}.purchase-meta+div{margin-top:4px}.settings-panel{max-width:1050px}.margin-setting{display:grid;grid-template-columns:260px 1fr;gap:14px;align-items:end}.example-box{min-height:60px;border:1px solid #d6e4f3;background:#f5f8fc;border-radius:9px;padding:10px 13px;display:flex;flex-direction:column;gap:4px;color:#3c5d7c;font-size:12px}.example-box b{font-size:11px;text-transform:uppercase;letter-spacing:.5px}.notice-card{max-width:1050px;display:flex;gap:12px;align-items:flex-start;padding:15px 17px;border:1px solid #d9e5f0;background:#f5f8fc;border-radius:10px;color:#495b6d;margin-top:15px}.notice-card p{margin:0;font-size:12px;line-height:1.55}.notice-icon{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;background:#e2edf7;border-radius:50%;font-size:12px;font-weight:800;color:#09579f}.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;max-width:1000px}.backup-card{padding:24px;min-height:230px}.backup-card h3{font-size:17px;margin:14px 0 7px}.backup-card p{font-size:13px;line-height:1.6;color:var(--muted);min-height:57px;margin:0 0 18px}.backup-icon{width:41px;height:41px;border-radius:12px;background:#eaf2fa;color:var(--teal);display:grid;place-items:center;font-size:22px;font-weight:700}.file-button{display:inline-flex;position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.backup-progress{max-width:1000px;margin-top:14px;padding:12px 15px;background:#edf4fb;border-radius:8px;color:#315679;font-size:12px}.backup-progress.hidden{display:none}footer{border-top:1px solid var(--line);padding:15px 0 19px;display:flex;justify-content:space-between;color:#828c97;font-size:11px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#173b60;color:white;padding:12px 17px;border-radius:9px;box-shadow:0 8px 25px #0d315033;font-size:13px;transition:all .18s;z-index:50}.toast.visible{transform:translate(-50%,0);opacity:1}.toast.error{background:#8d3a31}.hidden{display:none!important}
@media(max-width:1000px){.app-shell{padding:0 18px}.four-col{grid-template-columns:repeat(2,1fr)}.five-col{grid-template-columns:repeat(3,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.purchase-meta{grid-template-columns:repeat(2,1fr)}.spec-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.app-shell{padding:0 12px}.topbar{min-height:78px}.brand-logo{width:130px;height:44px}.brand-logo img{width:100%;height:100%;transform:none}.brand-lockup h1{font-size:16px}.local-badge{font-size:0;padding:10px}.local-badge .status-dot{width:9px;height:9px}.main-nav{gap:2px}.nav-btn{padding:11px 10px;font-size:12px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h2{font-size:23px}.heading-actions{width:100%}.home-columns,.backup-grid{grid-template-columns:1fr}.quick-panel{align-items:flex-start;flex-direction:column}.stats-grid{gap:8px}.stat-card{min-height:119px;padding:15px}.stat-card strong{font-size:27px}.form-panel,.settings-panel,.list-panel,.purchase-panel{padding:17px 14px}.three-col,.four-col,.five-col{grid-template-columns:1fr 1fr}.photo-grid{grid-template-columns:1fr 1fr}.photo-preview{height:125px}.calc-preview{grid-template-columns:1fr}.calc-preview>div{padding:10px 13px}.list-heading{align-items:flex-start;flex-direction:column}.search-control{width:100%}.price-cards{grid-template-columns:1fr}.price-card{padding:12px}.gallery-photo img{height:130px}.spec-grid{grid-template-columns:1fr 1fr}.purchase-meta{grid-template-columns:1fr 1fr}.margin-setting{grid-template-columns:1fr}.form-footer{align-items:flex-start;flex-direction:column}.form-footer>div{width:100%;justify-content:flex-end}.pagination{gap:12px;align-items:flex-start;flex-direction:column}footer{gap:8px;flex-direction:column}}
.remove-photo{display:block;margin:-3px 0 9px auto;border:0;background:transparent;color:#3d5e7c;font:600 10px Segoe UI,Arial,sans-serif;cursor:pointer;padding:3px 0}.remove-photo:hover{text-decoration:underline}.list-heading-actions{display:flex;align-items:center;gap:9px}.list-heading-actions .search-control{width:min(310px,55vw)}@media(max-width:650px){.list-heading-actions{width:100%;align-items:stretch;flex-direction:column-reverse}.list-heading-actions .search-control{width:100%}}
.price-input-label{gap:4px;font-size:10px;color:#718197;font-weight:600}.price-input-label input{font-size:12px}.board-prices-panel{max-width:1120px}.board-prices-table{min-width:720px}.board-prices-table td:first-child{width:150px}.board-prices-table td:nth-child(3){width:190px}.board-prices-table td:last-child{width:90px;text-align:right}
.component-editor{margin-top:16px;padding:15px 16px;border:1px solid var(--line);border-radius:11px;background:#fbfcfe}.component-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}.component-editor-heading h4{font-size:13px;margin:0 0 4px}.component-editor-heading p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}.item-boards-table{min-width:820px}.item-boards-table th{background:#edf4fa}.item-boards-table td:first-child{width:44%}.item-boards-table td:nth-child(2){width:130px}.item-boards-table td:nth-child(3){width:260px}.item-boards-table td:last-child{width:115px;text-align:right}.item-boards-table input,.item-boards-table select{padding:8px 9px;font-size:12px}.item-boards-table .empty-row{padding:17px}.board-photo-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.board-row-photo-picker{position:relative;display:inline-flex;flex:0 0 auto;overflow:hidden;margin:0;cursor:pointer}.board-row-photo-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer}.board-photo-count{color:var(--muted);font-size:11px;white-space:nowrap}.board-photo-detail-row>td{padding:12px;background:#f8fafc}.board-photo-grid{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:0}.board-photo-card .photo-preview{height:118px}.board-photo-card label{margin-bottom:10px}.board-photo-card .board-photo-label{margin-bottom:0}.board-photo-card input[type=text]{margin-top:5px}.piece-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:680px}
@media(max-width:1000px){.board-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.board-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.component-editor{padding:12px 10px}.component-editor-heading{align-items:flex-start;flex-direction:column}.component-editor-heading .button{white-space:normal}}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,#e6eff8 0,transparent 44%),#f4f7fa}.auth-card{width:min(440px,100%);padding:32px;background:#fff}.auth-logo{margin:0 auto 22px}.auth-card>.eyebrow{text-align:center}.auth-card h2{text-align:center;font-size:24px;margin:0 0 8px}.auth-card>p.muted{text-align:center;line-height:1.5;margin:0 0 22px}.auth-card form{display:grid;gap:15px}.auth-card label{gap:7px}.auth-card label>span{font-size:12px}.auth-card #authSubmit{width:100%;margin-top:2px}.auth-message{min-height:18px;margin:0;color:#a43d32;font-size:12px;text-align:center}.topbar-actions{display:flex;align-items:center;gap:10px}.photo-preview img[data-image-zoom],.gallery-photo img[data-image-zoom]{cursor:zoom-in;transition:transform .2s ease}.photo-preview img[data-image-zoom]:hover,.gallery-photo img[data-image-zoom]:hover{transform:scale(1.08)}.photo-preview img[data-image-zoom]:focus-visible,.gallery-photo img[data-image-zoom]:focus-visible{outline:3px solid #09579f;outline-offset:-3px}.image-lightbox{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:36px;background:rgba(7,20,34,.9)}.lightbox-close{position:absolute;top:17px;right:22px;width:44px;height:44px;border:1px solid #ffffff66;border-radius:50%;background:#102a42;color:#fff;font-size:30px;line-height:1;cursor:pointer}.lightbox-figure{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:100%;max-height:100%;margin:0}.lightbox-figure img{display:block;max-width:min(92vw,1400px);max-height:82vh;object-fit:contain;border-radius:8px;background:#fff;box-shadow:0 15px 55px #0006}.lightbox-figure figcaption{color:#fff;font-size:13px;text-align:center}
@media(max-width:650px){.auth-card{padding:24px 19px}.auth-logo{transform:scale(.88);transform-origin:top center;margin-bottom:13px}.topbar-actions{gap:6px}.image-lightbox{padding:18px}.lightbox-figure img{max-width:94vw;max-height:80vh}.lightbox-close{top:9px;right:10px}}
.catalog-table{min-width:1060px}.catalog-photo-cell{width:96px}.catalog-photo-button{width:78px;min-height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid transparent;border-radius:8px;background:transparent;padding:3px;cursor:pointer}.catalog-photo-button:hover{background:#edf4fa;border-color:#d6e4f1}.catalog-photo-button img,.catalog-photo-placeholder{display:grid;width:66px;height:48px;place-items:center;object-fit:contain;border-radius:5px;background:#edf3f9;color:#8493a2;font-size:10px;transition:transform .18s ease}.catalog-photo-button:hover img{transform:scale(1.08)}.catalog-photo-button small{color:var(--teal);font-size:10px;font-weight:700}.catalog-photo-button:focus-visible{outline:3px solid #09579f;outline-offset:1px}
.catalog-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.catalog-toolbar>select{width:190px;background:#fff}.catalog-toolbar .search-control{width:min(320px,30vw)}.catalog-toolbar .button{min-height:38px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.product-card{min-width:0;overflow:hidden;border:1px solid #d7e3ed;border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(19,48,77,.06);transition:transform .16s ease,box-shadow .16s ease}.product-card:hover{transform:translateY(-2px);box-shadow:0 9px 23px rgba(19,48,77,.12)}.product-card-image{position:relative;display:grid;width:100%;height:210px;place-items:center;overflow:hidden;border:0;border-bottom:1px solid #e5ecf2;background:#f5f8fb;padding:10px;cursor:pointer}.product-card-image img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .2s ease}.product-card-image:hover img{transform:scale(1.045)}.product-card-placeholder{display:grid;place-items:center;width:100%;height:100%;border:1px dashed #d1dce6;border-radius:7px;color:#7c8a96;font-size:12px}.product-card-image-hint{position:absolute;inset:auto 0 0;display:flex;justify-content:center;padding:9px;background:rgba(9,87,159,.92);color:#fff;font-size:11px;font-weight:700;opacity:0;transform:translateY(5px);transition:all .16s ease}.product-card-image:hover .product-card-image-hint,.product-card-image:focus-visible .product-card-image-hint{opacity:1;transform:translateY(0)}.product-card-content{padding:14px 15px}.product-card-identification{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.product-card-code{color:var(--teal);font-size:11px;font-weight:800;letter-spacing:.2px}.product-card-brand{overflow:hidden;color:#74808a;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.product-card-content h4{min-height:38px;margin:0 0 5px;color:#263544;font-size:14px;line-height:1.35}.product-card-model{min-height:16px;margin:0;color:#758493;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-card-weight{display:flex;justify-content:space-between;gap:10px;margin:13px 0 10px;padding-top:10px;border-top:1px solid #edf1f5;color:#6d7b87;font-size:11px}.product-card-weight strong{color:#364958;font-size:12px}.product-card-prices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.product-card-prices>div{min-width:0;padding:9px;border-radius:8px;background:#f1f6fa}.product-card-prices span{display:block;min-height:25px;margin-bottom:4px;color:#6b7d8d;font-size:9px;line-height:1.25}.product-card-prices strong{display:block;overflow:hidden;color:var(--teal);font-size:14px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.product-card-actions{display:flex;align-items:center;gap:6px;border-top:1px solid #edf1f5;padding-top:10px}.product-card-actions .button{flex:1;min-width:0;padding:7px 8px;text-align:center}.product-card-actions .text-button{padding:6px 3px}.product-empty{grid-column:1/-1;display:flex;min-height:180px;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #cfdae4;border-radius:12px;background:#fbfcfd;color:#405363;text-align:center}.product-empty span{color:#77848f;font-size:12px}
@media(max-width:1150px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-toolbar .search-control{width:250px}}
@media(max-width:850px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-toolbar{width:100%}.catalog-toolbar .search-control{flex:1;min-width:210px}}
@media(max-width:520px){.product-grid{grid-template-columns:1fr}.product-card-image{height:230px}.catalog-toolbar{align-items:stretch;flex-direction:column}.catalog-toolbar>select,.catalog-toolbar .search-control{width:100%;min-width:0}.catalog-toolbar .button{width:100%}.product-card-actions .button{flex:1.3}}

.module-chooser{min-height:100vh;display:grid;place-items:center;padding:26px;background:radial-gradient(circle at 50% 0,#e2effb 0,transparent 48%),linear-gradient(135deg,#f4f7fa,#eaf2f9)}
.module-chooser-card{width:min(820px,100%);padding:clamp(25px,5vw,48px);border:1px solid #d8e5f1;border-radius:23px;background:#fff;box-shadow:0 22px 58px rgba(11,50,88,.14);text-align:center}
.module-chooser-logo{display:block;width:min(390px,88%);height:auto;max-height:110px;object-fit:contain;object-position:center;margin:0 auto 24px}
.module-chooser-eyebrow{margin:0 0 8px;color:#1762a4;font-size:10px;font-weight:850;letter-spacing:1.5px}
.module-chooser-card h1{margin:0;color:#193b5c;font-size:clamp(25px,4vw,34px);letter-spacing:-.7px}
.module-chooser-description{margin:8px 0 0;color:#6c7d8e;font-size:14px}
.module-chooser-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;max-width:700px;margin:31px auto 0}
.module-chooser-option{display:flex;align-items:center;gap:13px;min-width:0;min-height:104px;padding:19px 17px;border:1px solid #d6e4f1;border-radius:15px;background:#f9fbfd;color:#213b53;text-align:left;text-decoration:none;cursor:pointer;box-shadow:0 3px 10px rgba(18,55,88,.04);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease}
.module-chooser-option:hover,.module-chooser-option:focus-visible{transform:translateY(-2px);border-color:#72a9d8;background:#fff;box-shadow:0 10px 22px rgba(9,87,159,.12);outline:none}
.module-chooser-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:13px;background:#e6f0f8;color:#09579f;font-size:24px;font-weight:750}
.module-chooser-option>span:nth-child(2){display:grid;gap:5px;min-width:0}
.module-chooser-option strong{color:#174d7d;font-size:14px;line-height:1.3}
.module-chooser-option small{color:#718090;font-size:11px;line-height:1.4}
.module-chooser-arrow{margin-left:auto;color:#3178b4;font-size:27px;line-height:1}
.module-chooser-logout{margin-top:22px;border:0;background:transparent;color:#6b7d8e;font:600 12px Segoe UI,Arial,sans-serif;text-decoration:underline;cursor:pointer}
@media(max-width:620px){.module-chooser{padding:14px}.module-chooser-card{padding:25px 17px;border-radius:17px}.module-chooser-logo{width:min(330px,90%);max-height:86px;margin-bottom:21px}.module-chooser-actions{grid-template-columns:1fr;gap:11px;margin-top:24px}.module-chooser-option{min-height:82px;padding:15px}.module-chooser-icon{width:42px;height:42px;flex-basis:42px}}

/* Fotos centralizadas e completas; a margem livre mantém as bordas visíveis no efeito de aproximação. */
.product-card-image{padding:14px}
.product-card-image img,.photo-preview img,.gallery-photo img,.lightbox-figure img{object-fit:contain;object-position:center center;transform-origin:center center}
.photo-preview{padding:12px}
.gallery-photo{display:flex;flex-direction:column;align-items:stretch;padding:12px;gap:7px}
.gallery-photo img{margin-bottom:14px}
.gallery-photo figcaption{padding:4px 2px 0}

/* Limita a caixa da foto e preserva a proporção original para mostrar a imagem completa. */
.product-card-image img{width:auto;height:auto;max-width:88%;max-height:88%;object-fit:contain;object-position:center center;justify-self:center;align-self:center}
.photo-preview img{width:auto;height:auto;max-width:88%;max-height:110px;object-fit:contain;object-position:center center;justify-self:center;align-self:center}
.gallery-photo{align-items:center}
.gallery-photo img{width:auto;height:auto;max-width:88%;max-height:150px;object-fit:contain;object-position:center center;align-self:center}
.gallery-photo figcaption{align-self:stretch}
.catalog-photo-button img{width:88%;height:88%;object-fit:contain;object-position:center center}
.lightbox-figure img{width:auto;height:auto;max-width:min(94vw,1400px);max-height:82vh;object-fit:contain;object-position:center center}

/* Não pinta um fundo sobre fotos PNG com transparência. */
.product-card-image,.product-card-image img,.photo-preview,.photo-preview img,.gallery-photo,.gallery-photo img,.catalog-photo-button img,.lightbox-figure img{background:transparent}
.component-add-controls{display:flex;align-items:flex-end;gap:8px;flex:0 0 auto}.component-add-controls label{width:92px;gap:4px;font-size:10px}.component-add-controls input{padding:8px 9px;font-size:12px}.board-row-photo-picker{flex-direction:row;align-items:center;gap:0}.board-photo-card label{display:block}.board-photo-card .board-photo-label{width:100%;margin-top:5px}
@media(max-width:650px){.component-add-controls{width:100%;flex-wrap:wrap}.component-add-controls label{width:84px}}

/* Acabamento visual Valmarc */
:root{--ink:#1b2a3d;--muted:#687a90;--line:#dfe7f0;--soft:#f4f7fb;--paper:#fff;--teal:#135f9c;--teal-dark:#0d4b7c;--mint:#eaf3fc;--shadow:0 12px 34px rgba(21,46,76,.075);accent-color:#135f9c}
html{scroll-behavior:smooth}
body{background:radial-gradient(ellipse at 15% 0,rgba(196,220,245,.38),transparent 32%),linear-gradient(180deg,#f3f7fb 0,#f7f9fc 340px,#f4f7fb 100%);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif}
.app-shell{max-width:1480px}
.topbar{position:relative;isolation:isolate;min-height:96px;margin:0 -28px;padding:17px 30px;border:0;border-radius:0 0 18px 18px;background:linear-gradient(112deg,#0c2038 0%,#103e68 56%,#146ba4 100%);box-shadow:0 12px 28px rgba(10,39,69,.18);overflow:hidden}
.topbar:after{content:"";position:absolute;z-index:-1;right:-70px;top:-130px;width:390px;height:300px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.025),0 0 0 58px rgba(255,255,255,.02)}
.brand-lockup,.topbar-actions{position:relative;z-index:1}
.brand-lockup{gap:15px}
.brand-logo{border:1px solid rgba(255,255,255,.55);border-radius:10px;box-shadow:0 5px 16px rgba(0,0,0,.14)}
.brand-lockup h1{color:#fff;font-weight:760;letter-spacing:-.45px}
.topbar .eyebrow{color:#c2d9ef}
.local-badge{color:#eff7ff;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.1);backdrop-filter:blur(6px)}
.status-dot{background:#65d6a0;box-shadow:0 0 0 3px rgba(101,214,160,.18)}
.topbar .button.secondary{color:#fff;border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.1)}
.topbar .button.secondary:hover{border-color:rgba(255,255,255,.48);background:rgba(255,255,255,.19)}
.main-nav{position:sticky;top:8px;z-index:25;gap:5px;margin-top:16px;padding:6px;border:1px solid #e0e8f1;border-bottom:1px solid #e0e8f1;border-radius:14px;background:rgba(255,255,255,.95);box-shadow:0 8px 22px rgba(17,44,74,.07);backdrop-filter:blur(10px)}
.nav-btn{padding:11px 15px;border:0;border-radius:9px 9px 9px 9px;color:#5f7187;font-weight:680;transition:color .15s ease,background .15s ease,box-shadow .15s ease}
.nav-btn:hover{color:#174f7d;background:#f0f6fc}
.nav-btn.active{color:#104e80;border-bottom-color:transparent;background:#eaf3fc;box-shadow:inset 0 0 0 1px #d8e8f7}
.nav-btn:focus-visible,.button:focus-visible,.text-button:focus-visible{outline:3px solid rgba(19,95,156,.28);outline-offset:2px}
main{padding:31px 0 58px}
.page-heading{margin-bottom:24px}
.page-heading .eyebrow{color:#3977a7}
.page-heading h2{color:#142c45;font-size:29px;font-weight:760;letter-spacing:-.9px}
.page-heading .muted{max-width:760px;line-height:1.6}
.panel,.stat-card{border-color:#e1e8f0;border-radius:16px;box-shadow:0 8px 24px rgba(23,51,81,.055)}
.panel{background:rgba(255,255,255,.97)}
.stats-grid{gap:15px;margin-bottom:18px}
.stat-card{position:relative;min-height:142px;padding:21px 22px;gap:9px;overflow:hidden}
.stat-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#155f9c,#80b9e5)}
.stat-card.accent{background:linear-gradient(145deg,#f2f8fe,#e9f3fc);border-color:#d7e7f5}
.stat-card.accent:before{background:linear-gradient(90deg,#0d4b7c,#35a5d1)}
.stat-label{text-transform:uppercase;letter-spacing:.07em;font-size:10px;font-weight:800;color:#63778e}
.stat-card strong{color:#163956;font-size:33px;font-weight:780}
.stat-note{color:#778ba1;line-height:1.4}
.home-columns{gap:16px;margin-bottom:16px}
.intro-panel{min-height:174px;padding:22px;border-radius:16px;transition:transform .16s ease,box-shadow .16s ease}
.intro-panel:hover,.backup-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(23,51,81,.09)}
.panel-icon,.backup-icon{border:1px solid #dceaf6;background:linear-gradient(145deg,#f2f8fe,#e4f0fb);color:#155f9c}
.intro-panel h3,.quick-panel h3{color:#1c3852;font-weight:750}
.intro-panel p{color:#64778d;line-height:1.65}
.quick-panel{padding:22px 24px;border-color:#dce8f2;background:linear-gradient(110deg,#fff,#f5f9fd);border-radius:16px}
.quick-panel .eyebrow{color:#3977a7}
.quick-panel p{color:#71849a;line-height:1.55}
.button{min-height:40px;border-radius:10px;font-weight:700;transition:transform .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease}
.button.primary{background:linear-gradient(135deg,#176aa9,#10568f);box-shadow:0 5px 12px rgba(15,87,145,.18)}
.button.primary:hover{background:linear-gradient(135deg,#125c97,#0b4779);box-shadow:0 7px 16px rgba(15,87,145,.22);transform:translateY(-1px)}
.button.secondary{border-color:#d9e3ed;color:#36516a;background:#fff}
.button.secondary:hover{border-color:#bad1e6;color:#164d7a;background:#f5f9fd;box-shadow:0 3px 9px rgba(23,63,98,.06)}
.form-panel,.settings-panel,.list-panel,.purchase-panel{border-radius:16px}
.form-panel,.settings-panel{padding:28px 30px}
.section-title{gap:13px;margin-bottom:19px}
.section-title>span{border:1px solid #d6e7f6;border-radius:10px;background:linear-gradient(145deg,#f0f7fd,#e4f0fb);color:#135f9c}
.section-title h3{color:#1a3550;font-size:16px;font-weight:740}
.section-title p{line-height:1.55}
.section-title.separated{border-top-color:#e5ebf2;padding-top:23px;margin-top:28px}
input,select{min-height:41px;border-color:#d7e1eb;border-radius:9px;color:#23364a;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
input:hover,select:hover{border-color:#bdcddd}
input:focus,select:focus{border-color:#6ba3d1;box-shadow:0 0 0 3px rgba(19,95,156,.12)}
input::placeholder{color:#a1adba}
.calc-preview{gap:2px;border-color:#dce7f0;background:#dce7f0;border-radius:12px}
.calc-preview>div{min-height:76px;justify-content:center;background:#f5f9fd;padding:14px 17px}
.calc-preview>div:nth-child(2){background:#edf5fc}
.calc-preview>div:last-child{background:#e7f2fb}
.calc-preview span{color:#667e96}
.calc-preview strong{font-size:18px;color:#135f9c}
.photo-card{border-color:#e0e7ef;border-radius:12px;background:#fbfcfe;padding:11px}
.photo-preview{border-color:#d7e2ed;border-radius:9px}
.photo-card label{color:#405970}
.component-editor{border-color:#e0e8f0;border-radius:13px;background:#f8fafc;padding:17px}
.component-editor-heading h4{color:#1b3c59;font-size:14px}
.component-editor-heading p{max-width:860px;line-height:1.6;color:#6c7f93}
.item-boards-table th,.board-prices-table th{background:#edf4fa;color:#44627e}
.table-wrap{border-radius:10px}
table{border-collapse:separate;border-spacing:0}
th{background:#edf3f8;color:#52677e;padding:12px 11px;letter-spacing:.65px}
td{padding:11px;border-bottom-color:#e9eef4;color:#405166}
tbody tr:nth-child(even){background:#fbfcfe}
tbody tr:hover{background:#f2f7fc}
.empty-row{color:#76889b}
.list-panel{padding:23px 24px}
.list-heading h3{color:#1b3853;font-weight:750}
.list-heading p{line-height:1.5}
.catalog-toolbar .search-control input,.search-control input{border-color:#dce5ee}
.product-grid{gap:17px}
.product-card{border-color:#dfe7ef;border-radius:16px;box-shadow:0 7px 19px rgba(20,49,79,.055);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.product-card:hover{transform:translateY(-3px);border-color:#b9d3e9;box-shadow:0 15px 30px rgba(20,49,79,.11)}
.product-card-image{border:0;border-bottom:1px solid #e6edf4;background:transparent}
.product-card-content{padding:15px 15px 16px}
.product-card-identification{gap:7px}
.product-card-code{border-radius:6px;background:#eaf3fc;color:#145b92;font-weight:800}
.product-card-brand{color:#74869b}
.product-card-content h4{color:#203a54;font-size:15px;font-weight:760;line-height:1.4}
.product-card-model{color:#718399;line-height:1.45}
.product-card-weight{border-color:#e5ecf3;border-radius:9px;background:#f8fafc}
.product-card-prices>div{border-color:#e1e9f0;border-radius:9px;background:#fafcfe}
.product-card-prices>div:first-child{background:#f3f7fb}
.product-card-prices span{color:#718299}
.product-card-prices strong{color:#145f9b}
.product-card-actions{gap:7px}
.consult-search-panel{border-radius:16px;padding:24px}
.large-search{border-color:#c8d9e9;border-radius:12px;box-shadow:0 0 0 4px rgba(19,95,156,.045)}
.large-search span{color:#135f9c}
.consult-card{border-radius:16px;box-shadow:0 10px 26px rgba(21,46,76,.06)}
.consult-card-header h3{color:#183752;font-weight:760}
.consult-code{background:#eaf3fc;color:#145b92}
.price-card{border-radius:12px;background:#f7f9fc}
.price-card.emphasis{background:#eef6fd;border-color:#d7e8f6}
.price-card strong{color:#135f9c}
.spec-cell{border:1px solid #e8edf3;border-radius:10px;background:#f9fbfd}
.gallery-photo{border-color:#e0e8f0;border-radius:12px;box-shadow:0 3px 10px rgba(25,52,78,.04)}
.gallery-photo figcaption{color:#5e7389}
.purchase-panel{padding:23px 24px}
.purchase-meta{gap:14px}
.margin-chip{min-height:41px;border-color:#d5e4f1;border-radius:9px;background:#eff6fc;color:#5c7289}
.margin-chip strong{color:#145f9b}
.purchase-table th{background:#134f80;color:#fff}
.purchase-table tbody tr:nth-child(even){background:#fbfdff}
.purchase-summary{border-top-color:#e3eaf1}
.purchase-summary strong{color:#135f9c}
.suggestions{border-color:#dce6ef;border-radius:11px;box-shadow:0 15px 32px rgba(22,48,76,.14)}
.suggestion-option:hover{background:#f0f6fc}
.backup-card{border-color:#e1e9f0;border-radius:16px;box-shadow:0 8px 22px rgba(23,51,81,.055);transition:transform .16s ease,box-shadow .16s ease}
.backup-card h3{color:#1c3852}
.notice-card{border-color:#dce8f2;border-radius:12px;background:#f5f9fd}
.toast{border:1px solid rgba(255,255,255,.14);border-radius:12px;box-shadow:0 12px 30px rgba(12,37,62,.24)}
.auth-screen,.module-chooser{position:relative;isolation:isolate;min-height:100vh;background:radial-gradient(circle at 12% 16%,rgba(88,151,204,.2),transparent 26%),radial-gradient(circle at 88% 84%,rgba(20,104,165,.14),transparent 28%),linear-gradient(135deg,#eef4fa 0%,#f8fafc 55%,#eaf2f9 100%)}
.auth-card{position:relative;border:1px solid rgba(218,229,240,.95);border-top:4px solid #155f9b;border-radius:22px;padding:36px 36px 30px;box-shadow:0 24px 64px rgba(16,52,85,.14)}
.auth-logo{border-radius:10px}
.auth-card h2{color:#17334d;font-weight:760;letter-spacing:-.45px}
.auth-card>p.muted{color:#6d8094}
.auth-card form{gap:16px}
.auth-card #authSubmit{min-height:44px;margin-top:4px}
.auth-card input{min-height:44px}
.auth-message{color:#a43d32}
.module-chooser{background:radial-gradient(circle at 50% 0,rgba(102,169,221,.22),transparent 38%),linear-gradient(140deg,#edf4fa,#f8fafc 55%,#eaf2f9)}
.module-chooser-card{position:relative;border-color:#d8e5f0;border-radius:26px;box-shadow:0 28px 72px rgba(12,47,80,.16)}
.module-chooser-card:before{content:"";position:absolute;top:0;left:14%;right:14%;height:4px;border-radius:0 0 8px 8px;background:linear-gradient(90deg,#185f96,#56a8d8)}
.module-chooser-logo{max-width:300px;filter:drop-shadow(0 5px 9px rgba(20,40,60,.07))}
.module-chooser-eyebrow{color:#3977a7;letter-spacing:1.8px}
.module-chooser-card h1{color:#142e48;letter-spacing:-.75px}
.module-chooser-description{color:#6e8094}
.module-chooser-option{border-color:#dce7f0;border-radius:15px;background:linear-gradient(120deg,#fff,#f8fbfe);box-shadow:0 5px 16px rgba(15,50,82,.045)}
.module-chooser-option:hover,.module-chooser-option:focus-visible{border-color:#98bfdf;background:#f4f9fe;box-shadow:0 12px 27px rgba(18,70,113,.11)}
.module-chooser-icon{border:1px solid #d9e8f5;border-radius:12px;background:linear-gradient(145deg,#f2f8fd,#e5f1fb);color:#155f9b}
.module-chooser-option strong{color:#1d3b56}
.module-chooser-option small{color:#70849a}
.module-chooser-arrow{color:#286c9f}
.module-chooser-logout{color:#62788d}
.module-chooser-logout:hover{color:#174e79}
footer{border-top-color:#e2e9f0;color:#7a8b9d}
@media(max-width:1000px){.app-shell{padding:0 18px}.topbar{margin-inline:-18px;padding-inline:21px}.nav-btn{padding-inline:12px}}
@media(max-width:850px){.topbar{flex-wrap:wrap;gap:12px}.brand-lockup{width:100%}.topbar-actions{width:100%;justify-content:flex-end}.main-nav{top:4px}}
@media(max-width:650px){body{background:#f4f7fb}.app-shell{padding:0 12px}.topbar{margin-inline:-12px;padding:14px 13px;border-radius:0 0 14px 14px}.brand-lockup{width:auto;gap:10px}.topbar-actions{width:100%;justify-content:space-between;gap:6px}.local-badge{font-size:11px;padding:8px 9px}.main-nav{margin-top:12px;top:2px;padding:5px}.nav-btn{padding:10px 11px;border-radius:8px;font-size:11px}.page-heading h2{font-size:25px}.stat-card{min-height:126px;border-radius:13px}.stat-label{font-size:9px}.stat-note{font-size:10px}.intro-panel{padding:17px;min-height:0}.form-panel,.settings-panel,.list-panel,.purchase-panel{border-radius:14px}.section-title.separated{padding-top:19px;margin-top:23px}.quick-panel{border-radius:14px}.product-card{border-radius:14px}.consult-search-panel,.consult-card{border-radius:14px}.module-chooser-card{border-radius:20px}.module-chooser-option{gap:10px}.auth-card{border-radius:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Tema escuro Valmarc: azul #005baa, preto #212121, branco e tipografia Roboto */
:root{color-scheme:dark;--ink:#f3f6f9;--muted:#b0bac5;--line:#3a4149;--soft:#292d32;--paper:#212121;--teal:#005baa;--teal-dark:#0872cf;--mint:#142c40;--orange:#c99a36;--orange-soft:#322816;--shadow:0 14px 38px rgba(0,0,0,.24);accent-color:#4a9ae3}
body{background:radial-gradient(ellipse at 12% 0,rgba(0,91,170,.2),transparent 30%),radial-gradient(ellipse at 88% 70%,rgba(0,91,170,.08),transparent 29%),#151719;color:var(--ink);font-family:Roboto,"Segoe UI",Arial,sans-serif}
.topbar{background:linear-gradient(112deg,#212121 0%,#1b2834 54%,#063a69 100%);border:1px solid #303944;border-top:0;box-shadow:0 14px 34px rgba(0,0,0,.34)}
.topbar:after{border-color:rgba(255,255,255,.08);box-shadow:0 0 0 28px rgba(255,255,255,.018),0 0 0 58px rgba(255,255,255,.014)}
.brand-lockup h1,.page-heading h2,.section-title h3,.list-heading h3,.intro-panel h3,.quick-panel h3,.backup-card h3{color:#f5f7fa}
.brand-lockup h1{font-family:Roboto,"Segoe UI",Arial,sans-serif}
.topbar .eyebrow{color:#b9d8f3}
.local-badge{color:#e0e6ec;border-color:#ffffff24;background:#ffffff0e}
.topbar .button.secondary{border-color:#ffffff35;background:#ffffff0d;color:#f5f7fa}
.main-nav{border-color:#343a40;border-bottom-color:#343a40;background:rgba(33,33,33,.95);box-shadow:0 8px 23px rgba(0,0,0,.25)}
.nav-btn{color:#b7c0ca}
.nav-btn:hover{color:#fff;background:#2d3339}
.nav-btn.active{color:#fff;border-color:transparent;background:#005baa;box-shadow:0 4px 12px rgba(0,91,170,.28)}
.page-heading .eyebrow,.eyebrow{color:#79b8ed}
.muted,.page-heading .muted{color:#b0bac5}
.panel,.stat-card{border-color:#373d44;background:#212121;box-shadow:0 9px 26px rgba(0,0,0,.23)}
.stats-grid .stat-card{background:linear-gradient(145deg,#242729,#202224)}
.stat-card:before{background:linear-gradient(90deg,#005baa,#51a3e6)}
.stat-card.accent{border-color:#28557b;background:linear-gradient(145deg,#172b3c,#1d252c)}
.stat-label,.stat-note{color:#b1bbc6}
.stat-card strong{color:#f7f9fb}
.intro-panel,.quick-panel,.backup-card{border-color:#373d44;background:linear-gradient(145deg,#242729,#202224)}
.intro-panel p,.quick-panel p,.backup-card p{color:#b0bac5}
.panel-icon,.backup-icon,.section-title>span{border-color:#2d4e69;background:#152b3e;color:#70b8f0}
.quick-panel{background:linear-gradient(110deg,#242729,#1c2730);border-color:#35434f}
.stat-card.accent strong,.calc-preview strong,.purchase-summary strong,.margin-chip strong{color:#76b9f1}
.button.primary{background:#005baa;color:#fff;box-shadow:0 5px 15px rgba(0,91,170,.3)}
.button.primary:hover{background:#0872cf;box-shadow:0 8px 20px rgba(0,91,170,.34)}
.button.secondary{border-color:#454c54;background:#292d32;color:#e0e6ed}
.button.secondary:hover{border-color:#66809a;background:#333940;color:#fff}
.button.danger{border-color:#734540;background:#422b2a;color:#ffd6d1}
.button:focus-visible,.nav-btn:focus-visible,.text-button:focus-visible{outline-color:#55a7ed}
.form-panel,.settings-panel,.list-panel,.purchase-panel,.consult-search-panel,.consult-card,.backup-card{border-color:#383e45;background:#212121}
.section-title p,.section-title .muted,.helper-text{color:#b0bac5}
.section-title.separated{border-top-color:#383e45}
label,.field label,.price-input-label{color:#d3dae2}
input,select{border-color:#424951;background:#292d32;color:#f0f3f6;color-scheme:dark}
input:hover,select:hover{border-color:#65717d}
input:focus,select:focus{border-color:#4a9ae3;box-shadow:0 0 0 3px rgba(0,91,170,.25)}
input::placeholder{color:#8d98a4}
input[readonly]{border-color:#3b4148;background:#25292d;color:#bac3cd}
.calc-preview{border-color:#39434d;background:#39434d}
.calc-preview>div,.calc-preview>div:nth-child(2),.calc-preview>div:last-child{background:#24292e}
.calc-preview span,.stat-note{color:#aeb8c3}
.photo-card,.component-editor{border-color:#3a4148;background:#24272b}
.component-editor-heading h4{color:#f1f4f7}
.component-editor-heading p{color:#b0bac5}
.photo-preview{border-color:#454d56;color:#a8b2bc;background:transparent}
.photo-preview img,.gallery-photo img,.catalog-photo-button img,.product-card-image img{background:transparent}
.remove-photo{color:#8bc5f3}
.form-footer,.form-actions{border-top-color:#3a4148;border-color:#3a4148}
.form-footer .muted{color:#aeb8c3}
.item-boards-table th,.board-prices-table th,th{background:#2a3036;color:#d5dce4}
.item-boards-table td,.board-prices-table td,td{border-bottom-color:#373e45;color:#d2d9e1}
tbody tr:nth-child(even){background:#24282c}
tbody tr:hover{background:#2b3239}
.empty-row{color:#aab4bf}
.list-heading h3{color:#f4f7fa}
.list-heading p{color:#aeb8c3}
.product-card{border-color:#3a424a;background:#212121;box-shadow:0 8px 20px rgba(0,0,0,.24)}
.product-card:hover{border-color:#47769e;box-shadow:0 16px 34px rgba(0,0,0,.38)}
.product-card-image{border-bottom-color:#353c43;background:transparent}
.product-card-content h4{color:#f1f4f7}
.product-card-model,.product-card-brand,.product-card-prices span{color:#aeb9c4}
.product-card-code{border:1px solid #2b5274;background:#142b3d;color:#8bc5f3}
.product-card-weight,.product-card-prices>div,.product-card-prices>div:first-child{border-color:#3a424a;background:#272b2f}
.product-card-weight span{color:#aeb8c3}
.product-card-prices strong{color:#8ac6f4}
.product-card-placeholder,.product-empty{color:#b0bac5}
.catalog-toolbar .search-control input{background:#292d32}
.search-control>span,.large-search span{color:#72b5ec}
.consult-search-panel{border-color:#3b454f}
.large-search{border-color:#43505e;background:#292d32;box-shadow:0 0 0 4px rgba(0,91,170,.12)}
.large-search input{background:transparent;color:#f3f6f9}
.large-search button{background:#363c43;color:#e2e7ec}
.empty-state{border-color:#3e474f;background:#202326}
.empty-state h3{color:#f1f4f7}
.empty-state p{color:#abb6c2}
.empty-icon{background:#162f45;color:#76b9f1}
.consult-card-header{border-bottom-color:#3b4148}
.consult-card-header h3{color:#f3f6f9}
.consult-code{border:1px solid #2b5274;background:#142b3d;color:#91caf4}
.price-card,.price-card.emphasis{border-color:#3b454f;background:#25292d}
.price-card span,.spec-cell span{color:#b2bdc8}
.price-card strong{color:#86c2ef}
.spec-cell{border:1px solid #3a4148;background:#25292d}
.spec-cell strong{color:#ecf0f4}
.material-breakdown th{background:#2a3036}
.material-breakdown tfoot th{background:#17334a;color:#eef6fd}
.gallery-photo{border-color:#3d454d;background:transparent}
.gallery-photo figcaption{color:#bec7d0}
.purchase-table th{background:#005baa;color:#fff}
.purchase-table tbody tr:nth-child(even){background:#24282c}
.margin-chip,.example-box,.notice-card,.backup-progress{border-color:#3a4651;background:#252b31;color:#c2ccd6}
.margin-chip strong{color:#8ac7f4}
.example-box{color:#c2ccd6}
.example-box b{color:#85c2ef}
.notice-icon{background:#163b5b;color:#9ed0f6}
.purchase-summary{border-top-color:#3b4148}
.suggestions{border-color:#3d4853;background:#272b30;box-shadow:0 16px 33px rgba(0,0,0,.45)}
.suggestion-option{border-bottom-color:#3a4148;background:#272b30;color:#edf1f5}
.suggestion-option:hover{background:#17344b}
.suggestion-option small{color:#aeb8c3}
.text-button{color:#8bc5f3}
.text-button.delete{color:#ff9991}
.backup-icon{background:#17344c;color:#86c2ef}
.backup-progress{color:#c7d7e6}
.toast{border:1px solid #4279a6;background:#123d62;color:#fff}
.toast.error{background:#73352f;border-color:#97534c}
.auth-screen,.module-chooser{background:radial-gradient(circle at 15% 12%,rgba(0,91,170,.25),transparent 28%),radial-gradient(circle at 88% 88%,rgba(0,91,170,.14),transparent 30%),#151719}
.auth-card,.module-chooser-card{border-color:#3d454d;background:#212121;box-shadow:0 28px 74px rgba(0,0,0,.45)}
.auth-card{border-top-color:#005baa}
.auth-card h2,.module-chooser-card h1{color:#f5f7fa}
.auth-card>p.muted,.module-chooser-description{color:#b3bdc7}
.auth-card label{color:#d2d9e1}
.auth-card .auth-message{color:#ffaaa3}
.module-chooser-card:before{background:linear-gradient(90deg,#005baa,#60b4f4)}
.module-chooser-eyebrow{color:#8bc5f3}
.module-chooser-logo{background:transparent;border-radius:0;padding:0}
.module-chooser-option{border-color:#40474e;background:linear-gradient(120deg,#282c30,#222528);color:#f2f5f8}
.module-chooser-option:hover,.module-chooser-option:focus-visible{border-color:#4a8bc0;background:#263847;box-shadow:0 13px 29px rgba(0,0,0,.36)}
.module-chooser-icon{border-color:#365b78;background:#17324a;color:#8bc5f3}
.module-chooser-option strong{color:#f0f4f7}
.module-chooser-option small{color:#b1bdc8}
.module-chooser-arrow,.module-chooser-logout{color:#8bc5f3}
.module-chooser-logout:hover{color:#d7edff}
.db-error{border-color:#734540;background:#382725;color:#ffd6d1}
.db-error.show{display:block}
footer{border-top-color:#393f45;color:#9ea9b4}

.brand-logo,.module-chooser-logo{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
.brand-logo img{object-fit:contain}

/* Acabamento responsivo Valmarc — desktop e celular */
:root{--ink:#f1f5f8;--muted:#aeb9c4;--line:#363e46;--soft:#242a30;--paper:#202428;--teal:#72b8ec;--teal-dark:#005baa;--mint:#142f46;--shadow:0 16px 40px rgba(0,0,0,.28);color-scheme:dark}
html{scroll-padding-top:88px}
body{min-width:320px;background:radial-gradient(ellipse at 14% -8%,rgba(0,91,170,.2),transparent 29%),radial-gradient(ellipse at 92% 20%,rgba(61,108,146,.08),transparent 24%),#151719;color:var(--ink)}
.app-shell{max-width:1500px}
.topbar{border-bottom:1px solid #33404b;background:radial-gradient(ellipse at 76% 0,rgba(47,139,205,.2),transparent 28%),linear-gradient(112deg,#171a1d 0%,#1c2935 52%,#063a69 100%);box-shadow:0 16px 38px rgba(0,0,0,.4)}
.brand-logo{border:0;border-radius:0;box-shadow:none}
.main-nav{border-color:#343d45;border-bottom-color:#343d45;background:rgba(30,34,38,.96);box-shadow:0 10px 28px rgba(0,0,0,.28)}
.nav-btn{min-height:44px;color:#b7c2cc}
.nav-btn:hover{color:#f1f6fa;background:#29343e}
.nav-btn.active{color:#fff;background:linear-gradient(135deg,#005baa,#0877c8);box-shadow:0 5px 15px rgba(0,91,170,.3)}
.page-heading .eyebrow{color:#83c1f0}
.page-heading h2{color:#f5f7fa}
.page-heading .muted{color:#aeb9c4}
.panel,.stat-card{border-color:#363e46;background:#202428;box-shadow:0 12px 32px rgba(0,0,0,.24)}
.stat-card{background:linear-gradient(145deg,#242a30,#1d2125)}
.stat-card.accent{border-color:#2a5273;background:linear-gradient(145deg,#1c3447,#1e272e)}
.stat-card strong{color:#f3f7fa}
.stat-label{color:#c4ced7}
.stat-note{color:#9eabb7}
.intro-panel{border-color:#363e46;background:linear-gradient(145deg,#23292e,#1c2024)}
.intro-panel h3,.quick-panel h3,.list-heading h3,.section-title h3,.component-editor-heading h4,.backup-card h3{color:#f1f5f8}
.intro-panel p,.quick-panel p,.list-heading p,.section-title p,.component-editor-heading p,.backup-card p{color:#aeb9c4}
.quick-panel{border:1px solid #35414b;background:linear-gradient(120deg,#20262b,#1a2229)}
.form-panel,.settings-panel,.list-panel,.purchase-panel,.consult-search-panel,.consult-card,.backup-card{border-color:#363e46;background:linear-gradient(150deg,#22262a,#1e2226)}
.form-panel,.settings-panel{box-shadow:0 14px 34px rgba(0,0,0,.26)}
.form-grid label,.purchase-meta label,.margin-setting label,.photo-card label{color:#d3dae1}
.form-grid input,.form-grid select,.purchase-meta input,.purchase-meta select,.margin-setting input,.photo-card input,.board-prices-table input,.item-boards-table input,.item-boards-table select{min-height:42px;border-color:#414a53;border-radius:9px;background:#292e33;color:#f0f4f7;color-scheme:dark}
.form-grid input:focus,.form-grid select:focus,.purchase-meta input:focus,.purchase-meta select:focus,.margin-setting input:focus,.board-prices-table input:focus{border-color:#4a9ae3;box-shadow:0 0 0 3px rgba(0,91,170,.22);outline:0}
.form-grid input::placeholder,.purchase-meta input::placeholder{color:#8996a2}
.component-editor{border-color:#3b434b;background:#1b2024}
.component-editor-heading p{color:#aeb9c4}
.section-title.separated,.form-footer{border-color:#363e46}
.calc-preview{border-color:#344858;background:#1a2832}
.calc-preview>div{border-color:#344858}
.calc-preview span,.helper-text{color:#aeb9c4}
.calc-preview strong{color:#91c9f1}
.photo-card,.photo-preview{border-color:#39424a;background:transparent}
.photo-preview img,.product-card-image img{background:transparent}
.product-card{border-color:#3a434b;background:linear-gradient(155deg,#252a2f,#1d2125);box-shadow:0 10px 24px rgba(0,0,0,.25)}
.product-card:hover{border-color:#47769e;box-shadow:0 17px 34px rgba(0,0,0,.4)}
.product-card-content h4{color:#f0f4f7}
.product-card-model,.product-card-brand{color:#aab5bf}
.product-card-weight,.product-card-prices>div{border-color:#37414a;background:#20272d}
.product-card-prices>div:first-child{background:#1c2d3a}
.product-card-prices span{color:#aeb9c4}
.product-card-prices strong,.product-card-code{color:#8cc7f0}
.product-card-code{background:#172e40}
.search-control input,.large-search{border-color:#424c55;background:#292e33;color:#f2f5f8}
.large-search input{color:#f2f5f8}
.consult-search-panel>label{color:#d6dde4}
.suggestions{border-color:#3d4853;background:#252a2f;box-shadow:0 16px 36px rgba(0,0,0,.48)}
.suggestion-option{border-bottom-color:#3a4148;background:#252a2f;color:#edf1f5}
.suggestion-option:hover{background:#17344b}
.consult-card-header h3{color:#f3f6f9}
.consult-code,.consult-card .price-card,.consult-card .spec-cell{border-color:#39434c;background:#242a30}
.consult-card .price-card.emphasis{border-color:#285576;background:#1a3040}
.consult-card .price-card strong{color:#8cc7f0}
.consult-card .spec-cell strong{color:#e9eef3}
.gallery-photo{border-color:#3c454e;background:#1c2024}
.table-wrap{border:1px solid #37414a;border-radius:12px;scrollbar-color:#4b5863 #202428;scrollbar-width:thin}
.table-wrap table{color:#e7edf2}
th{background:#252e36;color:#b9c8d4;border-bottom:1px solid #3a444d}
td{color:#d1d9e0;border-bottom-color:#343d45}
tbody tr:nth-child(even){background:#22272b}
tbody tr:hover{background:#28323a}
.purchase-panel{border-color:#36424c}
.purchase-table{min-width:890px}
.purchase-table th{background:#005baa;color:#fff}
.purchase-table input,.purchase-table select{min-height:40px;border:1px solid #414a53;border-radius:8px;background:#292e33;color:#f0f4f7;color-scheme:dark}
.purchase-table .price-cell,.purchase-table .total-cell{color:#eaf2f8}
.purchase-summary{border-top-color:#39434c}
.purchase-summary strong{color:#8cc7f0}
.margin-chip,.example-box,.notice-card{border-color:#3b4650;background:#252b31;color:#c2ccd6}
.margin-chip strong,.example-box b{color:#8cc7f0}
.backup-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.backup-card:hover{border-color:#47769e;box-shadow:0 16px 34px rgba(0,0,0,.34)}
.pagination .button,.form-footer .button{min-height:42px}
.button,.text-button,.nav-btn{touch-action:manipulation}
.button:focus-visible,.text-button:focus-visible,.nav-btn:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(82,169,231,.55);outline-offset:2px}
.toast{border:1px solid #4279a6;background:#123d62;box-shadow:0 14px 34px rgba(0,0,0,.38)}
footer{color:#9ea9b4}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{padding-inline:18px}.topbar{margin-inline:-18px;padding-inline:20px}}
@media(max-width:850px){.topbar{gap:14px}.brand-lockup{width:auto}.topbar-actions{width:auto}.main-nav{top:4px}}
@media(max-width:650px){
  html{scroll-padding-top:72px}
  body{overflow-x:hidden}
  .app-shell{padding:0 12px}
  .topbar{margin-inline:-12px;padding:14px 12px;gap:12px;border-radius:0 0 16px 16px}
  .brand-lockup{min-width:0;gap:9px}
  .brand-lockup h1{font-size:15px;line-height:1.2}
  .brand-logo{width:112px;height:40px;flex:0 0 112px}
  .topbar-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:7px}
  .topbar-actions .button{min-height:40px;padding:8px 10px;font-size:11px}
  .local-badge{min-height:38px;padding:7px 9px;font-size:10px}
  .main-nav{top:0;margin:10px -1px 0;padding:5px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;border-radius:12px}
  .main-nav::-webkit-scrollbar{display:none}
  .nav-btn{min-height:43px;flex:0 0 auto;padding:9px 12px;scroll-snap-align:start;font-size:12px;white-space:nowrap}
  main{padding:23px 0 42px}
  .page-heading{gap:12px;margin-bottom:17px}
  .page-heading h2{font-size:24px;line-height:1.15}
  .page-heading .muted{font-size:12px;line-height:1.55}
  .heading-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .heading-actions .button{min-height:43px;padding:9px;font-size:11px}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
  .stat-card{min-width:0;min-height:112px;padding:14px;border-radius:13px}
  .stat-card strong{font-size:26px;line-height:1}
  .stat-label{font-size:9px;line-height:1.3}
  .stat-note{font-size:10px;line-height:1.35}
  .home-columns,.backup-grid{grid-template-columns:1fr;gap:10px}
  .intro-panel{min-height:0;padding:16px;border-radius:14px}
  .quick-panel{align-items:stretch;flex-direction:column;gap:10px;padding:16px;border-radius:14px}
  .quick-panel .button{width:100%;min-height:44px}
  .panel{border-radius:14px}
  .form-panel,.settings-panel,.list-panel,.purchase-panel{padding:16px 13px;margin-bottom:13px;border-radius:14px}
  .section-title{align-items:flex-start;gap:10px}
  .section-title>span{flex:0 0 32px}
  .section-title h3{font-size:14px}
  .section-title p{font-size:11px;line-height:1.5}
  .three-col,.four-col,.five-col,.form-grid{grid-template-columns:1fr;gap:12px}
  .form-grid input,.form-grid select,.purchase-meta input,.purchase-meta select,.margin-setting input{min-height:45px;font-size:16px}
  .photo-grid{grid-template-columns:1fr;gap:11px}
  .board-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-preview{height:190px}
  .piece-photo-grid .photo-card{padding:12px}
  .calc-preview{grid-template-columns:1fr;gap:7px}
  .calc-preview>div{padding:11px 13px}
  .component-editor{padding:12px 10px;border-radius:12px}
  .component-editor-heading{gap:11px}
  .component-add-controls{display:flex;align-items:flex-end;gap:7px}
  .component-add-controls label{width:72px}
  .component-add-controls .button{min-height:40px;padding:8px;font-size:10px}
  .table-wrap{max-width:100%;border-radius:11px}
  .table-wrap:not(.purchase-table-wrap){overflow-x:auto}
  .form-panel .item-boards-table{display:block;width:100%;min-width:0;border-spacing:0}
  .item-boards-table thead{display:none}
  .item-boards-table tbody{display:grid;gap:9px}
  .item-boards-table tbody tr[data-form-board-row]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;padding:10px;border:1px solid #39434c;border-radius:11px;background:#24292e}
  .item-boards-table tbody tr[data-form-board-row] td{display:block;min-width:0;padding:3px 2px;border:0;background:transparent}
  .item-boards-table tbody tr[data-form-board-row] td::before{display:block;margin-bottom:5px;color:#9eafbd;content:attr(data-label);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
  .item-boards-table tbody tr[data-form-board-row] td:first-child{grid-column:1/-1}
  .item-boards-table tbody tr[data-form-board-row] td select,.item-boards-table tbody tr[data-form-board-row] td input{width:100%;min-width:0;min-height:42px;font-size:14px}
  .item-boards-table tbody tr[data-form-board-row] .board-photo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
  .item-boards-table tbody tr[data-form-board-row] .board-photo-actions::before{align-self:stretch}
  .item-boards-table tbody tr[data-form-board-row] .board-row-photo-picker{width:100%;min-height:40px;justify-content:center;padding:7px;font-size:10px}
  .item-boards-table tbody tr[data-form-board-row] .text-button{min-height:40px;padding:8px 4px}
  .item-boards-table tbody tr.board-photo-detail-row{display:block;padding:8px;border:1px solid #39434c;border-radius:11px;background:#202428}
  .item-boards-table tbody tr.board-photo-detail-row td{display:block;padding:0;border:0}
  .item-boards-table tbody tr.board-photo-detail-row td::before{content:none}
  .list-heading{align-items:stretch;flex-direction:column;gap:11px}
  .list-heading-actions{width:100%;align-items:stretch;flex-direction:column-reverse}
  .catalog-toolbar{width:100%;align-items:stretch;flex-direction:column;gap:8px}
  .catalog-toolbar>select,.catalog-toolbar .search-control,.catalog-toolbar .button{width:100%;min-width:0;min-height:43px}
  .product-grid{grid-template-columns:1fr;gap:12px}
  .product-card{border-radius:14px}
  .product-card-image{height:224px}
  .product-card-content{padding:14px}
  .product-card-actions .button{min-height:42px}
  .consult-search-panel,.consult-card{padding:16px;border-radius:14px}
  .large-search input{min-width:0;min-height:44px;font-size:16px}
  .consult-card-header{align-items:flex-start;flex-direction:column;gap:10px}
  .price-cards{grid-template-columns:1fr;gap:8px}
  .price-card{padding:13px}
  .spec-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .gallery-photo img{height:165px}
  .purchase-meta{grid-template-columns:1fr;gap:10px;margin-bottom:13px}
  .margin-chip{min-height:43px}
  .purchase-table-wrap{overflow:visible;border:0}
  .purchase-table{display:block;width:100%;min-width:0;border-collapse:separate;border-spacing:0}
  .purchase-table thead{display:none}
  .purchase-table tbody{display:grid;gap:9px}
  .purchase-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;padding:11px;border:1px solid #39434c;border-radius:12px;background:linear-gradient(145deg,#252a2f,#1d2226)}
  .purchase-table tbody td{display:block;min-width:0;padding:3px 2px;border:0;background:transparent;font-size:12px}
  .purchase-table tbody td::before{display:block;margin:0 0 5px;color:#9eafbd;content:attr(data-label);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
  .purchase-table tbody td.search-cell{grid-column:1/-1;min-width:0}
  .purchase-table tbody td.price-cell,.purchase-table tbody td.total-cell{padding:9px;border:1px solid #36434d;border-radius:9px;background:#1b2831;color:#e8f1f8}
  .purchase-table input,.purchase-table select{width:100%;max-width:none;min-width:0;min-height:43px;font-size:16px}
  .purchase-table .mode-select{min-width:0}
  .purchase-table .search-cell .purchase-query{min-height:45px}
  .purchase-summary{justify-content:space-between;gap:10px;margin-top:12px;padding:13px 2px}
  .purchase-summary strong{font-size:21px}
  .form-footer{align-items:stretch;flex-direction:column;gap:10px;margin-top:17px;padding-top:13px}
  .form-footer>div{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
  .form-footer .button{min-height:43px;padding:9px;font-size:11px}
  .list-panel .table-wrap{overflow:visible;border:0}
  .list-panel table:not(.item-boards-table):not(.material-breakdown){display:block;width:100%;min-width:0;border:0;border-spacing:0}
  .list-panel table:not(.item-boards-table):not(.material-breakdown) thead{display:none}
  .list-panel table:not(.item-boards-table):not(.material-breakdown) tbody{display:grid;gap:9px}
  .list-panel table:not(.item-boards-table):not(.material-breakdown) tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 11px;padding:11px;border:1px solid #39434c;border-radius:11px;background:#24292e}
  .list-panel table:not(.item-boards-table):not(.material-breakdown) tbody td{display:block;min-width:0;padding:3px 2px;border:0;background:transparent;overflow-wrap:anywhere}
  .list-panel table:not(.item-boards-table):not(.material-breakdown) tbody td::before{display:block;margin-bottom:4px;color:#9eafbd;content:attr(data-label);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
  .list-panel table:not(.item-boards-table):not(.material-breakdown) tbody td:nth-child(2){grid-column:1/-1}
  .list-panel table:not(.item-boards-table):not(.material-breakdown) tbody td[colspan]{grid-column:1/-1;text-align:center}
  .board-prices-table td input{width:100%;min-width:0}
  .row-actions{justify-content:flex-start}
  .row-actions .text-button{min-height:38px;padding:8px}
  .backup-card{min-height:0;padding:18px}
  .backup-card .button{min-height:44px}
  .notice-card{padding:12px}
  .pagination{align-items:stretch;flex-direction:column;gap:10px}
  .pagination>div{display:grid;grid-template-columns:1fr 1fr}
  .pagination .button{min-height:42px}
  footer{align-items:flex-start;flex-direction:column;gap:6px;padding:15px 3px}
  .toast{width:calc(100vw - 28px);bottom:calc(12px + env(safe-area-inset-bottom));text-align:center}
}
@media(max-width:420px){
  .brand-logo{width:92px;flex-basis:92px}
  .brand-lockup h1{font-size:14px}
  .local-badge{width:38px;overflow:hidden;justify-content:center;font-size:0}
  .topbar-actions{justify-content:space-between}
  .stats-grid{gap:7px}
  .stat-card{padding:11px;min-height:106px}
  .stat-card strong{font-size:23px}
  .heading-actions{grid-template-columns:1fr}
  .spec-grid{grid-template-columns:1fr 1fr}
}
