:root {
  font-family: "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif;
  color: #182235;
  background: #f5f7fa;
  --navy: #122238;
  --navy-2: #1a3150;
  --coral: #f04452;
  --coral-soft: #fff0f1;
  --blue: #3977f6;
  --green: #23a66b;
  --muted: #667085;
  --line: #e3e8ef;
  --surface: #fff;
  --shadow: 0 8px 24px rgba(21, 38, 61, .07);
}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fa; color: #182235; font-size: 14px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 68px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 3.3vw, 58px); gap: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 13px; font-weight: 800; }
.brand-lockup strong { display: block; font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.brand-lockup small { display: block; color: #aebbd0; margin-top: 2px; font-size: 11px; }
.topbar-status { display: flex; align-items: center; gap: 10px; color: #d1d9e5; font-size: 12px; white-space: nowrap; }
.live-dot, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #43d58f; display: inline-block; box-shadow: 0 0 0 3px rgba(67, 213, 143, .15); }
.status-dot.idle { background: #a8b1bf; box-shadow: 0 0 0 3px rgba(168, 177, 191, .16); }
.topbar-divider { width: 1px; height: 16px; background: #3c4e68; margin: 0 3px; }
.logout-button { border: 0; color: #d8e0ec; background: transparent; padding: 5px 0; }
.account-link { color: #f4f7fb; text-decoration: none; padding: 5px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; }
.account-link:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.workspace { max-width: 1760px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 54px) 54px; }
.agent-hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(410px, .94fr); gap: 25px; color: #fff; background: linear-gradient(116deg, #142b48 0%, #203e62 100%); border-radius: 12px; padding: 27px 30px 23px; box-shadow: 0 12px 28px rgba(24, 43, 69, .18); }
.agent-copy { min-width: 0; }
.agent-title { display: flex; align-items: flex-start; gap: 12px; }
.agent-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #f04e5a; color: #fff; font-size: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.eyebrow { color: #718096; font-size: 11px; letter-spacing: .08em; font-weight: 700; }
.eyebrow.light { color: #9eb4ce; }
.agent-hero h1 { margin: 3px 0 0; font-size: clamp(23px, 2vw, 31px); line-height: 1.2; letter-spacing: .01em; }
.online-pill { display: inline-block; color: #7be0ae; font-size: 11px; border: 1px solid rgba(123,224,174,.4); padding: 4px 8px; border-radius: 99px; vertical-align: middle; margin-left: 6px; font-weight: 600; }
.agent-copy > p { color: #d2deeb; line-height: 1.7; max-width: 690px; margin: 14px 0 16px; }
.agent-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-chip { color: #e2eaf4; border: 1px solid #526b89; background: rgba(255,255,255,.06); padding: 8px 12px; border-radius: 7px; font-size: 12px; }
.quick-chip:hover { border-color: #ff7981; color: #fff; background: rgba(240,68,82,.18); }
.agent-facts { display: flex; flex-wrap: wrap; gap: 7px 17px; color: #b9c9da; font-size: 11px; margin-top: 20px; }
.agent-facts b { color: #fff; font-weight: 600; }
.agent-chat { align-self: stretch; display: flex; flex-direction: column; background: rgba(8, 25, 46, .32); border: 1px solid rgba(190, 213, 240, .18); border-radius: 10px; padding: 15px; min-height: 184px; }
.chat-label { display: flex; justify-content: space-between; color: #e4edf7; font-size: 12px; font-weight: 700; }
.chat-label span:last-child { color: #93aac4; font-weight: 400; }
.agent-chat textarea { flex: 1; min-height: 82px; resize: vertical; color: #fff; background: transparent; border: 0; outline: 0; padding: 14px 1px 9px; line-height: 1.6; }
.agent-chat textarea::placeholder { color: #8da5bf; }
.chat-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-hint { color: #8da5bf; font-size: 11px; }
.primary-button, .secondary-button { border: 0; border-radius: 7px; padding: 9px 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.primary-button { color: #fff; background: var(--coral); }
.primary-button:hover { background: #dc3444; }
.primary-button.small, .secondary-button.small { padding: 8px 11px; font-size: 12px; }
.secondary-button { color: var(--navy); background: #eef2f7; border: 1px solid #d8e0eb; }
.agent-reply { max-height: 220px; overflow: auto; overflow-wrap: anywhere; margin: 9px 0 0; padding: 10px; color: #eef5fc; background: rgba(0,0,0,.22); border-radius: 6px; white-space: pre-wrap; font-size: 12px; line-height: 1.6; }
.primary-tabs { display: flex; align-items: center; gap: 4px; margin: 23px 0 12px; border-bottom: 1px solid var(--line); }
.primary-tabs button { position: relative; border: 0; color: #667085; background: transparent; padding: 11px 20px 13px; font-weight: 700; font-size: 15px; }
.primary-tabs button::after { content: ""; position: absolute; height: 3px; left: 17px; right: 17px; bottom: -1px; background: transparent; border-radius: 3px 3px 0 0; }
.primary-tabs button.active { color: var(--coral); }
.primary-tabs button.active::after { background: var(--coral); }
.overview-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
.overview-tile { min-height: 88px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 14px 15px; box-shadow: 0 3px 12px rgba(20, 39, 64, .03); }
.tile-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--coral); background: var(--coral-soft); font-size: 13px; }
.tile-icon.blue { color: var(--blue); background: #edf3ff; }
.tile-icon.green { color: var(--green); background: #eaf9f1; }
.tile-icon.navy { color: var(--navy-2); background: #eef2f8; }
.overview-tile small, .overview-tile strong, .overview-tile em { display: block; }
.overview-tile small { color: var(--muted); font-size: 11px; }
.overview-tile strong { margin: 4px 0; font-size: 16px; color: var(--navy); }
.overview-tile em { overflow: hidden; color: #738096; font-style: normal; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.content-frame { display: grid; grid-template-columns: 152px minmax(0, 1fr) 218px; gap: 16px; align-items: start; }
.secondary-nav { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 4px; }
.secondary-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 10px; border: 0; border-left: 3px solid transparent; border-radius: 4px; background: transparent; color: #64748b; text-align: left; font-size: 13px; }
.secondary-link span { color: #b0bac8; font-size: 16px; }
.secondary-link:hover { background: #fff4f5; color: var(--coral); }
.secondary-link.active { color: #d93543; background: #fff0f1; border-left-color: var(--coral); font-weight: 700; }
.content-main { min-width: 0; }
.content-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 11px; }
.content-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: 21px; }
.heading-tools { display: flex; align-items: center; gap: 10px; color: #8591a3; font-size: 12px; }
.icon-button { width: 31px; height: 31px; border: 1px solid #d8e0e9; border-radius: 7px; background: #fff; color: #607087; font-size: 18px; line-height: 1; }
.icon-button:hover { color: var(--coral); border-color: #f49ba2; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(210px, .9fr); gap: 12px; margin-bottom: 12px; }
.feature-card { display: grid; grid-template-columns: 34% minmax(0, 1fr); min-height: 197px; overflow: hidden; border: 1px solid #e2e8f1; border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.feature-visual { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 19px; color: #fff; background: linear-gradient(145deg, #e54c5a, #f58f68); }
.feature-visual span { font-size: 12px; opacity: .84; }
.feature-visual b { font-size: 24px; }
.feature-copy { display: flex; flex-direction: column; padding: 18px 19px 15px; min-width: 0; }
.feature-copy h3 { margin: 9px 0 7px; font-size: 19px; line-height: 1.35; color: var(--navy); }
.feature-copy p { color: #64748b; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.feature-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: #8994a4; font-size: 11px; }
.bulletin-panel { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; box-shadow: 0 3px 12px rgba(20,39,64,.03); }
.bulletin-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px 10px; border-bottom: 1px solid #edf0f4; }
.bulletin-head strong { color: var(--navy); }
.bulletin-head span { color: var(--coral); font-size: 11px; }
.bulletin-item { display: grid; grid-template-columns: 23px minmax(0,1fr); gap: 7px; width: 100%; padding: 10px 13px; text-align: left; border: 0; border-bottom: 1px solid #f0f2f5; background: transparent; }
.bulletin-item:last-child { border-bottom: 0; }
.bulletin-item:hover { background: #fff7f7; }
.bulletin-index { color: var(--coral); font-size: 11px; font-weight: 800; }
.bulletin-item b, .bulletin-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulletin-item b { color: #26354d; font-size: 12px; }
.bulletin-item small { color: #929dad; font-size: 10px; margin-top: 3px; }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.news-card { display: grid; grid-template-columns: 94px minmax(0, 1fr); min-height: 183px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(20,39,64,.03); }
.news-card.is-read { opacity: .82; }
.news-visual { display: flex; align-items: flex-end; padding: 11px; color: #fff; background: linear-gradient(145deg, #3977f6, #67a9f4); font-size: 12px; font-weight: 700; }
.news-card:nth-child(3n) .news-visual { background: linear-gradient(145deg, #23a66b, #70c895); }
.news-card:nth-child(4n) .news-visual { background: linear-gradient(145deg, #e26a46, #f0aa72); }
.news-body { min-width: 0; padding: 12px 13px 10px; }
.card-topline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tag { display: inline-block; max-width: 130px; padding: 3px 6px; border-radius: 4px; overflow: hidden; color: #637086; background: #f1f4f8; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.tag-priority { color: #d13a47; background: #fff0f1; }
.score { margin-left: auto; color: #8b96a6; font-size: 10px; white-space: nowrap; }
.news-card h3 { margin: 8px 0 5px; color: var(--navy); font-size: 15px; line-height: 1.4; }
.news-subtitle, .news-summary { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.news-subtitle { -webkit-line-clamp: 1; margin: 0 0 5px; color: #67758a; font-size: 11px; }
.news-summary { -webkit-line-clamp: 2; margin: 0; color: #7b8798; font-size: 12px; line-height: 1.55; }
.news-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: #98a2b0; font-size: 10px; }
.news-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; gap: 7px; margin-top: 9px; }
.text-action { border: 0; padding: 0; color: var(--blue); background: transparent; font-size: 11px; }
.text-action:hover { color: var(--coral); }
.text-action.muted, .text-action:disabled { color: #aab3c0; cursor: not-allowed; }
.utility-rail { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 11px; }
.rail-block { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; }
.rail-title { display: flex; align-items: center; justify-content: space-between; color: #718096; font-size: 11px; margin-bottom: 10px; }
.rail-block > strong { display: block; overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rail-block p { margin: 7px 0 0; color: #667085; font-size: 11px; line-height: 1.6; }
.muted { color: #9aa5b5 !important; }
.rail-link { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 11px; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.focus-tags span { padding: 5px 7px; color: #47617f; background: #f0f5fb; border-radius: 4px; font-size: 10px; }
.empty-state { display: grid; place-items: center; min-height: 150px; border: 1px dashed #cfd8e5; border-radius: 8px; color: #8290a4; background: rgba(255,255,255,.55); }
.empty-state.compact { min-height: 94px; border: 0; border-radius: 0; }
.insights-panel { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.panel-title { display: flex; justify-content: space-between; color: var(--navy); margin-bottom: 8px; }
.panel-title span { color: #8b97a8; font-size: 11px; font-weight: 400; }
.insight-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid #edf0f4; }
.insight-row b { color: var(--navy); font-size: 13px; }
.insight-row p { margin: 4px 0 0; color: #69778b; font-size: 12px; line-height: 1.6; }
.insight-row > span { flex: 0 0 auto; color: #a0aaba; font-size: 10px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(16, 29, 47, .28); }
.reader-drawer { position: fixed; top: 0; right: 0; z-index: 21; display: flex; flex-direction: column; width: min(520px, 92vw); height: 100vh; padding: 22px 25px; overflow-y: auto; background: #fff; box-shadow: -10px 0 30px rgba(19, 36, 58, .14); transform: translateX(100%); transition: transform .2s ease; }
.reader-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; color: var(--navy); font-size: 15px; font-weight: 700; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.reader-kicker { margin-top: 23px; color: var(--coral); font-size: 11px; font-weight: 700; }
.reader-drawer h2 { margin: 9px 0; color: var(--navy); font-size: 25px; line-height: 1.4; }
.reader-subtitle { color: #66758b; line-height: 1.7; }
.reader-drawer > #reader-content > p { color: #4f5f75; line-height: 1.85; }
.reader-block { margin-top: 20px; padding: 13px; border-left: 3px solid var(--coral); background: #fff5f5; color: #6d5d63; font-size: 12px; line-height: 1.7; }
.reader-block p { margin: 5px 0 0; }
.reader-meta { margin-top: 20px; color: #8a96a6; font-size: 11px; line-height: 1.8; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.reader-insight { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.reader-insight label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 12px; font-weight: 700; }
.reader-insight textarea { width: 100%; min-height: 92px; padding: 11px 12px; resize: vertical; border: 1px solid #dbe1e9; border-radius: 6px; color: var(--text); font: inherit; line-height: 1.65; }
.reader-insight textarea:focus { border-color: var(--blue); outline: 2px solid rgba(57, 119, 246, .12); }
.reader-insight > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.reader-insight > div span { color: var(--green); font-size: 11px; }
.packet-output { margin-top: 14px; padding: 13px; overflow: auto; border-radius: 7px; background: #f4f6f9; color: #405067; font: inherit; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.login { max-width: 370px; margin: 90px auto; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.login h1 { margin-top: 0; color: var(--navy); }
.login form { display: grid; gap: 12px; }
.login input { width: 100%; padding: 11px 12px; border: 1px solid #d5dce6; border-radius: 7px; }
.settings-shell { width: min(560px, calc(100% - 32px)); margin: 56px auto; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.settings-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.settings-header h1 { margin: 5px 0 7px; color: var(--navy); }
.settings-header p { margin: 0; color: #6f7d91; line-height: 1.6; }
.password-form { display: grid; gap: 16px; }
.password-form label { display: grid; gap: 7px; color: var(--navy); font-weight: 700; font-size: 13px; }
.password-form input { width: 100%; padding: 11px 12px; border: 1px solid #d5dce6; border-radius: 7px; color: var(--text); }
.password-form input:focus { border-color: var(--blue); outline: 2px solid rgba(57,119,246,.12); }
.password-form small { color: #8793a4; font-weight: 400; }
.password-form .primary-button { justify-self: start; margin-top: 4px; }
.form-message { margin: 0 0 18px; padding: 11px 13px; border-radius: 7px; font-size: 13px; }
.form-message.success { color: #17633f; background: #e9f8f0; border: 1px solid #bce8d0; }
.form-message.error { color: #9c2d38; background: #fff0f1; border: 1px solid #f0c4c8; }
@media (max-width: 1240px) { .content-frame { grid-template-columns: 142px minmax(0, 1fr); } .utility-rail { grid-column: 2; position: static; display: grid; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .agent-hero { grid-template-columns: 1fr; } .overview-strip { grid-template-columns: repeat(2, 1fr); } .feature-row { grid-template-columns: 1fr; } .content-frame { grid-template-columns: 1fr; } .secondary-nav { position: static; display: grid; grid-template-columns: repeat(3, 1fr); } .utility-rail { grid-column: 1; } }
@media (max-width: 620px) { .topbar { height: auto; min-height: 61px; padding: 11px 15px; align-items: flex-start; } .topbar-status { gap: 5px; font-size: 10px; } .topbar-status span:nth-child(2), .topbar-divider, .topbar-status span:nth-child(4) { display: none; } .workspace { padding: 14px 12px 35px; } .agent-hero { padding: 21px 17px 18px; border-radius: 9px; } .agent-copy > p { font-size: 12px; } .agent-facts { display: grid; grid-template-columns: 1fr; gap: 5px; } .primary-tabs { overflow-x: auto; } .primary-tabs button { flex: 0 0 auto; padding-left: 13px; padding-right: 13px; } .overview-strip { grid-template-columns: 1fr; } .content-frame { gap: 11px; } .secondary-nav { grid-template-columns: repeat(2, 1fr); } .cards-grid { grid-template-columns: 1fr; } .feature-card { grid-template-columns: 1fr; } .feature-visual { min-height: 92px; } .utility-rail { display: grid; grid-template-columns: 1fr; } .chat-footer { align-items: flex-end; flex-direction: column; } .chat-footer .primary-button { width: 100%; } }
