:root {
  --ink: #1c1730;
  --muted: #706b7c;
  --line: #e8e4ef;
  --surface: #ffffff;
  --surface-soft: #f7f5fa;
  --purple-950: #26034f;
  --purple-900: #35046c;
  --purple-800: #4b0a91;
  --purple-700: #6317b6;
  --purple-600: #7d2ed0;
  --purple-100: #f0e6fb;
  --cyan-700: #087b91;
  --cyan-500: #17b4c4;
  --cyan-100: #e1f7f8;
  --gold: #f7b955;
  --green: #19885d;
  --green-soft: #e5f6ef;
  --orange: #b6650b;
  --orange-soft: #fff1db;
  --blue: #245ba8;
  --blue-soft: #e7f0ff;
  --danger: #b42d35;
  --shadow: 0 16px 40px rgba(47, 20, 82, 0.1);
  --radius: 14px;
  --shell: 1180px;
}

.guest-public-page { min-height: 100vh; padding: 32px 16px; background: #f6f4fa; }
.guest-public-shell { width: min(880px, 100%); margin: 0 auto; }
.guest-public-shell > header { padding: 0 0 18px; color: #35105f; }
.guest-public-card { padding: clamp(22px, 5vw, 42px); background: #fff; border: 1px solid #e6e0ee; border-radius: 18px; box-shadow: 0 18px 46px rgba(43, 20, 70, .08); }
.guest-public-card h1 { margin: 8px 0; }
.guest-collection-header { padding: clamp(24px, 5vw, 32px); color: #fff; background: linear-gradient(120deg, #194779, #2879a5); border-radius: 16px; }
.guest-collection-header h1 { margin: 0; font-size: clamp(20px, 3vw, 24px); font-weight: 500; text-align: center; }
.guest-collection-header p { margin: 14px 0 0; font-size: 16px; }
.guest-public-form { display: grid; gap: 18px; margin-top: 28px; }
.guest-public-form textarea[name="profile_body"] { min-height: 220px; }
.field .guest-collection-sensitive-hint { text-align: left; }
.guest-collection-notice { padding: 18px 20px; color: #194779; background: #edf7ff; border-radius: 10px; line-height: 1.7; }
.guest-collection-groups { display: grid; gap: 16px; }
.guest-collection-group { padding: 22px; background: #fff; border: 1px solid #dfe5ed; border-radius: 14px; box-shadow: 0 5px 16px rgba(25, 71, 121, .05); }
.guest-collection-group h2 { margin: 0 0 20px; color: #194779; font-size: 19px; font-weight: 500; }
.guest-collection-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guest-collection-photo img { display: block; width: min(240px, 100%); max-height: 240px; margin-top: 10px; border-radius: 10px; object-fit: contain; background: #f4f6fa; }
.guest-public-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 24px; overflow: hidden; background: #ece6f2; border: 1px solid #ece6f2; border-radius: 12px; }
.guest-public-details > div { padding: 14px 16px; background: #fff; }
.guest-public-details dt { color: #756b7f; font-size: 12px; }
.guest-public-details dd { margin: 5px 0 0; white-space: pre-wrap; }
.guest-public-success { padding: 32px; margin-top: 24px; text-align: center; background: #f0fbf6; border-radius: 12px; }
.collection-manager-modal { width: min(980px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; }
.collection-manager-list { display: grid; gap: 8px; margin: 16px 0 24px; }
.collection-manager-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #e6e0ee; border-radius: 10px; }
.collection-manager-row small { display: block; color: #756b7f; }
.collection-status-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.guest-qr-modal { width: min(480px, calc(100vw - 32px)); }
.guest-qr-modal [data-itinerary-qr-body] { display: grid; gap: 16px; }
.guest-qr-image { width: min(280px, 100%); margin: 0 auto; }
.guest-qr-modal input { width: 100%; }
@media (max-width: 640px) { .guest-public-page { padding: 0; } .guest-public-card { border-radius: 0; } .guest-collection-fields, .guest-public-details { grid-template-columns: 1fr; } }
@media print { .guest-public-page { padding: 0; background: #fff; } .guest-public-card { border: 0; box-shadow: none; } }

:root[data-portal-theme="blue"] {
  --purple-950: #082f61;
  --purple-900: #0d417f;
  --purple-800: #13579d;
  --purple-700: #176bb8;
  --purple-600: #3687ce;
  --purple-100: #e5f1fc;
}

:root[data-portal-theme="cyan"] {
  --purple-950: #063e4a;
  --purple-900: #075462;
  --purple-800: #087080;
  --purple-700: #078a98;
  --purple-600: #19a8b2;
  --purple-100: #def5f5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

/* 内容少的页面，页脚也贴在窗口底部，下面不留空白 */
body { display: flex; min-height: 100vh; flex-direction: column; }
#app-main { flex: 1 0 auto; }

button,
input,
select,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--surface);
  color: var(--purple-800);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

[hidden] { display: none !important; }

/* 首页动态数据就绪前（loading）或失败时（error），隐藏 index.html 的旧静态会议数据。
   visibility 而非 display，保留布局避免首屏发生跳动。 */
html[data-home-state="loading"] [data-page="home"],
html[data-home-state="error"] [data-page="home"],
html[data-home-state="loading"] [data-conference-title],
html[data-home-state="error"] [data-conference-title] { visibility: hidden; }

.site-header {
  position: relative;
  z-index: 50;
  background: var(--surface);
}

.utility-bar {
  color: rgba(255, 255, 255, 0.78);
  background: var(--purple-950);
  font-size: 13px;
}

.utility-inner,
.utility-actions,
.nav-inner,
.brand,
.brand-copy,
.hero-facts,
.hero-actions,
.section-heading,
.compact-heading,
.program-toolbar,
.toolbar-actions,
.filter-row,
.program-summary,
.form-heading,
.form-actions,
.form-actions > div,
.profile-header,
.panel-heading,
.admin-topbar,
.admin-topbar > div,
.admin-welcome {
  display: flex;
  align-items: center;
}

.utility-inner {
  min-height: 38px;
  justify-content: space-between;
}

.utility-actions { gap: 18px; }

.text-button {
  border: 0;
  padding: 0;
  color: var(--purple-700);
  background: transparent;
  cursor: pointer;
}

.utility-bar .text-button { color: inherit; }

.account-trigger { gap: 8px; }

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--purple-600));
  font-weight: 700;
}

.avatar-small { width: 26px; height: 26px; border-radius: 50%; font-size: 10px; }
.avatar-large { width: 72px; height: 72px; border-radius: 22px; font-size: 22px; }

.main-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(32, 16, 54, 0.05);
}

/* 电脑上导航左边不放会议名称（顶栏已有），导航居中；手机上导航收成「菜单」，左边仍显示会议名称 */
.nav-inner { min-height: 64px; justify-content: center; }

.brand { display: none; gap: 12px; text-decoration: none; }

.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
}

.brand-mark span {
  position: absolute;
  border: 3px solid var(--purple-700);
  border-radius: 50%;
}

.brand-mark span:nth-child(1) { inset: 4px 1px 9px 8px; }
.brand-mark span:nth-child(2) { inset: 12px 8px 1px 1px; border-color: var(--cyan-500); }
.brand-mark span:nth-child(3) { width: 7px; height: 7px; top: 4px; right: 2px; border: 0; background: var(--gold); }

.brand-copy { align-items: baseline; gap: 5px; }
.brand-copy strong { color: var(--purple-900); font-size: 18px; letter-spacing: -0.3px; }
.brand-copy small { color: var(--cyan-700); font-weight: 700; }

.nav-links { display: flex; align-self: stretch; align-items: stretch; gap: 4px; }

.nav-links a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 105px;
  padding: 0 18px;
  color: #4f485b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--purple-700);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--purple-800); }
.nav-links a.active::after { opacity: 1; transform: scaleX(1); }

.menu-toggle { display: none; }

.account-popover {
  position: absolute;
  z-index: 80;
  top: 36px;
  right: max(20px, calc((100% - var(--shell)) / 2));
  display: grid;
  width: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-popover span { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.account-popover a,
.account-popover button { padding: 9px 0; border: 0; color: var(--purple-700); background: none; text-align: left; text-decoration: none; cursor: pointer; }

.hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(79, 224, 234, 0.24), transparent 25%),
    radial-gradient(circle at 87% 27%, rgba(197, 112, 255, 0.4), transparent 24%),
    linear-gradient(122deg, var(--purple-950) 0%, #4c0893 48%, #7900be 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 75%, #000);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 510px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-kicker {
  display: block;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.hero .eyebrow { color: #9eecf0; }
.hero h1 { max-width: 760px; margin: 16px 0 4px; font-size: clamp(36px, 5vw, 62px); line-height: 1.16; letter-spacing: -2px; }
.hero-en { margin: 0; color: rgba(255,255,255,.74); font-family: Arial, sans-serif; font-size: clamp(17px, 2vw, 24px); }
.hero-facts { gap: 0; margin-top: 30px; color: rgba(255,255,255,.9); font-size: 16px; }
.hero-facts span + span::before { margin: 0 14px; color: rgba(255,255,255,.3); content: "|"; }
.hero-actions { gap: 12px; margin-top: 32px; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--purple-700), var(--purple-600)); box-shadow: 0 7px 18px rgba(86, 15, 158, 0.2); }
.button-danger { border-color: #d94141; color: #fff; background: #d94141; box-shadow: 0 7px 18px rgba(178, 37, 37, .18); }
.button-danger:hover { background: #bd2e2e; }
.button-secondary-on-dark { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.08); }
.button-quiet { border-color: var(--line); color: var(--purple-700); background: var(--surface); }

.hero-visual { text-align: center; }
.hero-visual p { margin: 22px 0 0; color: rgba(255,255,255,.7); letter-spacing: 2px; font-size: 12px; }

.orbital-logo {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 62%);
}

.orbital-number { position: absolute; inset: 0; display: grid; place-items: center; font: 800 136px/1 Arial, sans-serif; text-shadow: 0 10px 30px rgba(20,0,55,.28); }
.orbit { position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; transform: rotate(-24deg) scaleY(.55); }
.orbit-two { inset: 38px 4px; border-color: rgba(36,226,232,.7); transform: rotate(42deg) scaleY(.58); }
.orbit-dot { position: absolute; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--cyan-500); box-shadow: 0 0 22px rgba(40,239,245,.9); }
.dot-one { top: 58px; right: 24px; }
.dot-two { bottom: 50px; left: 22px; background: var(--gold); }

.hero-molecule { position: absolute; z-index: 1; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.molecule-one { top: -80px; left: -55px; box-shadow: 64px 62px 0 -58px #62dfe9, 134px 28px 0 -60px #fff, 168px 98px 0 -61px #eec5ff; }
.molecule-two { right: -40px; bottom: -90px; box-shadow: -64px -62px 0 -58px #62dfe9, -134px -28px 0 -60px #fff, -168px -98px 0 -61px #eec5ff; }

/* 快捷入口：醒目的主题色按钮，排在倒计时下方；颜色跟随网站主题 */
.quick-strip { position: relative; z-index: 4; margin-top: 32px; }
.quick-grid { display: grid; grid-template-columns: repeat(var(--quick-columns, 5), minmax(0, 1fr)); gap: 18px; }
.quick-grid > * { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 3px 16px; min-height: 112px; overflow: hidden; padding: 22px 46px 22px 24px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--purple-900), var(--purple-700)); box-shadow: 0 14px 30px rgba(32, 16, 54, .16); text-align: left; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.quick-grid > *::before { position: absolute; z-index: -1; top: -46px; right: -38px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.1); content: ""; }
.quick-icon { display: grid; grid-row: 1 / span 2; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; background: rgba(255,255,255,.16); font-size: 20px; font-weight: 800; transition: background-color 180ms ease; }
.quick-icon svg { width: 26px; height: 26px; }
.quick-grid strong { font-size: 18px; line-height: 1.35; }
.quick-grid small { color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.5; }
.quick-grid > a::after { position: absolute; top: 50%; right: 22px; width: 9px; height: 9px; margin-top: -5px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; content: ""; opacity: .7; transform: rotate(45deg); transition: 180ms ease; }
.quick-grid > a:hover,
.quick-grid > a:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(32, 16, 54, .24); }
.quick-grid > a:hover .quick-icon,
.quick-grid > a:focus-visible .quick-icon { background: rgba(255,255,255,.26); }
.quick-grid > a:hover::after,
.quick-grid > a:focus-visible::after { opacity: 1; transform: translateX(4px) rotate(45deg); }
/* 没设链接的快捷入口只展示，不可点击 */
.quick-grid > .quick-link-static { cursor: default; }

.home-content { padding: 56px 0 100px; }
.section-kicker { margin-bottom: 3px; color: var(--purple-600); }
.welcome-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); gap: 70px; align-items: start; }
.welcome-section h2,
.section-heading h2,
.panel-heading h2,
.form-heading h2 { margin: 0; font-size: 28px; line-height: 1.3; }
.welcome-section p { color: var(--muted); }
.inline-link { display: inline-block; margin-top: 8px; color: var(--purple-700); text-decoration: none; font-weight: 700; }

.notice-panel,
.submission-form,
.task-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(48, 31, 66, .06);
}

.notice-panel { padding: 25px 26px; }
.compact-heading { justify-content: space-between; }
.compact-heading h2 { font-size: 22px; }
.notice-list { margin: 18px 0 0; padding: 0; list-style: none; }
.notice-list li { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
.notice-list time { color: var(--purple-600); font-size: 13px; font-weight: 700; }
.notice-list button { border: 0; padding: 0; overflow: hidden; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }

/* 首页各栏目按后台顺序排列：可见栏目之间统一留白，隐藏的不占位 */
.home-content > :not([hidden]) ~ :not([hidden]) { margin-top: 88px; }
.welcome-section.is-single { grid-template-columns: 1fr; }
.welcome-section.is-notices-first { grid-template-columns: minmax(330px, .7fr) minmax(0, 1.3fr); }
.section-heading { justify-content: space-between; margin-bottom: 28px; }
.date-grid { display: grid; grid-template-columns: repeat(var(--date-columns, 4), 1fr); gap: 16px; }
.date-grid article { display: flex; min-height: 165px; gap: 17px; padding: 24px 20px; border-top: 3px solid var(--purple-600); background: var(--surface); box-shadow: 0 8px 24px rgba(48,31,66,.05); }
.date-grid article > span { color: var(--purple-100); font: 800 39px/1 Arial, sans-serif; }
.date-grid time { color: var(--purple-600); font-size: 13px; font-weight: 700; }
.date-grid h3 { margin: 5px 0; font-size: 17px; }
.date-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.speaker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.speaker-card { display: flex; flex-direction: column; align-items: flex-start; padding: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; transition: 160ms ease; }
.speaker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.speaker-card strong,
.speaker-card small { margin-inline: 20px; }
.speaker-card strong { margin-top: 16px; font-size: 17px; }
.speaker-card small { color: var(--muted); }
.portrait { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7742af, #2d0d5a); font-weight: 800; }
.speaker-card .portrait { width: 100%; height: 185px; font-size: 54px; }
.portrait-blue { background: linear-gradient(145deg, #2772aa, #163966); }
.portrait-cyan { background: linear-gradient(145deg, #13a9aa, #086064); }
.portrait-gold { background: linear-gradient(145deg, #d39335, #744917); }

/* 头部banner：后台上传图片后整块换成图片，默认主视觉的文字、按钮、装饰都不显示 */
.hero-banner { position: relative; z-index: 3; }
.hero-banner img { display: block; width: 100%; height: auto; }
.hero-banner-link { display: block; }
.hero.has-banner-image { min-height: 0; background: var(--purple-950); }
.hero.has-banner-image::after,
.hero.has-banner-image .hero-molecule,
.hero.has-banner-image .hero-inner { display: none; }

/* 倒计时：头部banner下方一条白色细横条，一行显示「提示文字 · 数字 · 开幕时间」，不抢快捷入口的风头 */
.countdown-section { border-bottom: 1px solid var(--line); background: var(--surface); }
.countdown-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; min-height: 64px; padding: 12px 0; color: var(--ink); }
.countdown-copy { display: contents; }
.countdown-copy .section-kicker { display: none; }
.countdown-copy strong { order: 1; font-size: 15px; font-weight: 700; }
.countdown-units { order: 2; display: flex; align-items: baseline; gap: 12px; }
.countdown-copy small { order: 3; padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.countdown-unit { display: inline-flex; align-items: baseline; gap: 4px; }
.countdown-unit b { color: var(--purple-700); font: 800 24px/1 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.countdown-unit small { color: var(--muted); font-size: 13px; }
.countdown-card.is-finished strong { font-size: 16px; }

.home-carousel { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--purple-950); box-shadow: var(--shadow); }
.carousel-track { position: relative; aspect-ratio: 1200 / 450; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s ease; }
.carousel-slide.is-active { opacity: 1; visibility: visible; }
.carousel-slide a { display: block; height: 100%; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 40px 28px 38px; color: #fff; background: linear-gradient(transparent, rgba(12,4,24,.72)); font-size: 20px; font-weight: 700; }
.carousel-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.35); font-size: 26px; line-height: 1; cursor: pointer; }
.carousel-arrow:hover { background: rgba(0,0,0,.55); }
.carousel-arrow.is-prev { left: 14px; }
.carousel-arrow.is-next { right: 14px; }
.carousel-dots { position: absolute; right: 0; bottom: 14px; left: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease; }
.carousel-dots button.is-active { width: 26px; border-radius: 5px; background: #fff; }

/* 照片回顾：超过 3 张时横向循环滚动，鼠标停上去暂停 */
.photo-strip { overflow: hidden; }
.photo-track { display: flex; width: max-content; }
.photo-track figure { flex: 0 0 auto; width: 280px; margin: 0 16px 0 0; }
.photo-track img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.photo-track figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.photo-track.is-scrolling { animation: photo-scroll calc(var(--photo-count, 6) * 5s) linear infinite; }
.photo-strip:hover .photo-track.is-scrolling { animation-play-state: paused; }
@keyframes photo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .photo-strip { overflow-x: auto; }
  .photo-track.is-scrolling { animation: none; }
}

/* 网站浮窗：悬浮在首页右下角（或左下角），可关闭 */
.floating-panel { position: fixed; right: 14px; bottom: 90px; z-index: 60; width: 150px; padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.floating-panel.is-left { right: auto; left: 14px; }
.floating-panel strong { display: block; margin: 0 16px 8px; color: var(--purple-800); font-size: 14px; }
.floating-panel img { display: block; width: 100%; border-radius: 6px; }
.floating-panel p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.floating-panel-link { display: block; color: inherit; text-decoration: none; }
.floating-panel-close { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 16px; line-height: 1; cursor: pointer; }

.notice-modal { position: relative; width: min(100%, 640px); max-height: min(80vh, 720px); overflow: auto; padding: 34px; border-radius: 16px; background: var(--surface); box-shadow: 0 30px 80px rgba(15,5,29,.35); }
.notice-modal h2 { margin: 6px 0 14px; font-size: 24px; line-height: 1.4; }
.notice-modal-body p { margin: 0 0 12px; line-height: 1.8; }

.speaker-card .portrait-photo { overflow: hidden; background: var(--surface-soft); }
.speaker-card .portrait-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 导航二级菜单：电脑上悬停或点 ▾ 展开 */
.nav-dropdown { position: relative; display: flex; align-items: stretch; }
.nav-links .nav-dropdown > a { padding-right: 6px; }
.nav-dropdown-toggle { align-self: center; width: 22px; height: 28px; margin-left: -4px; padding: 0; border: 0; color: #4f485b; background: transparent; cursor: pointer; }
.nav-dropdown-toggle::before { display: block; width: 6px; height: 6px; margin: -3px auto 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg); }
.nav-dropdown.open .nav-dropdown-toggle::before { margin-top: 3px; transform: rotate(-135deg); }
.nav-submenu { position: absolute; top: 100%; left: 0; z-index: 80; display: none; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu { display: grid; }
.nav-links .nav-submenu a { display: block; min-width: 0; padding: 10px 14px; border-radius: 7px; white-space: nowrap; }
.nav-links .nav-submenu a::after { display: none; }
.nav-links .nav-submenu a:hover,
.nav-links .nav-submenu a.active { color: var(--purple-800); background: var(--surface-soft); }
.nav-links .nav-dropdown.has-active > a { color: var(--purple-800); }
.nav-links .nav-dropdown.has-active > a::after { opacity: 1; transform: scaleX(1); }

.page-banner { color: #fff; background: linear-gradient(120deg, var(--purple-950), var(--purple-700)); }
.page-banner-cyan { background: linear-gradient(120deg, #064a5c, var(--cyan-700)); }
.page-banner-slate { background: linear-gradient(120deg, #242135, #504566); }
.page-banner .shell { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.page-banner .eyebrow { color: #a7edf1; }
.page-banner h1 { margin: 5px 0 0; font-size: 42px; line-height: 1.2; }
.page-banner p { margin: 8px 0 0; color: rgba(255,255,255,.72); }
.page-content { padding: 26px 0 90px; }
.narrow-content { max-width: 1000px; }
.breadcrumb { display: flex; gap: 9px; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--purple-700); text-decoration: none; }

.program-toolbar { justify-content: space-between; gap: 25px; }
.program-search { flex: 1 1 600px; }
.program-search label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.program-search > div { display: flex; }
.program-search input { width: 100%; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px 0 0 8px; background: var(--surface); outline: none; }
.program-search input:focus { border-color: var(--purple-600); box-shadow: 0 0 0 3px var(--purple-100); }
.program-search .button { border-radius: 0 8px 8px 0; }
.toolbar-actions { gap: 10px; padding-top: 28px; }

/* The 重置筛选 button lives in the top-right corner, so the grid reserves that
   corner on its right side. The reservation is derived from the button's own
   inset + width + gap instead of a magic number, otherwise the button paints
   over the last filter column (会场 in 3 columns, 日期 in 2 columns). */
.program-filters { position: relative; --reset-filter-width: 72px; display: grid; margin-top: 24px; padding: 20px; padding-right: calc(18px + var(--reset-filter-width) + 12px); grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.filter-row { min-width: 0; gap: 10px; }
.filter-row > strong,
.filter-row > label { flex: 0 0 auto; font-size: 13px; font-weight: 700; }
.filter-buttons { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-buttons button { min-width: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; }
.filter-buttons button.active { border-color: var(--purple-700); color: #fff; background: var(--purple-700); }
.filter-row select { width: 100%; min-height: 38px; padding: 7px 33px 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.reset-filter { position: absolute; top: 27px; right: 18px; min-width: var(--reset-filter-width); text-align: right; white-space: nowrap; }
.program-summary { gap: 8px; margin: 26px 0 12px; color: var(--muted); font-size: 13px; }
.program-summary strong { color: var(--purple-700); font-size: 22px; }
.filter-summary::before { margin-right: 8px; content: "·"; }
.source-badge { margin-left: auto; padding: 3px 9px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-weight: 700; }

.program-day { margin-top: 26px; }
/* 2026-10-09「这一块，需要和日期一样浮动一直显示在最上方」：电脑上搜索栏、筛选栏、条数一起钉在顶部，
   日期条钉在它下面（--program-sticky-height 由 app.js 量出来）；手机上这一块太高，不钉 */
.program-sticky { position: sticky; z-index: 5; top: 0; margin: 0 -12px; padding: 12px 12px 0; background: var(--surface-soft); }
.program-sticky .program-summary { margin-bottom: 0; padding-bottom: 12px; }
.program-day { scroll-margin-top: calc(var(--program-sticky-height, 0px) + 8px); }
.program-day-heading { position: sticky; z-index: 4; top: var(--program-sticky-height, 0px); display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; color: #fff; background: linear-gradient(90deg, var(--purple-900), var(--purple-700)); }
.program-day-heading h2 { margin: 0; font-size: 20px; }
.program-day-heading span { color: rgba(255,255,255,.7); font-size: 13px; }
.session-block { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 20px rgba(50,30,70,.05); }
.session-head { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); background: #f3edf9; }
.session-time { display: flex; align-items: center; gap: 12px; padding: 19px 20px; color: var(--purple-900); }
.session-time strong { font-size: 19px; }
.session-time span { padding: 4px 9px; border-radius: 99px; background: rgba(99,23,182,.1); font-size: 12px; }
.session-meta { padding: 16px 20px; border-left: 1px solid #ddd2e8; }
.session-meta h3 { margin: 0 0 5px; font-size: 22px; }
.session-meta p { margin: 0; color: var(--muted); font-size: 16px; }
.session-room { color: var(--ink); font-size: 18px; font-weight: 800; }
.session-meta button { color: var(--purple-700); }
.session-chair-button { display: inline; margin: 0; padding: 0; border: 0; background: transparent; font: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; cursor: pointer; }
.session-chair-button:hover,
.session-chair-button:focus-visible { text-decoration-color: currentColor; }
/* 主持、点评行里的姓名按钮沿用整行的紫色（2026-10-08 主持姓名改成可点开嘉宾卡片） */
.program-host-row .session-chair-button,
.program-comment-row .session-chair-button { color: inherit; font-weight: inherit; }
/* 日程显示配置关闭嘉宾弹窗时，姓名仅作文字展示（提高优先级覆盖 .talk-speaker 的 pointer） */
.session-chair-static { color: var(--purple-700); text-decoration: none; cursor: default; }
.talk-speaker.talk-speaker-static { cursor: default; }
.talk-list { display: grid; }
.talk-list-head,
.talk-row { display: grid; grid-template-columns: 110px 90px minmax(340px, 1.7fr) minmax(90px, .3fr) minmax(180px, .75fr); gap: 17px; }
.talk-list-head { align-items: center; padding: 10px 20px; color: var(--muted); background: var(--surface-soft); border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.talk-row { align-items: center; min-height: 58px; padding: 10px 20px; border-top: 1px solid var(--line); line-height: 1.55; }
/* 电脑端：分会卡片下半部分（主持行、表头、报告行）比上面的时间 / 分会名称 / 会场小 2px（2026-10-08）；手机端见 820px 断点 */
.talk-row > * { font-size: 14px; }
.program-host-row,
.program-comment-row { display: flex; align-items: center; min-height: 0; gap: 8px; padding-block: 10px; color: var(--purple-700); background: #f1edff; }
.program-host-row span,
.program-comment-row span { font-weight: 600; }
.talk-time { color: var(--ink); font-weight: 400; }
.talk-speech-type { color: var(--ink); font-size: 14px; }
.talk-title { font-weight: 400; }
.talk-speaker { border: 0; padding: 0; color: var(--ink); background: none; font: inherit; text-align: left; cursor: pointer; }
.talk-affiliation { color: var(--ink); font-size: inherit; }
/* 多讲者：姓名与单位各自逐行连续显示 */
.talk-speaker-cell, .talk-affiliation-cell { display: grid; gap: 4px; align-content: center; min-width: 0; }
.talk-speaker-cell .talk-speaker, .talk-affiliation-cell .talk-affiliation { overflow-wrap: anywhere; }
.program-task-table { margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 20px rgba(50,30,70,.05); }
.program-task-row { display: grid; grid-template-columns: 74px 96px 66px minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, .6fr) minmax(0, .9fr); gap: 12px; align-items: center; min-height: 68px; padding: 12px 16px; border-top: 1px solid var(--line); }
.program-task-head { min-height: 44px; border-top: 0; color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 700; }
/* 2026-10-09「搜索出来的任务，字体有点大，也改成14px」 */
.program-task-row:not(.program-task-head) > * { font-size: 14px; }
.program-task-row time { color: var(--purple-700); font-weight: 400; }
.program-task-row > span:nth-child(3) { color: var(--purple-700); font-weight: 700; }
.program-task-row strong { font-weight: 400; }
/* 2026-10-09「搜索出来的任务，没显示完，产生了滚动条」：列按比例分宽度，放不下就换行，不再横向滚动 */
.program-task-row > * { min-width: 0; overflow-wrap: anywhere; }
/* 2026-10-09 搜索结果加“嘉宾”列；能编辑的多一列“编辑” */
.program-task-table.is-editable .program-task-row { grid-template-columns: 74px 96px 66px minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, .6fr) minmax(0, .9fr) 64px; }
.program-task-row .program-task-names { color: var(--purple-700); font-weight: 700; }
.program-task-names .session-chair-button { color: inherit; font-weight: inherit; text-align: left; }
.program-task-actions .button { min-height: 34px; padding: 4px 14px; font-size: 14px; }
.program-task-editor { width: min(100%, 720px); }
.program-task-editor h2 { margin: 2px 0 6px; }
.program-task-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 12px 0; }
.program-task-editor-wide { grid-column: 1 / -1; }
.program-task-editor-grid small { color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .program-task-editor-grid { grid-template-columns: 1fr; } }
.break-row { background: #fbfafc; }
.break-row .talk-title { color: var(--muted); }
.program-list.compact .talk-affiliation-cell { display: none; }
.program-list.compact .talk-list-head,
.program-list.compact .talk-row { grid-template-columns: 100px 80px minmax(240px, 1.4fr) minmax(160px, .6fr); }
.program-list.compact .talk-list-head span:last-child { display: none; }
.program-list.compact .talk-row { min-height: 48px; padding-block: 7px; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state span { font-size: 22px; font-weight: 700; }
.empty-state p { color: var(--muted); }

.stepper { display: grid; max-width: 720px; margin: 0 auto 28px; padding: 0; grid-template-columns: repeat(3, 1fr); list-style: none; }
.stepper li { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.stepper li::before { position: absolute; z-index: -1; top: 17px; right: 50%; left: -50%; height: 2px; background: var(--line); content: ""; }
.stepper li:first-child::before { display: none; }
.stepper li span { display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--surface-soft); font-weight: 700; }
.stepper li.active { color: var(--purple-700); }
.stepper li.active span { border-color: var(--purple-700); color: #fff; background: var(--purple-700); }
.stepper li.active::before { background: var(--purple-600); }
.submission-form { padding: 30px; }
.form-heading { justify-content: space-between; margin-bottom: 25px; }
.draft-status { color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
/* 同一行里旁边字段多了提示文字时，输入框仍顶部对齐，不被拉伸 */
.field { display: grid; gap: 7px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 700; }
.field em { color: var(--danger); font-style: normal; }
.field input,
.field select,
.field textarea,
.author-table input,
.author-table select { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); outline: none; }
.field input,
.field select { min-height: 44px; padding: 8px 12px; }
.field textarea { padding: 11px 12px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--purple-600); box-shadow: 0 0 0 3px var(--purple-100); }
.field small { color: var(--muted); text-align: right; }
.field-hint,
.field .field-hint { color: var(--muted); font-size: 12px; line-height: 1.55; text-align: left; font-weight: 400; }
.form-actions { justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-actions > div { gap: 10px; }
.attachment-state { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px dashed #c9bdd8; border-radius: 8px; color: var(--muted); background: var(--surface-soft); font-size: 13px; }
.attachment-state > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 摘要正文编辑器：加粗、斜体、特殊字符、下标、上标 */
.abstract-editor { position: relative; gap: 0; }
.abstract-editor > span { margin-bottom: 7px; }
.abstract-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--surface-soft); }
.abstract-toolbar button { display: inline-block; min-width: 34px; height: 30px; padding: 0 6px; border: 1px solid transparent; border-radius: 5px; color: var(--ink); background: transparent; font: 600 15px/28px Georgia, "Times New Roman", serif; text-align: center; cursor: pointer; }
.abstract-toolbar sub,
.abstract-toolbar sup { line-height: 0; }
.abstract-toolbar button:hover { border-color: var(--line); background: var(--surface); }
.abstract-toolbar button.is-active,
.abstract-toolbar button[aria-expanded="true"] { border-color: var(--purple-600); color: var(--purple-700); background: var(--purple-100); }
.abstract-editable { position: relative; min-height: 230px; max-height: 520px; overflow-y: auto; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0 0 7px 7px; background: var(--surface); line-height: 1.75; outline: none; overflow-wrap: anywhere; }
.abstract-editable:focus { border-color: var(--purple-600); box-shadow: 0 0 0 3px var(--purple-100); }
.abstract-editable.is-invalid { border-color: var(--danger); }
.abstract-editable.is-empty::before { position: absolute; top: 11px; left: 12px; color: #a39cae; content: attr(data-placeholder); pointer-events: none; }
.field .abstract-counter { margin-top: 6px; }
.abstract-counter.is-over { color: var(--danger); font-weight: 700; }
/* 特殊字符在工具栏和正文之间展开，不遮住正文，插入的字符马上看得到 */
.abstract-symbols { padding: 10px 12px 12px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); }
.abstract-symbols-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.abstract-symbols-head button { width: 26px; height: 26px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); font-size: 17px; line-height: 1; cursor: pointer; }
.abstract-symbols-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.abstract-symbols-tabs button { padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); font-size: 12.5px; cursor: pointer; }
.abstract-symbols-tabs button.is-active { border-color: var(--purple-700); color: #fff; background: var(--purple-700); }
.abstract-symbols-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 3px; max-height: 232px; overflow-y: auto; }
.abstract-symbols-grid button { height: 32px; border: 1px solid transparent; border-radius: 5px; background: var(--surface-soft); font-size: 15px; cursor: pointer; }
.abstract-symbols-grid button:hover { border-color: var(--purple-600); color: var(--purple-700); background: var(--surface); }
/* 摘要正文的显示：有格式的按 <br> 换行，纯文本按原样换行 */
.abstract-body-text { line-height: 1.75; overflow-wrap: anywhere; }
.abstract-body-text.is-plain { white-space: pre-wrap; }
/* 投稿截止：投稿页和个人中心的提示；截止后投稿表单锁定 */
.submission-window { margin: 0 0 18px; padding: 11px 14px; border: 1px solid #cfe0f4; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 14px; }
.submission-window.is-closed { border-color: #f0d2a4; color: var(--orange); background: var(--orange-soft); font-weight: 600; }
.submission-window a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.abstract-editable.is-disabled { color: var(--muted); background: var(--surface-soft); cursor: not-allowed; }
.profile-abstract-deadline { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.profile-abstract-deadline.is-closed { color: var(--orange); font-weight: 600; }
/* 后台投稿配置：截止时间与投稿类型 */
.submission-deadline-field { max-width: 320px; }
.submission-type-fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.submission-type-fieldset legend { margin-bottom: 9px; padding: 0; font-size: 13px; font-weight: 700; }
.submission-type-fieldset legend small { margin-left: 6px; color: var(--muted); font-weight: 400; }
.submission-type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* 导出稿件：按专题导出 / 全部导出，和投稿类型一样的可选卡片 */
.abstract-export-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.submission-type-options label,
.abstract-export-modes label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); cursor: pointer; }
.submission-type-options label:has(input:checked),
.abstract-export-modes label:has(input:checked) { border-color: var(--purple-600); background: #f5effc; }
.submission-type-options input,
.abstract-export-modes input { margin-top: 3px; accent-color: var(--purple-700); }
.submission-type-options span,
.abstract-export-modes span { display: grid; gap: 3px; }
.submission-type-options small,
.abstract-export-modes small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) {
  .submission-deadline-field { max-width: none; }
  .submission-type-options,
  .abstract-export-modes { grid-template-columns: 1fr; }
}
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.author-table-wrap { overflow-x: auto; }
.author-table { min-width: 880px; }
.author-table [data-remove-author] { white-space: nowrap; }
.author-table input,
.author-table select { padding: 7px 8px; }
.danger-link { color: var(--danger); }
.form-note { color: var(--muted); font-size: 13px; }
.review-box { display: grid; gap: 13px; margin-bottom: 22px; padding: 22px; border-left: 4px solid var(--purple-600); background: var(--surface-soft); }
.review-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.review-row span { color: var(--muted); }
.review-row strong { overflow-wrap: anywhere; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 6px; }

.profile-header { gap: 19px; margin-bottom: 25px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.profile-header > div { min-width: 0; flex: 1; }
.profile-header h2 { margin: 0; }
.profile-header p { margin: 2px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.stat-grid,
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-grid article,
.admin-stat-grid article { display: grid; padding: 21px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.stat-grid article > span,
.admin-stat-grid article > span { color: var(--muted); font-size: 13px; }
.stat-grid strong,
.admin-stat-grid strong { margin: 5px 0 2px; color: var(--purple-900); font-size: 31px; }
.stat-grid small,
.admin-stat-grid small { color: var(--muted); }
.status-text { font-size: 22px !important; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 28px; }
.dashboard-main { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dashboard-invitation-panel { margin-bottom: 24px; padding: 18px 20px; border: 1px solid #d9c9ee; border-left: 4px solid var(--purple-600); border-radius: 10px; background: #faf7fe; }
.dashboard-invitation-panel > .panel-heading { margin: 0; }
.invitation-respond-table td { vertical-align: middle; }
.invitation-title-input { width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff; }
.invitation-task-modal { width: min(100%, 780px); }
.invitation-prompt-modal { width: min(100%, 760px); }
.panel-heading { justify-content: space-between; margin-bottom: 19px; }
.panel-heading h2 { font-size: 21px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 11px 10px; color: var(--muted); background: var(--surface-soft); text-align: left; white-space: nowrap; }
.data-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.guest-directory-table td { vertical-align: top; }
.guest-directory-table th:last-child,
.guest-directory-table td:last-child { width: 1%; white-space: nowrap; }
.registered-user-table th:last-child,
.registered-user-table td:last-child { width: 1%; white-space: nowrap; }
.guest-directory-table .danger-action { margin-left: 5px; padding: 7px 10px; border: 0; border-radius: 4px; color: #fff; background: #f04c35; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.guest-directory-table .danger-action:hover { background: #cf3825; }
.guest-source-chip { display: inline-block; margin: 5px 0 0 6px; padding: 2px 7px; border-radius: 999px; color: #075aa8; background: #e8f3ff; font-size: 11px; font-weight: 700; }
.guest-itinerary-table-wrap { max-height: 64vh; }
.guest-itinerary-table { width: max-content; min-width: 7600px; }
/* 分会嘉宾行程页按“显示字段”只显示勾选的列（2026-10-09）：不再按全部字段撑到 7600px，列少时铺满、列多时横向滚动 */
.guest-itinerary-table.guest-itinerary-table-session { min-width: 100%; }
.guest-itinerary-table th, .guest-itinerary-table td { max-width: 220px; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
/* The profile body column holds long text, so give it extra room. */
.guest-itinerary-table th[data-field-key="profile_body"],
.guest-itinerary-table td[data-field-key="profile_body"] { min-width: 200px; max-width: 200px; }
/* Session itinerary page: narrower profile column (3/4 of the master grid). */
.guest-itinerary-table-session th[data-field-key="profile_body"],
.guest-itinerary-table-session td[data-field-key="profile_body"] { width: 280px; min-width: 280px; max-width: 280px; }
.guest-itinerary-table td[data-field-key="profile_body"] { position: relative; }
/* Normal flow + line clamp: clipped lines stay fully visible instead of being cut mid-line. */
.guest-itinerary-profile-body-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.guest-itinerary-table th { position: sticky; top: 0; z-index: 1; }
.guest-itinerary-table .guest-itinerary-group-header th { z-index: 4; height: 42px; box-sizing: border-box; color: var(--purple-700); background: #eee8f5; text-align: center; }
.guest-itinerary-table thead tr:nth-child(2) th { top: 42px; z-index: 3; }
.guest-itinerary-table .guest-itinerary-group-header th[rowspan] { z-index: 5; }
.guest-itinerary-table .guest-itinerary-frozen-name { position: sticky; left: 0; z-index: 6; min-width: 145px; background: var(--surface-soft); box-shadow: 5px 0 8px -7px rgba(31, 23, 54, .55); vertical-align: middle !important; text-align: center; }
.guest-itinerary-table tbody .guest-itinerary-frozen-name { background: #fff; z-index: 3; }
.guest-itinerary-table tbody .guest-itinerary-duplicate-name { background: #fff1a8; }
.guest-itinerary-table .guest-itinerary-frozen-action { position: sticky; right: 0; z-index: 6; min-width: 74px; background: var(--surface-soft); box-shadow: -5px 0 8px -7px rgba(31, 23, 54, .45); vertical-align: middle !important; text-align: center; }
.guest-itinerary-table tbody .guest-itinerary-frozen-action { background: #fff; z-index: 3; }
.guest-itinerary-table td[data-itinerary-inline-edit] { cursor: cell; }
.guest-itinerary-table td[data-itinerary-inline-edit]:hover { background: #d3ebf2; }
.guest-itinerary-table td.guest-itinerary-inline-editing { padding: 5px 7px; background: #f5fbfc; }
.guest-itinerary-inline-control,
.guest-itinerary-inline-time select { width: 100%; min-height: 34px; box-sizing: border-box; border: 1px solid var(--cyan-500); border-radius: 6px; padding: 5px 7px; color: var(--ink); background: #fff; font: inherit; }
.guest-itinerary-profile-body-editor { min-height: 120px; white-space: pre-wrap; line-height: 1.45; resize: vertical; }
.guest-itinerary-inline-time { display: grid; grid-template-columns: minmax(48px, 1fr) 10px minmax(48px, 1fr); align-items: center; gap: 3px; }
.guest-itinerary-inline-time i { font-style: normal; text-align: center; }
.guest-itinerary-upload-button { max-width: 100%; min-height: 32px; overflow: hidden; border: 1px solid var(--cyan-500); border-radius: 6px; padding: 5px 8px; color: var(--cyan-700); background: #fff; font: inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.guest-itinerary-inline-saving { opacity: .58; pointer-events: none; }
.guest-itinerary-table td[data-itinerary-inline-asset-cell] { min-width: 176px; padding: 5px 7px; }
.guest-itinerary-asset-card { display: grid; min-width: 160px; gap: 5px; padding: 4px; border: 1px solid transparent; border-radius: 7px; outline: 0; }
.guest-itinerary-asset-card:hover, .guest-itinerary-asset-card:focus, .guest-itinerary-asset-card:focus-within { border-color: var(--cyan-400); background: #d3ebf2; box-shadow: 0 0 0 2px rgba(12, 156, 183, .14); }
.guest-itinerary-asset-empty { min-height: 32px; place-items: center; color: var(--muted); cursor: cell; }
.guest-itinerary-asset-empty small { font-size: 11px; }
.guest-itinerary-asset-main { display: grid; min-width: 0; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 7px; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.guest-itinerary-asset-main img { width: 38px; height: 38px; object-fit: cover; border-radius: 5px; background: var(--surface-soft); }
.guest-itinerary-asset-main > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-itinerary-asset-file-type { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 5px; color: var(--cyan-700); background: #e9f8fa; font-size: 10px; font-weight: 800; }
.guest-itinerary-asset-actions { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.guest-itinerary-asset-card:hover .guest-itinerary-asset-actions, .guest-itinerary-asset-card:focus .guest-itinerary-asset-actions, .guest-itinerary-asset-card:focus-within .guest-itinerary-asset-actions { display: grid; }
.guest-itinerary-asset-actions button, .guest-itinerary-asset-actions a { min-width: 0; border: 0; border-radius: 4px; padding: 4px 2px; color: var(--cyan-700); background: #e9f8fa; font: inherit; font-size: 11px; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; }
.guest-itinerary-asset-actions .asset-delete { color: #b42318; background: #fff1f0; }
.guest-itinerary-asset-upload { display: flex; align-items: center; gap: 6px; }
.guest-itinerary-asset-cancel { border: 0; padding: 4px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.guest-itinerary-asset-preview-modal { width: min(100%, 1100px); }
.guest-itinerary-asset-preview-image { display: block; max-width: 100%; max-height: calc(100vh - 185px); margin: auto; border-radius: 8px; object-fit: contain; }
.guest-itinerary-asset-preview-pdf { display: block; width: 100%; height: min(72vh, 760px); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.guest-itinerary-asset-preview-unavailable { display: grid; justify-items: center; gap: 14px; min-height: 260px; padding: 36px; text-align: center; background: var(--surface-soft); }
.guest-itinerary-asset-preview-unavailable > span { display: grid; width: 74px; height: 74px; place-items: center; border-radius: 10px; color: var(--cyan-700); background: #dff4f7; font-size: 16px; font-weight: 800; }
.guest-itinerary-asset-preview-unavailable p { margin: 0; color: var(--muted); }
.guest-itinerary-asset-preview-unavailable div { display: flex; gap: 8px; }
.guest-itinerary-table thead .guest-itinerary-group-header th { border: 1px solid #d4c9e2; }
.guest-itinerary-table thead tr:nth-child(2) th { border-top: 1px solid #d4c9e2; border-bottom: 1px solid #d4c9e2; }
.guest-itinerary-table thead .guest-itinerary-group-start { border-left: 1px solid #d4c9e2; }
.guest-itinerary-table thead .guest-itinerary-group-end { border-right: 1px solid #d4c9e2; }
.guest-itinerary-table th:first-child,
.guest-itinerary-table td:first-child { position: sticky; left: 0; box-shadow: 5px 0 8px -7px rgba(31, 23, 54, .55); }
.guest-itinerary-table td:first-child { background: #fff; z-index: 2; }
.guest-itinerary-table th:first-child { background: var(--surface-soft); z-index: 3; }
.guest-itinerary-table tbody tr:nth-child(even) > td { background: #faf8fd; }
.guest-itinerary-table tbody tr:hover > td:not(.guest-itinerary-inline-editing) { background: #eef9fb; }
.guest-itinerary-table tbody tr:hover > td[data-itinerary-inline-edit]:hover { background: #d3ebf2; }
.guest-itinerary-table tbody td { border: 1px dashed #d8d0e3; }
.guest-itinerary-editor-modal { width: min(100%, 1180px); }
.guest-itinerary-group { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.guest-itinerary-group-title { margin: 0; color: var(--purple-700); font-size: 16px; }
.guest-itinerary-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.guest-itinerary-fields .field input[readonly] { color: var(--muted); background: var(--surface-soft); }
.status { display: inline-block; padding: 3px 9px; border-radius: 99px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.status-success { color: var(--green); background: var(--green-soft); }
.status-warning { color: var(--orange); background: var(--orange-soft); }
.status-info { color: var(--blue); background: var(--blue-soft); }
.task-panel { padding: 25px; }
.task-item { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.task-item:first-of-type { border-top: 0; }
.task-item input { margin-top: 5px; accent-color: var(--purple-700); }
.task-item span { display: grid; }
.task-item small { color: var(--muted); }
.task-item.done strong { color: var(--muted); text-decoration: line-through; }

.page-admin { min-height: 850px; background: #f5f4f8; }
.admin-shell { display: grid; min-height: 850px; grid-template-columns: 230px minmax(0, 1fr); }
.admin-sidebar { position: relative; display: flex; flex-direction: column; padding: 24px 15px; color: #fff; background: #21163a; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 24px; }
.admin-brand .brand-mark { width: 28px; height: 28px; }
.admin-brand .brand-mark span { border-color: #fff; }
.admin-brand .brand-mark span:nth-child(2) { border-color: var(--cyan-500); }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav button { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 0; border-radius: 7px; color: rgba(255,255,255,.72); background: transparent; text-align: left; cursor: pointer; }
.admin-sidebar nav button span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; font-size: 11px; }
.admin-sidebar nav button:hover,
.admin-sidebar nav button.active { color: #fff; background: rgba(255,255,255,.11); }
.back-to-site { margin-top: auto; padding: 12px; color: rgba(255,255,255,.72); text-decoration: none; font-size: 13px; }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 71px; justify-content: space-between; padding: 10px 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-topbar > div:first-child { display: grid; align-items: start; }
.admin-topbar > div:first-child span { color: var(--muted); font-size: 11px; }
.admin-topbar > div:last-child { gap: 12px; }
.admin-account-area { position: relative; display: flex; align-items: center; gap: 12px; }
.admin-account-trigger { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.admin-account-popover { top: calc(100% + 8px); right: 0; }
.admin-content { max-width: 1340px; margin: 0 auto; padding: 30px; }
.admin-content:has(.guest-itinerary-header) { max-width: none; }
.admin-welcome { justify-content: space-between; margin-bottom: 25px; }
.admin-welcome h1 { margin: 2px 0 0; font-size: 27px; }
.admin-welcome p { margin: 3px 0 0; color: var(--muted); }
.admin-stat-grid strong { font-size: 28px; }
.trend-up { color: var(--green) !important; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 18px; margin-top: 18px; }
.admin-panel { padding: 23px; }
.workflow-row { display: grid; grid-template-columns: 90px minmax(120px, 1fr) 45px; align-items: center; gap: 13px; padding: 9px 0; }
.workflow-row > div { height: 9px; overflow: hidden; border-radius: 10px; background: var(--purple-100); }
.workflow-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple-700), var(--cyan-500)); }
.workflow-row strong { text-align: right; }
/* 后台工作台：待处理提醒、关键指标、各模块面板 */
.overview-roles { margin-top: 8px !important; }
.overview-roles .role-chip { margin-bottom: 0; }
.overview-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.overview-alert { display: grid; gap: 3px; padding: 13px 15px; border: 1px solid #f0d2a4; border-left: 4px solid var(--orange); border-radius: 10px; color: inherit; background: var(--orange-soft); font: inherit; text-align: left; }
button.overview-alert { cursor: pointer; }
button.overview-alert:hover, button.overview-alert:focus-visible { border-color: var(--orange); }
.overview-alert strong { color: var(--orange); font-size: 15px; }
.overview-alert small { color: var(--muted); }
/* 指标卡片按数量均分，不留孤零零的一张：宽屏一行，中等宽度两行（窄屏沿用每行两张） */
.overview-kpis { grid-template-columns: repeat(var(--kpi-rows-of, 4), minmax(0, 1fr)); }
@media (min-width: 1280px) { .overview-kpis { grid-template-columns: repeat(var(--kpi-count, 4), minmax(0, 1fr)); } }
.overview-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.overview-module { margin: 0; }
.overview-module .workflow-row { grid-template-columns: 84px minmax(100px, 1fr) 52px; }
.workflow-row.is-good i { background: linear-gradient(90deg, var(--green), #3fbf8f); }
.workflow-row.is-warning i { background: linear-gradient(90deg, var(--orange), #e3a44a); }
.workflow-row.is-muted i { background: #c7c1d3; }
.overview-facts { display: grid; gap: 8px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.overview-facts div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.overview-facts dt { color: var(--muted); }
.overview-facts dd { margin: 0; }
.overview-facts small { color: var(--muted); }
.overview-module b.is-warning { color: var(--orange); }
.overview-mini-table { margin-top: 14px; }
.overview-mini-table td small { color: var(--muted); }
.overview-mini-table tr.is-muted td { color: var(--muted); }
.overview-subheading { margin: 16px 0 4px; color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) { .overview-modules { grid-template-columns: 1fr; } }
.warning-panel > button { display: grid; width: 100%; grid-template-columns: 35px minmax(0, 1fr) 20px; align-items: center; gap: 11px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.warning-panel > button span:nth-child(2) { display: grid; }
.warning-panel small { color: var(--muted); }
.warning-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--orange); background: var(--orange-soft); font-weight: 800; }
.recent-panel { margin-top: 18px; }
/* 钱已到支付平台、系统没能确认的付款：提醒会务组核对退款 */
.unmatched-payments-panel { margin-top: 18px; border-left: 4px solid var(--orange); background: var(--orange-soft); }
.unmatched-payments-panel .panel-heading small { color: var(--orange); }
.admin-actions { display: flex; gap: 9px; align-items: center; }
.guest-itinerary-header { justify-content: flex-end; margin-bottom: 16px; }
.guest-itinerary-header .admin-actions { min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.guest-itinerary-header .admin-actions .button { flex: none; height: 32px; min-height: 32px; padding: 0 10px; font-size: 12px; line-height: 1; white-space: nowrap; }
/* 日程编排页头按钮较多（含一键清空日程）：放不下时整颗按钮换行，按钮里的字不折行 */
.program-header > div:first-child { flex: 1 1 280px; min-width: 280px; }
.program-header .admin-actions { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.program-header .admin-actions .button { flex: none; padding-inline: 14px; white-space: nowrap; }
@media (max-width: 900px) { .guest-itinerary-header .admin-actions { justify-content: flex-start; } }
.content-admin-section { margin-top: 18px; }
.content-card-list { display: grid; gap: 14px; }
.content-editor-card { display: grid; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.content-editor-card header,
.content-editor-card footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.content-editor-card h3 { margin: 0; font-size: 17px; }
.content-editor-card header small { color: var(--muted); }
.content-editor-card footer { padding-top: 12px; border-top: 1px solid var(--line); }
.content-toggle-row { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 13px; }
.content-toggle-row label { cursor: pointer; }
.content-toggle-row input { accent-color: var(--purple-700); }
.danger-text { color: var(--danger) !important; }
.featured-people-grid { display: grid; max-height: 430px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; overflow-y: auto; }
.featured-people-grid label { display: flex; gap: 9px; align-items: flex-start; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); cursor: pointer; }
.featured-people-grid label:has(input:checked) { border-color: var(--purple-600); background: #f5effc; }
.featured-people-grid input { margin-top: 4px; accent-color: var(--purple-700); }
.featured-people-grid span { display: grid; min-width: 0; }
.featured-people-grid small { color: var(--muted); overflow-wrap: anywhere; }
.portal-config-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 18px; }
.portal-config-heading h1 { margin: 2px 0 0; font-size: 27px; }
.portal-config-heading p { margin: 4px 0 0; color: var(--muted); }
.portal-config-shell { padding: 0; overflow: hidden; border-radius: 4px; }
.portal-config-tabs { display: flex; min-height: 58px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fafafa; }
.portal-config-tabs button { position: relative; min-width: 145px; padding: 0 24px; border: 0; background: transparent; cursor: pointer; }
.portal-config-tabs button:hover { color: var(--purple-700); background: #f3f6fb; }
.portal-config-tabs button.active { color: var(--purple-700); background: #fff; font-weight: 700; }
.portal-config-tabs button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--purple-600); content: ""; }
.portal-config-body { min-height: 440px; }
.portal-config-subpage { padding: 22px 16px 28px; }
.portal-config-subpage > .panel-heading { margin-bottom: 20px; }
.portal-table-toolbar { display: flex; justify-content: flex-end; min-height: 8px; }
.portal-table-toolbar p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.portal-section-table { width: 100%; min-width: 880px; border-collapse: collapse; color: #4d4a54; font-size: 14px; }
.portal-section-table th,
.portal-section-table td { height: 54px; padding: 10px 14px; border: 1px solid #e6e6e6; text-align: left; }
.portal-section-table th { height: 42px; color: #5e5963; background: #fafafa; font-weight: 500; }
.portal-section-table th:first-child { width: 86px; }
.portal-section-table th:nth-child(2) { width: 29%; }
.portal-section-table th:nth-child(3) { width: 26%; }
.portal-section-table th:nth-child(4) { width: 18%; }
.portal-sort { display: flex; gap: 4px; align-items: center; }
.portal-sort > span { margin-right: 3px; color: #6e7e86; font-size: 21px; line-height: 1; }
.portal-sort button { width: 22px; height: 24px; padding: 0; border: 1px solid #dce2e8; border-radius: 3px; color: #68808e; background: #fff; cursor: pointer; }
.portal-sort button:hover:not(:disabled) { color: #fff; border-color: var(--purple-600); background: var(--purple-600); }
.portal-sort button:disabled { opacity: .3; cursor: default; }
.portal-switch { display: inline-flex; gap: 5px; align-items: center; min-width: 66px; height: 26px; padding: 2px 5px 2px 8px; border: 0; border-radius: 20px; color: #777; background: #e7e7e7; font-size: 12px; cursor: pointer; }
.portal-switch i { position: relative; order: -1; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.portal-switch.is-on { color: #fff; background: #1fca7a; }
.portal-switch.is-on i { order: 2; }
.portal-switch:disabled { opacity: .55; cursor: wait; }
.portal-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.portal-row-actions button { padding: 4px 8px; border: 0; border-radius: 2px; color: #fff; background: #2699eb; font-size: 12px; cursor: pointer; }
.portal-row-actions button:hover { background: #1686d5; }
.portal-row-actions button.danger-action { background: #f04c35; }
.portal-row-actions button.danger-action:hover { background: #cf3825; }
.portal-content-manager { scroll-margin-top: 20px; margin-top: 22px; padding: 22px; border: 1px solid #dce5ed; border-top: 3px solid var(--purple-600); background: #fbfcfe; }
.portal-content-manager > .panel-heading { margin-bottom: 18px; }
.portal-block-editor > .panel-heading { margin-bottom: 8px; }
/* 首页栏目配置：固定位置的栏目、图片上传框、列表型栏目的每一项 */
.portal-pinned { display: inline-block; padding: 2px 6px; border-radius: 3px; color: #6e7e86; background: #eef2f5; font-size: 12px; white-space: nowrap; }
.portal-row-actions button:disabled { opacity: .4; cursor: default; }
.portal-image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 14px 0; }
.portal-image-field { display: grid; gap: 8px; align-content: start; }
.portal-image-preview { display: grid; min-height: 120px; max-height: 220px; place-items: center; overflow: hidden; border: 1px dashed #cfd6de; border-radius: 8px; background: #f6f8fa; }
.portal-image-preview img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; }
.portal-image-preview em { color: var(--muted); font-size: 13px; font-style: normal; }
.portal-image-actions { display: flex; gap: 10px; align-items: center; }
.portal-image-upload { min-height: 34px; padding: 6px 14px; cursor: pointer; }
.portal-list { display: grid; gap: 14px; margin-bottom: 16px; }
.portal-list-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.portal-list-item-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
/* 列表项里图片框很高，旁边的输入框不跟着拉伸 */
.portal-list-item .form-grid { align-items: start; }
/* 快捷入口图标：显示当前图标，点开后从内置图标里点选 */
.portal-icon-picker > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; list-style: none; }
.portal-icon-picker > summary::-webkit-details-marker { display: none; }
.portal-icon-picker > summary em { margin-left: auto; color: var(--purple-700); font-size: 13px; font-style: normal; }
.portal-icon-picker[open] > summary { border-color: var(--purple-600); }
.portal-icon-current { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--purple-900), var(--purple-700)); }
.portal-icon-current svg { width: 20px; height: 20px; }
.portal-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.portal-icon-option { display: grid; justify-items: center; gap: 4px; padding: 8px 2px 6px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); background: var(--surface); cursor: pointer; }
.portal-icon-option svg { width: 22px; height: 22px; }
.portal-icon-option small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.portal-icon-option:hover { border-color: var(--purple-600); color: var(--purple-700); }
.portal-icon-option.is-selected { border-color: var(--purple-700); color: #fff; background: var(--purple-700); }
.portal-icon-option.is-selected small { color: rgba(255,255,255,.85); }
.portal-navigation-child td:nth-child(2) { padding-left: 26px; }
.portal-navigation-branch { margin-right: 6px; color: #9aa7b1; }
.portal-navigation-list { display: grid; gap: 10px; }
.portal-navigation-list > div { display: grid; grid-template-columns: 46px minmax(260px, 1fr) 90px; gap: 16px; align-items: end; padding: 13px 16px; border: 1px solid var(--line); background: #fafafa; }
.portal-nav-order { align-self: center; color: var(--purple-600); font-size: 18px; font-weight: 800; }
.portal-nav-visible { display: flex; gap: 7px; align-items: center; min-height: 44px; cursor: pointer; }
.portal-nav-visible input { accent-color: var(--purple-700); }
.portal-navigation-table td { vertical-align: middle; }
.portal-navigation-table td > strong { color: var(--ink); }
.portal-navigation-note { margin: 12px 0 0; }
.portal-navigation-editor { scroll-margin-top: 20px; margin-top: 22px; padding: 22px; border: 1px solid #dce5ed; border-top: 3px solid var(--purple-600); background: #fbfcfe; }
.portal-navigation-editor > form > .panel-heading { margin-bottom: 18px; }
.navigation-type-fields { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.rich-text-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin: 14px 0; }
.rich-text-editor-grid > .field { display: flex; min-width: 0; flex-direction: column; align-self: start; justify-content: flex-start; gap: 7px; }
.rich-text-editor-grid .rich-text-editor { width: 100%; }
.rich-text-editor-grid .rich-text-toolbar { gap: 4px; align-content: flex-start; min-height: 62px; padding: 5px; }
.rich-text-editor-grid .rich-text-toolbar label { gap: 2px; font-size: 9px; }
.rich-text-editor-grid .rich-text-toolbar select { min-width: 62px; height: 27px; min-height: 27px; padding: 2px 4px; border-radius: 4px; font-size: 11px; }
.rich-text-editor-grid .rich-text-toolbar button { min-width: 27px; height: 27px; min-height: 27px; padding: 2px 5px; border-radius: 4px; font-size: 11px; line-height: 1; }
.rich-text-editor-grid .rich-color-control { height: 27px; min-height: 27px; padding: 2px 4px; border-radius: 4px; }
.rich-text-editor-grid .rich-color-control input[type="color"] { width: 19px; height: 19px; min-height: 0; padding: 0; }
.rich-text-editor-grid .rich-link-panel { gap: 6px; padding: 6px 8px; }
.rich-text-editor-grid .rich-link-panel input[data-rich-link-text],
.rich-text-editor-grid .rich-link-panel input[data-rich-link-url] { width: 100%; }
.rich-text-editor-grid .rich-link-panel label:not(.rich-link-check) { flex: 1 1 100%; }
.rich-text-editor-grid .rich-text-surface { height: 310px; min-height: 310px; max-height: 310px; padding: 10px 12px; overflow-y: auto; }
.portal-article-page { padding-top: 48px; padding-bottom: 80px; }
.portal-article-cover { display: block; width: min(100%, 980px); max-height: 460px; margin: 0 auto 32px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.portal-article-body { max-width: 900px; margin: 0 auto; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.portal-article-body p { margin: 0 0 1em; white-space: pre-wrap; }
.portal-article-body p:last-child { margin-bottom: 0; }
/* 投稿、注册的介绍页：图文下面一个按钮进入真正的投稿 / 注册页面 */
.route-intro-action { display: flex; justify-content: center; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.route-intro-button { min-width: 220px; min-height: 50px; padding-inline: 32px; font-size: 17px; }
.route-intro-button span { transition: transform 150ms ease; }
.route-intro-button:hover span { transform: translateX(3px); }
.rich-content-output h1,
.rich-content-output h2,
.rich-content-output h3,
.rich-content-output h4 { margin: 1.2em 0 .55em; line-height: 1.35; }
.rich-content-output h1:first-child,
.rich-content-output h2:first-child,
.rich-content-output h3:first-child { margin-top: 0; }
.rich-content-output ul,
.rich-content-output ol { padding-left: 1.6em; }
.rich-content-output blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--purple-600); color: var(--muted); background: var(--purple-100); }
.rich-content-output a { color: var(--purple-700); text-decoration: underline; }
.rich-content-output img { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 7px; }
.theme-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.theme-option { position: relative; display: grid; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 9px; cursor: pointer; }
.theme-option:has(input:checked) { border-color: var(--purple-600); box-shadow: 0 0 0 3px var(--purple-100); }
.theme-option input { position: absolute; top: 12px; right: 12px; accent-color: var(--purple-700); }
.theme-option small { color: var(--muted); }
.theme-preview { display: grid; height: 94px; grid-template-columns: 30% 1fr; grid-template-rows: 26px 1fr; gap: 7px; margin-bottom: 7px; padding: 9px; border-radius: 5px; background: #f4f5f7; }
.theme-preview i { display: block; border-radius: 3px; background: #fff; }
.theme-preview i:first-child { grid-column: 1 / -1; }
.theme-preview i:nth-child(2) { grid-row: 2; }
.theme-purple .theme-preview i:first-child { background: #6317b6; }
.theme-purple .theme-preview i:nth-child(2) { background: #d9c0f3; }
.theme-blue .theme-preview i:first-child { background: #176bb8; }
.theme-blue .theme-preview i:nth-child(2) { background: #bad9f3; }
.theme-cyan .theme-preview i:first-child { background: #078a98; }
.theme-cyan .theme-preview i:nth-child(2) { background: #b5e4e6; }
.stat-danger { color: #a12a2a !important; }
.stat-warning { color: var(--orange) !important; }
.program-conflict-panel,
.program-editor-panel { margin-top: 18px; }
.program-import-entry { display: flex; justify-content: flex-end; gap: 10px; margin: 0 0 12px; }
.program-import-results { display: grid; gap: 14px; max-height: 64vh; overflow: auto; margin-top: 14px; }
.program-import-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.program-import-summary > div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.program-import-summary small { color: var(--muted); }
.program-import-summary strong { font-size: 24px; }
.program-import-results section { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.program-import-results .program-import-group { display: grid; gap: 12px; padding: 18px; }
.program-import-group > header { display: grid; gap: 4px; }
.program-import-group > header strong { font-size: 18px; }
.program-import-group > header small { color: var(--muted); }
.program-import-overview-table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: fixed; }
.program-import-overview-table > thead > tr > th, .program-import-overview-table > tbody > tr > td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.program-import-overview-table > thead > tr > th { background: var(--surface-soft); white-space: nowrap; }
.program-import-overview-table > thead > tr > th:nth-child(1) { width: 48px; }
.program-import-overview-table > thead > tr > th:nth-child(2) { width: 72px; }
.program-import-overview-table > thead > tr > th:nth-child(3) { width: 172px; }
.program-import-overview-table > thead > tr > th:nth-child(4) { width: 32%; }
.program-import-overview-table > thead > tr > th:nth-child(5) { width: 18%; }
.program-import-overview-table > thead > tr > th:nth-child(6) { width: 18%; }
.program-import-overview-table > thead > tr > th:nth-child(7) { width: 84px; }
.program-import-overview-row small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.program-import-overview-row td:nth-child(3) { white-space: nowrap; }
.program-import-overview-row td:nth-child(6) { overflow-wrap: anywhere; }
.program-import-person-summary { margin-bottom: 6px; }
.program-import-person-summary .program-import-person-identity { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.program-import-person-summary small { display: inline; margin: 0; }
.program-import-person-summary .status { margin: 0 4px 0 0; }
.program-import-overview-detail td { background: #fbfcff; }
.program-import-type { display: inline-block; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--purple-700); }
.program-import-person-list { display: grid; gap: 8px; margin: 8px 0; }
.program-import-item-issues { margin: 8px 0; padding: 10px 10px 10px 28px; color: var(--danger); background: #fff4f4; border-radius: 8px; }
.program-import-person { display: grid; gap: 8px; padding: 12px; background: #f7f8ff; border: 1px solid var(--line); border-radius: 8px; }
.program-import-person > div:first-child { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.program-import-person small { color: var(--muted); }
.program-import-person-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.program-import-time-review { display: flex; gap: 8px; padding: 10px; color: #805600; background: #fff8e5; border-radius: 8px; }
.program-import-edit { margin-top: 6px; }
.program-import-edit summary { cursor: pointer; color: var(--purple-700); font-size: 12px; }
.program-import-table-wrap { overflow-x: auto; margin-top: 8px; }
.program-import-table { width: 100%; min-width: 660px; border-collapse: collapse; table-layout: fixed; }
.program-import-table th, .program-import-table td { padding: 6px 8px; text-align: left; border: 1px solid var(--line); }
.program-import-table th { background: var(--surface-soft); font-size: 13px; }
.program-import-table th:first-child { width: 132px; }
.program-import-table th:nth-child(2), .program-import-table th:nth-child(3) { width: 90px; }
.program-import-table th:nth-child(4) { width: 110px; }
.program-import-table .field { display: block; min-width: 0; }
.program-import-table .field span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.program-import-table input { width: 100%; min-width: 0; }
.program-import-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.program-import-fields .field { min-width: 0; }
.program-import-fields input, .program-import-fields select { width: 100%; }
.program-import-errors { margin: 0; padding-left: 22px; color: #a52222; }
.program-import-warnings { margin: 0; padding-left: 22px; color: #8a5700; }
@media (max-width: 700px) { .program-import-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.conflict-check-modal { max-width: 820px; }
.display-settings-modal { width: min(100%, 560px); }
.program-reset-modal { width: min(100%, 560px); }
.program-reset-list { display: grid; gap: 6px; margin: 10px 0 14px; padding: 12px 16px; list-style: none; background: #fff4f4; border: 1px solid #f3c7c9; border-radius: 10px; }
.program-reset-list li { display: flex; justify-content: space-between; gap: 16px; }
.program-reset-list strong { color: var(--danger); white-space: nowrap; }
.field-prefs-modal { width: min(100%, 760px); }
.field-prefs-body { display: grid; gap: 14px; margin: 18px 0 6px; max-height: min(56vh, 520px); overflow-y: auto; padding-right: 4px; }
.field-prefs-group h3 { margin: 0 0 8px; font-size: 13px; color: var(--purple-700); }
.field-prefs-items { display: grid; gap: 8px; }
.field-prefs-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); font-size: 13px; }
.field-prefs-item label { display: inline-flex; align-items: center; gap: 5px; flex: 1; cursor: pointer; }
.field-prefs-drag-handle { color: var(--muted); cursor: grab; letter-spacing: -3px; user-select: none; }
.field-prefs-item.is-dragging { opacity: .45; }
.field-prefs-move { display: inline-flex; gap: 2px; }
.field-prefs-move button { border: 0; border-radius: 4px; background: #fff; color: var(--purple-700); cursor: pointer; min-width: 23px; min-height: 23px; }
.field-prefs-move .field-prefs-delete { padding-inline: 6px; color: var(--danger); }
.field-prefs-move button:disabled { opacity: .35; cursor: default; }
.field-prefs-item input { accent-color: var(--purple-700); }
.field-prefs-item.field-prefs-pinned { opacity: .62; cursor: default; }
.field-prefs-item small { color: var(--muted); font-size: 11px; }
.field-prefs-quick { display: flex; gap: 12px; align-items: center; }
/* 新增字段弹窗：字段名/类别/新类别/类型两列排布，单选项整行、位于表单下方。 */
.guest-itinerary-field-modal { width: min(100%, 760px); }
.guest-itinerary-field-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.guest-itinerary-field-modal [data-itinerary-field-options] { margin-top: 12px; }
@media (max-width: 700px) { .guest-itinerary-field-form-grid { grid-template-columns: 1fr; } }
.display-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 6px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.display-settings-row > span { display: grid; gap: 4px; }
.display-settings-row small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.conflict-check-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); }
.program-conflict { display: grid; width: 100%; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px 10px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.program-conflict:hover { background: var(--surface-soft); }
.program-conflict:disabled { cursor: default; }
.program-conflict > span:nth-child(2),
.program-conflict-empty { display: grid; }
.program-conflict small,
.program-conflict-empty small { margin-top: 3px; color: var(--muted); }
.program-conflict-error .warning-number { color: #a12a2a; background: #fff0f0; }
.program-conflict b { color: var(--purple-700); font-size: 12px; }
.program-conflict-empty { padding: 18px; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.schedule-editor-table { min-width: 1120px; }
.schedule-editor-table.has-session-order { min-width: 1240px; }
.schedule-editor-table .session-document-cell { width: 1%; white-space: nowrap; }
.schedule-editor-table th:nth-child(1) { min-width: 210px; }
.schedule-editor-table th:nth-child(2) { min-width: 210px; }
.schedule-editor-table th:nth-child(3) { min-width: 230px; }
/* 有“排序”列时（2026-10-12）各列宽度往后挪一列，排序列只占它需要的宽度 */
.schedule-editor-table.has-session-order th:nth-child(1) { min-width: 0; }
.schedule-editor-table.has-session-order th:nth-child(2) { min-width: 210px; }
.schedule-editor-table.has-session-order th:nth-child(3) { min-width: 190px; }
.schedule-editor-table.has-session-order th:nth-child(4) { min-width: 150px; }
.schedule-editor-table td { vertical-align: top; transition: background .25s, box-shadow .25s; }
.schedule-editor-table tr.session-conflict td { background: #fffaf2; }
.schedule-editor-table tr.session-conflict td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.schedule-editor-table tr.session-located td { animation: session-locate 1.4s ease; }
.session-chair-control { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.session-selected-chairs { display: flex; flex-wrap: wrap; gap: 8px; min-height: 20px; }
.session-selected-chairs button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 0; border-radius: 999px; color: var(--purple-800); background: #e9ddf7; cursor: pointer; }
.session-selected-chairs button span { font-size: 16px; line-height: 1; }
.session-new-chair-list { display: grid; gap: 9px; }
.session-new-chair-row { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.session-new-chair-row > button { align-self: end; justify-self: start; }
.session-role-control h3 { margin: 0; font-size: 16px; color: var(--ink); }
.session-role-entries { display: grid; gap: 10px; }
.session-role-entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.session-role-entry > .form-grid { margin: 0; grid-template-columns: repeat(2, minmax(170px, 1fr)); }
.session-role-entry > button { align-self: end; }
.session-time-fields { display: grid; gap: 7px; }
.session-time-fields label { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px; }
.session-time-fields span { color: var(--muted); font-size: 11px; }
.session-time-fields input,
.schedule-editor-table select,
.attendance-input { width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; }
.attendance-input { max-width: 100px; }
.inline-check { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.inline-check input { margin-top: 2px; accent-color: var(--purple-700); }
.talk-board-panel { margin-top: 18px; }
.talk-board { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.talk-pool,
.talk-lane { min-height: 150px; padding: 13px; border: 1px dashed #c9bdd8; border-radius: 10px; background: #faf9fc; transition: border-color .2s, background .2s, box-shadow .2s; }
.talk-pool { position: sticky; top: 18px; }
.talk-pool-heading,
.talk-lane > header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.talk-pool-heading h3 { margin: 0; font-size: 16px; }
.talk-pool-heading > span,
.talk-lane-session-count { display: grid; min-width: 27px; height: 27px; padding-inline: 6px; place-items: center; border-radius: 99px; color: var(--purple-700); background: var(--purple-100); font-size: 12px; font-weight: 800; }
.talk-lanes { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 13px; }
.talk-lane > header div { display: grid; }
.talk-lane > header small { margin-top: 2px; color: var(--muted); }
.talk-lane-header-actions { display: flex !important; flex: 0 0 auto; align-items: center; gap: 8px; }
.session-itinerary-button { padding: 5px 8px; border: 1px solid var(--purple-300); border-radius: 7px; color: var(--purple-700); background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.session-itinerary-button:hover, .session-itinerary-button:focus-visible { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); outline: none; }
.session-itinerary-note { margin-bottom: 16px; padding-block: 12px; }
.session-itinerary-note p { margin: 0; color: var(--muted); }
.talk-lane-items { display: grid; gap: 8px; }
.talk-admin-card { display: grid; min-width: 0; gap: 6px; overflow: hidden; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 3px 10px rgba(45,25,72,.05); cursor: grab; }
.talk-admin-card:active { cursor: grabbing; }
.talk-admin-card.dragging { opacity: .42; }
.talk-admin-card.talk-conflict { border-color: #e3a24b; box-shadow: inset 3px 0 0 var(--orange); }
.talk-admin-card.talk-located { animation: talk-locate 1.4s ease; }
.talk-admin-card > div:first-child { display: flex; min-width: 0; justify-content: space-between; gap: 8px; color: var(--purple-700); font-size: 11px; font-weight: 800; }
.talk-admin-card > div:first-child > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.talk-admin-card > strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.talk-admin-card > small { color: var(--muted); line-height: 1.4; }
/* 多讲者卡片：时间与每位讲者「姓名（单位）」各占一行连续显示 */
.talk-admin-card > small.talk-card-speakers { display: grid; gap: 2px; }
.talk-admin-card .talk-card-time { font-weight: 700; color: var(--purple-700); }
.talk-admin-card .talk-card-speaker { overflow-wrap: anywhere; }
.talk-admin-card[draggable="true"] { cursor: grab; }
.talk-admin-card.dragging { opacity: .45; cursor: grabbing; }
.program-pointer-dragging { user-select: none; cursor: grabbing; }
.talk-admin-card.talk-drop-before { box-shadow: 0 -4px 0 var(--cyan-500), 0 3px 10px rgba(45,25,72,.05); }
.talk-lane.drop-at-end .talk-lane-items::after { content: "放到这里"; display: grid; min-height: 34px; place-items: center; border: 2px dashed var(--cyan-500); border-radius: 7px; color: var(--cyan-700); background: #edfafd; font-size: 12px; font-weight: 700; }
.talk-lane-items { min-height: 54px; }
.talk-library-add { width: 100%; margin-top: 10px; padding: 8px; border: 1px dashed var(--purple-300); border-radius: 8px; color: var(--purple-700); background: #fff; font-weight: 700; cursor: pointer; }
.talk-library-add:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.talk-library-list { display: grid; gap: 8px; min-height: 110px; max-height: 390px; overflow: auto; margin: 16px 0; padding: 4px; }
.talk-library-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.talk-library-item:hover { border-color: var(--blue); background: #f8fbff; }
.talk-library-item input { margin-top: 4px; }
.talk-library-item strong, .talk-library-item small { display: block; }
.talk-library-item small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.talk-library-item small.status-warning { margin-top: 10px; padding: 9px 12px; border-left: 4px solid #c62828; border-radius: 4px; background: #fff0f0; color: #b71c1c; font-size: 15px; font-weight: 700; }
.talk-library-direct .field { position: relative; }
/* 讲者选填的说明；底部按钮不折行（提示文字长时按钮被挤成两行，2026-10-12） */
.talk-library-optional { margin-left: 10px; color: var(--muted); font-size: 13px; font-weight: 400; }
[data-talk-library-form] .form-actions > div { flex-shrink: 0; }
[data-talk-library-form] .form-actions .button { white-space: nowrap; }
/* 直接添加报告的时间：开始 – 结束 + 时长（2026-10-12） */
.talk-library-time-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; align-items: center; }
.talk-library-time-row > span { color: var(--muted); }
.talk-library-time-row input, .talk-library-time-row select { padding-left: 10px; padding-right: 8px; }
/* 搜索建议层要贴着输入框展开：字段本身必须是定位上下文，
   否则 top:100% 会按弹窗高度计算，把下拉推到弹窗最底部。 */
.field:has(> .guest-search-results) { position: relative; }
.guest-search-results { position: absolute; z-index: 12; top: calc(100% - 2px); left: 0; right: 0; max-height: 210px; overflow: auto; border: 1px solid var(--blue); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(26, 42, 90, .16); }
.guest-search-results button { display: block; width: 100%; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); background: #fff; cursor: pointer; }
.guest-search-results button:last-child { border-bottom: 0; }
.guest-search-results button:hover { background: var(--blue-soft); }
.guest-search-results strong, .guest-search-results small { display: block; }
.guest-search-results small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.talk-state { padding: 2px 6px; border-radius: 99px; }
.talk-state-published { color: var(--green); background: var(--green-soft); }
.talk-state-draft { color: var(--blue); background: var(--blue-soft); }
.talk-card-actions { display: flex !important; justify-content: flex-start !important; gap: 7px !important; margin-top: 2px; }
.talk-card-actions button { padding: 3px 0; border: 0; color: var(--purple-700); background: transparent; font-size: 12px; cursor: pointer; }
.program-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.session-row-actions { display: flex; gap: 8px; align-items: center; }
.session-editing { background: #f7fbff; }
.schedule-editor-table input:disabled, .schedule-editor-table select:disabled { opacity: .72; cursor: default; background: #fafbfe; }
.session-editing input:disabled, .session-editing select:disabled { opacity: 1; }
.program-setup-modal { max-width: 1120px; }
[data-program-import-modal] .talk-editor-modal { width: min(100%, 1440px); max-width: none; }
.room-manager-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr); gap: 24px; align-items: start; }
.room-manager-list { max-height: 430px; overflow: auto; border-left: 1px solid var(--line); padding-left: 24px; }
.room-manager-list h3, .room-manager-layout h3 { margin-top: 0; }
.room-manager-list article { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.room-manager-list article strong, .room-manager-list article small { display: block; }
.room-manager-list article small { margin-top: 4px; color: var(--muted); }
@media (max-width: 760px) { .room-manager-layout { grid-template-columns: 1fr; } .room-manager-list { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; } }
.talk-card-actions button + button::before { content: "·"; margin-right: 7px; color: var(--muted); }
.drop-zone.drop-active { border-color: var(--cyan-500); background: #edfafd; box-shadow: 0 0 0 3px rgba(12,156,183,.12); }
.empty-pool { margin: 18px 4px; color: var(--muted); text-align: center; font-size: 12px; }
.talk-editor-backdrop { position: fixed; z-index: 170; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(18,8,31,.68); }
.talk-editor-modal { position: relative; width: min(100%, 880px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; border-radius: 15px; background: var(--surface); box-shadow: 0 30px 80px rgba(15,5,29,.35); }
.talk-editor-modal h2 { margin: 4px 0 20px; }
.talk-editor-modal form { display: grid; gap: 16px; }
.auto-slot-check { padding: 11px 13px; border-radius: 8px; background: var(--surface-soft); }
.speaker-picker { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; max-height: 320px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.speaker-picker legend { padding: 0 7px; font-weight: 700; }
.speaker-picker-search { width: 100%; min-height: 40px; margin-bottom: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); outline: none; }
.speaker-picker-search:focus { border-color: var(--purple-600); box-shadow: 0 0 0 3px var(--purple-100); }
.speaker-picker-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; overflow-y: auto; }
/* 已选讲者的先后顺序（保存按这个顺序，2026-10-12）；没选或只选一位时是空的、不占高度 */
.speaker-picker-order { margin: 0 0 8px; color: var(--purple-700); font-size: 13px; font-weight: 600; line-height: 1.5; }
.speaker-picker-order:empty { margin: 0; }
/* 库里没有的讲者直接新增：名字取自搜索框，填单位后加进列表（2026-10-12） */
.speaker-picker-new { display: grid; grid-template-columns: minmax(0, auto) minmax(160px, 1fr) auto; gap: 8px; align-items: center; margin-top: 10px; padding: 10px; border: 1px dashed var(--purple-300, #c4b5fd); border-radius: 8px; background: var(--surface-soft); font-size: 14px; }
.speaker-picker-new input { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.speaker-picker-new .button { min-height: 38px; padding: 6px 14px; }
.speaker-picker label[data-new-speaker] { outline: 1px dashed var(--purple-600); }
@media (max-width: 640px) { .speaker-picker-new { grid-template-columns: 1fr; } }
.speaker-picker-empty { margin: 0; padding: 10px 0 2px; color: var(--muted); text-align: center; }
.speaker-picker label { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 6px; background: var(--surface-soft); cursor: pointer; }
.speaker-picker input { margin-top: 4px; accent-color: var(--purple-700); }
.speaker-picker span { display: grid; min-width: 0; }
.speaker-picker small { color: var(--muted); overflow-wrap: anywhere; }
.invitation-credentials { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; padding: 20px 23px; border: 1px solid #b9dfc8; border-radius: 11px; background: var(--green-soft); }
.invitation-credentials h2 { margin: 3px 0 8px; font-size: 19px; }
.invitation-credentials p { margin: 3px 0; }
.invitation-credentials code { display: inline-block; padding: 4px 8px; border-radius: 5px; color: #1f5134; background: #fff; font-size: 15px; }
.invitation-credentials small { display: block; margin-top: 8px; color: var(--muted); }
.invitation-credentials > div:last-child { display: grid; flex: 0 0 auto; gap: 8px; }
.member-table { min-width: 980px; }
.member-table td { vertical-align: top; }
.member-table tr.member-disabled td { color: var(--muted); background: #fafafa; }
.member-role-list { display: flex; max-width: 330px; flex-wrap: wrap; }
.role-summary-panel { margin-top: 18px; }
.role-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.role-summary-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.role-summary-grid article > div { display: flex; justify-content: space-between; gap: 10px; }
.role-summary-grid article span { display: grid; min-width: 27px; height: 27px; padding-inline: 6px; place-items: center; border-radius: 99px; color: var(--purple-700); background: var(--purple-100); font-size: 12px; font-weight: 800; }
.role-summary-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.member-editor-backdrop { position: fixed; z-index: 175; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(18,8,31,.68); }
.member-editor-modal { position: relative; width: min(100%, 820px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; border-radius: 15px; background: var(--surface); box-shadow: 0 30px 80px rgba(15,5,29,.35); }
.member-editor-modal h2 { margin: 4px 0 20px; }
.member-editor-modal form { display: grid; gap: 17px; }
.profile-email-verification { display: flex; gap: 10px; align-items: center; }
.profile-email-verification input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .profile-email-verification { grid-column: 1 / -1; flex-direction: column; align-items: stretch; } }
.abstract-admin-modal { width: min(100%, 940px); }
.admin-abstract-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.admin-abstract-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0; border: 1px solid var(--line); background: var(--line); }
.admin-abstract-details div { padding: 11px 13px; background: var(--surface); }
.admin-abstract-details dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.admin-abstract-details dd { margin: 0; overflow-wrap: anywhere; }
.admin-abstract-body { margin: 18px 0; padding: 18px; border-radius: 8px; background: var(--surface-soft); }
.admin-abstract-body h4 { margin: 0 0 10px; }
.admin-abstract-body p { margin: 0; white-space: pre-wrap; line-height: 1.75; }
.admin-abstract-author-list { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.admin-abstract-author-list li { display: grid; grid-template-columns: minmax(110px, .6fr) minmax(160px, 1fr) minmax(120px, .6fr) 130px; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; }
.admin-abstract-author-list li small { text-align: right; }
.admin-abstract-author-list span { color: var(--muted); }
.admin-abstract-author-list small { color: var(--purple-700); }
.batch-review-modal { width: min(100%, 760px); }
.batch-review-result { margin: 4px 0 0; padding: 11px 13px; border-radius: 7px; color: #176c4b; background: #e7f8ef; font-size: 13px; line-height: 1.5; }
.email-batch-modal { width: min(100%, 760px); }
.email-batch-modal form,
.email-batch-modal > p { margin: 0; }
.email-batch-modal .form-note { line-height: 1.6; }
.email-batch-recipient-list { display: grid; gap: 7px; max-height: 320px; margin: 4px 0 0; padding: 2px; overflow-y: auto; list-style: none; }
.email-batch-recipient { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(180px, 1.2fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.email-batch-recipient-name { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.email-batch-recipient-name small { color: var(--muted); }
.email-batch-recipient-email { overflow-wrap: anywhere; color: var(--purple-700); }
.email-batch-recipient.is-skipped { color: var(--muted); background: var(--surface-soft); }
.email-batch-recipient.is-skipped .email-batch-recipient-email { color: var(--muted); }
.email-batch-recipient.is-previewable { cursor: pointer; }
.email-batch-recipient.is-previewable:hover { border-color: #b998dc; }
.email-batch-recipient.is-active { border-color: var(--blue); background: var(--blue-soft); }
.email-preview-panel { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.email-preview-panel > .section-kicker { display: block; margin-bottom: 4px; }
.email-preview-panel .email-preview-subject { margin: 10px 0 0; }
.email-preview-panel .email-preview-body { max-height: 46vh; margin-top: 10px; }
.track-color-dot { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: var(--track-color); box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.invitation-track-list { display: grid; gap: 18px; }
.invitation-track-card { margin: 0; }
.invitation-track-card .panel-heading { align-items: center; }
.invitation-expert-table { min-width: 620px; }
.member-role-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.member-role-picker legend { padding: 0 7px; font-weight: 700; }
.role-option { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-radius: 7px; background: var(--surface-soft); cursor: pointer; }
.role-option:has(input:checked) { box-shadow: inset 0 0 0 1px var(--purple-600); background: #f5effc; }
.role-option input { margin-top: 4px; accent-color: var(--purple-700); }
.role-option span { display: grid; }
.role-option small { margin-top: 2px; color: var(--muted); line-height: 1.4; }
.role-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.member-active-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); cursor: pointer; }
.member-active-toggle input { margin-top: 5px; accent-color: var(--purple-700); }
.member-active-toggle span { display: grid; }
.member-active-toggle small { color: var(--muted); }
.member-security-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid #f0d9ad; border-radius: 10px; background: #fffaf0; }
.member-security-action small { color: var(--muted); }
.email-settings-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .7fr); gap: 18px; align-items: start; }
.email-settings-panel form { display: grid; gap: 18px; }
.email-clear-secret { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.email-clear-secret input { accent-color: var(--purple-700); }
.email-secret-note { padding: 13px 15px; border: 1px solid #d9d3e7; border-radius: 9px; background: #f8f6fc; }
.email-secret-note p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.email-test-panel { position: sticky; top: 84px; }
.email-test-panel > h2 { margin: 5px 0 7px; }
.email-test-panel > p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.email-test-panel form { display: grid; gap: 12px; }
.email-test-panel form .button { width: 100%; }
.email-test-panel dl { display: grid; gap: 9px; margin: 22px 0 0; }
.email-test-panel dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.email-test-panel dt { color: var(--muted); }
.email-test-panel dd { margin: 0; font-weight: 700; text-align: right; }
.email-settings-stack { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; margin-top: 22px; }
.email-parameters-panel form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.email-parameters-panel .form-submit { grid-column: 1 / -1; }
.email-template-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.email-template-card { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.email-template-card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.email-template-card h3 { margin: 0; font-size: 16px; }
.email-template-category { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.email-template-subject { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.email-template-warning { margin: 0; padding: 8px 10px; border: 1px solid #f0d9ad; border-radius: 8px; background: #fffaf0; color: #8a5a00; font-size: 12px; line-height: 1.5; }
.email-template-card.is-disabled { opacity: .65; }
.email-template-card footer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.email-template-card footer > .button { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.email-template-card footer > .config-switch { margin-left: auto; }
.email-template-card-footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.email-template-card-footer .config-switch { margin-left: auto; }
/* 邮件模板编辑窗比通用配置弹窗更宽：组合选择器提高特异性，避免被 config-editor-modal 的宽度覆盖。 */
.member-editor-modal.email-template-modal { width: min(100%, 1440px); }
.email-template-editor-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.email-template-editor-tabs .is-active { border-color: var(--purple-600); color: var(--purple-700); background: #f5effc; }
.email-template-source { width: 100%; min-height: 260px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaff; font-family: Consolas, 'Courier New', monospace; font-size: 13px; line-height: 1.55; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.email-variable-picker { display: grid; gap: 10px; padding: 13px 15px; border: 1px solid #d9d3e7; border-radius: 9px; background: #f8f6fc; }
.email-variable-group { display: grid; gap: 7px; }
.email-variable-group + .email-variable-group { padding-top: 9px; border-top: 1px solid #e6e1f1; }
.email-variable-group-title { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.email-variable-group-list { display: flex; flex-wrap: wrap; gap: 7px; }
.email-variable-chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--purple-700); font-family: Consolas, 'Courier New', monospace; font-size: 12px; cursor: pointer; }
.email-variable-chip:hover { border-color: var(--purple-600); background: #f5effc; }
.email-variable-chip.required { border-color: var(--purple-600); box-shadow: inset 0 0 0 1px var(--purple-600); font-weight: 700; }
.email-template-error { color: #b3261e; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.email-log-table { min-width: 760px; }
.email-log-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.email-log-pagination > div { display: flex; gap: 8px; }
.guest-itinerary-filters form { display: grid; grid-template-columns: minmax(210px, 1.25fr) minmax(140px, .8fr) repeat(3, minmax(105px, .65fr)) auto; gap: 10px; align-items: end; }
.guest-itinerary-filters .field input,
.guest-itinerary-filters .field select { min-height: 36px; padding: 6px 10px; font-size: 13px; }
/* 嘉宾总表搜索栏（2026-10-08）：姓名、单位、电话、分会、会场 */
.guest-directory-filters form { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)) minmax(180px, 1.5fr) minmax(130px, 1fr) auto; gap: 10px; align-items: end; }
.guest-directory-filters .field input,
.guest-directory-filters .field select { min-height: 36px; padding: 6px 10px; font-size: 13px; }
@media (max-width: 980px) { .guest-directory-filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guest-itinerary-filter-actions { display: flex; gap: 8px; align-items: center; }
.guest-itinerary-filter-actions .button { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.guest-itinerary-pagination { padding: 0 8px; }
.email-preview-modal { width: min(100%, 760px); }
/* 发送预览与批量发送窗与模板编辑窗同宽，便于核对邮件内容；
   组合选择器提升特异性，避免被通用配置弹窗的宽度规则覆盖。 */
.member-editor-modal.email-batch-modal,
.member-editor-modal.email-preview-modal { width: min(100%, 1440px); }
.email-preview-subject { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); line-height: 1.55; overflow-wrap: anywhere; }
.email-preview-body { max-height: 60vh; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f5f6fa; overflow: auto; }
/* 短信中心：服务状态 / 签名 / 模板 / 嘉宾草稿 / 发送 / 结果 / 日志 / 批次。 */
.sms-center-stack { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; margin-top: 22px; }
/* 短信中心页签：复用 .portal-config-tabs 的视觉，只把它做成一张独立白色卡片；
   未激活页签的面板不在 DOM 里（app.js 每次只渲染当前页签），这里不负责隐藏内容。 */
.sms-center-tabs { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.sms-center-tabs button { flex: 0 0 auto; white-space: nowrap; }
/* 活动页签的容器：轨道写成 minmax(0, 1fr)，宽度只由容器决定。
   短信表格自带 min-width，若轨道保留「自动最小尺寸」，宽表会把整页撑出横向滚动条；
   显式允许轨道收缩后，横向滚动只发生在 .table-wrap 内部（页面级不滚动）。 */
.sms-center-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; }
/* 「服务配置」页里的小选项卡（服务配置 / 短信签名 / 短信模板）：做成分段按钮，和上面的大页签区分层级；
   同样只渲染当前一块，这里不负责隐藏内容。窄屏时整条横向滚动，不折行。 */
.sms-settings-tabs { display: flex; gap: 6px; width: fit-content; max-width: 100%; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sms-settings-tabs button { flex: 0 0 auto; min-height: 38px; padding: 0 22px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.sms-settings-tabs button:hover { color: var(--purple-700); background: #f3f6fb; }
.sms-settings-tabs button.active { color: #fff; background: var(--purple-600); }
.sms-settings-body { min-width: 0; }
/* 草稿页版式：左列草稿表、右列「发送面板 + 通道状态卡」。
   minmax(0, 3fr) 里的 0 是关键：草稿表自身有 min-width，若左列用自动最小尺寸，
   网格会被表格撑破，页面就出现横向滚动条。这里让列可以收缩到 0，
   横向滚动只发生在 .table-wrap 内部（表格自己滚，页面不滚）。 */
.sms-drafts-workspace { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 18px; align-items: start; min-width: 0; max-width: 100%; }
.sms-drafts-main { min-width: 0; max-width: 100%; }
.sms-drafts-sidebar { display: grid; gap: 18px; align-content: start; min-width: 0; max-width: 100%; }
/* 右栏跟随滚动：仅宽屏生效。sticky 不脱离文档流，也不会盖住左栏内容；
   不给它加 max-height/overflow，避免把发送按钮藏进内部滚动区。 */
@media (min-width: 1280px) {
  .sms-drafts-sidebar { position: sticky; top: 18px; align-self: start; }
}
/* 断点与后台既有版式一致（1020px）：窄屏退化成单列，右栏回到表格下方，
   顺序仍是「草稿表在前、发送面板在后」。 */
@media (max-width: 1020px) {
  .sms-drafts-workspace { grid-template-columns: 1fr; }
  .sms-drafts-sidebar { position: static; top: auto; }
  .sms-custom-form { grid-template-columns: 1fr; }
}
/* 精简通道状态卡：与发送面板同处右栏，所以事实清单固定单列，不做自动分栏。 */
.sms-provider-summary .sms-provider-facts { grid-template-columns: 1fr; }
.sms-provider-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.sms-provider-facts > div { padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.sms-provider-facts dt { color: var(--muted); font-size: 12px; }
.sms-provider-facts dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.sms-provider-warning { margin: 13px 0 0; padding: 10px 12px; border: 1px solid #f0d9ad; border-radius: 9px; background: #fffaf0; color: #8a5a00; font-size: 13px; line-height: 1.6; }
/* 服务配置表单：适配器下拉整行，融易达凭据桌面固定三等列（<=1020px 两列、<=560px 单列）；
   与支付网关表单同源样式。 */
.sms-provider-config-panel form { display: grid; gap: 14px; }
.sms-provider-config-grid { grid-template-columns: minmax(0, 1fr); }
/* 凭据区不能用 auto-fit：列宽随内容浮动，三列不会稳定铺满整行。固定三列 + align-items: start，
   三个字段只在顶部对齐，谁高谁矮都不影响同一行的其它字段。 */
.sms-provider-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; padding: 16px; border: 1px solid #d9c6e9; border-radius: 10px; background: #faf7fd; }
/* 每个字段固定三行：标题 / 44px 输入框 / 说明。默认 align-content: stretch 会把行高差额平摊给所有行，
   而只有「超时秒数」带 small 说明，于是它的标题行被摊薄、输入框更高，AppID/AppKey 的输入框更低。
   显式三行 + 顶部对齐后，三个输入框永远落在同一条基线上，说明行只占第三行、不推低别人。 */
.sms-provider-fields > .field { min-width: 0; align-content: start; grid-template-rows: auto 44px auto; }
.sms-provider-fields > .field input { height: 44px; min-height: 44px; box-sizing: border-box; }
/* 中等宽度两列、小屏单列：服务地址（.field-full）与说明段仍整行，宽度不够先掉列、不折行。 */
@media (max-width: 1020px) {
  .sms-provider-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sms-provider-fields { grid-template-columns: 1fr; }
}
.sms-provider-secret-actions { margin: 0; }
/* 适配器切换的可见性契约：融易达凭据容器与「清除 AppKey」始终在 DOM 里，
   只按 form[data-sms-provider-kind] 显示/隐藏（JS 只改这个 data 属性，不重绘、不复制 DOM）。
   选「未接入」时隐藏凭据并显示「不会调用任何短信服务」说明；反过来则相反。 */
.sms-provider-config-panel [data-sms-provider-none-note] { display: none; }
.sms-provider-config-panel form[data-sms-provider-kind="none"] [data-sms-provider-credentials],
.sms-provider-config-panel form[data-sms-provider-kind="none"] [data-sms-provider-secret-actions] { display: none; }
.sms-provider-config-panel form[data-sms-provider-kind="none"] [data-sms-provider-none-note] { display: block; }
.sms-provider-config-panel form[data-sms-provider-kind="rongyida"] [data-sms-provider-credentials] { display: grid; }
.sms-provider-inline-note, .sms-provider-inline-warning { margin: 13px 0 0; }
/* 服务地址说明是整段文字：在凭据网格里占满一行，避免被挤进单列窄格。 */
.sms-provider-config-panel [data-sms-provider-url-note] { grid-column: 1 / -1; margin: 0; }
.sms-provider-config-error { color: #b3261e; overflow-wrap: anywhere; }
.sms-signature-list { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; list-style: none; }
.sms-signature-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.sms-signature-item.is-selected { border-color: var(--purple-600); background: #f5effc; }
.sms-signature-value { font-weight: 700; overflow-wrap: anywhere; }
.sms-signature-created { margin-left: auto; color: var(--muted); font-size: 12px; }
.sms-template-body { width: 100%; min-height: 130px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaff; font-size: 13px; line-height: 1.6; }
.sms-placeholder-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.sms-placeholder-chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--purple-700); font-family: Consolas, 'Courier New', monospace; font-size: 12px; cursor: pointer; }
.sms-placeholder-chip:hover { border-color: var(--purple-600); background: #f5effc; }
/* 2026-10-09 简介示意：后台按简介 PPT 模板排好的人物卡，按弹窗宽度等比缩放 */
.bio-modal { width: min(100%, 1000px); }
.bio-card-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bio-card-slide { position: absolute; top: 0; left: 0; overflow: hidden; transform-origin: 0 0; }
.bio-card-el { position: absolute; box-sizing: border-box; }
.bio-card-text { position: absolute; inset: 0; display: flex; flex-direction: column; color: #000; white-space: pre-wrap; overflow-wrap: anywhere; font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; }
.bio-card-text.is-nowrap { white-space: pre; }
.bio-card-text p { margin: 0; }
.bio-card-bullet { display: inline-block; text-indent: 0; }
.bio-preview-notes { margin: 0 0 10px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
/* 简介示意：左边源文件（照片、附件里的文字），右边示意，对照着看 */
.bio-modal.bio-modal-compare { width: min(100%, 1440px); }
.bio-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bio-source-pdf { display: block; width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bio-source-image { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.bio-source-slides { display: grid; gap: 10px; max-height: 70vh; overflow: auto; }
.bio-source-slides .bio-card-frame { margin: 0; }
.bio-source-doc { max-height: 70vh; overflow: auto; padding: 28px 32px; border: 1px solid var(--line); border-radius: 8px; color: #000; background: #fff; box-shadow: 0 4px 14px rgba(25, 10, 45, .08); font-size: 10.5pt; line-height: 1.6; overflow-wrap: anywhere; }
.bio-source-doc p { margin: 0 0 4px; white-space: pre-wrap; }
.bio-source-doc img { max-width: 100%; height: auto; vertical-align: middle; }
.bio-source-doc table { width: 100%; margin: 6px 0; border-collapse: collapse; }
.bio-source-doc td { padding: 4px 6px; border: 1px solid #c8c8c8; vertical-align: top; }
.bio-compare-source { display: grid; align-content: start; gap: 10px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.bio-compare-source h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 15px; }
.bio-compare-source h3 small { color: var(--muted); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.bio-compare-source h4 { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.bio-source-photo img { display: block; max-width: 100%; max-height: 280px; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; object-fit: contain; }
.bio-source-photo .form-note { margin: 0; }
.bio-source-text { max-height: 440px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.bio-source-text mark { padding: 0 1px; border-radius: 2px; color: inherit; background: #fff1b8; }
@media (max-width: 900px) { .bio-compare { grid-template-columns: minmax(0, 1fr); } }
.bio-extract-table { max-height: 50vh; overflow: auto; }
.bio-extract-count { margin: 6px 0; }
.bio-extract-redo { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 8px; font-size: 13.5px; cursor: pointer; }
.bio-extract-redo input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--purple-700); }
.bio-template-person { max-width: 460px; }
.bio-template-upload { position: relative; cursor: pointer; }
.sms-placeholder-chip small { margin-left: 5px; color: var(--muted); font-family: inherit; font-size: 11.5px; }
/* 2026-10-09 每个占位符的说明 */
.sms-placeholder-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 22px; margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.sms-placeholder-guide div { display: grid; align-content: start; gap: 2px; }
.sms-placeholder-guide dt { display: flex; align-items: baseline; gap: 6px; }
.sms-placeholder-guide code { color: var(--purple-700); font-family: Consolas, 'Courier New', monospace; font-size: 12px; }
.sms-placeholder-guide b { font-size: 13px; }
.sms-placeholder-guide dd { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
@media (max-width: 600px) { .sms-placeholder-guide { grid-template-columns: 1fr; } }
.sms-template-warning { margin: 12px 0 0; color: #a96000; }
.sms-template-error, .sms-signature-error, .sms-draft-error { color: #b3261e; overflow-wrap: anywhere; }
.sms-guest-table .is-missing-phone td, .sms-draft-table .is-missing-phone td { background: #fffaf0; }
.sms-draft-row.is-stale td { background: #fffaf0; }
.sms-draft-content { max-width: 420px; overflow-wrap: anywhere; }
.sms-log-limit { display: flex; gap: 8px; align-items: center; margin: 0; }
.sms-skipped-note { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #f0d9ad; border-radius: 9px; background: #fffaf0; font-size: 13px; line-height: 1.6; }
.sms-skipped-note ul { margin: 6px 0 0; padding-left: 20px; }
/* 嘉宾与任务表：只露出前 5 行，其余在表内滚动。高度由 app.js 的 fitSmsGuestScroll 按第 5 行的实际位置设定，
   这里的 max-height 只是脚本还没量到时的兜底；表头吸顶，滚动时仍看得到列名。 */
.sms-guest-scroll { max-height: 440px; overflow-y: auto; border-bottom: 1px solid var(--line); }
.sms-guest-scroll thead th { position: sticky; top: 0; z-index: 1; }
.sms-send-panel form { display: grid; gap: 12px; }
/* 自定义短信（2026-10-10）：号码在左、内容在右，手机上上下排 */
.sms-custom-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 14px 18px; align-items: start; }
.sms-custom-form .sms-custom-notes, .sms-custom-form .sms-custom-error, .sms-custom-form .form-actions { grid-column: 1 / -1; }
.sms-custom-form textarea { width: 100%; resize: vertical; }
.sms-custom-notes { margin: 0; padding-left: 18px; color: var(--muted, #6b6b7b); font-size: 13px; line-height: 1.7; }
.sms-custom-invalid { color: #b42318; }
.sms-custom-error { padding: 10px 12px; border-radius: 8px; color: #8a1f11; background: #fff1ee; }
.sms-custom-error p { margin: 0 0 6px; }
.sms-custom-resend { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.sms-custom-result { margin-top: 16px; }
.sms-custom-result p { margin: 0 0 8px; }
.sms-custom-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; color: var(--purple-700); background: #f1eafc; font-size: 12px; }
/* 发送面板里的提示是整句话：不能沿用 .status 药丸的 nowrap，否则勾选缺手机号的草稿后长句撑破右栏。 */
.sms-stale-warning, .sms-send-error, .sms-phone-warning { display: block; margin: 0; padding: 8px 11px; border-radius: 8px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
/* 右栏较窄：说明文字在上、发送按钮整行在下，按钮文字不折成两行。 */
.sms-send-panel .form-actions { display: grid; gap: 10px; }
.sms-send-panel [data-sms-send] { width: 100%; white-space: nowrap; }
.sms-request-id { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.sms-request-id span { color: var(--muted); font-size: 12px; }
.sms-request-id code { font-family: Consolas, 'Courier New', monospace; font-size: 12px; overflow-wrap: anywhere; }
.sms-resend-confirm { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border: 1px solid #f0d9ad; border-radius: 9px; background: #fffaf0; font-size: 13px; line-height: 1.6; }
.sms-resend-confirm[hidden] { display: none; }
.sms-counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 13px; }
.sms-counter { padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.sms-counter span { display: block; color: var(--muted); font-size: 12px; }
.sms-counter strong { font-size: 20px; }
.sms-counter-sent strong { color: var(--green); }
.sms-counter-accepted strong { color: var(--blue); }
.sms-counter-unknown strong, .sms-counter-not_configured strong, .sms-counter-skipped strong { color: var(--orange); }
.sms-counter-failed strong { color: #b3261e; }
.sms-result-table, .sms-log-table, .sms-batch-table, .sms-draft-table { min-width: 880px; }
.sms-batch-request-id { overflow-wrap: anywhere; font-family: Consolas, 'Courier New', monospace; font-size: 12px; }
.member-editor-modal.sms-draft-modal { width: min(100%, 920px); }
@keyframes session-locate {
  0%, 100% { background: inherit; }
  25%, 70% { background: #fff1c9; }
}
@keyframes talk-locate {
  0%, 100% { background: #fff; }
  25%, 70% { background: #fff1c9; }
}

.site-footer { padding: 50px 0; color: rgba(255,255,255,.7); background: var(--purple-950); }
/* 底部只保留会议名称，居中显示 */
.footer-grid { display: flex; justify-content: center; text-align: center; }
.footer-grid > div { display: flex; flex-direction: column; align-items: center; }
.footer-grid strong { color: #fff; font-size: 18px; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(18,8,31,.65); }
.speaker-modal { position: relative; display: grid; width: min(100%, 620px); grid-template-columns: 150px 1fr; gap: 28px; padding: 34px; border-radius: 16px; background: var(--surface); box-shadow: 0 30px 80px rgba(15,5,29,.35); }
.speaker-modal .portrait { width: 150px; height: 180px; border-radius: 10px; font-size: 45px; }
.speaker-modal h2 { margin: 3px 0; font-size: 28px; }
.speaker-modal p { margin: 4px 0 18px; color: var(--muted); }
.modal-close { position: absolute; top: 12px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); font-size: 23px; cursor: pointer; }
.itinerary-import-modal { max-width: 760px; width: min(760px, 100%); max-height: 90vh; overflow: auto; }
.itinerary-import-list { max-height: 240px; overflow: auto; margin-top: 12px; }
.itinerary-import-list > div { padding: 6px 0; border-bottom: 1px solid #ebe8f3; }
.itinerary-import-errors { color: #a32727; max-height: 220px; overflow: auto; }

.login-modal { position: relative; width: min(100%, 440px); padding: 34px; border-radius: 16px; background: var(--surface); box-shadow: 0 30px 80px rgba(15,5,29,.35); }
.login-modal h2 { margin: 5px 0 4px; font-size: 28px; }
.login-modal > p { margin: 0 0 22px; color: var(--muted); }
.login-modal form { display: grid; gap: 15px; }
.login-modal form .button { width: 100%; margin-top: 3px; }
.auth-link { justify-self: center; padding: 2px 4px; border: 0; color: var(--purple-700); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-security-backdrop { z-index: 135; }
.auth-security-note { margin: 18px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.account-register-modal { width: min(100%, 620px); max-height: calc(100vh - 40px); overflow-y: auto; }
.account-register-modal .form-grid { margin: 0; }
.account-register-modal .consent { margin: 0; }
.guest-merge-comparison { margin: 16px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.guest-merge-comparison h4 { display: flex; justify-content: space-between; margin: 0; padding: 13px 14px; background: var(--surface-soft); }
.guest-merge-comparison h4 b { color: #a32727; }
.guest-merge-comparison-head,
.guest-merge-comparison-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) 52px; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: center; }
.guest-merge-comparison-head { color: var(--muted); font-size: 12px; }
.guest-merge-comparison-row strong { overflow-wrap: anywhere; }
.guest-merge-comparison-row > b { color: var(--green); }
.guest-merge-comparison-row.is-different { background: #fff5d6; }
.guest-merge-comparison-row.is-different > b { color: #a32727; }
@media (max-width: 700px) { .guest-merge-comparison-head, .guest-merge-comparison-row { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr); } .guest-merge-comparison-head > :last-child, .guest-merge-comparison-row > :last-child { display: none; } }
.register-success { display: grid; justify-items: center; gap: 12px; padding: 12px 0 2px; text-align: center; }
.register-success[hidden] { display: none; }
.register-success h3 { margin: 0; font-size: 24px; }
.register-success > p { margin: 0; color: var(--muted); line-height: 1.6; }
.register-success > strong { overflow-wrap: anywhere; color: var(--purple-700); }
.register-success .button { width: 100%; }
.auth-result-icon { display: grid; width: 52px; height: 52px; place-items: center; margin: 8px auto 12px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--purple-700), #9c36ef); font-size: 24px; font-weight: 800; }
.password-change-backdrop { z-index: 140; }
.password-change-modal { width: min(100%, 500px); }
.password-policy { display: grid; gap: 5px; margin: -3px 0 2px; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.password-change-modal .button-quiet { margin-top: -7px; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 7px; color: #9b1c1c; background: #fff0f0; font-size: 13px; }
.form-success { margin: 0; padding: 10px 12px; border-radius: 7px; color: #146c43; background: #eaf8f0; font-size: 13px; line-height: 1.55; }
.role-chip { display: inline-block; margin: 0 6px 6px 0; padding: 5px 9px; border-radius: 99px; color: var(--purple-700); background: var(--purple-100); font-size: 12px; font-weight: 700; }
.table-subline { display: block; margin-top: 4px; color: var(--muted); }
.session-track-name { display: block; margin-top: 4px; font-weight: 700; line-height: 1.4; }
.muted-text { color: var(--muted); font-size: 13px; }
.decision-control { display: flex; align-items: center; gap: 8px; min-width: 265px; }
.decision-control select { min-width: 150px; }
.decision-control .button { min-height: 36px; padding: 7px 12px; }
.reviewer-control { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.reviewer-control select { max-width: 150px; padding: 5px 7px; font-size: 12px; }
.loading-panel { color: var(--muted); text-align: center; }
.registration-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 26px; }
.registration-option { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); cursor: pointer; }
.registration-option:has(input:checked) { border-color: var(--purple-600); box-shadow: 0 0 0 2px rgba(99,23,182,.12); }
.registration-option input { margin-top: 5px; accent-color: var(--purple-700); }
.registration-option span { display: grid; }
.registration-option strong { font-size: 17px; }
.registration-option small { margin-top: 4px; color: var(--muted); }
.registration-option b { margin-top: 9px; color: var(--purple-700); font-size: 20px; }
.registration-option-disabled { opacity: .58; cursor: not-allowed; }
.registration-payment-methods { margin: 0 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #faf9fc; }
.registration-payment-methods h3 { margin: 0 0 12px; font-size: 17px; }
.registration-payment-methods > p { margin: 0; color: var(--muted); font-size: 13px; }
.registration-payment-methods > div:not(.registration-receipt-upload) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.registration-payment-option { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; }
.registration-payment-option:has(input:checked) { border-color: #a96fd2; box-shadow: 0 0 0 2px rgba(110, 39, 154, .08); }
.registration-payment-option input { margin-top: 4px; accent-color: var(--purple-700); }
.registration-payment-option > span { min-width: 0; }
.registration-payment-option small { display: block; margin-top: 2px; color: var(--purple-700); font-size: 12px; font-weight: 700; }
.payment-instructions-rich { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.payment-instructions-rich p,
.payment-instructions-rich div { margin: 0 0 4px; }
.payment-instructions-rich p:last-child,
.payment-instructions-rich div:last-child { margin-bottom: 0; }
.registration-receipt-upload { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border: 1px dashed #b998dc; border-radius: 9px; background: #fff; }
.registration-receipt-upload[hidden] { display: none; }
.registration-receipt-upload p, .registration-receipt-upload small { margin: 0; }
.registration-receipt-upload p { color: var(--purple-800); font-size: 13px; font-weight: 700; }
.registration-receipt-upload > small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.registration-receipt-upload .text-button { justify-self: start; }
.table-receipt-link { display: block; margin-top: 5px; font-size: 12px; }
.status-warning-text { color: #a96000; }
.registration-payment-checkout { margin: 0 0 24px; }
.registration-payment-checkout[hidden] { display: none; }
.registration-checkout-card { padding: 20px; border: 1px solid #c9a8e8; border-radius: 12px; background: linear-gradient(135deg, #faf6ff, #f3ecfb); }
.registration-checkout-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.registration-checkout-head h3 { margin: 4px 0 0; font-size: 19px; }
.registration-checkout-status { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.payment-result-stamp { display: inline-grid; place-items: center; min-width: 76px; height: 42px; padding: 0 8px; border: 2px solid currentColor; border-radius: 6px; font-size: 14px; font-weight: 800; letter-spacing: 1px; line-height: 1; transform: rotate(-7deg); opacity: .9; }
.payment-result-stamp.is-success { color: #279158; background: rgba(240, 255, 246, .5); }
.payment-result-stamp.is-pending { color: #d34c44; background: rgba(255, 245, 243, .5); }
.registration-checkout-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 16px 0 0; }
.registration-checkout-meta dt { color: var(--muted); font-size: 12px; }
.registration-checkout-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.checkout-amount { color: var(--purple-700); font-size: 17px; }
.registration-checkout-note { margin: 14px 0 0; color: var(--purple-800); font-size: 13px; line-height: 1.65; }
.registration-checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* 二维码面板旁的按钮保持本来高度，不随二维码拉长 */
.registration-checkout-actions > .registration-checkout-actions { align-self: center; margin-top: 0; }
.gateway-checkout { display: grid; justify-items: center; gap: 9px; width: min(100%, 280px); padding: 14px; border: 1px dashed #18a4b7; border-radius: 10px; background: #f5feff; text-align: center; }
.gateway-checkout strong { color: #087f91; font-size: 14px; }
.gateway-checkout img { width: 188px; height: 188px; padding: 8px; border-radius: 8px; background: #fff; }
.gateway-checkout small { color: var(--muted); line-height: 1.5; }
.gateway-checkout code { max-width: 100%; overflow-wrap: anywhere; color: #087f91; font-size: 11px; }
.gateway-checkout-ccb { border-color: #2f6fb8; background: #f4f8fd; }
.gateway-checkout-ccb strong { color: #1d5496; }
.gateway-checkout-ccb.is-expired { border-color: #c9962a; background: #fffaf0; }
.gateway-checkout-ccb.is-expired strong { color: #94600a; }
@media (max-width: 720px) { .registration-checkout-meta { grid-template-columns: 1fr; } }
.compact-empty { padding: 30px 15px; grid-column: 1 / -1; }
.registration-entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
/* 注册记录筛选：姓名、单位、电话、类型、支付方式、缴费状态、是否审核 + 清空按钮，宽屏一排放下，窄屏自动折行。 */
.registration-record-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px 12px; align-items: end; margin: 0 0 16px; }
.registration-record-filters .field > span { color: var(--muted); font-size: 12px; }
.registration-record-filters .field input, .registration-record-filters .field select { min-height: 38px; padding: 6px 10px; font-size: 13px; }
.registration-record-filter-actions { display: flex; align-items: end; }
.registration-record-filter-actions .button { min-height: 38px; white-space: nowrap; }
.registration-records-table tr[hidden] { display: none; }
@media (max-width: 1200px) { .registration-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-attachment-config { display: grid; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px dashed #c9b6e4; border-radius: 9px; background: #faf7fe; }
.review-attachment-config.is-approval-off { opacity: .6; }
.review-attachment-config h3 { margin: 0; font-size: 14px; }
.review-attachment-config > label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.review-attachment-config .section-heading-inline small { color: var(--muted); font-size: 12px; }
.review-attachment-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; border: 0; margin: 0; padding: 0; }
.review-attachment-formats legend { padding: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.registration-review-cell { display: grid; gap: 4px; justify-items: start; }
.review-field { align-content: start; }
.registration-review-download { justify-self: start; }
/* 编辑注册记录时，同行两列的标签与控件一律顶部对齐，避免旁边多出一行就把这一列拉低。 */
.registration-record-editor-modal .form-grid { align-items: start; }
.registration-review-attachment-view { display: grid; gap: 4px; margin: 12px 0; padding: 12px 14px; border: 1px dashed #c9b6e4; border-radius: 8px; background: #faf7fe; }
.registration-review-attachment-view > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.registration-review-attachment-view small { color: var(--muted); font-size: 12px; }
.registration-review-attachment { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border: 1px dashed #c9b6e4; border-radius: 9px; background: #faf7fe; }
.registration-review-attachment h3 { margin: 0; font-size: 15px; }
.registration-review-attachment small { color: var(--muted); font-size: 12px; }
.registration-review-attachment [data-review-attachment-state] { margin: 0; color: var(--muted); font-size: 13px; }
.registration-review-attachment .button { justify-self: start; }
.email-delivery-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.registration-entry-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 21px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); box-shadow: 0 8px 24px rgba(39, 16, 70, .04); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.registration-entry-card:hover { transform: translateY(-2px); border-color: #b998dc; box-shadow: 0 12px 28px rgba(39, 16, 70, .09); }
.registration-entry-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--purple-700), #8c3bcc); font-size: 18px; font-weight: 800; }
.registration-entry-card > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.registration-entry-card small { color: var(--purple-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.registration-entry-card strong { font-size: 19px; }
.registration-entry-card em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.5; }
.registration-entry-card b { display: grid; gap: 5px; justify-items: end; color: var(--purple-700); font-size: 12px; white-space: nowrap; }
.registration-entry-card b span { color: var(--muted); font-size: 11px; font-weight: 500; }
.admin-subpage-nav { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.admin-subpage-nav .text-button { padding: 0; }
.admin-subpage-nav strong { color: var(--ink); }
.document-template-panel { margin-top: 18px; }
.document-template-panel .panel-heading { gap: 12px; }
.document-template-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 16px 0; }
.document-template-meta div { min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.document-template-meta dt { color: var(--muted); font-size: 12px; }
.document-template-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.document-template-rules { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.document-template-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.document-template-upload { cursor: pointer; }
.document-template-upload:has(input:disabled) { opacity: .6; cursor: progress; }
.registration-settings-panel { min-width: 0; }
.registration-config-list { display: grid; gap: 13px; }
.registration-config-list-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.registration-config-card { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.registration-config-card header,
.registration-config-card footer { display: flex; justify-content: space-between; gap: 13px; align-items: center; }
.registration-config-card h3 { margin: 2px 0 0; font-size: 17px; }
.registration-config-card footer { padding-top: 12px; border-top: 1px solid var(--line); }
.registration-config-card footer > span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.compact-config-grid { gap: 12px; }
.compact-config-grid .field > span { font-size: 12px; }
.compact-config-grid input,
.compact-config-grid select,
.compact-config-grid textarea { min-width: 0; background: #fff; }
.registration-config-toggles { display: flex; flex-wrap: wrap; gap: 9px; }
.registration-config-toggles label { display: flex; gap: 7px; align-items: center; padding: 8px 10px; border-radius: 7px; background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; }
.registration-config-toggles input { accent-color: var(--purple-700); }
.registration-form-fields-panel { padding: 0; overflow: hidden; }
.registration-form-fields-head,
.registration-form-field-row { display: grid; grid-template-columns: 48px 78px minmax(150px, 1fr) minmax(260px, 2.1fr) 105px 74px; align-items: center; gap: 12px; }
.registration-form-fields-head { min-height: 52px; padding: 0 22px; color: var(--muted); background: #f7f4fa; font-size: 12px; font-weight: 700; }
.registration-form-fields-head span:nth-child(1) { grid-column: 1; }
.registration-form-fields-head span:nth-child(2) { grid-column: 2; }
.registration-form-fields-head span:nth-child(3) { grid-column: 3; }
.registration-form-fields-head span:nth-child(4) { grid-column: 4; }
.registration-form-fields-head span:nth-child(5) { grid-column: 5; }
.registration-form-fields-head span:nth-child(6) { grid-column: 6; }
.registration-form-field-row { min-height: 78px; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--surface); transition: background .16s ease, opacity .16s ease; }
.registration-form-field-row:hover { background: #fcfaff; }
.registration-form-field-row.is-hidden { background: #fafafa; }
.registration-form-field-row.is-hidden > :not(.registration-form-visibility) { opacity: .52; }
.registration-form-drag { color: #aaa4ad; font-size: 23px; cursor: grab; text-align: center; }
.registration-form-required-cell { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; }
.registration-form-required { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #cfcbd2; border-radius: 3px; color: transparent; background: #fff; font-size: 13px; font-weight: 800; }
.registration-form-required.is-required { border-color: #67af7d; color: #fff; background: #76bd87; }
.registration-form-field-label { display: grid; gap: 4px; min-width: 0; }
.registration-form-field-label strong { color: var(--ink); font-size: 15px; }
.registration-form-field-label strong i { margin-right: 3px; color: #e13f39; font-style: normal; }
.registration-form-field-label small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.registration-form-preview { display: flex; align-items: center; min-height: 43px; padding: 0 13px; border: 1px solid #e4e1e7; border-radius: 4px; color: #aaa5ad; background: #fff; font-size: 13px; }
.registration-form-preview-options { gap: 21px; overflow: hidden; white-space: nowrap; }
.registration-form-preview-options span { display: inline-flex; align-items: center; gap: 7px; color: #44404a; }
.registration-form-preview-options i { display: inline-block; width: 19px; height: 19px; border: 2px solid #c5c0ca; border-radius: 50%; }
.registration-form-preview-options i.selected { border-color: #4d96fd; box-shadow: inset 0 0 0 4px #fff; background: #4d96fd; }
.registration-form-visibility { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); font-size: 12px; }
.registration-form-visibility input { position: absolute; opacity: 0; pointer-events: none; }
.registration-form-visibility span { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #c6c3c9; transition: background .16s ease; }
.registration-form-visibility span::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; content: ''; transition: transform .16s ease; }
.registration-form-visibility input:checked + span { background: #13a2b3; }
.registration-form-visibility input:checked + span::after { transform: translateX(15px); }
.registration-form-visibility input:focus-visible + span { outline: 2px solid #7960ba; outline-offset: 2px; }
.registration-form-visibility b { min-width: 25px; font-weight: 600; }
.registration-form-row-action { width: 32px; height: 32px; margin-right: 3px; border: 0; border-radius: 6px; color: #8b878f; background: transparent; font-size: 20px; cursor: pointer; }
.registration-form-row-action:hover { color: var(--purple-700); background: #f1eafd; }
.registration-form-row-action.danger:hover { color: #d8463c; background: #fff1ef; }
.registration-form-row-actions { display: inline-flex; align-items: center; gap: 3px; }
.registration-form-field-modal { width: min(100%, 760px); }
.registration-record-editor-modal { width: min(920px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 42px)); overflow: auto; }
.registration-review-modal { width: min(560px, calc(100vw - 32px)); }
.registration-record-editor-section + .registration-record-editor-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.registration-record-editor-section h3 { margin: 0 0 13px; font-size: 16px; }
.section-heading-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading-inline h3 { margin-bottom: 13px; }
.section-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 13px; }
.registration-records-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 12px; }
.registration-records-table th,
.registration-records-table td { min-width: 0; padding: 12px 10px; overflow-wrap: anywhere; word-break: break-word; vertical-align: middle; }
.registration-records-table th:nth-child(1) { width: 6%; }
.registration-records-table th:nth-child(2) { width: 12%; }
.registration-records-table th:nth-child(3) { width: 12%; }
.registration-records-table th:nth-child(4) { width: 9%; }
.registration-records-table th:nth-child(5) { width: 8%; }
.registration-records-table th:nth-child(6) { width: 8%; }
.registration-records-table th:nth-child(7) { width: 9%; }
.registration-records-table th:nth-child(8) { width: 8%; }
.registration-records-table th:nth-child(9) { width: 8%; }
.registration-records-table th:nth-child(10) { width: 9%; }
.registration-records-table th:nth-child(11) { width: 11%; }
.registration-records-table td:nth-child(11) { padding: 12px 6px; }
.registration-records-table .table-subline { overflow-wrap: anywhere; }
.registration-records-table .config-edit-button { min-width: 0; padding: 7px 8px; font-size: 12px; white-space: nowrap; }
.registration-records-table .danger-action { margin-left: 5px; padding: 7px 8px; border: 0; border-radius: 4px; color: #fff; background: #f04c35; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.registration-records-table .danger-action:hover { background: #cf3825; }
.table-wrap:has(.registration-records-table) { overflow-x: hidden; }
.registration-form-editor-grid { align-items: start; column-gap: 14px; row-gap: 18px; }
.registration-form-editor-grid > .field { grid-template-rows: 18px 44px 18px; min-height: 94px; }
.registration-form-editor-grid > .field > span { align-self: end; line-height: 18px; }
.registration-form-editor-grid > .field > input,
.registration-form-editor-grid > .field > select { height: 44px; min-height: 44px; box-sizing: border-box; }
.registration-form-editor-grid > .field > small { min-height: 18px; margin: 0; line-height: 18px; }
.registration-form-editor-grid > .field.field-full { grid-template-rows: 18px auto; min-height: 0; }
.registration-form-editor-grid > .field.field-full > textarea { min-height: 114px; box-sizing: border-box; }
.registration-step { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.registration-step + .registration-step { margin-top: 18px; }
.registration-step-complete { border-color: #99d8c8; background: #f3fffb; }
.registration-step-heading { display: flex; align-items: flex-start; gap: 12px; }
.registration-step-heading > span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--purple-700); color: #fff; font-weight: 800; }
.registration-step-heading h3 { margin: 1px 0 3px; font-size: 18px; }
.registration-step-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.registration-step-heading.compact { margin: 0 0 8px; }
.required-mark { color: #d44940; font-style: normal; }
.registration-login-gate { padding: 18px; border: 1px dashed #c8b4dd; border-radius: 9px; background: #fff; color: var(--ink); }
.registration-login-gate p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.configuration-editor-form { padding: 0; border: 0; background: transparent; }
.config-editor-modal { width: min(100%, 760px); }
.payment-editor-modal { width: min(100%, 980px); }
.payment-instructions-field { gap: 6px; }
.rich-text-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.rich-text-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 9px; border-bottom: 1px solid var(--line); background: #f7f4fa; }
.rich-text-toolbar label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.rich-text-toolbar select { width: auto; min-width: 88px; height: 34px; min-height: 34px; padding: 5px 8px; border-radius: 6px; background: #fff; font-size: 12px; }
.rich-text-toolbar button { height: 34px; min-height: 34px; padding: 6px 10px; border: 1px solid #d7cbe1; border-radius: 6px; color: var(--ink); background: #fff; cursor: pointer; }
.rich-text-toolbar button:hover { border-color: #a96fd2; color: var(--purple-700); background: #fcf9ff; }
.rich-color-control { height: 34px; min-height: 34px; padding: 3px 7px; border: 1px solid #d7cbe1; border-radius: 6px; background: #fff; }
.rich-color-control input[type="color"] { width: 25px; height: 25px; min-height: 0; padding: 1px; border: 0; border-radius: 4px; cursor: pointer; }
/* 超链接小表单 */
.rich-link-panel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fbf8fe; }
.rich-link-panel label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rich-link-panel label > span { flex: 0 0 auto; white-space: nowrap; }
.rich-link-panel input[data-rich-link-text],
.rich-link-panel input[data-rich-link-url] { width: 170px; height: 30px; min-height: 30px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.rich-link-panel input[data-rich-link-url] { width: 240px; }
.rich-link-panel input[type="checkbox"] { width: auto; height: auto; min-height: 0; padding: 0; accent-color: var(--purple-700); }
.rich-link-panel button { height: 30px; padding: 0 12px; border: 1px solid #d7cbe1; border-radius: 5px; color: var(--ink); background: #fff; font-size: 12px; cursor: pointer; }
.rich-link-panel button.is-primary { border-color: var(--purple-600); color: #fff; background: var(--purple-600); }
.rich-text-surface { min-height: 130px; max-height: 260px; padding: 12px; overflow-y: auto; outline: 0; color: var(--ink); background: #fff; line-height: 1.6; overflow-wrap: anywhere; }
.rich-text-surface:focus { box-shadow: inset 0 0 0 2px rgba(110, 39, 154, .14); }
.rich-text-surface:empty::before { color: #9b94a0; content: attr(data-placeholder); pointer-events: none; }
.rich-text-surface p,
.rich-text-surface div { margin: 0 0 6px; }
.rich-text-surface img { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: 4px; cursor: pointer; }
/* 点选图片后给出尺寸与对齐操作（浏览器原生不支持拖拽改尺寸）。 */
.rich-text-surface img.is-selected { outline: 2px solid var(--purple-600); outline-offset: 2px; }
.rich-image-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-top: 0; background: var(--surface-soft); font-size: 12px; }
.rich-image-toolbar > span { color: var(--muted); font-weight: 700; }
.rich-image-toolbar button { height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.rich-image-toolbar button:hover { border-color: var(--purple-600); color: var(--purple-700); }
.rich-image-toolbar button.is-danger { color: #c0392b; }
.rich-image-sep { width: 1px; height: 16px; background: var(--line); margin: 0 2px; }
/* 自定义宽度的输入框和单位：不套用表单通用的 100% 宽、44px 高，和按钮一样高 */
.rich-image-toolbar input[data-rich-image-size] { width: 74px; height: 28px; min-height: 0; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.rich-image-toolbar select[data-rich-image-unit] { width: auto; height: 28px; min-height: 0; padding: 0 4px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 12px; }
.rich-text-footer { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-top: 1px solid var(--line); color: var(--muted); background: #fbfafc; font-size: 11px; line-height: 1.45; }
.rich-text-footer small { font-size: inherit; }
.rich-text-footer span { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.config-add-button,
.config-edit-button { border: 0; border-radius: 4px; color: #1976d2; background: #f2f7fd; font-weight: 700; cursor: pointer; }
.config-add-button { padding: 9px 13px; font-size: 13px; }
.config-edit-button { padding: 7px 10px; white-space: nowrap; }
/* 缺少邮箱时按钮仍可点击（点击后说明原因），用浅色提示它当前不可发送。 */
.config-edit-button.is-missing-email { color: var(--muted); background: var(--surface-soft); }
/* 拖文件上传：拖到能放的地方虚线高亮（2026-10-10「所有地方的附件上传功能，新增直接拖动上传」） */
.is-file-dragover { outline: 2px dashed var(--purple-600); outline-offset: 3px; background-color: rgba(125, 46, 208, .06); }
/* 统一住宿日期：没人选的日期可以删除（2026-10-10） */
.config-edit-button.stay-date-delete { margin-left: 6px; color: #c53030; background: #fdf0f0; }
.stay-date-unused { color: var(--muted); }
.config-add-button:hover,
.config-edit-button:hover { color: #0a5eb2; background: #e5f1fd; }
.ticket-configuration-table { min-width: 1120px; }
.ticket-configuration-table td { vertical-align: middle; }
.ticket-configuration-table td:nth-child(2) { min-width: 220px; }
.ticket-configuration-table td:nth-child(6),
.ticket-configuration-table td:nth-child(7) { min-width: 145px; white-space: nowrap; }
.sort-handle { display: inline-grid; width: 25px; height: 25px; margin-right: 3px; place-items: center; color: #667381; font-size: 18px; }
.ticket-configuration-table td:first-child small { color: var(--muted); }
.config-switch { display: inline-flex; min-width: 62px; height: 26px; padding: 3px 4px 3px 8px; align-items: center; justify-content: space-between; gap: 4px; border: 1px solid #d5d9dd; border-radius: 99px; color: #8d959c; background: #f7f7f7; font-size: 12px; line-height: 1; cursor: pointer; }
.config-switch i { width: 17px; height: 17px; order: -1; border-radius: 50%; background: #c9cdd1; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.config-switch.is-on { padding-right: 4px; padding-left: 8px; border-color: #18c979; color: #fff; background: #18c979; }
.config-switch.is-on i { order: initial; background: #fff; }
.config-switch:disabled { opacity: .55; cursor: wait; }
.configuration-empty { padding: 34px 16px !important; color: var(--muted); text-align: center; }
.payment-settings-groups { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 0; border-top: 1px solid var(--line); }
.payment-settings-groups > section { min-width: 0; padding: 23px 25px 10px 0; }
.payment-settings-groups > section + section { padding-right: 0; padding-left: 25px; border-left: 1px solid var(--line); }
.payment-settings-groups h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.payment-method-row { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.payment-method-row > div { display: flex; min-width: 0; align-items: center; gap: 18px; }
/* 栏宽不够时“修改 / 删除”整体换到下一行靠右，名称不被挤成两行 */
.payment-method-row { flex-wrap: wrap; padding: 10px 0; }
.payment-method-copy strong, .payment-gateway-state { white-space: nowrap; }
.payment-method-row > .payment-method-actions { flex: 0 0 auto; gap: 8px; margin-left: auto; }
.payment-method-delete { padding: 7px 10px; border: 0; border-radius: 4px; color: #d93a26; background: #fdf1ef; font-weight: 700; white-space: nowrap; cursor: pointer; }
.payment-method-delete:hover { color: #b42a18; background: #fbe3df; }
/* 已被参会人选过的支付方式：置灰，点了只提示原因 */
.payment-method-delete[aria-disabled="true"] { color: var(--muted); background: var(--surface-soft); cursor: not-allowed; }
.payment-method-icon { display: grid; flex: 0 0 auto; width: 27px; height: 27px; place-items: center; border-radius: 6px; color: #fff; background: #7654bb; font-size: 13px; font-weight: 800; }
.payment-icon-wechat { background: #08bf45; }
.payment-icon-alipay { background: #0799e5; }
.payment-icon-ccb { background: #0b5fae; }
.payment-icon-bank_transfer { background: #ef741d; }
.payment-icon-onsite { background: #2775cc; }
.payment-icon-manual { background: #7852b5; }
.payment-method-copy { display: grid; min-width: 0; gap: 3px; }
.payment-method-copy small { color: var(--muted); overflow-wrap: anywhere; }
.payment-gateway-state { color: #a96000 !important; font-size: 11px; font-weight: 700; }
.payment-gateway-state.is-ready { color: #198754 !important; }
.payment-settings-note { margin: 18px 0 0; }
.payment-gateway-fields { display: grid; gap: 14px; }
.payment-gateway-panel { display: grid; gap: 15px; padding: 18px; border: 1px solid #d9c6e9; border-radius: 10px; background: #faf7fd; }
.payment-gateway-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.payment-gateway-panel h3 { margin: 3px 0 0; font-size: 18px; }
.payment-gateway-panel textarea { min-height: 92px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; }
.gateway-config-status { flex: 0 0 auto; padding: 5px 9px; border-radius: 99px; color: #9b5b00; background: #fff3d9; font-size: 11px; font-weight: 800; }
.gateway-config-status.is-ready { color: #197345; background: #e3f6eb; }
.gateway-secret-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gateway-secret-actions label { display: flex; gap: 6px; align-items: center; padding: 7px 9px; border: 1px solid #eadfcf; border-radius: 7px; color: #8a5b18; background: #fffaf1; font-size: 12px; cursor: pointer; }
.gateway-secret-actions input { accent-color: #b66a00; }
.gateway-owner-note { margin: 0; padding: 13px 15px; border: 1px solid #eadfcf; border-radius: 8px; color: #82591d; background: #fffaf1; font-size: 13px; }
.review-workspace { display: grid; grid-template-columns: minmax(330px, .75fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.review-assignment { display: grid; gap: 8px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); text-align: left; }
.review-assignment + .review-assignment { margin-top: 10px; }
.review-assignment header { display: flex; justify-content: space-between; gap: 12px; }
.review-assignment p { margin: 0; color: var(--muted); }
.review-assignment footer { display: flex; gap: 8px; align-items: center; }
.review-assignment footer .button { padding: 7px 12px; }
.review-editor { position: sticky; top: 16px; }
.abstract-preview { max-height: 310px; margin-bottom: 20px; padding: 17px; overflow: auto; border-radius: 9px; background: var(--surface-soft); }
.abstract-preview h3 { margin: 0 0 8px; }
.abstract-preview p { color: var(--muted); white-space: pre-wrap; }
.abstract-preview .abstract-body-text { margin: 1em 0; color: var(--muted); }
.toast { position: fixed; z-index: 200; right: 25px; bottom: 25px; max-width: 360px; padding: 12px 17px; border-radius: 9px; color: #fff; background: #21163a; box-shadow: var(--shadow); }

@media (max-width: 1020px) {
  .nav-links a { min-width: auto; padding-inline: 12px; }
  .hero-inner { gap: 20px; }
  /* 快捷入口变窄后改成图标在上、文字在下 */
  .quick-grid { gap: 14px; }
  .quick-grid > * { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2px; padding: 20px 12px 18px; text-align: center; }
  .quick-icon { grid-row: auto; margin-bottom: 8px; }
  .quick-grid > a::after { display: none; }
  .date-grid { grid-template-columns: repeat(2, 1fr); }
  .program-filters { grid-template-columns: 1fr 1fr; }
  .filter-row:first-child { grid-column: 1 / -1; }
  .talk-list-head, .talk-row { grid-template-columns: 95px 80px minmax(220px, 1fr) 150px 150px; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .utility-inner > span { display: none; }
  .utility-inner { justify-content: flex-end; }
  .brand { display: flex; }
  .menu-toggle { display: inline-flex; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; }
  .nav-inner { position: relative; min-height: 66px; justify-content: space-between; }
  .nav-links { position: absolute; z-index: 70; top: 66px; right: 0; left: 0; display: none; padding: 8px 14px 15px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { min-height: 46px; justify-content: start; }
  .nav-links a::after { right: auto; bottom: 8px; left: 12px; width: 3px; height: 30px; }
  .hero-inner { min-height: 560px; grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .hero-copy { padding-top: 45px; }
  .hero h1 { margin-inline: auto; }
  .hero-facts, .hero-actions { justify-content: center; }
  .hero-visual { align-self: start; }
  .orbital-logo { width: 150px; height: 150px; }
  .orbital-number { font-size: 83px; }
  .hero-visual p { display: none; }
  .quick-strip { margin-top: 20px; }
  .welcome-section { grid-template-columns: 1fr; gap: 38px; }
  .welcome-section.is-notices-first { grid-template-columns: 1fr; }
  .nav-dropdown { display: grid; }
  .nav-dropdown-toggle { display: none; }
  .nav-submenu { position: static; display: grid; min-width: 0; padding: 0 0 6px 18px; border: 0; background: transparent; box-shadow: none; }
  .nav-links .nav-submenu a { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .program-toolbar { align-items: flex-end; }
  .toolbar-actions { flex: 0 0 auto; }
  .program-filters { grid-template-columns: 1fr; padding-right: 20px; }
  .filter-row:first-child { grid-column: auto; }
  .reset-filter { position: static; justify-self: start; min-width: 0; }
  /* 手机上搜索、筛选这一块太高，不钉在顶部（2026-10-09） */
  .program-sticky { position: static; margin: 0; padding: 0; }
  .talk-list-head { display: none; }
  /* 只电脑端缩小 2px（2026-10-08「我说的电脑端」）：手机的卡片样式保持 16px */
  .talk-row > *, .talk-speech-type { font-size: 16px; }
  .talk-row { grid-template-columns: 85px minmax(0, 1fr); min-height: 75px; padding: 12px 20px; line-height: inherit; }
  .program-list.compact .talk-row { min-height: 55px; padding-block: 8px; }
  .talk-time { grid-column: 1; grid-row: 1; }
  .talk-speech-type { grid-column: 1; grid-row: 2; }
  .talk-title { grid-column: 2; grid-row: 1; }
  .talk-speaker-cell { grid-column: 2; grid-row: 2; margin-top: 0; }
  .talk-affiliation-cell { grid-column: 2; grid-row: 3; margin-top: -8px; }
  .program-task-table { border: 0; overflow: visible; background: transparent; box-shadow: none; }
  .program-task-head { display: none; }
  .program-task-row { display: grid; min-width: 0; margin-bottom: 12px; padding: 14px; grid-template-columns: 105px minmax(0, 1fr); gap: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .program-task-row > * { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-column: 1 / -1; }
  .program-task-row > *::before { color: var(--muted); font-size: 12px; content: attr(data-label); }
  .session-head { grid-template-columns: 1fr; }
  .session-meta { border-top: 1px solid #ddd2e8; border-left: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 70px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 10px; }
  .admin-brand strong,
  .admin-sidebar nav button:not(.active) { font-size: 0; }
  .admin-sidebar nav button { justify-content: center; padding-inline: 8px; font-size: 0; }
  .admin-sidebar nav button span { font-size: 11px; }
  .admin-brand { justify-content: center; padding-inline: 0; }
  .back-to-site { font-size: 0; text-align: center; }
  .back-to-site::before { content: "←"; font-size: 20px; }
  .admin-grid { grid-template-columns: 1fr; }
  .registration-entry-grid, .registration-config-list-wide, .payment-settings-groups { grid-template-columns: 1fr; }
  .payment-settings-groups > section,
  .payment-settings-groups > section + section { padding: 20px 0 8px; border-left: 0; }
  .payment-settings-groups > section + section { border-top: 1px solid var(--line); }
  .admin-content { padding: 22px; }
  .talk-board { grid-template-columns: 1fr; }
  .talk-pool { position: static; }
  .speaker-picker-list { grid-template-columns: repeat(2, 1fr); }
  .admin-abstract-details { grid-template-columns: 1fr; }
  .admin-abstract-author-list li { grid-template-columns: 1fr; gap: 3px; }
  .admin-abstract-author-list li small { text-align: left; }
  .role-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-config-tabs { overflow-x: auto; }
  .portal-config-tabs button { min-width: 130px; }
  .theme-option-grid { grid-template-columns: 1fr; }
  .rich-text-editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-copy strong { font-size: 15px; }
  .hero { min-height: 535px; }
  .hero-inner { min-height: 535px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-facts { flex-wrap: wrap; justify-content: center; font-size: 14px; }
  .hero-facts span + span::before { margin-inline: 8px; }
  .hero-actions { align-items: stretch; }
  /* 手机上快捷入口只留图标和名称，一行排下 */
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-grid > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .quick-grid > * { grid-template-columns: auto minmax(0, 1fr); justify-items: start; gap: 0 10px; min-height: 0; padding: 14px; text-align: left; }
  .quick-icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 0; border-radius: 11px; font-size: 16px; }
  .quick-icon svg { width: 22px; height: 22px; }
  .quick-grid strong { font-size: 15px; }
  .quick-grid small { display: none; }
  .home-content { padding-top: 32px; }
  .welcome-section h2, .section-heading h2 { font-size: 24px; }
  .date-grid { grid-template-columns: 1fr; }
  .home-content > :not([hidden]) ~ :not([hidden]) { margin-top: 56px; }
  .countdown-card { gap: 4px 12px; min-height: 0; padding: 10px 0; }
  .countdown-copy strong { font-size: 14px; }
  .countdown-units { gap: 8px; }
  .countdown-unit b { font-size: 20px; }
  .countdown-copy small { flex-basis: 100%; padding-left: 0; border-left: 0; font-size: 12px; text-align: center; }
  .carousel-track { aspect-ratio: 16 / 9; }
  .carousel-caption { padding: 28px 16px 32px; font-size: 15px; }
  .carousel-arrow { display: none; }
  .photo-track figure { width: 220px; }
  .floating-panel { right: 10px; bottom: 16px; width: 104px; padding: 10px 8px 8px; }
  .floating-panel.is-left { left: 10px; }
  .floating-panel p { display: none; }
  .floating-panel strong { margin: 0 12px 6px 0; font-size: 12px; }
  .notice-modal { padding: 28px 22px; }
  .speaker-grid { gap: 12px; }
  .speaker-card .portrait { height: 140px; font-size: 42px; }
  .speaker-card strong, .speaker-card small { margin-inline: 13px; }
  .page-banner .shell { min-height: 175px; }
  .page-banner h1 { font-size: 34px; }
  .page-content { padding-bottom: 60px; }
  .program-toolbar { display: grid; }
  .toolbar-actions { padding-top: 0; }
  .toolbar-actions .button { flex: 1; }
  .filter-row { align-items: flex-start; flex-direction: column; }
  .filter-buttons { width: 100%; }
  .filter-buttons button { flex: 1; }
  .program-summary { flex-wrap: wrap; }
  .source-badge { width: 100%; margin-left: 0; }
  .talk-row { grid-template-columns: 1fr; gap: 3px; padding: 13px 16px; }
  .talk-time, .talk-speech-type, .talk-title, .talk-speaker-cell, .talk-affiliation-cell { grid-column: 1; grid-row: auto; margin-top: 2px; }
  .program-list.compact .talk-row { grid-template-columns: 1fr; }
  .program-list.compact .talk-speaker { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .submission-form { padding: 20px 16px; }
  .stepper strong { display: none; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .form-actions > div { justify-content: flex-end; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .profile-header { align-items: flex-start; flex-wrap: wrap; }
  .profile-header .button { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-grid article { padding: 15px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; z-index: 20; top: 0; display: block; padding: 8px 10px; overflow-x: auto; }
  .admin-brand, .back-to-site { display: none; }
  .admin-sidebar nav { display: flex; min-width: 520px; }
  .admin-sidebar nav button { flex: 1; }
  .admin-topbar { padding-inline: 14px; }
  .admin-topbar .button { display: none; }
  .admin-content { padding: 18px 14px; }
  .admin-welcome { align-items: flex-start; flex-direction: column; gap: 16px; }
  .registration-entry-grid { grid-template-columns: 1fr; }
  .registration-entry-card { grid-template-columns: auto minmax(0, 1fr); }
  .registration-entry-card b { grid-column: 2; justify-items: start; }
  .admin-actions { width: 100%; flex-wrap: wrap; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-stat-grid article { padding: 15px; }
  .admin-stat-grid strong { font-size: 24px; }
  .talk-lanes,
  .speaker-picker-list,
  .role-summary-grid,
  .member-role-picker { grid-template-columns: 1fr; }
  .talk-editor-modal,
  .member-editor-modal { padding: 24px 17px; }
  .invitation-credentials { align-items: stretch; flex-direction: column; }
  .member-security-action { align-items: stretch; flex-direction: column; }
  .email-settings-grid { grid-template-columns: 1fr; }
  .email-test-panel { position: static; }
  .speaker-modal { grid-template-columns: 1fr; padding: 28px 22px; }
  .speaker-modal .portrait { width: 100%; height: 120px; }
  .registration-options, .registration-payment-methods > div:not(.registration-receipt-upload), .review-workspace { grid-template-columns: 1fr; }
  .registration-config-card footer { align-items: stretch; flex-direction: column; }
  .registration-config-card footer .button { width: 100%; }
  .featured-people-grid { grid-template-columns: 1fr; }
  .portal-config-heading { align-items: flex-start; flex-direction: column; }
  .portal-config-tabs { padding: 0; }
  .portal-config-tabs button { min-width: 120px; padding-inline: 13px; }
  .portal-config-subpage { padding-inline: 10px; }
  .portal-navigation-list > div { grid-template-columns: 38px minmax(0, 1fr); }
  .portal-nav-visible { grid-column: 2; }
  .portal-navigation-editor { padding: 17px 13px; }
  .portal-article-body { padding: 22px 18px; }
  .content-editor-card footer { align-items: stretch; flex-direction: column; }
  .content-editor-card footer .button { width: 100%; }
  .payment-method-row { align-items: flex-start; padding: 14px 0; }
  .payment-method-row > div { flex-wrap: wrap; gap: 10px; }
  .payment-method-copy { flex-basis: calc(100% - 105px); }
  .rich-text-toolbar label:not(.rich-color-control) { flex: 1 1 120px; }
  .rich-text-toolbar select { flex: 1; }
  .rich-text-footer { align-items: flex-start; flex-direction: column; }
  .review-editor { position: static; }
  .toast { right: 14px; bottom: 14px; left: 14px; max-width: none; }
}

@media print {
  .site-header,
  .page-banner,
  .breadcrumb,
  .program-toolbar,
  .program-filters,
  .site-footer,
  .toast { display: none !important; }
  body { background: #fff; }
  .page-content { width: 100%; padding: 0; }
  .session-block { break-inside: avoid; box-shadow: none; }
  .program-day-heading { position: static; color: #000; background: #eee; }
  .program-sticky { position: static; margin: 0; padding: 0; }
}
.hotel-configuration-list { display: grid; gap: 20px; }
.talk-board-heading-actions { display: flex; align-items: center; gap: 18px; }
.talk-board-heading-actions h2 { margin: 0; }
.hotel-configuration-card { overflow: hidden; }
.hotel-configuration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hotel-subheading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hotel-subheading h3, .hotel-statistics h3 { margin: 0; }
.hotel-subheading button { border: 0; background: transparent; color: var(--primary, #0877c9); font-weight: 700; cursor: pointer; }
.hotel-statistics { margin-top: 24px; }
.hotel-statistics-table { min-width: 680px; }
.hotel-config-modal { width: min(620px, calc(100vw - 32px)); }
.stay-dates-modal { width: min(820px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px)); overflow: auto; }
.stay-dates-modal .panel-heading { padding-right: 38px; }
.hotel-config-modal form { display: grid; gap: 18px; }
.hotel-list-toolbar { display: flex; align-items: end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.hotel-list-toolbar .field { min-width: min(360px, 100%); margin: 0; }
.hotel-list-table { min-width: 920px; }
.hotel-list-table td:last-child { white-space: nowrap; }
.hotel-active-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.hotel-active-switch input { position: absolute; opacity: 0; pointer-events: none; }
.hotel-active-switch span { position: relative; width: 42px; height: 23px; border-radius: 999px; background: #b8bec8; transition: background .18s ease; }
.hotel-active-switch span::after { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .18s ease; }
.hotel-active-switch input:checked + span { background: var(--primary, #0877c9); }
.hotel-active-switch input:checked + span::after { transform: translateX(19px); }
.hotel-active-switch input:focus-visible + span { outline: 3px solid rgba(8,119,201,.24); outline-offset: 2px; }
.hotel-active-switch input:disabled + span { opacity: .55; cursor: wait; }
.hotel-active-switch b { min-width: 2em; font-size: 14px; font-weight: 600; }
.hotel-detail-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-bottom: 24px; }
.hotel-detail-toolbar h1, .hotel-detail-toolbar p { margin: 0; }
.hotel-detail-toolbar p { margin-top: 5px; color: var(--muted, #6d6a7d); }
.accommodation-date-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guest-itinerary-radio { grid-column: 1 / -1; padding: 0; margin: 0; border: 0; }
.guest-itinerary-radio legend { margin-bottom: 9px; font-weight: 700; }
.guest-itinerary-radio-options { display: flex; gap: 12px; }
.guest-itinerary-radio-options label { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 94px; height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid #dcddea; border-radius: 9px; background: #fff; cursor: pointer; }
.guest-itinerary-radio-options input { flex: 0 0 auto; width: 16px; min-width: 16px; min-height: 0; height: 16px; margin: 0; padding: 0; box-shadow: none; }
.guest-itinerary-radio-options input:focus { border-color: initial; outline: none; box-shadow: none; }
.guest-itinerary-radio-options label:has(input:focus-visible) { outline: 2px solid var(--purple-600); outline-offset: 2px; }
.guest-itinerary-radio.guest-itinerary-radio-inline { grid-column: span 1; }
.guest-itinerary-radio-inline legend { margin-bottom: 6px; }
.guest-itinerary-radio-inline .guest-itinerary-radio-options { gap: 8px; }
.guest-itinerary-radio-inline .guest-itinerary-radio-options label { min-width: 72px; }
.guest-itinerary-multiselect { display: flex; flex-wrap: wrap; gap: 8px 12px; border: 0; padding: 0; }
.guest-itinerary-multiselect legend { width: 100%; margin-bottom: 6px; font-weight: 700; }
.guest-itinerary-multiselect label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.guest-itinerary-multiselect input { width: 16px; height: 16px; margin: 0; }
.guest-itinerary-audit-filters { display: grid; gap: 18px; }
.guest-itinerary-audit-filters form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 14px; }
.guest-itinerary-audit-filters form .button { min-height: 44px; }
.guest-itinerary-audit-groups { display: flex; flex-wrap: wrap; gap: 10px; }
.guest-itinerary-audit-groups button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--muted); background: #fff; font: inherit; cursor: pointer; }
.guest-itinerary-audit-groups button:hover, .guest-itinerary-audit-groups button:focus-visible { border-color: var(--cyan-500); color: var(--cyan-700); outline: none; }
.guest-itinerary-audit-groups button.active { border-color: var(--cyan-700); color: #fff; background: var(--cyan-700); }
.guest-itinerary-audit-list { display: grid; gap: 14px; }
/* 2026-10-08「不同的人不同的背景颜色」：每位嘉宾一个浅底色 + 左侧色条（避开修改前/后的红绿） */
.guest-itinerary-audit-card { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--audit-tone-line, var(--line)); border-left: 5px solid var(--audit-tone-edge, var(--line)); border-radius: 12px; background: var(--audit-tone-bg, #fff); }
.guest-itinerary-audit-card[data-audit-tone="0"] { --audit-tone-bg: #f2f6ff; --audit-tone-line: #dce6fb; --audit-tone-edge: #6f9be0; }
.guest-itinerary-audit-card[data-audit-tone="1"] { --audit-tone-bg: #f7f2fd; --audit-tone-line: #e7dcf7; --audit-tone-edge: #a77bdc; }
.guest-itinerary-audit-card[data-audit-tone="2"] { --audit-tone-bg: #fff8e9; --audit-tone-line: #f6e5bf; --audit-tone-edge: #e2a948; }
.guest-itinerary-audit-card[data-audit-tone="3"] { --audit-tone-bg: #eef8fb; --audit-tone-line: #cfe9f0; --audit-tone-edge: #3fa9c2; }
.guest-itinerary-audit-card[data-audit-tone="4"] { --audit-tone-bg: #f3f4f8; --audit-tone-line: #dfe2ea; --audit-tone-edge: #8790a8; }
.guest-itinerary-audit-card header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.guest-itinerary-audit-card header > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.guest-itinerary-audit-card header strong { font-size: 17px; }
.guest-itinerary-audit-card time, .guest-itinerary-audit-card footer, .guest-itinerary-audit-card small { color: var(--muted); font-size: 13px; }
.guest-itinerary-audit-group-label { padding: 4px 9px; border-radius: 999px; color: var(--purple-700); background: #f1ebf8; font-size: 12px; font-weight: 700; }
/* 2026-10-08 同一嘉宾同一次保存合成一张卡片：修改者和时间在卡片头，每个字段一行，列名只写一次 */
.guest-itinerary-audit-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.guest-itinerary-audit-meta b { color: var(--ink); font-size: 14px; }
.guest-itinerary-audit-rows { display: grid; gap: 8px; }
.guest-itinerary-audit-columns, .guest-itinerary-audit-body { display: grid; grid-template-columns: minmax(120px, .78fr) minmax(180px, 1fr) 30px minmax(180px, 1fr); gap: 16px; }
.guest-itinerary-audit-columns { color: var(--muted); font-size: 12px; }
.guest-itinerary-audit-body { align-items: stretch; }
.guest-itinerary-audit-field { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.guest-itinerary-audit-field b { overflow-wrap: anywhere; }
.guest-itinerary-audit-before, .guest-itinerary-audit-after { min-width: 0; padding: 9px 13px; border-radius: 10px; }
.guest-itinerary-audit-before small, .guest-itinerary-audit-after small { display: none; }
.guest-itinerary-audit-card footer { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.guest-itinerary-audit-before { color: #a83d31; background: #fff2ef; border: 1px solid #f5d3cc; }
.guest-itinerary-audit-after { color: #14704c; background: #ebf8f1; border: 1px solid #c6e8d5; }
.guest-itinerary-audit-before p, .guest-itinerary-audit-after p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.guest-itinerary-audit-value { max-height: 5.8em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; white-space: pre-wrap; }
.guest-itinerary-audit-value.expanded { max-height: none; overflow: visible; display: block; -webkit-line-clamp: initial; }
.guest-itinerary-audit-value-toggle { margin-top: 8px; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.guest-itinerary-audit-value-toggle:hover, .guest-itinerary-audit-value-toggle:focus-visible { opacity: .75; outline: none; }
.guest-itinerary-audit-arrow { align-self: center; color: #8390a4; font-size: 20px; text-align: center; }
.guest-itinerary-audit-load-more { justify-self: center; margin-top: 22px; }
@media (max-width: 900px) {
  .hotel-configuration-grid, .accommodation-date-grid { grid-template-columns: 1fr; }
  .hotel-detail-toolbar { grid-template-columns: 1fr; align-items: start; }
  .guest-itinerary-audit-filters form, .guest-itinerary-audit-body { grid-template-columns: 1fr; }
  .guest-itinerary-audit-arrow { transform: rotate(90deg); }
  .guest-itinerary-audit-columns { display: none; }
  .guest-itinerary-audit-before small, .guest-itinerary-audit-after small { display: block; }
  .guest-itinerary-audit-before p, .guest-itinerary-audit-after p { margin-top: 5px; }
  .guest-itinerary-audit-rows { gap: 14px; }
  .guest-itinerary-audit-card { padding: 14px; border-left-width: 4px; }
  .guest-itinerary-audit-body + .guest-itinerary-audit-body { padding-top: 14px; border-top: 1px dashed var(--line); }
}
/* Unified identity review: bounded candidate list and wrapped contact values. */
[data-identity-candidates] { max-height: 220px; overflow-y: auto; margin-bottom: 20px; }
.identity-candidate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e8e2ef; }
.identity-candidate small { flex-basis: 100%; }
[data-identity-preview] .field { margin: 16px 0; }
.registered-user-table { table-layout: fixed; width: 100%; min-width: 0; }
.registered-user-table td, .registered-user-table th { overflow-wrap: anywhere; }
.registered-user-table th:last-child, .registered-user-table td:last-child { width: 15%; white-space: normal; }

/* --- 发票子系统：渠道卡片、申请表单与台账 --- */
.profile-registration-action { display: block; margin-top: 10px; }
.invoice-channel-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .invoice-channel-grid { grid-template-columns: 1fr; } }
.invoice-channel-card h3 { margin: 0; font-size: 18px; }
.invoice-service-items { margin: 12px 0 0; padding-left: 18px; color: var(--ink); font-size: 13px; line-height: 1.9; }
.invoice-service-items .text-button { margin-left: 6px; }
.invoice-apply-modal { width: min(100%, 900px); }
.invoice-special-fields { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.invoice-special-fields legend { padding: 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }
.required-mark { color: #c0392b; margin-left: 2px; }

/* 全局 AI 助手：入口 / 抽屉 / 设置 / 会话 / 消息 / 暂存附件 / 待确认变更预览。
   入口在后台顶栏，抽屉挂在 body 末尾，分区渲染不会卸载它们。 */
.ai-assistant-entry { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--purple-600); border-radius: 999px; background: #f5effc; color: var(--purple-700); font-size: 13px; font-weight: 700; cursor: pointer; }
.ai-assistant-entry:hover, .ai-assistant-entry:focus-visible { background: #ece0fa; outline: none; }
.ai-assistant { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.ai-assistant[hidden] { display: none; }
.ai-assistant-backdrop { position: absolute; inset: 0; background: rgba(23, 18, 38, .42); }
.ai-assistant-drawer { position: relative; display: flex; flex-direction: column; width: min(100%, 1320px); height: 100%; background: #fff; box-shadow: -18px 0 46px rgba(24, 18, 44, .22); }
.ai-assistant-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.ai-assistant-head h2 { margin: 4px 0 0; font-size: 20px; }
.ai-assistant-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
/* body 不整体滚动：布局吃满 head 以下的剩余高度，scope 文案固定在底部。 */
.ai-assistant-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ai-assistant-layout { display: grid; flex: 1 1 auto; min-height: 0; gap: 0; grid-template-columns: 520px minmax(0, 1fr); align-items: stretch; }
.ai-assistant-chat-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-right: 1px solid var(--line); overflow: hidden auto; }
.ai-assistant-preview-pane { min-width: 0; min-height: 0; padding: 14px 16px; overflow-y: auto; }
.ai-assistant-preview-pane .ai-assistant-proposals { margin: 0; }
/* scope 文案是左栏的收尾说明，固定在抽屉底部；两种挂载点（左栏末尾 / body 末尾）都不会被裁剪。 */
.ai-assistant-scope { flex: 0 0 auto; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.ai-assistant-body > .ai-assistant-scope { padding: 9px 16px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.ai-assistant-settings .form-actions { flex-wrap: wrap; gap: 10px; }
.ai-assistant-conversations { flex: 0 0 auto; }
.ai-assistant-chat { flex: 1 1 auto; min-height: 180px; display: flex; flex-direction: column; overflow: hidden; }
.ai-assistant-conversation-bar { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.ai-assistant-conversation-actions { display: flex; gap: 8px; }
.ai-assistant-message-list { flex: 1; min-height: 0; display: grid; gap: 10px; max-height: none; overflow-y: auto; padding-right: 4px; }
.ai-assistant-message { max-width: 88%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.ai-assistant-message.user { justify-self: end; background: #f3ecfc; border-color: #ded0f5; }
.ai-assistant-message.assistant { justify-self: start; background: #f7f8fb; }
.ai-assistant-message header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.ai-assistant-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.ai-assistant-questions { margin: 0; padding: 12px 14px; border: 1px solid #f0d9ad; border-radius: 10px; background: #fffaf0; color: #8a5a00; font-size: 13px; }
.ai-assistant-questions ul { margin: 8px 0 0; padding-left: 18px; }
.ai-assistant-questions li { margin: 4px 0; line-height: 1.6; }
.ai-assistant-file-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ai-assistant-file-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.ai-assistant-file-name { font-weight: 700; overflow-wrap: anywhere; }
.ai-assistant-file-note { flex-basis: 100%; overflow-wrap: anywhere; color: #8a5a00; }
.ai-assistant-attachments { flex: 0 0 auto; }
.ai-assistant-attachments .panel-heading { margin-bottom: 8px; }
.ai-assistant-attachments .panel-heading h2 { font-size: 15px; }
.ai-assistant-attachments .panel-heading .section-kicker { margin: 0 0 1px; font-size: 10px; letter-spacing: .08em; }
.ai-assistant-upload { display: grid; gap: 6px; }
.ai-assistant-upload .field { gap: 4px; }
.ai-assistant-upload .field > span { font-size: 12px; }
.ai-assistant-upload .form-note { margin: 0; font-size: 12px; }
.ai-assistant-composer-wrap { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 0; }
.ai-assistant-composer { flex: 0 0 auto; display: grid; gap: 10px; }
.ai-assistant-composer-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ai-assistant-composer textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; line-height: 1.6; }
.ai-assistant-action-list { display: grid; gap: 14px; }
.ai-assistant-action-group h3 { margin: 0 0 8px; font-size: 15px; }
.ai-assistant-action { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.ai-assistant-action.is-selected { border-color: var(--purple-600); background: #f8f4fe; }
.ai-assistant-action-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; cursor: pointer; }
.ai-assistant-action-title { font-weight: 700; }
.ai-assistant-action-warning { margin: 9px 0 0; padding: 8px 10px; border: 1px solid #f0d9ad; border-radius: 8px; background: #fffaf0; color: #8a5a00; font-size: 13px; }
.ai-assistant-action-error { margin: 9px 0 0; overflow-wrap: anywhere; }
.ai-assistant-action-deps, .ai-assistant-impact { margin: 9px 0 0; }
.ai-assistant-diff { width: 100%; margin: 10px 0 0; border-collapse: collapse; font-size: 13px; }
.ai-assistant-diff th, .ai-assistant-diff td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ai-assistant-diff th { color: var(--muted); font-size: 12px; font-weight: 700; }
.ai-assistant-proposals-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ai-assistant-proposals-foot button[disabled] { cursor: not-allowed; opacity: .6; }
/* 第二批：确认写入按钮与「已执行 / 未执行」结果提示（写操作需要二次确认）。 */
.ai-assistant-proposals-foot [data-ai-assistant-confirm] { min-width: 132px; }
.ai-assistant-proposals-foot [data-ai-assistant-confirm-note] { flex: 1 1 260px; }
.ai-assistant-confirm-summary { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.ai-assistant-action.is-applied { border-color: #b7dfc2; background: #f3fbf5; }
.ai-assistant-action.is-skipped { border-style: dashed; }
@media (max-width: 900px) {
  .ai-assistant-body { overflow-y: auto; }
  .ai-assistant-layout { flex: 0 0 auto; height: auto; grid-template-columns: 1fr; }
  .ai-assistant-chat-pane { overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .ai-assistant-preview-pane { overflow: visible; }
  .ai-assistant-chat { min-height: 0; }
  .ai-assistant-message-list { max-height: 42vh; }
  .ai-assistant-conversation-bar { grid-template-columns: 1fr; }
}
/* 桌面（>900px）左栏纵向空间分配：对话列表 / 消息 / 输入框 + 附件 + 发送 / 说明原本都是
   「固定高度 + 各自 23px 内边距」，消息区被挤到只剩一条消息的零头。这里只压缩固定块的
   内边距与行距，并给消息列表 280px 的可视下限（它自己仍然 overflow-y: auto 独立滚动），
   抽屉剩余高度继续由消息区吃掉；上传控件、帮助文案与暂存附件一个都不隐藏，附件列表超出
   高度时自己内部滚动。<=900px 的单列布局完全走上面的规则，不受这里影响。 */
@media (min-width: 901px) {
  .ai-assistant-head { padding: 12px 20px 10px; }
  .ai-assistant-chat-pane { gap: 8px; padding: 10px 14px; }
  .ai-assistant-conversations { padding: 10px 12px; }
  .ai-assistant-conversations .panel-heading { margin-bottom: 6px; }
  .ai-assistant-conversations .panel-heading h2 { font-size: 16px; }
  .ai-assistant-conversation-bar { gap: 8px; align-items: center; }
  .ai-assistant-conversation-bar .field { gap: 3px; }
  .ai-assistant-conversation-bar .field > span { font-size: 12px; }
  .ai-assistant-conversation-bar select { min-height: 34px; padding: 5px 10px; }
  .ai-assistant-chat { min-height: 340px; padding: 10px 12px; }
  .ai-assistant-chat .panel-heading { margin-bottom: 6px; }
  .ai-assistant-chat .panel-heading h2 { font-size: 16px; }
  .ai-assistant-message-list { min-height: 280px; gap: 8px; }
  .ai-assistant-composer { gap: 6px; }
  .ai-assistant-composer .field { gap: 3px; }
  .ai-assistant-composer .field > span { font-size: 12px; }
  .ai-assistant-composer textarea { padding: 7px 9px; line-height: 1.5; }
  .ai-assistant-attachments { padding: 10px 12px; }
  .ai-assistant-attachments .panel-heading { margin-bottom: 5px; }
  .ai-assistant-attachments .panel-heading h2 { font-size: 14px; }
  .ai-assistant-upload { gap: 3px; }
  .ai-assistant-upload .field { grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
  .ai-assistant-upload .field input { min-height: 32px; padding: 3px 8px; font-size: 12px; }
  .ai-assistant-upload .form-note { font-size: 11px; line-height: 1.45; }
  .ai-assistant-file-list { gap: 5px; margin-top: 6px; max-height: 132px; overflow-y: auto; }
  .ai-assistant-file-list li { padding: 5px 8px; gap: 8px; }
  .ai-assistant-file-name { font-size: 13px; }
  .ai-assistant-composer-actions { gap: 8px; }
  .ai-assistant-composer-actions .button { min-height: 36px; padding: 7px 15px; }
  .ai-assistant-scope { padding-top: 5px; font-size: 11px; line-height: 1.45; }
}

/* ============ 嘉宾行程工作台：一份数据，多种看法 ============ */
.guest-ws { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.guest-ws-stage { min-width: 0; }
.guest-ws-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.guest-ws-viewpicker { position: relative; }
.guest-ws-viewpicker > summary { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; list-style: none; cursor: pointer; background: var(--purple-100); color: var(--purple-700); font-size: 13px; white-space: nowrap; }
.guest-ws-viewpicker > summary::-webkit-details-marker { display: none; }
.guest-ws-viewpicker > summary::after { content: "▾"; font-size: 11px; }
.guest-ws-viewpicker > summary span { color: var(--muted); }
.guest-ws-viewpicker > summary small { padding: 1px 6px; border-radius: 999px; color: var(--orange); background: var(--orange-soft); font-size: 11px; }
.guest-ws-viewpanel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.1fr); gap: 16px; width: min(820px, 92vw); padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 20px 50px rgba(31, 15, 58, .18); }
.guest-ws-viewcol h4, .guest-ws-saveview h4 { margin: 0 0 6px; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.guest-ws-viewcol h4 + ul { margin-bottom: 12px; }
.guest-ws-viewcol ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.guest-ws-viewcol button { display: grid; width: 100%; padding: 6px 9px; border: 0; border-radius: 8px; text-align: left; background: transparent; cursor: pointer; line-height: 1.4; font: inherit; }
.guest-ws-viewcol button:hover { background: var(--surface-soft); }
.guest-ws-viewcol button[aria-pressed="true"] { background: var(--purple-100); color: var(--purple-700); font-weight: 700; }
.guest-ws-viewcol button span { font-size: 13px; }
.guest-ws-viewcol button small { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.guest-ws-saveview { display: grid; align-content: start; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.guest-ws-saveview input[name="name"] { min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.guest-ws-saveview label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.guest-ws-saveview-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.guest-ws-saveview-actions .button { min-height: 32px; padding: 0 10px; font-size: 12px; }
.guest-ws-danger { color: var(--danger) !important; }
.guest-ws-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-soft); overflow-x: auto; max-width: 100%; }
.guest-ws-tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.guest-ws-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--purple-700); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.guest-ws-search { position: relative; display: flex; flex: 1 1 200px; min-width: 160px; }
.guest-ws-search svg { position: absolute; top: 9px; left: 9px; width: 16px; height: 16px; color: var(--muted); }
.guest-ws-search input { width: 100%; min-height: 34px; padding: 5px 10px 5px 31px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; }
.guest-ws-groupby { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.guest-ws-groupby select, .guest-ws-builder select, .guest-ws-builder input, .guest-ws-pivotbar select { min-height: 32px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font: inherit; font-size: 13px; }
.guest-ws-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.guest-ws-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.guest-ws-chips, .guest-ws-conds { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.guest-ws-chip { height: 28px; padding: 0 10px; border: 1px dashed #d5cce3; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.guest-ws-chip[aria-pressed="true"] { border-style: solid; border-color: var(--purple-600); background: var(--purple-100); color: var(--purple-700); font-weight: 700; }
.guest-ws-cond { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 3px 0 10px; border-radius: 999px; background: var(--cyan-100); color: var(--cyan-700); font-size: 12.5px; }
.guest-ws-cond button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.guest-ws-builder { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.guest-ws-builder .button { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.guest-ws-count { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.guest-ws-count b { color: var(--ink); font-size: 15px; }
.guest-ws-muted { color: var(--muted); font-size: 12.5px; }
.guest-ws-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.guest-ws-empty { padding: 36px 12px; color: var(--muted); text-align: center; }
.guest-ws-todo { color: var(--orange); font-weight: 700; }
.guest-ws-grow { flex: 1; }
.guest-ws-pill { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 999px; background: var(--purple-100); color: var(--purple-700); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.guest-ws-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 4px; }
.guest-ws-mark { display: inline-block; padding: 0 5px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.guest-ws-mark.is-done { color: var(--green); background: var(--green-soft); }
.guest-ws-mark.is-todo { color: var(--orange); background: var(--orange-soft); }
.guest-ws-mark.is-off { color: var(--muted); background: var(--surface-soft); }

/* 表格 */
.guest-ws-gridbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 8px; font-size: 13px; }
.guest-ws-gridbar .text-button { font-size: 13px; }
.guest-ws-selection { display: inline-flex; gap: 10px; }
.guest-ws-table-wrap { max-height: min(70vh, 760px); border: 1px solid var(--line); border-radius: 12px; }
.guest-itinerary-table.guest-ws-table { width: max-content; min-width: 100%; }
.guest-ws-table .guest-ws-sel { position: sticky; left: 0; width: 40px; min-width: 40px; max-width: 40px; text-align: center; }
.guest-ws-table thead .guest-ws-sel { z-index: 7; background: var(--surface-soft); }
.guest-ws-table tbody .guest-ws-sel { z-index: 3; background: #fff; }
.guest-ws-table .guest-itinerary-frozen-name { left: 40px; min-width: 150px; }
.guest-ws-table th button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; }
.guest-ws-table .guest-itinerary-group-header th button:hover { text-decoration: underline; }
.guest-ws-table .guest-ws-group-collapsed { min-width: 150px; background: #f3eefa; }
.guest-ws-sort:hover { color: var(--purple-700); }
.guest-ws-sortmark { margin-left: 3px; color: var(--purple-700); }
.guest-ws-table td.guest-ws-summary { max-width: 260px; min-width: 150px; overflow: hidden; color: #3d3650; background: #fcfbfe; white-space: nowrap; text-overflow: ellipsis; }
.guest-ws-name { padding: 0; border: 0; background: none; color: var(--purple-700); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(125, 46, 208, .3); text-underline-offset: 3px; cursor: pointer; }
.guest-ws-grouprow td { position: sticky; left: 0; padding: 7px 12px !important; background: #f3eefa !important; color: var(--purple-700); font-size: 13px; }

/* 嘉宾卡看法 */
.guest-ws-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.guest-ws-cards-head { grid-column: 1 / -1; margin: 10px 0 -2px; color: var(--purple-700); font-size: 14px; }
.guest-ws-card { display: grid; align-content: start; gap: 9px; padding-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s; }
.guest-ws-card:hover, .guest-ws-card:focus-visible { border-color: var(--purple-600); transform: translateY(-2px); outline: none; }
.guest-ws-card.is-absent { opacity: .65; }
.guest-ws-card-top { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #2a0657, #5a18a8); }
.guest-ws-card-top .guest-ws-pill { color: #3b2600; background: var(--gold); }
.guest-ws-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 18px; font-weight: 700; }
.guest-ws-card-id { display: grid; min-width: 0; }
.guest-ws-card-id b { font-size: 16px; }
.guest-ws-card-id small { overflow: hidden; opacity: .8; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.guest-ws-card-tasks { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0 14px; list-style: none; }
.guest-ws-card-tasks li { padding: 1px 7px; border-radius: 6px; background: var(--surface-soft); font-size: 11.5px; }
.guest-ws-card-tasks b { margin-right: 4px; color: var(--purple-700); }
.guest-ws-card-lines { display: grid; gap: 6px; margin: 0; padding: 0 14px; list-style: none; font-size: 12.5px; line-height: 1.45; }
.guest-ws-card-lines li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; }
.guest-ws-card-lines svg { width: 16px; height: 16px; margin-top: 1px; color: var(--cyan-500); }
.guest-ws-card-lines em { margin-right: 6px; color: var(--muted); font-style: normal; }
.guest-ws-card-absent { margin: 0; padding: 0 14px; color: var(--muted); font-size: 13px; }
.guest-ws-card-foot { padding: 0 14px; }
.guest-ws-card-foot .guest-ws-marks { justify-content: flex-start; }

/* 接送时间轴 */
.guest-ws-transferbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.guest-ws-datetabs { display: flex; flex-wrap: wrap; gap: 5px; }
.guest-ws-datetabs button { display: inline-grid; justify-items: center; min-width: 74px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1.3; }
.guest-ws-datetabs button small { color: var(--muted); font-size: 11px; font-weight: 400; }
.guest-ws-datetabs button[aria-pressed="true"] { border-color: var(--purple-600); background: var(--purple-100); color: var(--purple-700); }
.guest-ws-timeline { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.guest-ws-timeline-inner { min-width: 880px; padding-right: 30px; }
.guest-ws-filters .text-button { font-size: 13px; }
.guest-card-form .guest-itinerary-radio legend { font-size: 13px; }
.guest-card-form .guest-itinerary-radio-options label { padding: 4px 10px; }
.guest-card-form .field > span { font-size: 13px; }
.guest-ws-axis, .guest-ws-lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.guest-ws-axis > div:first-child { border-right: 1px solid var(--line); background: var(--surface-soft); }
.guest-ws-ticks { position: relative; height: 30px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.guest-ws-ticks span { position: absolute; top: 7px; color: var(--muted); font-size: 12px; transform: translateX(-50%); }
.guest-ws-lane { border-bottom: 1px solid var(--line); }
.guest-ws-lane:last-child { border-bottom: 0; }
.guest-ws-lane-name { display: grid; align-content: center; padding: 8px 10px; border-right: 1px solid var(--line); background: var(--surface-soft); font-size: 13px; }
.guest-ws-lane-name small { color: var(--muted); font-size: 12px; }
.guest-ws-lane-track { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 60px 100%; }
.guest-ws-dot { position: absolute; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border: 1px solid #d5cce3; border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 11.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transform: translateX(-4px); }
.guest-ws-dot i { color: var(--muted); font-style: normal; font-weight: 400; }
.guest-ws-dot.is-needed { border-color: transparent; background: var(--purple-100); color: var(--purple-700); }
.guest-ws-dot:hover { z-index: 2; border-color: var(--purple-600); }
.guest-ws-trip { position: absolute; height: 4px; border-radius: 2px; background: var(--cyan-500); }
.guest-ws-trips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.guest-ws-tripchip { padding: 4px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 12.5px; }
.guest-ws-tripchip b { margin-right: 5px; color: var(--cyan-700); }

/* 住宿日历 */
.guest-ws-stay-wrap { border: 1px solid var(--line); border-radius: 12px; }
.guest-ws-stay { width: 100%; }
.guest-ws-stay th, .guest-ws-stay td { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
.guest-ws-stay .n { width: 76px; text-align: center; }
.guest-ws-stay th small, .guest-ws-stay td small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.guest-ws-stay-hotel td { background: #f3eefa; color: var(--purple-700); }
.guest-ws-stay-total td { background: var(--purple-100); font-weight: 700; }
.guest-ws-night { display: inline-block; width: 28px; height: 14px; border-radius: 4px; background: var(--surface-soft); vertical-align: middle; }
.guest-ws-night.is-on { background: var(--purple-600); }
.guest-ws-night.is-off { background: #e6e0ee; }
.guest-ws-night.is-blank { border: 1px dashed #d5cce3; background: transparent; }
.guest-ws-unassigned { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 12px; }

/* 进度看板 */
.guest-ws-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.guest-ws-col { display: flex; flex-direction: column; gap: 8px; min-height: 200px; padding: 10px; border-radius: 12px; background: var(--surface-soft); }
.guest-ws-col h4 { display: flex; justify-content: space-between; margin: 0; font-size: 13px; }
.guest-ws-col h4 b { color: var(--muted); }
.guest-ws-kcard { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; font: inherit; font-size: 12.5px; cursor: pointer; }
.guest-ws-kcard strong { font-size: 13.5px; }
.guest-ws-kcard small { color: var(--muted); }
.guest-ws-kcard:hover { border-color: var(--purple-600); }

/* 自由统计 */
.guest-ws-pivotbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; font-size: 13px; }
.guest-ws-pivotbar label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.guest-ws-pivotbar .guest-ws-download { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.guest-ws-pv-wrap { border: 1px solid var(--line); border-radius: 12px; }
.guest-ws-pv th, .guest-ws-pv td { padding: 7px 10px; border-right: 1px solid var(--line); font-size: 13px; text-align: right; white-space: nowrap; }
.guest-ws-pv th:first-child { text-align: left; }
.guest-ws-pv td.guest-ws-pv-zero { color: #c9c2d6; }
.guest-ws-pv-cell button { padding: 2px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.guest-ws-pv-cell button:hover, .guest-ws-pv-cell.is-active button { background: var(--purple-100); color: var(--purple-700); }
.guest-ws-pv-total th, .guest-ws-pv-total td { background: var(--surface-soft); }
.guest-ws-drill { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.guest-ws-drill-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.guest-ws-drill-head .button { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.guest-ws-drill-names { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.guest-ws-drill-names button { height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font: inherit; font-size: 12.5px; cursor: pointer; }

/* 顶部“更多操作” */
.guest-ws-more { position: relative; }
.guest-ws-more > summary { list-style: none; cursor: pointer; }
.guest-ws-more > summary::-webkit-details-marker { display: none; }
.guest-ws-more-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; display: grid; gap: 4px; min-width: 150px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 40px rgba(31, 15, 58, .16); }
.guest-ws-more-menu .button { justify-content: flex-start; width: 100%; }

/* 嘉宾卡抽屉 */
.guest-card-scrim { position: fixed; inset: 0; z-index: 159; background: rgba(18, 8, 31, .35); }
.guest-card-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; display: flex; flex-direction: column; width: min(480px, 100%); background: var(--surface); box-shadow: -20px 0 50px rgba(15, 5, 29, .25); }
.guest-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.guest-card-head .button { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.guest-card-body { flex: 1; overflow-y: auto; padding: 14px 16px 28px; }
.guest-card-kv { display: grid; gap: 6px; padding: 16px; border-radius: 16px; color: #fff; background: radial-gradient(110% 90% at 100% 0%, rgba(23, 180, 196, .3), transparent 55%), linear-gradient(140deg, #1d0240, #35046c 55%, #4b0a91); }
.guest-card-kv-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 12px; opacity: .9; }
.guest-card-kv-top .guest-ws-pill { color: #3b2600; background: var(--gold); }
.guest-card-kv h3 { margin: 0; font-size: 22px; }
.guest-card-kv h3 small { margin-left: 8px; padding: 1px 6px; border-radius: 6px; background: #fff1a8; color: #5b3a00; font-size: 11px; }
.guest-card-kv p { margin: 0; font-size: 13px; opacity: .88; }
.guest-card-contact { font-size: 12.5px !important; }
.guest-card-tasks { display: grid; gap: 5px; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .09); font-size: 12.5px; }
.guest-card-tasks b { margin-right: 5px; color: #7fe3ee; }
.guest-card-tasks small { display: block; opacity: .8; }
.guest-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.guest-card-actions .button { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.guest-card-title { margin: 16px 0 4px; font-size: 14px; }
.guest-journey { display: grid; margin: 8px 0 4px; padding: 0; list-style: none; }
.guest-journey li { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
.guest-journey li::before { content: ""; position: absolute; top: 5px; left: 67px; width: 10px; height: 10px; border: 2.5px solid var(--cyan-500); border-radius: 50%; background: var(--surface); }
.guest-journey li::after { content: ""; position: absolute; top: 19px; bottom: 0; left: 72px; width: 2px; background: #d5cce3; }
.guest-journey li:last-child::after { display: none; }
.guest-journey-task::before { border-color: var(--purple-600) !important; }
.guest-journey-stay::before { border-color: var(--gold) !important; }
.guest-journey li.is-gap::before { border-style: dashed; border-color: var(--orange) !important; }
.guest-journey li.is-gap .guest-journey-what { color: var(--orange); font-weight: 700; }
.guest-journey-when { display: grid; font-size: 14px; font-weight: 700; line-height: 1.3; }
.guest-journey-when small { color: var(--muted); font-size: 11px; font-weight: 400; }
.guest-journey-what { display: grid; padding-left: 22px; font-size: 13.5px; line-height: 1.5; }
.guest-journey-what small { color: var(--muted); font-size: 12px; }
.guest-journey-note { color: var(--cyan-700) !important; }
.guest-journey-empty { color: var(--muted); }
.guest-card-sect { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.guest-card-sect h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 14px; }
.guest-card-sect h4 span { display: inline-flex; gap: 10px; }
.guest-card-sect h4 .text-button { font-size: 12.5px; }
.guest-card-sect dl { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 5px 10px; margin: 0; font-size: 13px; }
.guest-card-sect dt { color: var(--muted); }
.guest-card-sect dd { margin: 0; overflow-wrap: anywhere; }
.guest-card-longtext { display: block; max-height: 9.5em; overflow: auto; white-space: pre-wrap; }
/* 2026-10-08 公开日程页点嘉宾姓名弹出的嘉宾卡（和后台嘉宾卡同一套样式），板块由日程显示配置决定 */
.speaker-card-modal { position: relative; display: grid; width: min(100%, 820px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 52px 28px 28px; border-radius: 16px; background: var(--surface); box-shadow: 0 30px 80px rgba(15,5,29,.35); }
.speaker-card-modal .modal-close { top: 8px; right: 10px; }
.speaker-card-kv { gap: 10px; }
/* 2026-10-09 嘉宾卡顶部换成按简介模板排的人物卡，任务放进“会议任务”选项卡 */
.speaker-card-modal:has(.speaker-card-bio) { width: min(100%, 960px); }
.speaker-card-bio .bio-card-frame { margin: 0 0 4px; }
.speaker-card-bio-tools { margin-bottom: 6px; }
.speaker-card-bio-tools .speaker-card-panel-tools { display: flex; justify-content: flex-end; }
.speaker-card-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.speaker-card-tasks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.speaker-card-tasks li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.6; }
.speaker-card-tasks b { flex: 0 0 auto; padding: 1px 8px; border-radius: 6px; color: var(--purple-700); background: var(--purple-100); font-size: 13px; }
.speaker-card-tasks small { display: block; color: var(--muted); font-size: 13px; }
.speaker-card-head { display: flex; align-items: center; gap: 14px; }
.speaker-card-head h3 { font-size: 28px; }
.speaker-card-head p { margin-top: 6px; font-size: 15px; }
.speaker-card-modal .guest-card-tasks { font-size: 14px; }
.speaker-card-photo { flex: 0 0 auto; width: 84px; height: 104px; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, .16); }
.speaker-card-initial { display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 700; }
.speaker-card-modal .guest-card-longtext { max-height: none; }
.speaker-card-empty { margin: 0; color: var(--muted); font-size: 14px; }
/* 2026-10-08 嘉宾卡的各个板块做成选项卡（和短信中心同一套下划线样式）；放一排不换行（「选项卡放一排，不要换行」），
   放不下时横向滑动：不显示滚动条，右边渐隐提示还有，滚轮也能左右滚 */
/* 弹窗是网格布局：内容区不许被一排不换行的选项卡撑宽，选项卡自己横向滚动 */
.speaker-card-body { min-width: 0; }
.speaker-card-tabbed { min-width: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.speaker-card-tabs { flex-wrap: nowrap; min-height: 0; padding: 0 6px; overflow-x: auto; overflow-y: hidden; border-radius: 12px 12px 0 0; background: #fafafa; scrollbar-width: none; }
.speaker-card-tabs::-webkit-scrollbar { display: none; }
.speaker-card-tabs.has-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.speaker-card-tabs button.active::after { bottom: 0; }
.speaker-card-tabs button { flex: 0 0 auto; min-width: 0; min-height: 46px; padding: 0 16px; color: var(--muted); font: inherit; font-size: 15px; white-space: nowrap; }
.speaker-card-tabs button:focus-visible { outline: 2px solid var(--purple-600); outline-offset: -2px; }
.speaker-card-panel { padding: 18px 20px 20px; }
.speaker-card-panel dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.speaker-card-panel dt { color: var(--muted); }
.speaker-card-panel dd { margin: 0; overflow-wrap: anywhere; }
.speaker-card-panel .guest-journey { margin: 0; }
@media (max-width: 600px) {
  .speaker-card-modal { padding: 44px 14px 16px; }
  .speaker-card-modal .speaker-card-panel dl { grid-template-columns: 1fr; gap: 2px; }
  .speaker-card-modal .speaker-card-panel dd { margin-bottom: 6px; }
  .speaker-card-tabs button { padding: 0 12px; }
}
.display-settings-sections { display: grid; gap: 10px; margin: 12px 0 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.display-settings-sections-title { display: grid; gap: 4px; margin: 0; }
.display-settings-sections-title small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.display-settings-section-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.display-settings-section { display: grid; align-content: start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.display-settings-section:has(.display-settings-section-head input:checked) { border-color: var(--purple-600); background: #f7f3fd; }
.display-settings-section-head { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.display-settings-section input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--purple-700); }
.display-settings-section b { font-size: 14px; }
/* 板块里的字段：板块没勾时淡一些 */
.display-settings-field-list { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-left: 25px; }
.display-settings-section:not(:has(.display-settings-section-head input:checked)) .display-settings-field-list { opacity: .5; }
.display-settings-field { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 12.5px; cursor: pointer; }
.display-settings-field input { width: 14px; height: 14px; }
.speaker-card-muted { color: var(--muted); }
/* 2026-10-09 嘉宾卡上的“修改”：有嘉宾行程权限的工作人员才看得到 */
.speaker-card-panel-tools { display: flex; justify-content: flex-end; margin: -6px 0 6px; }
.speaker-card-panel-tools .button { min-height: 32px; padding: 4px 14px; font-size: 13px; }
/* 后台嘉宾卡（窄抽屉）的表单是一列，这里弹窗宽，排两列；选择器写具体些，压过 .guest-card-form 的一列 */
.speaker-card-modal .speaker-card-form .guest-itinerary-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.speaker-card-form .guest-itinerary-fields > * { min-width: 0; }
.speaker-card-form .form-actions { justify-content: flex-end; margin-top: 14px; }
@media (max-width: 600px) { .speaker-card-modal .speaker-card-form .guest-itinerary-fields { grid-template-columns: 1fr; } }
.display-settings-section em { margin-left: 6px; padding: 0 6px; border-radius: 4px; color: #8a5a00; background: #fff3d6; font-size: 11px; font-style: normal; font-weight: 600; }
.display-settings-section small { padding-left: 25px; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.guest-card-stay { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.guest-card-form { display: grid; gap: 10px; }
.guest-card-form .guest-itinerary-fields { grid-template-columns: 1fr; }
.guest-card-form .form-actions { margin-top: 4px; padding-top: 10px; }
.guest-card-conflict { margin: 0; padding: 9px 12px; border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; background: var(--orange-soft); color: #6b3a00; font-size: 13px; line-height: 1.6; }
.guest-card-history { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.guest-card-history li { padding: 6px 8px; border-radius: 8px; background: var(--surface-soft); }
.guest-card-history .from { color: var(--danger); text-decoration: line-through; }
.guest-card-history .to { color: var(--green); font-weight: 700; }
.guest-card-history small { display: block; color: var(--muted); }
.guest-card-check { display: flex; align-items: center; gap: 8px; font-weight: 700; }

/* 住宿小窗口 */
.guest-accommodation-modal { width: min(100%, 640px); }
.guest-accommodation-nights { margin: 0; padding: 0; border: 0; }
.guest-accommodation-nights legend { margin-bottom: 8px; font-weight: 700; }
.guest-accommodation-night-list { display: flex; flex-wrap: wrap; gap: 8px; }
.guest-accommodation-night-list label { position: relative; }
.guest-accommodation-night-list input { position: absolute; opacity: 0; }
.guest-accommodation-night-list span { display: grid; justify-items: center; min-width: 76px; padding: 7px 10px; border: 1px solid #d5cce3; border-radius: 10px; line-height: 1.3; cursor: pointer; }
.guest-accommodation-night-list small { color: var(--muted); font-size: 12px; }
.guest-accommodation-night-list input:checked + span { border-color: var(--purple-600); background: var(--purple-100); color: var(--purple-700); }
.guest-accommodation-night-list input:focus-visible + span { outline: 3px solid rgba(125, 46, 208, .28); outline-offset: 2px; }

.guest-ws-default { margin-left: 6px; padding: 0 5px; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: 11px; font-style: normal; font-weight: 700; }
.guest-ws-defaultrow { padding-top: 8px; border-top: 1px dashed var(--line); }
.guest-ws-defaultrow .text-button { font-size: 12.5px; text-align: left; }

@media (max-width: 900px) {
  .guest-ws-viewpanel { grid-template-columns: 1fr; }
  .guest-ws-saveview { padding-left: 0; border-left: 0; }
  .guest-ws-count { margin-left: 0; }
}

/* ============ 出席状态：嘉宾行程页上的答复同步到日程编排（报告卡片右下角 / 分会标题） ============ */
.task-attendance-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; cursor: pointer; color: var(--muted); background: var(--surface-soft); }
.task-attendance-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.task-attendance-chip.is-confirmed { color: var(--green); background: var(--green-soft); }
.task-attendance-chip.is-pending { color: var(--orange); background: var(--orange-soft); }
.task-attendance-chip.is-adjusting { color: var(--cyan-700); background: var(--cyan-100); }
.task-attendance-chip.is-declined, .task-attendance-chip.is-absent { color: var(--danger); background: #fbe9ea; }
.talk-card-actions .task-attendance-chip { margin-left: auto; padding: 2px 9px; }
.talk-card-actions .task-attendance-chip::before { content: ""; margin-right: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.task-attendance-modal { width: min(100%, 680px); }
.task-attendance-rows { display: grid; gap: 12px; margin-top: 12px; }
.task-attendance-row { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.task-attendance-row header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-attendance-row header strong small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.task-attendance-note { margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; line-height: 1.6; background: var(--surface-soft); }
/* 嘉宾卡：嘉宾在行程页选“无法出席”时写的说明（2026-10-10） */
.guest-card-absent-note { margin: 8px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-attendance-form { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.task-attendance-form .field { margin: 0; }
@media (max-width: 640px) { .task-attendance-form { grid-template-columns: 1fr; } }

/* ============ 嘉宾行程页设置：页头说明文字与页面配色 ============ */
.guest-page-settings form { display: grid; gap: 18px; }
/* 分选项卡（2026-10-11）：沿用门户内容的选项卡样式；切换时用 hidden 藏起其他项（这里的 grid / flex 不能盖过 hidden） */
.guest-page-settings-shell .portal-config-body { padding: 24px; }
.guest-page-settings-shell [hidden] { display: none !important; }
.guest-page-settings-pane { display: grid; gap: 18px; }
/* 短信草稿表头右侧：条数 + “导出 Excel”（2026-10-11） */
.sms-drafts-head-side { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; }
/* 邀请函模板（2026-10-11）：报告、主持两份并排 */
.invitation-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 12px; }
.invitation-template-card { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.invitation-template-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invitation-template-head h3 { margin: 0; font-size: 16px; }
.invitation-template-page { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.invitation-template-empty { display: grid; place-items: center; aspect-ratio: 210 / 297; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); background: #fafafa; }
.invitation-template-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.invitation-template-actions label.button { cursor: pointer; }
.invitation-template-error { color: #c0392b; }
.guest-page-preview { display: grid; gap: 6px; padding: 22px 24px; border-radius: 16px; color: #fff; box-shadow: 0 12px 30px rgba(20, 10, 40, .18); transition: background .3s; }
.guest-page-preview-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.8px; color: rgba(255, 255, 255, .72); }
.guest-page-preview strong { font-size: 20px; line-height: 1.4; }
.guest-page-preview-guest { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); font-weight: 600; }
.guest-page-preview-guest i { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.guest-page-preview-guest small { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .72); }
.guest-page-preview p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, .86); white-space: pre-line; }
.guest-page-settings .field small .text-button { margin-left: 8px; }
.guest-page-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.guest-page-palette { position: relative; display: grid; gap: 6px; padding: 8px 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.guest-page-palette:hover { transform: translateY(-1px); }
.guest-page-palette input { position: absolute; opacity: 0; pointer-events: none; }
.guest-page-palette:has(input:checked) { border-color: var(--purple-700); box-shadow: 0 0 0 3px var(--purple-100); }
.guest-page-palette:has(input:focus-visible) { outline: 3px solid var(--purple-100); outline-offset: 2px; }
.guest-page-swatch { position: relative; display: block; height: 52px; border-radius: 8px; }
.guest-page-swatch i { position: absolute; right: 6px; bottom: 6px; width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.guest-page-palette b { font-size: 13px; }
.guest-page-palette small { font-size: 11px; color: var(--muted); }
.guest-page-settings fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.guest-page-settings fieldset > legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.guest-page-stations { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; margin-bottom: 8px; }
.guest-page-stations textarea { min-height: 150px; line-height: 1.7; }

/* ============ 后台侧栏：日程工作台入口（新标签页打开，样式同其他菜单） ============ */
.admin-sidebar nav .admin-sidebar-link { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 7px; color: rgba(255,255,255,.72); text-decoration: none; }
.admin-sidebar nav .admin-sidebar-link[hidden] { display: none; }
.admin-sidebar nav .admin-sidebar-link span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; font-size: 11px; }
.admin-sidebar nav .admin-sidebar-link:hover { color: #fff; background: rgba(255,255,255,.11); }
.admin-sidebar nav .admin-sidebar-link::after { content: "↗"; margin-left: auto; font-size: 12px; opacity: .6; }
@media (max-width: 820px) {
  .admin-sidebar nav .admin-sidebar-link { justify-content: center; padding-inline: 8px; font-size: 0; }
  .admin-sidebar nav .admin-sidebar-link span { font-size: 11px; }
  .admin-sidebar nav .admin-sidebar-link::after { display: none; }
}
@media (max-width: 560px) {
  .admin-sidebar nav .admin-sidebar-link { flex: 1; }
}

/* ============ 公开日程页“编辑”（2026-10-08）：搜索框后的编辑按钮、浮动保存条、可编辑的分会卡片、选人弹层 ============ */
.program-search > div > .button { flex: 0 0 auto; white-space: nowrap; }
.program-search .program-edit-button { margin-left: 10px; border-radius: 8px; }
.program-search .program-edit-button[hidden] { display: none; }
.toolbar-actions [data-download-program][hidden] { display: none; }
.toolbar-actions [data-download-bio-package][hidden] { display: none; }
.program-search .program-history-button { margin-left: 10px; border-radius: 8px; }
/* 2026-10-09「把这部分区域的按钮大小改小一点，字体改成14px」：公开日程的搜索栏 + 筛选栏 */
.program-toolbar .button { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.program-search input { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.program-filters .filter-buttons button { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.program-filters .filter-row select { min-height: 34px; padding: 5px 30px 5px 10px; font-size: 14px; }
.program-filters .reset-filter { font-size: 14px; }
/* 手机上输入框、下拉框不到 16px，iPhone 点进去会把页面放大，所以手机上这两样还是 16px */
@media (max-width: 820px) { .program-search input, .program-filters .filter-row select { font-size: 16px; } }
/* 2026-10-08 日程修改记录：日程编排 / 分会嘉宾行程页（后台页）和公开日程页（弹窗）共用 */
.program-history-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; margin-bottom: 16px; }
.program-history-filters .field { flex: 0 1 420px; min-width: 0; margin: 0; }
.program-history-filters select { width: 100%; }
.program-history-origins { display: flex; flex-wrap: wrap; gap: 8px; }
.program-history-origins button { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font: inherit; font-size: 14px; cursor: pointer; }
.program-history-origins button:hover, .program-history-origins button:focus-visible { border-color: var(--cyan-500); color: var(--cyan-700); outline: none; }
.program-history-origins button.active { border-color: var(--cyan-700); color: #fff; background: var(--cyan-700); }
.program-history-list { display: grid; gap: 12px; }
.program-history-item { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--purple-600); border-radius: 10px; background: var(--surface); }
.program-history-item[data-history-kind="add"] { border-left-color: #2f9e6e; }
.program-history-item[data-history-kind="remove"] { border-left-color: #d0453b; }
.program-history-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.program-history-action { padding: 3px 9px; border-radius: 999px; color: var(--purple-700); background: var(--purple-100); font-size: 12px; font-weight: 700; white-space: nowrap; }
.program-history-item[data-history-kind="add"] .program-history-action { color: #17704c; background: #e3f6ec; }
.program-history-item[data-history-kind="remove"] .program-history-action { color: #a8322a; background: #fdecea; }
.program-history-item header strong { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.program-history-item time, .program-history-item footer, .program-history-session small, .program-history-note { color: var(--muted); font-size: 13px; }
.program-history-session { margin: 0; font-size: 14px; font-weight: 600; }
.program-history-people { margin: 0; color: var(--muted); font-size: 14px; }
.program-history-people b { color: var(--purple-700); font-size: 15px; }
.program-history-session small { margin-left: 8px; font-weight: 400; }
.program-history-changes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.program-history-changes li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px minmax(0, 1fr); align-items: start; gap: 10px; font-size: 14px; }
.program-history-changes b { padding-top: 4px; font-weight: 600; }
.program-history-before, .program-history-after { padding: 4px 9px; border-radius: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.program-history-before { color: #a83d31; background: #fff2ef; }
.program-history-after { color: #14704c; background: #ebf8f1; }
.program-history-arrow { padding-top: 4px; color: #8390a4; text-align: center; }
.program-history-note { margin: 0; }
.program-history-item footer { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.program-history-item footer b { color: var(--ink); }
/* 不让浏览器拿“加载更多”当滚动锚点：否则新记录插在它前面时页面会跟着它跳到最底下 */
.program-history-more { justify-self: center; margin-top: 6px; overflow-anchor: none; }
.program-history-modal { width: min(100%, 980px); }
.program-history-modal h2 { margin: 0 0 4px; }
@media (max-width: 700px) {
  .program-history-changes li { grid-template-columns: 1fr; gap: 4px; }
  .program-history-arrow { display: none; }
  .program-history-modal { padding: 22px 16px; }
}
.program-edit-bar { position: fixed; z-index: 40; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 32px); padding: 9px 10px 9px 20px; border-radius: 999px; color: #fff; background: var(--purple-900); box-shadow: 0 12px 30px rgba(40,10,70,.28); transform: translateX(-50%); }
.program-edit-bar[hidden] { display: none; }
.program-edit-bar span { display: grid; gap: 1px; min-width: 0; }
.program-edit-bar strong { font-size: 14px; }
.program-edit-bar small { color: rgba(255,255,255,.78); font-size: 12px; }
.program-edit-bar .button { flex: 0 0 auto; min-height: 38px; color: var(--purple-900); background: #fff; }
.program-list.is-editing { padding-bottom: 80px; }
.program-list .program-edit-head,
.program-list .program-edit-row { grid-template-columns: 26px 118px 118px minmax(200px, 1.2fr) minmax(240px, 1.2fr) 44px; gap: 12px; }
.program-list .program-edit-row { min-height: 54px; padding-block: 8px; }
.program-edit-row.is-draft { background: #fbfafc; }
/* 编辑状态下的时间：点开“编辑任务”改时间、分会、会场（2026-10-10） */
.program-edit-time { justify-self: start; padding: 4px 6px; white-space: nowrap; margin-left: -6px; border: 1px dashed transparent; border-radius: 6px; color: inherit; background: none; font: inherit; text-align: left; cursor: pointer; }
.program-edit-time:hover, .program-edit-time:focus-visible { border-color: var(--purple-300, #c4a8f0); color: var(--purple-700); background: #faf7ff; }
.program-edit-time-icon { margin-left: 4px; color: var(--purple-700); font-size: 12px; opacity: .55; }
.program-edit-time:hover .program-edit-time-icon, .program-edit-time:focus-visible .program-edit-time-icon { opacity: 1; }
.program-edit-draft { display: block; width: max-content; margin-top: 3px; padding: 0 6px; border-radius: 4px; color: #8a5a00; background: #fff3d6; font-size: 12px; font-style: normal; }
.program-edit-handle { width: 26px; height: 34px; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 15px; letter-spacing: -3px; cursor: grab; touch-action: none; }
.program-edit-handle:hover, .program-edit-handle:focus-visible { color: var(--purple-700); background: var(--purple-100); outline: none; }
.program-edit-type, .program-edit-title { width: 100%; min-width: 0; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font: inherit; font-size: 14px; }
.program-edit-type:focus, .program-edit-title:focus { border-color: var(--purple-600); outline: none; box-shadow: 0 0 0 3px var(--purple-100); }
.program-edit-title[data-dirty] { border-color: #e0b04a; }
/* 2026-10-08 报告题目旁的 ▾：讲者通过收集通道填的讲课题目，一人点选、多人勾选，也可手填 */
.program-edit-title-cell { position: relative; min-width: 0; }
.program-edit-title-cell.with-pick .program-edit-title { padding-right: 38px; }
.program-edit-title-pick { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 30px; padding: 0; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.program-edit-title-pick.has-options { color: var(--purple-700); background: var(--purple-100); }
.program-edit-title-pick:hover, .program-edit-title-pick:focus-visible, .program-edit-title-pick[aria-expanded="true"] { color: #fff; background: var(--purple-600); outline: none; }
/* 题目还是待定 / TBD / 空，而讲者已通过收集通道填了讲课题目：橙色底，一眼看出来可以选 */
.program-edit-title-cell.awaiting-title .program-edit-title { border-color: #f0a33a; background: #fff3df; }
.program-edit-title-cell.awaiting-title .program-edit-title-pick { color: #fff; background: #ec8a12; }
.program-edit-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.program-edit-chip { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid #ddd0f2; border-radius: 7px; background: #f7f3fd; font-weight: 400; }
.program-edit-chip-name { display: grid; min-width: 0; padding: 3px 4px 3px 9px; border: 0; color: var(--ink); background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.program-edit-chip-name small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.program-edit-chip-name:hover { color: var(--purple-700); }
/* 资料点：红 = 没有照片和简介正文，黄 = 缺一样，绿 = 齐全 */
.program-edit-chip-label { display: inline-flex; align-items: center; gap: 6px; }
.program-edit-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.program-edit-dot.is-missing { background: #e5484d; }
.program-edit-dot.is-partial { background: #f5a524; }
.program-edit-dot.is-complete { background: #2fa36b; }
/* 非编辑状态姓名后面的资料点（2026-10-11，只有能管理日程的账号看得到） */
.program-view-dot { display: inline-block; margin-left: 4px; vertical-align: middle; }
.program-edit-chip-remove { padding: 0 8px; border: 0; border-left: 1px solid #e6dcf5; color: var(--muted); background: transparent; font-size: 15px; cursor: pointer; }
.program-edit-chip-remove:hover { color: #b42318; }
.program-edit-add { padding: 4px 9px; border: 1px dashed #b9a6dc; border-radius: 7px; color: var(--purple-700); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.program-edit-add:hover { background: var(--purple-100); }
.program-edit-delete { justify-self: end; padding: 4px 2px; border: 0; color: #b42318; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.program-edit-delete:hover { text-decoration: underline; }
.program-list .program-edit-host { flex-wrap: wrap; }
.program-edit-host > strong { flex: 0 0 auto; }
.program-edit-host .program-edit-people { flex: 1 1 auto; }
.program-edit-host .program-edit-chip { background: #fff; }
.program-edit-empty { color: var(--muted); font-weight: 400; }
.program-edit-none { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); }
/* 每个环节（一条主持 + 它下面的条目）最后的“新增条目” */
.program-edit-segment-add { padding: 7px 20px 9px 58px; border-top: 1px solid var(--line); }
.program-edit-add-talk { padding: 5px 12px; border: 1px dashed #b9a6dc; border-radius: 7px; color: var(--purple-700); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.program-edit-add-talk:hover, .program-edit-add-talk:focus-visible { background: var(--purple-100); outline: none; }
.program-edit-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.program-edit-actions .button { min-height: 36px; padding-block: 6px; }
.program-edit-row.is-dragging { opacity: .45; }
.program-list .drop-before { box-shadow: inset 0 3px 0 var(--purple-600); }
.program-list .talk-list.drop-at-end { box-shadow: inset 0 -3px 0 var(--purple-600); }
body.program-edit-dragging, body.program-edit-dragging * { cursor: grabbing !important; user-select: none; }
.program-edit-readonly { opacity: .72; }
.program-edit-readonly .session-meta h3::after { content: "（无权编辑）"; margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 400; }
.program-person-picker, .program-title-menu { position: absolute; z-index: 60; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 40px rgba(40,10,70,.18); }
.program-person-picker[hidden], .program-person-picker [hidden], .program-title-menu[hidden] { display: none; }
.program-title-hint { margin: 0; color: var(--muted); font-size: 12px; }
.program-title-options { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.program-title-option { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.program-title-option:hover, .program-title-option:focus-visible, .program-title-option:focus-within { border-color: var(--purple-600); background: var(--purple-100); outline: none; }
.program-title-option.is-current, .program-title-option:has(input:checked) { border-color: var(--purple-600); background: #f7f3fd; }
.program-title-option span { display: grid; gap: 2px; min-width: 0; }
.program-title-option strong { font-weight: 600; overflow-wrap: anywhere; }
.program-title-option small { color: var(--muted); font-size: 12px; }
.program-title-option input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--purple-700); }
.program-person-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.program-person-picker-head button { padding: 0 4px; border: 0; color: var(--muted); background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }
.program-person-search { display: grid; gap: 6px; }
.program-person-picker input { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; font-size: 16px; }
.program-person-picker input:focus { border-color: var(--purple-600); outline: none; box-shadow: 0 0 0 3px var(--purple-100); }
.program-person-results { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.program-person-results button { display: grid; gap: 1px; padding: 7px 10px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.program-person-results button:hover, .program-person-results button:focus-visible { background: var(--purple-100); outline: none; }
.program-person-results small { color: var(--muted); font-size: 12px; }
.program-person-results .program-person-create { margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line); border-radius: 0; color: var(--purple-700); font-weight: 700; }
.program-person-empty { margin: 4px 10px; color: var(--muted); font-size: 13px; }
.program-person-new { display: grid; gap: 8px; }
.program-person-new p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.program-person-new label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.program-person-new-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 1180px) {
  .program-list .program-edit-head,
  .program-list .program-edit-row { grid-template-columns: 26px 112px 104px minmax(160px, 1fr) minmax(190px, 1fr) 40px; gap: 10px; }
}
@media (max-width: 820px) {
  .program-list .program-edit-row { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 12px 14px; }
  .program-list .program-edit-row > .program-edit-handle { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
  .program-list .program-edit-row > .talk-time { grid-column: 2; grid-row: 1; margin: 0; }
  .program-list .program-edit-row > .program-edit-delete { grid-column: 3; grid-row: 1; }
  .program-list .program-edit-row > .program-edit-type { grid-column: 2 / 4; grid-row: 2; margin: 0; }
  .program-list .program-edit-row > .program-edit-title-cell { grid-column: 2 / 4; grid-row: 3; margin: 0; }
  .program-list .program-edit-row .program-edit-title { font-size: 16px; }
  .program-list .program-edit-row > .program-edit-people { grid-column: 2 / 4; grid-row: 4; margin: 0; }
  .program-edit-segment-add { padding-left: 50px; }
  .program-edit-bar { bottom: 12px; gap: 10px; padding-left: 16px; }
  .program-edit-bar small { display: none; }
}
@media print {
  .program-edit-bar, .program-person-picker, .program-title-menu, .program-history-button, .program-history-backdrop { display: none !important; }
}

/* ============ 前端行程表（2026-10-09）：门户里的 #guest-board，后台嘉宾行程表的内容区挪到这里，页面放宽 ============ */
.guest-board-host { padding: 24px 24px 80px; }
.guest-board-host .admin-content { max-width: 1680px; margin: 0 auto; padding: 0; }
.guest-board-denied { max-width: 640px; margin: 40px auto; }
.guest-ws-table.guest-ws-noselect .guest-itinerary-frozen-name { left: 0; }
/* 平时只能看；点“修改”后单击格子直接改 */
.guest-board-host .guest-ws:not(.is-front-editing) [data-itinerary-inline-edit],
.guest-board-host .guest-ws:not(.is-front-editing) [data-itinerary-inline-asset-cell] { cursor: default; }
.guest-board-host .guest-ws.is-front-editing [data-itinerary-inline-edit],
.guest-board-host .guest-ws.is-front-editing [data-itinerary-inline-asset-cell] { cursor: pointer; }
.guest-board-host .guest-ws.is-front-editing [data-itinerary-inline-edit]:not(.guest-itinerary-inline-editing):hover { box-shadow: inset 0 0 0 2px var(--purple-300); }
/* 「修改」按钮要醒目：实心紫色、更大；修改状态下绿色“完成修改” */
.guest-itinerary-header .admin-actions .button.guest-front-edit-button { height: 38px; min-height: 38px; padding: 0 20px; gap: 6px; font-size: 15px; box-shadow: 0 6px 16px rgba(86, 15, 158, .32); }
.guest-front-edit-button span { font-size: 16px; line-height: 1; }
.guest-front-edit-button.is-editing { color: #fff; background: var(--green); box-shadow: 0 6px 16px rgba(25, 136, 93, .3); }
.guest-front-settings h2 { margin: 6px 0 4px; font-size: 18px; }
.guest-front-settings .display-settings-section-list { margin: 10px 0 22px; }
.guest-front-section { display: grid; align-content: start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.guest-front-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.guest-front-section-head b { font-size: 14px; }
.guest-front-section-head span { display: flex; flex: 0 0 auto; gap: 10px; font-size: 12.5px; white-space: nowrap; }
.guest-front-field-list { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.guest-front-features { display: grid; gap: 8px; }
.guest-front-feature { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.guest-front-feature input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--purple-700); }
.guest-front-field-list input { accent-color: var(--purple-700); }
.guest-front-feature span { display: grid; gap: 2px; }
.guest-front-feature b { font-size: 13.5px; }
.guest-front-feature small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-welcome .admin-actions a[href="#guest-board"] { white-space: nowrap; }
@media (max-width: 760px) { .guest-board-host { padding: 16px 12px 60px; } }

/* 分会排序（2026-10-12）：表格左侧手柄、序号、上下移 */
.schedule-editor-table .session-order-cell { width: 1%; padding-right: 6px; white-space: nowrap; }
.session-drag-handle { display: inline-block; width: 16px; color: var(--muted); font-weight: 700; letter-spacing: -2px; cursor: grab; user-select: none; touch-action: none; }
.session-order-number { display: inline-block; min-width: 20px; margin-right: 4px; color: var(--purple-700); font-weight: 700; text-align: center; }
.session-order-buttons { display: inline-flex; gap: 2px; }
.session-order-buttons button { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--purple-700); cursor: pointer; }
.session-order-buttons button:disabled { opacity: .35; cursor: default; }
.session-row-dragging { opacity: .45; background: var(--purple-100); }
.session-order-saving { opacity: .6; pointer-events: none; }
