:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #3a352f;
  --muted: #8c857c;
  --line: #e8e2d8;
  --sage: #8a9a7b;
  --sage-d: #6f7f62;
  --warn: #c98a6b;
  --danger: #c25b5b;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(58,53,47,.06);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }

/* 登录 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 340px; background: var(--surface); padding: 36px 28px; border-radius: 16px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.login-card .sub { margin: 6px 0 22px; color: var(--muted); font-size: 13px; }
.login-card label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.login-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; outline: none; }
.login-card input:focus { border-color: var(--sage); }
.login-card button { width: 100%; margin-top: 22px; padding: 12px; border: none; border-radius: var(--radius); background: var(--sage); color: #fff; font-size: 15px; cursor: pointer; }
.login-card button:hover { background: var(--sage-d); }
.msg { margin: 12px 0 0; font-size: 13px; min-height: 18px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--sage-d); }

/* 布局 */
#main { display: flex; min-height: 100vh; }
.sidebar { width: 208px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: 1px; padding: 0 8px 18px; color: var(--sage-d); }
.sidebar nav { flex: 1; }
.nav-item { display: block; width: 100%; text-align: left; padding: 11px 16px; border: none; background: none; color: var(--ink); font-size: 14px; cursor: pointer; border-radius: 9px; }
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: #eef1ea; color: var(--sage-d); font-weight: 600; box-shadow: inset 3px 0 0 var(--sage); }
.nav-badge { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px; border-radius: 9px; background: #b3261e; color: #fff; font-size: 11px; line-height: 1.6; text-align: center; vertical-align: 1px; }
.side-foot { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.link { border: none; background: none; color: var(--sage-d); cursor: pointer; font-size: 12px; }

.content { flex: 1; padding: 28px 32px; overflow: auto; }
.hidden { display: none !important; }

/* 通用 */
h2.page-title { margin: 0 0 18px; font-size: 20px; }
/* 概览页分组小标题：订单概况 / 其他数据 */
h3.sub-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--sage-d); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card > .muted:first-child { margin-top: 0; }
/* 设置页：标签与控件并排，减少竖向留白；没有标签的行（按钮行）保持整行 */
.card .form-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 10px 16px; margin: 12px 0; }
.card .form-row > label { margin-bottom: 0; }
.card .form-row:not(:has(label)) { display: block; }
.card .form-row > .row-flex { row-gap: 8px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 26px; font-weight: 700; color: var(--sage-d); }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* 副标题：成交额/已支付订单的收入拆分（商品 · 活动 · 运费） */
.stat .sub { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; opacity: .85; }

