:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #252c32; background: #f5f5f1; font-synthesis: none;
  --ink: #252c32; --muted: #788087; --line: #e6e7e2; --paper: #ffffff;
  --blue: #335cd5; --nav: #232c30; --green: #34755d;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--blue); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #9bb5ff; outline-offset: 3px;
}
h1, h2, p { margin: 0; }
h1 { font-size: 29px; letter-spacing: -.8px; font-weight: 650; line-height: 1.35; }
h2 { font-size: 17px; line-height: 1.6; font-weight: 620; }
.muted { color: var(--muted); line-height: 1.7; }
.small { font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); margin-bottom: 12px; }
.button { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 10px 15px; font-size: 13px; font-weight: 550; color: var(--ink); white-space: nowrap; line-height: 1.4; transition: background .15s, border-color .15s; }
.button:hover { background: #f2f4f7; border-color: #ced5df; }
.button.primary { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 2px 3px #335cd510; }
.button.primary:hover { background: #284bb7; border-color: #284bb7; }
.button.text { border-color: transparent; background: transparent; padding: 7px 9px; color: #59626c; }
.button.text:hover { color: var(--blue); background: #f0f3fb; }
.button.danger { color: #a05e55; }
.button.danger:hover { background: #fbefec; color: #9a463c; }
.button.icon-button { font-size: 25px; line-height: 1; padding: 4px 8px; border: 0; background: none; font-weight: 400; color: #82888b; }
.badge { font-size: 11px; padding: 4px 8px; border-radius: 5px; background: #f0f1ee; color: #787f80; white-space: nowrap; line-height: 1.4; font-weight: 500; }
.badge.info { background: #eef2fd; color: #4969b0; }
.badge.success { background: #eef5ef; color: #527a60; }
.badge.warning { background: #fbf2e6; color: #aa7943; }
.badge.platform { background: #f2f3f5; color: #626c79; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--nav); font-size: 19px; font-weight: 600; }
.brand strong { display: block; font-size: 18px; letter-spacing: 1.5px; }
.brand span:not(.brand-mark) { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1px; margin-top: 5px; }
.brand.light { color: #f1f2ed; }
.brand.light .brand-mark { background: #414d50; border: 1px solid #62726c; color: #dce6c4; }
.brand.light span:not(.brand-mark) { color: #8f9c9f; }
.initial-loading { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.loading-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d9ded8; border-top-color: #687f70; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: var(--nav); color: #c7ced0; position: fixed; inset: 0 auto 0 0; width: 228px; display: flex; flex-direction: column; padding: 31px 20px 16px; }
.sidebar .brand { padding-left: 5px; }
.industry-switcher { margin-top: 43px; padding: 0 5px; }
.sidebar-section-label { font-size: 10px; color: #7f8c8f; letter-spacing: 1.5px; margin-bottom: 12px; }
.industry-switcher select { width: 100%; padding: 11px 12px; border: 1px solid #465155; background: #303c40; color: #e6eae5; border-radius: 7px; font-size: 13px; }
.industry-actions { display: flex; justify-content: space-between; margin-top: 8px; }
.button.sidebar-action { border: 0; background: none; color: #9eafb1; font-size: 11px; padding: 7px 0; }
.button.sidebar-action:hover { color: #fff; }
.nav { margin-top: 31px; display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; border: 0; width: 100%; text-align: left; border-radius: 7px; padding: 13px 14px; color: #aab5b8; background: none; font-size: 13px; }
.nav-item:hover { background: #303b3f; }
.nav-item.selected { color: #e5ebde; background: #39464a; }
.nav-icon { display: inline-grid; width: 16px; place-items: center; font-size: 17px; line-height: 1; opacity: .85; }
.sidebar-note { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 24px 9px 22px; }
.small-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #92af91; margin-top: 6px; }
.sidebar-note strong { display: block; font-size: 11px; font-weight: 500; color: #a3b4b1; }
.sidebar-note p { color: #75878a; font-size: 10px; margin-top: 6px; line-height: 1.5; }
.profile { display: flex; align-items: center; gap: 9px; border-top: 1px solid #3b474a; padding-top: 17px; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; flex: 0 0 31px; color: #6d786f; background: #e9eee5; font-size: 12px; }
.sidebar .avatar { color: #cfdbce; background: #42504a; }
.profile-text { min-width: 0; flex: 1; }
.profile-text strong { display: block; font-size: 12px; max-width: 98px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.profile-text span { display: block; font-size: 9px; color: #859496; margin-top: 4px; }
.button.logout { background: none; border: 0; color: #8a9a9c; font-size: 10px; padding: 6px 1px; }
.button.logout:hover { color: #fff; }
.workspace { grid-column: 2; padding: 37px 42px 60px; max-width: 1540px; width: 100%; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 31px; }
.page-header .eyebrow { font-size: 10px; letter-spacing: 1px; }
.breadcrumb-separator { padding: 0 10px; color: #c5c9c5; }
.page-header .muted { font-size: 12px; margin-top: 10px; }
.heading-line { display: flex; gap: 12px; align-items: center; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.view-stack { display: flex; flex-direction: column; gap: 21px; }
.summary-strip { display: grid; grid-template-columns: 1fr 1fr 1.2fr; border: 1px solid var(--line); border-radius: 11px; background: #fcfcf9; padding: 21px 26px; }
.summary-item { display: flex; flex-direction: column; padding: 1px 26px; border-right: 1px solid var(--line); }
.summary-item:first-child { padding-left: 0; }
.summary-item:last-child { border: 0; }
.summary-item > span { color: #7c8589; font-size: 11px; margin-bottom: 11px; }
.summary-item strong { font-size: 29px; line-height: 1; font-weight: 550; letter-spacing: -.5px; }
.summary-item small { font-size: 10px; color: #9aa19f; margin-top: 12px; }
.time-summary strong { font-size: 20px; line-height: 29px; font-weight: 550; letter-spacing: -.3px; }
.notice { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #e5e8dd; background: #f0f3e9; color: #58664e; border-radius: 8px; padding: 13px 16px; }
.notice strong { font-size: 12px; font-weight: 550; }
.notice p { font-size: 11px; line-height: 1.75; color: #7b8671; margin-top: 4px; }
.notice-icon { display: grid; place-items: center; width: 16px; height: 16px; font-size: 10px; border: 1px solid #93a082; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.content-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); }
.tab { font-size: 12px; font-weight: 500; border: 0; background: transparent; padding: 11px 12px 13px; color: #7b858c; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: #333c42; border-bottom-color: #465d50; }
.tab:hover { color: #252c32; }
.filters { display: flex; gap: 8px; }
.filters select { max-width: 168px; width: 134px; border: 1px solid #dde1dc; border-radius: 7px; padding: 9px 28px 9px 12px; font-size: 11px; background: #fff; color: #646e76; }
.list-caption { display: flex; justify-content: space-between; font-size: 10px; color: #929b9d; margin-top: -6px; }
.list-caption span { color: #a5aba6; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.view-loading { min-height: 310px; display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; color: #929c95; font-size: 12px; }
.empty-state { text-align: center; padding: 68px 28px 75px; display: flex; flex-direction: column; align-items: center; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; background: #f2f4ec; border: 1px solid #e8edde; color: #8d9c7f; border-radius: 18px; font-size: 29px; margin-bottom: 21px; }
.empty-state h2 { font-size: 16px; font-weight: 550; }
.empty-state p { color: #929a9d; font-size: 12px; line-height: 1.9; max-width: 390px; margin: 10px 0 23px; }
.empty-state .button { font-size: 12px; padding: 9px 14px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.content-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 23px; min-width: 0; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.account-name { font-size: 11px; color: #859091; overflow-wrap: anywhere; }
.content-card h2 { font-size: 16px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.content-excerpt { margin-top: 12px; font-size: 12px; color: #7e878c; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 8em; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; }
.card-footer span { color: #8e979c; font-size: 10px; }
.card-footer small { display: block; font-size: 9px; color: #a6aba9; margin-top: 5px; }
.text-link { font-size: 11px; text-decoration: none; color: #687d8d; white-space: nowrap; }
.text-link:hover { color: var(--blue); text-decoration: underline; }
.section-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.section-heading > .muted { font-size: 11px; }
.source-list { display: grid; gap: 15px; }
.source-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 22px 24px 15px; }
.source-title-row { display: flex; align-items: center; gap: 13px; }
.source-avatar { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #edf1e9; color: #75816c; font-size: 17px; flex-shrink: 0; }
.source-identity { flex: 1; min-width: 0; }
.source-identity h2 { font-size: 15px; overflow-wrap: anywhere; }
.source-meta { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.source-meta > span:last-child { font-size: 10px; color: #98a1a2; overflow-wrap: anywhere; }
.source-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.source-notes { color: #88918e; font-size: 12px; margin-top: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.source-evidence { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 0 17px; margin-top: 16px; border-top: 1px solid #f0f1eb; }
.source-evidence span { display: block; font-size: 10px; color: #929e9b; margin-bottom: 7px; }
.source-evidence strong { font-size: 12px; font-weight: 450; color: #606b6f; }
.source-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #eff1ec; padding-top: 11px; }
.row-actions { display: flex; align-items: center; gap: 3px; }
.row-actions .button { font-size: 11px; }
.inline-error { font-size: 11px; color: #b37865; margin: 6px 0 10px; line-height: 1.7; overflow-wrap: anywhere; }
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.operations-panel { padding: 24px; }
.operations-panel > .muted { font-size: 12px; margin-top: 13px; line-height: 1.9; }
.detail-list { margin: 21px 0 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #eff0ea; font-size: 11px; }
.detail-list dt { color: #8d9798; }
.detail-list dd { margin: 0; color: #5e696e; text-align: right; }
.panel-heading { padding: 21px 25px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.panel-heading h2 { font-size: 14px; }
.compact-empty { text-align: center; padding: 33px 25px; color: #969e9f; font-size: 12px; line-height: 1.9; }
.delivery-row { display: flex; align-items: center; gap: 15px; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #eff0ec; }
.delivery-row:last-child { border: 0; }
.delivery-row strong { font-size: 12px; font-weight: 550; }
.delivery-row .muted { margin-top: 6px; }
.user-row { display: flex; align-items: center; padding: 19px 24px; gap: 13px; border-bottom: 1px solid #eff0ec; }
.user-row:last-child { border: 0; }
.user-info { flex: 1; min-width: 0; }
.user-info strong { font-size: 13px; font-weight: 550; }
.user-info p { margin-top: 5px; overflow-wrap: anywhere; }
.auth-layout { display: grid; grid-template-columns: 46% 54%; min-height: 100dvh; }
.auth-story { padding: 48px 55px; background: var(--nav); color: #e1e8db; display: flex; flex-direction: column; }
.auth-story-copy { margin: auto 0; padding: 55px 0 85px; max-width: 405px; }
.auth-story-copy .eyebrow { color: #99a88e; margin-bottom: 26px; font-size: 11px; }
.auth-story-copy h2 { font-size: 33px; font-weight: 450; line-height: 1.65; letter-spacing: -.5px; }
.auth-story-copy > p:not(.eyebrow) { color: #8ea0a1; font-size: 13px; margin-top: 27px; line-height: 2.1; max-width: 335px; }
.story-note { font-size: 10px; color: #91a99a; display: flex; gap: 8px; margin-top: 50px; }
.auth-panel { display: grid; place-items: center; padding: 40px; }
.auth-form { width: 100%; max-width: 355px; }
.auth-form h1 { font-size: 27px; }
.auth-description { margin: 12px 0 33px; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 19px; }
.field label { font-size: 12px; font-weight: 500; color: #616c70; }
.field input, .field select, .field textarea { border: 1px solid #dde1da; padding: 11px 12px; background: #fff; border-radius: 7px; font-size: 13px; color: #333d42; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: #b1b7b5; font-size: 12px; }
.field textarea { resize: vertical; min-height: 85px; }
.field-hint { font-size: 10px; line-height: 1.7; color: #969f9c; }
.auth-submit { width: 100%; padding: 12px; margin-top: 7px; }
.auth-footnote { text-align: center; font-size: 10px; color: #a0a9a5; margin-top: 22px; line-height: 1.7; }
.form-error { font-size: 12px; color: #a45c4c; background: #fbf0eb; border-radius: 6px; padding: 11px 12px; margin-bottom: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.dialog { border: 1px solid #e3e8df; border-radius: 13px; padding: 0; width: min(530px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-shadow: 0 20px 100px #14201a25; color: var(--ink); }
.dialog::backdrop { background: #1a272e55; backdrop-filter: blur(2px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 26px 27px 19px; border-bottom: 1px solid #eff1eb; }
.dialog-header h2 { font-size: 19px; }
.dialog-header p { font-size: 11px; margin-top: 8px; }
.dialog-form { padding: 24px 27px 0; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 0 24px; margin-top: 8px; }
.checkbox-field { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #798580; line-height: 1.7; }
.checkbox-field input { accent-color: var(--blue); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.industry-manager { padding: 24px 27px; }
.industry-manager-row { display: flex; justify-content: space-between; gap: 14px; padding: 20px 0; border-bottom: 1px solid #eff0ea; }
.industry-manager-row strong { font-size: 13px; font-weight: 550; margin-right: 7px; }
.industry-manager-row p { margin-top: 6px; }
.industry-manager > .button { margin-top: 22px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 13px 20px; color: #fff; background: #344640; font-size: 12px; border-radius: 9px; box-shadow: 0 6px 30px #17271c20; max-width: calc(100vw - 30px); z-index: 100; line-height: 1.7; }
.toast.error { background: #8f5c4f; }
[hidden] { display: none !important; }
.startup-error { max-width: 600px; padding: 40px; margin: 60px auto; }
@media (min-width: 1450px) { .workspace { padding-right: 58px; padding-left: 58px; } }
@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar { width: 200px; padding: 28px 15px 16px; }
  .workspace { padding: 30px 26px 50px; }
  .content-toolbar { flex-wrap: wrap; }
  .filters { margin-left: auto; }
  .source-title-row { flex-wrap: wrap; }
  .source-badges { margin-left: 55px; }
  .auth-story { padding: 40px; }
  .auth-story-copy h2 { font-size: 28px; }
  .user-row { flex-wrap: wrap; }
  .user-info { min-width: 60%; }
  .user-row > .row-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; padding: 20px 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
  .sidebar .brand { padding-left: 0; }
  .brand strong { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .industry-switcher { grid-column: 1 / -1; margin-top: 0; padding: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
  .sidebar-section-label { display: none; }
  .industry-switcher select { padding: 10px 12px; font-size: 16px; }
  .industry-actions { gap: 16px; margin: 0; }
  .nav { grid-column: 1 / -1; margin-top: -3px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding-bottom: 10px; }
  .nav-item { padding: 10px 4px; width: 100%; justify-content: center; white-space: nowrap; gap: 4px; font-size: 11px; }
  .nav-icon { font-size: 14px; }
  .sidebar-note { display: none; }
  .profile { grid-row: 1; grid-column: 2; border: 0; padding: 0; }
  .profile .avatar, .profile-text span { display: none; }
  .profile-text strong { font-size: 10px; max-width: 65px; color: #c1ceca; }
  .button.logout { font-size: 10px; }
  .workspace { padding: 25px 18px 40px; }
  .page-header { align-items: flex-start; flex-wrap: wrap; gap: 17px; margin-bottom: 24px; }
  .page-header h1 { font-size: 25px; }
  .page-header .muted { font-size: 11px; }
  .page-header .eyebrow { margin-bottom: 9px; }
  .header-actions { margin-left: auto; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .button { font-size: 12px; padding: 9px 13px; }
  .summary-strip { padding: 19px 17px; border-radius: 9px; grid-template-columns: 1fr 1fr 1.25fr; }
  .summary-item { padding: 0 15px; }
  .summary-item > span { font-size: 10px; }
  .summary-item strong { font-size: 25px; }
  .summary-item small { font-size: 9px; line-height: 1.7; margin-top: 9px; }
  .time-summary strong { font-size: 15px; line-height: 25px; }
  .notice { padding: 12px 14px; }
  .notice p { font-size: 10px; }
  .content-toolbar { gap: 14px; }
  .tabs { width: 100%; justify-content: space-between; gap: 0; }
  .tab { font-size: 11px; padding: 10px 7px 12px; }
  .filters { width: 100%; margin-left: 0; }
  .filters select { max-width: none; width: 50%; font-size: 16px; }
  .list-caption { font-size: 9px; gap: 12px; }
  .list-caption span { text-align: right; }
  .content-grid, .operations-grid { grid-template-columns: 1fr; }
  .content-card { padding: 20px; }
  .content-card h2 { font-size: 15px; }
  .empty-state { padding: 53px 23px 58px; }
  .empty-state h2 { font-size: 15px; }
  .empty-state p { font-size: 11px; }
  .source-card { padding: 19px 17px 13px; }
  .source-title-row { gap: 11px; }
  .source-badges { margin-left: 0; width: 100%; }
  .source-meta { flex-wrap: wrap; }
  .source-evidence { gap: 12px; }
  .source-evidence strong { font-size: 11px; }
  .source-footer { flex-wrap: wrap; gap: 10px; }
  .source-footer > .row-actions { margin-left: auto; }
  .operations-panel { padding: 20px; }
  .panel-heading { padding: 19px 20px; flex-wrap: wrap; gap: 6px; }
  .delivery-row { padding: 17px 20px; flex-wrap: wrap; }
  .delivery-row > .row-actions { margin-left: auto; }
  .user-row { padding: 18px 20px; gap: 10px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { padding: 25px 28px 24px; }
  .auth-story-copy { padding: 26px 0 0; margin: 0; max-width: none; }
  .auth-story-copy .eyebrow { margin-bottom: 14px; font-size: 10px; }
  .auth-story-copy h2 { font-size: 22px; line-height: 1.6; }
  .auth-story-copy > p:not(.eyebrow) { display: none; }
  .story-note { margin-top: 20px; font-size: 9px; }
  .auth-panel { padding: 35px 28px 45px; }
  .auth-form { max-width: 400px; }
  .auth-form h1 { font-size: 25px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .dialog-header { padding: 22px 21px 17px; }
  .dialog-form { padding: 22px 21px 0; }
  .industry-manager { padding: 22px 21px; }
  .industry-manager-row { flex-wrap: wrap; }
  .industry-manager-row .row-actions { margin-left: auto; }
  .toast { bottom: 20px; width: max-content; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
