/**
 * 6Q 后台管理系统 · 复刻原型
 * 设计规范：claude-design 简洁白底 + Element UI 组件规格
 * Primary #409EFF · 背景 #F5F7FA · 边框 #DCDFE6
 */
:root {
  --bg: #f5f7fa;
  --white: #ffffff;
  --hover: #f5f7fa;
  --active-bg: #ecf5ff;
  --text: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --text-placeholder: #c0c4cc;
  --border: #dcdfe6;
  --border-light: #e4e7ed;
  --border-lighter: #ebeef5;
  --primary: #409eff;
  --primary-light: #66b1ff;
  --primary-dark: #3a8ee6;
  --primary-bg: #ecf5ff;
  --success: #67c23a;
  --success-bg: #f0f9eb;
  --warning: #e6a23c;
  --warning-bg: #fdf6ec;
  --danger: #f56c6c;
  --info: #909399;
  --gold: #d99b1c;
  --gold-bg: #fdf6ec;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 4px;
  --radius-md: 6px;
  --shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
  --shadow-light: 0 1px 4px rgba(0, 0, 0, 0.04);
  --side-w: 200px;
  --header-h: 50px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.admin {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  grid-template-areas:
    "brand header"
    "side  main";
  height: 100vh;
  overflow: hidden;
}

/* ───────── 品牌栏（蓝色，位于侧栏顶部） ───────── */
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: linear-gradient(135deg, #409eff 0%, #3a8ee6 100%);
  color: #fff;
}
.brand__title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.brand__badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  white-space: nowrap;
}

/* ───────── 顶部业务导航条 ───────── */
.header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border-lighter);
}
.header__collapse {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: var(--text-regular);
  cursor: pointer;
  flex-shrink: 0;
}
.header__collapse:hover { background: var(--hover); color: var(--primary); }

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  height: 100%;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav__arrow {
  color: var(--text-placeholder);
  padding: 0 4px;
  flex-shrink: 0;
  user-select: none;
}
.topnav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-regular);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
.topnav__item:hover { color: var(--primary); }
.topnav__item--active { color: var(--primary); font-weight: 500; }
.topnav__item--active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-left: 10px;
}
.header__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
}
.header__icon:hover { background: var(--hover); color: var(--primary); }
.header__user {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-regular);
}
.header__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #66b1ff, #409eff);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* ───────── 侧栏菜单 ───────── */
.side {
  grid-area: side;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 24px;
}
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: #e4e7ed; border-radius: 3px; }

.menu__group { display: block; }
.menu__parent,
.menu__leaf {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-regular);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}
.menu__parent:hover,
.menu__leaf:hover { background: var(--hover); color: var(--primary); }

.menu__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: currentColor;
}
.menu__icon svg { width: 16px; height: 16px; display: block; }
.menu__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu__caret {
  flex-shrink: 0;
  color: var(--text-placeholder);
  transition: transform 0.2s;
}
.menu__group.is-open > .menu__parent .menu__caret { transform: rotate(180deg); }

/* 一级 active（父级高亮，如常规苹果树/金色） */
.menu__parent.is-current {
  color: var(--gold);
  font-weight: 600;
}
.menu__parent.is-current .menu__caret { color: var(--gold); }

/* 子菜单容器 */
.menu__sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.24s ease;
}
.menu__group.is-open > .menu__sub { max-height: 1200px; }

.menu__child {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-regular);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}
.menu__child--deep {
  padding-left: 56px;
  font-size: 13px;
}
.menu__branch {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-regular);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}
.menu__branch:hover { background: var(--hover); color: var(--primary); }
.menu__branch.is-current { color: var(--primary); font-weight: 500; }
.menu__branch.is-active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--primary);
}
.menu__branch .menu__caret {
  margin-left: auto;
}
.menu__group .menu__group > .menu__sub {
  background: transparent;
}
.menu__group .menu__group.is-open > .menu__sub {
  max-height: 800px;
}
.menu__child:hover { background: var(--hover); color: var(--primary); }
.menu__child.is-active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--primary);
}
.menu__sub-empty {
  padding: 8px 16px 8px 44px;
  font-size: 12px;
  color: var(--text-placeholder);
}

/* ───────── 主内容区 ───────── */
.main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
}

