@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("/assets/material-symbols-rounded-C8g74dum.woff2") format("woff2");
}
.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
}
/* 麦耘 AI 内部管理后台 — 全局样式（源自需求原型设计稿） */
:root {
  --nav: #fff; --bg: #f5f7fb; --ink: #1e2432; --muted: #71819a; --line: #edf0f5;
  --blue: #276bff; --blue-soft: #e9f0ff; --cyan: #19c8d6; --green: #16a36a; --green-soft: #eaf8f1;
  --orange: #ff9d22; --orange-soft: #fff4e8; --red: #e44d5d; --red-soft: #fff0f2; --purple: #7559e7;
  --shadow: 0 2px 12px rgba(37, 53, 86, .05);
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; min-width: 1180px }
.icon { font-family: 'Material Symbols Rounded'; font-size: 20px; line-height: 1; vertical-align: -4px; font-variation-settings: 'FILL' 0, 'wght' 420, 'GRAD' 0, 'opsz' 24 }
.app { min-height: 100vh }
.sidebar { position: fixed; z-index: 4; inset: 0 auto 0 0; width: 220px; background: var(--nav); color: #273247; border-right: 1px solid #edf0f5; box-shadow: 2px 0 14px rgba(43, 65, 104, .03); padding: 18px 10px; overflow: auto }
/* Remove separators under each nav group in the sidebar */
/* Stronger overrides to remove any border/underline coming from other rules or browser defaults */
.sidebar > div { border-bottom: none !important; box-shadow: none !important; }
.sidebar .nav-label { border-bottom: none !important; text-decoration: none !important; }
.sidebar .nav-item { border-bottom: none !important; margin: 4px 0; text-decoration: none !important; background-image: none !important; }
.brand { height: 56px; margin: 0 6px 18px; display: flex; align-items: center; gap: 10px; color: #1f2a3a; font-weight: 700; font-size: 16px }
.logo { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #2e7cff, #1a5cff); display: grid; place-items: center; color: white; font-size: 17px; box-shadow: 0 5px 12px #0003 }
.brand small { display: block; font-size: 10px; color: #8e9aad; font-weight: 500; letter-spacing: .6px }
.nav-label { font-size: 12px; color: #a4adba; font-weight: 600; padding: 12px 12px 6px; letter-spacing: .6px }
/* Nav items: align icon and label, smaller padding to match prototype */
.nav-item { border: 0; background: none; color: #536073; text-align: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font: inherit; margin: 4px 0 }
.nav-item .icon { font-size: 18px; width: 28px; height: 28px; display: inline-grid; place-items: center; color: #6b7888 }
/* Active (selected) item styling closer to prototype */
/* Stronger, sidebar-scoped active style to avoid overrides */
.sidebar .nav-item.active {
  background: linear-gradient(180deg, #347bff, #1e60f0) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(31, 100, 240, .14) !important;
  border-radius: 10px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
}
.sidebar .nav-item.active .icon { color: #fff !important }
/* keep active visible when hovering other items */
.sidebar .nav-item.active:hover { background: linear-gradient(180deg, #347bff, #1e60f0) !important }

/* Hover style for non-active items (scoped to sidebar) */
.sidebar .nav-item:hover { background: #f4f7fc; color: #2667ee }

/* layout: keep main content aligned with new sidebar width */
.main { margin-left: 220px; min-height: 100vh }

/* ensure group container doesn't create background/large boxes */
.sidebar > div { background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.sidebar > div::before, .sidebar > div::after { display: none !important; }
.sidebar .nav-label { margin-top: 8px }

/* fix nav item height and vertical alignment */
.sidebar .nav-item { height: 44px; background: transparent !important; margin: 4px 0; }
.sidebar .nav-item:not(.active):not(:hover) { background: transparent !important; box-shadow: none !important; }
.sidebar .nav-item.active { margin: 0; }

.topbar { height: 66px; background: #fff; box-shadow: 0 1px 0 #edf0f5; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; position: sticky; top: 0; z-index: 3 }
.crumb { font-weight: 650; font-size: 16px }
.crumb span { font-weight: 400; color: #95a1b2; margin-left: 8px; font-size: 13px }
.tools { display: flex; align-items: center; gap: 17px }
.search { width: 235px; height: 36px; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; padding: 0 10px; color: #9aa7b7; gap: 7px }
.search input { border: 0; outline: 0; width: 100%; font: inherit; background: transparent }
.tool-icon { color: #718096; position: relative }
.notice-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--red); top: -4px; right: -4px }
.avatar { width: 31px; height: 31px; border-radius: 50%; background: #dce6ff; color: #4267cc; display: grid; place-items: center; font-weight: 700 }
.content { padding: 24px 30px 42px; max-width: 1920px; margin: auto }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px }
.page-head h1 { font-size: 23px; margin: 0 0 4px; letter-spacing: -.3px }
.page-head p { margin: 0; color: var(--muted); font-size: 13px }
.btn { height: 35px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #42536a; padding: 0 13px; font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center }
.btn:hover { border-color: #b9c8dd; background: #f9fbff }
.btn.primary { background: var(--blue); border-color: var(--blue); color: white }
.btn.danger { color: var(--red); border-color: #ffcbd2; background: #fff }
.btn .icon { font-size: 17px }
.btn:disabled { opacity: .6; cursor: not-allowed }
.card { background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 2px 12px rgba(40, 58, 91, .04) }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.stat { padding: 18px 20px; min-height: 118px; position: relative; overflow: hidden }
.stat-label { color: #748196; font-size: 13px }
.stat-value { font-size: 27px; font-weight: 720; letter-spacing: -.5px; margin: 6px 0 }
.stat-foot { font-size: 12px; color: #8490a2 }
.up { color: var(--green) }
.down { color: var(--red) }
.stat-icon { position: absolute; right: 18px; top: 19px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue) }
.grid-2 { display: grid; grid-template-columns: 1.18fr .82fr; gap: 16px; margin-top: 16px }
.grid-2.equal-grid { grid-template-columns: 1fr 1fr }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px }
.section { padding: 18px 20px }
.section-title { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 680; margin-bottom: 15px }
.section-title a { font-size: 12px; font-weight: 500; color: var(--blue); cursor: pointer }
.rank { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line) }
.rank:last-child { border: 0 }
.rank-num { width: 18px; color: #9aa6b5; font-weight: 700 }
.rank-num.top { color: #e5a22d }
.rank-person { flex: 1 }
.rank-person b { display: block; font-size: 13px }
.rank-person small { color: var(--muted) }
.rank-value { font-weight: 700; font-size: 13px }
.bar { height: 6px; background: #edf1f7; border-radius: 9px; margin-top: 6px; overflow: hidden }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #4c7bf1, #75a4ff); border-radius: 9px }
.filterbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 15px }
.filter-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.input, .select { height: 35px; border: 1px solid var(--line); border-radius: 6px; background: white; padding: 0 11px; font: inherit; color: #46566d; outline: none }
.input { width: 220px }
.chip { border: 1px solid var(--line); background: #fff; color: #69778a; border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer }
.chip.active { background: var(--blue-soft); border-color: #bcd0ff; color: var(--blue) }
.date-input { width: 150px }
.table-wrap { overflow: auto }
.table { width: 100%; border-collapse: collapse; white-space: nowrap }
.table th { background: #f7f8fb; color: #7b8798; text-align: left; font-weight: 560; font-size: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line) }
.table td { padding: 14px; border-bottom: 1px solid var(--line); color: #35445a; font-size: 13px }
.table tr:last-child td { border: 0 }
.table tbody tr:hover { background: #fbfcff }
.link { color: var(--blue); cursor: pointer }
.sub { display: block; font-size: 11px; color: #95a1b2; margin-top: 2px }
.tag { display: inline-flex; align-items: center; border-radius: 4px; padding: 3px 7px; font-size: 11px; font-weight: 600 }
.tag.blue { background: var(--blue-soft); color: #3570d8 }
.tag.green { background: var(--green-soft); color: #16845a }
.tag.orange { background: var(--orange-soft); color: #c56d10 }
.tag.red { background: var(--red-soft); color: #d4384c }
.tag.gray { background: #f0f3f7; color: #718096 }
.tag.purple { background: #f1edff; color: #6d4fd0 }
.actions { display: flex; gap: 8px }
.text-btn { border: 0; background: none; color: var(--blue); cursor: pointer; font: inherit; padding: 0 }
.text-btn.danger { color: var(--red) }
.stream { position: relative; padding: 0 0 0 18px }
.stream:before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; border-left: 1px solid #dbe4f0 }
.stream-item { padding: 0 0 14px 10px; position: relative; font-size: 13px }
.stream-item:before { content: ""; width: 7px; height: 7px; background: #4f80f4; border: 2px solid #e7efff; border-radius: 50%; position: absolute; left: -18px; top: 6px }
.stream-item span { color: var(--muted); margin-left: 5px; font-size: 12px }
.kpi-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 12px }
.kpi-line label { width: 100px; color: var(--muted) }
.kpi-line strong { font-size: 13px; min-width: 46px }
.progress { height: 7px; flex: 1; background: #edf1f7; border-radius: 5px; overflow: hidden }
.progress i { display: block; height: 100%; background: var(--blue); border-radius: 5px }
.drawer-mask, .modal-mask { position: fixed; inset: 0; background: #0e1b2d66; z-index: 8 }
.drawer { position: fixed; z-index: 9; right: 0; top: 0; height: 100vh; width: 480px; background: white; box-shadow: -12px 0 35px #0e1b2d25; overflow: auto }
.drawer.drawer-wide { width: 70% }
.drawer-head { height: 67px; border-bottom: 1px solid var(--line); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px }
.close { border: 0; background: #f2f5f9; border-radius: 6px; width: 30px; height: 30px; cursor: pointer; color: #607087 }
.drawer-body { padding: 20px }
.detail-hero { background: #f6f9ff; border-radius: 9px; padding: 16px; display: flex; gap: 12px; align-items: center }
.detail-hero b { font-size: 16px }
.detail-hero span { color: var(--muted); font-size: 12px }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 17px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden }
.detail-cell { padding: 12px; border-bottom: 1px solid var(--line) }
.detail-cell:nth-child(odd) { border-right: 1px solid var(--line) }
.detail-cell:nth-last-child(-n+2) { border-bottom: 0 }
.detail-cell small { display: block; color: var(--muted); font-size: 11px }
.detail-cell b { font-size: 13px }
.mini-title { font-weight: 700; margin: 22px 0 10px }
.modal-wrap { position: fixed; z-index: 10; inset: 0; display: grid; place-items:center }
.modal { width: 440px; background: white; border-radius: 12px; box-shadow: 0 20px 55px #0e1b2d55; overflow: hidden; max-height: calc(100vh - 64px); display: flex; flex-direction: column }
.modal-head { padding: 17px 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; flex: none }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; min-height: 0 }
.form-row { margin-bottom: 15px }
.form-row label { display: block; font-size: 12px; color: #64748b; margin-bottom: 6px }
.form-row label.req::after { content: ' *'; color: #e5484d }
.form-row label .opt { color: #b0b9c6; font-weight: 400 }
.form-row .input, .form-row .select { width: 100% }
.form-row textarea { width: 100%; min-height: 80px; resize: vertical; padding: 9px; border: 1px solid var(--line); border-radius: 6px; font: inherit; outline: none }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; flex: none }
.toast { position: fixed; z-index: 12; right: 24px; top: 85px; padding: 11px 16px; background: #183353; color: #fff; border-radius: 8px; box-shadow: var(--shadow); font-size: 13px }
.empty { padding: 45px; text-align: center; color: var(--muted) }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.role { padding: 17px }
.role h3 { margin: 0 0 5px; font-size: 15px }
.role p { color: var(--muted); font-size: 12px; margin: 0 0 12px }
.switch { width: 35px; height: 20px; border-radius: 13px; background: #c9d3df; display: inline-block; position: relative; vertical-align: middle; cursor: pointer }
.switch:after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: white; top: 2px; left: 2px; box-shadow: 0 1px 3px #0003 }
.switch.on { background: var(--blue) }
.switch.on:after { left: 17px }
.split { display: grid; grid-template-columns: 1.45fr .55fr; gap: 16px }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px }
.metric { border: 1px solid var(--line); border-radius: 8px; padding: 14px }
.metric strong { font-size: 20px; display: block; margin-top: 4px }
.muted { color: var(--muted) }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted) }

/* ── 课程管理 ── */
.notice-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 14px; background: var(--orange-soft); border-color: #ffe0b8; color: #a35c07; font-size: 13px }
.notice-bar .icon { font-size: 17px }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff }
.seg-item { border: 0; background: none; padding: 7px 14px; font: inherit; color: #69778a; cursor: pointer }
.seg-item + .seg-item { border-left: 1px solid var(--line) }
.seg-item.active { background: var(--blue); color: #fff }
.course-cell { display: flex; align-items: center; gap: 10px; min-width: 260px }
.cover-thumb { width: 72px; height: 44px; border-radius: 6px; object-fit: cover; background: #eef2f8; flex-shrink: 0 }
.cover-thumb.placeholder { display: grid; place-items: center; color: #a9b6c9 }
.cover-thumb.lg { width: 120px; height: 72px }
.modal.wide { width: 620px }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px }
.chapter-card { background: #f8faff; border: 1px solid #e4eaf5; border-radius: 10px; padding: 12px; margin-bottom: 10px }
.chapter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px }
.chapter-card .chapter-row { margin-bottom: 0 }
.field-hint { display: flex; flex-direction: column; gap: 2px }
.chapter-row .field-hint:first-of-type { flex: 1 }
.req-star { color: #e5484d; font-size: 12px; line-height: 1; font-weight: 700; align-self: flex-start }
.hint-tag { font-size: 11px; line-height: 1; padding: 2px 5px; border-radius: 4px; align-self: flex-start }
.hint-tag.opt-tag { color: #8a93a3; background: #eef2f8 }
.time-picker { position: relative; flex: none }
.time-picker .input { width: 130px; padding-right: 36px }
.time-picker-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; align-items: center; border-radius: 6px }
.time-picker-toggle:hover { color: #2563eb; background: #f0f4ff }
.time-picker-list { position: absolute; top: calc(100% + 4px); left: 0; width: 130px; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px #0e1b2d22; z-index: 20; display: flex; flex-direction: column; padding: 4px }
.time-picker-list button { border: none; background: none; padding: 7px 10px; text-align: left; cursor: pointer; font: inherit; font-size: 13px; border-radius: 6px; color: #334155; flex: none }
.time-picker-list button:hover { background: #f0f4ff; color: #2563eb }
.time-picker-list button.active { background: #e7eeff; color: #2563eb; font-weight: 600 }
.chapter-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e7eeff; color: #2563eb; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center }
.chapter-video { width: 320px; max-width: 100%; height: 180px; margin-top: 10px; border-radius: 8px; background: #000; display: block; box-shadow: 0 2px 8px #0e1b2d22 }
.add-chapter { width: 100%; border: 1px dashed var(--line); background: #fff; color: var(--muted); border-radius: 8px; padding: 9px; display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font: inherit; font-size: 13px }
.add-chapter:hover { border-color: #2563eb; color: #2563eb; background: #f5f8ff }
.replay-row { display: flex; align-items: center; gap: 8px; height: 35px }

/* 首页看板 */
.dashboard-visuals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px }
.kpi-card { min-height: 168px; padding: 24px; position: relative; overflow: hidden }
.kpi-card:after { content: ""; position: absolute; width: 110px; height: 110px; right: -52px; bottom: -58px; border-radius: 50%; background: #f0f5ff }
.kpi-name { color: #69778d; font-size: 15px; font-weight: 600 }
.kpi-value { font-size: 35px; font-weight: 760; letter-spacing: -1px; margin: 13px 0 }
.kpi-foot { font-size: 13px; color: #7c899b }
.kpi-icon { position: absolute; right: 22px; top: 22px; width: 50px; height: 50px; border-radius: 15px; background: #edf3ff; color: #256cff; display: grid; place-items: center }
.kpi-icon .icon { font-size: 26px }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px }
.chart-card { min-height: 252px; padding: 21px 22px }
.chart-title { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700 }
.chart-title small { font-size: 11px; color: #a3adbb; font-weight: 500 }
.chart-body { height: 178px; margin-top: 15px; position: relative }
.ring { width: 126px; height: 126px; border-radius: 50%; margin: 20px auto 0; position: relative }
.ring:after { content: ""; position: absolute; inset: 24px; background: #fff; border-radius: 50% }
.ring-center { position: absolute; left: 0; right: 0; top: 66px; text-align: center; z-index: 1; font-size: 12px; color: #7d8998 }
.ring-center b { display: block; font-size: 24px; color: #202b3d }
.chart-legend { position: absolute; right: 5px; top: 28px; font-size: 11px; color: #738095; line-height: 2.25 }
.chart-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #347cff }
.chart-legend i.teal { background: #23d0c2 }
.chart-legend i.orange { background: #ffb037 }
.chart-legend i.red { background: #f45a84 }
.line-plot { height: 138px; margin-top: 21px; border-left: 1px solid #edf0f6; border-bottom: 1px solid #edf0f6; background: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, #edf0f6 34px) }
.line-plot svg { width: 100%; height: 100%; overflow: visible }
.axis { font-size: 10px; color: #a3adbb; margin-top: 6px; text-align: center }
.bar-plot { height: 136px; margin-top: 22px; display: flex; align-items: end; gap: 11px; border-bottom: 1px solid #edf0f6; padding: 0 8px }
.bar-plot i { flex: 1; background: linear-gradient(180deg, #90b6ff, #347cff); border-radius: 4px 4px 0 0 }
.rating { font-size: 38px; font-weight: 750; text-align: center; margin-top: 12px }
.rating-stars { text-align: center; color: #ffae33; letter-spacing: 4px }
.rate-list { margin-top: 15px }
.rate-row { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 8px; font-size: 11px; color: #738095; margin: 8px 0 }
.rate-row b { height: 8px; background: #edf1f7; border-radius: 9px; overflow: hidden }
.rate-row b i { display: block; height: 100%; border-radius: 9px; background: #347cff }

.person-avatar { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #e9efff; color: #5075d5; font-weight: 700; font-size: 12px }

/* 登录页 */
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #f5f7fb 0%, #eef2fb 100%) }
.login-card { width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 55px rgba(14, 27, 45, .12); padding: 34px }
.login-card .brand { margin: 0 0 26px; height: auto }
.login-card .form-row .input { width: 100% }
.login-error { color: var(--red); font-size: 12px; min-height: 18px; margin-bottom: 8px }
.login-card .btn.primary { width: 100%; height: 40px }

/* 直播管理 */
.live-studio {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}
.live-iframe {
  flex: 1;
  min-height: 640px;
  width: 100%;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #000;
}

/* 文章富文本编辑弹窗 */
.modal.article-modal {
  width: 1080px;
  max-width: 96vw;
}

.rich-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8faff;
}

.rich-toolbar-divider {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--line);
}

.rich-heading-select {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 6px;
  font-size: 12px;
  color: #334155;
}

.editor-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.editor-btn:hover {
  background: #eef3ff;
  color: #2f6bff;
}

.editor-btn.active {
  background: #e6efff;
  color: #2f6bff;
}

.editor-btn.disabled,
.editor-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rich-editor-content {
  min-height: 280px;
  max-height: 560px;
  overflow: auto;
  padding: 14px;
}

.rich-editor-content .tiptap {
  min-height: 250px;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
  color: #1e293b;
}

.rich-editor-content .tiptap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.rich-editor-content .tiptap p.is-editor-empty:first-child::before,
.rich-editor-content .tiptap p.is-empty::before {
  color: #aab4c2;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}

.detail-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-image-item {
  position: relative;
  width: 96px;
  height: 60px;
}

.detail-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.detail-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 27, 45, 0.72);
  color: #fff;
  cursor: pointer;
}

.detail-image-remove .icon {
  font-size: 14px;
}

.article-video-preview {
  width: 100%;
  max-height: 260px;
  margin-top: 8px;
  border-radius: 8px;
  background: #000;
}
