:root{--bg:#f5f5ef;--paper:#fff;--ink:#26342b;--muted:#798078;--line:#e6e8df;--green:#365640;--pale:#edf1e7;--rust:#b86f4d;--serif:Georgia,'Times New Roman',serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b78b50;outline-offset:3px}.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;flex-shrink:0;padding:36px 22px 20px;background:#fbfcf8;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:750;letter-spacing:-.6px}.brand-mark{width:37px;height:40px;background:var(--green);color:#fff;border-radius:10px;display:grid;place-items:center}.brand-mark .icon{width:25px;height:25px}.brand-light{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:2.8px;margin-top:3px;color:var(--muted)}.workspace{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:10px;padding:12px 10px;margin:35px 0 30px;background:white}.workspace strong,.profile strong{font-size:12px;display:block}.workspace small,.profile small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.avatar{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;background:#e9eadf;border-radius:8px;color:#566149;font-weight:600;font-size:12px}.dot{padding:0 4px}.nav-label{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#999e94;margin:0 12px 12px}.nav-item{display:flex;align-items:center;gap:12px;margin:4px 0;padding:12px;border-radius:7px;font-size:13px;color:#747b70}.nav-item:hover{background:#f0f2e9}.nav-item.active{background:#e9efdf;color:#35513c;font-weight:650}.nav-indicator{height:6px;width:6px;border-radius:100%;background:#527644;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:40px}.plan-note{border:1px solid #dfe5d6;background:#f0f3e9;padding:15px;border-radius:10px}.badge{display:inline-block;font-size:9px;letter-spacing:1.4px;font-weight:700;background:#e4ecd9;color:#50653c;padding:5px 8px;border-radius:4px;white-space:nowrap}.plan-note strong{display:block;font-size:12px;margin:12px 0 4px}.plan-note small{color:var(--muted);font-size:11px}.plan-note a{font-size:11px;display:flex;justify-content:space-between;align-items:center;margin-top:15px;color:var(--green)}.plan-note .icon{width:16px}.public-link{font-size:11px;color:var(--muted);display:block;margin:21px 6px}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:18px}.small{width:30px;height:30px;border-radius:50%}.main-wrap{min-width:0;flex:1}.topbar{height:77px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 44px;font-size:11px;color:var(--muted);background:#fbfcf8}.slash{padding:0 14px;color:#b9bcb4}.demo-pill{display:flex;align-items:center;gap:7px;background:#eeeee5;border-radius:20px;padding:6px 10px;color:#7b7d6b;font-size:10px}.demo-pill i{background:#a1a77f;width:5px;height:5px;border-radius:50%}main{max-width:1450px;margin:auto;padding:40px 44px 25px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2px;color:#8d947f;margin:0 0 9px}h1{font:normal 44px/1.15 var(--serif);letter-spacing:-1.4px;margin:0}.heading-dot{color:var(--rust)}.subtext{color:var(--muted);font-size:13px;margin:12px 0 0}h2{font-size:16px;font-weight:600;margin:0}h3{font-size:16px}.button{display:inline-flex;gap:9px;align-items:center;justify-content:center;border:1px solid transparent;padding:11px 17px;border-radius:6px;font-size:12px;white-space:nowrap;font-weight:550;min-height:42px}.button .icon{width:17px;height:17px}.primary{background:var(--green);color:white}.primary:hover{background:#28452e}.subtle{background:#f1f2eb;border-color:var(--line);color:#56634d}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:30px}.stat{display:flex;gap:15px;flex-wrap:wrap;align-items:center;background:#fbfcf8;border:1px solid var(--line);padding:20px 22px;border-radius:10px}.stat-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;background:#edf0e5;color:#687b50}.stat-icon.clay{background:#f4ece3;color:#a7835b}.stat>div>span{font-size:11px;color:var(--muted)}.stat strong{font-size:29px;font-weight:500;line-height:1.25;display:block}.stat strong small{font-size:12px;color:#a2a697;font-weight:400}.stat-foot{font-size:10px;color:#929888;flex-basis:100%;margin-top:2px}.inventory-panel{border:1px solid var(--line);border-radius:11px;background:white;overflow:hidden}.panel-heading{padding:23px 24px 19px;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-heading p{font-size:11px;color:var(--muted);margin:5px 0 0}.quiet-label{font-size:8px;letter-spacing:1.8px;color:#a5aa9e}.filters{display:flex;gap:12px;padding:0 24px 22px}.search-field,.location-filter{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fafbf7;border-radius:6px;min-height:43px;padding:0 12px;color:#8b9380;min-width:0}.search-field{flex:1}.filters input,.filters select{border:0;background:transparent;outline-offset:0;min-width:0;width:100%;font-size:11px;color:var(--ink);padding:10px 0}.filters input::placeholder{color:#9ba18f}.filters .icon{width:17px}.location-filter{width:215px}.search-submit{font-size:11px;padding:8px 12px}.table-head,.product-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(130px,1fr) 95px 20px;gap:18px;align-items:center;padding:15px 24px}.table-head{background:#f9faf6;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:8px;letter-spacing:1.5px;color:#939b87;padding-top:12px;padding-bottom:12px}.product-row{border-bottom:1px solid #eff0ea;min-height:88px}.product-row:hover{background:#fafbf6}.product-identity{display:flex;align-items:center;gap:15px;min-width:0}.product-identity strong{font-size:12px;font-weight:600;display:block}.product-identity small{display:block;font-size:10px;color:#9a9f93;max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.product-art{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:8px;background:#f0efea;color:#8c8c78}.product-art .icon{width:26px;height:26px}.product-art.screw{background:#eeede5;color:#8c8465}.product-art.tool{background:#e9efea;color:#597461}.product-art.paint{background:#f3eee7;color:#ad8768}.product-art.cable{background:#eaedf0;color:#7b8995}.product-location>span{font-size:11px;font-weight:500;display:block}.product-location small{font-size:9px;color:#979e8f;display:block;margin-top:4px}.tag{display:inline-block;font-size:8px;font-weight:400;color:#858f74;padding:2px 5px;background:#f1f4e9;border-radius:4px;margin-left:3px}.quantity{font-size:16px;font-weight:550}.quantity small{font-size:10px;font-weight:400;color:#929b85;margin-left:5px}.empty-quantity{color:#bb8668}.out-label{display:block;font-size:8px;font-weight:500;letter-spacing:.3px;margin-top:3px}.row-arrow{color:#a2ab97}.row-arrow .icon{width:16px}.table-footer{display:flex;justify-content:space-between;gap:12px;color:#9aa18e;font-size:9px;padding:16px 24px}.bottom-note{display:flex;align-items:center;gap:9px;margin:24px 0 0;font-size:10px;color:#8b9480}.bottom-note .icon{width:15px;color:#91a078}.bottom-note a{margin-left:auto;color:#61764d;white-space:nowrap}.main-wrap footer{display:flex;justify-content:space-between;color:#9da393;font-size:9px;padding:30px 44px}.back-link{font-size:12px;color:#75836a;display:inline-block;margin-bottom:24px}.detail-heading h1{font-size:38px}.product-art.large{width:84px;height:84px}.product-art.large .icon{width:48px;height:48px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px;align-items:start}.stock-row{padding:22px 24px;border-top:1px solid var(--line)}.stock-top{display:flex;gap:12px;align-items:center}.stock-top strong{font-size:13px}.stock-top small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.stock-number{margin-left:auto!important;font-size:24px!important;white-space:nowrap}.stock-number small{display:inline;margin-left:5px}.stock-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-top:20px}.stock-form label{flex:1;min-width:100px}.stock-form input,.stock-form select{width:100%}.stock-form label,.inline-form label{font-size:10px;color:var(--muted)}input:not([type=hidden]),select,textarea{border:1px solid #dfe4d7;border-radius:5px;padding:10px 12px;background:#fcfdf9;color:var(--ink);min-height:42px}label input,label select{display:block;margin-top:6px}.quick-controls{display:flex;gap:8px;align-items:center;margin-top:15px}.quick-controls>span{font-size:10px;color:var(--muted);margin-right:auto}.quick-controls form{margin:0}.stepper{border:1px solid #dce4d4;color:var(--green);background:#f7f9f2;border-radius:5px;padding:9px 15px;min-height:40px}.summary-card{padding:25px;border-radius:10px;background:#eaf0e1;border:1px solid #dfe7d4}.summary-card .big-number{font:54px/1.3 var(--serif);margin-top:12px}.big-number small{font:15px sans-serif;margin-left:7px;color:#849176}.summary-card p{font-size:12px;color:#748467}.summary-card hr{border:0;border-top:1px solid #d6dfca;margin:23px 0}.summary-card>small{font-size:11px;color:#7a886f}.summary-card .icon{width:15px}.history{margin-top:24px}.event-row{padding:18px 24px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--line)}.event-dot{width:6px;height:6px;border-radius:50%;background:#a5b594}.event-row strong{font-size:11px}.event-row small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.event-time{margin-left:auto;font-size:10px;color:var(--muted)}.event-delta{white-space:nowrap;min-width:65px;text-align:right}.feedback,.message{padding:14px 18px;border-radius:7px;background:#e9f1df;color:#466034;margin-bottom:20px;font-size:12px}.error{background:#fae9e3;color:#a34f37}.form-panel{max-width:750px;padding:28px}.form-panel .input{margin-bottom:22px}.form-panel label{display:block;font-size:12px;margin-bottom:7px}.form-panel input,.form-panel select,.form-panel textarea{width:100%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:22px}.location-cards,.project-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.location-card{padding:26px}.location-illustration{display:grid;place-items:center;width:75px;height:75px;background:#eff2e8;border-radius:16px;margin-bottom:20px;color:#7d8c67}.location-illustration .icon{width:38px;height:38px}.location-link{display:flex;align-items:center;gap:10px;padding:20px 0;border-top:1px solid var(--line);font-size:11px}.location-link:first-of-type{margin-top:25px}.location-link .icon{width:16px;color:#7d8c67}.location-link .icon:last-child{margin-left:auto}.project-create{padding:20px 24px;margin-bottom:24px}.inline-form{display:flex;align-items:end;gap:16px}.inline-form label{flex:1}.inline-form input{width:100%}.project-card{padding:28px}.project-symbol{display:block;color:#73845c;margin-bottom:24px}.project-symbol .icon{width:34px;height:34px}.project-card h2{font:25px var(--serif)}.project-card p{font-size:12px;color:var(--muted)}.project-card a{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;margin-top:30px;font-size:12px;color:var(--green)}.plan-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.plan-card{padding:26px 23px;background:white;border:1px solid var(--line);border-radius:10px}.plan-card.selected{border:1px solid #96a884;background:#f7faf2}.plan-card h2{font:29px var(--serif);margin:17px 0 7px}.plan-card>p{font-size:11px;color:var(--muted);min-height:35px}.plan-price{font-size:22px;display:block;margin:24px 0}.plan-price small{font-size:11px;font-weight:400;color:var(--muted)}.plan-card ul{list-style:none;padding:20px 0 0;border-top:1px solid var(--line);margin:0}.plan-card li{font-size:12px;margin:13px 0;display:flex;gap:9px;align-items:center}.plan-card li .icon{width:14px;color:#7c9465}.notice{font-size:12px;color:var(--muted);padding:18px;background:#edf0e7;border-radius:6px;margin-top:24px}.empty-state{text-align:center;padding:40px;color:var(--muted)}.empty-state>.icon{width:32px;height:32px}.compact{padding:20px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:absolute;top:-70px;left:20px;background:white;z-index:10;padding:15px}.skip:focus{top:10px}.public-body{background:#f8f8f1}.public-header{max-width:1300px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:30px 50px;border-bottom:1px solid var(--line)}.public-header nav{display:flex;gap:30px;align-items:center;font-size:12px}.public-body main{max-width:1300px;padding:60px 50px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;min-height:460px}.hero h1{font-size:76px;letter-spacing:-3px}.hero>div>p:not(.eyebrow){font-size:15px;color:#7a8370;line-height:1.8;max-width:440px;margin:25px 0}.large-button{padding:15px 23px}.hero small{display:block;font-size:10px;color:#9a9f90;margin-top:16px}.hero-art{height:400px;position:relative;background:#ecf0e2;border-radius:150px 150px 12px 12px;color:#6a7c56;overflow:hidden}.shelf-line{position:absolute;bottom:85px;left:20px;right:20px;height:10px;background:#b6c2a3;box-shadow:0 8px 0 #dbe3cf}.drawn-box{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#d8c8ac;border:1px solid #b8a98d;border-radius:4px;box-shadow:inset 0 14px 0 #e1d3bd;bottom:95px;width:130px;height:115px;color:#87785f}.drawn-box span{font-size:8px;letter-spacing:1px;background:#eee8d8;padding:5px;margin-top:15px}.drawn-box .icon{width:32px;height:32px}.box-one{left:35px;transform:rotate(-3deg)}.box-two{right:35px;transform:rotate(2deg);height:130px}.box-three{left:100px;bottom:212px;width:125px;height:95px;background:#a6b696;border-color:#8fa47e;box-shadow:inset 0 12px 0 #b7c5a9;color:#536d43}.floating-label{position:absolute;display:flex;gap:11px;align-items:center;padding:16px;background:#fff;border-radius:8px;box-shadow:0 10px 30px #31452314;bottom:38px;left:70px;font-size:11px}.floating-label strong{display:block;font-size:10px;font-weight:400;color:#909883;margin-top:3px}.art-caption{position:absolute;top:45px;left:0;right:0;text-align:center;font-size:8px;letter-spacing:1.5px}.public-features{display:grid;grid-template-columns:repeat(3,1fr);gap:45px;border-top:1px solid var(--line);margin-top:70px;padding-top:35px}.public-features .icon{color:#8a9b73}.public-features h2{font-size:15px;margin:15px 0 9px}.public-features p{font-size:12px;color:var(--muted);line-height:1.8}.public-body footer{max-width:1300px;margin:auto;padding:25px 50px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}dl{display:grid;grid-template-columns:1fr 1fr;font-size:13px;gap:15px;margin-top:25px}dd{margin:0}dt{color:var(--muted)}
@media(min-width:1500px){main{padding:50px 60px}.topbar{padding:0 60px}.product-row{min-height:94px}}@media(max-width:1150px){.sidebar{width:215px;padding-left:15px;padding-right:15px}.brand{font-size:14px}.topbar{padding:0 25px}main{padding:30px 25px}.table-head,.product-row{grid-template-columns:minmax(180px,1.5fr) minmax(110px,1fr) 70px 14px;gap:10px;padding-left:18px;padding-right:18px}.product-identity{gap:10px}.product-identity small{max-width:180px}.stat{padding:16px;gap:10px}.quiet-label{display:none}.detail-grid{grid-template-columns:1fr}.summary-card{display:none}.plan-cards{gap:10px}.plan-card{padding:18px}.hero h1{font-size:62px}.hero{gap:30px}.hero-art{height:360px}.drawn-box{width:110px}.box-three{left:80px}.floating-label{left:35px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;height:auto;width:100%;padding:18px 20px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:18px}.brand small,.workspace,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:5px;overflow:auto;margin-top:18px}.nav-item{padding:12px 10px;margin:0;border-radius:6px 6px 0 0;white-space:nowrap;gap:7px;font-size:11px;flex:1;justify-content:center}.nav-item .icon{width:17px;height:17px}.nav-indicator{display:none}.topbar{height:43px;padding:0 20px;font-size:9px}.topbar>span:first-child{display:none}.demo-pill{padding:4px 8px;font-size:9px;margin-left:auto}main{padding:28px 18px 20px}.page-heading{gap:12px;align-items:flex-start;margin-bottom:24px}h1{font-size:35px}.eyebrow{font-size:7px;letter-spacing:1.3px}.subtext{font-size:11px;line-height:1.6;margin-top:8px}.page-heading>.button{font-size:10px;padding:9px 10px;min-height:38px;margin-top:17px}.stats{gap:8px;margin-bottom:22px}.stat{padding:13px 11px;gap:6px;display:block}.stat-icon{width:30px;height:30px;border-radius:7px;margin-bottom:8px}.stat-icon .icon{width:17px}.stat>div>span{font-size:9px}.stat strong{font-size:25px;margin-top:4px}.stat strong small{font-size:9px}.stat-foot{display:none}.panel-heading{padding:19px 16px 16px}.panel-heading h2{font-size:15px}.panel-heading p{font-size:10px}.filters{padding:0 14px 17px;flex-wrap:wrap;gap:9px}.search-field{flex-basis:100%}.location-filter{width:auto;flex:1}.filters input,.filters select{font-size:11px}.table-head{display:none}.product-row{grid-template-columns:1fr 65px;gap:6px 12px;padding:16px 14px;min-height:100px}.product-identity{grid-column:1;grid-row:1}.product-art{width:40px;height:40px}.product-art .icon{width:24px;height:24px}.product-identity strong{font-size:11px}.product-identity small{display:none}.product-location{grid-column:1;grid-row:2;padding-left:50px}.product-location>span{font-size:9px}.product-location small{font-size:8px;max-width:200px}.quantity{grid-column:2;grid-row:1/3;text-align:right;font-size:17px}.quantity small{font-size:9px}.row-arrow{display:none}.table-footer{padding:14px;font-size:9px}.table-footer>span:last-child{display:none}.bottom-note{font-size:9px;align-items:flex-start}.bottom-note a{display:none}.main-wrap footer{padding:20px 18px;font-size:8px}.main-wrap footer span{display:none}.detail-heading h1{font-size:31px}.product-art.large{width:55px;height:55px}.product-art.large .icon{width:30px;height:30px}.stock-row{padding:18px 15px}.stock-top{gap:9px;align-items:flex-start}.stock-top .stat-icon{display:none}.stock-top small{font-size:9px;max-width:220px}.stock-number{font-size:22px!important}.stock-form{gap:10px}.stock-form label:first-child{flex-basis:25%}.stock-form label{flex-basis:60%;min-width:0}.stock-form button{width:100%}.event-row{padding:15px;gap:8px}.event-time{display:none}.event-row small{max-width:230px;font-size:8px}.event-delta{margin-left:auto;font-size:10px!important}.form-panel{padding:20px}.form-grid{gap:12px}.location-cards,.project-cards,.plan-cards{grid-template-columns:1fr}.location-card{padding:22px}.inline-form{flex-wrap:wrap}.inline-form label{flex-basis:100%}.inline-form button{width:100%}.page-heading>.badge{font-size:7px;letter-spacing:.5px;margin-top:5px}.plan-card{padding:24px}.plan-card>p{min-height:0}.public-header{padding:20px}.public-header .brand{font-size:15px}.public-header nav>a:first-child{display:none}.public-header .button{font-size:10px;padding:9px}.public-body main{padding:40px 22px}.hero{grid-template-columns:1fr;gap:35px}.hero h1{font-size:59px}.hero>div>p:not(.eyebrow){font-size:14px}.hero-art{height:330px;max-width:420px;width:100%;margin:auto}.box-one{left:30px}.box-two{right:35px}.box-three{left:85px}.art-caption{top:25px}.public-features{grid-template-columns:1fr;gap:24px;margin-top:40px}.public-features article{border-bottom:1px solid var(--line);padding-bottom:18px}.public-body footer{padding:20px;font-size:9px}.public-body footer span{max-width:160px;text-align:right}}