/* 标签页条 */
.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border-lighter);
}
.tabs__list { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  color: var(--text-regular);
  cursor: pointer;
}
.tab--home { border-color: transparent; padding-left: 6px; }
.tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.tab__close {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 11px;
  opacity: 0.85;
}
.tab__close:hover { background: rgba(255, 255, 255, 0.3); }
.tabs__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-regular);
  cursor: pointer;
  padding: 0 8px;
  flex-shrink: 0;
}
.tabs__more:hover { color: var(--primary); }

/* 面包屑 */
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.crumb__sep { color: var(--text-placeholder); }
.crumb__cur { color: var(--text-regular); }

/* 内容滚动容器 */
.content {
  flex: 1;
  overflow: auto;
  padding: 0 16px 20px;
}

/* 卡片 */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-lighter);
  min-height: 420px;
}

/* 内容页左右布局：左内嵌 Tab + 右内容 */
.cfg {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 420px;
}
.cfg__side {
  border-right: 1px solid var(--border-lighter);
  padding: 16px 0;
}
.cfg__tab {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-regular);
  text-align: left;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.cfg__tab:hover { color: var(--primary); background: var(--hover); }
.cfg__tab.is-active {
  color: var(--primary);
  background: var(--primary-bg);
  border-left-color: var(--primary);
  font-weight: 500;
}
.cfg__body { padding: 20px 24px; position: relative; }
.cfg__edit {
  position: absolute;
  top: 20px;
  right: 24px;
}

/* 描述型表单（label + value 行） */
.field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
}
.field__label {
  width: 90px;
  flex-shrink: 0;
  color: var(--text-secondary);
  text-align: right;
}
.field__value { color: var(--text); word-break: break-all; }
.field__value a { color: var(--primary); text-decoration: none; }
.field__value a:hover { text-decoration: underline; }
.field__img {
  width: 72px;
  height: 96px;
  border-radius: var(--radius);
  border: 1px solid var(--border-lighter);
  object-fit: cover;
  background: var(--hover);
  display: grid;
  place-items: center;
  color: var(--text-placeholder);
  font-size: 12px;
}
.field__qr {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  border: 1px solid var(--border-lighter);
  background: #fff;
  padding: 4px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-regular);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s;
}
.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn--secondary:hover { color: var(--primary); border-color: #c6e2ff; background: var(--primary-bg); }

/* 占位视图 */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 420px;
  color: var(--text-placeholder);
}
.placeholder__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hover);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}
.placeholder__title { font-size: 15px; color: var(--text-regular); font-weight: 500; }
.placeholder__desc { font-size: 13px; color: var(--text-secondary); }

/* ── 置灰菜单（删除线） ── */
.menu__leaf.is-disabled,
.menu__parent.is-disabled,
.menu__branch.is-disabled,
.menu__child.is-disabled {
  cursor: not-allowed;
  color: var(--text-placeholder);
}
.menu__leaf.is-disabled .menu__label,
.menu__parent.is-disabled .menu__label,
.menu__branch.is-disabled .menu__label,
.menu__child.is-disabled {
  text-decoration: line-through;
  text-decoration-color: #c0c4cc;
}
.menu__group.is-disabled .menu__icon { opacity: 0.45; }
.menu__child.is-disabled:hover,
.menu__leaf.is-disabled:hover,
.menu__branch.is-disabled:hover,
.menu__parent.is-disabled:hover {
  background: transparent;
  color: var(--text-placeholder);
}

.topnav__item--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.topnav__item--disabled:hover { color: var(--text-regular); }

.btn--sm { height: 28px; padding: 0 12px; font-size: 12px; }

/* ── 嘉年华活动管理 ── */
.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.page-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.card--flush { overflow: hidden; }
.card--pad { padding: 20px 24px; }

.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-lighter);
  color: var(--text-regular);
  vertical-align: middle;
}
.data-table th {
  background: var(--hover);
  color: var(--text-secondary);
  font-weight: 500;
}
.data-table tbody tr:hover td { background: #fafafa; }
.data-table--compact td,
.data-table--compact th { padding: 10px 12px; }
.data-table tr.is-selected td { background: var(--primary-bg); }
.data-table tr.is-disabled td { opacity: 0.55; }

.table-foot {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-lighter);
}

