:root {
  --navy: #101828;
  --ink: #17233d;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e4e8f0;
  --line-strong: #d7ddea;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --blue: #2667f5;
  --blue-dark: #1f55d5;
  --blue-soft: #edf3ff;
  --green: #169b6b;
  --green-soft: #eaf8f2;
  --amber: #b76e00;
  --amber-soft: #fff6e5;
  --red: #d04444;
  --red-soft: #fff0f0;
  --sidebar: #111a2f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
input, textarea, select { outline: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 238px;
  padding: 24px 14px 16px;
  background: var(--sidebar);
  color: #aab4ca;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 23px;
  color: #fff;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(17, 87, 244, .24);
  object-fit: cover;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { margin-top: 1px; color: #7f8aa5; font-size: 11px; }

.workspace-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  margin-bottom: 21px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.workspace-pill div { flex: 1; }
.workspace-pill b, .workspace-pill small { display: block; }
.workspace-pill b { color: #e9edf5; font-size: 12px; }
.workspace-pill small { color: #7e8aa5; font-size: 10px; }

.live-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fc98e;
  box-shadow: 0 0 0 3px rgba(47, 201, 142, .13);
}

.side-nav {
  flex: 1;
  overflow: auto;
  scrollbar-width: none;
}

.side-nav::-webkit-scrollbar { display: none; }
.side-nav section + section { margin-top: 22px; }
.side-nav section > p { margin: 0 10px 8px; color: #66738f; font-size: 10px; font-weight: 700; letter-spacing: .13em; }

.side-nav button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9ca8c0;
  text-align: left;
}

.side-nav button:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-nav button.active { background: #2868f6; color: #fff; box-shadow: 0 8px 18px rgba(17, 80, 223, .24); }
.side-nav button b { font-size: 13px; font-weight: 600; }
.side-nav button em { margin-left: auto; min-width: 21px; padding: 1px 6px; border-radius: 10px; background: #fff; color: #245ee2; font-size: 10px; font-style: normal; font-weight: 800; text-align: center; }
.nav-icon { display: grid; width: 19px; height: 19px; place-items: center; }
.nav-icon svg { width: 19px; height: 19px; }

.sidebar-foot { margin-top: 20px; }
.support-card { padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.03); }
.support-card span, .support-card b { display: block; }
.support-card span { margin-bottom: 5px; color: #6f7d99; font-size: 10px; }
.support-card b { color: #cbd3e4; font-size: 11px; }
.support-card > small { display: block; margin-top: 6px; color: #7f8da8; font-size: 9px; }
.support-card .live-dot { margin-right: 5px; }

.admin-user { display: flex; align-items: center; gap: 9px; padding: 16px 7px 0; }
.admin-user div { flex: 1; }
.admin-user b, .admin-user small { display: block; }
.admin-user b { color: #edf1f8; font-size: 12px; }
.admin-user small { color: #6f7c97; font-size: 10px; }
.admin-user > button { border: 0; background: transparent; color: #75829c; }

.main { min-height: 100vh; margin-left: 238px; }

.topbar {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
}

.crumb { margin-bottom: 5px; color: #98a2b3; font-size: 10px; }
.crumb span { margin: 0 5px; color: #c5cad4; }
.topbar h1 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; }

.global-search, .page-search, .column-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #98a2b3;
}

.global-search { width: 246px; height: 38px; padding: 0 11px; }
.global-search svg { width: 16px; height: 16px; }
.global-search input, .page-search input, .column-search input { width: 100%; border: 0; background: transparent; color: var(--ink); }
.global-search:focus-within, .page-search:focus-within, .column-search:focus-within { border-color: #8aafff; box-shadow: 0 0 0 3px rgba(38, 103, 245, .08); }

.circle-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.notification-dot { position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: #f05b5b; }
.page-content { max-width: 1680px; margin: 0 auto; padding: 25px 30px 46px; }

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 5px 12px rgba(38, 103, 245, .15); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { border-color: var(--line-strong); background: #fff; color: #34405a; }
.button.secondary:hover { border-color: #bfc8da; background: #fbfcfe; }
.button.danger { border-color: #f0caca; background: #fff6f6; color: #c43b3b; }
.button.danger:hover { border-color: #e8a9a9; background: #ffeded; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button.wide { width: 100%; }

.text-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 650; }
.student-row-actions{white-space:nowrap}.student-row-actions .text-button+.text-button{margin-left:12px}.text-button.danger-text{color:#c43b3b}.text-button.danger-text:hover{color:#a52d2d;text-decoration:underline}
.admin-member-actions{white-space:nowrap}.admin-member-actions .text-button+.text-button{margin-left:12px}
.icon-only { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #667085; }

.grid { display: grid; gap: 17px; }
.metrics-grid { display: grid; gap: 14px; margin-bottom: 17px; }
.metrics-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.metric-card, .panel, .desk-column, .browser-pane {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card { min-height: 125px; padding: 17px 18px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.metric-icon svg { width: 17px; height: 17px; }
.metric-card > strong { display: block; margin-top: 8px; font-size: 27px; line-height: 1.2; letter-spacing: -.03em; }
.metric-card > small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.metric-card.warn .metric-icon { background: var(--amber-soft); color: var(--amber); }
.metric-card.success .metric-icon { background: var(--green-soft); color: var(--green); }
.metric-card.danger .metric-icon { background: var(--red-soft); color: var(--red); }

.panel { padding: 20px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.overview-grid { grid-template-columns: minmax(500px, 1.45fr) minmax(330px, .8fr); }
.overview-lower { grid-template-columns: .9fr 1.1fr; margin-top: 17px; }

.legend { display: flex; gap: 14px; color: var(--muted); font-size: 10px; }
.legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.legend .blue { background: var(--blue); }
.legend .green { background: #2ec28d; }

.chart-grid { position: relative; display: grid; grid-template-columns: 25px 1fr; height: 188px; margin-top: 4px; }
.chart-grid::before { position: absolute; inset: 0 0 23px 28px; background: repeating-linear-gradient(to bottom, #edf0f5 0, #edf0f5 1px, transparent 1px, transparent 45px); content: ""; }
.y-labels { z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 24px; color: #a4adbc; font-size: 9px; }
.bars-chart { z-index: 1; display: flex; align-items: end; justify-content: space-around; padding: 0 12px; }
.chart-day { display: flex; height: 100%; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar-pair { display: flex; height: 145px; align-items: flex-end; gap: 4px; }
.bar-pair i { display: block; width: 10px; max-height: 136px; border-radius: 4px 4px 1px 1px; background: var(--blue); }
.bar-pair i:last-child { background: #55c69b; }
.chart-day > span { color: var(--muted); font-size: 9px; }

.focus-list { display: grid; gap: 3px; }
.focus-list > button { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 54px; padding: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.focus-list > button:hover { background: #f7f9fd; }
.focus-list > button > div { flex: 1; min-width: 0; }
.focus-list b, .focus-list small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-list b { font-size: 11px; }
.focus-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.focus-rank { color: #b6bdca; font-size: 10px; font-weight: 800; }

.direction-list { display: grid; gap: 15px; }
.direction-list > div { display: grid; grid-template-columns: 120px 1fr 35px; align-items: center; gap: 12px; }
.direction-list b, .direction-list small { display: block; }
.direction-list b { font-size: 11px; }
.direction-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.direction-list strong { font-size: 10px; text-align: right; }
.progress { height: 6px; overflow: hidden; border-radius: 5px; background: #eef1f6; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }

.funnel { display: flex; min-height: 145px; align-items: center; justify-content: center; gap: 7px; }
.funnel > div { display: grid; width: var(--w); max-width: 150px; min-width: 72px; height: 116px; place-items: center; align-content: center; border-radius: 9px; background: #edf3ff; color: var(--blue); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
.funnel > div:nth-child(2) { background: #e8f7f2; color: var(--green); }
.funnel > div:nth-child(2) { height: 103px; }
.funnel > div:nth-child(3) { height: 90px; background: #fff5e4; color: var(--amber); }
.funnel > div:nth-child(4) { height: 77px; background: #f3efff; color: #7255bd; }
.funnel b, .funnel span { display: block; text-align: center; }
.funnel b { font-size: 19px; }
.funnel span { font-size: 9px; }

.table-panel { margin-top: 17px; padding: 0; overflow: hidden; }
.table-panel > .section-head { padding: 18px 20px 0; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfc; color: #788399; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
td { padding: 13px 15px; border-bottom: 1px solid #edf0f4; color: #465168; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
td > b, td > small { display: block; }
td > b { color: var(--ink); font-size: 11px; }
td > small { margin-top: 2px; color: var(--muted); font-size: 9px; }
td > .avatar { display: inline-grid; margin-right: 8px; vertical-align: middle; }
.cell-person { display: inline-block; vertical-align: middle; }
.cell-person b, .cell-person small { display: block; }
.cell-person small { color: var(--muted); font-size: 9px; }

.badge { display: inline-flex; min-height: 21px; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 12px; font-size: 9px; font-weight: 650; white-space: nowrap; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.blue { background: var(--blue-soft); color: #2762dd; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.gray { background: #f1f3f6; color: #7b8495; }

.avatar {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #eaf1ff;
  color: #225bdc;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 27px; height: 27px; border-radius: 8px; font-size: 9px; }
.avatar.lg { width: 42px; height: 42px; border-radius: 12px; font-size: 14px; }

.person { display: flex; align-items: center; gap: 9px; }
.person b, .person small { display: block; }
.person b { color: var(--ink); }
.person small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.desk-toolbar, .sessions-toolbar, .table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.segmented button { min-height: 29px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; }
.segmented button.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.segmented button span { margin-left: 3px; }
.toolbar-meta { display: flex; align-items: center; gap: 12px; }
.toolbar-meta > span { color: var(--muted); font-size: 10px; }
.toolbar-meta .live-dot { margin-right: 6px; }

.service-desk {
  display: grid;
  grid-template-columns: 272px minmax(390px, 1fr) 360px;
  height: calc(100vh - 167px);
  min-height: 650px;
  gap: 12px;
}

.desk-column { overflow: hidden; border-radius: 11px; }
.column-head, .pane-head { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.column-head h2, .pane-head h2 { margin: 0; font-size: 13px; }
.column-head span, .pane-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.column-search { height: 34px; margin: 11px; padding: 0 10px; background: #fafbfc; font-size: 11px; }

.queue-list { height: calc(100% - 105px); overflow-y: auto; padding: 0 8px 10px; }
.queue-card { display: block; width: 100%; margin: 3px 0; padding: 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; }
.queue-card:hover { background: #f8faff; }
.queue-card.active { border-color: #bed1ff; background: #f1f5ff; box-shadow: inset 3px 0 0 var(--blue); }
.queue-card-top { display: flex; align-items: center; gap: 8px; }
.queue-card-top > div { flex: 1; min-width: 0; }
.queue-card-top b, .queue-card-top small { display: block; }
.queue-card-top b { font-size: 11px; }
.queue-card-top small { color: var(--muted); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-card-top time { color: #98a2b3; font-size: 8px; }
.queue-card h3 { margin: 11px 0 4px; font-size: 11px; }
.queue-card > p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 9px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.queue-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.unread { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 8px; font-weight: 700; }

.conversation-column { display: flex; flex-direction: column; }
.student-context { padding: 15px; border-bottom: 1px solid var(--line); background: #fbfcff; }
.context-top { display: flex; align-items: center; gap: 10px; }
.context-top > div { flex: 1; }
.context-top h2 { margin: 0; font-size: 14px; }
.context-top h2 span { margin-left: 5px; color: var(--muted); font-size: 9px; font-weight: 500; }
.context-top p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.context-facts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 7px; margin-top: 12px; }
.context-facts > div { padding: 8px; border: 1px solid #e9edf4; border-radius: 7px; background: #fff; }
.context-facts span, .context-facts b { display: block; }
.context-facts span { color: var(--muted); font-size: 8px; }
.context-facts b { margin-top: 3px; font-size: 9px; }
.ai-summary { display: flex; align-items: flex-start; gap: 9px; margin-top: 11px; padding: 10px; border-radius: 8px; background: var(--blue-soft); }
.ai-summary > div { flex: 1; }
.ai-summary b { font-size: 9px; }
.ai-summary p { margin: 2px 0 0; color: #4d5b74; font-size: 9px; }
.ai-mark { display: grid; flex: none; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: var(--blue); color: #fff; font-size: 8px; font-weight: 800; }
.conversation-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.conversation-head h3 { margin: 0; font-size: 11px; }
.conversation-head span { color: var(--muted); font-size: 8px; }

.message-list { display: grid; gap: 13px; }
.desk-messages { flex: 1; overflow-y: auto; padding: 14px 16px; }
.message { max-width: 83%; }
.message.student { justify-self: end; }
.message.system-message { max-width: 100%; justify-self: center; text-align: center; }
.message-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.message-meta b { font-size: 8px; }
.message-meta time, .system-message > time { color: #a0a8b7; font-size: 8px; }
.student .message-meta { justify-content: flex-end; }
.bubble { padding: 9px 11px; border-radius: 4px 11px 11px 11px; background: #f0f3f8; color: #3b475d; font-size: 10px; }
.student .bubble { border-radius: 11px 4px 11px 11px; background: var(--blue); color: #fff; }
.service .bubble { border: 1px solid #cfe0ff; background: #f3f7ff; }
.system .bubble { border: 1px dashed #d5dce8; background: #fafbfc; color: var(--muted); }
.bubble small { display: block; margin-top: 5px; color: inherit; font-size: 8px; opacity: .7; }
.voice-bars { margin-right: 7px; letter-spacing: 1px; }
.video-message { display: flex; min-width: 210px; align-items: center; gap: 10px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; box-shadow: 0 4px 12px rgba(16,24,40,.04); cursor: pointer; }
.video-thumb { position: relative; display: grid; width: 70px; height: 43px; place-items: center; border-radius: 6px; background: #15233c; color: #fff; }
.video-thumb::before { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(38,103,245,.7), transparent); content: ""; }
.video-thumb small { position: absolute; right: 4px; bottom: 3px; font-size: 7px; }
.play { position: relative; z-index: 1; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--blue); font-size: 8px; }
.video-message > div:last-child b, .video-message > div:last-child span { display: block; }
.video-message > div:last-child b { font-size: 9px; }
.video-message > div:last-child span { margin-top: 3px; color: var(--muted); font-size: 8px; }

.service-reply { padding: 11px; border-top: 1px solid var(--line); background: #fbfcfd; }
.service-reply textarea { width: 100%; height: 48px; resize: none; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 9px; }
.service-reply > div { display: flex; justify-content: flex-end; gap: 7px; margin-top: 7px; }
.service-reply .button { min-height: 31px; padding: 0 11px; font-size: 9px; }

.matching-column { display: flex; flex-direction: column; }
.match-summary { display: flex; gap: 6px; padding: 10px 12px; background: #fafbfc; }
.match-summary span { flex: 1; padding: 7px; border: 1px solid #e8ebf1; border-radius: 6px; background: #fff; color: var(--muted); font-size: 8px; text-align: center; }
.match-summary b { color: var(--ink); }
.candidate-list { flex: 1; overflow-y: auto; padding: 9px; }
.candidate-card { margin-bottom: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.candidate-card.selected { border-color: #b9ceff; background: #fbfcff; box-shadow: inset 2px 0 0 var(--blue); }
.candidate-main { display: flex; align-items: flex-start; gap: 8px; }
.check { display: grid; width: 17px; height: 17px; place-items: center; margin-top: 2px; border: 1px solid #cad1dd; border-radius: 5px; background: #fff; color: transparent; font-size: 8px; }
.check.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.candidate-info { flex: 1; min-width: 0; }
.candidate-info > div { display: flex; align-items: center; justify-content: space-between; }
.candidate-info b { font-size: 11px; }
.candidate-info > div span { color: var(--blue); font-size: 9px; font-weight: 700; }
.candidate-info small { color: var(--muted); font-size: 8px; }
.candidate-info p { margin: 5px 0 0; color: #4e5b71; font-size: 9px; }
.candidate-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.candidate-tags span, .teacher-tags span, .chips > span { padding: 3px 6px; border-radius: 5px; background: #f2f4f8; color: #647087; font-size: 8px; }
.quote-row { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid #edf0f4; color: var(--muted); font-size: 8px; }
.quote-row label { display: flex; align-items: center; gap: 3px; color: var(--ink); }
.quote-row label i { color: var(--blue); font-style: normal; }
.quote-row input { width: 48px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 5px; color: var(--blue); font-size: 9px; font-weight: 700; }
.handoff-box { padding: 11px; border-top: 1px solid var(--line); background: #fbfcfd; }
.handoff-box label { color: var(--muted); font-size: 8px; }
.handoff-box textarea { width: 100%; height: 43px; resize: none; margin-top: 4px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 8px; }
.handoff-total { display: flex; justify-content: space-between; margin: 7px 0; font-size: 9px; }
.handoff-box > small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; text-align: center; }

.sessions-toolbar, .table-toolbar { justify-content: flex-start; }
.page-search { width: 280px; height: 38px; padding: 0 11px; }
.sessions-toolbar select, .table-toolbar select { min-width: 150px; height: 38px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #526078; font-size: 11px; }
.sessions-toolbar .button, .table-toolbar .button { margin-left: auto; }

.session-browser { display: grid; grid-template-columns: 215px 285px minmax(570px, 1fr); min-height: calc(100vh - 185px); }
.browser-pane { border-radius: 0; box-shadow: none; }
.browser-pane:first-child { border-radius: 11px 0 0 11px; }
.browser-pane + .browser-pane { border-left: 0; }
.browser-pane:last-child { border-radius: 0 11px 11px 0; }
.student-pane, .conversation-pane { overflow: hidden; }
.student-browser-list, .conversation-browser-list { max-height: calc(100vh - 248px); overflow-y: auto; padding: 8px; }
.student-browser-card { display: flex; width: 100%; align-items: center; gap: 8px; margin-bottom: 3px; padding: 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; }
.student-browser-card:hover, .student-browser-card.active { background: #f3f6fd; }
.student-browser-card.active { border-color: #d7e2fc; }
.student-browser-card > span { flex: 1; }
.student-browser-card b, .student-browser-card small { display: block; }
.student-browser-card b { font-size: 10px; }
.student-browser-card small { color: var(--muted); font-size: 8px; }
.student-browser-card > i { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 8px; font-style: normal; }
.conversation-card { display: block; width: 100%; margin-bottom: 5px; padding: 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; }
.conversation-card:hover { background: #f8faff; }
.conversation-card.active { border-color: #cbdafd; background: #f3f6ff; box-shadow: inset 2px 0 0 var(--blue); }
.conversation-card > div { display: flex; justify-content: space-between; gap: 8px; }
.conversation-card b { font-size: 10px; }
.conversation-card time { color: var(--muted); font-size: 8px; }
.conversation-card p { display: -webkit-box; overflow: hidden; margin: 6px 0 8px; color: var(--muted); font-size: 8px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.conversation-card footer { display: flex; align-items: center; justify-content: space-between; }
.conversation-card footer > span:last-child { color: var(--muted); font-size: 7px; }

.conversation-detail { overflow: hidden; }
.detail-hero { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.detail-title { display: flex; align-items: center; gap: 9px; }
.detail-title h2 { margin: 0; font-size: 15px; }
.detail-hero p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.conversation-summary-strip { display: flex; align-items: center; gap: 10px; padding: 11px 17px; border-bottom: 1px solid var(--line); background: #f7f9fe; }
.conversation-summary-strip > div { flex: 1; }
.conversation-summary-strip b { font-size: 9px; }
.conversation-summary-strip p { margin: 2px 0 0; color: #56627a; font-size: 8px; }
.conversation-summary-strip dl { display: flex; gap: 15px; margin: 0; }
.conversation-summary-strip dl div { padding-left: 13px; border-left: 1px solid #dfe5f1; }
.conversation-summary-strip dt, .conversation-summary-strip dd { margin: 0; }
.conversation-summary-strip dt { color: var(--muted); font-size: 7px; }
.conversation-summary-strip dd { margin-top: 2px; font-size: 9px; font-weight: 650; }
.agent-run-strip { display: grid; grid-template-columns: 135px minmax(280px, 1fr) auto; align-items: center; gap: 14px; padding: 11px 17px; border-bottom: 1px solid #dce5f4; background: linear-gradient(90deg, #eef4ff 0%, #f8faff 68%, #fff 100%); }
.agent-run-strip > div:first-child { display: grid; gap: 3px; }
.agent-run-strip > div:first-child b { color: #163a79; font-size: 9px; }
.agent-run-strip > div:first-child span { color: var(--blue); font-size: 8px; font-weight: 650; }
.agent-run-facts { display: flex; min-width: 0; gap: 15px; overflow: hidden; }
.agent-run-facts span { display: grid; min-width: 75px; gap: 2px; }
.agent-run-facts small, .agent-run-strip dt { color: var(--muted); font-size: 7px; }
.agent-run-facts b { overflow: hidden; color: #34405a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.agent-run-strip dl { display: flex; gap: 13px; margin: 0; }
.agent-run-strip dl div { padding-left: 10px; border-left: 1px solid #d7e1f1; }
.agent-run-strip dt, .agent-run-strip dd { margin: 0; }
.agent-run-strip dd { margin-top: 2px; color: #24334e; font-size: 8px; font-weight: 650; }
.agent-error { grid-column: 1 / -1; margin: 0; color: #c13f3f; font-size: 8px; }
.detail-split { display: grid; grid-template-columns: minmax(300px, 1fr) 285px; height: calc(100vh - 414px); min-height: 410px; }
.message-history, .match-history { overflow-y: auto; padding: 16px; }
.match-history { border-left: 1px solid var(--line); background: #fbfcfe; }
.subsection-head { margin-bottom: 14px; }
.subsection-head h3 { margin: 0; font-size: 11px; }
.subsection-head span { color: var(--muted); font-size: 8px; }

.matched-list { display: grid; gap: 7px; }
.matched-teacher { display: flex; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.matched-teacher > div { flex: 1; min-width: 0; }
.matched-teacher > div > div { display: flex; align-items: center; justify-content: space-between; }
.matched-teacher b { font-size: 10px; }
.matched-teacher small { color: var(--muted); font-size: 8px; }
.matched-teacher p { margin: 6px 0; color: #4e5b72; font-size: 8px; }
.matched-teacher footer { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid #edf0f4; color: var(--muted); font-size: 8px; }
.matched-teacher footer b { color: var(--blue); }
.confirmed-teacher-summary { display: flex; min-width: 150px; align-items: center; flex-wrap: wrap; gap: 6px; }
.confirmed-teacher-chip { display: inline-flex; max-width: 150px; min-height: 30px; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border: 1px solid #d8e5ff; border-radius: 16px; background: #f5f8ff; color: #17335f; }
.confirmed-teacher-chip i { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: #e5edff; color: var(--blue); font-size: 10px; font-style: normal; font-weight: 700; }
.confirmed-teacher-chip b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.confirmed-teacher-more { color: var(--blue); font-size: 11px; font-weight: 700; }
.confirmed-teacher-empty { color: #98a2b3; font-size: 12px; }
.confirmed-match-panel { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.confirmed-match-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f5f8ff; }
.confirmed-match-panel > header h3 { margin: 0; color: var(--ink); font-size: 14px; }
.confirmed-match-panel > header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.confirmed-match-panel > header strong { flex: 0 0 auto; color: var(--blue); font-size: 14px; }
.confirmed-match-list { display: grid; gap: 10px; padding: 12px; }
.confirmed-match-record { padding: 12px; border: 1px solid #e4e9f2; border-radius: 9px; background: #fff; }
.confirmed-match-teacher { display: flex; align-items: center; gap: 9px; }
.confirmed-match-teacher > div { min-width: 0; flex: 1; }
.confirmed-match-teacher b, .confirmed-match-teacher small { display: block; }
.confirmed-match-teacher b { color: var(--ink); font-size: 13px; }
.confirmed-match-teacher small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.confirmed-match-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0f5; color: #56627a; font-size: 11px; }
.confirmed-match-meta span, .confirmed-match-meta time { display: grid; gap: 2px; }
.confirmed-match-meta b { color: #98a2b3; font-size: 10px; font-weight: 500; }
.confirmed-match-meta time { text-align: right; }
.confirmed-match-note { grid-column: 1 / -1; }
.confirmed-match-teacher .danger-text { flex: 0 0 auto; color: #c24141; }
.confirmed-match-empty { padding: 26px 16px; text-align: center; }
.confirmed-match-empty b { color: var(--ink); font-size: 13px; }
.confirmed-match-empty p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.confirmed-match-panel.compact .confirmed-match-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manual-match-panel { margin-top: 18px; overflow: hidden; border: 1px solid #cfdcf6; border-radius: 11px; background: #fff; }
.manual-match-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #dce6f8; background: linear-gradient(135deg, #f1f6ff, #fbfdff); }
.manual-match-panel > header > div { display: flex; align-items: center; gap: 10px; }
.manual-match-panel h3 { margin: 0; color: var(--ink); font-size: 14px; }
.manual-match-panel header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.manual-match-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; }
.manual-match-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; padding: 0 16px 16px; }
.manual-match-form .full, .manual-match-submit { grid-column: 1 / -1; }
.manual-match-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f5; }
.manual-match-submit > span { color: var(--muted); font-size: 10px; }
.manual-match-submit .button { flex: 0 0 auto; }
.editable-match-record { transition: border-color .2s, background .2s, opacity .2s; }
.editable-match-record.pending-add { border-color: #aec7ff; box-shadow: inset 3px 0 0 var(--blue); }
.editable-match-record.pending-remove { border-style: dashed; background: #f7f8fa; opacity: .72; }
.editable-match-record.pending-remove .confirmed-match-teacher > div { text-decoration: line-through; }
.manual-match-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 10px; padding-top: 2px; border-top: 1px solid #edf0f5; }
.manual-match-edit-grid .full { grid-column: 1 / -1; }
.manual-match-edit-grid .form-field { margin-top: 10px; }
.manual-match-edit-grid textarea { min-height: 58px; }
.match-draft-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.match-draft-meta b { color: var(--blue); font-size: 10px; font-weight: 600; }
.pending-remove .match-draft-meta b { color: #c24141; }
.trace-box { margin-top: 12px; padding: 11px; border-radius: 8px; background: #f1f4f9; }
.trace-box > b { font-size: 9px; }
.trace-box ol { margin: 8px 0 0; padding: 0; list-style: none; }
.trace-box li { position: relative; padding: 0 0 10px 13px; border-left: 1px solid #cfd6e2; color: #5d687e; font-size: 8px; }
.trace-box li:last-child { padding-bottom: 0; border-color: transparent; }
.trace-box li::before { position: absolute; top: 2px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); content: ""; }
.trace-box time { display: block; color: #98a2b3; font-size: 7px; }
.empty-state { display: grid; min-height: 300px; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.empty-state.small { min-height: 180px; }
.empty-state span { font-size: 25px; }
.empty-state b { margin-top: 7px; color: var(--ink); font-size: 11px; }
.empty-state p { margin: 4px 0 0; font-size: 9px; }

.teacher-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.teacher-table td:nth-child(3) { min-width: 235px; }
.teacher-table td:nth-child(5) { min-width: 185px; }
.table-count { color: var(--muted); font-size: 10px; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fff; }
.pagination-summary { color: var(--muted); font-size: 11px; white-space: nowrap; }
.pagination-actions, .pagination-pages, .pagination-actions label { display: flex; align-items: center; gap: 7px; }
.pagination-actions { color: var(--muted); font-size: 11px; }
.pagination-actions select { min-width: 78px; height: 32px; padding: 0 24px 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; }
.pagination-nav, .pagination-page { min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: #53627d; background: #fff; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.pagination-nav:hover:not(:disabled), .pagination-page:hover:not(.active) { border-color: #9bb7fa; color: var(--blue); background: #f6f8ff; }
.pagination-page.active { border-color: var(--blue); color: #fff; background: var(--blue); }
.pagination-nav:disabled { opacity: .42; cursor: not-allowed; }
.pagination-ellipsis { min-width: 20px; color: #97a1b2; text-align: center; }

.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; min-height: 44px; padding: 0 15px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; }
.tabs button.active { color: var(--blue); }
.tabs button.active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: var(--blue); content: ""; }
.tabs button span { margin-left: 5px; padding: 1px 5px; border-radius: 8px; background: #f0f2f5; font-size: 8px; }
.page-tabs { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.page-tabs button { min-width: 130px; }
.review-panel { padding: 0 20px 20px; }
.review-panel > .section-head { margin-top: 18px; }
.review-list { display: grid; gap: 7px; }
.review-item { display: flex; min-height: 68px; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; }
.review-type { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }
.review-item > div { flex: 1; }
.review-item b { font-size: 11px; }
.review-item p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.review-item .button { min-height: 33px; font-size: 9px; }
.compact-list { padding: 0 20px 20px; }
.student-review-panel { padding-bottom: 24px; }
.review-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px 0 16px; }
.review-toolbar h2 { margin: 0; font-size: 16px; }
.review-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.review-toolbar > div:last-child { display: flex; align-items: center; gap: 8px; }
.review-toolbar select { min-width: 138px; min-height: 38px; padding: 0 30px 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }
.review-group-list { display: grid; gap: 14px; }
.review-student-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.review-student-group > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f8faff; }
.review-student-group > header > div { display: flex; align-items: center; gap: 10px; }
.review-student-group > header > div:last-child { display: block; min-width: 145px; text-align: right; }
.review-student-group header b, .review-student-group header small, .review-student-group header span { display: block; }
.review-student-group header b { font-size: 12px; }
.review-student-group header small, .review-student-group header span { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.review-student-group > header > div:last-child > b { color: var(--blue); font-size: 18px; }
.review-record { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: flex-start; gap: 13px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.review-record:last-child { border-bottom: 0; }
.review-score { display: grid; width: 50px; height: 50px; place-items: center; align-content: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.review-score b { font-size: 17px; line-height: 1; }
.review-score span { margin-top: 2px; font-size: 8px; }
.review-score.large { width: 64px; height: 64px; }
.review-score.large b { font-size: 22px; }
.review-record-main { min-width: 0; }
.review-record-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.review-record-title > b { font-size: 12px; }
.review-record-main > p { margin: 7px 0; color: #39465e; font-size: 11px; line-height: 1.6; }
.review-record-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 9px; }
.review-record-meta span { position: relative; }
.review-record-meta span + span::before { position: absolute; left: -7px; color: #c6cddb; content: "·"; }
.review-record-actions { display: flex; align-items: center; gap: 7px; padding-top: 1px; }
.review-record-actions .button { min-height: 34px; font-size: 9px; }
.review-thumbnails { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.review-thumbnails button { width: 50px; height: 50px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f4f6fa; }
.review-thumbnails img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review-thumbnails > span { color: var(--muted); font-size: 10px; }
.review-audit-note { margin-top: 9px; padding: 7px 9px; border-radius: 6px; background: #fff7ed; color: #9a5b16; font-size: 9px; }
.review-image-editor { display: grid; grid-template-columns: repeat(6, minmax(80px, 1fr)); gap: 9px; }
.review-image-editor figure, .review-upload { position: relative; min-height: 94px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; }
.review-image-editor figure img { display: block; width: 100%; height: 94px; object-fit: cover; }
.review-image-editor figure button { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(13,20,37,.72); color: #fff; font-size: 14px; }
.review-upload { display: grid; place-items: center; align-content: center; border-style: dashed; color: var(--blue); cursor: pointer; }
.review-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-upload span, .review-upload b, .review-upload small { display: block; }
.review-upload span { font-size: 20px; line-height: 1; }
.review-upload b { margin-top: 4px; font-size: 9px; }
.review-upload small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.review-upload.disabled { cursor: not-allowed; opacity: .55; }
.review-edit-modal .notice-box { margin-top: 18px; }
.review-audit-summary { display: grid; grid-template-columns: 70px 1fr; align-items: start; gap: 14px; }
.review-audit-summary h3 { margin: 3px 0 6px; font-size: 14px; }
.review-audit-summary p { margin: 0 0 8px; color: #3c4961; font-size: 11px; line-height: 1.6; }
.review-audit-history { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 7px; background: #f5f7fa; color: var(--muted); font-size: 9px; }

.content-layout, .strategy-layout { display: grid; grid-template-columns: minmax(500px, 1.25fr) minmax(340px, .75fr); gap: 15px; }
.login-settings-layout .record-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-panel { padding: 21px; }
.form-panel.single { max-width: 900px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 16px 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }
.setting-row b, .setting-row p { display: block; }
.setting-row b { font-size: 10px; }
.setting-row p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.switch { position: relative; flex: none; width: 36px; height: 21px; padding: 0; border: 0; border-radius: 12px; background: #ccd2dc; }
.switch i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--blue); }
.switch.on i { transform: translateX(15px); }

.form-field { display: block; margin-top: 15px; }
.form-field > span { display: block; margin-bottom: 6px; color: #3e4a61; font-size: 10px; font-weight: 650; }
.form-field > input, .form-field > textarea, .form-field > select, .input-with-action input, .masked-input input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); font-size: 10px; }
.form-field > textarea { min-height: 75px; resize: vertical; }
.form-field > input:focus, .form-field > textarea:focus, .form-field > select:focus, .input-with-action input:focus { border-color: #88acfb; box-shadow: 0 0 0 3px rgba(38,103,245,.07); }
.form-field > input:disabled { background: #f5f6f8; color: #747f93; }
.form-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.form-field.full, .span-two { grid-column: 1 / -1; }
.input-with-action { display: flex; gap: 7px; }
.input-with-action input { flex: 1; }
.upload-box { display: grid; min-height: 104px; place-items: center; align-content: center; border: 1px dashed #bbc8df; border-radius: 9px; background: #fafcff; color: var(--blue); text-align: center; cursor: pointer; }
.upload-box span { font-size: 20px; }
.upload-box b { margin-top: 2px; font-size: 9px; }
.upload-box small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.support-image-uploader { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: center; gap: 18px; min-height: 210px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fafcff; }
.support-image-uploader.uploading { opacity: .62; pointer-events: none; }
.support-image-preview { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 15px; min-width: 0; margin: 0; }
.support-image-preview img { display: block; width: 170px; height: 170px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.support-image-preview b, .support-image-preview span { display: block; }
.support-image-preview b { color: var(--ink); font-size: 12px; }
.support-image-preview span { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.support-image-empty { display: grid; min-height: 174px; place-items: center; align-content: center; border: 1px dashed #b8c7e3; border-radius: 10px; background: #fff; text-align: center; }
.support-image-empty span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 16px; font-weight: 800; }
.support-image-empty b { margin-top: 10px; color: var(--ink); font-size: 11px; }
.support-image-empty small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.support-image-actions { display: grid; min-width: 112px; gap: 8px; }
.support-image-actions .button { width: 100%; }
.support-image-upload { position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.support-image-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.teacher-avatar-field > input { margin-top: 10px; }
.teacher-avatar-uploader { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: center; gap: 18px; min-height: 124px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fafcff; }
.teacher-avatar-uploader.uploading { opacity: .62; pointer-events: none; }
.teacher-avatar-preview { display: flex; align-items: center; gap: 16px; min-width: 0; margin: 0; }
.teacher-avatar-preview img { display: block; width: 92px; height: 92px; flex: 0 0 auto; object-fit: cover; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.teacher-avatar-preview b, .teacher-avatar-preview span { display: block; }
.teacher-avatar-preview b { color: var(--ink); font-size: 12px; }
.teacher-avatar-preview span { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.teacher-avatar-empty { display: flex; align-items: center; gap: 16px; min-width: 0; }
.teacher-avatar-empty > span { display: grid; width: 92px; height: 92px; flex: 0 0 auto; place-items: center; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #1f5eff, #78a4ff); font-size: 30px; font-weight: 800; }
.teacher-avatar-empty b, .teacher-avatar-empty small { display: block; }
.teacher-avatar-empty b { color: var(--ink); font-size: 12px; }
.teacher-avatar-empty small { margin-top: 6px; color: var(--muted); font-size: 9px; }
.teacher-avatar-actions { display: grid; min-width: 116px; gap: 8px; }
.teacher-avatar-actions .button { width: 100%; }
.support-phone { min-height: 510px; background: #fff; }
.support-phone-body { display: block; height: 444px; overflow: hidden; background: #fff; }
.support-phone-image { display: grid; width: 100%; min-height: 100%; place-items: start center; overflow: hidden; background: #fff; }
.support-phone-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.support-phone-placeholder { display: grid; width: 100%; min-height: 444px; place-items: center; align-content: center; color: var(--blue); }
.support-phone-placeholder span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--blue-soft); font-size: 18px; font-weight: 800; }
.support-phone-placeholder small { margin-top: 7px; color: var(--muted); font-size: 8px; }
.notice-box { padding: 11px 13px; border: 1px solid #dbe5fb; border-radius: 8px; background: #f3f7ff; }
.notice-box b { font-size: 9px; }
.notice-box p { margin: 3px 0 0; color: #5d6981; font-size: 8px; }

.preview-panel { padding: 21px; }
.phone { position: relative; width: 285px; min-height: 510px; margin: 8px auto 17px; overflow: hidden; border: 6px solid #1d2431; border-radius: 31px; background: #f5f7fc; box-shadow: 0 18px 35px rgba(16,24,40,.12); }
.phone::before { position: absolute; z-index: 2; top: 0; left: 50%; width: 95px; height: 19px; border-radius: 0 0 13px 13px; background: #1d2431; transform: translateX(-50%); content: ""; }
.phone-top { display: flex; height: 66px; align-items: flex-end; justify-content: space-between; padding: 0 16px 12px; background: #fff; font-size: 8px; }
.phone-top b { font-size: 11px; }
.chat-date { margin: 18px 0; color: #a0a8b5; font-size: 7px; text-align: center; }
.preview-video-message { display: flex; align-items: flex-start; gap: 7px; padding: 0 12px; }
.preview-video-message .avatar { width: 25px; height: 25px; border-radius: 8px; font-size: 8px; }
.video-cover { position: relative; display: grid; width: 205px; height: 126px; place-items: center; overflow: hidden; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 3px 9px rgba(22,32,51,.12); }
.video-cover::before { position: absolute; inset: 0; background: linear-gradient(155deg, #1d5de7 0 45%, #17325c 45% 100%); content: ""; }
.service-logo { position: relative; z-index: 1; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; background: rgba(255,255,255,.14); color: #fff; font-size: 19px; font-weight: 800; }
.play.big { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 28px; height: 28px; }
.video-cover > small { position: absolute; z-index: 2; bottom: 8px; left: 9px; color: rgba(255,255,255,.75); font-size: 7px; }
.phone-bottom { position: absolute; right: 8px; bottom: 9px; left: 8px; display: flex; height: 37px; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid #dde3ed; border-radius: 10px; background: #fff; font-size: 8px; }
.phone-bottom b { color: #a3acba; }
.preview-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }

.weight-list { margin-top: 18px; }
.weight-list h3, .service-load h3 { margin: 0 0 10px; font-size: 11px; }
.weight-list label { display: block; margin: 11px 0; }
.weight-list label > span { display: flex; justify-content: space-between; font-size: 9px; }
.weight-list input { width: 100%; accent-color: var(--blue); }
.service-load { margin-top: 18px; }
.service-load > div { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.service-load > div:last-child { border-bottom: 0; }
.service-load > div > span { flex: 1; }
.service-load b, .service-load small { display: block; }
.service-load b { font-size: 9px; }
.service-load small { color: var(--muted); font-size: 8px; }
.service-load strong { font-size: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips > span { display: inline-flex; min-height: 28px; align-items: center; gap: 7px; padding: 0 9px; background: var(--blue-soft); color: #3463c9; font-size: 9px; }
.chips button { border: 0; background: transparent; color: #86a1d9; }
.api-actions { display: flex; gap: 7px; }
.environment-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }
.environment-row > span:first-child { font-size: 10px; font-weight: 650; }
.environment-row .connection-state { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--green); font-size: 9px; font-weight: 650; }
.api-grid { grid-template-columns: repeat(2, 1fr); }
.masked-input { position: relative; }
.masked-input input { padding-right: 55px; }
.masked-input button { position: absolute; top: 4px; right: 5px; height: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--blue); font-size: 9px; }

.table-toolbar.inner { margin: 15px 18px; }
.deferred-hero { max-width: 750px; margin: 8px auto 25px; text-align: center; }
.deferred-hero > span { display: inline-block; padding: 4px 9px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 700; }
.deferred-hero h2 { margin: 12px 0 7px; font-size: 21px; }
.deferred-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.deferred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.deferred-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: start; gap: 12px; }
.deferred-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 9px; background: #f0f2f6; color: #7b8597; }
.deferred-icon svg { width: 20px; height: 20px; }
.deferred-card h3 { margin: 0; font-size: 12px; }
.deferred-card p { margin: 4px 0; color: var(--muted); font-size: 9px; }
.deferred-card small { color: #9ca4b2; font-size: 8px; }
.deferred-card .button { grid-column: 2 / -1; justify-self: start; min-height: 31px; font-size: 9px; }

.modal-mask { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 30px; background: rgba(13, 20, 37, .45); backdrop-filter: blur(2px); }
.modal { width: min(520px, 92vw); overflow: hidden; border-radius: 13px; background: #fff; box-shadow: 0 25px 65px rgba(8,15,30,.22); animation: modalIn .18s ease-out; }
.wide-modal { width: min(720px, 92vw); }
.small-modal { width: min(420px, 92vw); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head > div:first-child { display: flex; align-items: center; gap: 11px; }
.modal-head h2 { margin: 0; font-size: 15px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.modal-head > button, .video-modal > button, .support-image-modal > button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: #f2f4f7; color: #697386; font-size: 18px; }
.modal-body { max-height: 70vh; overflow-y: auto; padding: 18px 20px; }
.demand-detail-modal { display: flex; flex-direction: column; max-height: 90vh; }
.demand-detail-modal .modal-head, .demand-detail-modal .modal-foot { flex: 0 0 auto; }
.demand-detail-modal .modal-body { min-height: 0; max-height: none; overscroll-behavior: contain; }
.demand-detail-section + .demand-detail-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.demand-detail-section .notice-box { margin-top: 12px; }
.demand-detail-section .notice-box p, .demand-detail-section .record-summary b { white-space: pre-wrap; overflow-wrap: anywhere; }
.demand-detail-modal .record-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demand-detail-modal .record-summary > div { min-width: 0; }
.demand-detail-modal .record-summary > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.demand-messages .bubble { white-space: pre-wrap; overflow-wrap: anywhere; }
.demand-messages .message-meta { flex-wrap: wrap; }
.demand-history-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.demand-history-toolbar > span { flex: 1; }
.demand-history-toolbar select { margin-left: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.demand-history-paging { margin-bottom: 12px; text-align: center; color: var(--muted); font-size: 12px; }
.demand-history-scroll { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.demand-history-error { margin-bottom: 12px; }
.demand-messages .teacher .bubble { background: #edf7f2; border: 1px solid #d8eade; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfcfd; }
.modal-tabs { margin: -8px 0 5px; }
.modal-tabs button { cursor: pointer; }
.teacher-management-modal .modal-tabs{overflow-x:auto;flex-wrap:nowrap}
.teacher-management-modal .modal-tabs button{flex-shrink:0;white-space:nowrap}
.teacher-tab-pane { min-height: 330px; }
.teacher-bio-composer { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.teacher-bio-composer.full { grid-column: 1 / -1; margin-top: 14px; }
.teacher-contact-settings.full { grid-column: 1 / -1; margin-top: 16px; }
.teacher-bio-composer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #fafcff; }
.teacher-bio-composer-head > div { min-width: 0; }
.teacher-bio-composer-head b, .teacher-bio-composer-head small { display: block; }
.teacher-bio-composer-head b { color: var(--ink); font-size: var(--text-small); }
.teacher-bio-composer-head small { margin-top: 3px; color: var(--muted); font-size: var(--text-caption); font-weight: 400; }
.teacher-bio-composer-head > span { padding: 4px 9px; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: var(--text-caption); font-weight: 700; }
.teacher-bio-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.teacher-bio-toolbar button, .teacher-bio-upload { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #34405a; font: inherit; font-size: var(--text-caption); cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.teacher-bio-toolbar button:hover, .teacher-bio-upload:hover { border-color: #9fb6ee; color: var(--blue); background: #f6f8ff; }
.teacher-bio-toolbar .danger-quiet { margin-left: auto; color: #c63d46; }
.teacher-bio-upload { position: relative; color: var(--blue); font-weight: 650; }
.teacher-bio-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.teacher-bio-upload.uploading { opacity: .55; cursor: wait; }
.teacher-bio-upload.uploading span::after { content: " 上传中…"; }
.teacher-bio-editor { min-height: 210px; max-height: 460px; overflow-y: auto; padding: 18px 20px; color: var(--ink); font-size: var(--text-body); line-height: 1.75; outline: none; }
.teacher-bio-editor:focus { box-shadow: inset 0 0 0 2px rgba(31,94,255,.12); }
.teacher-bio-editor:empty::before { color: #98a2b3; content: attr(data-placeholder); pointer-events: none; }
.teacher-bio-editor p, .teacher-bio-editor div { margin: 0 0 12px; }
.teacher-bio-editor h2, .teacher-bio-editor h3 { margin: 18px 0 9px; color: var(--ink); line-height: 1.4; }
.teacher-bio-editor h2 { font-size: 20px; }
.teacher-bio-editor h3 { font-size: 17px; }
.teacher-bio-editor ul, .teacher-bio-editor ol { margin: 10px 0; padding-left: 26px; }
.teacher-bio-editor blockquote { margin: 14px 0; padding: 9px 13px; border-left: 3px solid #b7c8f5; color: #536683; background: #f7f9ff; }
.teacher-bio-editor img { display: block; max-width: min(100%, 720px); height: auto; box-sizing: border-box; margin: 16px auto; border: 2px solid transparent; border-radius: 10px; cursor: pointer; }
.teacher-bio-editor img:hover { border-color: #c6d4f8; }
.teacher-bio-editor img.selected { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,94,255,.12); }
.teacher-bio-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 15px; border-top: 1px solid var(--line); color: var(--muted); background: #fafcff; font-size: var(--text-caption); }
.teacher-verification-card { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fafcff; }
.teacher-verification-card > div { flex: 1; }
.teacher-verification-card b { font-size: var(--text-small); }
.teacher-verification-card p { margin: 4px 0 0; color: var(--muted); font-size: var(--text-caption); line-height: 1.5; }
.teacher-price-note { margin-top: 16px; padding: 13px 15px; border-left: 3px solid var(--blue); border-radius: 7px; background: var(--blue-soft); }
.teacher-price-note b { font-size: var(--text-small); }
.teacher-price-note p { margin: 4px 0 0; color: #536683; font-size: var(--text-caption); line-height: 1.5; }
.modal.teacher-management-modal { display: flex; width: min(1180px, 96vw); height: 94vh; max-height: 94vh; flex-direction: column; }
.teacher-management-modal .modal-head { min-height: 72px; flex: 0 0 auto; }
.teacher-save-feedback { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; margin: 12px 20px 0; padding: 11px 14px; border: 1px solid; border-radius: 9px; }
.teacher-save-feedback > span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 800; }
.teacher-save-feedback > div { min-width: 0; }
.teacher-save-feedback b, .teacher-save-feedback p { display: block; margin: 0; }
.teacher-save-feedback b { font-size: var(--text-small); }
.teacher-save-feedback p { margin-top: 3px; font-size: var(--text-caption); line-height: 1.5; }
.teacher-save-feedback.success { border-color: #b8e2d1; background: #f1fbf6; color: #176747; }
.teacher-save-feedback.success > span { background: #1a9b68; }
.teacher-save-feedback.success p { color: #477765; }
.teacher-save-feedback.error { border-color: #efc2c5; background: #fff6f6; color: #a52d38; }
.teacher-save-feedback.error > span { background: #cf3f4b; }
.teacher-save-feedback.error p { color: #8b4a50; }
.teacher-management-modal .modal-body { min-height: 0; max-height: none; flex: 1 1 auto; }
.teacher-management-modal .modal-foot { flex: 0 0 auto; }
.teacher-management-modal .modal-tabs { position: sticky; z-index: 5; top: 0; margin: 0 0 18px; padding: 10px 0 0; background: #fff; }
.teacher-education-editor [data-teacher-education-list] { display: grid; gap: 12px; }
.teacher-education-editor [data-education-index] { margin: 0; }
.teacher-education-editor .teacher-education-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.teacher-education-editor .teacher-education-actions button { min-width: 44px; min-height: 32px; padding: 6px 8px; border-radius: 6px; }
.teacher-education-editor [data-action="remove-teacher-education"] { color: #c43543; }
.teacher-education-editor button:disabled { cursor: not-allowed; opacity: .45; }
.education-editor-guide{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;padding:24px;margin-bottom:24px;border:1px solid #d9e5fa;border-radius:16px;background:#f4f8ff}
.education-guide-label{color:#2864ff;font-size:12px;font-weight:600}
.education-editor-guide h3{margin:8px 0;font-size:20px}
.education-editor-guide p,.teacher-trust-editor p{margin:8px 0 0;color:#72809a;font-size:13px;line-height:1.7}
.education-editor-guide aside{padding-left:24px;border-left:1px solid #d9e5fa}
.teacher-education-editor [data-education-index]{border-radius:16px;border:1px solid #dce5f3;box-shadow:none}
.teacher-education-editor [data-education-index]>.subsection-toolbar{padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid #edf1f7}
.teacher-education-editor .form-field>span{font-size:13px;color:#64718c}
.teacher-education-editor .form-help,.teacher-trust-editor .form-help{color:#8792a7;font-size:12px;line-height:1.8}
.teacher-trust-editor{padding:24px;margin-top:24px;border:1px solid #dce5f3;border-radius:16px;background:#fafcff}
.teacher-trust-editor .subsection-toolbar{align-items:flex-start;gap:24px;margin-bottom:20px}
.teacher-trust-editor h3{margin:0}
.teacher-trust-editor textarea{min-height:86px}
.trust-item-editor{margin:16px 0;padding:20px;border:1px solid #e1e8f3;border-radius:12px;background:#fafcff}
.trust-item-editor .subsection-toolbar{margin-bottom:16px;align-items:center}
.trust-item-actions{display:flex;gap:14px;align-items:center}
.trust-item-actions button:disabled{opacity:.35;cursor:not-allowed}
.trust-item-actions .danger{color:#d34b58}
.trust-item-editor .form-grid{grid-template-columns:minmax(160px,1fr) minmax(240px,2fr)}
@media(max-width:700px){.trust-item-editor .form-grid{grid-template-columns:1fr}.trust-item-actions{gap:8px}}
.cert-editor>.teacher-trust-editor{margin:0;padding:28px;border:0;border-top:1px solid #e7edf6;border-radius:0;background:#fff}
.cert-editor>.teacher-trust-editor .subsection-toolbar h3{font-size:16px}
@media(max-width:700px){.education-editor-guide{grid-template-columns:1fr}.education-editor-guide aside{padding-left:0;border-left:0}.teacher-trust-editor .subsection-toolbar{flex-wrap:wrap}}
.teacher-create-notice { margin: 0 0 16px; flex-shrink: 0; }
.teacher-create-notice p { line-height: 1.6; overflow-wrap: anywhere; }
.teacher-phone-modal .modal-body > .button { margin-top: 16px; }
.teacher-account-result { margin-top: 18px; overflow-wrap: anywhere; }
.teacher-account-result .button { margin-top: 12px; }
.teacher-phone-modal .modal-foot { flex-wrap: wrap; }
.teacher-sync-meta { color: var(--muted); font-size: var(--text-caption); font-weight: 500; }
.teacher-row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.teacher-delete-target { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafcff; }
.teacher-delete-warning, .teacher-delete-error { margin-top: 14px; padding: 13px 15px; border-radius: 9px; }
.teacher-delete-warning { border: 1px solid #efc2c5; background: #fff7f7; }
.teacher-delete-warning b, .teacher-delete-error b { color: #a52d38; font-size: var(--text-small); }
.teacher-delete-warning p, .teacher-delete-error p { margin: 4px 0 0; color: #7e5559; font-size: var(--text-caption); line-height: 1.6; }
.teacher-delete-error { border-left: 3px solid #cf3f4b; background: #fff1f2; }
.teacher-recommend-setting { margin-top: 18px; }
.teacher-data-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid #cad9fb; border-radius: 11px; background: #f4f7ff; }
.teacher-data-summary div { min-width: 0; }
.teacher-data-summary span, .teacher-data-summary b, .teacher-data-summary strong { display: block; }
.teacher-data-summary div > span { color: var(--muted); font-size: var(--text-caption); }
.teacher-data-summary b { margin-top: 3px; font-size: var(--text-body); }
.teacher-data-summary strong { margin-top: 5px; color: var(--blue); font-size: var(--text-small); }
.teacher-data-summary strong i { margin-left: 8px; font-style: normal; }
.subsection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 12px; }
.subsection-toolbar h3 { margin: 0; font-size: var(--text-subtitle); }
.subsection-toolbar p { margin: 3px 0 0; color: var(--muted); font-size: var(--text-caption); }
.teacher-service-card, .teacher-showcase-card { margin-bottom: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 3px 12px rgba(31, 48, 84, .04); }
.teacher-service-card.disabled { opacity: .7; background: #f8f9fb; }
.teacher-service-card.draft { opacity: 1; border-color: #e0ba6c; background: #fffdf7; }
.teacher-service-card.service-card-arriving { animation: serviceCardArrive .34s ease-out; }
.teacher-service-card > header, .teacher-showcase-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.teacher-service-card > header { margin-bottom: 0; }
.teacher-service-card > header > div:first-child span, .teacher-service-card > header > div:first-child b, .teacher-service-card > header > div:first-child small, .teacher-showcase-card > header > div:first-child span, .teacher-showcase-card > header > div:first-child b, .teacher-showcase-card > header > div:first-child small { display: block; }
.teacher-service-card > header span, .teacher-showcase-card > header span { color: var(--muted); font-size: var(--text-caption); }
.teacher-service-card > header b, .teacher-showcase-card > header b { margin-top: 2px; font-size: var(--text-body); }
.teacher-service-card > header small, .teacher-showcase-card > header small { margin-top: 2px; color: #98a2b3; font-size: 11px; }
.teacher-service-card > header > div:last-child { display: flex; align-items: center; gap: 9px; }
.service-card-actions { flex-wrap: wrap; justify-content: flex-end; }
.service-card-badges { display: contents; }
.service-card-toggle { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: #34405a; font: inherit; font-size: var(--text-caption); font-weight: 650; }
.service-card-toggle:hover { border-color: #b9c8e6; background: #f7f9fd; color: var(--blue); }
.service-delete-button { min-height: 32px; padding: 0 7px; color: #c43b3b; }
.teacher-service-content { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; transition: grid-template-rows .22s ease, margin-top .22s ease, opacity .16s ease; }
.teacher-service-content-inner { min-height: 0; overflow: hidden; }
.teacher-service-content.expanded { grid-template-rows: 1fr; margin-top: 13px; opacity: 1; }
.service-delete-confirm { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 13px; padding: 12px 14px; border: 1px solid #efc3c3; border-radius: 9px; background: #fff7f7; animation: serviceContentIn .18s ease-out; }
.service-delete-confirm b { color: #8f2929; font-size: var(--text-small); }
.service-delete-confirm p { margin: 3px 0 0; color: #875959; font-size: var(--text-caption); line-height: 1.5; }
.service-delete-confirm > div:last-child { display: flex; flex: 0 0 auto; gap: 8px; }
.service-delete-confirm .button { min-height: 34px; padding: 0 12px; }
.compact-grid { gap: 10px 12px; }
.service-mode-editor { margin-top: 13px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.service-mode-head, .service-mode-edit-row { display: grid; min-width: 760px; grid-template-columns: 110px minmax(220px, 1.5fr) 110px 120px 82px; align-items: center; gap: 9px; }
.service-mode-head { padding: 8px 11px; background: #f5f7fb; color: var(--muted); font-size: var(--text-caption); font-weight: 650; }
.service-mode-edit-row { padding: 10px 11px; border-top: 1px solid var(--line); }
.service-mode-edit-row b { font-size: var(--text-small); }
.service-mode-edit-row input, .service-mode-edit-row select { width: 100%; min-height: 36px; box-sizing: border-box; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: var(--text-caption); }
.primary-radio { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); cursor: pointer; font-size: var(--text-caption); }
.primary-radio input { width: 15px; min-height: auto; accent-color: var(--blue); }
.teacher-contact-grid, .teacher-showcase-section { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--line); }
.teacher-empty { min-height: 120px; margin: 10px 0 16px; border: 1px dashed #cbd5e7; border-radius: 11px; background: #fafcff; }
.teacher-showcase-card .form-field.full { grid-column: 1 / -1; }
.teacher-management-modal .modal-foot { position: sticky; bottom: 0; }
.teacher-history .record-summary { margin-top: 18px; }
.teacher-history .order-timeline { margin-top: 20px; }
.teacher-history .notice-box { margin-top: 20px; }
.handoff-student { display: flex; justify-content: space-between; padding: 11px; border-radius: 8px; background: #f4f7fc; font-size: 10px; }
.handoff-student span { color: var(--muted); }
.selected-teachers { display: grid; gap: 6px; margin-top: 12px; }
.selected-teachers > div { display: flex; align-items: center; justify-content: space-between; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.selected-teachers > div > b { color: var(--blue); font-size: 11px; }
.modal-mask.dark { background: rgba(5,10,20,.78); }
.video-modal { position: relative; width: min(860px, 90vw); padding: 8px; border-radius: 14px; background: #111827; box-shadow: 0 25px 70px rgba(0,0,0,.35); animation: modalIn .18s ease-out; }
.video-modal > button { position: absolute; z-index: 2; top: -38px; right: 0; background: rgba(255,255,255,.12); color: #fff; }
.video-modal video { display: block; width: 100%; max-height: 70vh; border-radius: 9px; background: #000; }
.video-modal > div { display: flex; justify-content: space-between; padding: 12px 5px 5px; color: #fff; font-size: 10px; }
.video-modal > div span { color: #9fa9ba; }
.support-image-modal { position: relative; width: min(680px, 86vw); padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 25px 70px rgba(0,0,0,.35); animation: modalIn .18s ease-out; }
.support-image-modal > button { position: absolute; z-index: 2; top: -38px; right: 0; background: rgba(255,255,255,.14); color: #fff; }
.support-image-modal > img { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 9px; background: #f5f7fb; }
.support-image-modal > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 5px 4px; color: var(--ink); font-size: 10px; }
.support-image-modal > div span { color: var(--muted); }

.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: 360px; padding: 11px 15px; border-radius: 9px; background: #17233d; color: #fff; box-shadow: 0 14px 30px rgba(12,22,43,.22); font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes serviceContentIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes serviceCardArrive { 0% { opacity: .25; transform: translateY(14px); box-shadow: 0 0 0 4px rgba(227, 167, 51, .2); } 100% { opacity: 1; transform: none; box-shadow: 0 3px 12px rgba(31, 48, 84, .04); } }

@media (prefers-reduced-motion: reduce) {
  .teacher-service-card.service-card-arriving,
  .service-delete-confirm { animation: none; }
  .teacher-service-content { transition: none; }
}

@media (max-width: 1320px) {
  .sidebar { width: 214px; }
  .main { margin-left: 214px; }
  .service-desk { grid-template-columns: 244px minmax(370px, 1fr) 330px; }
  .global-search { width: 210px; }
  .session-browser { grid-template-columns: 190px 250px minmax(540px, 1fr); }
  .detail-split { grid-template-columns: minmax(285px, 1fr) 260px; }
}

@media (max-width: 1180px) {
  body { min-width: 1024px; }
  .sidebar { width: 190px; }
  .main { margin-left: 190px; }
  .page-content { padding-right: 20px; padding-left: 20px; }
  .side-nav button { padding: 0 9px; }
  .service-desk { grid-template-columns: 225px minmax(355px, 1fr) 310px; }
  .topbar { padding-right: 20px; padding-left: 20px; }
  .global-search { display: none; }
}

/* 运营后台排版校准：提高可读性，限制超宽/超高页面中的无效留白。 */
body { min-width: 0; font-size: 14px; }
.sidebar { width: 224px; padding-top: 20px; }
.main { margin-left: 224px; }
.topbar { min-height: 88px; padding: 16px 24px; }
.topbar h1 { font-size: 23px; }
.topbar p { font-size: 13px; }
.crumb { font-size: 11px; }
.page-content { max-width: 1580px; padding: 20px 24px 36px; }
.side-nav section + section { margin-top: 15px; }
.side-nav section > p { margin-bottom: 5px; font-size: 11px; }
.side-nav button { min-height: 40px; }
.side-nav button b { font-size: 13px; }
.support-card { padding: 10px 12px; }
.metric-card { min-height: 112px; padding: 16px 17px; }
.metric-top { font-size: 12px; }
.metric-card > strong { margin-top: 6px; font-size: 26px; }
.metric-card > small { font-size: 11px; }
.section-head h2 { font-size: 16px; }
.section-head p { font-size: 12px; }
.button, .global-search, .page-search, .sessions-toolbar select, .table-toolbar select { min-height: 40px; font-size: 13px; }
.page-search { width: min(360px, 34vw); }
.teacher-search-control { width: min(480px, 100%); max-width: 100%; }
.teacher-activation-filters { margin: 0 0 16px; }
.teacher-activation-filters .segmented { display: inline-flex; max-width: 100%; }
.teacher-activation-filters .segmented button { min-height: 42px; white-space: nowrap; }
.teacher-activation-filters p { margin: 8px 0 0; color: #64748b; font-size: 13px; line-height: 1.6; }
.table-toolbar:has(.teacher-search-control) { align-items: flex-start; }
.teacher-search-row { display: flex; align-items: stretch; gap: 10px; }
.teacher-search-row .page-search { flex: 1; width: auto; min-width: 0; height: 44px; }
.teacher-search-row .page-search input { min-width: 0; }
.table-toolbar .teacher-search-button { flex: 0 0 88px; min-height: 44px; margin-left: 0; font-size: 14px; }
.teacher-search-status { display: block; margin-top: 6px; min-height: 18px; color: #64748b; font-size: 12px; line-height: 1.5; }
.compact-search { width: min(280px, 26vw); margin-left: 4px; }
.table-panel > .section-head { padding: 18px 20px 0; }
th { padding: 12px 15px; font-size: 12px; }
td { padding: 14px 15px; font-size: 13px; }
td > b, .cell-person b { font-size: 13px; }
td > small, .cell-person small { margin-top: 3px; font-size: 11px; }
.table-count { font-size: 12px; }
.text-button { font-size: 12px; }
.badge { min-height: 23px; font-size: 11px; }
.badge + small { display: block; margin-top: 5px; }
.segmented button { min-height: 32px; font-size: 12px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.teacher-table td:nth-child(3), .user-table td:nth-child(3) { min-width: 220px; }
.user-table td:nth-child(4), .member-table td:nth-child(2) { min-width: 190px; }
.member-table td:nth-child(5) { min-width: 245px; }
.order-table td:nth-child(4) { min-width: 210px; }

.service-desk {
  grid-template-columns: 260px minmax(500px, 1fr) 350px;
  height: min(760px, calc(100dvh - 154px));
  min-height: 600px;
}
.session-browser {
  grid-template-columns: 230px 300px minmax(620px, 1fr);
  height: min(780px, calc(100dvh - 170px));
  min-height: 600px;
}
.student-browser-list, .conversation-browser-list { max-height: none; height: calc(100% - 60px); }
.student-browser-card b, .conversation-card b { font-size: 12px; }
.student-browser-card small, .conversation-card p { font-size: 10px; }
.conversation-card footer > span:last-child { font-size: 9px; }
.detail-title h2 { font-size: 17px; }
.detail-hero p, .conversation-summary-strip b, .conversation-summary-strip dd { font-size: 11px; }
.conversation-summary-strip p, .subsection-head span, .matched-teacher p, .trace-box li { font-size: 10px; }
.subsection-head h3, .matched-teacher b { font-size: 13px; }
.detail-split { height: calc(100% - 148px); min-height: 0; }

.record-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.record-summary > div { padding: 13px; background: #fbfcfe; }
.record-summary span, .record-summary b { display: block; }
.record-summary span { color: var(--muted); font-size: 10px; }
.record-summary b { margin-top: 4px; font-size: 12px; }
.order-timeline { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.order-timeline > div { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); }
.order-timeline > div::before { position: absolute; top: 17px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #c8cfdb; content: ""; }
.order-timeline > div.done::before { background: var(--blue); }
.order-timeline b { font-size: 11px; }
.order-timeline span { color: var(--muted); font-size: 11px; }

@media (min-width: 1780px) {
  .page-content { padding-top: 24px; }
  .session-browser, .service-desk { margin-right: auto; margin-left: auto; }
}

@media (max-width: 1180px) {
  .sidebar { width: 76px; padding-right: 10px; padding-left: 10px; }
  .main { margin-left: 76px; }
  .brand { justify-content: center; padding-right: 0; padding-left: 0; }
  .brand > div, .workspace-pill div, .workspace-pill > span:last-child, .side-nav section > p, .side-nav button b, .side-nav button em, .support-card, .admin-user > div, .admin-user > button { display: none; }
  .workspace-pill { justify-content: center; min-height: 42px; padding: 0; border: 0; background: transparent; }
  .side-nav button { justify-content: center; padding: 0; }
  .admin-user { justify-content: center; padding-left: 0; }
  .page-content { padding-right: 18px; padding-left: 18px; }
  .service-desk { grid-template-columns: 230px minmax(480px, 1fr); height: auto; }
  .matching-column { grid-column: 1 / -1; }
  .session-browser { grid-template-columns: 210px 270px minmax(610px, 1fr); overflow-x: auto; }
  .metrics-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout, .strategy-layout, .overview-grid, .overview-lower { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; }
  .top-actions .button { flex: 1; }
  .page-content { padding: 14px; }
  .metrics-grid.four { grid-template-columns: 1fr; }
  .table-toolbar, .sessions-toolbar { align-items: stretch; flex-wrap: wrap; }
  .page-search, .compact-search { width: 100%; }
  .table-toolbar .button, .sessions-toolbar .button { margin-left: 0; }
  .table-pagination { align-items: flex-start; flex-direction: column; }
  .pagination-actions { width: 100%; flex-wrap: wrap; }
  .record-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confirmed-match-panel.compact .confirmed-match-list { grid-template-columns: 1fr; }
  .confirmed-match-meta { grid-template-columns: 1fr; }
  .confirmed-match-meta time { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full, .span-two { grid-column: auto; }
  .teacher-bio-toolbar .danger-quiet { margin-left: 0; }
  .teacher-bio-help { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* Typography system: all operational UI shares one readable scale. */
:root {
  --text-caption: 12px;
  --text-small: 13px;
  --text-body: 14px;
  --text-subtitle: 16px;
  --text-heading: 18px;
  --text-title: 26px;
}

body { font-size: var(--text-body); line-height: 1.55; }

/* Navigation and page chrome */
.brand small,
.workspace-pill small,
.support-card span,
.support-card b,
.admin-user small { font-size: var(--text-caption); line-height: 1.45; }
.workspace-pill b,
.admin-user b { font-size: var(--text-small); }
.side-nav section > p { font-size: 11px; }
.side-nav button b { font-size: var(--text-body); }
.side-nav button em { font-size: 11px; }
.crumb { font-size: var(--text-caption); }
.topbar h1 { font-size: var(--text-title); }
.topbar p { font-size: var(--text-body); }
.global-search input,
.page-search input,
.column-search input,
.button,
.sessions-toolbar select,
.table-toolbar select { font-size: var(--text-body); }

/* Dashboard, filters and tables */
.metric-top { font-size: var(--text-small); }
.metric-card > small,
.section-head p,
.legend { font-size: var(--text-caption); }
.section-head h2 { font-size: var(--text-heading); }
.y-labels,
.chart-day > span { font-size: 11px; }
.focus-list b,
.direction-list b { font-size: var(--text-small); }
.focus-list small,
.direction-list small,
.focus-rank,
.direction-list strong,
.funnel span { font-size: var(--text-caption); }
.funnel b { font-size: 22px; }
th { font-size: var(--text-small); line-height: 1.4; }
td,
td > b,
.cell-person b { font-size: var(--text-body); line-height: 1.45; }
td > small,
.cell-person small,
.person small,
.table-count { font-size: var(--text-caption); line-height: 1.45; }
.badge,
.text-button,
.segmented button,
.toolbar-meta > span { font-size: var(--text-caption); }

/* Service desk */
.column-head h2,
.pane-head h2 { font-size: var(--text-subtitle); }
.column-head span,
.pane-head span { font-size: var(--text-caption); }
.column-search { font-size: var(--text-small); }
.queue-card-top b,
.queue-card h3 { font-size: var(--text-body); }
.queue-card-top small,
.queue-card-top time { font-size: var(--text-caption); }
.queue-card > p { font-size: var(--text-caption); line-height: 1.5; }
.unread { font-size: 10px; }
.context-top h2 { font-size: var(--text-heading); }
.context-top h2 span,
.context-top p { font-size: var(--text-caption); }
.context-facts span { font-size: var(--text-caption); }
.context-facts b,
.ai-summary b,
.ai-summary p { font-size: var(--text-caption); line-height: 1.5; }
.ai-mark { font-size: 10px; }
.conversation-head h3 { font-size: var(--text-subtitle); }
.conversation-head span { font-size: var(--text-caption); }
.message-meta b,
.message-meta time,
.system-message > time { font-size: var(--text-caption); }
.bubble { padding: 10px 13px; font-size: var(--text-body); line-height: 1.55; }
.bubble small { font-size: var(--text-caption); }
.video-thumb small { font-size: 10px; }
.video-message > div:last-child b { font-size: var(--text-small); }
.video-message > div:last-child span { font-size: var(--text-caption); }
.service-reply textarea,
.service-reply .button { font-size: var(--text-small); }
.match-summary span,
.check { font-size: var(--text-caption); }
.candidate-info b { font-size: var(--text-body); }
.candidate-info > div span,
.candidate-info p { font-size: var(--text-caption); }
.candidate-info small,
.candidate-tags span,
.teacher-tags span,
.chips > span,
.quote-row,
.handoff-box label,
.handoff-box > small { font-size: var(--text-caption); }
.quote-row input,
.handoff-box textarea,
.handoff-total { font-size: var(--text-caption); }

/* Full session browser */
.student-browser-card b,
.conversation-card b { font-size: var(--text-body); }
.student-browser-card small,
.conversation-card time { font-size: var(--text-caption); }
.conversation-card p { font-size: var(--text-small); line-height: 1.5; }
.conversation-card footer > span:last-child { font-size: var(--text-caption); }
.detail-title h2 { font-size: 20px; }
.detail-hero p { font-size: var(--text-caption); }
.conversation-summary-strip b { font-size: var(--text-small); }
.conversation-summary-strip p { font-size: var(--text-caption); line-height: 1.5; }
.conversation-summary-strip dt,
.agent-run-facts small,
.agent-run-strip dt { font-size: var(--text-caption); }
.conversation-summary-strip dd,
.agent-run-strip > div:first-child b,
.agent-run-facts b,
.agent-run-strip dd,
.agent-error { font-size: var(--text-caption); }
.agent-run-strip > div:first-child span { font-size: var(--text-caption); }
.subsection-head h3 { font-size: var(--text-subtitle); }
.subsection-head span,
.matched-teacher small,
.matched-teacher p,
.matched-teacher footer,
.trace-box li,
.trace-box time,
.empty-state p { font-size: var(--text-caption); line-height: 1.5; }
.matched-teacher b,
.trace-box > b,
.empty-state b { font-size: var(--text-body); }

/* Reviews, configuration and forms */
.tabs button { font-size: var(--text-small); }
.tabs button span { font-size: 11px; }
.review-item b { font-size: var(--text-body); }
.review-item p,
.setting-row p,
.form-field small,
.upload-box small,
.notice-box p,
.weight-list label > span,
.service-load small,
.service-load strong,
.environment-row .connection-state { font-size: var(--text-caption); line-height: 1.5; }
.review-item .button,
.setting-row b,
.upload-box b,
.notice-box b,
.weight-list h3,
.service-load h3,
.service-load b,
.environment-row > span:first-child,
.masked-input button { font-size: var(--text-small); }
.form-field > span { font-size: var(--text-small); }
.form-field > input,
.form-field > textarea,
.form-field > select,
.input-with-action input,
.masked-input input { min-height: 42px; font-size: var(--text-body); line-height: 1.5; }
.chips > span { min-height: 32px; font-size: var(--text-caption); }

/* Dialogs and transient feedback */
.modal { width: min(560px, 92vw); }
.wide-modal { width: min(760px, 92vw); }
.small-modal { width: min(460px, 92vw); }
.modal-head { padding: 20px 22px; }
.modal-head h2 { font-size: var(--text-heading); line-height: 1.4; }
.modal-head p { font-size: var(--text-small); line-height: 1.5; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 15px 22px; }
.handoff-student { font-size: var(--text-small); }
.selected-teachers > div > b { font-size: var(--text-body); }
.record-summary span { font-size: var(--text-caption); }
.record-summary b { font-size: var(--text-body); }
.order-timeline b { font-size: var(--text-small); }
.order-timeline span { font-size: var(--text-caption); }
.video-modal > div { font-size: var(--text-small); }
.toast { font-size: var(--text-small); }

/* Larger typography needs slightly wider operational columns. */
.service-desk { grid-template-columns: 280px minmax(560px, 1fr) 380px; }
.session-browser { grid-template-columns: 250px 320px minmax(650px, 1fr); }
.detail-split { grid-template-columns: minmax(360px, 1fr) 310px; }
.student-browser-card { padding: 11px; }
.conversation-card { padding: 13px; }
.matched-teacher { padding: 12px; }

@media (max-width: 1380px) {
  :root { --text-title: 24px; }
  .service-desk { grid-template-columns: 250px minmax(500px, 1fr) 350px; }
  .session-browser { grid-template-columns: 225px 290px minmax(620px, 1fr); }
  .detail-split { grid-template-columns: minmax(330px, 1fr) 285px; }
}

@media (max-width: 1180px) {
  .service-desk { grid-template-columns: 235px minmax(520px, 1fr); }
  .session-browser { grid-template-columns: 220px 280px minmax(650px, 1fr); }
  .review-toolbar { align-items: flex-start; flex-direction: column; }
  .review-image-editor { grid-template-columns: repeat(4, minmax(80px, 1fr)); }
}

@media (max-width: 760px) {
  .review-toolbar > div:last-child { width: 100%; align-items: stretch; flex-direction: column; }
  .review-toolbar select { width: 100%; }
  .review-student-group > header { align-items: flex-start; }
  .review-record { grid-template-columns: 52px minmax(0, 1fr); }
  .review-record-actions { grid-column: 2; justify-content: flex-end; }
  .review-image-editor { grid-template-columns: repeat(3, minmax(72px, 1fr)); }
}

/* Marketing, redemption and referral operations */
.marketing-tabs{display:inline-flex;gap:4px;margin-bottom:18px;padding:4px;border:1px solid #E1E7F0;border-radius:12px;background:#EEF2F7}
.marketing-tabs button{min-width:116px;height:38px;padding:0 20px;border:0;border-radius:9px;color:#64718A;background:transparent;font-weight:700;cursor:pointer}
.marketing-tabs button.active{color:#173EAE;background:#FFF;box-shadow:0 3px 10px rgba(21,49,112,.09)}
.marketing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.marketing-toolbar h2{margin:0;color:#17233F;font-size:18px}
.marketing-toolbar p{margin:5px 0 0;color:#7B879D;font-size:13px}
.marketing-toolbar>div:last-child{display:flex;gap:9px}
.benefit-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.benefit-product-card{padding:20px;border:1px solid #E3E8F1;border-radius:16px;background:#FFF;box-shadow:0 7px 22px rgba(24,48,94,.045)}
.benefit-product-card.disabled{background:#F8F9FC;opacity:.78}
.benefit-product-card header{display:flex;align-items:flex-start;gap:12px}
.benefit-product-card header>div{min-width:0;flex:1}
.benefit-product-card h3{margin:1px 0 4px;color:#182441;font-size:16px}
.benefit-product-card p{margin:0;color:#7A879D;font-size:12px;line-height:1.55}
.benefit-product-icon{width:42px;height:42px;flex:none;border-radius:12px;color:#1E5FF1;background:#EDF3FF;font-size:15px;font-weight:800;line-height:42px;text-align:center}
.benefit-product-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:18px;padding:13px;border-radius:12px;background:#F6F8FC}
.benefit-product-facts span{min-width:0}
.benefit-product-facts small,.benefit-product-facts b{display:block}
.benefit-product-facts small{color:#8B96AA;font-size:10px}
.benefit-product-facts b{margin-top:5px;color:#293651;font-size:12px;white-space:nowrap}
.benefit-product-card footer{display:flex;align-items:center;justify-content:space-between;margin-top:13px;color:#8B96AA;font-size:11px}
.benefit-product-card footer>div{display:flex;gap:12px}
.marketing-table{margin-top:16px}
.marketing-table .button.compact{height:32px;padding:0 12px;font-size:11px}
.marketing-table td .text-button+.text-button{margin-left:12px}
.teacher-direction-table td .text-button+.text-button{margin-left:12px}
.service-category-match-note{display:flex;align-items:flex-start;gap:10px;padding:12px 18px;border-bottom:1px solid #e6ebf3;background:#f6f9ff;color:#62708a;font-size:12px;line-height:1.7}.service-category-match-note b{flex-shrink:0;color:#285fc2}.service-category-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:154px}.service-category-actions .text-button{min-height:30px;padding:0 10px;border:1px solid #d7e1f2;border-radius:6px;background:#fff;color:#1f61d7;font-size:12px;line-height:28px}.service-category-actions .text-button:hover{border-color:#a8c4fb;background:#f3f7ff;text-decoration:none}.service-category-actions .danger-text{border-color:#f0caca;background:#fffafa;color:#c43b3b}.service-category-actions .danger-text:hover{border-color:#e4abab;background:#fff4f4;color:#a52d2d}
.marketing-table code{display:inline-block;padding:5px 8px;border-radius:7px;color:#173EAE;background:#EDF3FF;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:700;letter-spacing:.5px}
.marketing-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.marketing-rule-card{padding:22px}
.marketing-rule-card .section-head{margin-bottom:18px}
.suffix-input{display:flex;align-items:center;border:1px solid #DCE3EE;border-radius:10px;background:#FFF}
.suffix-input input{min-width:0;flex:1;border:0!important;box-shadow:none!important}
.suffix-input span{padding:0 13px;color:#69758B;font-weight:700}
.trigger-flow{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:18px;padding:16px;border:1px dashed #BED0FA;border-radius:12px;background:#F4F7FF}
.trigger-flow span{padding:8px 10px;border-radius:8px;color:#244175;background:#FFF;font-size:11px;font-weight:700;text-align:center}
.trigger-flow i{color:#7294E7;font-style:normal}
.marketing-rule-actions{display:flex;justify-content:flex-end;margin-top:16px}
.batch-code-copy-source{position:absolute;width:1px;height:1px;overflow:hidden;opacity:.01}
.batch-code-summary{display:flex;gap:10px;margin-bottom:14px}
.batch-code-summary span{padding:7px 10px;border-radius:8px;color:#53617A;background:#F1F4F8;font-size:11px;font-weight:700}
.batch-code-modal .table-scroll{max-height:430px;border:1px solid #E7EBF2;border-radius:12px}
.modal-table-note{margin:10px 0 0;color:#8B96AA;font-size:11px}

@media (max-width: 1180px){
  .benefit-product-grid{grid-template-columns:1fr}
  .trigger-flow{align-items:stretch;flex-direction:column}
  .trigger-flow i{transform:rotate(90deg);text-align:center}
}

/* Administrator identity, roles and audit trail */
.account-chip{display:flex;align-items:center;gap:8px;max-width:190px;padding:5px 9px 5px 5px;border:1px solid #E1E7F0;border-radius:999px;color:#33415E;background:#FFF;font:700 12px inherit;cursor:pointer}
.account-chip .avatar{width:28px;height:28px;border-radius:50%;font-size:12px}.account-chip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-user{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px}.admin-user>div{min-width:0}.admin-user b,.admin-user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-user b{color:#FFF;font-size:13px}.admin-user small{margin-top:3px;color:#94A3BD;font-size:11px}.admin-user .text-button{padding:4px 0;color:#AFC0DE;font-size:11px}
.table-empty{padding:32px!important;color:#8491A7!important;text-align:center}
.audit-toolbar{display:flex;align-items:center;gap:8px}.audit-toolbar input{width:230px;height:34px;padding:0 10px;border:1px solid #DDE4EE;border-radius:9px;color:#273550;font:12px inherit;outline:none}.audit-toolbar input:focus{border-color:#4A7CF3;box-shadow:0 0 0 3px rgba(74,124,243,.1)}.audit-toolbar .button{height:34px;padding:0 11px;font-size:12px}
.membership-student-picker{display:grid;gap:10px}.membership-selected-user,.membership-student-static{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #DDE7F8;border-radius:11px;background:#F7FAFF}.membership-selected-user>div,.membership-student-static>div{min-width:0}.membership-selected-user b,.membership-selected-user small,.membership-student-static b,.membership-student-static small{display:block}.membership-selected-user b,.membership-student-static b{color:#263653;font-size:13px}.membership-selected-user small,.membership-student-static small{margin-top:3px;color:#7C8AA1;font-size:11px}.membership-student-search{position:relative}.membership-student-search>span{position:absolute;top:11px;left:12px;color:#8290A7;font-size:15px}.membership-student-search input{width:100%;height:42px;padding:0 12px 0 34px;border:1px solid #DCE4EF;border-radius:10px;color:#243350;background:#FFF;font:13px inherit;outline:none}.membership-student-search input:focus{border-color:#4D7FF3;box-shadow:0 0 0 3px rgba(77,127,243,.11)}.membership-student-search small{display:block;margin:6px 0 0;color:#8491A6;font-size:11px}.membership-student-options{display:grid;max-height:220px;overflow:auto;border:1px solid #E2E8F1;border-radius:11px;background:#FFF}.membership-student-options button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #EDF0F5;color:inherit;background:#FFF;text-align:left;cursor:pointer}.membership-student-options button.is-filtered-out{display:none!important}.membership-student-options button:last-of-type{border-bottom:0}.membership-student-options button:hover{background:#F5F8FF}.membership-student-options button>span:nth-child(2){min-width:0;flex:1}.membership-student-options button b,.membership-student-options button small{display:block}.membership-student-options button b{overflow:hidden;color:#283855;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.membership-student-options button small{margin-top:3px;overflow:hidden;color:#8390A5;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.membership-student-options .badge{margin-left:auto;flex:none}.membership-student-empty{margin:0;padding:16px;color:#8794A9;font-size:12px;text-align:center}
.role-page{display:grid;gap:16px}.role-list{display:grid;gap:11px}.role-card{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 18px;border:1px solid #E2E8F1;border-radius:13px;background:#FFF}.role-card>div:first-child{min-width:0}.role-card-title{display:flex;align-items:center;gap:9px}.role-card h3{margin:0;color:#17233F;font-size:16px}.role-card p{margin:7px 0;color:#6D7B92;font-size:13px;line-height:1.55}.role-card small{color:#8A97AA;font-size:12px}.role-card-actions{display:flex;align-items:center;gap:10px;flex:none}.role-card-actions .button{height:34px;padding:0 12px;font-size:12px}
.role-editor-modal{width:min(980px,94vw)}.permission-editor{margin-top:20px;border:1px solid #E2E8F1;border-radius:13px;overflow:hidden}.permission-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#F7F9FD}.permission-editor-head b{color:#253451;font-size:14px}.permission-editor-head small{color:#7C899E;font-size:12px}.permission-group{padding:14px 16px;border-top:1px solid #E8ECF2}.permission-group h3{margin:0 0 10px;color:#53617A;font-size:12px}.permission-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 20px}.permission-check{display:flex;align-items:flex-start;gap:9px;padding:8px;border-radius:9px;cursor:pointer}.permission-check:hover{background:#F5F8FE}.permission-check input{width:16px;height:16px;margin:1px 0 0;accent-color:#2B65F5}.permission-check b,.permission-check small{display:block}.permission-check b{color:#263551;font-size:12px}.permission-check small{margin-top:3px;color:#8B97AA;font-size:11px;line-height:1.45}
.temporary-password-modal input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em}.forced-password-mask{background:rgba(11,20,37,.68)}.auth-gate{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 20%,#E9F0FF 0,transparent 30%),#F6F8FC;text-align:center}.auth-gate>section{max-width:410px}.auth-gate h1{margin:16px 0 8px;color:#17233F;font-size:26px}.auth-gate p{margin:0;color:#728099;line-height:1.7}.auth-gate-mark{display:inline-grid;width:54px;height:54px;place-items:center;border-radius:17px;color:#FFF;background:linear-gradient(135deg,#2F70FF,#174ACD);font-size:26px;font-weight:800;box-shadow:0 12px 28px rgba(32,91,231,.25)}
@media (max-width: 900px){.account-chip span:last-child{display:none}.role-card{align-items:stretch;flex-direction:column}.role-card-actions{justify-content:flex-end}.permission-group>div{grid-template-columns:1fr}.permission-editor-head{align-items:flex-start;flex-direction:column}}

/* Learning groups, timed tutoring, RTC and settlement operations */
.operation-alert{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;padding:14px 16px;border:1px solid #F0C9C9;border-radius:12px;background:#FFF7F7}.operation-alert b{color:#9E3030;font-size:13px}.operation-alert p{margin:4px 0 0;color:#876565;font-size:12px}.operation-members{display:flex;align-items:center;min-width:150px}.operation-members .avatar{margin-left:-7px;border:2px solid #FFF}.operation-members .avatar:first-child{margin-left:0}.operation-members>span:last-child{margin-left:9px;color:#738099;font-size:11px;font-weight:700}.avatar.xs{width:27px;height:27px;font-size:10px}.operation-table td>small{display:block;margin-top:4px}.operation-table code,.integration-card code{display:inline-block;padding:4px 7px;border-radius:6px;color:#244BB0;background:#EEF3FF;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.mono-value{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}.muted{color:#98A3B5;font-size:12px}.danger-text{color:#C33B3B!important}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.integration-card{padding:20px}.integration-card header{display:flex;align-items:center;justify-content:space-between}.integration-mark{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;color:#1E5FF1;background:#EEF3FF}.integration-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}.integration-card h2{margin:18px 0 5px;color:#17233F;font-size:17px}.integration-card>p{margin:0;color:#748198;font-size:12px;line-height:1.6}.integration-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 12px;padding:13px;border-radius:11px;background:#F6F8FC}.integration-card dl div{min-width:0}.integration-card dt{color:#8C98AA;font-size:10px}.integration-card dd{margin:5px 0 0;overflow:hidden;color:#2C3953;font-size:12px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.integration-card>small{color:#8995A8;font-size:11px}.integration-notice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin-top:16px}.integration-notice p{margin-right:20px}.integration-notice .button{grid-column:2;grid-row:1 / span 2}
@media (max-width:1100px){.integration-grid{grid-template-columns:1fr}.integration-card dl{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media (max-width:760px){.operation-alert{align-items:flex-start;flex-direction:column}.integration-card dl{grid-template-columns:1fr}.integration-notice{display:block}.integration-notice .button{margin-top:12px}}
/* Independent public website QR configuration. Never crop a QR image. */
.website-qr-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:24px 0; }
.website-qr-editor { min-width:0; padding:22px; border:1px solid #e1e6f0; border-radius:12px; }
.website-qr-editor h3 { margin:0 0 8px; font-size:18px; }
.website-qr-editor p, .website-config-status { font-size:14px; color:#63708a; line-height:1.7; }
.website-qr-preview { display:flex; align-items:center; justify-content:center; height:220px; margin:18px 0; background:#f7f9fc; border:1px solid #e1e6f0; border-radius:8px; }
.website-qr-preview img { display:block; max-width:100%; max-height:100%; object-fit:contain; background:white; }
.website-qr-preview span { font-size:14px; color:#63708a; }
.website-qr-actions { display:flex; flex-wrap:wrap; gap:10px; }
.website-qr-actions input:disabled { cursor:not-allowed; }
@media(max-width:1100px) { .website-qr-grid { grid-template-columns:1fr; } .website-qr-preview { max-width:300px; } }
.h5-demand-admin .toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:18px 0}.h5-demand-admin .toolbar label{display:grid;gap:6px;color:#64748b;font-size:12px}.h5-demand-admin .toolbar input,.h5-demand-admin .toolbar select{min-height:40px;border:1px solid #dbe4f0;border-radius:10px;padding:8px 11px;background:#fff;color:#17233f}.h5-demand-admin .search-field{min-width:260px;flex:1}.h5-demand-list{display:grid;gap:14px}.h5-demand-row{border:1px solid #dfe7f2;border-radius:14px;padding:16px;background:#fbfdff}.h5-demand-summary{margin-bottom:14px}.h5-demand-summary>div{display:flex;gap:10px;align-items:center}.h5-demand-summary strong{font-size:17px;color:#17233f}.h5-demand-summary span{padding:4px 9px;border-radius:14px;background:#e9f2ff;color:#1261db;font-size:12px}.h5-demand-summary p{margin:7px 0 4px;color:#40516f}.h5-demand-summary small{color:#7b8aa2}.h5-demand-row textarea{min-height:78px;resize:vertical}.h5-demand-row>.button{margin-top:12px}
.top-actions .circle-button { position:relative; }
.review-unread-count { position:absolute; right:-6px; top:-6px; background:#d94141; color:#fff; border:2px solid #fff; border-radius:14px; min-width:21px; padding:1px 4px; font:600 11px/17px system-ui; }
.review-unread-count[hidden] { display:none; }
.service-review-dialog { width:min(1100px,94vw); }
.review-filters { display:flex; gap:10px; padding:16px 24px; border-bottom:1px solid #e4e9f1; }
.review-workspace { display:grid; grid-template-columns:290px minmax(0,1fr); height:min(68vh,760px); }
.review-list { overflow:auto; border-right:1px solid #e4e9f1; padding:12px; background:#f7f9fc; }
.review-list-item { display:flex; flex-direction:column; gap:8px; width:100%; padding:16px; text-align:left; border:1px solid transparent; border-radius:10px; background:#fff; color:#192a44; margin-bottom:8px; cursor:pointer; }
.review-list-item span,.review-list-item small { color:#64748b; line-height:1.5; }
.review-list-item.selected { border-color:#3473eb; background:#eff5ff; }
.review-list-item:focus-visible { outline:2px solid #3473eb; outline-offset:2px; }
.review-detail { overflow:auto; padding:24px; min-width:0; }
.review-detail dt { color:#64748b; margin-top:20px; font-size:13px; }
.review-detail dd { margin:8px 0 20px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.review-prices { width:100%; border-collapse:collapse; }
.review-prices td,.review-prices th { padding:12px; border-bottom:1px solid #e4e9f1; text-align:left; }
.review-decision { position:sticky; bottom:-24px; background:#fff; border-top:1px solid #e4e9f1; padding:16px 0; margin-top:24px; }
/* Strategy configuration: separate financial publishing from AI configuration. */
.strategy-tabs { display:flex; gap:28px; margin-bottom:28px; border-bottom:1px solid #dfe5ef; }
.strategy-tabs button { padding:14px 4px; border:0; border-bottom:3px solid transparent; background:transparent; color:#64718a; font-family:inherit; font-size:16px; font-weight:600; line-height:1.5; cursor:pointer; }
.strategy-tabs button[aria-pressed="true"] { border-bottom-color:#2b65f5; color:#245fe5; }
.strategy-tabs button:focus-visible,.billing-disclosure summary:focus-visible { outline:2px solid #2b65f5; outline-offset:4px; }
.billing-workspace { display:grid; gap:24px; max-width:1180px; min-width:0; }
.billing-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.billing-heading h2 { margin:0; font-size:22px; color:#17233f; }
.billing-heading p { margin:8px 0 0; font-size:14px; line-height:1.7; color:#64718a; }
.billing-workspace .button { min-height:44px; height:auto; padding:11px 20px; font-size:14px; flex-shrink:0; }
.billing-current { padding:26px 30px; }
.billing-current-label { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.billing-workspace h3 { margin:0; font-size:17px; color:#17233f; }
.billing-current-label>span { padding:4px 10px; border-radius:6px; background:#eef3ff; color:#3b61ac; font-size:12px; }
.billing-current-shares { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:580px; margin:24px 0 20px; gap:32px; }
.billing-current-shares>div { display:flex; align-items:baseline; gap:20px; flex-wrap:wrap; }
.billing-current-shares>div+div { border-left:1px solid #e1e7f0; padding-left:32px; }
.billing-current-shares span { font-size:14px; color:#64718a; }
.billing-current-shares strong { font-size:36px; line-height:1.2; color:#245fe5; font-variant-numeric:tabular-nums; }
.billing-current p { margin:0; font-size:13px; line-height:1.7; color:#64718a; }
.billing-editor { overflow:hidden; }
.billing-edit-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:40px; padding:30px; }
.billing-fields { min-width:0; }
.billing-section-note { margin:8px 0 0; color:#64718a; font-size:13px; line-height:1.7; }
.billing-fields .form-field { display:flex; flex-direction:column; gap:9px; margin-top:24px; }
.billing-fields .form-field>span { font-size:14px; color:#34425c; }
.billing-fields .form-field small { margin:0; font-size:12px; line-height:1.6; color:#718097; }
.billing-fields .form-field input,.billing-fields .form-field textarea { box-sizing:border-box; width:100%; min-height:46px; padding:12px 14px; border:1px solid #d4ddea; border-radius:8px; font:inherit; font-size:15px; line-height:1.6; background:#fff; color:#17233f; }
.billing-fields .form-field input { max-width:220px; font-size:22px; font-weight:600; }
.billing-fields .form-field textarea { min-height:100px; resize:vertical; }
.billing-fields .form-field input:focus,.billing-fields .form-field textarea:focus { outline:2px solid #80a5ff; outline-offset:2px; }
.billing-fields .form-field input:disabled,.billing-fields .form-field textarea:disabled { background:#f5f7fa; color:#758299; }
.billing-required { margin-left:6px; font-size:12px; font-weight:400; color:#758299; }
.billing-preview { padding:24px; min-width:0; border-radius:12px; background:#f4f7fd; align-self:stretch; }
.billing-preview-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.billing-preview-heading span { color:#64718a; font-size:12px; }
.billing-preview-context,.billing-preview-note { color:#64718a; font-size:13px; line-height:1.8; }
.billing-preview-context { margin:16px 0 22px; }
.billing-calculation { margin:0; }
.billing-calculation>div { display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:14px 0; }
.billing-calculation dt { color:#53617a; font-size:14px; }
.billing-calculation dt span { margin-left:8px; font-size:12px; }
.billing-calculation dd { margin:0; color:#17233f; font-size:20px; font-weight:600; font-variant-numeric:tabular-nums; }
.billing-calculation .billing-net-result { margin-top:8px; padding-top:22px; border-top:1px solid #dce4f2; }
.billing-net-result dd { color:#245fe5; font-size:30px; }
.billing-preview-note { margin:20px 0 0; }
.billing-publish-bar { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 30px; border-top:1px solid #e5eaf2; }
.billing-publish-bar p { margin:0; font-size:13px; line-height:1.7; color:#64718a; }
.billing-publish-bar .button { min-width:168px; }
.billing-disclosure { padding:0; min-width:0; }
.billing-disclosure summary { display:flex; align-items:center; gap:16px; padding:22px 30px; cursor:pointer; list-style:none; }
.billing-disclosure summary::-webkit-details-marker { display:none; }
.billing-disclosure summary>span { font-size:16px; font-weight:600; color:#263550; }
.billing-disclosure summary small { color:#718097; font-size:13px; }
.billing-disclosure summary::after { content:'＋'; margin-left:auto; color:#64718a; font-size:18px; }
.billing-disclosure[open] summary::after { content:'−'; }
.billing-disclosure[open] summary { border-bottom:1px solid #e5eaf2; }
.billing-rules { padding:8px 30px 20px; }
.billing-rules p { font-size:14px; line-height:1.9; color:#64718a; }
.billing-rules b { color:#34425c; }
.billing-history { border-radius:0 0 12px 12px; }
.billing-history table { min-width:680px; }
.billing-history th,.billing-history td { padding:16px 24px; font-size:13px; white-space:normal; overflow-wrap:anywhere; line-height:1.7; }
.billing-history td:last-child { min-width:200px; }
.billing-empty { padding:32px; font-size:14px; color:#64718a; }
.strategy-layout.strategy-ai { grid-template-columns:minmax(0,1fr); gap:24px; max-width:1180px; }
.strategy-ai>.span-two { grid-column:auto; }
.strategy-ai .form-panel { padding:28px; }
.strategy-ai .form-field { margin-top:22px; }
.strategy-ai .form-field>span { font-size:14px; }
.strategy-ai .form-field small,.strategy-ai .notice-box p { font-size:13px; line-height:1.8; }
@media(max-width:1100px) { .billing-edit-grid { grid-template-columns:minmax(0,1fr); gap:28px; } }
@media(max-width:600px) {
  .strategy-tabs { gap:20px; margin-bottom:24px; }
  .billing-workspace { gap:18px; }
  .billing-heading { align-items:flex-start; flex-wrap:wrap; }
  .billing-current,.billing-edit-grid,.billing-preview,.billing-publish-bar { padding:20px; }
  .billing-current-shares { gap:18px; }
  .billing-current-shares>div { gap:8px; flex-direction:column; }
  .billing-current-shares>div+div { padding-left:18px; }
  .billing-current-shares strong { font-size:30px; }
  .billing-publish-bar { flex-direction:column; align-items:stretch; gap:16px; }
  .billing-disclosure summary { padding:20px; gap:8px; flex-wrap:wrap; }
  .billing-disclosure summary small { order:3; flex-basis:100%; }
  .billing-rules { padding:6px 20px 16px; }
  .strategy-ai .form-panel { padding:20px; }
}
@media(max-width:760px) { .review-workspace { grid-template-columns:1fr; height:70vh; overflow:auto; } .review-list { max-height:180px; border-right:0; } .review-detail { overflow:visible; padding:16px; } .review-decision { position:static; } }

.teacher-direction-multiple{display:flex;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid #dce3ef;border-radius:12px}.teacher-direction-choice{display:flex!important;align-items:center;gap:6px;background:#f4f7ff;border-radius:8px;padding:8px 12px;cursor:pointer}.teacher-direction-choice input{width:16px!important;height:16px;min-height:0!important;margin:0;accent-color:#2864ff}

.teacher-direction-dropdown{position:relative;min-width:0;width:100%;box-sizing:border-box;border:1px solid #dce3ef;border-radius:12px;background:#fff}
.teacher-direction-dropdown summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 16px;box-sizing:border-box;cursor:pointer;list-style:none;color:#172647;font-weight:400}
.teacher-direction-dropdown summary::-webkit-details-marker{display:none}
.teacher-direction-dropdown summary:focus-visible{outline:2px solid #2864ff;outline-offset:2px;border-radius:12px}
.teacher-direction-dropdown [data-direction-selection]{min-width:0;line-height:1.5;overflow-wrap:anywhere}
.direction-chevron{flex:none;transition:transform .15s}
.teacher-direction-dropdown[open]{border-color:#7aa2ff;box-shadow:0 0 0 3px #edf2ff}
.teacher-direction-dropdown[open] .direction-chevron{transform:rotate(180deg)}
.teacher-direction-menu{position:absolute;left:-1px;right:-1px;top:calc(100% + 6px);z-index:20;padding:6px;border:1px solid #dce3ef;border-radius:12px;background:#fff;box-shadow:0 10px 28px #17346624}
.teacher-direction-menu .teacher-direction-choice{margin:0;padding:10px 12px;border-radius:7px;background:#fff;font-weight:400}
.teacher-direction-menu .teacher-direction-choice:hover{background:#f2f6ff}
.teacher-direction-menu .teacher-direction-choice:has(input:checked){background:#edf3ff;color:#2460d4}

.teacher-direction-search{padding:6px 6px 10px;border-bottom:1px solid #edf0f6}
.teacher-direction-search input{width:100%;box-sizing:border-box;min-height:40px;padding:9px 12px;border:1px solid #dce3ef;border-radius:8px;background:#f7f9fc;font:inherit}
.teacher-direction-search input:focus{outline:2px solid #7aa2ff;outline-offset:1px}
.teacher-direction-options{max-height:260px;overflow-y:auto;padding-top:4px}
.teacher-direction-menu .teacher-direction-choice[hidden],.teacher-direction-empty[hidden]{display:none!important}
.teacher-direction-empty{padding:22px 12px;text-align:center;color:#8290a8;font-size:14px}
.cert-editor{border:1px solid #dfe5ef;border-radius:16px;overflow:hidden;background:#fff;margin-bottom:24px;}
.cert-editor-heading{padding:20px 24px;border-bottom:1px solid #edf0f5;}.cert-editor-heading h3{margin:0;font-size:17px;color:#172542;}
.cert-editor-heading p,.cert-bulk p{margin:6px 0 0;font-size:13px;color:#71809a;line-height:1.6;}
.cert-editor-body{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:32px;padding:24px;}
.cert-editor-controls{display:grid;gap:24px;min-width:0;}.cert-control-title{display:block;font-size:13px;font-weight:600;color:#52617a;margin-bottom:12px;}
.cert-presets{display:flex;gap:10px;flex-wrap:wrap;}.cert-preset{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid #dce3ee;border-radius:8px;background:#fff;color:#40516f;font-size:13px;cursor:pointer;}.cert-preset i{width:12px;height:12px;border-radius:50%;}
.cert-preset[aria-pressed=true]{border-color:#2864ef;background:#f1f6ff;box-shadow:0 0 0 1px #2864ef;color:#2054c6;}
.cert-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}.cert-color>span{display:block;font-size:12px;color:#748099;margin-bottom:8px;}
.cert-color>div{display:flex;align-items:center;gap:8px;border:1px solid #dce3ee;border-radius:8px;padding:8px;background:#fff;min-width:0;}
.cert-color input[type=color]{width:30px;height:30px;min-height:0;padding:0;border:0;flex:none;background:transparent;cursor:pointer;}.cert-color code{font-size:11px;color:#52617a;}
.cert-preview-panel{background:#f7f9fc;border-radius:12px;padding:20px;align-self:stretch;min-width:0;}.cert-preview-surface{padding:24px 18px;background:#fff;border:1px solid #e5eaf2;border-radius:10px;margin:20px 0;}
.cert-preview-name{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:18px;font-weight:600;color:#172542;}
[data-certification-preview]{max-width:100%;overflow-wrap:anywhere;padding:3px 10px;border:1px solid;border-radius:6px;font-size:12px;font-weight:500;}
.cert-preview-surface p,.cert-preview-panel small,.cert-preview-empty{font-size:12px;line-height:1.7;color:#7b879d;}.cert-preview-surface p{margin:14px 0 0;}.cert-preview-empty{display:block;margin-top:12px;}.cert-preview-empty[hidden]{display:none;}
.cert-bulk{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 24px;background:#fafbfe;border-top:1px solid #edf0f5;}.cert-bulk strong{font-size:13px;color:#52617a;}.cert-bulk .button{white-space:nowrap;flex:none;}
.cert-experience{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:32px;padding:0 0 24px;}.cert-experience p{font-size:13px;color:#7b879d;line-height:1.7;}
@media(max-width:1050px){.cert-editor-body{grid-template-columns:1fr;gap:24px;}}
@media(max-width:600px){.cert-editor-body,.cert-editor-heading,.cert-bulk{padding:16px;}.cert-bulk{align-items:flex-start;flex-direction:column;gap:12px;}.cert-experience{grid-template-columns:1fr;gap:8px;}.cert-colors{grid-template-columns:1fr;}.cert-color>div{max-width:180px;}}
.cert-editor>.cert-editor-heading{position:relative;padding-right:210px;}
.cert-visibility{position:absolute;right:24px;top:26px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#52617a;cursor:pointer;}
.cert-visibility input[type=checkbox]{appearance:none;width:38px;height:22px;min-height:0;padding:0;border:0;border-radius:20px;background:#b3bdcd;position:relative;cursor:pointer;transition:background .15s;}
.cert-visibility input:checked{background:#2864ef;}.cert-visibility input:before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s;}.cert-visibility input:checked:before{transform:translateX(16px);}.cert-visibility input:focus-visible{outline:2px solid #2864ef;outline-offset:3px;}
@media(max-width:600px){.cert-editor>.cert-editor-heading{padding-right:16px;}.cert-visibility{position:static;margin-top:14px;}}

.education-tier-options{display:flex;flex-wrap:wrap;gap:10px}
.education-tier-choice{display:flex!important;align-items:center;gap:8px;padding:10px 14px;border:1px solid #dce3ef;border-radius:8px;cursor:pointer;font-weight:400}
.education-tier-choice input{width:16px!important;height:16px;min-height:0!important;margin:0;accent-color:#2864ff}
.education-tier-choice:has(input:checked){background:#edf3ff;border-color:#7aa2ff;color:#2460d4}

.education-tier-dropdown{border:1px solid #dce3ef;border-radius:10px;background:#fff;position:relative}
.education-tier-dropdown summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;font-weight:400}
.education-tier-dropdown summary::-webkit-details-marker{display:none}
.education-tier-dropdown[open]{border-color:#7aa2ff}
.education-tier-dropdown .education-tier-options{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:25;display:flex;flex-direction:column;gap:4px;max-height:260px;overflow:auto;background:#fff;padding:8px;border:1px solid #dce3ef;border-radius:10px;box-shadow:0 8px 24px #17346620}
.education-tier-dropdown .education-tier-choice{border:0;border-radius:6px;padding:10px 12px}
[data-education-custom][hidden]{display:none!important}
