:root{--deep:#0c4435;--ink:#19372b;--green:#17684b;--soft:#e5f1e9;--muted:#5f7468;--line:#dce8df;--bg:#f3f7f3;--white:#fff;--warn:#925722;--warn-bg:#faeed9}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.46;font-variant-numeric:tabular-nums}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.2}
button:disabled{cursor:default;opacity:.48}
button:focus-visible,a:focus-visible{outline:2px solid #398b68;outline-offset:2px}
button[data-cmd]:not(:disabled):hover{filter:brightness(.96)}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
svg{vertical-align:middle;flex:none;width:18px;height:18px}
img{display:block;max-width:100%}
small{font-size:11px}
.loading{padding:48px 20px;text-align:center;color:var(--muted)}
.loading p,.loading a{margin-top:13px}
.bare{background:none;border:0;padding:0;color:inherit}
.button,.cross{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px;font-weight:650;white-space:nowrap}
.button svg,.cross svg{width:15px;height:15px}
.primary{background:var(--green);color:#fff;border-color:var(--green)}
.cross{color:var(--green)}
.text-button{padding:4px 2px;border:0;background:transparent;color:var(--green);font-size:11.5px;font-weight:650;white-space:nowrap}
.text-button svg{width:14px;height:14px}
.sample{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;background:var(--soft);color:var(--green);white-space:nowrap;font-size:10.5px;font-weight:600}
.status{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:4px 7px;border-radius:6px;font-size:10.5px;font-weight:650;color:#596f64;background:#edf2ee}
.status i{background:currentColor;width:5px;height:5px;border-radius:50%}
.status.good{background:#e3f1e6;color:#296046}
.status.warn{background:var(--warn-bg);color:var(--warn)}
.status.info{background:#e6f0f2;color:#345d69}
.mark{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;background:#e1efd4;color:#214e38}
.mark svg{width:19px;height:19px}
.photo{width:100%;height:100%;object-fit:cover;background:#edf1e9;flex:none}
.missing{display:grid;place-items:center;color:#6e8272}
.missing svg{width:16px;height:16px}
.money{white-space:nowrap;color:var(--green);font-weight:750;letter-spacing:-.02em;font-size:18px}
.money i{font-style:normal;font-size:.73em}
.money small{margin-left:2px;color:var(--muted);letter-spacing:0;font-size:10px;font-weight:530}
.search{display:flex;gap:8px;align-items:center;background:white;border:1px solid var(--line);border-radius:8px;padding:0 10px;height:36px;color:#5f776a}
.search input{border:0;outline:0;background:none;min-width:0;width:100%;font-size:12px}
.search:focus-within{border-color:#82b69b;box-shadow:0 0 0 2px #e5f4e9}
.search svg{width:16px;height:16px}
.tabs{display:flex;gap:5px;align-items:center;overflow-x:auto;scrollbar-width:thin}
.tab{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:6px;padding:6px 8px;font-size:11px;font-weight:550;color:#4e6a5b;flex:none}
.tab.active{background:var(--soft);color:var(--green);border-color:#c9e3d2;font-weight:700}
.empty{display:grid;justify-items:center;gap:8px;text-align:center;color:var(--muted);padding:42px 16px;font-size:12px}
.empty svg{width:27px;height:27px;color:#628674}
.merchant-stage{min-height:100vh;min-height:100dvh;display:flex;justify-content:center;align-items:flex-start;background:#e8f0e8}
.mobile{height:100vh;height:100dvh;width:100%;max-width:440px;display:flex;flex-direction:column;overflow:hidden;background:#f5f8f5;position:relative}
@media(min-width:650px){
  .merchant-stage{padding:18px 0}
  .mobile{height:calc(100dvh - 36px);min-height:520px;max-height:990px;border:1px solid #cdded1;border-radius:20px;box-shadow:0 12px 45px #213e2a19}
}
.mini{flex:none;height:55px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 14px;color:#fff;background:var(--deep);border-bottom:1px solid #ffffff1c}
.mini strong{font-size:16px;font-weight:680;letter-spacing:.035em}
.mini .mark{background:#ffffff1b;color:#e2efdf;width:31px;height:31px;border-radius:9px}
.mini>.bare{height:34px;width:29px}
.capsule{justify-self:end;border:1px solid #ffffff55;background:#ffffff11;color:white;width:54px;height:26px;border-radius:24px}
.capsule svg{width:19px}
.ledger-hero{background:var(--deep);color:white;flex:none;display:flex;justify-content:space-between;align-items:center;padding:12px 15px 15px}
.ledger-hero h1,.sub-hero h1{font-size:29px;line-height:1.23;letter-spacing:-.035em}
.ledger-hero p,.sub-hero p{font-size:12px;color:#dceee3;margin-top:4px}
.ledger-badge{display:grid;justify-items:center;padding:0 8px 0 16px;border-left:1px solid #ffffff36;color:#e6f5dc}
.ledger-badge b{font-size:24px;line-height:1.15}
.ledger-badge span{font-size:10px;margin-top:4px}
.m-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ledger-tools{display:grid;gap:8px;padding:10px 13px 9px}
.ledger-tools .search{height:34px}
.ledger-head,.ledger-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(34px,44px) minmax(48px,61px) 68px;gap:7px;align-items:center;padding:0 12px}
.ledger-head{text-align:right;background:#e8f0eb;color:#537263;font-size:10.5px;font-weight:650;height:29px}
.ledger-head span:first-child{text-align:left}
.ledger-row{min-height:56px;background:#fff;border-bottom:1px solid #edf2ee}
.ledger-fruit{background:transparent;border:0;padding:0;color:inherit;text-align:left;justify-content:flex-start;min-width:0;gap:7px}
.ledger-row .photo{width:35px;height:35px;border-radius:6px}
.ledger-name{min-width:0;display:grid;gap:3px}
.ledger-name b{font-size:13.5px}
.ledger-name small{font-size:9.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ledger-price{text-align:right}
.ledger-price .money{font-size:13px;color:#355043}
.ledger-qty{color:var(--green);text-align:right;white-space:nowrap}
.ledger-qty b{font-size:16px}
.ledger-qty small{font-size:9px}
.low{color:var(--warn)!important}
.zero{color:#6e8276!important}
.ledger-add{display:flex;justify-content:flex-end}
.plus{width:27px;height:27px;padding:0;border:0;border-radius:7px;background:var(--soft);color:var(--green);flex:none}
.plus svg{width:15px;height:15px}
.stepper{display:flex;align-items:center;height:27px;border:1px solid var(--line);border-radius:6px;color:var(--green);background:#fff;overflow:hidden;flex:none}
.stepper b{min-width:21px;text-align:center;font-size:11px;color:var(--ink)}
.stepper button{width:22px;height:100%;padding:0;border:0;color:inherit;background:#e8f2ea}
.stepper button svg{width:13px;height:13px}
.ledger-note{display:flex;align-items:center;gap:7px;padding:10px 13px;color:var(--muted);font-size:10.5px}
.cart-dock,.action-dock{flex:none;display:flex;justify-content:space-between;align-items:center;background:white;border-top:1px solid var(--line);gap:9px;min-height:62px;padding:8px 13px}
.cart-dock{background:var(--deep);color:white}
.cart-icon{width:34px;height:34px;flex:none;border-radius:8px;display:grid;place-items:center;background:#ffffff1a}
.dock-sum{margin-right:auto;display:grid}
.dock-sum b{font-size:19px;line-height:1.16}
.dock-sum small{font-size:10px;color:#dcece1;margin-top:3px}
.cart-dock .primary{background:#e5f2d8;color:#23533a;border:0}
.action-dock b{font-size:21px;line-height:1.25;color:var(--deep)}
.action-dock>div{display:grid}
.action-dock small{color:var(--muted)}
.action-dock .button{height:41px}
.app-nav{display:grid;grid-template-columns:repeat(4,1fr);padding:4px 8px max(6px,env(safe-area-inset-bottom));flex:none;min-height:56px;background:white;border-top:1px solid var(--line)}
.nav-item{border:0;background:transparent;display:flex;flex-direction:column;gap:3px;color:#61776a;font-size:10.5px;padding:5px 0}
.nav-item svg{width:19px;height:19px}
.nav-item.on{color:var(--green);font-weight:700}
.nav-item.on svg{stroke-width:2.3}
.category-tools{padding:10px 12px;background:#eff4e9}
.shelf-layout{display:grid;grid-template-columns:86px minmax(0,1fr);flex:1;min-height:0}
.shelf-nav{background:#eaf0e3;display:flex;flex-direction:column}
.shelf-nav button{display:flex;justify-content:flex-start;text-align:left;padding:12px 9px;min-height:49px;font-size:12px;border:0;background:transparent}
.shelf-nav button.active{background:#dfecc8;border-left:3px solid #5b773a;font-weight:700;color:#3d5529}
.shelf-main{padding:11px;background:#fff}
.shelf-header{background:#e8f0db;color:#3d5a2d;border-radius:9px;display:flex;justify-content:space-between;align-items:center;padding:10px}
.shelf-header h1{font-size:18px}
.shelf-header p{font-size:11px;color:#58704c}
.shelf-row{display:flex;gap:9px;padding:10px 0;border-bottom:1px solid var(--line);align-items:center}
.shelf-photo{width:74px;height:74px;flex:none;overflow:hidden;border-radius:8px}
.shelf-copy{flex:1;min-width:0}
.shelf-copy p{font-size:10px;color:var(--muted);margin:2px 0 4px}
.shelf-buy{display:flex;align-items:center;justify-content:space-between;margin-top:2px}
.shelf-buy .money{font-size:16px}
.stock{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;border-radius:5px;font-size:10.5px;color:var(--green);background:var(--soft);white-space:nowrap}
.stock.low{background:var(--warn-bg)}
.stock.zero{background:#efefeb}
.detail-gallery{position:relative;height:254px}
.detail-gallery .missing svg{width:33px;height:33px}
.gallery-switch{position:absolute;bottom:10px;right:12px;display:flex;gap:5px}
.gallery-switch .button{height:25px}
.detail-body,.profile{padding:13px 14px}
.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:13px}
.detail-heading h1{font-size:25px}
.detail-heading p,.receiver p{margin-top:3px;color:var(--muted);font-size:11px}
.detail-heading .money{font-size:25px}
.detail-stock{background:#e3f0e6;color:var(--green);border-radius:9px;display:flex;align-items:center;justify-content:space-between;padding:10px 11px}
.detail-stock b{font-size:20px}
.meta-lines{margin-top:12px;background:white;border:1px solid var(--line);border-radius:9px;padding:0 10px}
.meta-lines>div,.totals>div{display:flex;align-items:center;justify-content:space-between;padding:9px 0;font-size:12px;border-bottom:1px solid #edf3ee}
.meta-lines>div:last-child,.totals>div:last-child{border:0}
.meta-lines>div>span,.totals>div>span{color:var(--muted)}
.sub-hero{background:var(--deep);color:#fff;padding:15px 15px 17px;flex:none}
.checkout-content{padding:11px 13px;display:grid;gap:9px;align-content:start}
.stack-card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.panel-head{display:flex;align-items:center;justify-content:space-between;min-height:40px;border-bottom:1px solid #e7eee8;padding:7px 11px;font-size:12px}
.panel-head svg{color:var(--green);width:16px}
.panel-head>span:not(.status){color:var(--muted);font-size:10.5px}
.order-item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-bottom:1px solid #edf2ee}
.order-item:last-child{border-bottom:0}
.order-item>.photo{width:46px;height:46px;border-radius:7px}
.order-copy{display:grid;gap:1px;flex:1;min-width:0;font-size:12px}
.order-copy small{font-size:10px;color:var(--muted)}
.order-copy .money{font-size:14px}
.order-unit{display:grid;gap:4px;justify-items:end;color:var(--muted);font-size:11px;white-space:nowrap}
.receiver{display:flex;align-items:center;gap:9px;padding:12px}
.receiver-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:8px;background:var(--soft);color:var(--green)}
.totals,.notes{padding:4px 10px}
.notes{padding:10px}
.totals b{color:var(--green);font-size:15px}
.notice{font-size:11px;color:var(--warn);padding:2px 3px}
.profile .stack-card+.stack-card{margin-top:10px}
.profile-menu{padding:5px 0}
.profile-menu .button,.profile-menu .cross{width:100%;justify-content:flex-start;border:0;padding:0 12px;height:43px;color:var(--ink);border-radius:0}
.profile-menu .button svg,.profile-menu .cross svg{color:var(--green)}
.profile-menu .button+.button,.profile-menu .cross+.button{border-top:1px solid #edf2ee}
.profile .tabs{margin-bottom:10px}
.order-preview-text{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:11px;font-size:13px}
.order-preview-text p{font-size:10px;color:var(--muted);margin-top:4px}
.preview-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px;padding:9px 10px;border-top:1px solid #edf2ee}
.preview-actions .button{height:32px;font-size:11px}
.order-head{display:flex;align-items:center;justify-content:space-between;padding:13px 12px;border-bottom:1px solid var(--line)}
.order-head small{color:var(--muted)}
.order-head h2{font-size:18px}
.order-info{margin:10px 11px;background:#f0f6f0;border-radius:8px;padding:8px 9px;font-size:11px;overflow-wrap:anywhere}
.order-info svg{width:15px;color:var(--green)}
.order-info p{color:var(--muted);margin-top:4px}
.detail-items{margin:0 10px}
.order-summary{display:flex;justify-content:space-between;align-items:center;margin:0 11px;padding:9px 0;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.order-summary b{color:var(--green);font-size:16px}
.history-label{padding:0 11px;color:var(--muted);font-size:11px}
.timeline{display:grid;gap:6px;list-style:none;margin:6px 11px 10px;padding:0}
.timeline li{display:flex;align-items:center;gap:8px;color:#315a44;background:#f1f6f1;border-radius:5px;padding:4px 7px;font-size:10.5px}
.timeline small{margin-left:auto;color:var(--muted);font-size:10px}
.profile-user{display:flex;justify-content:space-between;align-items:center;padding:9px 11px;border-bottom:1px solid #edf2ee}
.profile-user:last-child{border:0}
.profile-user>div{display:grid;gap:3px}
.profile-user small{color:var(--muted)}

.desktop{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh;background:#f1f5f0}
.side{background:#133c2f;color:#dce9df;position:sticky;top:0;display:flex;flex-direction:column;height:100vh;height:100dvh;padding:0 12px;overflow:auto}
.brand{display:flex;gap:10px;align-items:center;padding:20px 6px;color:#fff;border-bottom:1px solid #ffffff23}
.brand>span:last-child{display:grid}
.brand b{font-size:18px;letter-spacing:.045em}
.brand small{font-size:10px;color:#c1d9cb}
.nav-group{padding:0 11px;margin:17px 0 6px;color:#a8c6b5;font-size:10.5px}
.side-link{width:100%;height:40px;justify-content:flex-start;text-align:left;border:0;background:transparent;color:inherit;font-size:13px;border-radius:8px;padding:0 10px;gap:9px;margin:0 0 3px}
.side-link.active{background:#dcebd4;color:#224f39;font-weight:730}
.side-end{margin-top:auto;padding:16px 3px;display:grid;gap:8px;font-size:11px}
.side-end>span{display:flex;align-items:center;gap:7px;padding:6px}
.side-end .cross{border-color:#ffffff20;background:#ffffff14;color:#e0eddf;justify-content:flex-start}
.admin-area{min-width:0}
.topbar{position:sticky;top:0;z-index:3;min-height:57px;background:#fff;border-bottom:1px solid var(--line);padding:0 22px;display:flex;justify-content:space-between;align-items:center;gap:7px}
.topbar>div{display:flex;align-items:center;gap:9px;font-size:12px}
.bread{color:#62786b;white-space:nowrap}
.bread svg{width:13px;height:13px;margin:0 3px}
.profile-trigger{border:0;background:#eaf3eb;border-radius:8px;color:#285c43;padding:7px 9px;font-size:11px;font-weight:650}
.profile-trigger svg{width:14px;height:14px}
.top-icon{width:28px;height:28px;color:var(--green)}
.mobile-menu{display:none}
.admin-main{padding:22px 23px 28px;max-width:1680px;margin:0 auto}
.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:16px}
.admin-heading h1{font-size:29px;line-height:1.2;letter-spacing:-.02em}
.admin-heading p{font-size:12px;color:var(--muted);margin-top:5px}
.heading-acts{display:flex;gap:7px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:11px;margin-bottom:16px}
.stats:empty{display:none}
.stat{border:1px solid var(--line);border-radius:12px;background:#fff;min-height:90px;padding:10px 13px}
.stat.highlight{background:#e1efe4;border-color:#cfe5d6}
.stat>div{display:flex;align-items:center;justify-content:space-between;color:#4c695b;font-size:12px;font-weight:600}
.stat>div i{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#eaf3eb;color:var(--green)}
.stat.amber>div i{background:var(--warn-bg);color:var(--warn)}
.stat strong{line-height:1.22;font-size:27px;letter-spacing:-.04em}
.stat small{margin-left:5px;font-size:11px;color:var(--muted)}
.admin-card{min-width:0;border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}
.admin-card.activity{margin-top:14px}
.list-title{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:12px 14px 9px}
.list-title h2{font-size:17px;letter-spacing:-.015em}
.list-title p{margin-top:3px;color:var(--muted);font-size:11px}
.table-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 13px 9px}
.table-tools .search{width:200px;height:32px;flex:none}
.table-tools .search input{font-size:11px}
.table-wrap{overflow:auto;scrollbar-width:thin}
table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
thead{background:#edf3ee;color:#4f6e5d}
th{font-size:11px;font-weight:640;height:35px}
td{height:50px;border-bottom:1px solid #ebf1ec;color:#355044}
tr:last-child td{border-bottom:0}
tr.selected td{background:#eef7ef}
th,td{padding:5px 9px;white-space:nowrap}
th:first-child,td:first-child{padding-left:14px}
th:last-child,td:last-child{padding-right:14px}
td small{display:block;color:var(--muted);margin-top:2px;font-size:10px}
td .money small{display:inline;font-size:10px}
td .money{font-size:13px}
.table-fruit,.entity{display:flex;gap:8px;align-items:center}
.table-fruit .photo,.entity-icon{width:33px;height:33px;border-radius:6px}
.entity-icon{display:grid;place-items:center;background:#e9f2e8;color:var(--green);font-size:13px;font-weight:700;flex:none}
.entity-icon svg{width:16px;height:16px}
.inv{font-size:16px;color:var(--green)}
.row-actions{display:flex;gap:7px}
.admin-split,.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 326px;align-items:start;gap:12px}
.dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(260px,.56fr)}
.admin-order{min-height:120px}
.orders-layout .table-tools{flex-wrap:wrap}
.orders-layout .table-tools .search{width:100%}
.orders-layout td,.orders-layout th{padding-left:7px;padding-right:7px}
.task{display:grid;grid-template-columns:34px 1fr auto 53px;align-items:center;gap:8px;padding:10px 13px;border-top:1px solid #edf2ee}
.task>i{width:34px;height:34px;display:grid;place-items:center;background:var(--soft);border-radius:8px;color:var(--green)}
.task b{font-size:12px}
.task small{display:block;color:var(--muted);margin-top:2px;font-size:10px}
.task strong{color:var(--green);font-size:12px}
.quick-list{display:grid;gap:6px;padding:0 12px 12px}
.quick-list .button,.quick-list .cross{justify-content:flex-start}
.info-strip{display:flex;gap:8px;align-items:center;margin-bottom:12px;font-size:12px}
.perm-actions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid var(--line)}
@media(max-width:1180px){
  .desktop{grid-template-columns:177px minmax(0,1fr)}
  .admin-main{padding:16px}
  .admin-split{grid-template-columns:minmax(0,1fr) 295px}
}
@media(max-width:980px){
  .admin-split,.dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .desktop{display:block}
  .side{display:none;position:fixed;inset:0 auto 0 0;width:202px;z-index:5;box-shadow:0 0 0 100vmax #19362a55}
  .side.opened{display:flex}
  .mobile-menu{display:flex;width:28px;height:30px;color:var(--green)}
  .topbar{padding:0 8px;min-height:53px}
  .topbar .sample,.bread{display:none}
  .topbar>div{gap:4px}
  .topbar>div b{font-size:11px}
  .admin-main{padding:12px 9px}
  .admin-heading{align-items:flex-start}
  .admin-heading h1{font-size:23px}
  .admin-heading p{font-size:10.5px}
  .heading-acts{flex-wrap:wrap;justify-content:flex-end}
  .heading-acts .button{height:30px;padding:0 6px;font-size:10px}
  .heading-acts .button svg{width:12px}
  .stats{gap:7px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{min-height:77px}
  .table-tools{flex-wrap:wrap}
  .table-tools .search{width:100%}
}
@media(max-width:355px){
  .ledger-head,.ledger-row{grid-template-columns:minmax(0,1fr) 34px 46px 61px;padding:0 8px;gap:4px}
  .ledger-row .photo{width:29px;height:29px}
  .stepper button{width:19px}
  .stepper b{min-width:18px}
}

.modal-open{overflow:hidden}
.shade{position:fixed;inset:0;background:#19372d75;z-index:10}
.dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 22px));max-height:calc(100dvh - 26px);overflow:auto;z-index:11;padding:0;border-radius:13px;background:#fff;box-shadow:0 15px 45px #16362550}
.dialog>header{display:flex;position:sticky;top:0;background:#fff;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 14px;z-index:1}
.dialog>header h2{font-size:19px;letter-spacing:-.02em}
.dialog>header p{font-size:11px;color:var(--muted);margin-top:3px}
.dialog-close{display:grid;place-items:center;width:28px;height:28px;color:var(--muted)}
.dialog-body{padding:11px 13px}
.dialog footer{display:flex;justify-content:flex-end;gap:7px;padding:10px 13px;border-top:1px solid var(--line)}
.field{display:grid;gap:4px;font-size:12px;margin:0 0 9px}
.field:last-child{margin-bottom:0}
.field b{font-weight:650}
.field input,.field select,.field textarea{width:100%;min-width:0;min-height:35px;border:1px solid var(--line);background:#f8faf8;border-radius:7px;padding:6px 9px;outline:0}
.field textarea{min-height:54px;resize:vertical}
.field :is(input,select,textarea):focus{border-color:#87b59a;box-shadow:0 0 0 2px #e2f1e7}
.fields-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fields-two .field:last-child{margin-bottom:9px}
.sheet-note,.sheet-lead{padding:8px 9px;background:#edf5ec;color:#3f634f;border-radius:7px;font-size:11px}
.sheet-note svg{margin-right:3px;width:14px;height:14px}
.sheet-lead{margin-bottom:9px}
.sheet-lead b{font-size:12px;color:var(--green)}
.sheet-lead p{margin-top:4px;color:var(--muted)}
.actors,.perm-list{display:grid;gap:6px}
.actor-choice{justify-content:flex-start}
.perm-list{margin-bottom:11px}
.perm-list label{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:6px 9px;font-size:12px}
.perm-list input{accent-color:var(--green)}
.form-error{margin-top:8px;color:#9b462e;background:#fbede9;padding:7px 8px;border-radius:6px;font-size:11px}
#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:20;display:none;max-width:calc(100vw - 24px);width:max-content;background:#163e30;color:#fff;padding:9px 13px;border-radius:8px;font-size:12px;box-shadow:0 5px 18px #1b3b2c33}
#toast.show{display:block}
#toast.error{background:#7d3827}

.dashboard-stack{display:grid;gap:12px}
.dash-product{display:flex;align-items:center;gap:8px;padding:7px 13px;border-top:1px solid #edf2ee}
.dash-product .photo{width:34px;height:34px;border-radius:6px}
.dash-product>div:nth-child(2){flex:1;display:grid;gap:1px}
.dash-product b{font-size:12px}
.dash-product small,.dash-product>span{color:var(--muted);font-size:10px}

.auth-screen{min-height:100vh;display:grid;place-items:center;padding:22px;background:linear-gradient(155deg,#123b2d 0%,#225840 44%,#e7efe4 44%)}
.auth-card{width:min(100%,405px);padding:34px;border-radius:18px;background:#fff;box-shadow:0 20px 58px #17372927}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:26px}
.auth-brand .mark{width:48px;height:48px;border-radius:13px}
.auth-brand .mark svg{width:25px;height:25px}
.auth-brand h1{font-size:24px;font-weight:780;line-height:1.2}
.auth-brand p,.auth-note{color:var(--muted)}
.auth-card h2{font-size:20px;margin-bottom:15px}
.auth-note{margin-bottom:14px}
.auth-card form{display:grid;gap:13px}
.auth-card .primary{width:100%;height:43px;margin-top:5px;font-size:14px}
.auth-links{margin-top:18px;border-top:1px solid var(--line);padding-top:15px}
.auth-links .cross{border:0;padding:0;height:28px}
.qty-input{width:24px;height:100%;border:0;padding:0;text-align:center;font-size:11px;color:var(--ink);background:#fff;outline-offset:-2px}
.money-summary{display:grid;gap:6px;margin:12px 0 0;padding:10px 0;border-bottom:1px solid var(--line)}
.money-summary>div,.order-records article>div{display:flex;justify-content:space-between;gap:10px}
.money-summary dt,.order-records p{color:var(--muted)}
.money-summary dd{margin:0;font-weight:650}
.money-summary>div:last-child{color:var(--green);font-weight:750}
.order-records article{padding:9px 0;border-bottom:1px solid var(--line)}
.order-records article p{margin-top:4px;overflow-wrap:anywhere}
.order-records article .button{margin-top:6px}
.billing-filter{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:10px 14px 14px}
.billing-filter .field{margin:0;flex:1;min-width:105px}
.billing-filter .field input,.billing-filter .field select{width:100%;min-width:0}
.admin-order .preview-actions,.order-preview .preview-actions{flex-wrap:wrap}