.cell-muted { color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.cell-actions { white-space: nowrap; }

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.link:hover { text-decoration: underline; }
.link-btn {
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  padding: 0 6px 0 0;
  font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 18px;
  border: 1px solid transparent;
}
.tag--success { background: var(--success-bg); color: var(--success); border-color: #e1f3d8; }
.tag--warning { background: var(--warning-bg); color: var(--warning); border-color: #faecd8; }
.tag--info { background: var(--primary-bg); color: var(--primary); border-color: #d9ecff; }
.tag--off { background: #f4f4f5; color: var(--info); border-color: var(--border-lighter); }

/* 详情页 */
.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.detail-head__main { flex: 1; min-width: 0; }
.detail-head__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.detail-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.detail-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-lighter);
}
.detail-tab {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-regular);
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.detail-tab:hover { color: var(--primary); }
.detail-tab.is-active {
  color: var(--primary);
  font-weight: 500;
  border-bottom-color: var(--primary);
}

.form-section { margin-bottom: 28px; }
.form-section:last-child { margin-bottom: 0; }
.form-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.form-section__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.form-section__head .form-section__title { margin-bottom: 0; }

.form-grid {
  display: grid;
  gap: 4px 0;
  max-width: 720px;
}
.form-grid--wide { max-width: 860px; }
.form-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}
.form-row__label {
  text-align: right;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 32px;
}
.form-row__ctrl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
}
.form-hint--block {
  display: block;
  margin: 0 0 12px;
}

.inp {
  display: inline-block;
  min-width: 280px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
}
.inp--sm { min-width: 120px; height: 28px; font-size: 12px; }
.inp--readonly {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
}

.chk--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--text-secondary);
}
.chk--disabled input {
  cursor: not-allowed;
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-regular);
  cursor: default;
}
.chk input { accent-color: var(--primary); }

.switch {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 20px;
  cursor: default;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  background: #dcdfe6;
  border-radius: 999px;
  transition: background 0.2s;
}
.switch span::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }

