:root {
  --ink: #121419;
  --ink-2: #1b1e25;
  --ink-3: #262a33;
  --bg: #f5f3ef;
  --card: #ffffff;
  --line: #ebe7e0;
  --line-2: #ddd7cd;
  --text: #17181c;
  --text-2: #646058;
  --text-3: #9b958b;
  --gold: #b8935a;
  --gold-light: #dcc395;
  --gold-pale: #f6efe3;
  --gold-deep: #8a6a3b;
  --wine: #a5413b;
  --wine-pale: #f8ecea;
  --blue: #3c5f8f;
  --blue-pale: #ebf0f7;
  --green: #3f7a58;
  --green-pale: #e9f3ed;
  --amber: #9a6b18;
  --amber-pale: #fbf2df;
  --gray-pale: #f0eeea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 24, 16, .04), 0 6px 24px rgba(30, 24, 16, .05);
  --serif: "Songti SC", "STSongti-SC-Regular", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "Helvetica Neue", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }

/* 印章 */
.seal {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #f0dcb4 0%, #c9a46a 45%, #9c7a45 100%);
  color: #2a2116; font-family: var(--serif); font-weight: 700; font-size: 17px;
  box-shadow: 0 2px 8px rgba(140, 106, 59, .35), inset 0 1px 1px rgba(255, 255, 255, .5);
}
.seal::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid rgba(60, 40, 15, .3); }
.seal.lg { width: 64px; height: 64px; font-size: 29px; }
.seal.lg::before { inset: 5px; }

