:root {
  --navy: #13264a;
  --navy-2: #1d3768;
  --blue: #2457e6;
  --blue-2: #4f7df2;
  --blue-soft: #edf3ff;
  --ink: #172033;
  --ink-2: #34415a;
  --muted: #6e7b91;
  --muted-2: #9aa5b6;
  --line: #dfe5ee;
  --line-2: #edf1f6;
  --bg: #f3f6fb;
  --white: #fff;
  --green: #15966a;
  --green-soft: #eaf8f2;
  --amber: #b76a0c;
  --amber-soft: #fff6e8;
  --red: #c53c3c;
  --red-soft: #fff0f0;
  --shadow: 0 14px 38px rgba(31, 48, 79, .10);
  --shadow-sm: 0 6px 18px rgba(31, 48, 79, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  background: var(--white);
  color: var(--ink-2);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: .18s ease;
}
.btn:hover { border-color: #b9c8e6; transform: translateY(-1px); }
.btn-primary {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 87, 230, .22);
}
.btn-primary:hover { border-color: var(--blue); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn-wide { width: 100%; }
.icon { font-size: 18px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 650;
  background: var(--blue-soft);
  color: var(--blue);
}
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-gray { background: #f0f2f6; color: var(--muted); }

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(15, 25, 46, .94);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Role launcher */
.launcher {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(74, 119, 242, .16), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(21, 150, 106, .11), transparent 28%),
    #f4f7fc;
}
.launcher-shell { width: min(1040px, 100%); }
.launcher-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.launcher-logo {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 23px;
  box-shadow: var(--shadow-sm);
}
.launcher-title { font-size: 27px; font-weight: 760; letter-spacing: -.5px; }
.launcher-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-card {
  min-height: 300px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(214, 222, 237, .9);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: .22s ease;
}
.role-card:hover { transform: translateY(-4px); border-color: #b9caeb; }
.role-icon {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--blue));
  font-size: 24px; margin-bottom: 22px;
}
.role-card:nth-child(2) .role-icon { background: linear-gradient(135deg, #20a979, #087a56); }
.role-card:nth-child(3) .role-icon { background: linear-gradient(135deg, #374a70, #17243d); }
.role-kicker { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.role-name { font-size: 20px; font-weight: 750; margin: 7px 0 10px; }
.role-desc { color: var(--muted); font-size: 13px; line-height: 1.75; }
.role-card .btn { margin-top: auto; }

/* B-side */
.b-app { min-height: 100vh; display: grid; grid-template-columns: 228px 1fr; }
.b-side {
  position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #14274c, #0f1d38);
  color: #fff; padding: 22px 14px;
}
.b-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 20px; }
.b-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: #fff; color: var(--navy); font-size: 20px;
}
.b-brand b { display: block; font-size: 14px; }
.b-brand span { display: block; color: #8fa3c8; font-size: 10px; margin-top: 2px; letter-spacing: .7px; }
.side-group { color: #6980a9; font-size: 10px; padding: 18px 12px 8px; letter-spacing: .8px; }
.side-item {
  border: 0; width: 100%; color: #b9c7df; background: transparent;
  min-height: 43px; border-radius: 9px; padding: 0 12px;
  display: flex; align-items: center; gap: 10px; text-align: left; font-size: 13px;
}
.side-item i { font-size: 17px; }
.side-item.active { color: #fff; background: rgba(79, 125, 242, .24); }
.side-item .count {
  margin-left: auto; min-width: 19px; height: 19px; border-radius: 10px;
  display: grid; place-items: center; background: #df5151; color: #fff; font-size: 10px;
}
.b-main { min-width: 0; }
.b-top {
  height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.b-top-title { font-size: 16px; font-weight: 720; }
.b-top-sub { color: var(--muted); font-size: 11px; margin-left: 14px; }
.b-user { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 12px; }
.b-user-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy);
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.b-content { padding: 26px 28px 48px; max-width: 1300px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.page-head .btn { margin-left: auto; }

.stepper {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.step {
  position: relative; display: flex; align-items: center; gap: 10px; color: var(--muted-2);
  font-size: 12px; font-weight: 650;
}
.step:not(:last-child)::after {
  content: ""; height: 2px; background: var(--line); position: absolute;
  left: 36px; right: 12px; top: 14px; z-index: 0;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: #eef1f6;
  display: grid; place-items: center; position: relative; z-index: 1;
}
.step.done, .step.active { color: var(--ink); }
.step.done .step-num { background: var(--green); color: #fff; }
.step.active .step-num { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(36,87,230,.1); }
.step.done:not(:last-child)::after { background: #9ed9c4; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px;
}
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 11.5px; }
.panel-head .tag { margin-left: auto; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 12px; font-weight: 680; margin-bottom: 8px; }
.field label em { color: var(--red); font-style: normal; margin-right: 3px; }
.input, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfcfe;
  border-radius: 11px; color: var(--ink); outline: none; transition: .18s ease;
}
.input { height: 44px; padding: 0 13px; }
.textarea { min-height: 132px; padding: 12px 13px; resize: vertical; line-height: 1.75; }
.input:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36,87,230,.08); background: #fff; }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.counter { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 10.5px; margin-top: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  min-height: 34px; padding: 0 14px; color: var(--ink-2); font-size: 12px; font-weight: 650;
}
.chip.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }

.person-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.person {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px;
  display: flex; align-items: center; gap: 9px; text-align: left; transition: .18s ease;
}
.person:hover:not(:disabled) { border-color: #9eb5e8; }
.person.active { border-color: var(--blue); background: var(--blue-soft); }
.person img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; }
.person b { display: block; font-size: 12px; }
.person span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; }

.script-empty {
  min-height: 290px; border: 1px dashed #cbd6e7; border-radius: 13px;
  display: grid; place-items: center; text-align: center; color: var(--muted);
  padding: 28px; background: #fbfcfe;
}
.script-empty i { font-size: 36px; color: #aebcd3; }
.script-result { border: 1px solid #c9d6f3; border-radius: 13px; background: #fbfdff; padding: 16px; }
.script-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.script-meta .duration { margin-left: auto; color: var(--muted); font-size: 11px; }
.script-copy {
  border: 0; width: 100%; min-height: 190px; resize: vertical; padding: 0;
  line-height: 1.9; color: var(--ink-2); background: transparent; outline: none; font-size: 13px;
}
.pass-line {
  margin-top: 12px; border-radius: 10px; padding: 10px 12px;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650;
}
.action-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.loading-box {
  min-height: 290px; border-radius: 13px; background: #f8faff;
  display: grid; place-items: center; text-align: center; color: var(--muted);
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #dbe4f5; border-top-color: var(--blue);
  animation: spin .8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.avatar-option {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; padding: 0; text-align: left; transition: .18s ease;
}
.avatar-option img { width: 100%; height: 168px; object-fit: cover; }
.avatar-option div { padding: 11px 12px; }
.avatar-option b { display: block; font-size: 12px; }
.avatar-option span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.avatar-option.active { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36,87,230,.09); }
.video-preview {
  display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start;
}
.video-frame {
  aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; position: relative;
  background: #101a2c;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame::after { content: ""; position: absolute; inset: 45% 44%; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 0 9px rgba(255,255,255,.2); }
.video-frame::before {
  content: ""; position: absolute; z-index: 2; left: 49%; top: 49%;
  border-left: 10px solid var(--blue); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.progress-track { height: 9px; background: #e6ebf4; border-radius: 5px; overflow: hidden; }
.progress-bar { width: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--blue-2), var(--blue)); transition: width .35s ease; }
.summary-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary-row { display: grid; grid-template-columns: 105px 1fr; padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row span:first-child { color: var(--muted); }

.library-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 820px; background: #fff; }
.data-table th {
  text-align: left; padding: 11px 13px; font-size: 11px; color: var(--muted);
  background: #f8fafd; border-bottom: 1px solid var(--line);
}
.data-table td { padding: 13px; font-size: 12px; border-bottom: 1px solid var(--line-2); }
.data-table tr:last-child td { border-bottom: 0; }
.video-cell { display: flex; align-items: center; gap: 10px; }
.video-cell img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; }
.video-cell b { display: block; font-size: 12.5px; }
.video-cell span { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.new-row { animation: flash 1.4s ease; }
@keyframes flash { 0%, 60% { background: #eef5ff; } 100% { background: #fff; } }

/* Mobile role apps */
.mobile-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 8%, rgba(67,111,235,.16), transparent 28%),
    #e9eef7;
}
.device {
  width: min(390px, 100%);
  height: min(820px, calc(100vh - 48px));
  min-height: 680px;
  border: 10px solid #172235;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 25px 65px rgba(24, 38, 65, .28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.status-bar {
  height: 30px; padding: 8px 16px 0; display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700; flex: none;
}
.mobile-nav {
  height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px; flex: none; background: rgba(255,255,255,.97);
}
.mobile-nav b { font-size: 15px; }
.mobile-nav .right { margin-left: auto; display: flex; gap: 13px; color: var(--ink-2); }
.mobile-scroll { flex: 1; overflow-y: auto; background: #f5f7fb; scrollbar-width: none; }
.mobile-scroll::-webkit-scrollbar { display: none; }
.mobile-pad { padding: 14px 13px 96px; }
.mobile-tabs {
  height: 58px; border-top: 1px solid var(--line); background: #fff;
  display: grid; grid-template-columns: repeat(2, 1fr); flex: none;
}
.mobile-tab {
  border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; align-content: center; gap: 2px; font-size: 10px;
}
.mobile-tab i { font-size: 19px; }
.mobile-tab.active { color: var(--blue); font-weight: 700; }
.mobile-card {
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 14px; box-shadow: 0 3px 12px rgba(34, 52, 84, .05);
}
.mobile-card + .mobile-card { margin-top: 10px; }
.mobile-title { font-size: 17px; font-weight: 750; margin: 4px 0 7px; }
.mobile-copy { color: var(--muted); font-size: 12px; line-height: 1.75; }
.requirement { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.requirement:last-child { border-bottom: 0; }
.requirement i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 17px; flex: none; }
.requirement b { display: block; font-size: 12.5px; }
.requirement span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; line-height: 1.55; }
.mobile-footer {
  position: absolute; left: 0; right: 0; bottom: 58px; padding: 10px 13px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 25%);
  z-index: 10;
}
.mobile-footer.no-tabs { bottom: 0; }
.upload-box {
  border: 1.5px dashed #bdcbe2; border-radius: 14px; min-height: 190px;
  background: #fbfcfe; display: grid; place-items: center; text-align: center; overflow: hidden;
}
.upload-box img { width: 100%; height: 210px; object-fit: cover; }
.upload-box i { font-size: 34px; color: #96a9c7; }
.upload-box b { display: block; font-size: 13px; margin-top: 8px; }
.upload-box span { display: block; color: var(--muted); font-size: 10.5px; margin-top: 5px; }
.record-button {
  width: 74px; height: 74px; border: 0; border-radius: 50%; margin: 16px auto;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 28px;
  box-shadow: 0 0 0 9px rgba(36,87,230,.10);
}
.record-button.recording { background: var(--red); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 15px rgba(197,60,60,.08); } }
.record-time { text-align: center; font-size: 24px; font-weight: 750; }
.check-list { display: grid; gap: 8px; margin-top: 12px; }
.check-item {
  min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  display: flex; align-items: center; gap: 8px; padding: 0 11px; font-size: 11.5px;
}
.check-item i { color: var(--green); font-size: 16px; }
.check-item span:last-child { margin-left: auto; color: var(--green); font-size: 10px; }
.agree-row {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 0;
  border-bottom: 1px solid var(--line-2); font-size: 11.5px; line-height: 1.6;
}
.agree-row:last-child { border-bottom: 0; }
.agree-row input { margin-top: 3px; accent-color: var(--blue); }
.success-hero { text-align: center; padding: 26px 12px 18px; }
.success-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 30px;
}
.content-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: grid; grid-template-columns: 100px 1fr; margin-bottom: 11px;
}
.content-thumb { position: relative; min-height: 132px; }
.content-thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-thumb .play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; color: var(--blue); font-size: 18px;
}
.content-body { padding: 11px; min-width: 0; }
.content-body b { display: block; font-size: 12.5px; line-height: 1.5; }
.content-body p { color: var(--muted); font-size: 10.5px; line-height: 1.55; margin: 5px 0 9px; }
.content-actions { display: flex; gap: 7px; }
.stage-tabs { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 10px; scrollbar-width: none; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs button { white-space: nowrap; }
.bottom-sheet {
  position: absolute; z-index: 30; left: 0; right: 0; bottom: 0;
  border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 38px rgba(20,34,59,.2);
  padding: 20px 16px 18px; transform: translateY(110%); transition: .25s ease;
}
.bottom-sheet.open { transform: translateY(0); }
.mask {
  position: absolute; z-index: 29; inset: 0; background: rgba(13,25,45,.35);
  opacity: 0; pointer-events: none; transition: .25s ease;
}
.mask.open { opacity: 1; pointer-events: auto; }
.sheet-handle { width: 38px; height: 4px; border-radius: 2px; background: #d9dee7; margin: -8px auto 15px; }
.customer-row {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; margin: 12px 0;
}
.customer-avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #e6edf9; color: var(--navy); font-weight: 700; }

/* Customer chat */
.chat-bg { background: #edf1f5; }
.chat-date { text-align: center; color: var(--muted-2); font-size: 10px; padding: 10px 0 13px; }
.chat-row { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 14px; }
.chat-row.me { flex-direction: row-reverse; }
.chat-avatar { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: cover; }
.chat-bubble {
  max-width: 76%; border-radius: 4px 13px 13px 13px; background: #fff;
  padding: 10px 11px; font-size: 12px; line-height: 1.65; box-shadow: 0 2px 8px rgba(24,38,65,.06);
}
.chat-row.me .chat-bubble { background: #95e36f; border-radius: 13px 4px 13px 13px; }
.chat-video {
  width: 190px; border-radius: 12px; overflow: hidden; position: relative; background: #172235;
  box-shadow: 0 6px 18px rgba(24,38,65,.15);
}
.chat-video img { width: 100%; height: 250px; object-fit: cover; }
.chat-video .video-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 11px 10px;
  color: #fff; background: linear-gradient(transparent, rgba(8,17,31,.86)); font-size: 11px;
}
.chat-video .video-play {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; color: var(--blue); font-size: 25px;
}
.reply-bar {
  min-height: 56px; border-top: 1px solid #d8dee8; background: #f8f9fb;
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex: none;
}
.reply-input { flex: 1; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; outline: none; }
.video-modal {
  position: absolute; z-index: 50; inset: 0; background: rgba(7,13,24,.94);
  display: none; place-items: center; color: #fff;
}
.video-modal.open { display: grid; }
.video-modal img { width: 78%; max-height: 76%; object-fit: cover; border-radius: 16px; }
.video-modal button { position: absolute; right: 18px; top: 18px; border: 0; background: rgba(255,255,255,.13); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; }
.caption-line { position: absolute; bottom: 74px; left: 12%; right: 12%; text-align: center; font-size: 13px; line-height: 1.6; text-shadow: 0 1px 4px #000; }

@media (max-width: 980px) {
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 230px; }
  .b-app { grid-template-columns: 72px 1fr; }
  .b-side { padding: 16px 8px; }
  .b-brand { justify-content: center; padding: 0 0 18px; }
  .b-brand div:last-child, .side-group, .side-item span:not(.count) { display: none; }
  .side-item { justify-content: center; padding: 0; }
  .side-item i { font-size: 20px; }
  .side-item .count { position: absolute; margin: -25px 0 0 27px; }
  .grid-two, .grid-three { grid-template-columns: 1fr; }
  .person-list { grid-template-columns: repeat(2, 1fr); }
  .avatar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .launcher { padding: 26px 16px; }
  .launcher-title { font-size: 23px; }
  .b-app { display: block; }
  .b-side { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; top: auto; height: 62px; display: flex; padding: 6px 10px; }
  .b-brand, .side-group { display: none; }
  .side-item { flex: 1; height: 50px; }
  .side-item:nth-of-type(n+4) { display: none; }
  .b-main { padding-bottom: 62px; }
  .b-top { padding: 0 15px; }
  .b-top-sub { display: none; }
  .b-content { padding: 18px 14px 30px; }
  .page-head { display: block; }
  .page-head .btn { margin-top: 12px; }
  .stepper { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step:not(:last-child)::after { display: none; }
  .person-list { grid-template-columns: 1fr; }
  .avatar-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .avatar-option img { height: 136px; }
  .video-preview { grid-template-columns: 1fr; }
  .video-frame { max-width: 220px; margin: 0 auto; }
  .mobile-stage { padding: 0; place-items: stretch; }
  .device { width: 100%; height: 100vh; min-height: 0; border: 0; border-radius: 0; }
}
