@charset "UTF-8";
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263b36;background:#f5f7f4;font-synthesis:none;--accent:#287461;--ink:#263b36;--muted:#75817b;--line:#e5eae3;--burgundy:#872e49;--red:#db5550;--orange:#df963b;--yellow:#d5b839;--lime:#91b35c;--green:#388b67;--neutral:#a5ada7}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button,a,input,select,textarea{touch-action:manipulation}button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:10px 14px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-weight:500}button:hover:not(:disabled){background:#f0f5ef;border-color:#c9d9cf}button.primary{background:var(--accent);color:white;border-color:var(--accent)}button.primary:hover{background:#205f50}button.ghost{border-color:transparent;background:transparent}button.danger{color:#a93f48}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #6dbaa8;outline-offset:3px}svg{width:19px;height:19px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.25;font-weight:650}h2{font-size:18px;font-weight:600;letter-spacing:-.35px}h3{font-size:16px;font-weight:600}.muted{color:var(--muted)}.small{font-size:12px}.preview-bar{min-height:47px;padding:8px 25px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#e9eee8;font-size:12px;color:#586a5e}.preview-bar>div{display:flex;gap:8px}.preview-bar button{font-size:12px;padding:6px 10px;background:transparent;border-color:#d0dacd}.preview-bar button[aria-pressed=true]{background:white}.workspace{container-type:inline-size;container-name:app}.shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:calc(100vh - 47px)}#viewport.mobile{max-width:390px;margin:24px auto;border:1px solid #d6dfd6;border-radius:22px;overflow:hidden;box-shadow:0 16px 50px #263b3612}#viewport.mobile .shell{min-height:780px}.sidebar{padding:32px 18px 22px;border-right:1px solid var(--line);background:#fafbf8;display:flex;flex-direction:column;gap:33px}.brand{display:flex;gap:10px;align-items:center;padding:0 10px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;background:var(--accent);border-radius:11px;color:white}.brand strong{font-size:18px;letter-spacing:-.5px}.brand small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:1.6px;color:#8b968e;padding:0 12px;margin-bottom:12px}.nav{display:grid;gap:5px}.nav button{justify-content:start;background:transparent;border:0;padding:12px;font-size:13px}.nav button.active{background:#e7f0e7;color:#216550}.nav button .nav-count{margin-left:auto;font-size:11px;border-radius:5px;background:#d5e5d9;padding:3px 6px}.sidebar-foot{margin-top:auto;padding:12px 10px;color:var(--muted);font-size:12px;line-height:1.6}.avatar{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e7ede1;margin-right:7px;color:#61724d}.main{max-width:1270px;width:100%;margin:auto;padding:38px 44px 45px;align-self:start}.eyebrow{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:#7a897c;margin-bottom:10px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.heading p{margin-top:8px;font-size:13px;color:var(--muted);line-height:1.6}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions button{font-size:12px;white-space:nowrap}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:13px;background:white;overflow:hidden;margin-bottom:26px}.stat{padding:18px 22px;display:flex;gap:12px;align-items:center}.stat+.stat{border-left:1px solid var(--line)}.stat-value{font-size:27px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.stat-label{font-size:12px;color:var(--muted);line-height:1.5}.stat-icon{display:grid;place-items:center;width:36px;height:36px;background:#f4f6ef;border-radius:10px;color:#6f8059}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:15px}.search{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:9px;padding:0 12px;flex:1;max-width:360px;color:#899389}.search input{border:0;background:none;padding:11px 0;width:100%;min-width:0;font-size:13px;outline-offset:0}.toolbar .subtle{margin-left:auto;font-size:12px;color:var(--muted)}.categories{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:26px}.categories button{font-size:11px;padding:7px 10px;border-color:transparent;background:transparent;font-weight:400}.categories button svg{width:15px;height:15px}.categories button.active{background:white;border-color:#dce5d9;color:#246d58}.group{margin-bottom:26px}.group-heading{display:flex;align-items:center;gap:9px;margin-bottom:11px}.group-heading h2{font-size:14px;letter-spacing:0}.count{font-size:11px;color:#7c897e;background:#e9eee6;padding:2px 6px;border-radius:5px}.group-heading .group-caption{margin-left:auto;color:var(--muted);font-size:11px}.product-list{background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden}.list-head,.product-row{display:grid;grid-template-columns:minmax(160px,1fr) 110px 160px 116px 28px;gap:16px;align-items:center;padding:13px 18px}.list-head{background:#fafbf8;padding-block:9px;color:#8a958c;font-size:10px;letter-spacing:.2px}.product-row+.product-row{border-top:1px solid #edf0e9}.product-row:hover{background:#fcfdfb}.name-button{border:0;background:transparent!important;padding:0;justify-content:start;text-align:left;min-width:0;gap:12px;font-size:13px}.emoji{width:29px;min-width:29px;text-align:center;font-size:24px;line-height:1.3}.product-name{font-weight:550;display:block;overflow-wrap:anywhere}.product-meta{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}.quantity{font-size:13px;font-variant-numeric:tabular-nums}.quantity small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.state{display:flex;align-items:center;gap:7px;font-size:11px}.dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:var(--neutral)}.dot.burgundy{background:var(--burgundy)}.dot.red{background:var(--red)}.dot.orange{background:var(--orange)}.dot.yellow{background:var(--yellow)}.dot.lime{background:var(--lime)}.dot.green{background:var(--green)}.priority{font-size:10px;color:#899181}.priority.important{color:#766e4e}.chevron{border:0;padding:0;width:28px;height:30px;background:transparent;color:#9aa69a}.empty{text-align:center;padding:40px 20px;color:var(--muted);font-size:13px;line-height:1.7}.empty svg{width:28px;height:28px;margin-bottom:10px}.tag-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tag-card{display:block;text-align:left;padding:20px;background:white;border:1px solid var(--line);border-radius:12px;min-width:0}.tag-card h2{font-size:17px;margin:12px 0 6px}.tag-card .tag-icon{color:#75957c;background:#edf3e9;border-radius:8px;padding:7px;display:inline-flex}.tag-card p{font-size:12px;color:var(--muted);line-height:1.7}.tag-totals{display:flex;gap:18px;margin:17px 0 11px}.tag-totals strong{display:block;font-size:23px;font-weight:500;color:var(--ink)}.tag-totals span{font-size:10px;color:var(--muted)}.chip{background:#edf3e9;border:0;border-radius:6px;padding:6px 9px;font-size:11px;color:#50725c}.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.back{padding-left:0;margin-bottom:10px;font-size:12px}.tag-detail-summary{display:flex;flex-wrap:wrap;gap:18px;font-size:13px;margin-bottom:25px;color:#688171}.section-tabs{display:flex;gap:7px;margin-bottom:22px}.section-tabs button{font-size:12px}.section-tabs button.active{color:var(--accent);background:#e8f0e7;border-color:#d1e0d2}.catalog-row{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);padding:15px;border-radius:8px;margin-bottom:7px}.catalog-row small{margin-left:auto;color:var(--muted)}input,select,textarea{border:1px solid #dbe3d9;background:white;border-radius:7px;padding:10px 11px;color:var(--ink);max-width:100%}input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0}label.field{display:flex;flex-direction:column;gap:7px;font-size:12px;min-width:0}label.check{display:flex;align-items:center;gap:7px;font-size:12px}textarea{resize:vertical;min-height:76px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field.full{grid-column:1/-1}.field-note{font-size:11px;line-height:1.5;color:var(--muted)}.form-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:24px}.entry-panel{background:white;padding:24px;border:1px solid var(--line);border-radius:12px}.purchase-line{display:grid;grid-template-columns:1fr 115px 40px;gap:12px;align-items:end;margin-bottom:16px}.entry-add{margin-top:10px}.entry-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.entry-footer p{font-size:12px;color:var(--muted)}.audit-row{display:grid;grid-template-columns:minmax(145px,1fr) 110px 160px 150px;gap:12px;align-items:center;background:white;border-bottom:1px solid var(--line);padding:14px}.audit-row:first-child{border-radius:10px 10px 0 0}.audit-row.checked{background:#f0f6ed}.audit-row input[type=number]{width:100%}.audit-open{display:grid;gap:7px}.audit-check{justify-self:end}.audit-footer{position:sticky;bottom:12px;border:1px solid #cadac9;padding:15px 20px;border-radius:12px;background:#f9fcf6;box-shadow:0 6px 30px #243c3310}.error{color:#aa3546;font-size:13px;padding:10px 0;line-height:1.5}.notice{padding:13px 16px;margin-bottom:20px;background:#ecf2e8;border-radius:9px;font-size:12px;color:#5c725e;line-height:1.6}.legend{display:flex;gap:14px;flex-wrap:wrap;margin:25px 0 0;color:var(--muted)}.legend .state{font-size:10px}dialog{border:1px solid #dce4d8;border-radius:17px;padding:0;width:590px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);color:var(--ink);box-shadow:0 24px 90px #1e3b3026}dialog::backdrop{background:#18392d45;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;border-bottom:1px solid var(--line);gap:12px}.modal-body{padding:24px}.detail-title{display:flex;align-items:center;gap:13px}.detail-title .emoji{font-size:32px;width:39px}.detail-title h2{font-size:21px}.detail-stats{display:grid;grid-template-columns:1fr 1fr;background:#f5f7f1;border-radius:11px;margin:20px 0}.detail-stats>div{padding:17px}.detail-stats strong{font-size:26px;font-weight:500;display:block;margin-bottom:4px}.detail-stats span{font-size:12px;color:var(--muted)}.detail-description{font-size:13px;line-height:1.7;color:#6b796e}.detail-data{display:grid;grid-template-columns:1fr 1fr;gap:17px;font-size:12px;margin-top:24px}.detail-data small{display:block;color:var(--muted);margin-bottom:5px}.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.detail-actions button{font-size:12px}.emoji-picker{display:flex;flex-wrap:wrap;gap:4px}.emoji-picker button{font-size:22px;width:40px;height:40px;padding:3px}.emoji-picker button.selected{background:#e1efe1;border-color:#7b9e7f}.emoji-current{font-size:26px;min-height:36px}.tag-checks{display:flex;flex-wrap:wrap;gap:8px 15px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#284c3e;color:white;padding:13px 20px;border-radius:10px;box-shadow:0 8px 25px #21382c20;max-width:calc(100vw - 28px);width:max-content;font-size:13px;display:none;z-index:5}#toast.visible{display:block}.footnote{margin-top:25px;font-size:11px;color:#899487;line-height:1.6}
@container app (max-width:1050px){.shell{grid-template-columns:180px minmax(0,1fr)}.main{padding:30px 25px}.sidebar{padding-inline:10px}.list-head,.product-row{grid-template-columns:minmax(140px,1fr) 85px 137px 24px;gap:10px}.priority{display:none}.tag-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.heading{align-items:start;flex-wrap:wrap}.audit-row{grid-template-columns:1fr 90px 125px}.audit-check{grid-column:1/-1;justify-self:start}}
@container app (max-width:700px){.shell{display:block}.sidebar{padding:17px 18px 0;border-right:0;border-bottom:1px solid var(--line);gap:18px}.brand{padding:0}.brand small{display:none}.brand-mark{width:30px;height:30px}.brand strong{font-size:17px}.nav-label,.sidebar-foot{display:none}.nav{display:flex;gap:5px}.nav button{font-size:12px;flex:1;justify-content:center;padding:11px 4px;border-radius:8px 8px 0 0}.nav button svg{width:17px}.nav-count{display:none}.main{padding:25px 18px}.eyebrow{font-size:10px}h1{font-size:27px}.heading{gap:17px;margin-bottom:20px}.heading p{font-size:12px}.actions{width:100%}.actions button{flex:1;padding:11px 9px;font-size:12px}.summary-strip{margin-bottom:22px}.stat{padding:13px 10px;gap:0;display:block}.stat-icon{display:none}.stat-value{font-size:24px}.stat-label{font-size:10px;margin-top:3px}.toolbar{flex-wrap:wrap}.search{max-width:none;width:100%}.toolbar .subtle{display:none}.categories{gap:3px;margin-bottom:18px}.categories button{font-size:10px;padding:7px}.categories button svg{width:13px}.list-head{display:none}.product-row{grid-template-columns:minmax(0,1fr) 74px 20px;gap:7px;padding:13px 12px}.name-button{grid-column:1;grid-row:1/3;gap:8px;font-size:12px}.emoji{width:25px;min-width:25px;font-size:22px}.product-meta{font-size:10px}.quantity{grid-column:2;font-size:12px;text-align:right}.quantity small{font-size:9px}.state{font-size:9px;gap:4px}.product-row>.state{grid-column:2;justify-content:end;text-align:right;max-width:90px}.dot{width:7px;height:7px}.chevron{grid-column:3;grid-row:1/3;width:20px}.group-heading h2{font-size:13px}.group-caption{display:none}.group{margin-bottom:23px}.tag-grid{grid-template-columns:1fr}.tag-card{padding:18px}.tag-card h2{margin-top:7px}.tag-totals{margin-top:12px}.section-tabs{flex-wrap:wrap}.entry-panel{padding:16px}.purchase-line{grid-template-columns:minmax(0,1fr) 85px 30px;gap:7px}.purchase-line button{padding:7px}.purchase-line select{padding:10px 5px}.entry-footer{flex-wrap:wrap}.entry-footer button{width:100%}.audit-row{grid-template-columns:minmax(0,1fr) 84px;padding:12px}.audit-open{grid-column:1}.audit-check{grid-column:2;grid-row:2;justify-self:end}.audit-check span{max-width:65px}.audit-footer{bottom:8px;padding:13px}.audit-footer p{width:100%}.legend{gap:9px}.notice{font-size:11px}.footnote{font-size:10px}}
@media(max-width:600px){.preview-bar{padding:9px 12px;font-size:11px;align-items:start}.preview-note{display:block;max-width:170px;font-size:10px;line-height:1.5}.preview-bar>div{flex-direction:column;gap:3px}.preview-bar button{font-size:10px;padding:4px 7px}#device{display:none}#viewport.mobile{margin:0;max-width:none;border:0;border-radius:0}dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 20px)}.modal-head{padding:18px}.modal-body{padding:18px}.field-grid{gap:13px}.field.full-mobile{grid-column:1/-1}input,select,textarea{font-size:16px}.detail-data{font-size:12px}.form-actions button{flex:1}.detail-actions button{min-height:44px}.preview-bar{min-height:48px}}
.name-button{display:flex}.emoji,.emoji-picker button{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
@media(pointer:coarse){button{min-height:44px}.chevron{min-height:44px}.check{min-height:32px}.emoji-picker button{width:44px;height:44px}}
@media(max-width:360px){.field-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}}

/* Second prototype iteration: compact inventory rows and editable dictionaries. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.mobile-categories,.mobile-open,.mobile-status{display:none}
.list-head,.product-row{grid-template-columns:minmax(160px,1fr) 56px 105px 155px 116px 24px;gap:12px}
.product-row{padding-block:10px}.name-copy{min-width:0}.amount-line{display:flex;align-items:center;gap:7px}.opened-column{text-align:center}.open-badge{display:inline-flex;align-items:center;justify-content:center;color:#477f6b;background:#edf4e9;border-radius:5px;width:23px;height:23px}.open-badge svg{width:17px;height:17px}.quantity small{margin-top:4px}.legend{margin:12px 0 18px;gap:8px 14px}.legend .state{font-size:10px}.group:last-of-type{margin-bottom:16px}
.catalog-name{justify-content:start;padding:0;min-width:0}.catalog-name span{overflow-wrap:anywhere}.catalog-row{flex-wrap:wrap;padding:11px 14px}.manage-actions{display:flex;gap:7px;margin-left:auto;align-items:center}.manage-actions button{font-size:11px;padding:7px 10px}.managed-product{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:8px}.managed-product>.manage-actions{padding:0 12px 9px;justify-content:flex-end}.archive-section{margin-top:32px}.archive-section h2{margin-bottom:14px}.archive-section>.managed-product,.archive-section>.catalog-row{background:#f1f3ee}.back-to-card{margin-bottom:12px;margin-right:10px;font-size:12px}
dialog{container-type:inline-size;container-name:detail;width:680px}.mobile-dialog{width:390px}.modal-head{position:sticky;top:0;background:#fff;z-index:1}.detail-title p{margin-top:5px}.detail-state{margin-top:12px}.detail-stats{margin:15px 0}.detail-actions{gap:7px;align-items:center;margin:15px 0}.detail-actions>button[aria-pressed=true]{background:#f8edc9;border-color:#d3b248}.consume-form{display:flex;align-items:center;gap:6px;margin-left:auto;min-width:0}.consume-form button{font-size:12px}.minus-input{display:flex;align-items:center;border:1px solid #dbe3d9;border-radius:7px;padding:0 8px;gap:4px;background:#fff}.minus-input>span:first-child{font-size:18px;color:#7a6358}.minus-input input{border:0;padding:9px 0;width:64px;min-width:0;appearance:textfield}.minus-input input::-webkit-inner-spin-button{appearance:none}.card-note{font-size:11px;color:#738270;line-height:1.5;background:#f5f7f1;padding:9px 11px;border-radius:7px}.detail-data{margin-top:15px;gap:13px}.detail-footer{position:sticky;bottom:0;background:#fff;padding:12px 0 0;margin-top:15px}.detail-footer button{font-size:12px}.error:empty{display:none}
@container app (max-width:1150px){.list-head,.product-row{grid-template-columns:minmax(135px,1fr) 45px 85px 135px 24px;gap:8px}.priority{display:none}}
@container app (max-width:700px){
 .main{padding:18px 18px 24px}.eyebrow{margin-bottom:5px}.heading{gap:11px;margin-bottom:13px}.heading p{margin-top:4px;line-height:1.4}.heading h1{font-size:27px}.actions{flex-wrap:nowrap;gap:7px}.actions button{padding:10px 6px;font-size:11px;min-width:0;white-space:nowrap}.actions svg{width:16px;height:16px}.summary-strip{margin-bottom:14px}.stat{padding:11px 10px}.stat-value{font-size:23px}.stat-label{margin-top:2px}.toolbar{margin-bottom:9px}.search input{padding:10px 0}.categories{display:none}.mobile-categories{display:block;margin-bottom:11px}.mobile-categories select{width:100%;padding:9px 11px;font-size:12px}.legend{margin:9px 0 13px;gap:6px 10px;line-height:1.35}.legend .state{font-size:9px}.group{margin-bottom:17px}.group-heading{margin-bottom:8px}
 .list-head{display:none}.product-row{grid-template-columns:minmax(0,1fr) max-content;gap:9px;padding:10px 11px;position:relative}.product-row .name-button{grid-column:1;grid-row:1;gap:8px;min-width:0;align-items:center}.product-row .name-copy{min-width:0}.product-row .product-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:18px}.product-row .product-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px;font-size:10px;line-height:14px}.product-row .emoji{width:24px;min-width:24px;font-size:22px}.product-row .quantity{grid-column:2;grid-row:1;font-size:12px;text-align:right;align-self:center}.quantity .amount-line{justify-content:flex-end;gap:5px;line-height:18px}.quantity small{line-height:14px;font-size:10px;margin-top:3px}.product-row .opened-column,.product-row .desktop-status,.product-row .chevron,.product-row .priority{display:none}.mobile-open,.mobile-status{display:inline-flex;align-items:center}.mobile-open:empty{display:none}.open-badge{width:19px;height:18px;border-radius:4px}.open-badge svg{width:16px;height:16px}.mobile-status .dot{width:8px;height:8px}.product-row .name-button::after{content:'';position:absolute;inset:0}.managed-product .product-row .name-button::after{inset:0}
 .entry-panel{padding:13px}.notice{padding:10px 12px;margin-bottom:13px}.audit-row{padding:10px 11px;grid-template-columns:minmax(0,1fr) 84px;gap:8px}.audit-open{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px 14px}.audit-check{grid-column:1/-1;grid-row:auto;justify-self:end}.audit-check span{max-width:none}.audit-row .name-button{font-size:12px}.audit-footer{display:flex;flex-wrap:nowrap;gap:8px;padding:10px 11px}.audit-footer p{width:auto;flex:1;font-size:10px}.audit-footer button{width:auto;flex:0 1 62%;font-size:10px;padding:10px 8px}.catalog-row{gap:8px}.catalog-row .manage-actions{width:100%;justify-content:end}.catalog-row small{font-size:10px}.manage-actions button{font-size:10px}.section-tabs{gap:5px;margin-bottom:15px}.section-tabs button{font-size:11px;padding:8px}.tag-detail-summary{gap:8px 14px;font-size:12px;margin-bottom:16px}
}
@container detail (max-width:480px){
 .modal-head{padding:13px 16px}.modal-head h2{font-size:17px}.modal-head button{padding:7px;min-height:34px}.modal-body{padding:16px}.detail-title{gap:10px}.detail-title h2{font-size:20px}.detail-title .emoji{font-size:29px;width:32px}.detail-stats{margin:12px 0}.detail-stats>div{padding:12px}.detail-stats strong{font-size:23px}.detail-stats span{font-size:11px}.detail-description{font-size:12px;line-height:1.5}.detail-actions{margin:12px 0;gap:7px}.detail-actions>button{flex:1;min-width:0;font-size:11px;white-space:nowrap;padding:9px 7px;min-height:38px}.consume-form{flex:1 1 100%;justify-content:flex-end;margin:0}.minus-input{flex:1}.minus-input input{flex:1;width:60px;max-width:100%;font-size:16px}.consume-form button{font-size:12px;min-height:40px}.detail-data{gap:12px;font-size:11px}.detail-footer{display:flex;flex-wrap:nowrap;gap:8px;position:sticky;padding:10px 0 0}.detail-footer button{flex:1;min-width:0;font-size:11px;padding:10px 6px;white-space:nowrap}.detail-footer button.primary{flex:0 0 84px}.detail-footer svg{width:16px}.field-grid{grid-template-columns:1fr;gap:12px}.field.full{grid-column:auto}.field-grid input,.field-grid select,.field-grid textarea{font-size:16px}.form-actions{margin-top:15px;flex-wrap:nowrap}.form-actions button{min-width:0}.emoji-picker{gap:3px}.emoji-picker button{width:36px;height:36px;min-height:36px;font-size:22px}.chip-row{margin:9px 0}.card-note{font-size:10px;padding:8px 10px}
}

/* Consistent controls, horizontal tag summaries, dictionary actions. */
.actions button{height:42px;min-height:42px;padding-block:0}.section-tabs button{height:38px;min-height:38px;padding-block:0}.dictionary-toolbar{align-items:center}.dictionary-toolbar .search{max-width:none;height:42px}.dictionary-toolbar>.primary{height:42px;min-height:42px;padding-block:0}.tag-title{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.tag-title h2{margin:0;font-size:17px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:17px}.tag-metrics>div{display:flex;flex-direction:column;gap:5px}.tag-metrics strong{font-size:23px;line-height:1.2;font-weight:500}.tag-metrics span{font-size:10px;line-height:1.35;color:var(--muted)}.tag-amounts{font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}.tag-card{padding:18px}.tag-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.importance{display:inline-flex;gap:3px;align-items:center;padding:6px;border-radius:5px;background:#f1f4eb}.importance i{display:block;width:4px;height:14px;background:#d5dfd1;border-radius:2px}.importance i.filled{background:#63815d}.priority{display:block;text-align:center}.list-head,.product-row{grid-template-columns:minmax(120px,1fr) 42px 85px minmax(90px,145px) 48px 24px;gap:10px}.managed-row{grid-template-columns:minmax(120px,1fr) 42px 85px minmax(90px,145px) 48px auto}.managed-product{margin-bottom:6px}.managed-product .manage-actions{padding:0}.desktop-manage{display:flex;gap:6px;align-items:center}.manage-actions button{height:34px;min-height:34px;padding:0 10px;white-space:nowrap}.manage-actions button svg{width:16px;height:16px}.mobile-menu{display:none}.catalog-row{display:grid;grid-template-columns:minmax(0,1fr) 85px 145px;gap:16px;min-height:54px;padding:9px 13px}.catalog-row small{margin:0;text-align:left;white-space:nowrap}.catalog-row .manage-actions{margin:0;justify-content:end}.catalog-name{justify-content:start;min-height:34px}.catalog-name span{line-height:1.3}.catalog-row .desktop-manage{justify-content:end}.archive-section .catalog-row{grid-template-columns:minmax(0,1fr) 85px 190px}.context-actions{display:grid;gap:8px}.context-actions>button{justify-content:start;min-height:42px}
.audit-row{grid-template-columns:minmax(140px,1fr) 100px minmax(290px,1.5fr)}.audit-controls{display:flex;align-items:center;justify-content:flex-end;gap:16px}.audit-open{display:flex;gap:12px}.audit-check{justify-self:auto}.audit-controls .check{white-space:nowrap}.audit-controls input{margin:0}.autocomplete{position:relative;display:flex;flex-direction:column;gap:7px;font-size:12px;min-width:0}.autocomplete input{width:100%;min-width:0}.suggestions{position:absolute;z-index:20;top:100%;left:0;right:0;border:1px solid #d9e4d5;background:#fff;border-radius:10px;padding:5px;box-shadow:0 10px 30px #263b3618;max-height:240px;overflow:auto;min-width:190px}.suggestions button{width:100%;justify-content:space-between;text-align:left;border:0;font-size:12px;border-radius:6px;min-height:38px;font-weight:400}.suggestions small{color:var(--muted)}.suggestions p{padding:10px;line-height:1.5}.select-wrap{position:relative;width:100%;min-width:0}.select-trigger{width:100%;height:42px;min-height:42px;justify-content:space-between;padding:0 11px;border:1px solid #dbe3d9;border-radius:7px;font-weight:400;font-size:13px;text-align:left}.select-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-arrow{font-size:18px;line-height:1;color:#7b8f7b;margin-left:6px}.select-options{position:absolute;z-index:25;top:calc(100% + 5px);left:0;right:0;min-width:170px;padding:5px;border:1px solid #d9e4d5;background:#fff;border-radius:10px;box-shadow:0 10px 30px #263b3618;max-height:230px;overflow:auto}.select-options button{width:100%;border:0;justify-content:space-between;border-radius:6px;font-size:12px;font-weight:400;min-height:38px;text-align:left}.select-options button[aria-selected=true]{background:#edf4e9;color:#276c53}.select-options button svg{width:15px}.select-options[hidden],.suggestions[hidden],select[hidden]{display:none!important}
@container app (max-width:1050px){.list-head,.product-row{gap:8px;grid-template-columns:minmax(110px,1fr) 35px 75px minmax(90px,120px) 38px 24px}.managed-row{grid-template-columns:minmax(110px,1fr) 35px 75px minmax(90px,110px) 38px auto}.archive-section .managed-row{grid-template-columns:minmax(110px,1fr) 35px 75px 38px auto}.archive-section .managed-row .desktop-status{display:none}.audit-row{grid-template-columns:1fr 90px}.audit-controls{grid-column:1/-1;justify-content:flex-end}}
@container app (max-width:700px){
 .actions button{height:38px;min-height:38px;padding-block:0}.tag-grid{grid-template-columns:1fr}.tag-metrics{margin-top:14px}.tag-metrics span{font-size:10px}.tag-title h2{font-size:16px}.tag-card{padding:15px}.product-row,.archive-section .managed-row{grid-template-columns:minmax(0,1fr) max-content;gap:8px}.managed-row,.archive-section .managed-row{grid-template-columns:minmax(0,1fr) max-content 26px}.managed-row .manage-actions{grid-column:3;grid-row:1;position:relative;z-index:1}.product-row .priority{display:none}.desktop-manage{display:none}.mobile-menu{display:inline-flex;width:26px;height:36px;min-height:36px;padding:0!important;font-size:22px;border-color:transparent;background:transparent}.managed-row .name-button::after{right:32px}.catalog-row,.archive-section .catalog-row{grid-template-columns:minmax(0,1fr) 61px 26px;gap:9px;padding:9px 11px;min-height:49px}.catalog-row .manage-actions{width:auto;margin:0}.catalog-row small{font-size:10px}.catalog-name{font-size:12px;gap:6px}.catalog-name svg{width:16px;height:16px}.catalog-row .mobile-menu{min-height:34px}.dictionary-toolbar{gap:8px}.dictionary-toolbar .search{height:39px}.dictionary-toolbar>.primary{height:39px;min-height:39px;font-size:12px;padding:0 11px}.dictionary-toolbar input{font-size:13px}.section-tabs button{height:35px;min-height:35px;padding-block:0}
 .audit-row{grid-template-columns:minmax(0,1fr) 84px;gap:8px}.audit-controls{grid-column:1/-1;display:flex;justify-content:space-between;gap:5px}.audit-open{display:contents}.audit-controls .check{font-size:10px;gap:4px;min-height:30px;white-space:nowrap}.audit-controls input{width:16px;height:16px;margin:0}.audit-check{grid-column:auto;grid-row:auto}.audit-check span{max-width:none}.purchase-line{grid-template-columns:minmax(0,1fr) 75px 28px;gap:7px}.purchase-line input{height:40px;padding-inline:7px}.purchase-line button{height:40px;min-height:40px}.purchase-line>.ghost{padding:0}.suggestions{min-width:190px}.suggestions button{font-size:12px;height:auto;min-height:38px}.mobile-categories .select-trigger{height:39px;min-height:39px;font-size:12px}.select-options button{min-height:40px}.select-options{max-height:240px}
}
@container detail (max-width:480px){.select-trigger{font-size:16px;height:42px}.select-options button{font-size:14px;min-height:42px}.form-actions>button{height:40px;min-height:40px;padding-block:0}.detail-actions>button,.consume-form button{height:40px;min-height:40px}.minus-input{height:40px}.detail-footer>button{height:40px;min-height:40px}.context-actions>button{font-size:13px}}

.select-arrow{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;margin-left:8px;color:#718478}.select-arrow svg{width:16px;height:16px;stroke-width:1.8}.select-trigger[aria-expanded="true"] .select-arrow{transform:rotate(180deg)}

/* Вход и панель серверного приложения. */
.login-panel{max-width:400px;margin:10vh auto;padding:28px;background:white;border:1px solid var(--line);border-radius:20px}.login-panel form{display:grid;gap:18px}.login-panel p{color:var(--muted)}.preview-bar form{display:inline-flex;margin:0}body[data-server] .preview-bar{flex-wrap:wrap;gap:8px}@media(max-width:480px){.login-panel{margin:36px 14px;padding:22px}body[data-server] .preview-bar{padding:10px 14px}}