/* 按钮、输入 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card);
  cursor: pointer; white-space: nowrap; font-weight: 500; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: #c9c1b4; background: #fcfbf9; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #2b2f38, #15171c); border-color: #15171c; color: #f1e3c4; box-shadow: 0 4px 12px rgba(18, 20, 25, .18); }
.btn.primary:hover { background: linear-gradient(180deg, #343843, #1b1e25); }
.btn.gold { background: linear-gradient(180deg, #d6b47a, #b8935a); border-color: #b08a52; color: #22190e; }
.btn.danger { color: var(--wine); border-color: #e8c9c5; }
.btn.danger:hover { background: var(--wine-pale); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.small { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.big { height: 46px; padding: 0 30px; font-size: 15px; letter-spacing: 1px; }
.btn.block { width: 100%; height: 46px; font-size: 15px; letter-spacing: 2px; }

.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #bbb4a9; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 147, 90, .15); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; color: var(--text-2); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.form-err { color: var(--wine); min-height: 1.4em; margin: 10px 0 0; font-size: 13px; }
.hint { color: var(--text-3); margin: 0 0 14px; font-size: 13px; }

/* 登录 */
.login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(201, 164, 106, .22), transparent 70%),
    radial-gradient(40% 40% at 100% 100%, rgba(201, 164, 106, .08), transparent 70%),
    linear-gradient(180deg, #1b1e25, #0f1115);
}
.login-card {
  width: 100%; max-width: 380px; padding: 40px 34px 26px; text-align: center; border-radius: 20px;
  background: rgba(255, 255, 255, .98); box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.login-card h1 { margin: 18px 0 6px; font-family: var(--serif); font-size: 24px; letter-spacing: 3px; }
.login-sub { margin: 0 0 28px; color: var(--text-3); font-size: 13px; letter-spacing: 2px; }
.login-card .field { text-align: left; }

/* 框架 */
.shell { display: flex; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; width: 232px; flex: none; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #181b21, #101216); color: #c9c4ba; padding: 22px 14px;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 26px; border-bottom: 1px solid rgba(255, 255, 255, .06); margin-bottom: 16px; }
.side-name { color: #f3ead9; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: 2px; }
.side-sub { color: #8d877c; font-size: 11px; letter-spacing: 2px; margin-top: 1px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border: 0; border-radius: 10px;
  background: none; color: #a9a397; cursor: pointer; font-size: 14px; text-align: left; transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .04); color: #e8e1d3; }
.nav-item.active { background: linear-gradient(90deg, rgba(201, 164, 106, .18), rgba(201, 164, 106, .04)); color: #f1e3c4; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-light); }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #1d160c; font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; font-family: var(--num); }
.side-out { height: 40px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: none; color: #8d877c; cursor: pointer; }
.side-out:hover { color: #e8e1d3; border-color: rgba(255, 255, 255, .16); }
/* 线条小图标 */
.ico { position: relative; width: 16px; height: 16px; flex: none; opacity: .9; }
.ico-list::before { content: ""; position: absolute; inset: 1px 0; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.ico-list::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1.5px solid currentColor; }
.ico-plus::before { content: ""; position: absolute; left: 7px; top: 1px; bottom: 1px; border-left: 1.5px solid currentColor; }
.ico-plus::after { content: ""; position: absolute; top: 7px; left: 1px; right: 1px; border-top: 1.5px solid currentColor; }
.ico-box::before { content: ""; position: absolute; inset: 3px 1px 1px; border: 1.5px solid currentColor; border-radius: 2px; }
.ico-box::after { content: ""; position: absolute; left: 3px; right: 3px; top: 0; height: 4px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }

.main { flex: 1; min-width: 0; padding: 30px 36px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; font-weight: 600; letter-spacing: 1px; }
.page-head p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; }
.head-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* 数字卡片 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
  position: relative; text-align: left; padding: 18px 20px; border-radius: var(--radius); border: 1px solid transparent; background: var(--card);
  box-shadow: var(--shadow); cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s;
}
.stat:hover { transform: translateY(-1px); }
.stat.on { border-color: var(--gold); }
.stat .k { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat .k i { width: 8px; height: 8px; border-radius: 50%; }
.stat .n { margin-top: 8px; font-family: var(--num); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.stat .s { margin-top: 8px; color: var(--text-3); font-size: 12px; }
.stat.hot { background: linear-gradient(135deg, #1d2027, #121419); color: #f3ead9; }
.stat.hot .k { color: #cfc4ad; }
.stat.hot .n { color: #f1dcb0; }
.stat.hot .s { color: #8d877c; }
.stat.hot::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 164, 106, .3), transparent 70%); }

/* 列表 */
.table-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search { width: 300px; max-width: 100%; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--text-2); }
.chip b { margin-left: 5px; font-family: var(--num); font-weight: 600; color: var(--text-3); }
.chip:hover { background: var(--gray-pale); }
.chip.active { background: var(--ink); color: #f1e3c4; }
.chip.active b { color: var(--gold-light); }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; min-width: 900px; }
.list th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; letter-spacing: 1px; padding: 12px 18px; background: #fbfaf8; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list td { padding: 14px 18px; border-bottom: 1px solid #f2efea; vertical-align: middle; }
.list tbody tr { cursor: pointer; transition: background .12s; }
.list tbody tr:hover { background: #fbf9f5; }
.list tbody tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; letter-spacing: .2px; }
.muted { color: var(--text-3); }
.sub { color: var(--text-3); font-size: 12px; }
.items-cell { display: flex; align-items: center; gap: 10px; }
.thumbs { display: flex; }
.thumbs img, .thumbs .ph { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 2px solid #fff; background: var(--gold-pale); margin-left: -10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.thumbs > :first-child { margin-left: 0; }
.empty { padding: 60px 20px; text-align: center; color: var(--text-3); }

.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending { background: var(--blue-pale); color: var(--blue); }
.st-claimed { background: var(--gold-pale); color: var(--gold-deep); }
.st-shipped { background: var(--amber-pale); color: var(--amber); }
.st-signed { background: var(--green-pale); color: var(--green); }
.st-expired, .st-void { background: var(--gray-pale); color: var(--text-3); }

/* 新建赠礼 */
.new-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 8px; margin-bottom: 14px; }
.step h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.num { font-family: var(--num); color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pick { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pick:hover { border-color: var(--line-2); }
.pick.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 147, 90, .16); }
.pick img, .pick .ph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--gold-pale); }
.pick .meta { padding: 10px 12px 12px; }
.pick .name { font-weight: 600; }
.pick .spec { color: var(--text-3); font-size: 12px; }
.pick .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(20, 22, 27, .25); }
.pick.on .tick { background: var(--ink); border-color: var(--gold-light); }
.pick.on .tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--gold-light); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qty { display: flex; align-items: center; margin-top: 8px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 15px; line-height: 1; color: var(--text-2); }
.qty button:first-child { border-radius: 8px 0 0 8px; }
.qty button:last-child { border-radius: 0 8px 8px 0; }
.qty input { width: 40px; height: 28px; border: 1px solid var(--line-2); border-left: 0; border-right: 0; text-align: center; outline: none; font-family: var(--num); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 2px; }
.pick-summary { color: var(--text-2); }

/* 手机预览 */
.preview-col { position: sticky; top: 24px; }
.preview-label { color: var(--text-3); font-size: 12px; letter-spacing: 2px; margin: 0 0 10px 6px; }
.phone { padding: 10px; border-radius: 36px; background: #0e0f12; box-shadow: 0 30px 60px rgba(20, 16, 10, .25), inset 0 0 0 1px #2a2c31; }
.phone-screen { position: relative; height: 600px; overflow-y: auto; border-radius: 27px; background: #f4f4f4; scrollbar-width: none; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1a1a1a; }
.phone-screen::-webkit-scrollbar { display: none; }
.pv-goods { background: #fff; }
.pv-pic { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fff; }
.pv-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-empty { color: #aaa; font-size: 12px; background: #fafafa; }
.pv-info { padding: 8px 10px 10px; }
.pv-price { display: flex; align-items: center; gap: 4px; }
.pv-free { color: #e93323; font-size: 16px; font-weight: 700; margin-right: 2px; }
.pv-tag { height: 14px; padding: 0 3px; border: 1px solid #ffb3a7; border-radius: 2px; color: #e93323; font-size: 9px; line-height: 12px; }
.pv-name { margin-top: 4px; font-size: 13px; font-weight: 600; }
.pv-spec { margin-top: 2px; color: #999; font-size: 10.5px; }
.pv-banner { padding: 14px 12px 30px; color: #fff; background: linear-gradient(120deg, #ff6a3d, #e93323); font-size: 10.5px; }
.pv-banner b { display: block; font-size: 15px; }
.pv-banner + .pv-panel { margin-top: -20px; position: relative; }
.pv-panel { margin: 7px 7px 0; padding: 8px 10px; background: #fff; border-radius: 9px; font-size: 11px; }
.pv-row { display: flex; gap: 8px; padding: 3px 0; }
.pv-row span:first-child { flex: none; width: 44px; color: #999; }
.pv-row span:last-child { word-break: break-all; }
.pv-h { font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.pv-field { padding: 8px 0; border-bottom: 1px solid #f2f2f2; color: #1a1a1a; }
.pv-field:last-child { border-bottom: 0; }
.pv-list .row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.pv-list .row + .row { border-top: 1px solid #f2f2f2; }
.pv-list img, .pv-list .ph { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; background: #f7f7f7; font-size: 14px; }
.pv-list .q { margin-left: auto; color: #999; }
.pv-bar { position: sticky; bottom: 0; margin-top: 10px; display: flex; align-items: center; gap: 8px; padding: 7px 9px 9px; background: #fff; box-shadow: 0 -1px 0 #f0f0f0; font-size: 9.5px; color: #999; }
.pv-bar b { display: block; color: #e93323; font-size: 12px; }
.pv-btn { flex: 1; height: 32px; border-radius: 16px; background: linear-gradient(90deg, #ff5a3c, #e93323); color: #fff; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* 商品 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pcard img, .pcard .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gold-pale); }
.pcard .meta { padding: 14px 16px 16px; }
.pcard .name { font-weight: 600; font-size: 15px; }
.pcard .acts { display: flex; gap: 6px; margin-top: 12px; }
.ph { display: flex !important; align-items: center; justify-content: center; color: var(--gold); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.img-pick { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.img-pick .preview { width: 104px; height: 104px; border-radius: 12px; object-fit: cover; background: var(--gold-pale); border: 1px solid var(--line); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; z-index: 50; background: rgba(15, 16, 20, .5); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; background: var(--card); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .28); animation: pop .18s cubic-bezier(.2, .8, .3, 1); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: .6; } }
.modal.wide { max-width: 780px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.modal-close { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 22px; color: var(--text-3); border-radius: 10px; }
.modal-close:hover { background: var(--gray-pale); color: var(--text); }
.modal-body { padding: 22px 24px 26px; }
.sec { margin-bottom: 20px; }
.sec:last-child { margin-bottom: 0; }
.sec-title { font-size: 12px; color: var(--text-3); letter-spacing: 1px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; }
.kv .k { color: var(--text-3); }
.kv .v { word-break: break-all; }
.box { background: #fbfaf8; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.link-row { display: flex; gap: 8px; }
.link-row .input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: #fbfaf8; }
.gift-items { display: flex; flex-direction: column; gap: 10px; }
.gift-item { display: flex; align-items: center; gap: 12px; }
.gift-item img, .gift-item .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--gold-pale); font-size: 17px; }
.gift-item .qtyx { margin-left: auto; color: var(--text-2); font-family: var(--num); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form select.input { width: 160px; }
.inline-form .input.grow { flex: 1; min-width: 160px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-pale); }
.timeline .t { color: var(--text-3); font-size: 12px; }
.danger-zone { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.created-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.created-list .row { display: flex; align-items: center; gap: 10px; }
.created-list .row .mono { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send-text { white-space: pre-wrap; word-break: break-all; line-height: 1.8; }
.batch-result { margin-top: 14px; max-height: 260px; overflow-y: auto; font-size: 13px; }
.batch-result .ok { color: var(--green); }
.batch-result .bad { color: var(--wine); }

.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #f1e3c4; padding: 12px 20px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }
.toast.err { background: var(--wine); color: #fff; }

@media (max-width: 1100px) {
  .new-layout { grid-template-columns: 1fr; }
  .preview-col { display: none; }
}
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { position: sticky; z-index: 20; height: auto; width: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; }
  .side-brand { padding: 0; border: 0; margin: 0; }
  .side-brand > div { display: none; }
  .side-nav { flex-direction: row; gap: 2px; overflow-x: auto; }
  .nav-item { height: 38px; padding: 0 10px; gap: 6px; white-space: nowrap; }
  .nav-item .ico { display: none; }
  .nav-item.active::before { display: none; }
  .side-out { height: 34px; padding: 0 10px; white-space: nowrap; }
  .main { padding: 18px 16px 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .modal-mask { padding: 16px 10px; }
}