/* 日程表 · 月历视图 */
.form-section--compact { margin-bottom: 20px; }
.form-grid--inline { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 0 24px; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.cal-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.cal-legend__dot--preview { background: #fff7e6; border: 1px solid #ffd591; }
.cal-legend__dot--active { background: #f6ffed; border: 1px solid #b7eb8f; }
.cal-legend__dot--set { background: #ecf5ff; border: 1px solid #91d5ff; }

.cal-panel {
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.cal-panel__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--hover);
  border-bottom: 1px solid var(--border-lighter);
}
.cal-panel__month { font-size: 16px; min-width: 120px; text-align: center; }
.cal-panel__range { margin-left: auto; font-size: 12px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-lighter);
}
.cal-grid__weekhead {
  background: #fafafa;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 4px;
}
.cal-cell {
  background: var(--white);
  min-height: 112px;
  padding: 8px 10px;
  position: relative;
  box-sizing: border-box;
}
.cal-cell--pad { background: #fafafa; min-height: 112px; }
.cal-cell--day {
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.15s, background 0.15s;
}
.cal-cell--day:hover { background: #fafcff; box-shadow: inset 0 0 0 2px #c6e2ff; }
.cal-cell--out { background: #fafafa; color: var(--text-placeholder); }
.cal-cell--preview { background: #fffbe6; }
.cal-cell--active { background: #f6ffed; }
.cal-cell--configured { box-shadow: inset 0 0 0 2px #91d5ff; }
.cal-cell--day.is-selected { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-bg); }
.cal-cell__num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.cal-cell__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cal-cell__chips { display: flex; flex-direction: column; gap: 4px; }
.cal-chip {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(64, 158, 255, 0.12);
  color: #1d39c4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-chip--more { background: #f0f0f0; color: var(--text-secondary); text-align: center; }
.cal-cell__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  color: var(--text-placeholder);
  font-size: 12px;
}
.cal-cell__plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.cal-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 900;
}
.cal-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100vh;
  background: var(--white);
  z-index: 901;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.cal-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-lighter);
}
.cal-drawer__head h3 { margin: 0 0 6px; font-size: 18px; }
.cal-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px;
}
.cal-drawer__field { grid-template-columns: 72px 1fr; }
.cal-drawer__games-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
}
.cal-drawer__games { display: flex; flex-direction: column; gap: 10px; }
.cal-game {
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fafafa;
}
.cal-game__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cal-game__row:last-child { margin-bottom: 0; }
.cal-game__row label:first-child { min-width: 36px; font-size: 13px; color: var(--text-secondary); }
.cal-game__row--emotion { padding-top: 4px; border-top: 1px dashed var(--border-lighter); }
.cal-drawer__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-lighter);
}

  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.schedule-day__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--hover);
  border-bottom: 1px solid var(--border-lighter);
}
.schedule-day__title { font-weight: 500; color: var(--text); }
.schedule-day__games {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.schedule-game {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.schedule-emotion {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: var(--radius);
}
.schedule-day__preview {
  padding: 8px 14px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-lighter);
}
.preview-label {
  display: inline-block;
  margin-right: 6px;
  color: var(--text-placeholder);
}

.empty-block {
  padding: 32px;
  text-align: center;
  color: var(--text-placeholder);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.slot-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

.slot-icon-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.slot-icon-upload__img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.slot-icon-upload__btn {
  margin: 0;
  cursor: pointer;
}

.inp-prefix {
  margin-right: 4px;
  color: var(--text-secondary);
}
.inp--num {
  width: 120px;
}

/* 头像框选择 */
.avatar-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.avatar-pick__thumb {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border-light);
  flex-shrink: 0;
}
.avatar-pick__thumb--lg { width: 40px; height: 40px; }
.avatar-pick__empty { color: var(--text-placeholder); font-size: 13px; }

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal {
  width: min(640px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-lighter);
}
.modal__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.modal__close {
  border: none;
  background: none;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}
.modal__hint { padding: 0 18px; margin-top: 12px; }
.modal .table-wrap { padding: 12px 18px 18px; }

/* ── 情绪合成配置 ── */
.data-table--words th,
.data-table--words td { text-align: center; font-size: 13px; }
.data-table--words th:first-child,
.data-table--words td:first-child,
.data-table--words th:nth-child(2),
.data-table--words td:nth-child(2) { text-align: left; }
.inp--cell {
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 0 6px;
  font-size: 12px;
}
.data-table--words .inp--num { width: 72px; min-width: 72px; text-align: center; }
.inp--wide { min-width: 240px; width: 100%; max-width: 420px; }
.inp--inline {
  width: 64px;
  min-width: 64px;
  height: 28px;
  padding: 0 6px;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
}
.word-cell { font-weight: 500; }
.word-cell--xi { color: #e08a10; }
.word-cell--nu { color: #cf1322; }
.word-cell--ai { color: #0958d9; }
.word-cell--ju { color: #531dab; }
.emo-th { font-weight: 600; }
.emo-th--xi { color: #e08a10; }
.emo-th--nu { color: #cf1322; }
.emo-th--ai { color: #0958d9; }
.emo-th--ju { color: #531dab; }

.form-section--muted {
  padding-top: 12px;
  border-top: 1px dashed var(--border-lighter);
}

.link-btn--danger { color: var(--danger); }

.poster-bg-upload {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.poster-bg-preview {
  width: 80px;
  height: 112px;
  border-radius: var(--radius);
  border: 1px solid var(--border-lighter);
  background: linear-gradient(160deg, #667eea 0%, #764ba2 100%);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  flex-shrink: 0;
}

.poster-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  border-top: 1px solid var(--border-lighter);
  padding-top: 20px;
}

.poster-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}
.poster-workspace__editor {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}
.poster-workspace__preview {
  position: sticky;
  top: 12px;
  padding: 14px;
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  background: #fafbfc;
}
.poster-workspace__preview .poster-mini-card {
  width: 100%;
  max-width: 210px;
  margin: 0 auto;
}
.poster-tpl-nav .poster-chips { max-height: 360px; overflow: auto; }
.poster-tpl-form { min-width: 0; }

.color-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.color-field__picker {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.color-field__hex {
  width: 100px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.color-field__rgb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.inp--rgb {
  width: 56px;
  padding: 4px 6px;
}

@media (max-width: 1100px) {
  .poster-workspace { grid-template-columns: 1fr; }
  .poster-workspace__preview { position: static; }
  .poster-workspace__editor { grid-template-columns: 1fr; }
}

.poster-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.poster-chip {
  text-align: left;
  border: 1px solid var(--border-lighter);
  border-left: 3px solid var(--chip, var(--primary));
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-regular);
}
.poster-chip:hover { background: var(--hover); }
.poster-chip.is-active {
  background: var(--primary-bg);
  border-color: #c6e2ff;
  color: var(--primary);
  font-weight: 500;
}
.poster-chip.is-off { opacity: 0.55; }

.color-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.poster-mini-preview {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-lighter);
}
.poster-mini-card {
  position: relative;
  width: 200px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: var(--shadow-light);
}
.poster-mini-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #667eea 0%, #764ba2 100%);
  opacity: 0.92;
}
.poster-mini-card__body {
  position: relative;
  z-index: 1;
  padding: 16px 16px 72px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  box-sizing: border-box;
}
.poster-mini-card__chip {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--chip, var(--primary));
  color: #fff;
}
.poster-mini-card__title {
  margin: 24px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.poster-mini-card__sub {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.5;
}
.poster-mini-card__qr-slot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.poster-mini-card__qr {
  width: 52px;
  height: 52px;
  padding: 3px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.poster-mini-card__qr svg {
  display: block;
  border-radius: 3px;
}
.poster-mini-card__qr-caption {
  font-size: 10px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
  letter-spacing: 0.02em;
}

.analytics-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
}
.analytics-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 520px;
}
.analytics-sider {
  background: var(--white);
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.analytics-sider__search {
  padding: 12px;
  border-bottom: 1px solid var(--border-lighter);
}
.analytics-sider__list {
  flex: 1;
  overflow: auto;
  padding: 8px;
}
.analytics-sider__hint {
  margin: 0;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text-placeholder);
  border-top: 1px solid var(--border-lighter);
  line-height: 1.4;
}
.analytics-act {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-regular);
}
.analytics-act:hover { background: var(--hover); }
.analytics-act.is-active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}
.analytics-act__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-main {
  position: relative;
  min-width: 0;
}
.analytics-main.is-loading {
  pointer-events: none;
}
.analytics-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
}
.analytics-loading__spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #dcdfe6;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: analytics-spin 0.7s linear infinite;
}
.analytics-loading__text {
  font-size: 13px;
  color: var(--text-secondary);
}
@keyframes analytics-spin {
  to { transform: rotate(360deg); }
}
.analytics-seg {
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.analytics-seg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.analytics-seg-row .analytics-seg {
  margin-bottom: 8px;
}
.analytics-seg__btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-regular);
}
.analytics-seg__btn.is-active {
  background: var(--primary);
  color: #fff;
}
.analytics-th-sort {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}
.analytics-th-sort.is-active {
  color: var(--primary);
}
.analytics-th-sort:hover {
  color: var(--primary);
}
.analytics-filters__ranges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.analytics-range {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-regular);
}
.analytics-range.is-active {
  background: var(--primary-bg);
  border-color: #c6e2ff;
  color: var(--primary);
  font-weight: 500;
}
.analytics-filters__custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.analytics-filters__meta {
  font-size: 12px;
  margin-left: auto;
}
.analytics-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.analytics-kpi {
  background: var(--white);
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.analytics-kpi__label {
  font-size: 12px;
  color: var(--text-secondary);
}
.analytics-kpi__value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.analytics-kpi__tip {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-placeholder);
}
.analytics-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}
.analytics-detail-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.analytics-detail-bar .inp {
  width: auto;
  min-width: 140px;
}
@media (max-width: 1100px) {
  .analytics-layout { grid-template-columns: 1fr; }
  .analytics-sider { max-height: 280px; }
  .analytics-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-filters__meta { margin-left: 0; width: 100%; }
}

