/* 达羚客户追踪：共享的商务界面主题。业务结构与操作选择器保持不变。 */
:root {
  --ink: #172b48;
  --muted: #5d6e86;
  --green: #285fba;
  --lime: #e3b562;
  --paper: #f1f4f9;
  --line: #e1e7f0;
  --white: #fff;
  --warm: #fff8ea;
  --red: #b24743;
  --brand-blue: #285fba;
  --blue-light: #edf3ff;
  --shadow-card: 0 4px 18px rgba(30, 53, 89, .035);
  --shadow-dialog: 0 24px 90px rgba(16, 37, 70, .18);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
button, .button-link {
  border-color: #d8e1ee;
  border-radius: 9px;
  color: #29425f;
  padding: 10px 16px;
  font-weight: 500;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
button:hover, .button-link:hover { background: #f1f5fd; border-color: #afc4e7; }
button:disabled { opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #87ace3;
  outline-offset: 3px;
}
.primary, a.primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.primary:hover, a.primary:hover {
  color: #fff;
  background: #204f9e;
  border-color: #204f9e;
}
.subtle { background: transparent; }
.mini { padding: 7px 12px; font-size: 12px; }
.muted { color: var(--muted); }
.smalltext { color: var(--muted); font-size: 12px; line-height: 1.75; }
.dot { background: #4676bd; }
.avatar { color: #315e9e; background: #edf3fb; }

/* Desktop workspace */
.sidebar {
  width: 240px;
  padding: 28px 18px 18px;
  background: #f8faff;
  color: var(--ink);
  border-right: 1px solid #dce5f1;
  z-index: 6;
}
.daling-brand.logo-only-brand { padding-bottom: 35px; }
.nav { gap: 8px; }
.nav .navlabel { display: inline; white-space: nowrap; }
.nav button {
  display: flex;
  align-items: center;
  color: #5b6b83;
  padding: 14px 15px;
  border-radius: 10px;
  font-size: 13px;
  min-height: 49px;
}
.nav button:hover { background: #eef3fc; color: #285fba; }
.nav button.active {
  color: #205db8;
  background: #e6efff;
  box-shadow: inset 3px 0 0 #285fba;
  font-weight: 650;
}
.nav i { font-size: 18px; color: inherit; margin-right: 12px; opacity: .85; }
.side-foot { border-color: #e2e9f4; color: #606d7d; padding: 24px 12px 6px; }
.workspace { margin-left: 240px; }
.topbar {
  height: 72px;
  padding: 0 34px;
  border-color: var(--line);
  background: rgba(255, 255, 255, .94);
}
.crumb { font-size: 12px; color: #5f6d7d; }
.crumb #breadcrumb { color: #385272; margin-left: 3px; }
.status { color: #5e6e80; gap: 17px; }
.main { max-width: 1760px; padding: 32px 34px 48px; }
.heading { margin-bottom: 27px; }
.heading .muted { max-width: 750px; font-size: 13px; }
.eyebrow { color: #4d6c96; font-size: 10px; letter-spacing: 1.8px; margin-bottom: 10px; }
h1 { color: #142945; font-size: 28px; letter-spacing: -.6px; font-weight: 650; line-height: 1.4; }
h2 { color: #1d3554; font-size: 17px; font-weight: 650; }
h3 { color: #2b4261; font-size: 15px; font-weight: 650; }
.actions { gap: 8px; }
.notice {
  color: #5c6d85;
  background: #edf3fb;
  border-color: #dce7f7;
  border-radius: 10px;
  padding: 12px 17px;
  font-size: 12px;
  margin-bottom: 23px;
}
.kpis { gap: 16px; margin-bottom: 25px; }
.kpi {
  padding: 22px 24px;
  border-color: #e4eaf2;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.kpi-label { font-size: 12px; color: #5d6c7c; margin-bottom: 12px; }
.kpi-value { font-size: 32px; color: #183758; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 11px; color: #626d7b; margin-top: 12px; }
.kpi:first-child { background: #244e89; border: 1px solid #244e89; }
.kpi:first-child .kpi-value { color: #fff; }
.kpi:first-child .kpi-label, .kpi:first-child small { color: #c7d9f2; }
.grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.panel, .material { border-color: #e1e7f0; border-radius: 14px; box-shadow: var(--shadow-card); }
.panel-head { padding: 22px 23px 19px; }
.panel-head span { color: #616d7b; }
.filters { gap: 8px; padding-bottom: 19px; }
.filters input, .filters select {
  padding: 10px 12px;
  background: #fbfcfe;
  border-color: #dfe6f0;
  border-radius: 8px;
  color: #405b7a;
}
th { font-size: 12px; font-weight: 500; background: #f8fafd; color: #5d6d7f; border-color: #e7edf5; }
td { border-color: #e9eef5; color: #304b6a; padding-top: 19px; padding-bottom: 19px; }
tbody tr:hover { background: #fcfdff; }
td .company { color: #1b3758; font-size: 14px; line-height: 1.6; }
.name-row .avatar { border-radius: 10px; background: #edf3fb; }
#customer-table td:first-child { min-width: 225px; }
#customer-table td:nth-child(3) { white-space: normal; min-width: 190px; }
#customer-table td:nth-child(4) { min-width: 125px; white-space: normal; }
#customer-table td:last-child { min-width: 160px; }
#customer-table td:last-child .actions { flex-wrap: nowrap; }
.score { color: #285fba; font-size: 21px; font-variant-numeric: tabular-nums; }
.pill { padding: 4px 8px; border-radius: 6px; color: #5e6e83; background: #eef2f7; }
.pill.high { color: #226b60; background: #e4f4ee; }
.pill.mid { color: #89652d; background: #fff3d8; }
.pill.low { color: #5f6d7c; background: #eef2f7; }
.task { border-color: #e7edf5; padding: 18px 0; }
.task-top b { color: #26415f; }
.task .reason { color: #5a6c83; }
.task .due { color: #796854; }
.task .due.late { color: #b24743; }
.aside-tip { background: #edf3fc; border: 1px solid #dce7f7; color: #596d89; border-radius: 14px; }
.aside-tip h3 { color: #35547b; }
.section-foot { font-size: 11px; line-height: 1.8; color: #626c7c; border-color: #e7edf5; }
.empty { color: #616d7c; padding: 42px 25px; }

/* Materials, pipelines and enterprise management */
.materials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.cover { min-height: 155px; background: #ecf2fc; padding: 27px 25px 25px; }
.cover .category { color: #4b6d9a; font-size: 11px; letter-spacing: 1px; }
.cover h3 { color: #24415f; font-size: 21px; max-width: 85%; margin-top: 25px; }
.cover .number { color: #cfddf0; font-size: 47px; right: 22px; top: 18px; }
.material:nth-child(2n) .cover { background: #eef3f8; }
.material:nth-child(2n) .category { color: #556d86; }
.material-stats { padding: 23px 25px; gap: 12px; }
.material-stats b { color: #335b86; font-size: 21px; font-variant-numeric: tabular-nums; }
.material-stats span { color: #606d7d; font-size: 11px; }
.material-foot { padding: 15px 19px; border-color: #e7edf5; gap: 8px; flex-wrap: wrap; }
.material-foot span { color: #5f6d7d; }
.stage-card { border-color: #e1e8f2; border-radius: 12px; box-shadow: var(--shadow-card); }
.stage-card b { color: #285fba; font-size: 27px; }
.stage-card span { color: #606d7d; }
.bartrack { background: #edf2f8; height: 8px; }
.barfill { background: #7299cf; height: 8px; }
.settings-grid { gap: 23px; }
.settings-body { padding: 24px; color: #566d8a; }
.settings-body p { font-size: 13px; }
.settings-body .actions { flex-wrap: wrap; gap: 9px; }
.settings-body .button-link { color: #285fba; }
.settings-body .actions button { min-height: 40px; }
.category-row { border-color: #e7edf5; padding: 13px 0; }
.article-preview { background: #fafcff; border-color: #dee7f4; color: #3d5675; }
.article-preview blockquote { border-color: #8eadd5; background: #f2f6fc; }

/* Shared dialogs, forms and authentication */
.modal-backdrop { background: rgba(20, 38, 63, .38); backdrop-filter: blur(3px); z-index: 40; }
.modal { border: 1px solid #e1e8f3; border-radius: 17px; box-shadow: var(--shadow-dialog); }
.modal-header { padding: 23px 27px; background: #fbfcfe; border-color: #e3eaf4; }
.modal-header h2 { font-size: 18px; }
.modal-body { padding: 25px 27px; }
.form-grid { gap: 18px; }
.form-grid label { color: #596e88; font-size: 13px; }
.form-grid input, .form-grid select, .form-grid textarea, .link-box {
  border-color: #dbe4f0;
  background: #fbfcfe;
  color: #263f5c;
  padding: 12px 13px;
  border-radius: 9px;
  min-height: 43px;
}
input::placeholder, textarea::placeholder { color: #646d79; opacity: 1; }
input:focus, select:focus, textarea:focus {
  border-color: #729ace;
  outline: 0;
  box-shadow: 0 0 0 3px #e7effc;
}
.form-foot { gap: 10px; margin-top: 25px; }
.form-foot button { min-height: 42px; }
.error { color: #b24743; }
.detail-summary { background: #eff4fc; border: 1px solid #e0e9f6; border-radius: 12px; padding: 22px; }
.detail-score { color: #285fba; font-variant-numeric: tabular-nums; }
.details { gap: 14px; color: #314e70; }
.timeline { border-color: #d9e5f5; }
.event { color: #536d8e; }
.toast { background: #233e65; border-radius: 10px; box-shadow: 0 9px 30px #17315230; z-index: 70; }
.logged-out { background: linear-gradient(135deg, #f2f6fc, #edf2f8); }
.logged-out .main { max-width: none; padding-top: 38px; }
.auth-card {
  max-width: 550px;
  border: 1px solid #e0e8f3;
  border-radius: 19px;
  box-shadow: 0 16px 55px rgba(27, 54, 93, .065);
  padding: 37px 39px;
  margin: 30px auto;
}
.auth-card h1 { font-size: 27px; margin-top: 8px; }
.auth-brand { margin-bottom: 24px; }
.auth-brand strong { color: #285fba; font-size: 20px; }
.auth-brand span:not(.company-logo) { color: #5e6c7e; }
.auth-card > .muted { font-size: 13px; }
.login-company { border-top: 1px solid #edf1f7; padding-top: 18px; font-size: 12px; }
.auth-card .form-grid { grid-template-columns: 1fr; }
.auth-card .form-foot { margin-top: 18px; }
.auth-card .form-foot .primary { width: 100%; min-height: 46px; }
#wecom-login { display: block; width: 100%; margin-top: 12px; background: #f7faff; color: #456da2; min-height: 43px; }
.auth-card .smalltext { font-size: 11px; margin-top: 17px; }

/* Customer-facing document: a clear company heading and quiet paper surface. */
.viewer { max-width: 880px; padding: 32px 28px 130px; }
.viewer-brand { padding: 10px 0 25px; border-color: #dce4ef; gap: 13px; }
.viewer-brand b { color: #172e4c; font-size: 17px; font-weight: 650; letter-spacing: .2px; line-height: 1.5; }
.viewer-header { padding: 31px 20px 28px; }
.viewer-header .eyebrow {
  display: inline-block;
  background: #e6edf8;
  color: #4c6c96;
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.viewer-header h1 { font-size: 30px; line-height: 1.4; font-weight: 650; margin-top: 8px; overflow-wrap: anywhere; }
.reader {
  background: #fff;
  border: 1px solid #e0e6f0;
  border-radius: 15px;
  box-shadow: 0 7px 28px rgba(22, 49, 88, .035);
  padding: 42px;
}
.reader h2 { font-size: 24px; color: #243c5a; }
.reader-body { color: #445d7c; font-size: 16px; line-height: 2; }
.pdf-reader { padding: 14px; min-height: 0; }
.pdf-reader .reader-body { line-height: 0; }
.article-reader h3 { color: #264364; font-size: 20px; }
.article-reader blockquote { border-color: #87a8d4; color: #506c90; background: #f3f7fc; border-radius: 0 8px 8px 0; }
.reader-nav { margin: 22px 0 16px; gap: 16px; }
.reader-nav button { background: #fff; border-color: #dce5f0; font-size: 13px; min-height: 42px; min-width: 108px; }
.reader-nav button:hover { background: #edf3fc; }
.reader-nav .muted { color: #5a6c82; font-size: 13px; font-variant-numeric: tabular-nums; }
.reader-footer { margin-top: 7px; }
.privacy-link { font-size: 10px; color: #5f6d7d; padding: 3px 2px; min-width: 28px; min-height: 24px; }
.privacy-link:hover { color: #3d689f; }
.consult-bar {
  width: min(880px, 100%);
  padding: 12px 28px calc(12px + env(safe-area-inset-bottom));
  border-color: #dbe4ef;
  background: rgba(246, 249, 253, .97);
  box-shadow: 0 -5px 20px rgba(37, 61, 93, .035);
  backdrop-filter: blur(8px);
}
.consult-bar .primary { border-radius: 11px; padding: 14px 20px; font-size: 15px; font-weight: 600; letter-spacing: .4px; min-height: 49px; }
.consult-bar .smalltext { color: #606e7f; font-size: 11px; }
.source-entry { color: #5a6d82; }
.source-entry a { border-radius: 9px; text-decoration: none; }
.reader-privacy { border-color: #dce5f1; border-radius: 16px; box-shadow: var(--shadow-dialog); }
.reader-privacy::backdrop { background: rgba(20, 38, 63, .38); }
.privacy-head { background: #f8faff; border-color: #e1e8f3; }
.privacy-body { color: #586d87; font-size: 13px; }
.privacy-controls [role="status"] { color: #586d87; }

/* Conversation and revision management retain their existing interaction. */
#advisor-open span { color: #416797; border-color: #dce6f4; box-shadow: 0 5px 18px #1d406012; }
#advisor-hide { color: #5b6e87; border-color: #dce5f1; }
#advisor-dialog { color: var(--ink); border-color: #dae4f2; border-radius: 20px; box-shadow: var(--shadow-dialog); }
#advisor-dialog::backdrop, .annotation-dialog::backdrop { background: rgba(20, 38, 63, .38); }
.advisor-head { background: #f2f6fd; border-color: #dfe8f5; }
.advisor-head h2 { color: #253e5d; }
.advisor-head span { color: #5c6c82; }
#advisor-close { color: #5b6e85; }
.advisor-disclosure { color: #5f6b7c; background: #fbfcfe; }
.advisor-message.assistant { background: #f0f4fb; border-color: #e0e8f5; color: #354e6e; }
.advisor-message.visitor { background: #3569b4; color: #fff; }
.advisor-message small { color: #5d6e82; }
.advisor-questions button { color: #496e9c; border-color: #dbe5f3; }
.advisor-sales button { color: #285fba; }
.advisor-sales span { color: #626c7c; }
#advisor-form { border-color: #e1e8f3; }
#advisor-input { border: 1px solid #d5e0ee; color: #334b67; }
#advisor-status { color: #7c684b; }
.annotation-share { border-color: #dce6f3; background: #fbfcff; border-radius: 12px; }
.annotation-card, .annotation-history { border-color: #e1e8f3; }
.annotation-reply { background: #eff4fc; color: #536c90; }
.annotation-page-preview { border-color: #dee7f3; color: #395571; }
.annotation-dialog { border-color: #dce5f1; border-radius: 16px; box-shadow: var(--shadow-dialog); }
.annotation-dialog-head { background: #f8faff; border-color: #e2e9f3; }
.annotation-dialog-body { color: #516c8e; }
#annotation-suggestion { border-color: #d4dfee; background: #fbfcfe; color: #28445f; }
.annotation-label { color: #3e5d82; }
.annotation-success { color: #2d7264; background: #e9f5ef; }
.annotation-item { border-color: #dee7f3; background: #fbfcff; }
.annotation-state { color: #89652d; background: #fff3d8; }
.annotation-state.modified { color: #416ca3; background: #e8f0fc; }
.annotation-state.confirmed { color: #297365; background: #e4f3ed; }
#annotation-tools { color: #48698e; border-color: #dce5f1; padding-top: 16px; padding-bottom: 16px; }
.annotation-version { color: #476c9b; }
.annotation-version-picker select { border-color: #d6e1f0; }
.annotation-hint { color: #5f6d7f; }
.annotation-selected-action { left: max(16px, calc((100vw - 880px) / 2 + 28px)); }

@media (min-width: 1600px) {
  .main { padding-top: 36px; }
  .grid { grid-template-columns: minmax(0, 1fr) 345px; }
}
@media (max-width: 1500px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .aside { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .aside-tip { margin-top: 0; }
  .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .sidebar { width: 205px; padding-left: 13px; padding-right: 13px; }
  .workspace { margin-left: 205px; }
  .topbar { padding: 0 24px; }
  .main { padding: 26px 24px 40px; }
  .status { gap: 10px; }
  .status #clock { display: none; }
  .aside { grid-template-columns: 1fr; gap: 18px; }
  .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .sidebar { width: 74px; padding: 25px 10px; }
  .workspace { margin-left: 74px; }
  .nav button { justify-content: center; padding: 13px 0; }
  .nav i { margin: 0; }
  .topbar { height: 60px; padding: 0 20px; }
  .main { padding: 25px 20px 35px; }
  .heading { gap: 16px; margin-bottom: 23px; }
  h1 { font-size: 24px; }
  .kpi { padding: 20px 19px; }
  .kpi-value { font-size: 28px; }
  .materials { grid-template-columns: 1fr; }
  .modal-header, .modal-body { padding: 21px 22px; }
  .viewer { padding: 24px 18px 125px; }
  .viewer-header { padding: 27px 10px 25px; }
  .viewer-header h1 { font-size: 27px; }
  .reader { padding: 30px; }
  .pdf-reader { padding: 9px; }
  .consult-bar { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 500px) {
  .shell { display: block; }
  .sidebar {
    position: sticky;
    width: 100%;
    background: rgba(247, 250, 255, .98);
    border-right: 0;
    border-bottom: 1px solid #dce6f3;
    padding: 7px 6px;
    backdrop-filter: blur(8px);
  }
  .nav { gap: 2px; align-items: stretch; }
  .nav button { padding: 10px 5px; min-height: 38px; border-radius: 7px; justify-content: center; flex: 1; }
  .nav button.active { box-shadow: none; background: #e6efff; }
  .nav .navlabel { font-size: 10px; line-height: 1.4; }
  .workspace { margin-left: 0; }
  .topbar { height: 52px; padding: 0 16px; }
  .crumb { font-size: 10px; }
  .mobile-system-brand { color: #315e9b; font-size: 11px; }
  .status .mini { padding: 5px 8px; font-size: 10px; }
  .main { padding: 23px 14px 30px; }
  h1 { font-size: 23px; margin-bottom: 10px; }
  .heading .muted { font-size: 12px; }
  .heading .actions { gap: 8px; }
  .heading .actions button { min-height: 42px; font-size: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .notice { padding: 11px 13px; font-size: 11px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 17px 16px; border-radius: 12px; }
  .kpi-label { font-size: 11px; margin-bottom: 10px; }
  .kpi-value { font-size: 27px; }
  .kpi small { font-size: 10px; line-height: 1.7; }
  .panel { border-radius: 12px; }
  .panel-head { padding: 19px 16px; }
  .panel-head h2 { font-size: 16px; }
  .panel-head span { font-size: 11px; }
  .filters { padding: 0 16px 16px; gap: 7px; }
  .filters input { flex-basis: 100%; min-width: 0; }
  .filters select { flex: 1 1 40%; max-width: none; }
  .filters input, .filters select { font-size: 16px; min-height: 42px; }
  #customer-table { overflow: visible; }
  #customer-table table { display: block; white-space: normal; }
  #customer-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  #customer-table tbody { display: block; }
  #customer-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px 12px;
    padding: 17px 16px;
    border-top: 1px solid #e4ebf5;
  }
  #customer-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    max-width: none;
    white-space: normal;
    font-size: 12px;
  }
  #customer-table td:first-child { grid-column: 1 / -1; grid-row: 1; min-width: 0; max-width: none; }
  #customer-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  #customer-table td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e5ecf7;
    border-radius: 8px;
    background: #f6f9ff;
  }
  #customer-table td:nth-child(4) { grid-column: 2; grid-row: 2; min-width: 0; }
  #customer-table td:last-child { grid-column: 1 / -1; grid-row: 4; min-width: 0; }
  #customer-table .company { font-size: 14px; }
  #customer-table .name-row .avatar { width: 34px; height: 34px; }
  #customer-table .smalltext { font-size: 11px; max-width: none; }
  #customer-table td:last-child .actions { display: flex; gap: 9px; }
  #customer-table td:last-child .actions button { flex: 1; min-height: 42px; font-size: 12px; }
  .task-list { padding: 0 16px; }
  .section-foot { padding: 13px 16px; font-size: 10px; }
  .aside-tip { padding: 20px; }
  .stage-card { padding: 18px 15px; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 10px; }
  .settings-body { padding: 19px 16px; }
  .settings-body .actions { gap: 8px; }
  .settings-body .actions button { font-size: 12px; max-width: 100%; white-space: normal; }
  .modal-backdrop { padding: 10px; }
  .modal { border-radius: 15px; max-height: calc(100dvh - 20px); }
  .modal-header, .modal-body { padding: 18px 17px; }
  .modal-header h2 { font-size: 16px; }
  .form-grid { gap: 15px; }
  .form-grid label { font-size: 12px; }
  .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }
  .form-foot button { min-height: 43px; }
  .detail-summary { padding: 17px; gap: 16px; }
  .detail-score { font-size: 34px; }
  .logged-out .main { padding-top: 17px; }
  .auth-card { margin: 8px auto; padding: 28px 22px; border-radius: 16px; }
  .auth-card h1 { font-size: 24px; }
  .auth-brand strong { font-size: 18px; }
  .viewer { padding: 15px 14px 119px; }
  .viewer-brand { padding: 9px 0 18px; gap: 8px; }
  .viewer-brand b { font-size: 14px; letter-spacing: 0; line-height: 1.65; }
  .viewer-header { padding: 23px 8px 23px; }
  .viewer-header .eyebrow { font-size: 10px; letter-spacing: .6px; padding: 4px 9px; }
  .viewer-header h1 { font-size: 25px; margin-top: 9px; }
  .reader { padding: 23px 20px; border-radius: 12px; }
  .reader h2 { font-size: 21px; margin-bottom: 21px; }
  .reader-body { font-size: 15px; line-height: 1.95; }
  .pdf-reader { padding: 5px; }
  .pdf-reader .reader-body { line-height: 0; }
  .article-reader { padding: 22px 18px; }
  .article-reader h3 { font-size: 18px; }
  .reader-nav { margin-top: 19px; gap: 10px; }
  .reader-nav button { font-size: 12px; min-width: 92px; min-height: 40px; padding: 9px 13px; }
  .reader-nav .muted { font-size: 12px; }
  .reader-footer { margin-top: 4px; }
  .privacy-link { color: #616c7b; font-size: 10px; padding-top: 3px; padding-bottom: 3px; }
  .consult-bar { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .consult-bar .primary { min-height: 48px; padding: 13px 14px; font-size: 14px; border-radius: 10px; }
  #annotation-tools { padding-top: 14px; padding-bottom: 14px; }
  .annotation-toolbar-row button { font-size: 11px; }
  .annotation-version-picker select { font-size: 16px; max-width: 175px; }
  #annotation-suggestion, #advisor-input { font-size: 16px; }
  .annotation-share { padding: 16px 13px; }
  .annotation-dialog-head, .annotation-dialog-body { padding: 16px; }
  .annotation-selected-action { left: 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .button-link { transition: none; }
}

/* Complete reader logo and a conventional privacy settings row. */
.viewer-brand.viewer-logo-only{padding:15px 0 24px;gap:0}
.viewer-logo-only .brand-full-logo{width:clamp(190px,42vw,260px);max-width:100%;aspect-ratio:3.6;background:transparent;border-radius:0}
.privacy-record-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #e1e8f3}
.privacy-record-label{font-size:13px;font-weight:500;color:#304b6a;min-width:0}
.privacy-record-label small{display:block;font-size:11px;color:#5f6d7d;font-weight:400;margin-top:3px}
.privacy-record-row #stop-tracking{flex-shrink:0;max-width:55%;min-height:44px;padding:8px 10px;border:0;background:transparent;color:#355f96;font-size:12px;white-space:normal;text-align:right}
.privacy-record-row #stop-tracking:hover{background:#f1f5fd}
.privacy-record-row #stop-tracking:disabled{opacity:1;color:#626d7b}
@media(max-width:500px){.viewer-brand.viewer-logo-only{padding:9px 0 20px}.viewer-logo-only .brand-full-logo{width:210px}.privacy-record-row{gap:10px}}

/* Text-only navigation stays visible on compact sidebars and mobile rows. */
@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar { position: sticky; top: 0; width: 100%; padding: 7px 6px; border-right: 0; border-bottom: 1px solid #dce6f3; }
  .workspace { margin-left: 0; }
  .nav { display: flex; justify-content: flex-start; align-items: stretch; gap: 2px; overflow-x: auto; }
  .nav button { flex: 1 0 auto; min-width: 56px; padding: 10px 5px; min-height: 38px; justify-content: center; }
  .nav .navlabel { display: inline; font-size: 11px; line-height: 1.4; }
}
/* Per-material WeChat share card settings and preview. */
.share-card-settings { margin: 22px 0 16px; padding: 18px; border: 1px solid #dce4f1; border-radius: 14px; background: #f8faff; }
.share-card-settings summary { color: #24456f; font-weight: 650; cursor: pointer; }
.share-card-settings > label { display: block; margin: 14px 0; }
.share-card-settings textarea { width: 100%; margin-top: 7px; }
.share-card-cover-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 14px 0; }
.share-card-cover-controls label { flex: 1 1 230px; }
.share-card-cover-controls input { margin-top: 7px; max-width: 100%; }
.share-card-preview { display: flex; gap: 18px; align-items: center; width: 100%; max-width: 520px; padding: 18px; border: 1px solid #d9e2ef; border-radius: 14px; background: #fff; margin: 16px 0; }
.share-card-copy { min-width: 0; flex: 1; }
.share-card-copy strong { display: block; color: #203654; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.share-card-copy p { margin: 7px 0 0; color: #687b95; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.share-card-preview img { flex: 0 0 80px; width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 7px; }
@media (max-width: 600px) { .share-card-settings { padding: 14px; } .share-card-preview { padding: 14px; gap: 12px; } .share-card-preview img { flex-basis: 68px; width: 68px; height: 68px; } }
