:root {
  --orange: #ff6b18;
  --orange-dark: #ec4f00;
  --orange-soft: #fff1df;
  --orange-pale: #fff8ef;
  --blue: #3370ff;
  --ink: #172033;
  --muted: #8b93a2;
  --line: #e9ebf0;
  --canvas: #f5f6f8;
  --green: #19a974;
  --red: #e84b4b;
  --shadow: 0 12px 36px rgba(35, 42, 59, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 28px 18px 18px; display: flex; flex-direction: column; z-index: 3; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(145deg, #ff8d38, #ffb84d); box-shadow: 0 8px 18px rgba(255, 107, 24, .25); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 18px; letter-spacing: -.4px; }
.brand span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.nav-list { display: grid; gap: 7px; }
.nav-item { border: 0; color: #5c6473; background: transparent; text-align: left; padding: 12px 14px; border-radius: 11px; display: flex; gap: 12px; align-items: center; font-weight: 600; }
.nav-item span { width: 18px; text-align: center; font-size: 17px; }
.nav-item:hover { background: #faf7f3; color: var(--orange); }
.nav-item.active { background: var(--orange-soft); color: var(--orange-dark); }
.sidebar-tip { margin-top: auto; border: 1px solid #f3e4d4; background: #fffaf4; padding: 14px; border-radius: 14px; position: relative; }
.sidebar-tip .tip-icon { position: absolute; right: 10px; top: 9px; }
.sidebar-tip strong { font-size: 13px; }
.sidebar-tip p { color: #887d72; font-size: 11px; line-height: 1.7; margin: 7px 0 0; }
.sidebar-footer { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); margin-top: 18px; padding: 18px 6px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark); font-weight: 800; }
.sidebar-footer strong, .sidebar-footer span { display: block; font-size: 12px; }
.sidebar-footer span { color: var(--muted); margin-top: 2px; }

.main-content { min-width: 0; padding: 0 38px 50px; }
.topbar { height: 102px; display: flex; align-items: center; justify-content: space-between; }
.eyebrow { margin: 0 0 4px; color: #a5aab5; font-size: 10px; letter-spacing: 1.4px; font-weight: 700; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.7px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: #7a8190; background: white; }
.status-chip { border-radius: 999px; display: inline-flex; align-items: center; padding: 6px 11px; background: #f2f4f7; color: #6e7583; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-chip.demo, .status-chip.warn { color: #b9650c; background: #fff1db; }
.status-chip.live, .status-chip.sent, .status-chip.success { color: #117c55; background: #e7f7ef; }
.status-chip.failed, .status-chip.partial_failed { color: #b53e3e; background: #ffeaea; }
.status-chip.scheduled { color: #245cd1; background: #eaf0ff; }
.status-chip.draft { color: #747b89; background: #f0f1f4; }
.status-chip.sending { color: #ad5a00; background: #fff0d6; }

.panel { display: none; }
.panel.active { display: block; animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }

.hero-card { min-height: 260px; overflow: hidden; position: relative; padding: 39px 42px; color: white; border-radius: 24px; background: linear-gradient(120deg, #ff5a0a 0%, #ff7c22 58%, #ffa43b 100%); box-shadow: 0 18px 40px rgba(229, 84, 12, .18); display: flex; align-items: center; }
.hero-card > div:first-child { position: relative; z-index: 2; max-width: 650px; }
.hero-badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.hero-card h2 { margin: 19px 0 10px; font-size: 31px; letter-spacing: -1px; }
.hero-card p { margin: 0 0 25px; max-width: 620px; color: rgba(255,255,255,.84); line-height: 1.7; font-size: 14px; }
.primary-button { border: 0; border-radius: 10px; padding: 11px 18px; background: var(--orange); color: white; box-shadow: 0 7px 15px rgba(255,107,24,.2); font-weight: 700; }
.primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.hero-card .primary-button { background: white; color: var(--orange-dark); box-shadow: 0 9px 20px rgba(107,48,8,.13); }
.hero-art { position: absolute; width: 330px; height: 270px; right: 22px; top: -4px; }
.hero-cap { position: absolute; width: 100px; height: 100px; border-radius: 30px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 50px; right: 97px; top: 80px; transform: rotate(-5deg); box-shadow: 0 20px 40px rgba(133,48,0,.16); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.orbit-a { width: 290px; height: 170px; top: 46px; right: 10px; transform: rotate(-14deg); }
.orbit-b { width: 240px; height: 220px; top: 25px; right: 38px; transform: rotate(22deg); }
.floating-card { position: absolute; padding: 10px 13px; border-radius: 12px; background: rgba(255,255,255,.9); color: #8c542e; font-size: 10px; line-height: 1.3; box-shadow: 0 10px 25px rgba(92,34,0,.13); }
.floating-card strong { font-size: 14px; color: var(--orange-dark); }
.card-a { left: 12px; top: 45px; transform: rotate(-7deg); }
.card-b { right: 4px; bottom: 34px; transform: rotate(5deg); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 20px 0; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; gap: 15px; align-items: center; }
.stat-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; }
.stat-icon.orange { background: #fff1e6; color: var(--orange); }.stat-icon.blue { background: #edf2ff; color: var(--blue); }.stat-icon.green { background: #e9f8f1; color: var(--green); }.stat-icon.red { background: #fff0f0; color: var(--red); }
.stat-card small, .stat-card strong, .stat-card em { display: block; }
.stat-card small { color: #777f8d; font-size: 11px; }
.stat-card strong { font-size: 24px; margin: 2px 0 0; }
.stat-card em { color: #b1b6c0; font-size: 9px; font-style: normal; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr); gap: 20px; }
.surface { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 15px rgba(42,51,69,.025); }
.surface-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 22px 24px 15px; }
.surface-head h3 { margin: 0 0 4px; font-size: 15px; }
.surface-head p { margin: 0; font-size: 11px; color: var(--muted); }
.text-button { border: 0; background: none; color: var(--orange); font-size: 11px; font-weight: 700; }
.table-wrap { overflow-x: auto; padding: 0 18px 16px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { color: #969ca7; font-weight: 600; text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
td { padding: 13px 8px; border-bottom: 1px solid #f1f2f4; color: #626a78; }
td strong { display: block; color: var(--ink); font-size: 12px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
td small { color: #aaaeb7; }
.empty-row { text-align: center; padding: 42px 10px; color: #a0a6b1; }
.readiness-card .surface-head > span { font-size: 22px; font-weight: 800; color: var(--orange); }
.progress { height: 7px; margin: 0 24px 20px; border-radius: 8px; background: #f0f1f3; overflow: hidden; }
.progress span { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--orange),#ff9c36); transition: width .3s; }
.check-list { list-style: none; padding: 0 24px 20px; margin: 0; display: grid; gap: 12px; font-size: 11px; color: #8c929e; }
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #f1f2f4; font-size: 9px; }
.check-list li.done { color: #4a5260; }.check-list li.done span { background: #e7f7ef; color: var(--green); }

.composer-layout { display: grid; grid-template-columns: minmax(530px, 1fr) minmax(370px, .78fr); gap: 22px; align-items: start; }
.form-surface { padding: 25px; }
.step-head { display: flex; gap: 11px; align-items: center; margin-bottom: 18px; }
.step-head > span { width: 28px; height: 28px; border-radius: 9px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.step-head h3 { margin: 0 0 2px; font-size: 15px; }.step-head p { margin: 0; color: var(--muted); font-size: 10px; }
label { display: grid; gap: 7px; color: #555e6e; font-size: 11px; font-weight: 600; margin-bottom: 14px; }
input, select, textarea { width: 100%; border: 1px solid #dfe2e8; border-radius: 9px; padding: 10px 11px; outline: none; color: var(--ink); background: white; font-size: 12px; transition: .15s; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: #ff9a5e; box-shadow: 0 0 0 3px rgba(255,107,24,.08); }
.field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.segmented { display: flex; gap: 5px; padding: 4px; background: #f5f6f8; border-radius: 11px; margin-bottom: 14px; overflow-x: auto; }
.segmented button { flex: 1; border: 0; border-radius: 8px; background: transparent; color: #747c8a; padding: 8px 10px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.segmented button.active { color: var(--orange-dark); background: white; box-shadow: 0 2px 7px rgba(30,37,49,.07); }
.recipient-options { min-height: 50px; border: 1px dashed #e0e3e8; background: #fafbfc; border-radius: 10px; padding: 10px; margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.recipient-search { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-bottom: 10px; }.recipient-search input { margin: 0; }.recipient-search button { padding: 9px 14px; }
.recipient-pill { border: 1px solid #e1e3e8; background: white; border-radius: 999px; padding: 7px 10px; color: #586170; font-size: 10px; }
.recipient-pill.selected { border-color: #ffb381; color: var(--orange-dark); background: var(--orange-pale); }
.selected-target-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 4px; margin: 8px 0; color: #697386; font-size: 12px; }
.selected-target-summary span { padding: 5px 9px; border-radius: 999px; color: #2364d8; background: #edf3ff; font-weight: 700; }
.loading { color: #a0a6b1; font-size: 10px; }
.schedule-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.links-editor { margin: 20px 0 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.links-editor summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px; cursor: pointer; background: #fafafa; color: #777f8c; font-size: 10px; }
.links-editor summary::-webkit-details-marker { display: none; }
.links-editor summary strong, .links-editor summary small { display: block; }.links-editor summary strong { color: var(--ink); font-size: 12px; }.links-editor summary small { margin-top: 3px; color: var(--muted); font-weight: normal; }
#links-fields { padding: 14px; display: grid; gap: 14px; }
.link-field { background: #fcfcfd; border: 1px solid #eef0f3; padding: 12px; border-radius: 10px; }
.link-field .link-title { color: var(--blue); font-weight: 750; margin-bottom: 9px; font-size: 11px; }
.link-field .link-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.link-field label { margin: 0; font-size: 9px; }
.honors-media-field { margin: 4px 0 18px; padding: 14px; border: 1px dashed #eccb7d; border-radius: 12px; background: #fffdf6; }
.honors-media-field label { margin: 0; }
.honors-media-field label small { color: #9b855e; font-size: 9px; font-weight: normal; }
.honors-media-field input[type="file"] { padding: 9px; background: white; }
.honors-upload-status { margin: 10px 0; color: #9b855e; font-size: 10px; }
.honors-upload-status.uploading { color: var(--blue); font-weight: 700; }
.honors-upload-status.success { color: var(--green); font-weight: 700; }
.honors-upload-status.error { color: var(--red); font-weight: 700; }
.honors-image-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.honors-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid #eadfbf; border-radius: 9px; background: white; }
.honors-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.honors-thumb button { position: absolute; top: 5px; right: 5px; width: 23px; height: 23px; padding: 0; border: 0; border-radius: 50%; background: rgba(24, 29, 39, .72); color: white; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.secondary-button { border: 1px solid #dfe2e8; background: white; color: #5e6674; border-radius: 10px; padding: 10px 16px; font-weight: 650; }
.secondary-button:hover { border-color: #ffb382; color: var(--orange-dark); }

.preview-column { position: sticky; top: 18px; }
.preview-label { display: flex; justify-content: space-between; align-items: center; padding: 0 3px 10px; color: #606877; font-size: 11px; }.preview-label i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 0 3px #dcf5e9; }.preview-label small { color: #adb1b9; }
.feishu-window { border: 1px solid #e5e7eb; border-radius: 18px; background: #eef1f5; overflow: hidden; box-shadow: var(--shadow); }
.bot-header { height: 72px; padding: 12px 16px; display: flex; align-items: center; gap: 11px; background: white; border-bottom: 1px solid #e5e7eb; }
.bot-avatar, .sender-avatar { flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#ff8d38,#ffb84d); }
.bot-avatar { width: 43px; height: 43px; font-size: 22px; }.sender-avatar { width: 32px; height: 32px; font-size: 16px; }
.bot-header div:nth-child(2) { min-width: 0; flex: 1; }.bot-header strong, .bot-header span { display: block; }.bot-header strong { font-size: 14px; }.bot-header strong em { font-size: 8px; color: #a7661f; background: #fff3d4; padding: 2px 5px; border-radius: 5px; font-style: normal; border: 1px solid #f3d18e; }.bot-header span { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #9a9fab; font-size: 9px; }.bot-header b { color: #7c8290; letter-spacing: 2px; }
.chat-area { min-height: 610px; padding: 22px 14px; display: flex; align-items: flex-start; gap: 8px; }
.message-card { overflow: hidden; flex: 1; background: white; border-radius: 10px; border: 1px solid #e7e8eb; box-shadow: 0 2px 5px rgba(45,52,63,.05); }
.card-banner { padding: 17px 17px 14px; background: linear-gradient(120deg,#fff0dc,#ffe5c2); border-bottom: 1px solid #f6d7af; }
.card-banner strong, .card-banner span { display: block; }.card-banner strong { color: var(--orange-dark); font-size: 17px; }.card-banner span { color: #f07828; font-size: 10px; margin-top: 5px; line-height: 1.5; }
.card-body { padding: 14px 16px; }
.preview-entry { padding: 11px 0; border-bottom: 1px solid #eff0f2; }.preview-entry:last-child { border-bottom: 0; }.preview-entry strong { display: block; color: var(--blue); font-size: 12px; margin-bottom: 5px; }.preview-entry b { color: #12151c; margin-right: 5px; }.preview-entry p { margin: 0; color: #9299a4; font-size: 9px; line-height: 1.65; }.preview-entry em { color: var(--orange); font-style: normal; font-weight: 700; }
.current-course-field { border-color: #dce6ff; background: #f8faff; }
.current-course-field .link-title { display: flex; align-items: center; justify-content: space-between; }
.current-course-field .link-title span { padding: 3px 7px; border-radius: 999px; background: #eaf0ff; color: #3569d4; font-size: 8px; }
.current-course-field label { margin-top: 9px; }
.course-poster-upload { margin-top: 11px; padding: 11px; border: 1px dashed #bfcff2; border-radius: 9px; background: white; }
.course-poster-upload label { margin: 0; }
.course-poster-upload label small { display: block; margin-top: 6px; color: #8490a4; font-size: 8px; font-weight: normal; }
.course-poster-upload input[type="file"] { margin-top: 6px; padding: 8px; }
.course-poster-status { margin: 8px 0; color: #8490a4; font-size: 9px; }
.course-poster-status.uploading { color: var(--blue); font-weight: 700; }
.course-poster-status.success { color: var(--green); font-weight: 700; }
.course-poster-status.error { color: var(--red); font-weight: 700; }
.course-poster-thumb { position: relative; overflow: hidden; max-height: 240px; border: 1px solid #dce5f5; border-radius: 8px; background: #f6f8fc; }
.course-poster-thumb img { width: 100%; max-height: 240px; object-fit: contain; display: block; }
.course-poster-thumb button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(24, 29, 39, .74); color: white; }
.current-course-entry { background: #f8faff; margin: 0 -7px; padding: 11px 7px; border-radius: 7px; }
.current-course-entry p { display: grid; gap: 3px; }
.current-course-entry p span { display: block; }
.current-course-entry p b { color: #59687d; font-weight: 700; }
.course-poster-card { display: grid; grid-template-columns: minmax(86px, 2fr) 3fr; align-items: center; gap: 10px; margin-top: 9px; padding: 8px; border-radius: 7px; background: #f1f3f6; }
.course-poster-card img { display: block; width: 100%; height: 92px; object-fit: cover; object-position: top center; border-radius: 5px; background: white; cursor: zoom-in; }
.course-poster-card span { display: grid; gap: 4px; color: #8c95a4; font-size: 8px; line-height: 1.5; }
.course-poster-card span b { color: #59687d; font-size: 9px; }
.compact-card .card-body { padding: 18px; }.compact-hero { font-size: 30px; text-align: center; padding: 8px; }.compact-card p { color: #7d8490; font-size: 11px; line-height: 1.7; }.compact-actions { display: flex; gap: 8px; margin-top: 14px; }.compact-actions span { flex: 1; text-align: center; background: var(--blue); color: white; padding: 8px; border-radius: 7px; font-size: 10px; }.compact-actions span + span { color: var(--blue); background: #edf2ff; }
.honors-card { border-color: #d8e0ed; }
.honors-card .card-banner { position: relative; padding: 18px 17px 16px; background: linear-gradient(125deg,#14294d 0%,#224a83 64%,#2e63a7 100%); border-bottom: 3px solid #d5b060; }
.honors-card .card-banner strong { color: #fff; font-size: 15px; letter-spacing: .1px; }
.honors-card .card-banner strong i { margin-right: 7px; font-style: normal; }
.honors-card .card-banner span { color: #dbe7f8; font-size: 9px; }
.honors-card .card-body { background: linear-gradient(180deg,#fff 0%,#fffdf8 100%); }
.honors-kicker { display: inline-flex; align-items: center; color: #8d6318; background: #fff8e7; border: 1px solid #ead7a8; border-radius: 999px; padding: 5px 9px; font-size: 9px; font-weight: 800; margin-bottom: 10px; }
.honors-copy { color: #515b6a; font-size: 9px; line-height: 1.8; white-space: pre-wrap; }
.honors-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 15px 0 9px; padding-top: 12px; border-top: 1px solid #e5e9f0; font-size: 10px; font-weight: 800; }
.honors-section-title span { color: #1d3155; }
.honors-section-title em { color: #a17a2d; font-size: 8px; font-style: normal; font-weight: 700; }
.honors-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.honors-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 7px; border: 1px solid #dfe5ef; background: #f8fafc; box-shadow: 0 3px 10px rgba(25,50,88,.08); }
.honors-empty { padding: 18px 10px; border: 1px dashed #cbd6e6; border-radius: 7px; color: #8290a5; background: #f8fafd; text-align: center; font-size: 9px; }
.honors-card .card-footnote { color: #718099; background: #f2f5f9; }
.leaderboard-card .card-banner { background: linear-gradient(125deg,#0b7d86,#16a7a6); border-bottom-color: #8ce2d8; }
.leaderboard-card .card-banner strong,.leaderboard-card .card-banner span { color: white; }
.leaderboard-intro { display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; color: #184a55; font-size: 11px; }.leaderboard-intro small { grid-column: 2; color: #7d8d95; font-size: 8px; }
.leaderboard-top { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 12px; }.leaderboard-top > div { display: grid; gap: 3px; padding: 10px 6px; text-align: center; border-radius: 8px; background: #edf9f7; }.leaderboard-top b { font-size: 9px; }.leaderboard-top small { color: #849395; font-size: 7px; }.leaderboard-top strong { color: #078f91; font-size: 12px; }
.leaderboard-rest { margin-top: 9px; border-top: 1px solid #edf0f2; }.leaderboard-rest p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 7px 2px; border-bottom: 1px solid #edf0f2; font-size: 8px; }.leaderboard-rest span { color: #89939e; }.leaderboard-rest strong { color: #078f91; }
.card-footnote { margin: 12px -4px -4px; padding: 9px; border-radius: 8px; background: #f7f8fa; color: #98a0ad; font-size: 8px; text-align: center; }
.preview-note { color: #9ca2ad; font-size: 9px; text-align: center; }

.full-surface { min-height: 520px; }.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.settings-card { display: flex; align-items: center; gap: 15px; padding: 20px; }.settings-card > div:nth-child(2) { flex: 1; }.settings-card h3, .settings-card p { margin: 0; }.settings-card h3 { font-size: 14px; }.settings-card p { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 5px; }.settings-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }.settings-icon.orange { background: var(--orange-soft); }.settings-icon.blue { background: #edf2ff; }
.secure-config { grid-column: 1 / -1; }.secure-config form { padding: 0 24px 24px; }.live-toggle { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 11px; background: #f7faf8; border: 1px solid #e1eee7; cursor: pointer; }.live-toggle input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); }.live-toggle span { display: grid; gap: 3px; }.live-toggle strong { font-size: 11px; color: #374d43; }.live-toggle small { color: #7d9187; font-size: 9px; font-weight: normal; }.secure-config-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; }.secure-config-actions p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.secure-config-actions p.success { color: var(--green); font-weight: 700; }.secure-config-actions p.warn { color: #b9650c; }.secure-config-actions p.error { color: var(--red); }.secure-config-actions p.checking { color: var(--blue); }
.config-guide { grid-column: 1 / -1; }.config-guide ol { list-style: none; padding: 0 24px 24px; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }.config-guide li { display: flex; gap: 10px; }.config-guide li > span { flex: none; width: 24px; height: 24px; background: var(--orange-soft); color: var(--orange-dark); border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 10px; }.config-guide strong { font-size: 11px; }.config-guide p { font-size: 9px; color: var(--muted); line-height: 1.65; }
.safety-card { grid-column: 1 / -1; display: flex; align-items: start; gap: 13px; padding: 18px; background: #fffaf3; border-color: #f5e5d0; }.safety-card > span { font-size: 24px; }.safety-card h3, .safety-card p { margin: 0; }.safety-card h3 { font-size: 12px; }.safety-card p { font-size: 10px; color: #8e7e6e; margin-top: 5px; line-height: 1.7; }

.learning-hero { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 28px 32px; border-radius: 20px; color: white; background: linear-gradient(125deg,#102b57 0%,#174b86 56%,#246eaa 100%); box-shadow: 0 18px 45px rgba(16,43,87,.16); }
.learning-hero h2 { margin: 10px 0 7px; font-size: 25px; }.learning-hero p { max-width: 700px; margin: 0; color: #dbe8f7; font-size: 11px; line-height: 1.75; }
.learning-hero .hero-badge { color: #17395f; background: #ffd36a; }
.flow-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.flow-steps span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.23); border-radius: 10px; background: rgba(255,255,255,.1); font-size: 10px; font-weight: 750; white-space: nowrap; }.flow-steps b { color: #ffd36a; }
.learning-switch { width: min(420px,100%); margin: 18px 0; }
.learner-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; margin-bottom: 14px; }.learner-toolbar div { display: grid; gap: 3px; }.learner-toolbar strong { font-size: 12px; }.learner-toolbar small { color: var(--muted); font-size: 9px; }.learner-toolbar select { width: min(360px,45vw); margin: 0; }
.learning-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }.learning-stats article { padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }.learning-stats small,.learning-stats strong,.learning-stats em { display: block; }.learning-stats small { color: var(--muted); font-size: 9px; }.learning-stats strong { margin: 4px 0; color: #183f70; font-size: 23px; }.learning-stats em { color: #a3a9b4; font-size: 8px; font-style: normal; }
.learning-columns { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.7fr); gap: 16px; margin-bottom: 16px; }.learning-columns.lower { grid-template-columns: 1fr 1fr; }
.course-list { padding: 0 18px 20px; display: grid; gap: 13px; }
.learning-course-card { display: grid; grid-template-columns: 128px 1fr; gap: 15px; min-height: 165px; overflow: hidden; border: 1px solid #e5eaf1; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(31,50,81,.04); }.learning-course-card > img,.course-cover { width: 100%; height: 100%; min-height: 165px; object-fit: cover; background: linear-gradient(145deg,#14345d,#226ca5); }.course-cover { display: grid; place-content: center; color: #ffc94f; text-align: center; font-size: 13px; letter-spacing: 2px; }.course-cover b { color: white; font-size: 25px; }
.course-card-content { padding: 14px 14px 13px 0; }.course-meta { display: flex; justify-content: space-between; align-items: center; }.course-meta span { padding: 3px 7px; border-radius: 999px; color: #a8630d; background: #fff1d8; font-size: 8px; font-weight: 750; }.course-meta small { color: #8190a2; font-size: 8px; }.course-card-content h3 { margin: 8px 0 5px; font-size: 14px; }.course-card-content > p { margin: 0; color: #7e8795; font-size: 9px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.course-card-content dl { margin: 9px 0; display: grid; gap: 4px; }.course-card-content dl div { display: grid; grid-template-columns: 54px 1fr; font-size: 8px; }.course-card-content dt { color: #a1a7b1; }.course-card-content dd { margin: 0; color: #566173; }
.course-card-actions { display: flex; align-items: center; gap: 8px; }.course-card-actions button,.course-card-actions a { border: 0; border-radius: 8px; padding: 7px 10px; font-size: 9px; font-weight: 750; text-decoration: none; }.course-card-actions button { color: white; background: #2469d8; }.course-card-actions button:disabled { background: #bec6d1; }.course-card-actions a { color: #2469d8; background: #edf3ff; }.course-done { color: var(--green); font-size: 9px; font-weight: 750; }
.ranking-list { padding: 0 18px 18px; display: grid; gap: 7px; }.ranking-row { display: grid; grid-template-columns: 28px 32px 1fr auto; gap: 8px; align-items: center; padding: 9px; border-radius: 10px; }.ranking-row.top { background: linear-gradient(90deg,#fff8e8,#fff); }.ranking-row.me { outline: 2px solid #8bb2f3; background: #edf4ff; }.rank-badge { text-align: center; color: #9aa2ae; font-weight: 800; }.rank-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg,#2d5d94,#1e83b1); font-weight: 800; }.ranking-row div { display: grid; gap: 2px; }.ranking-row strong { font-size: 10px; }.ranking-row small { color: var(--muted); font-size: 8px; }.ranking-row > b { color: #183f70; font-size: 10px; }
.point-change { color: var(--green); }.point-change.negative { color: var(--red); }.empty-state { padding: 44px 18px; text-align: center; color: #9ea5b0; font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; }.admin-form-body { padding: 0 22px 22px; }.rules-card { align-self: start; }.rule-grid { padding: 0 20px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.rule-grid div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px; border-radius: 10px; background: #f7f9fc; }.rule-grid span { font-size: 9px; }.rule-grid b { color: #1c76ce; font-size: 11px; }.rule-grid small { grid-column: 1/-1; color: #a2a8b2; font-size: 7px; }
.mini-adjust-form { margin: 5px 20px 20px; padding: 13px; border: 1px dashed #d8dee8; border-radius: 11px; display: grid; grid-template-columns: 1fr 90px 1.2fr auto; gap: 8px; align-items: center; }.mini-adjust-form strong { grid-column: 1/-1; font-size: 10px; }.mini-adjust-form input,.mini-adjust-form select { margin: 0; padding: 8px; font-size: 9px; }.mini-adjust-form button { padding: 9px 10px; }
.course-form,.course-admin-list,.exam-reserved { grid-column: 1/-1; }.table-actions { display: flex; gap: 5px; white-space: nowrap; }.table-action { border: 0; border-radius: 7px; padding: 6px 9px; color: #2768c8; background: #edf3ff; font-size: 9px; }.table-action.primary { color: white; background: #2469d8; }.exam-roadmap { padding: 6px 24px 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }.exam-roadmap span { padding: 9px 12px; border-radius: 9px; color: #586579; background: #f4f6f9; font-size: 9px; font-weight: 700; }.exam-roadmap b { color: #9ca5b2; }
.identity-controls { display: flex; align-items: center; gap: 8px; }.identity-controls select { min-width: 220px; }.identity-controls button { white-space: nowrap; }
.checkin-entry { display: flex; align-items: center; gap: 6px; }.checkin-entry input { width: 130px; padding: 7px 8px; border: 1px solid #dbe1e9; border-radius: 8px; font-size: 9px; letter-spacing: 1px; }
.dynamic-checkin-admin,.question-list-card,.exam-list-card,.learner-exam-center { grid-column: 1/-1; }.checkin-code-wrap { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 24px; padding: 4px 24px 24px; }.checkin-code-wrap > strong { padding: 22px; border-radius: 16px; color: #fff; background: linear-gradient(135deg,#0e7f89,#20b6ad); text-align: center; font-size: 40px; letter-spacing: 8px; box-shadow: 0 12px 28px rgba(8,129,137,.18); }.checkin-code-wrap p { color: #667484; font-size: 11px; }.checkin-code-wrap code { display: block; max-width: 100%; overflow-wrap: anywhere; color: #16878c; font-size: 9px; }
.question-form,.exam-form { grid-column: span 1; }.exam-task-list { padding: 0 22px 22px; display: grid; gap: 9px; }.exam-task { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px; border: 1px solid #e7ebf1; border-radius: 12px; background: #fbfcfe; }.exam-task h4,.exam-task p { margin: 0; }.exam-task h4 { margin: 4px 0; font-size: 12px; }.exam-task p { color: #8993a0; font-size: 8px; }.exam-task > div:first-child > span { padding: 3px 6px; border-radius: 999px; color: #087f85; background: #e3f8f4; font-size: 7px; }.exam-task > div:last-child { display: grid; justify-items: end; gap: 5px; }.exam-task > div:last-child strong { font-size: 14px; }.exam-task em { color: #168763; font-size: 9px; font-style: normal; }
.exam-dialog { width: min(760px,92vw); max-height: 88vh; border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(16,33,56,.28); }.exam-dialog::backdrop { background: rgba(18,28,42,.45); }.exam-dialog form { padding: 2px 22px 22px; }.exam-paper { display: grid; gap: 13px; max-height: 58vh; overflow: auto; margin-bottom: 16px; }.exam-question { padding: 14px; border: 1px solid #e4e9ef; border-radius: 12px; }.exam-question legend { padding: 0 5px; font-size: 11px; font-weight: 750; }.exam-question legend small { color: #8a96a4; font-size: 7px; }.exam-question label { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; color: #526070; font-size: 10px; }.exam-result { margin: 8px 22px 24px; padding: 18px; border-radius: 13px; }.exam-result.passed { color: #17694f; background: #eaf8f2; }.exam-result.failed { color: #9a541d; background: #fff5e7; }.exam-result > strong { font-size: 18px; }.exam-result > p { font-size: 10px; }.exam-result > div { display: grid; gap: 3px; padding: 9px 0; border-top: 1px solid rgba(80,90,100,.12); }.exam-result b { font-size: 9px; }.exam-result small { font-size: 8px; }

.hidden { display: none !important; }
dialog { border: 0; border-radius: 16px; padding: 0; width: min(720px, 88vw); box-shadow: 0 30px 80px rgba(22,28,42,.24); }
dialog::backdrop { background: rgba(24,30,42,.45); backdrop-filter: blur(2px); }
.dialog-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }.dialog-head strong, .dialog-head span { display: block; }.dialog-head span { color: var(--muted); font-size: 10px; margin-top: 3px; }.dialog-head button { border: 0; background: #f3f4f6; width: 28px; height: 28px; border-radius: 50%; }
dialog pre { max-height: 56vh; overflow: auto; background: #151a24; color: #d7e1ef; margin: 0; padding: 20px; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
dialog > .primary-button { float: right; margin: 14px 18px 18px; }
.toast { position: fixed; right: 30px; bottom: 28px; background: #202633; color: white; border-radius: 10px; padding: 12px 16px; font-size: 11px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s; z-index: 20; }.toast.show { transform: translateY(0); opacity: 1; }.toast.error { background: #a93d3d; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 78px 1fr; }.sidebar { padding: 25px 12px; }.brand { padding: 0 4px 25px; }.brand > div:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { justify-content: center; }.nav-item span { font-size: 18px; }.sidebar-tip, .sidebar-footer > div:last-child { display: none; }.sidebar-footer { justify-content: center; }.main-content { padding: 0 24px 40px; }.composer-layout { grid-template-columns: 1fr; }.preview-column { position: static; max-width: 520px; margin: auto; }.stats-grid { grid-template-columns: 1fr 1fr; }.hero-art { opacity: .55; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }.sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 65px; padding: 7px 12px; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); }.brand, .sidebar-tip, .sidebar-footer { display: none; }.nav-list { width: 100%; display: flex; justify-content: space-around; }.nav-item { flex: 1; justify-content: center; }.main-content { padding: 0 14px 85px; }.topbar { height: 82px; }.eyebrow { display: none; }.topbar h1 { font-size: 21px; }.hero-card { padding: 30px 24px; min-height: 280px; }.hero-card h2 { font-size: 25px; }.hero-art { right: -110px; opacity: .3; }.stats-grid, .content-grid, .settings-grid { grid-template-columns: 1fr; }.config-guide ol { grid-template-columns: 1fr 1fr; }.form-surface { padding: 18px; }.field-row.two, .schedule-fields { grid-template-columns: 1fr; }.secure-config-actions { align-items: stretch; flex-direction: column; }.segmented { flex-wrap: wrap; }.segmented button { min-width: 42%; }.composer-layout { display: block; }.preview-column { margin-top: 18px; }.chat-area { min-height: 540px; }.learning-hero { display: block; padding: 24px; }.flow-steps { justify-content: flex-start; margin-top: 18px; }.learning-stats,.learning-columns,.learning-columns.lower,.admin-grid { grid-template-columns: 1fr; }.learner-toolbar { align-items: stretch; flex-direction: column; }.identity-controls { align-items: stretch; flex-direction: column; }.learner-toolbar select { width: 100%; }.learning-course-card { grid-template-columns: 92px 1fr; }.mini-adjust-form { grid-template-columns: 1fr; }.course-form,.course-admin-list,.exam-reserved { grid-column: auto; }.checkin-code-wrap { grid-template-columns: 1fr; }.checkin-code-wrap > strong { font-size: 30px; }.checkin-entry { align-items: stretch; flex-direction: column; }.checkin-entry input { width: 100%; }
}