/* ── 生效开关 ── */
.enabled-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.enabled-switch input { display: none; }
.enabled-switch__track {
  position: relative;
  width: 44px;
  height: 24px;
  background: #dcdfe6;
  border-radius: 12px;
  transition: background 0.2s;
}
.enabled-switch.is-on .enabled-switch__track { background: var(--primary); }
.enabled-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.enabled-switch.is-on .enabled-switch__thumb { transform: translateX(20px); }
.enabled-switch__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.enabled-switch.is-on .enabled-switch__label { color: var(--primary); }
.enabled-switch--sm { gap: 6px; }
.enabled-switch--sm .enabled-switch__track { width: 36px; height: 20px; border-radius: 10px; }
.enabled-switch--sm .enabled-switch__thumb { width: 16px; height: 16px; }
.enabled-switch--sm.is-on .enabled-switch__thumb { transform: translateX(16px); }
.enabled-switch--sm .enabled-switch__label { font-size: 12px; }

.detail-lock-banner {
  padding: 10px 16px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #d48806;
  margin-bottom: 12px;
}

/* ── 周年庆抽奖 / 集卡组 ── */
.lot-drawer {
  width: min(720px, 96vw);
}
.lot-drawer__body {
  padding-bottom: 32px;
}
.lot-section__title {
  margin: 20px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-lighter);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.lot-section__title:first-child { margin-top: 0; }