.auth-panel { max-width: 620px; margin: 48px auto; }
.auth-panel h1 { font-size: 2rem; margin-bottom: 24px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; font-size: .9rem; }
.public-body > main > .message { max-width: 900px; margin: 24px auto; padding: 20px; }

.payment-order { border-top: 1px solid var(--line, #ddd); padding: 22px 0; }
.payment-order small { overflow-wrap: anywhere; }
.plan-card > .button { margin-top: 20px; }

/* Member management: keep everyday actions ahead of billing settings. */
.members-page { max-width: 1080px; }
.members-page .page-heading h1 { font-size: clamp(30px, 3.5vw, 40px); }
.members-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 28px; }
.members-page .form-panel { max-width: none; min-width: 0; padding: 24px; }
.members-page p { font-size: 13px; line-height: 1.65; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.member-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.member-identity { min-width: 0; overflow-wrap: anywhere; }
.member-identity strong { font-size: 14px; }
.member-identity p { margin: 3px 0 8px; color: #616d62; }
.member-role { display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--pale); color: var(--green); font-size: 11px; }
.member-row form { margin: 0; flex-shrink: 0; }
.member-invitations { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.member-invitations h2 { font-size: 13px; }
.member-invitations > p { color: #616d62; margin-bottom: 0; }
.member-invite > p { color: #616d62; }
.member-invite > p + p { font-size: 12px; }
.member-invite-form { margin-top: 22px; }
.member-invite-form .input { margin-bottom: 16px; }
.member-settings { margin-top: 12px; background: #fbfcf8; }
.member-settings summary { padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 14px; }
.member-settings summary:focus-visible { outline: 3px solid #b78b50; outline-offset: -4px; }
.member-settings[open] summary { border-bottom: 1px solid var(--line); }
.member-settings .form-panel > p:first-child { margin-top: 0; }
.member-settings p { max-width: 75ch; color: #616d62; }
.member-seats-form { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin-top: 20px; }
.member-seats-form .input { margin-bottom: 0; max-width: 220px; }
@media (max-width: 1100px) { .members-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 600px) {
    .members-page .form-panel { padding: 20px; }
    .member-settings summary { padding: 18px 20px; }
    .member-row { align-items: start; flex-direction: column; gap: 12px; }
    .member-seats-form { align-items: stretch; flex-direction: column; }
    .member-seats-form .input { max-width: none; }
    .member-invite-form .button { width: 100%; }
}

/* Account overview: consistent panel widths, spacing and responsive comparison. */
.subscription-page { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.subscription-page > * { grid-column: 1 / -1; min-width: 0; }
.subscription-page > .page-heading, .subscription-page > .notice { margin: 0; }
.subscription-page .form-panel { max-width: none; width: 100%; min-width: 0; padding: 28px; }
.subscription-page > .subscription-current, .subscription-page > #seats { grid-column: auto; }
.subscription-page .member-settings { margin: 0; }
.subscription-page section { scroll-margin-top: 24px; }
.subscription-page h2 { margin-bottom: 16px; }
.subscription-page p { line-height: 1.65; }
.subscription-page .form-actions { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
.subscription-page .button { white-space: normal; text-align: center; }
.subscription-page .plan-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.subscription-page .plan-card { min-width: 0; position: relative; padding: 56px 24px 24px; display: flex; flex-direction: column; }
.subscription-page .plan-card > .badge { position: absolute; top: 20px; left: 24px; }
.subscription-page .plan-card h2 { margin: 0 0 12px; }
.subscription-page .plan-card > p { min-height: 0; margin: 0 0 16px; }
.subscription-page .plan-card > p:first-of-type { min-height: 48px; }
.subscription-page .plan-card > .button { margin-top: auto; }
.subscription-page .plan-card ul { flex: 1; }
.subscription-page .payment-order:last-child { padding-bottom: 0; }
.subscription-page .payment-order h3 { margin-top: 0; }
@media (max-width: 1100px) {
    .subscription-page { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .subscription-page .plan-cards { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
}
@media (max-width: 760px) {
    .subscription-page { gap: 16px; }
    .subscription-page .form-panel { padding: 20px; }
    .subscription-page .plan-cards { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .subscription-page .plan-card > p:first-of-type { min-height: 0; }
}
.subscription-page .checkbox { margin: 20px 0; }
.subscription-page .checkbox label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.subscription-page input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; margin: 2px 0 0; padding: 0; accent-color: var(--green); }

.locations-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; align-items: start; margin-bottom: 20px; }
.locations-layout-demo { max-width: 750px; }
.locations-layout > .form-panel { min-width: 0; max-width: none; }
.location-management-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 0; }
.location-management-row + .location-management-row { border-top: 1px solid var(--line); }
.location-management-row:first-child { padding-top: 0; }
.location-management-row:last-child { padding-bottom: 0; }
.location-management-row .location-link { flex: 1; min-width: 160px; margin: 0; padding: 10px 0; border: 0; font-size: 13px; overflow-wrap: anywhere; }
.location-management-row .location-link span { min-width: 0; }
.location-management-row .button { flex-shrink: 0; }
@media (max-width: 480px) {
    .location-management-row { gap: 8px; }
    .location-management-row .location-link { flex-basis: 100%; }
    .location-management-row .button { margin-left: 26px; }
}

.subscription-page .plan-upgrade-action { flex-basis: 100%; }

.subscription-page .payment-order-compact { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 24px; align-items: center; padding: 16px 0; }
.subscription-page .payment-order-compact h3 { margin: 0 0 4px; font-size: 14px; }
.subscription-page .payment-order-compact p { margin: 3px 0; font-size: 12px; }
.payment-summary { min-width: 0; }
.payment-meta, .payment-details { color: var(--muted); }
.payment-details { margin-top: 5px; font-size: 11px; }
.payment-details summary { cursor: pointer; width: fit-content; }
.payment-details small { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.payment-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.payment-actions form { margin: 0; }
@media(max-width:760px) {
    .subscription-page .payment-order-compact { grid-template-columns: minmax(0,1fr); }
    .payment-actions { justify-content: flex-start; }
}

.stock-transfer{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.stock-transfer summary{cursor:pointer;color:var(--green);font-weight:600;font-size:12px}.stock-transfer summary:focus-visible{outline:3px solid #b78b50;outline-offset:3px}.transfer-help{font-size:11px;color:var(--muted);margin:12px 0 0}.transfer-help a{text-decoration:underline}

.stat-link{color:inherit;text-decoration:none;cursor:pointer}.stat-link:hover,.stat-link:focus-visible{border-color:var(--muted)}.stat-link:focus-visible{outline:2px solid var(--muted);outline-offset:3px}.stat-link .stat-foot{text-decoration:underline}

/* Keep product creation within reach on every inventory screen. */
.main-wrap > .topbar { position: sticky; top: 0; z-index: 5; background: var(--paper, #fafbf7); gap: 12px; }
.global-add-product { margin-left: auto; flex-shrink: 0; }
.product-input-row { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 20px; padding: 20px; min-width: 0; }
.product-input-row legend { padding: 0 8px; font-size: 13px; font-weight: 600; }
.bulk-products .form-actions { margin-top: 20px; gap: 12px; flex-wrap: wrap; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
    .main-wrap > .topbar { height: auto; min-height: 62px; padding-top: 8px; padding-bottom: 8px; }
    .global-add-product { margin-left: 0; }
    .product-input-row { padding: 14px; }
}

.impersonation-banner{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px;background:#fff2c6;color:#352d18;border-bottom:2px solid #d49c25}
.impersonation-banner form{margin:0}
