:root{--green:#16372f;--green-2:#265447;--green-soft:#e8f0e9;--ink:#1e2925;--muted:#6f7a73;--line:#e2e7e0;--surface:#fff;--canvas:#f5f6f2;--sand:#f5edda;--rose:#f7e7e3;--red:#9b3e35;--shadow:0 12px 36px rgba(29,51,41,.055);--radius:18px}
*{box-sizing:border-box}html{background:var(--canvas);scroll-behavior:smooth}body{margin:0;color:var(--ink);font:15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin-top:0}h1,h2,h3,.brand strong{font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;letter-spacing:-.035em}h1{font-size:clamp(2rem,4vw,2.8rem);line-height:1.12;margin-bottom:10px;font-weight:800}h2{font-size:1.35rem;line-height:1.25;margin-bottom:5px;font-weight:750}h3{font-size:1.05rem;line-height:1.3;margin-bottom:7px;font-weight:750}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}.topbar{height:78px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(24px,calc((100% - 1240px)/2));gap:36px;position:sticky;top:0;z-index:10;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.brand-mark{height:41px;width:41px;border-radius:13px;background:var(--green);color:#f2d995;display:grid;place-items:center;font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;font-weight:800;letter-spacing:-.06em;font-size:15px}.brand strong{display:block;font-size:17px;line-height:1.15}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.desktop-nav{display:flex;align-items:center;gap:7px;height:100%;flex:1}.desktop-nav a{padding:10px 13px;border-radius:10px;color:#5d6961;font-size:13px;font-weight:600}.desktop-nav a:hover,.desktop-nav a.active{background:#eef2ed;color:var(--green)}.user-menu{display:flex;align-items:center;gap:15px;margin-left:auto}.user-name{font-size:13px;font-weight:600;color:#536058}.user-menu form{margin:0}.mobile-nav{display:none}.page-shell{max-width:1240px;margin:0 auto;padding:38px 24px 64px;min-height:calc(100vh - 145px)}.footer{max-width:1240px;margin:0 auto;padding:20px 24px 30px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);color:#859087;font-size:12px}.eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.15em;color:#779083;margin-bottom:10px}.muted{color:var(--muted)}.small{font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:11px;padding:11px 15px;min-height:42px;font-size:13px;font-weight:700;white-space:nowrap;transition:background .15s,border .15s,transform .15s}.button:active{transform:translateY(1px)}.button-primary{background:var(--green);color:white;box-shadow:0 3px 8px #16372f18}.button-primary:hover{background:#224b40}.button-secondary{background:white;border-color:#dce4db;color:var(--green)}.button-secondary:hover{background:#f1f5f0}.button-quiet{background:transparent;color:#66756b;border-color:transparent}.button-quiet:hover{background:#f0f2ee}.button-small{font-size:12px;padding:7px 10px;min-height:34px}.button-large{padding:14px 18px;min-height:49px}.button-full{width:100%}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:5px 0 28px}.page-heading h1{margin-bottom:8px}.page-heading p{margin:0}.heading-action{flex-shrink:0}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:38px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px 22px;display:flex;align-items:center;gap:15px;min-width:0}.stat-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;font-size:21px;flex-shrink:0;font-weight:700}.stat-icon-green{background:var(--green-soft);color:var(--green)}.stat-icon-sand{background:var(--sand);color:#80672a}.stat-icon-rose{background:var(--rose);color:var(--red)}.stat-label{display:block;font-size:12px;color:var(--muted);font-weight:600;margin-bottom:1px}.stat-card strong{display:inline-block;font:800 27px/1.2 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;letter-spacing:-.05em}.stat-card small{display:block;font-size:11px;color:#929b93;margin-top:3px}.inventory-section{min-width:0}.section-title-row{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}.section-title-row h2{margin-bottom:1px}.text-link{font-size:12px;color:var(--green);font-weight:700}.text-link:hover{text-decoration:underline}.filter-panel{display:flex;gap:9px;align-items:center;margin-bottom:19px;background:#edf0e9;padding:10px;border:1px solid #e4e8df;border-radius:15px}.search-input{height:42px;min-width:170px;flex:1;display:flex;align-items:center;gap:9px;padding:0 12px;background:white;border:1px solid #e3e8e1;border-radius:10px;color:#77867a}.search-input>span{font-size:23px;line-height:1;transform:rotate(-20deg)}.search-input input{border:0;outline:none;box-shadow:none;width:100%;min-width:0;background:transparent;font-size:13px}.filter-panel select,.stack-form input:not([type=checkbox]):not([type=file]),.stack-form textarea,.stack-form select,.stock-adjust-form input{background:white;border:1px solid #dce3dc;border-radius:10px;min-height:43px;padding:10px 12px;color:var(--ink);outline:none;width:100%;font-size:13px}.filter-panel select{width:auto;max-width:190px;min-width:130px}.filter-panel input:focus,.filter-panel select:focus,.stack-form input:focus,.stack-form textarea:focus,.stack-form select:focus,.stock-adjust-form input:focus{border-color:#729282;box-shadow:0 0 0 3px #dce8df}.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.item-card{display:block;background:white;border:1px solid var(--line);border-radius:17px;overflow:hidden;transition:transform .18s,box-shadow .18s,border .18s;min-width:0}.item-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#d3ddd2}.item-photo-wrap{height:190px;background:#eff1eb;position:relative;overflow:hidden}.item-photo{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}.item-card:hover .item-photo{transform:scale(1.025)}.photo-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#eef1e9,#e5eae1);font-size:42px;color:#a9b7aa}.condition-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;line-height:1.1;font-weight:800;white-space:nowrap}.item-photo-wrap .condition-pill{position:absolute;left:12px;top:12px;box-shadow:0 2px 8px #0000000d}.condition-good{background:#e2f1e4;color:#2c6941}.condition-check{background:#fff0cb;color:#89600c}.condition-repair{background:#ffe4ce;color:#9b4d1d}.condition-broken{background:#f7dfdd;color:#983c36}.condition-neutral{background:#edf0ed;color:#5d6d61}.item-card-body{padding:16px 17px 15px}.category-path{display:block;color:#77857a;font-size:10px;font-weight:700;letter-spacing:.02em;margin-bottom:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-card h3{font-size:16px;margin-bottom:6px}.item-description{font-size:12px;line-height:1.5;color:#879087;margin:0;min-height:36px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.item-card-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:15px;margin-top:13px;border-top:1px solid #edf0eb}.stock-amount{font-size:11px;color:#69766e}.stock-amount strong{font:800 23px/1 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;letter-spacing:-.05em;color:var(--green);margin-right:3px}.item-arrow{height:27px;width:27px;border-radius:8px;background:#eff3ed;display:grid;place-items:center;color:var(--green);font-size:14px}.item-location{display:block;margin-top:10px;font-size:11px;color:#8a948b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-state{padding:55px 20px;background:white;border:1px dashed #d5ddd3;border-radius:18px;text-align:center}.empty-state h3{font-size:20px}.empty-state p{color:var(--muted);font-size:13px;max-width:400px;margin:0 auto 18px}.empty-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 16px;border-radius:18px;background:var(--green-soft);color:var(--green);font-size:25px}.flash-stack{display:grid;gap:8px;margin:0 0 20px}.flash{padding:12px 15px;border-radius:11px;font-size:13px;border:1px solid transparent}.flash-success{background:#e5f3e7;border-color:#cee5d2;color:#245c35}.flash-error{background:#fae8e5;border-color:#f0cfca;color:#8f332c}.flash-info{background:#e8eff4;border-color:#d4e2ea;color:#34586b}.login-layout{min-height:650px;display:grid;grid-template-columns:1fr minmax(320px,440px);gap:clamp(35px,8vw,120px);align-items:center;max-width:1040px;margin:0 auto;padding:35px 0}.login-pitch{padding:30px 0}.login-pitch h1{font-size:clamp(2.6rem,5vw,4.3rem);line-height:1.07;letter-spacing:-.065em;margin:0 0 22px}.login-pitch h1 span{color:#5a7c68}.login-pitch>p{font-size:17px;color:#69786d;max-width:430px;line-height:1.7;margin-bottom:32px}.login-points{display:grid;gap:13px;color:#4f6256;font-size:13px;font-weight:600}.login-points span::first-letter{color:#4b7c5d}.login-card{background:white;border:1px solid var(--line);border-radius:22px;padding:33px;box-shadow:0 18px 50px #273b2d0a}.login-card-icon{display:grid;place-items:center;background:var(--green-soft);color:var(--green);border-radius:13px;width:45px;height:45px;font-size:24px;margin-bottom:19px}.login-card h2{font-size:25px;margin-bottom:6px}.login-card>.muted{font-size:13px;margin-bottom:26px}.stack-form{display:grid;gap:9px}.stack-form label,.stock-adjust-form label,.field label{font-size:12px;font-weight:700;color:#4a5b50}.stack-form input:not([type=checkbox]):not([type=file]),.stack-form textarea,.stack-form select{margin-bottom:9px}.stack-form input::placeholder,.stack-form textarea::placeholder{color:#a1aaa2}.checkbox-line{display:flex;align-items:center;gap:9px;margin:3px 0 11px!important;color:#657269!important;font-size:12px!important;font-weight:500!important}.checkbox-line input{accent-color:var(--green);width:16px;height:16px}.fine-print{font-size:11px;line-height:1.55;color:#939b93;margin:17px 0 0;text-align:center}.form-page,.detail-page{max-width:930px;margin:0 auto}.back-link{display:inline-block;color:#66776c;font-size:12px;font-weight:700;margin-bottom:24px}.back-link:hover{color:var(--green)}.form-intro{margin-bottom:22px}.form-intro h1{font-size:2.2rem}.form-intro p{margin-bottom:0}.form-card{background:white;border:1px solid var(--line);border-radius:19px;padding:clamp(20px,4vw,35px)}.form-section-heading{display:flex;align-items:center;gap:13px;padding-bottom:18px;border-bottom:1px solid #edf0eb;margin-bottom:22px}.step-number{height:34px;width:34px;background:var(--green-soft);color:var(--green);border-radius:11px;display:grid;place-items:center;font-weight:800;font-size:13px;flex-shrink:0}.form-section-heading h2{font-size:17px;margin-bottom:2px}.form-section-heading p{font-size:12px;color:var(--muted);margin:0}.form-section-spaced{margin-top:33px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px}.field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:12px}.field input:not([type=file]),.field select,.field textarea{margin-bottom:0!important}.field.full-width{grid-column:1/-1}.field textarea{resize:vertical;min-height:88px}.required{color:#b0443b}.optional{font-weight:400;color:#8c968e}.field-hint{font-size:11px;line-height:1.45;color:#8b968d}.field-hint a{color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:2px}.field input[type=file]{font-size:12px;width:100%;padding:13px;border:1px dashed #cbd7cb;background:#f7f9f5;border-radius:11px}.current-photo{display:flex;gap:12px;align-items:center;margin:2px 0 9px;padding:8px;border:1px solid var(--line);border-radius:12px;width:fit-content;max-width:100%;font-size:12px;color:var(--muted)}.current-photo img{height:65px;width:65px;border-radius:8px;object-fit:cover}.readonly-stock{padding:12px 13px;border:1px solid var(--line);background:#f7f8f5;border-radius:10px;font-weight:800;color:var(--green);margin-bottom:0}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:23px;margin-top:25px;border-top:1px solid #edf0eb}.detail-hero{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:30px;align-items:start;margin-bottom:25px}.detail-image{height:330px;border-radius:19px;overflow:hidden;background:#eef1ea;border:1px solid var(--line)}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-heading{padding:10px 0}.detail-heading .category-path{font-size:11px;margin-bottom:10px}.detail-heading h1{font-size:2.5rem;margin-bottom:12px;overflow-wrap:anywhere}.detail-description{white-space:pre-wrap;color:#647268;margin-top:18px;max-width:580px}.detail-heading>.muted{margin-top:18px}.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:23px}.detail-grid{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:17px}.panel{background:white;border:1px solid var(--line);border-radius:17px;padding:23px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel-heading h2{margin:0}.panel-heading .eyebrow{margin-bottom:5px}.large-quantity{font:800 47px/1.1 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;letter-spacing:-.06em;color:var(--green);margin:22px 0 8px}.large-quantity span{font-size:16px;letter-spacing:-.02em;color:#69796e;font-weight:600}.location-line{font-size:12px;color:#758178;margin:0 0 20px}.location-line strong{color:#4a5a50}.stock-adjust-form{border-top:1px solid #edf0eb;padding-top:20px;margin-top:20px;display:grid;gap:8px}.stock-adjust-form label{margin-top:4px}.quantity-controls{display:grid;grid-template-columns:42px 1fr 42px;gap:8px}.quantity-step{border:1px solid #dce4dc;background:#f5f7f3;border-radius:10px;color:var(--green);font-size:22px;font-weight:500}.quantity-controls input{text-align:center;font-weight:800;font-size:16px!important}.stock-adjust-form .button{margin-top:6px}.movement-list{display:grid}.movement-row{display:grid;grid-template-columns:45px 1fr auto;gap:11px;align-items:center;padding:14px 0;border-bottom:1px solid #edf0eb}.movement-row:last-child{border-bottom:0}.movement-sign{height:35px;width:40px;display:grid;place-items:center;border-radius:10px;font:800 13px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif}.movement-sign.positive{background:#e3f1e4;color:#2d7042}.movement-sign.negative{background:#fae8e5;color:#9a3a32}.movement-content{min-width:0}.movement-content strong{display:block;font-size:12px;overflow-wrap:anywhere}.movement-content span{display:block;margin-top:4px;color:#8a948c;font-size:10px;line-height:1.35}.movement-after{font:800 14px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;color:#506157}.updated-note{text-align:right;font-size:11px;color:#8a948c;margin:17px 0 0}.category-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(290px,.85fr);gap:18px;align-items:start}.category-tree-panel,.category-create-panel{padding:24px}.category-count{display:grid;place-items:center;background:var(--green-soft);color:var(--green);border-radius:9px;min-width:33px;height:33px;font-weight:800;font-size:12px}.category-tree{border-top:1px solid #edf0eb;padding-top:8px}.category-tree-item{display:flex;align-items:center;gap:11px;padding:12px 8px 12px calc(8px + var(--depth)*21px);border-bottom:1px solid #f0f2ee;min-width:0}.category-tree-item:last-child{border-bottom:0}.tree-connector{height:30px;width:30px;display:grid;place-items:center;flex-shrink:0;border-radius:9px;background:#f0f4ee;color:#5d7b66;font-size:15px}.category-tree-item>div{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-width:0}.category-tree-item strong{font-size:13px;overflow-wrap:anywhere}.category-tree-item>div span{font-size:10px;color:#8b968d;white-space:nowrap}.category-create-panel .stack-form{gap:11px}.category-create-panel .panel-heading{margin-bottom:23px}.category-create-panel .field{margin-bottom:4px}.category-create-panel .stack-form .button{margin-top:5px}.empty-state.compact{border:0;padding:35px 10px}.error-state{max-width:550px;margin:50px auto}.error-code{display:block;font:800 52px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;color:#ccd8cb;margin-bottom:10px}

@media (max-width:950px){.topbar{gap:20px;padding:0 22px}.desktop-nav{gap:0}.desktop-nav a{padding:9px}.user-name{display:none}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.item-photo-wrap{height:220px}.detail-hero{grid-template-columns:minmax(220px,.8fr) 1fr;gap:23px}.detail-image{height:300px}.detail-grid{grid-template-columns:1fr 1fr}.panel{padding:19px}.category-layout{grid-template-columns:1fr 1fr}}
@media (max-width:680px){body{padding-bottom:66px}.topbar{height:66px;padding:0 16px;justify-content:space-between}.brand-mark{height:37px;width:37px;border-radius:11px}.brand strong{font-size:15px}.brand small{font-size:10px}.desktop-nav{display:none}.user-menu{gap:5px}.user-menu .button{font-size:11px}.mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:20;bottom:0;left:0;right:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);backdrop-filter:blur(18px)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:47px;border-radius:10px;color:#7a887d;font-size:10px;font-weight:700}.mobile-nav a span{font-size:20px;line-height:1.15}.mobile-nav a.active{background:#eef3ed;color:var(--green)}.page-shell{padding:26px 15px 35px;min-height:calc(100vh - 100px)}.page-heading{align-items:flex-start;margin:0 0 21px;gap:10px}.page-heading h1{font-size:2rem}.page-heading p{font-size:12px;max-width:310px}.page-heading .heading-action{font-size:0;gap:0;padding:0;width:42px;height:42px;min-width:42px;border-radius:12px}.page-heading .heading-action span{font-size:22px}.stats-grid{gap:8px;margin-bottom:28px}.stat-card{padding:12px 10px;align-items:flex-start;flex-direction:column;gap:8px;border-radius:14px}.stat-icon{height:34px;width:34px;border-radius:10px;font-size:17px}.stat-label{font-size:10px}.stat-card strong{font-size:24px}.stat-card small{font-size:9px;line-height:1.3}.section-title-row{align-items:center}.section-title-row h2{font-size:20px}.desktop-export{display:none}.filter-panel{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px;border-radius:13px}.search-input{grid-column:1/-1;height:44px}.filter-panel select{max-width:none;min-width:0;width:100%;height:42px;font-size:11px;padding:8px}.filter-panel .button{padding:9px 11px;min-height:40px}.filter-panel .button-quiet{grid-column:2}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.item-photo-wrap{height:clamp(115px,35vw,190px)}.condition-pill{font-size:9px;padding:5px 7px}.item-photo-wrap .condition-pill{top:7px;left:7px}.item-card-body{padding:12px 11px 11px}.category-path{font-size:9px;margin-bottom:5px}.item-card h3{font-size:13px;line-height:1.3;min-height:33px}.item-description{font-size:10px;line-height:1.45;min-height:29px}.item-card-bottom{padding-top:10px;margin-top:9px}.stock-amount{font-size:9px}.stock-amount strong{font-size:19px}.item-arrow{height:23px;width:23px;font-size:12px}.item-location{font-size:9px;margin-top:8px}.footer{padding:15px 16px 18px;font-size:10px}.login-layout{display:block;min-height:unset;padding:14px 0 22px}.login-pitch{padding:10px 1px 24px}.login-pitch .eyebrow{font-size:9px}.login-pitch h1{font-size:2.55rem;margin-bottom:13px}.login-pitch>p{font-size:14px;line-height:1.55;margin-bottom:17px}.login-points{grid-template-columns:1fr 1fr;gap:9px;font-size:11px}.login-points span:last-child{grid-column:1/-1}.login-card{padding:23px 20px;border-radius:18px}.login-card-icon{margin-bottom:13px}.login-card h2{font-size:22px}.form-page,.detail-page{width:100%}.back-link{margin-bottom:17px}.form-intro{margin-bottom:18px}.form-intro h1{font-size:1.9rem}.form-intro p{font-size:12px}.form-card{padding:19px 15px;border-radius:15px}.form-section-heading{gap:10px}.form-section-heading p{font-size:11px}.form-grid{grid-template-columns:1fr;gap:0}.field.full-width{grid-column:auto}.field{margin-bottom:10px}.field label{font-size:12px}.field input[type=file]{font-size:10px;padding:10px}.form-section-spaced{margin-top:25px}.form-actions{gap:7px}.form-actions .button{font-size:11px;padding:11px 12px;white-space:normal}.detail-hero{display:block;margin-bottom:19px}.detail-image{height:clamp(220px,66vw,360px);margin-bottom:18px}.detail-heading{padding:0 2px}.detail-heading h1{font-size:2.05rem}.detail-heading .category-path{font-size:10px}.detail-description{font-size:13px;margin-top:13px}.detail-actions{margin-top:17px}.detail-actions .button{font-size:11px;min-height:39px;padding:9px 10px}.detail-grid{grid-template-columns:1fr;gap:12px}.panel{padding:18px;border-radius:15px}.large-quantity{font-size:43px}.movement-row{grid-template-columns:39px 1fr auto;gap:9px}.movement-sign{height:32px;width:35px}.updated-note{text-align:left;font-size:10px}.category-layout{grid-template-columns:1fr;gap:12px}.category-tree-panel,.category-create-panel{padding:18px}.category-tree-item{padding-top:10px;padding-bottom:10px}.category-tree-item>div{align-items:flex-start;flex-direction:column;gap:0}.category-tree-item>div span{font-size:9px}.category-tree-item strong{font-size:12px}.error-state{margin:20px auto}.empty-state{padding:40px 15px}}
@media (max-width:360px){.brand small{display:none}.stats-grid{gap:6px}.stat-card{padding:10px 8px}.item-grid{gap:8px}.item-card-body{padding:10px 9px}.condition-pill{font-size:8px}.page-shell{padding-left:11px;padding-right:11px}.login-pitch h1{font-size:2.2rem}}

/* Flexible category tree management */
.category-tree-item{padding-left:calc(8px + var(--indent))}
.category-layout-flexible{grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr)}
.category-tree-item>.category-tree-main{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:9px;flex:1;min-width:0}
.category-tree-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
.category-tree-label strong{min-width:0}
.category-tree-item>.category-tree-main .category-tree-label span{font-size:11px;color:var(--muted);text-align:right;white-space:normal}
.category-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.category-actions form{margin:0}
.category-actions .button{min-height:30px;padding:5px 8px;font-size:11px}
.category-delete-button{color:#9b4d45}
.category-delete-button:disabled{color:#a5aaa5;cursor:not-allowed;opacity:.6}
.category-current-path{display:flex;flex-direction:column;gap:5px;margin-bottom:22px;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:#f8faf7;overflow-wrap:anywhere}
.category-current-path strong{font-size:14px}
.category-edit-page{max-width:760px;margin:0 auto}
@media(max-width:760px){.category-layout-flexible{grid-template-columns:1fr}.category-tree-item{align-items:flex-start}.category-tree-main{gap:8px}.category-tree-label{align-items:flex-start;flex-direction:column;gap:2px}.category-tree-label span{text-align:left;white-space:normal}.category-actions .button{font-size:10px;padding:5px 7px;min-height:30px}.category-current-path{margin-bottom:17px}}


/* Mobile usability: reliable native controls and generous touch targets. */
:where(a, button, input, select, textarea, label[for]) { touch-action: manipulation; }
select { -webkit-appearance: menulist; appearance: auto; }
button, a, select, input, textarea { pointer-events: auto; }
.photo-picker-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.camera-picker { position: relative; min-height: 48px; justify-content: flex-start; font-size: 14px; }
.camera-picker > span:first-child { font-size: 21px; line-height: 1; }
.photo-picker-input { position: absolute; inset: 0; width: min(100%, 290px); height: 48px; opacity: 0; cursor: pointer; z-index: 2; }
.photo-preview[hidden] { display: none; }
.photo-preview { margin-top: 10px; }
.movement-type-fieldset { border: 0; padding: 0; margin: 3px 0 5px; min-width: 0; }
.movement-type-fieldset legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #4a5b50; }
.movement-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.movement-choice { position: relative; display: flex; align-items: center; min-width: 0; cursor: pointer; }
.movement-choice input { position: absolute; inset-inline-start: 10px; width: 18px; height: 18px; accent-color: var(--green); }
.movement-choice span { display: flex; flex-direction: column; gap: 3px; width: 100%; min-height: 62px; justify-content: center; padding: 10px 8px 10px 35px; background: white; border: 1px solid #dce3dc; border-radius: 11px; }
.movement-choice input:checked + span { border-color: #719381; background: #eff5ef; box-shadow: 0 0 0 2px #dce8df; }
.movement-choice strong { font-size: 13px; }
.movement-choice small { font-size: 10px; color: var(--muted); line-height: 1.3; }
@media (max-width: 680px) {
  .photo-field input.photo-picker-input { margin: 0; padding: 0; border: 0; background: transparent; }
  .mobile-nav { position: sticky; top: 0; bottom: auto; left: auto; right: auto; z-index: 5; padding: 5px 8px; background: #fff; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: 0 3px 8px rgba(29,51,41,.04); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar { position: relative; z-index: 6; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .page-shell { padding-bottom: 35px; }
  .category-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .category-actions > a, .category-actions > form, .category-actions > form > button { width: 100%; min-width: 0; }
  .category-actions .button { min-height: 44px; padding: 9px 7px; font-size: 12px; white-space: normal; }
  .category-create-panel .stack-form select, .category-edit-page .stack-form select { min-height: 48px; font-size: 16px; }
  .category-create-panel .stack-form button[type="submit"], .category-edit-page .form-actions .button { min-height: 48px; }
  .filter-panel select { min-height: 44px; font-size: 16px; }
  .stack-form input:not([type=checkbox]):not([type=file]), .stack-form textarea, .stack-form select, .stock-adjust-form input { font-size: 16px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; min-height: 48px; font-size: 14px; }
  .movement-choice span { min-height: 70px; padding-left: 32px; }
  .movement-choice strong { font-size: 12px; }
  .movement-choice small { font-size: 9px; }
  .stock-adjust-form .button { min-height: 48px; }
}

.photo-field input.photo-picker-input { position: absolute; inset: 0; width: min(100%, 290px); height: 48px; opacity: 0; cursor: pointer; z-index: 2; margin: 0; padding: 0; border: 0; background: transparent; }

/* v1.3: native camera control stays focusable for mobile form validation. */
.photo-picker-row{display:block;min-height:0}
.camera-picker-label{display:block;font-weight:700;margin-bottom:8px}
.photo-field .photo-native-input, .photo-field input[type=file].photo-native-input{display:block;position:static;opacity:1;z-index:auto;width:100%;height:auto;min-height:48px;padding:10px;border:1px solid #c9d5cb;border-radius:11px;background:white;color:var(--ink);font-size:16px}
.photo-native-input::file-selector-button{background:#e8f0e9;color:#16372f;border:0;border-radius:8px;padding:10px;margin-right:12px;font-weight:700}
.form-feedback:not([hidden]){padding:11px 13px;border-radius:10px;background:#fff0e9;color:#8b302b;font-size:14px}


/* Role-based member administration */
.mobile-nav-admin{grid-template-columns:repeat(5,minmax(0,1fr))}
.admin-page-heading{align-items:center}
.admin-page-heading form{margin:0;flex-shrink:0}
.admin-panel{margin-bottom:20px;padding:22px}
.admin-panel .section-title-row{align-items:center;gap:16px;flex-wrap:wrap}
.admin-panel .section-title-row p{margin:5px 0 0}
.admin-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.admin-table{width:100%;border-collapse:collapse;min-width:720px;font-size:13px}
.admin-table th,.admin-table td{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.admin-table th{font-size:11px;letter-spacing:.04em;color:var(--muted);text-transform:uppercase;background:#fafbf9}
.admin-table td small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.admin-inline-form{display:flex;align-items:center;gap:6px;margin:0;flex-wrap:wrap}
.admin-inline-form select{min-height:35px;border:1px solid #dce3dc;border-radius:9px;background:white;padding:6px 8px;color:var(--ink);font-size:12px}
.admin-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-weight:750;font-size:11px;white-space:nowrap}
.admin-status.is-active{background:#e2f1e4;color:#2c6941}
.admin-status.is-inactive{background:#f7e7e3;color:#983c36}
.admin-status.is-used{background:#e8eff4;color:#34586b}
.admin-you{color:var(--muted);font-size:11px}
.admin-invitations-panel .fine-print{margin:17px 0 0}
.admin-invitation-created{max-width:760px;margin:0 auto}
.admin-invitation-created .panel{padding:28px}
.admin-link-label{display:block;font-size:12px;font-weight:750;margin:20px 0 7px}
.admin-invitation-url{width:100%;border:1px solid #dce3dc;border-radius:10px;padding:12px;background:#f8faf7;color:var(--ink);font-size:13px;overflow-wrap:anywhere;resize:vertical}
@media(max-width:760px){.admin-page-heading{display:flex;align-items:stretch;flex-direction:column;gap:15px}.admin-page-heading form,.admin-page-heading form .button{width:100%}.admin-panel{padding:14px}.admin-panel .section-title-row strong{font-size:12px}.admin-table{min-width:700px}.admin-invitation-created .panel{padding:19px}.mobile-nav-admin a{font-size:9px}}

/* Stock Club 1.4: live search, availability, loan tracking, and admin-only deletion */
.filter-panel .quantity-filter{display:grid;gap:3px;min-width:124px;color:#647268;font-size:10px;font-weight:700}
.filter-panel .quantity-filter input{width:100%;min-height:42px;border:1px solid #dce3dc;border-radius:10px;background:#fff;padding:8px 10px;color:var(--ink);font-size:13px;outline:none}
.filter-panel .quantity-filter input:focus{border-color:#729282;box-shadow:0 0 0 3px #dce8df}
.is-hidden{display:none!important}
#inventory-results{transition:opacity .12s ease}
#inventory-results.is-loading{opacity:.48;pointer-events:none}
.out-quantity-note{display:block;margin-top:9px;padding:6px 8px;border-radius:8px;background:#fff0cb;color:#89600c;font-size:10px;font-weight:800}
.availability-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800}
.availability-pill.available{background:#e2f1e4;color:#2c6941}
.availability-pill.partial{background:#fff0cb;color:#89600c}
.availability-pill.out{background:#f7dfdd;color:#983c36}
.inventory-empty{grid-column:1/-1}
.loans-list{display:grid;gap:12px}
.loan-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;min-width:0}
.loan-main{display:flex;align-items:center;gap:12px}
.loan-icon{height:40px;width:40px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:#fff0cb;color:#89600c;font-size:20px;font-weight:800}
.loan-title{min-width:0}
.loan-title h3{margin:0 0 3px;font-size:16px;overflow-wrap:anywhere}
.loan-title h3 a:hover{text-decoration:underline}
.loan-title p{font-size:11px;margin:0}
.loan-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:17px 0 10px;padding:14px 0;border-top:1px solid #edf0eb;border-bottom:1px solid #edf0eb}
.loan-metrics>div{min-width:0;display:grid;gap:4px}
.loan-metrics span{font-size:10px;color:#839087;font-weight:700}
.loan-metrics strong{font-size:15px;overflow-wrap:anywhere}
.loan-metrics .loan-remaining{font-size:21px;color:#89600c}
.loan-metrics .loan-user{font-size:12px}
.loan-note{font-size:11px;color:#77857a;margin:6px 0 12px}
.loan-return-form{display:grid;grid-template-columns:1fr minmax(110px,.35fr);gap:8px 10px;align-items:center}
.loan-return-form label{font-size:11px;font-weight:700;color:#607064}
.loan-return-form input{width:100%;min-width:0;min-height:40px;border:1px solid #dce3dc;border-radius:9px;background:#fff;padding:9px 11px;font-size:13px;color:var(--ink)}
.loan-return-form button{grid-column:1/-1;justify-self:end}
.loan-history-section{margin-top:32px}
.loan-events{padding:8px 20px}
.loan-event-row{display:grid;grid-template-columns:65px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0eb}
.loan-event-row:last-child{border-bottom:0}
.item-delete-panel{margin-top:18px;border:1px solid #f0d2cf;background:#fff9f8;border-radius:15px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.item-delete-panel h2{font-size:15px;margin:0 0 3px}
.item-delete-panel p{font-size:11px;color:#857a78;margin:0}
.button-danger{background:#fff;border-color:#e5b9b4;color:#9a3a32}
.button-danger:hover{background:#fae8e5}
.button:disabled{cursor:not-allowed;opacity:.52;transform:none;box-shadow:none}
.admin-only-hint{display:block;margin-top:7px;color:#9a3a32;font-size:11px;font-weight:700}
@media(max-width:680px){
  .filter-panel .quantity-filter{min-width:0;grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:center;gap:8px;font-size:11px}
  .filter-panel .filter-submit{grid-column:1}
  .filter-panel .filter-reset{grid-column:2}
  .mobile-nav a{font-size:9px}
  .mobile-nav a span{font-size:18px}
  .loan-card{padding:15px 13px}
  .loan-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .loan-metrics>div:last-child{grid-column:1/-1}
  .loan-return-form{grid-template-columns:1fr minmax(85px,.6fr);gap:7px}
  .loan-return-form label{font-size:10px}
  .loan-return-form .button{width:100%;white-space:normal}
  .loan-event-row{grid-template-columns:58px minmax(0,1fr);gap:9px}
  .loan-event-row>.text-link{grid-column:2}
  .item-delete-panel{align-items:stretch;flex-direction:column}
  .item-delete-panel .button{width:100%;white-space:normal}
}