.lot-form-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 10px 12px;
  align-items: start;
  margin-bottom: 14px;
}
.lot-form-row__label {
  padding-top: 8px;
  font-size: 13px;
  color: var(--text-regular);
  text-align: right;
}
.lot-form-row__label .req {
  color: #f56c6c;
  margin-right: 4px;
}
.lot-form-row__ctrl { min-width: 0; }
.lot-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lot-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 14px;
  font-size: 13px;
  cursor: pointer;
}
.lot-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lot-inline__lab {
  font-size: 13px;
  color: var(--text-secondary);
}
.lot-channel {
  margin: 0 0 16px 148px;
  padding: 12px;
  background: #fafbfc;
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
}
.lot-channel > .lot-form-row {
  grid-template-columns: 120px 1fr;
  margin-bottom: 8px;
}
.lot-channel__sub { margin-top: 8px; }
.lot-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.lot-link:hover { opacity: 0.85; }
.lot-link--danger { color: #f56c6c; }
.lot-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
  font-size: 13px;
}
.lot-filter__btns {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.lot-toolbar { margin-bottom: 12px; }
.lot-pager {
  margin-top: 12px;
  text-align: right;
  font-size: 12px;
}
.lot-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.lot-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lot-switch__track {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #dcdfe6;
  position: relative;
  transition: background 0.2s;
}
.lot-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.lot-switch.is-on .lot-switch__track,
.lot-switch:has(input:checked) .lot-switch__track { background: var(--primary); }
.lot-switch.is-on .lot-switch__thumb,
.lot-switch:has(input:checked) .lot-switch__thumb { transform: translateX(18px); }
.lot-products {
  margin: 16px 0 8px;
}
.lot-products__title {
  font-size: 13px;
  color: var(--text-regular);
  margin-bottom: 10px;
}
.lot-products__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}
.lot-empty-table .data-table td { padding: 0; }
.lot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 16px;
  color: var(--text-placeholder);
}
.lot-empty__icon {
  width: 48px;
  height: 40px;
  border: 2px solid #dcdfe6;
  border-radius: 6px;
  position: relative;
  opacity: 0.7;
}
.lot-empty__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  width: 18px;
  height: 12px;
  border: 2px solid #c0c4cc;
  border-top: none;
  transform: translate(-50%, -50%);
  border-radius: 0 0 4px 4px;
}
.lot-empty__text { font-size: 13px; }
.lot-upload {
  width: 100px;
  height: 100px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}
.lot-upload span:first-child { font-size: 22px; line-height: 1; color: #909399; }
.lot-upload--wide { width: 160px; height: 72px; }
.lot-collapse {
  margin-bottom: 8px;
  background: #f5f7fa;
  border-radius: 4px;
}
.lot-collapse__head {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-regular);
}
.lot-card-panel {
  border: 1px solid var(--border-lighter);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #f5f7fa;
}
.lot-card-panel__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  color: var(--text-regular);
}
.lot-card-panel__caret {
  width: 14px;
  color: var(--text-secondary);
}
.lot-card-panel__body {
  display: none;
  padding: 8px 14px 14px;
  background: #fff;
  border-top: 1px solid var(--border-lighter);
}
.lot-card-panel.is-open {
  background: #fff;
}
.lot-card-panel.is-open .lot-card-panel__body {
  display: block;
}
.lot-pick-modal {
  width: min(640px, 92vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.lot-pick-modal .table-wrap {
  flex: 1;
  overflow: auto;
  max-height: 360px;
}
.lot-pick-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-lighter);
}
.lot-rank-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.lot-rank-range .inp {
  width: 88px;
}
.lot-rank-range__affix {
  font-size: 13px;
  color: var(--text-regular);
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  line-height: 1.2;
}
.inp--readonly {
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
  padding: 0 12px;
  background: #f5f7fa;
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius);
  color: var(--text-regular);
  font-size: 13px;
}
@media (max-width: 720px) {
  .lot-form-row { grid-template-columns: 1fr; }
  .lot-form-row__label { text-align: left; padding-top: 0; }
  .lot-channel { margin-left: 0; }
}
