:root{--green:#185e49;--green-dark:#104a39;--green-light:#e7f1ec;--line:#dbe6df;--ink:#20372d;--muted:#53695c;--paper:#fff;--ground:#f4f7f5;--red:#ce493e;--amber:#8b601e;--radius:14px;font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--ground);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{min-height:40px;border:1px solid #c5d7cb;background:var(--paper);color:var(--green);border-radius:9px;padding:9px 15px;cursor:pointer;font-weight:550;transition:background .16s,border-color .16s}button:hover{background:var(--green-light);border-color:#81a990}button:active{background:#d4e7db}button:disabled{opacity:.52;cursor:default}button.primary{color:#fff;background:var(--green);border-color:var(--green)}button.primary:hover{background:var(--green-dark)}button.danger{color:var(--red)}button.small{min-height:34px;font-size:12px;padding:6px 10px}a{color:var(--green);text-underline-offset:3px}a.button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #c5d7cb;border-radius:9px;padding:9px 15px;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #87b8a0;outline-offset:3px}input,select,textarea{min-height:43px;border:1px solid #cbd9cf;border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;max-width:100%;accent-color:var(--green)}textarea{resize:vertical;min-height:100px}input::placeholder,textarea::placeholder{color:#53695c}input[type=checkbox]{min-height:20px;width:19px;height:19px}::selection{background:#c7e6d5;color:#143b2a}.topbar{background:var(--green);color:#fff;min-height:72px;padding:15px max(24px,calc((100vw - 1440px)/2));display:flex;align-items:center;gap:20px}.brand{font-size:21px;letter-spacing:-.4px;font-weight:700;white-space:nowrap}.topbar .hint{color:#c6dfd1;font-size:13px}.topbar .spacer{flex:1}.topbar button,.topbar a.button{color:#fff;border-color:#7ca794;background:transparent}.topbar button:hover,.topbar a.button:hover{background:#27745a}.topbar .identity{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layout{max-width:1440px;margin:auto;padding:28px 28px 50px}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.heading h1{font-size:26px;letter-spacing:-.5px;margin:0 0 7px}.heading p{margin:0;color:var(--muted);line-height:1.7}.actions,.inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tabs{display:flex;gap:6px;margin:0 0 20px;border-bottom:1px solid var(--line);padding-bottom:12px}.tabs button{border-color:transparent;background:transparent;min-width:82px}.tabs button.active{color:var(--green);background:#e0ece5;border-color:#c5dacd}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:18px}.panel h2{font-size:18px;margin:0 0 16px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}.toolbar .filter{display:flex;gap:8px;align-items:center}.toolbar .filter input{min-width:250px}.status{display:inline-flex;align-items:center;gap:7px;font-size:13px;white-space:nowrap}.dot{width:7px;height:7px;background:#92a69a;border-radius:50%;display:inline-block}.dot.on{background:#258352}.muted{color:var(--muted)}.small-copy{font-size:12px;line-height:1.6}.badge{font-size:12px;display:inline-block;border-radius:5px;padding:3px 7px;background:var(--green-light);color:var(--green);white-space:nowrap}.badge.warn{background:#fbf0db;color:var(--amber)}.badge.red{background:#fae7e5;color:#a43c32}.notice{padding:12px 15px;background:#ecf4ef;border:1px solid #d1e3d6;border-radius:9px;color:#42634e;font-size:13px;line-height:1.7;margin-bottom:18px}.empty{padding:65px 24px;text-align:center;background:#fff;border:1px dashed #b7cdbe;border-radius:var(--radius)}.empty h2{font-size:20px;margin:0 0 9px}.empty p{color:var(--muted);line-height:1.8;margin:0 auto 18px;max-width:540px}.product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product{display:grid;grid-template-columns:minmax(0,1fr) 86px 128px;gap:14px;align-items:center;background:#fff;border:1.5px solid #9cc2ab;border-radius:15px;padding:15px;min-height:155px}.product.read{border-color:#d6e2da;background:#fbfcfb}.product .title{font-size:14px;font-weight:550;line-height:1.5;margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.price{font-size:22px;font-weight:700;color:var(--red);font-variant-numeric:tabular-nums;line-height:1.15}.product .meta{font-size:11px;line-height:1.7;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thumb{width:86px;height:86px;border-radius:8px;object-fit:cover;background:#edf2ee}.no-image{display:grid;place-items:center;color:#5d7163;font-size:12px}.product-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.product-actions button{min-height:37px;padding:6px 4px;font-size:12px;border-radius:8px}.product-actions .primary{grid-column:span 1}.product-foot{font-size:11px;color:var(--muted);grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid #eaf0eb;padding-top:8px;margin-top:-2px}.unread-mark{font-size:10px;color:#176344;background:#e2f2e8;border-radius:4px;padding:2px 4px;margin-left:5px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;font-size:12px;color:var(--muted);font-weight:500;border-bottom:1px solid var(--line);padding:13px 12px;background:#f8faf8}td{padding:15px 12px;border-bottom:1px solid #edf1ee;font-size:13px}tr:last-child td{border-bottom:0}td .actions{flex-wrap:nowrap}.summary-strip{display:flex;gap:30px;flex-wrap:wrap;margin:0 0 24px;padding:16px 0;border-bottom:1px solid var(--line)}.summary-strip span{color:var(--muted);font-size:13px}.summary-strip strong{font-size:17px;color:var(--ink);padding-left:8px;font-variant-numeric:tabular-nums}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:550}.field.full{grid-column:1/-1}.field small{font-weight:400;color:var(--muted);line-height:1.7}.form-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.setting-line{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid #e9efeb}.setting-line:last-child{border-bottom:0}.setting-line strong{display:block;margin-bottom:5px}.setting-line p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.logs{margin:0;padding:0;list-style:none}.logs li{display:grid;grid-template-columns:135px 45px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid #e9efeb;font-size:13px;line-height:1.7}.logs time{color:var(--muted);font-variant-numeric:tabular-nums}.logs .error{color:var(--red)}.logs .warn{color:var(--amber)}dialog{border:0;border-radius:16px;padding:26px;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 40px);color:var(--ink);box-shadow:0 16px 50px #00000029;overflow:auto}dialog::backdrop{background:#142d2355}dialog h2{font-size:21px;margin:0 0 8px}dialog>p{line-height:1.7;color:var(--muted);margin:0 0 20px}.dialog-error{color:#a43c32;background:#fbefec;border-radius:8px;padding:10px 12px;margin-top:14px;font-size:13px;line-height:1.6}.login-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-story{background:#185e49;color:#fff;padding:70px max(44px,8vw);display:flex;flex-direction:column;justify-content:space-between}.login-story .wordmark{font-weight:700;font-size:22px}.login-story h1{font-size:42px;line-height:1.3;letter-spacing:-1px;max-width:440px;margin:24px 0}.login-story p{max-width:410px;line-height:1.9;color:#cfe4d7;font-size:15px}.login-story .route{font-size:13px;border-top:1px solid #4e8970;padding-top:22px;line-height:1.8}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.login-box{max-width:370px;width:100%}.login-box h2{font-size:29px;margin:0 0 10px;letter-spacing:-.5px}.login-box>p{line-height:1.8;color:var(--muted);margin:0 0 28px}.login-box .field{margin-top:18px}.login-box button{width:100%;margin-top:24px;min-height:47px}.login-box .portal-link{display:block;margin-top:22px;font-size:13px}.loading{padding:70px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 20px;max-width:calc(100vw - 30px);background:#203e2f;color:#fff;border-radius:9px;box-shadow:0 8px 25px #00000020;z-index:20;font-size:13px;line-height:1.6}#toast.error{background:#8c362e}.detail-list{display:grid;grid-template-columns:88px 1fr;gap:10px;font-size:13px;line-height:1.7}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;overflow-wrap:anywhere}.progress-note{font-size:12px;line-height:1.7;color:var(--amber);padding:10px 0}body[data-area=admin] .product-list{grid-template-columns:1fr}.mobile-count{font-size:13px;color:var(--muted)}
@media(min-width:1450px){.product-list{grid-template-columns:repeat(3,minmax(0,1fr))}.product{grid-template-columns:minmax(0,1fr) 72px 118px;padding:13px;gap:10px}.thumb{width:72px;height:80px}}
@media(max-width:1000px){.product-list{grid-template-columns:1fr}.login-story{padding:50px 38px}.login-story h1{font-size:34px}.product{min-height:142px}.topbar{padding:15px 24px}.heading{gap:12px}}
@media(max-width:620px){:root{font-size:13px}.topbar{padding:13px 16px;min-height:61px;gap:10px}.brand{font-size:18px}.topbar .hint{display:none}.topbar .identity{max-width:90px;font-size:12px}.topbar button{min-height:34px;font-size:12px;padding:6px 9px}.layout{padding:20px 12px 28px}.heading{margin-bottom:17px;flex-direction:column;gap:15px}.heading h1{font-size:23px}.heading p{font-size:12px}.heading>.actions{width:100%;justify-content:space-between}.tabs{gap:0;margin-bottom:15px;justify-content:space-between}.tabs button{min-width:0;flex:1;padding:9px 5px;font-size:13px}.toolbar{gap:12px;margin-bottom:12px}.toolbar .filter{width:100%}.toolbar .filter input{min-width:0;flex:1}.toolbar .filter select{max-width:140px}.product-list{gap:9px}.product{grid-template-columns:minmax(0,1fr) 62px 104px;gap:8px;padding:10px;min-height:140px;border-radius:13px}.thumb{width:62px;height:72px}.product .title{font-size:12px;line-height:1.45}.price{font-size:19px}.product .meta{font-size:10px}.product-actions{gap:5px}.product-actions button{min-height:35px;font-size:11px;padding:5px 2px}.product-foot{font-size:10px}.panel{padding:16px 14px;border-radius:12px}.panel h2{font-size:17px}.summary-strip{gap:18px;margin-bottom:17px;padding:11px 0}.summary-strip strong{font-size:16px}.summary-strip span{font-size:12px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:1}.logs li{grid-template-columns:105px 1fr;gap:5px 10px;font-size:12px}.logs li>span:last-child{grid-column:1/-1}.logs time{font-size:11px}.login-layout{display:block}.login-story{padding:27px 25px 29px;min-height:220px}.login-story h1{font-size:29px;max-width:300px;margin:22px 0 10px}.login-story p,.login-story .route{display:none}.login-form-wrap{padding:30px 25px 45px}.login-box{max-width:100%}.login-box h2{font-size:25px}.login-box>p{margin-bottom:20px}.setting-line{align-items:flex-start}.setting-line input{width:100px}.setting-line p{max-width:220px}.empty{padding:45px 18px}.empty h2{font-size:18px}#toast{bottom:18px;width:max-content;text-align:center}dialog{padding:22px}.table-wrap table{min-width:650px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:620px){body[data-area=user] .heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}body[data-area=user] .heading h1{font-size:21px;margin:0}body[data-area=user] .heading p{display:none}body[data-area=user] .heading>.actions{width:auto;gap:8px}body[data-area=user] .heading>.actions button{padding:8px 10px}.product-foot{align-items:center;min-height:22px}.product-foot>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-foot>span:last-child{white-space:nowrap;flex-shrink:0}}