/* 订单中心：三类订单 × 统一五态的数量矩阵 */
.matrix-stats { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.matrix-stats th, .matrix-stats td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--line); font-size: 13px; }
.matrix-stats thead th { background: #f4f5f0; color: var(--sage-d); font-weight: 600; }
.matrix-stats thead th:first-child, .matrix-stats tbody td:first-child { text-align: left; font-weight: 600; }
.matrix-stats tbody tr:last-child td { border-bottom: none; }
.matrix-stats thead th[data-action="oc-goto"]:hover { background: #e7ede0; cursor: pointer; }

/* 订单中心状态 tab 上的数量角标 */
.tab-num { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: rgba(63,81,66,.12); color: var(--sage-d); font-size: 11px; font-weight: 600; vertical-align: middle; }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.input, input.in, select.in { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; outline: none; background: var(--surface); }
.input:focus { border-color: var(--sage); }
.btn { padding: 9px 16px; border: none; border-radius: 10px; background: var(--sage); color: #fff; font-size: 14px; cursor: pointer; }
.btn:hover { background: var(--sage-d); }
.btn.ghost { background: #fff; color: var(--sage-d); border: 1px solid var(--sage); }
.btn.warn { background: var(--warn); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
/* 订单中心操作列：按钮较多，允许折行、收紧间距，避免挤成一条看不清 */
.oc-ops { white-space: normal; line-height: 2.1; }
.oc-ops .btn.sm { padding: 4px 8px; margin: 0 3px 3px 0; }
/* 订单内容：展开后的商品明细可能较长，允许换行并限制宽度，避免把整行撑破 */
.oc-title-cell { min-width: 220px; max-width: 380px; white-space: normal; line-height: 1.6; font-size: 12px; word-break: break-all; }
/* 金额：豆数 + 运费金额，保持紧凑不换行错乱 */
.oc-amt-cell { white-space: nowrap; font-size: 12px; line-height: 1.6; }
/* 发货信息列：顶部一个按钮复制整条，字段完整展示不再逐条缩略复制 */
.oc-ship-cell { min-width: 200px; max-width: 300px; font-size: 12px; line-height: 1.7; }
.oc-ship-cell .copy-chip.cc-ship-all { color: var(--sage-d); font-weight: 600; margin-bottom: 4px; }
.oc-ship-lines { color: var(--ink); }
.oc-ship-line { word-break: break-all; white-space: normal; }
/* 可复制 chip：缩略显示，鼠标悬停提示可点，图标给出可复制暗示 */
.copy-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; cursor: pointer; padding: 1px 5px; border-radius: 4px; transition: background .15s; }
.copy-chip:hover { background: rgba(138,154,123,.14); }
.copy-chip .cc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-chip .cc-ico { flex: none; font-size: 11px; color: var(--muted); opacity: .7; }
.copy-chip.cc-no { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--sage-d); font-weight: 600; }
.copy-chip.cc-ship .cc-text { color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* 描边危险按钮：删除这类破坏性操作用它——有警示色但不抢视线。
   ⚠️ 必须写在 .btn.ghost / .btn.danger 之后：三者同权重，靠源码顺序决定谁生效 */
.btn.ghost.danger { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.btn.ghost.danger:hover { background: #fdf1f0; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 11px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); }
th { background: #faf7f2; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: none; }
/* 用户/MM豆：列多，低屏横向滚动，避免挤压 */
.tbl-scroll { overflow-x: auto; }
.tbl-scroll table { width: 100%; }
.c-avatar { width: 56px; }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; background: #f0eeea; }
.avatar-empty { font-size: 12px; color: var(--muted); }
/* 头像角标：嫚蜜左上墨绿金边、生日蛋糕右下；相对头像定位，不额外占列 */
.avatar-wrap { position: relative; display: inline-block; vertical-align: middle; line-height: 0; }
.av-badge { position: absolute; line-height: 1; pointer-events: none; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.av-vip { top: -5px; left: -6px; min-width: 18px; height: 18px; padding: 0 3px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #3f5142; color: #f4eee2; font-size: 10px; font-weight: 600; box-shadow: inset 0 0 0 1px #c9b48c, 0 1px 3px rgba(0,0,0,.18); }
.av-birth { bottom: -5px; right: -6px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; font-size: 11px; }
/* 业务列表（订单 / 兑换 / 中奖 / 报名）里的「下单人」格子：头像 + 昵称，整格可点进客户详情 */
.u-cell { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; max-width: 170px; }
.u-cell .avatar-sm { width: 32px; height: 32px; flex: none; }
.u-cell .u-name { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-cell:hover .u-name { color: var(--sage-d); text-decoration: underline; }
.u-cell:hover .avatar-sm { outline: 2px solid var(--sage); outline-offset: 1px; }
.avatar-md { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #f0eeea; vertical-align: middle; }
.c-babies { max-width: 200px; line-height: 1.5; }
.c-remark { max-width: 160px; font-size: 12px; line-height: 1.5; word-break: break-all; cursor: text; }
.c-remark [data-action="remark-edit"] { cursor: text; border-bottom: 1px dashed transparent; }
.c-remark [data-action="remark-edit"]:hover { border-bottom-color: var(--sage); color: var(--sage-d); }
.c-remark .remark-empty { color: #b3a99b; }
.remark-input { width: 100%; max-width: 160px; padding: 4px 6px; font-size: 12px; border: 1px solid var(--sage); border-radius: 6px; outline: none; background: #fff; }
/* 嫚蜜规则卡：默认只显示一行摘要 */
.vip-rule-card .vip-rule-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vip-rule-card .vip-rule-head .btn { margin-left: auto; }
.c-op { white-space: nowrap; }
/* 内容列表：排序 ↑ ↓（与相邻项交换） + 置顶 */
.res-mv-wrap { display: flex; align-items: center; gap: 4px; }
.res-mv-wrap .res-mv { width: 30px; padding: 5px 0; text-align: center; font-size: 14px; line-height: 1; }
.res-mv-wrap .btn { margin: 0; }
.res-mv:disabled { opacity: .35; cursor: not-allowed; }
.c-op .btn { margin: 2px 4px 2px 0; }
/* 勾选导出：复选框列居中、使用品牌绿 */
.c-chk { text-align: center; width: 32px; }
.row-chk { width: 16px; height: 16px; accent-color: var(--sage); cursor: pointer; vertical-align: middle; }
/* 中奖记录行内「发放状态」下拉：小巧、不抢视觉 */
.mini-sel { margin-top: 4px; max-width: 92px; padding: 3px 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); outline: none; cursor: pointer; }
.mini-sel:focus { border-color: var(--sage); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; background: #eef1ea; color: var(--sage-d); }
.tag.pending { background: #fbeede; color: var(--warn); }
.tag.done { background: #e7f0e7; color: var(--sage-d); }
.tag.grey { background: #f0eeea; color: var(--muted); }
.tag.danger { background: #fbe9e7; color: #b3261e; font-weight: 600; }
.tag.warn { background: #fbeede; color: #9a6a1f; }
.tag.blue { background: #e9eef5; color: #3f5a86; }
.tag.green { background: #e7f0e7; color: #3f5142; }
/* 限时折扣进行中：暖棕色实底，列表里一眼能扫到 */
.tag.discount { background: #b4663f; color: #fff; margin-left: 6px; font-weight: 600; letter-spacing: .2px; }
/* 嫚蜜身份 / 嫚蜜专享：深墨绿实底 + 金调描边，与限时折扣区分开 */
.tag.vip { background: #3f5142; color: #f4eee2; margin-left: 6px; font-weight: 600; letter-spacing: .3px; box-shadow: inset 0 0 0 1px #c9b48c; }
.disc-on { color: #b4663f; font-weight: 600; }

.pager { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(58,53,47,.42); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-box { width: 560px; max-width: 94vw; max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 16px; padding: 24px; position: relative; box-shadow: 0 18px 50px rgba(58,53,47,.18); }
.modal-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: none; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { background: var(--bg); color: var(--ink); }

/* 编辑器弹窗：头 / 底固定，中间滚动（保存按钮永远可见） */
.modal-box.shell { display: flex; flex-direction: column; width: 640px; padding: 0; overflow: hidden; }
.modal-box.shell #modalBody { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ed-head { flex: none; padding: 19px 26px 15px; padding-right: 54px; border-bottom: 1px solid var(--line); }
.ed-h-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .5px; color: var(--ink); }
.ed-sub { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.ed-body { flex: 1; min-height: 0; overflow: auto; padding: 10px 26px 22px; }
.ed-actions { flex: none; display: flex; gap: 10px; align-items: center; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.ed-actions .btn { min-width: 84px; }

/* 微信发货信息同步：一单一张卡。原来是 8 列表格，手机上每列只剩几个字宽，
   中文被挤成竖排、按钮也点不到；卡片在窄屏上是纵向排列，信息不会互相挤压。 */
.ss-list { display: flex; flex-direction: column; gap: 10px; }
.ss-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fdfcf9; }
.ss-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ss-kind { font-size: 11.5px; font-weight: 600; color: #6C7F58; background: rgba(156,175,136,.16); border-radius: 999px; padding: 2px 9px; }
.ss-state { margin-left: auto; }
.ss-item { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink); word-break: break-word; }
.ss-no { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
.ss-meta { margin-top: 7px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ss-meta b { color: var(--ink); font-weight: 600; }
.ss-err { margin-top: 8px; font-size: 12px; line-height: 1.6; color: #A8683F; background: rgba(168,104,63,.07); border-radius: 8px; padding: 7px 10px; word-break: break-word; }
.ss-ops { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv .k { color: var(--muted); }
.form-row { margin: 16px 0; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.empty { text-align: center; color: var(--muted); padding: 40px; font-size: 14px; }
.muted { color: var(--muted); }
.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fen { color: var(--muted); font-size: 12px; }
/* 结伴而行：历史反馈记录块 */
.wish-fb { margin-top: 8px; padding: 8px 12px; background: var(--bg); border-left: 3px solid var(--sage); border-radius: 8px; font-size: 13px; color: var(--ink); }

/* 弹窗内「只读信息」引用块（收货人 / 用户提交 等） */
.ed-quote { background: var(--bg); border-radius: 12px; padding: 11px 14px; margin: 14px 0 4px; font-size: 13px; line-height: 1.7; }
.ed-quote .q-row { display: flex; gap: 12px; }
.ed-quote .q-row + .q-row { margin-top: 3px; }
.ed-quote .q-k { flex: none; width: 60px; color: var(--muted); }
.ed-quote .q-v { flex: 1; min-width: 0; color: var(--ink); word-break: break-word; }

/* 结伴而行：回复弹窗里的「用户提交」引用块 */
.wish-quote { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin: 14px 0 18px; font-size: 14px; line-height: 1.7; }
.wish-quote b { display: block; font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--muted); margin-bottom: 4px; }
.wish-quote p { margin: 0; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.wish-quote p + p { margin-top: 6px; font-size: 13px; }

/* 退押金名单弹窗 */
.dep-head { margin-bottom: 12px; }
.dep-head .muted { display: block; font-size: 12px; margin-top: 4px; }
.dep-tools { display: flex; align-items: center; gap: 14px; padding: 8px 2px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dep-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none; }
.dep-list { max-height: 46vh; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.dep-row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.dep-row .dep-chk { width: 18px; height: 18px; flex: none; }
.dep-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); }
.dep-avatar-ph { background: var(--bg); }
.dep-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dep-info b { font-size: 14px; font-weight: 600; color: var(--ink); }
.dep-info .muted { font-size: 12px; }
.dep-amt { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.dep-badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: rgba(138,154,123,.16); color: var(--sage-d); }
.dep-badge.done { background: var(--bg); color: var(--muted); }
.dep-ops { margin-left: auto; display: flex; gap: 6px; flex: none; }
.dep-ops .btn { white-space: nowrap; }
.dep-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* 侧栏分组标题 */
.nav-group { padding: 16px 16px 6px; font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }

/* 编辑器（内容管理 / 抽奖配置共用） */
.ed-card { background: #fdfcf9; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 8px; margin: 0 0 16px; }
.ed-card:last-child { margin-bottom: 0; }
.ed-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.ed-tip { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 6px 0 0; }
/* 退款 / 驳回理由：常用原因一点即填的快捷标签 */
.reason-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.reason-chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, color .15s; }
.reason-chip:hover { border-color: var(--sage); background: rgba(138,154,123,.10); }
.reason-chip:active { background: rgba(138,154,123,.18); }
/* 列表里的理由备注 */
.reason-note { display: inline-block; margin-top: 3px; font-size: 12px; line-height: 1.5; max-width: 190px; text-align: left; }
/* 详情弹窗：单号可点 */
.dt-link { color: var(--sage); text-decoration: none; border-bottom: 1px dashed rgba(138,154,123,.5); cursor: pointer; font-variant-numeric: tabular-nums; }
.dt-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
/* 详情弹窗：键值行 */
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.dt-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.65; min-width: 0; }
.dt-k { flex: none; width: 84px; color: var(--muted); font-size: 12.5px; }
.dt-v { flex: 1; min-width: 0; word-break: break-word; }
.dt-block { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(138,154,123,.055); }
.dt-block-t { font-size: 13px; font-weight: 600; margin-bottom: 6px; letter-spacing: .2px; }
.dt-block .dt-row:last-child { border-bottom: none; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.ed-field { margin: 0 0 16px; min-width: 0; }
.ed-field.full { grid-column: 1 / -1; }
.ed-field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; letter-spacing: .2px; }
.ed-field input, .ed-field select, .ed-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; outline: none; background: #fff; font-family: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ed-field textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.ed-field input:focus, .ed-field select:focus, .ed-field textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(138,154,123,.14); }
.ed-field .unit { flex: none; font-size: 13px; color: var(--muted); }
.ed-ctl { display: flex; align-items: center; gap: 8px; }
.ed-ctl input { flex: 1; min-width: 0; }
/* 价格方案编辑器 */
.pp-box { display: flex; flex-direction: column; gap: 8px; }
.pp-row { display: flex; align-items: center; gap: 8px; }
.pp-row .pp-name { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; outline: none; background: #fff; color: var(--ink); font-family: inherit; }
.pp-row .pp-name:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(138,154,123,.14); }
.pp-row .pp-price { width: 170px; flex: none; }
.ed-req { color: var(--danger); margin-left: 3px; }
@media (max-width: 560px) { .ed-grid { grid-template-columns: 1fr; } }

/* 图片 / 图文块 */
.img-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.img-thumb { position: relative; width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #faf7f2; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb .del { position: absolute; top: 4px; right: 4px; padding: 0; border: none; background: rgba(58,53,47,.62); color: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; }
.img-add { width: 96px; height: 96px; border: 1px dashed var(--line); border-radius: 12px; background: #faf7f2; color: var(--muted); cursor: pointer; font-size: 22px; transition: .15s; }
.img-add:hover { border-color: var(--sage); color: var(--sage-d); background: #f2f5ee; }
.img-add:disabled { opacity: .5; cursor: not-allowed; }

/* 图片上传预览：框出实际可见区域（仿微信头像）+ 黑/白边提示 */
.pv-list { margin-top: 10px; display: flex; flex-direction: column; gap: 16px; }
.pv { margin-top: 2px; }
.pv-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.pv-src { display: block; max-width: 100%; height: auto; opacity: .26; }
.pv-frame { position: absolute; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(58,53,47,.28), 0 3px 12px rgba(0,0,0,.22); background: #faf7f2; }
.pv-fit { position: absolute; }
.pv-full .pv-src-full { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.pv-cap { margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pv-warn { margin-top: 7px; font-size: 12px; color: var(--danger); background: #fdf1f0; border: 1px solid #f3d6d2; padding: 7px 10px; border-radius: 8px; line-height: 1.5; }

.block-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fdfcf9; }
.block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.tag-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; cursor: pointer; background: #fff; color: var(--muted); transition: .15s; user-select: none; }
.chip:hover { border-color: var(--sage); color: var(--sage-d); }
.chip.on { background: #eef1ea; border-color: var(--sage); color: var(--sage-d); font-weight: 600; }
.tag-custom { display: flex; gap: 8px; margin-top: 2px; }
.tag-custom input { flex: 1; }

/* 中奖喜报：生成条（活动选择 + 生成按钮） */
.poster-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin: 0 0 16px;
}
.poster-bar .pb-label { font-size: 13px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.poster-bar select {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--ink); outline: none; max-width: 260px;
}
.poster-bar select:focus { border-color: var(--sage); }
.poster-bar .muted { font-size: 12px; }

/* 报名收集字段编辑器（活动「报名填写信息」模式） */
/* ⚠️ 一律用 .sf-box 前缀：.ed-field input 是 (0,1,1)，只写 .sf-name (0,1,0) 压不住它的 width:100% */
.sf-box .sf-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fdfcf9; }
.sf-box .sf-head { display: flex; align-items: center; gap: 8px; }
.sf-box .sf-idx { flex: none; width: 18px; font-size: 12px; color: var(--muted); }
.sf-box .sf-name { flex: 1 1 auto; width: auto; min-width: 0; padding: 8px 10px; font-size: 13px; }
.sf-box .sf-head select { flex: none; width: auto; padding: 8px 10px; font-size: 13px; }
.sf-box .sf-head .chip { flex: none; white-space: nowrap; }
.sf-box .sf-head .btn.sm { flex: none; padding: 6px 9px; font-size: 12px; }
.sf-box .sf-opts { margin: 10px 0 0 26px; }
.sf-box .sf-opt { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sf-box .sf-opt input { flex: 1 1 auto; width: auto; min-width: 0; padding: 7px 10px; font-size: 13px; }
.sf-box .sf-opt .btn.sm { flex: none; padding: 6px 10px; font-size: 13px; }
.sf-box .sf-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.sf-box .btn.sm { padding: 6px 12px; font-size: 12px; }

/* ---------- 「日期 + 时间」选择弹层（与小程序端三列选择同款体验） ---------- */
/* 触发框：替代原生 datetime-local（电脑浏览器点开只有日历，时间选不了） */
.dt-field {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 8px 12px; min-height: 38px; box-sizing: border-box; cursor: pointer;
}
.dt-field:hover { border-color: var(--sage); }
.dt-field .dt-val { font-size: 13px; color: var(--ink); }
.dt-field .dt-val.ph { color: var(--muted); }
.dt-field .dt-caret { color: var(--muted); font-size: 12px; flex: none; }
/* 弹层：盖在编辑器弹窗（z-index 50）之上 */
.dt-pop {
  position: fixed; inset: 0; background: rgba(58,53,47,.42);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.dt-pop-card { background: var(--surface); border-radius: 14px; padding: 20px 22px; width: 480px; max-width: 100%; box-shadow: var(--shadow); }
.dt-pop-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.dt-cols { display: flex; gap: 10px; }
.dt-col { flex: 1 1 auto; min-width: 0; }
.dt-col.dt-col-sm { flex: 0 0 86px; }
.dt-col label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.dt-col select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; color: var(--ink); outline: none; }
.dt-col select:focus { border-color: var(--sage); }
.dt-pop-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* ---------- 甄选编排看板 ---------- */
.zx-wrap { display: flex; gap: 24px; align-items: flex-start; }
.zx-left { flex: 1; min-width: 0; }
.zx-right { flex: none; width: 360px; position: sticky; top: 0; }
.zx-list { display: flex; flex-direction: column; gap: 10px; }
.zx-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.zx-row.on { border-color: var(--sage); box-shadow: 0 2px 12px rgba(138,154,123,.18); }
.zx-thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: #faf7f2; display: flex; align-items: center; justify-content: center; }
.zx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zx-info { flex: 1; min-width: 0; }
.zx-name { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zx-type { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 20px; background: #eef1ea; color: var(--sage-d); margin-right: 6px; vertical-align: 1px; }
.zx-type.act { background: #f3ece2; color: var(--warn); }
.zx-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.zx-sw { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; flex: none; user-select: none; }
.zx-sw input { width: 16px; height: 16px; accent-color: var(--sage); cursor: pointer; }
.zx-sort { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex: none; width: 96px; }
.zx-sortin { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; text-align: center; outline: none; }
.zx-sortin:focus { border-color: var(--sage); }
.zx-sort .btn { width: 100%; }

/* 右侧手机预览 */
.zx-phone { background: #faf7f2; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 30px rgba(58,53,47,.10); overflow: hidden; }
.zx-hero { padding: 34px 24px 26px; background: linear-gradient(135deg, #9CAF88 0%, #C2CFB2 100%); color: #fff; }
.zx-hero-en { font-size: 20px; font-weight: 600; letter-spacing: 3px; }
.zx-hero-cn { font-size: 14px; opacity: .94; margin-top: 8px; letter-spacing: 1px; }
.zx-sec { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 8px; }
.zx-ttl { font-size: 15px; font-weight: 600; color: var(--ink); }
.zx-more { font-size: 12px; color: var(--muted); }
.zx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 18px 22px; }
.zx-pcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.zx-pcard > img, .zx-pimg-ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #eee9e0; }
.zx-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 1px 7px; border-radius: 20px; background: #fff; color: var(--sage-d); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.zx-badge.act { color: var(--warn); }
.zx-pname { font-size: 12px; color: var(--ink); padding: 7px 9px 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zx-psub { font-size: 11px; color: var(--muted); padding: 3px 9px 9px; }
.zx-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 12px; padding: 30px 10px; line-height: 1.8; }
@media (max-width: 900px) { .zx-wrap { flex-direction: column; } .zx-right { width: 100%; position: static; max-width: 360px; } }

/* ===== 图片裁剪弹层（仿微信头像） ===== */
.crop-mask { position: fixed; inset: 0; background: rgba(30,27,23,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; z-index: 9999; }
/* 图片处理进度胶囊：读图 / 压缩 / 上传 全程可见（z-index 高于裁切层，保证任何阶段都有反馈） */
.img-toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 10000; display: flex; align-items: center; gap: 9px; max-width: 88vw; padding: 10px 18px; border-radius: 999px; background: rgba(58,53,47,.93); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 28px rgba(30,27,23,.28); }
.img-toast-spin { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: imgToastSpin .8s linear infinite; }
@keyframes imgToastSpin { to { transform: rotate(360deg); } }
.crop-box { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.crop-stage { position: relative; overflow: hidden; border-radius: 8px; background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 12px 38px rgba(0,0,0,.5); touch-action: none; cursor: grab; }
.crop-stage:active { cursor: grabbing; }
.crop-img { position: absolute; left: 0; top: 0; z-index: 1; user-select: none; -webkit-user-drag: none; will-change: left, top, width, height; }
.crop-rect { position: absolute; z-index: 2; border: 1.5px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; box-sizing: border-box; }
/* 固定比例（封面/头图）：框就是取景窗，不能拖 → 整块区域都用来拖图片 */
.crop-rect.is-fixed { pointer-events: none; cursor: default; }
.crop-grid { position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)),
    linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)),
    linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)),
    linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4));
  background-repeat: no-repeat;
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
  background-position: 33.33% 0, 66.66% 0, 0 33.33%, 0 66.66%;
}
.crop-h { position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.4); z-index: 3; transform: translate(-50%, -50%); }
.crop-h.h-tl { left: 0; top: 0; cursor: nwse-resize; }
.crop-h.h-tr { left: 100%; top: 0; cursor: nesw-resize; }
.crop-h.h-bl { left: 0; top: 100%; cursor: nesw-resize; }
.crop-h.h-br { left: 100%; top: 100%; cursor: nwse-resize; }
.crop-ratios { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; max-width: 340px; }
.crop-ratio { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.crop-ratio:hover { background: rgba(255,255,255,.18); }
.crop-reset { font-size: 12px; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; cursor: pointer; }
.crop-reset:hover { background: rgba(255,255,255,.12); }
.crop-zoom { width: min(78vw, 320px); accent-color: var(--sage); }
.crop-tip { color: rgba(255,255,255,.8); font-size: 12px; text-align: center; }
.crop-actions { display: flex; gap: 12px; margin-top: 2px; }
.crop-actions .btn { padding: 9px 24px; }


/* 用户详情「调整MM豆」下方说明：对齐输入框起始列（label 170px + gap 16px），小字灰色不抢眼 */
.grant-tip {
  margin: -4px 0 12px 186px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 760px) {
  .grant-tip { margin-left: 0; }
}

/* 手机端弹窗：占满屏，头部与按钮固定，中间区域可滚动。
   原来 max-width:94vw + 固定高度 88vh，在手机上表格被压扁、底部按钮还悬在屏外。 */
@media (max-width: 640px) {
  .modal { padding: 0; align-items: stretch; justify-content: stretch; }
  .modal-box { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; padding: 18px 16px; }
  .modal-box.shell { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .ed-head { padding: 16px 16px 12px; padding-right: 52px; }
  .ed-h-title { font-size: 17px; }
  .ed-body { padding: 12px 16px 16px; -webkit-overflow-scrolling: touch; }
  .ed-actions { padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
  /* 按自然宽度排、不折行：三个按钮平分宽度会把「补报兑换单」压成两行 */
  .ed-actions .btn { flex: 0 1 auto; min-width: 0; white-space: nowrap; padding: 10px 16px; }
  .modal-close { width: 38px; height: 38px; font-size: 24px; }
}

/* 回查支付：弹窗顶部「粘单号单独查」一行 */
.pr-search { display: flex; gap: 8px; margin: 0 0 14px; }
.pr-search .input { flex: 1 1 auto; min-width: 0; }
.pr-search .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .pr-search { flex-wrap: nowrap; }
}

/* 回查支付：非错误的说明文字（未支付 / 已关闭），用灰字，不要抢成警告条 */
.ss-note { margin: 6px 0 2px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ===== 待办提醒：侧边栏角标 + 概览页待办横幅 ===== */
.nav-item { position: relative; }
.nav-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #b3261e; color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.todo-banner { border: 1px solid #e6ddc7; background: linear-gradient(180deg, #fdfaf3 0%, #faf6ec 100%); border-radius: 14px; padding: 14px 16px; margin: 0 0 22px; }
.todo-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.todo-head b { font-size: 15px; color: #6d5423; }
.todo-items { display: flex; gap: 12px; flex-wrap: wrap; }
.todo-item { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.todo-item:hover { border-color: var(--sage); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.todo-item.has { border-color: #d9c39a; background: #fffdf7; }
.todo-n { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: #eeeae1; color: #8a8272; font-size: 15px; }
.todo-item.has .todo-n { background: #b4663f; color: #fff; }
.todo-l { font-size: 13px; }

/* 订单中心「申请退单」标签：有待审时用暖棕高亮，与状态筛选的灰底区分 */
.tab-num.hot { background: #b4663f; color: #fff; }
.oc-refund-tab { border-color: #d9c39a; color: #8a5a35; }

/* 待审弹窗列表：宽松排版，避免文字挤在一起 */
.dep-roomy .dep-row { padding: 14px 8px; align-items: flex-start; }
.dep-roomy .dep-info { gap: 7px; }
.dep-roomy .dep-ops { flex: none; align-self: center; white-space: nowrap; }
.aa-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.aa-addrs { display: flex; flex-direction: column; gap: 6px; margin: 2px 0; }
.aa-addr { font-size: 13px; line-height: 1.6; word-break: break-all; }
.aa-addr .aa-label { display: inline-block; min-width: 44px; padding: 1px 7px; margin-right: 8px; border-radius: 5px; font-size: 11px; vertical-align: 1px; }
.aa-addr.old { color: var(--muted); }
.aa-addr.old .aa-label { background: #eeeae1; color: #8a8272; }
.aa-addr.new { color: #7a4f2c; font-weight: 600; }
.aa-addr.new .aa-label { background: #f3e3d5; color: #9a5a2f; }
.aa-addr .aa-recv { margin-left: 10px; font-size: 12px; font-weight: 400; color: var(--muted); }
.aa-reason { font-size: 12px; }

/* ===== 活动活码（常用独立菜单）===== */
.ways-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.ways-head-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #eef1ea; color: var(--sage-d); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ways-head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: .3px; }
.ways-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 780px; }

.ways-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ways-step { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ways-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ways-card-head .muted { font-size: 12px; margin-left: auto; }

.ways-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.ways-form label { font-size: 13px; color: var(--muted); flex: none; }
.ways-form input.in { flex: 1; min-width: 220px; max-width: 380px; }
.ways-result { margin-top: 10px; font-size: 12px; min-height: 16px; }

.ways-list { display: flex; flex-direction: column; gap: 10px; }
.ways-item { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ways-item:hover { border-color: var(--sage); box-shadow: 0 2px 10px rgba(58,53,47,.05); }
.ways-thumb { flex: none; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; background: #fff; cursor: zoom-in; }
.ways-info { flex: 1; min-width: 0; }
.ways-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.ways-meta { margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.ways-tag { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #eef1ea; color: var(--sage-d); font-size: 11px; }
.ways-tag.on { background: var(--sage); color: #fff; }
.ways-form textarea.in { line-height: 1.6; font-family: inherit; }

/* 欢迎语附件编辑（图片 / 链接 / 小程序） */
.wel-modal-card { background: #fff; border-radius: 14px; padding: 24px 26px; max-width: 720px; width: 94%; max-height: 88vh; overflow: auto; box-shadow: 0 18px 50px rgba(58,53,47,.18); }
.wel-modal-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.wel-att { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); }
.wel-att-head { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.wel-att-list { display: flex; flex-direction: column; gap: 8px; }
.wel-att-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; }
.wel-att-type { flex: none; min-width: 42px; font-weight: 600; color: var(--sage-d); }
.wel-att-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.wel-att-add { margin-top: 8px; display: flex; gap: 6px; }
.wel-in { flex: 1; min-width: 130px; font-size: 12px; padding: 6px 8px; }
.ways-ops { flex: none; display: flex; gap: 6px; align-items: center; }
.ways-btn { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12px; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.ways-btn:hover { border-color: var(--sage); color: var(--sage-d); }
.ways-btn.primary { background: var(--sage); border-color: var(--sage); color: #fff; }
.ways-btn.primary:hover { background: var(--sage-d); border-color: var(--sage-d); color: #fff; }
.ways-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.ways-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg); }

.qr-modal-card { background: #fff; border-radius: 14px; padding: 26px 28px; max-width: 440px; width: 92%; box-shadow: 0 18px 50px rgba(58,53,47,.18); }
.qr-modal-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.qr-modal-card .qr-stage { margin: 14px 0; padding: 14px; background: var(--bg); border-radius: 10px; text-align: center; }
.qr-modal-card canvas { width: 280px; height: 280px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qr-modal-card .qr-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.qr-modal-card input[type=file] { font-size: 12px; color: var(--muted); max-width: 240px; }
