/* JianFa Unified Flat UI
   Single global stylesheet. Legacy structural declarations are isolated in a
   low-priority cascade layer; the unlayered modern rules remain authoritative. */

/* --- [Migrated] App Shell & Business Components --- */
@layer legacy-components {
  body.jianfa-app {
    --danger: #dc2626;
    --success: #059669;
  }

  body.jianfa-app, body.jianfa-app * {
    box-sizing: border-box;
  }

  body.jianfa-app {
    margin: 0;
    font: 14px/1.6 var(--font-sans);
    min-height: 100vh;
  }

  body.jianfa-app a {
    color: inherit;
  }

  body.jianfa-app button, body.jianfa-app .button {
    appearance: none;
    cursor: pointer;
    gap: 7px;
    font: 700 14px inherit;
    padding: 10px 16px;
    text-decoration: none;
    transition: .22s ease;
  }

  body.jianfa-app nav {
    align-items: center;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226,232,240,.9);
    display: flex;
    height: 76px;
    padding: 0 clamp(22px,4vw,72px);
    position: sticky;
    top: 0;
    z-index: 50;
  }

  body.jianfa-app .logo {
    color: var(--blue-deep);
    font: 800 21px/1 var(--font-sans);
    letter-spacing: .16em;
    text-decoration: none;
  }

  body.jianfa-app .logo:after {
    color: var(--gold);
    content: " / LEGAL TECH";
    font: 600 9px var(--font-sans);
    letter-spacing: .12em;
    margin-left: 8px;
  }

  body.jianfa-app .pills {
    display: flex;
    gap: 7px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
  }

  body.jianfa-app .pills a {
    font-size: 16px;
    font-weight: 800;
    min-width: 104px;
    padding: 11px 20px;
    text-align: center;
    text-decoration: none;
    transition: .2s;
  }

  body.jianfa-app .pills .on {
    box-shadow: 0 5px 14px rgba(15,23,42,.18);
  }

  body.jianfa-app .account {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    margin-left: auto;
  }

  body.jianfa-app .logout {
    padding: 7px 12px;
    text-decoration: none;
    transition: .2s;
  }

  body.jianfa-app .member-settings-link {
    position: relative;
  }

  body.jianfa-app .nav-badge {
    align-items: center;
    border-radius: var(--ui-radius-sm);
    color: #fff;
    display: inline-flex;
    font: 800 10px/1 var(--font-sans);
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 5px;
    position: absolute;
    right: -7px;
    top: -8px;
  }

  body.jianfa-app .pills .on .nav-badge {
    border-color: var(--ink);
  }

  body.jianfa-app main {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
    padding: 42px clamp(16px,3vw,32px) 72px;
  }

  body.jianfa-app header {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  body.jianfa-app h1, body.jianfa-app h2, body.jianfa-app h3, body.jianfa-app h4 {
    line-height: 1.25;
    margin: 0;
  }

  body.jianfa-app h1 {
    font: 700 clamp(28px,3vw,42px) var(--font-sans);
    letter-spacing: -.04em;
  }

  body.jianfa-app .eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    margin: 0 0 7px;
    text-transform: uppercase;
  }

  body.jianfa-app .muted {
    margin: 0;
  }

  body.jianfa-app .stats {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3,1fr);
    margin-bottom: 26px;
  }

  body.jianfa-app .stats article {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 142px;
    overflow: hidden;
    padding: 25px 28px;
    position: relative;
  }

  body.jianfa-app .stats article:after {
    background: radial-gradient(circle,#d8e3ec,transparent 68%);
    content: "";
    height: 160px;
    position: absolute;
    right: -40px;
    top: -70px;
    width: 160px;
  }

  body.jianfa-app .stats article:nth-child(2):after {
    background: radial-gradient(circle,#fee2e2,transparent 68%);
  }

  body.jianfa-app .stats article:nth-child(3):after {
    background: radial-gradient(circle,#fef3c7,transparent 68%);
  }

  body.jianfa-app .stats b {
    font-size: 43px;
    line-height: 1;
    letter-spacing: -.06em;
    position: relative;
    z-index: 1;
  }

  body.jianfa-app .stats .metric-label {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 8px;
    position: relative;
    z-index: 1;
  }

  body.jianfa-app .dashboard-panel {
    margin: 0 0 26px;
    padding: 26px;
  }

  body.jianfa-app .panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 22px;
    justify-content: space-between;
  }

  body.jianfa-app .panel-heading h2 {
    font: 700 23px var(--font-sans);
  }

  body.jianfa-app .conversion {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 25px;
    justify-content: center;
    line-height: 1;
    min-width: 140px;
    padding: 12px 18px;
    text-align: center;
  }

  body.jianfa-app .conversion small {
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 7px;
  }

  body.jianfa-app .dashboard-filters {
    align-items: end;
    background: var(--ui-surface);
    border: 1px solid var(--form-border);
    border-radius: var(--form-radius);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    margin: 0;
    padding: 16px;
  }

  body.jianfa-app .dashboard-filters label {
    color: var(--ui-text-soft);
    display: grid;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    text-align: left;
  }

  body.jianfa-app .dashboard-filters select,
  body.jianfa-app .dashboard-filters input:not([type="hidden"]) {
    margin: 0;
    min-height: var(--form-control-height);
    text-align: left;
    text-align-last: left;
    width: 100%;
  }

  body.jianfa-app .dashboard-filters button {
    margin-bottom: 0;
    min-height: var(--form-control-height);
    white-space: nowrap;
  }

  body.jianfa-app .analytics-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.25fr .75fr;
  }

  body.jianfa-app .analytics-card {
    padding: 18px;
  }

  body.jianfa-app .analytics-card h3 {
    font-size: 14px;
    margin-bottom: 15px;
  }

  body.jianfa-app .bar-row {
    display: grid;
    gap: 6px;
    margin: 11px 0;
  }

  body.jianfa-app .bar-row span {
    color: var(--muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
  }

  body.jianfa-app .bar-row span b {
    color: var(--ink);
  }

  body.jianfa-app .bar-row progress {
    appearance: none;
    background: transparent;
    border: 0;
    display: block;
    height: 8px;
    overflow: hidden;
    width: 100%;
  }

  body.jianfa-app .bar-row progress::-webkit-progress-bar {
    background: #dbe3ef;
    border-radius: 3px;
  }

  body.jianfa-app .bar-row progress::-webkit-progress-value,
  body.jianfa-app .bar-row progress::-moz-progress-bar {
    background: var(--ui-blue);
    border-radius: 2px;
  }

  body.jianfa-app .status-chart {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3,1fr);
  }

  body.jianfa-app .status-chart h3 {
    grid-column: 1/-1;
  }

  body.jianfa-app .status-chart div {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 14px 16px;
  }

  body.jianfa-app .status-chart b {
    font-size: 24px;
    line-height: 1;
  }

  body.jianfa-app .status-chart span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
  }

  body.jianfa-app .case-list {
    display: grid;
    gap: 12px;
  }

  body.jianfa-app .case {
    align-items: center;
    display: flex;
    gap: 16px;
    padding: 18px 21px;
    text-decoration: none;
    transition: .22s;
  }

  body.jianfa-app .case>span {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 50%;
    color: var(--success);
    display: flex;
    font-size: 16px;
    height: 34px;
    justify-content: center;
    width: 34px;
  }

  body.jianfa-app .case div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  body.jianfa-app .case small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.jianfa-app .case em {
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    margin-left: auto;
    padding: 6px 11px;
    white-space: nowrap;
  }

  body.jianfa-app .empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    color: var(--muted);
    padding: 52px;
    text-align: center;
  }

  body.jianfa-app .grid, body.jianfa-app .reports {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
  }

  body.jianfa-app .glass, body.jianfa-app .reports article {
    padding: 23px;
  }

  body.jianfa-app .grid .glass {
    min-height: 180px;
  }

  body.jianfa-app .grid h3, body.jianfa-app .reports h3 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  body.jianfa-app .grid h3:after, body.jianfa-app .reports h3:after {
    background: var(--gold);
    content: "";
    display: block;
    height: 2px;
    margin-top: 8px;
    width: 32px;
  }

  body.jianfa-app .grid p {
    line-height: 1.8;
  }

  body.jianfa-app .grid p b {
    color: var(--slate);
  }

  body.jianfa-app .flag {
    font-weight: 700;
    padding: 10px 12px;
  }

  body.jianfa-app .safe {
    font-weight: 700;
    padding: 10px 12px;
  }

  body.jianfa-app .risk-panel {
    margin-bottom: 18px;
  }

  body.jianfa-app .risk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }

  body.jianfa-app .risk-chips .flag, body.jianfa-app .risk-chips .safe {
    margin: 0;
  }

  body.jianfa-app .reports {
    align-items: stretch;
    grid-auto-rows: clamp(560px,72vh,760px);
  }

  body.jianfa-app .reports article {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
  }

  body.jianfa-app .paper {
    position: relative;
  }

  body.jianfa-app .paper:before {
    background: linear-gradient(90deg,var(--gold),transparent);
    content: "";
    height: 1px;
    left: 23px;
    position: absolute;
    right: 23px;
    top: 0;
  }

  body.jianfa-app .reports pre, body.jianfa-app pre {
    font: inherit;
    line-height: 1.8;
    white-space: pre-wrap;
  }

  body.jianfa-app .report-title {
    align-items: center;
    background: #f4f7fb;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0;
    min-height: 88px;
    padding: 18px 20px;
  }

  body.jianfa-app .report-title .button {
    font-size: 12px;
    padding: 7px 11px;
    white-space: nowrap;
  }

  body.jianfa-app .record {
    align-content: start;
    display: grid;
    flex: 1 1 auto;
    gap: 5px;
    line-height: 1.78;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px 24px;
    scrollbar-gutter: stable;
  }

  body.jianfa-app .record p {
    margin: 0;
  }

  body.jianfa-app .record-heading {
    border-left: 3px solid var(--blue);
    font-weight: 800;
    margin-top: 9px;
    padding: 8px 11px;
  }

  body.jianfa-app .risk-line {
    border-left: 3px solid var(--danger);
    font-weight: 800;
    padding: 8px 11px;
  }

  body.jianfa-app .quote-label {
    align-items: center;
    background: rgba(254,243,199,.8);
    border: 1px solid rgba(253,230,138,.5);
    border-radius: 4px;
    color: #92400e;
    display: inline-flex;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .025em;
    line-height: 1rem;
    margin: 0 4px;
    padding: 2px 6px;
    user-select: none;
    vertical-align: .08em;
    white-space: nowrap;
  }

  body.jianfa-app .party-quote {
    color: #5d431b;
    font-weight: 800;
    text-decoration-color: var(--gold);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }

  body.jianfa-app .audio-deck {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr;
    margin-bottom: 14px;
    overflow: hidden;
    padding: 14px 16px 16px;
  }

  body.jianfa-app .audio-deck small {
    display: block;
  }

  body.jianfa-app .audio-record-heading {
    align-items: center;
    border-bottom: 1px solid #cbd9ec;
    display: flex;
    gap: 12px;
    grid-column: 1/-1;
    justify-content: space-between;
    padding-bottom: 10px;
  }

  body.jianfa-app .audio-record-heading strong {
    color: var(--ui-blue-hover);
    font-size: 14px;
  }

  body.jianfa-app .audio-record-heading span {
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 700;
  }

  body.jianfa-app .audio-record-copy b {
    color: var(--ui-text);
  }

  body.jianfa-app .audio-play {
    background: #c5a880;
    border-radius: var(--radius-button);
    box-shadow: none;
    color: #0f172a;
    height: 38px;
    padding: 0;
    width: 38px;
  }

  body.jianfa-app .audio-play:hover {
    background: #ead7ae;
    transform: none;
  }

  body.jianfa-app .audio-deck input[type=range] {
    accent-color: #c5a880;
    grid-column: 1/-1;
    margin: 0;
    padding: 0;
  }

  body.jianfa-app .transcript-panel {
    margin-top: 15px;
  }

  body.jianfa-app .transcript-panel summary, body.jianfa-app .accordion-list summary {
    cursor: pointer;
    font-weight: 800;
  }

  body.jianfa-app .accordion-list {
    display: grid;
    gap: 8px;
  }

  body.jianfa-app .accordion-list details {
    padding: 10px 12px;
  }

  body.jianfa-app .accordion-list details[open] {
    background: #fffdf8;
    border-color: #ead7ae;
  }

  body.jianfa-app .accordion-list p {
    margin: 8px 0 0;
  }

  body.jianfa-app .case-analysis-row {
    display: block;
    margin-bottom: 18px;
    width: 100%;
  }

  body.jianfa-app .case-analysis-row>.glass {
    min-height: 180px;
    width: 100%;
  }

  body.jianfa-app .case-analysis-row h3 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  body.jianfa-app .case-analysis-row h3:after {
    background: var(--gold);
    content: "";
    display: block;
    height: 2px;
    margin-top: 8px;
    width: 32px;
  }

  body.jianfa-app .case-analysis-row p {
    line-height: 1.8;
  }

  body.jianfa-app .case-analysis-row p b {
    color: var(--slate);
  }

  body.jianfa-app .analysis-summary-grid {
    align-items: stretch;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  body.jianfa-app .analysis-summary-grid details {
    height: 100%;
    min-width: 0;
  }

  body.jianfa-app .analysis-summary-grid>.muted {
    grid-column: 1/-1;
  }

  @media(max-width:760px) {
    body.jianfa-app .analysis-summary-grid {
      grid-template-columns: minmax(0,1fr);
    }
  }

  body.jianfa-app .inline {
    align-items: center;
    display: inline-flex;
    gap: 8px;
  }

  body.jianfa-app .inline input, body.jianfa-app .inline select {
    margin: 0;
    width: auto;
  }

  body.jianfa-app .case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  body.jianfa-app .case-meta span {
    align-items: center;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--line);
    color: #475569;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    padding: 6px 10px;
    text-align: center;
  }

  body.jianfa-app .customer-identity-panel {
    background: var(--sidebar-primary);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    color: #fff;
    margin: 14px 0 18px;
    padding: 18px;
  }

  body.jianfa-app .customer-identity-panel > header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    text-align: center;
  }

  body.jianfa-app .customer-identity-panel > header > div {
    display: grid;
    gap: 5px;
    justify-items: center;
    width: 100%;
  }

  body.jianfa-app .customer-identity-panel h2,
  body.jianfa-app .customer-identity-panel .eyebrow {
    margin: 0;
  }

  body.jianfa-app .customer-identity-panel > header > span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--ui-radius);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    position: absolute;
    right: 0;
    top: 0;
  }

  body.jianfa-app .customer-identity-panel form,
  body.jianfa-app .customer-identity-values {
    align-items: end;
    background: var(--ui-surface-muted);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--ui-radius);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
    padding: 14px;
  }

  body.jianfa-app .customer-identity-panel label {
    color: var(--ui-text-soft);
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
  }

  body.jianfa-app .customer-identity-panel input {
    margin: 0;
  }

  body.jianfa-app .customer-identity-panel button {
    min-height: 44px;
    white-space: nowrap;
  }

  body.jianfa-app .customer-identity-values {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  body.jianfa-app .customer-identity-values article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--ui-radius);
    display: grid;
    gap: 5px;
    padding: 14px 16px;
  }

  body.jianfa-app .customer-identity-values small {
    color: var(--muted);
    font-size: 11px;
  }

  body.jianfa-app .customer-identity-values strong {
    color: var(--slate);
    font-size: 17px;
  }

  body.jianfa-app .customer-identity-panel > p {
    font-size: 11px;
    margin: 12px 0 0;
    text-align: center;
  }

  body.jianfa-app .workflow {
    margin: 18px 0;
  }

  body.jianfa-app .workflow h3 {
    margin-bottom: 4px;
  }

  body.jianfa-app .workflow-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4,1fr);
    margin: 16px 0;
  }

  body.jianfa-app .step, body.jianfa-app .archive-item {
    color: var(--muted);
    padding: 12px;
  }

  body.jianfa-app .step.on {
    background: linear-gradient(135deg,#eef3f7,#fffdf6);
    border-color: #c3d2de;
    color: #102f50;
    font-weight: 800;
  }

  body.jianfa-app .upload-grid, body.jianfa-app .archive-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
  }

  body.jianfa-app .upload-grid label {
    color: var(--slate);
    font-weight: 800;
  }

  body.jianfa-app .archive-item a {
    color: #102f50;
    display: block;
    font-weight: 800;
    margin-top: 5px;
    text-decoration: none;
  }

  body.jianfa-app .approval {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 16px;
  }

  body.jianfa-app .approval h4 {
    margin-bottom: 9px;
  }

  body.jianfa-app .table {
    margin-bottom: 18px;
  }

  body.jianfa-app .table h3 {
    margin-bottom: 13px;
  }

  body.jianfa-app .table form {
    align-items: center;
    display: flex;
    gap: 6px;
  }

  body.jianfa-app .table form input, body.jianfa-app .table form select {
    margin: 0;
    min-width: 120px;
  }

  body.jianfa-app .table form button {
    font-size: 12px;
    padding: 8px 10px;
  }

  body.jianfa-app input, body.jianfa-app select, body.jianfa-app textarea {
    background: rgba(255,255,255,.92);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--ink);
    font: inherit;
    margin: 7px 0;
    outline: none;
    padding: 11px 12px;
    transition: .2s;
    width: 100%;
  }

  body.jianfa-app input:focus, body.jianfa-app select:focus, body.jianfa-app textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,168,128,.18);
  }

  body.jianfa-app .back-link {
    margin: -9px 0 20px;
    padding: 8px 12px;
    text-decoration: none;
    transition: .2s;
  }

  body.jianfa-app .client-report-editor {
    background: linear-gradient(135deg,#fffdf8,#f8fafc);
    border: 1px solid #ead7ae;
    border-radius: 12px;
    display: grid;
    flex: 1 1 auto;
    gap: 8px;
    margin: 18px 20px 24px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
  }

  body.jianfa-app .client-report-editor label {
    color: #805f23;
    font-weight: 800;
  }

  body.jianfa-app .client-report-editor textarea {
    background: #fff;
    min-height: 420px;
  }

  body.jianfa-app .client-report-editor button {
    justify-self: start;
  }

  body.jianfa-app dialog {
    padding: 25px;
    width: min(480px,92vw);
  }

  body.jianfa-app dialog form {
    display: grid;
    gap: 12px;
  }

  body.jianfa-app dialog form > label {
    color: var(--ui-text-soft);
    display: grid;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
  }

  body.jianfa-app .plain {
    box-shadow: none;
  }

  body.jianfa-app .plain:hover {
    transform: none;
  }

  body.jianfa-app .table {
    overflow: auto;
  }

  body.jianfa-app .table table {
    border-collapse: collapse;
    width: 100%;
  }

  body.jianfa-app .table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  body.jianfa-app .table th, body.jianfa-app .table td {
    border-bottom: 1px solid var(--line);
    padding: 13px;
    text-align: left;
  }

  body.jianfa-app .table tr:last-child td {
    border-bottom: 0;
  }

  @media(max-width:900px) {
    body.jianfa-app nav {
      padding: 0 20px;
    }

    body.jianfa-app .account span {
      display: none;
    }

    body.jianfa-app .pills a {
      font-size: 14px;
      min-width: 84px;
      padding: 10px 13px;
    }

    body.jianfa-app .workflow-grid {
      grid-template-columns: 1fr 1fr;
    }

    body.jianfa-app .dashboard-filters {
      grid-template-columns: 1fr 1fr;
    }

    body.jianfa-app .analytics-grid {
      grid-template-columns: 1fr;
    }
  }

  @media(max-width:680px) {
    body.jianfa-app nav {
      height: 64px;
    }

    body.jianfa-app .logo {
      font-size: 17px;
    }

    body.jianfa-app .logo:after {
      display: none;
    }

    body.jianfa-app .pills {
      gap: 2px;
      left: auto;
      margin-left: 13px;
      position: static;
      transform: none;
    }

    body.jianfa-app .pills a {
      font-size: 12px;
      min-width: 0;
      padding: 8px;
    }

    body.jianfa-app .logout {
      font-size: 12px;
      padding: 6px 8px;
    }

    body.jianfa-app main {
      padding: 28px 16px 48px;
    }

    body.jianfa-app .stats, body.jianfa-app .grid, body.jianfa-app .reports, body.jianfa-app .upload-grid, body.jianfa-app .archive-grid, body.jianfa-app .dashboard-filters {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .stats article {
      min-height: 120px;
    }

    body.jianfa-app .panel-heading {
      flex-direction: column;
    }

    body.jianfa-app .conversion {
      align-items: flex-start;
      width: 100%;
    }

    body.jianfa-app .analytics-grid {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .case {
      align-items: flex-start;
      padding: 15px;
    }

    body.jianfa-app .case em {
      margin-left: 0;
    }

    body.jianfa-app .case-list .case {
      flex-wrap: wrap;
    }

    body.jianfa-app .case div {
      width: calc(100% - 54px);
    }

    body.jianfa-app .case-meta {
      gap: 6px;
    }

    body.jianfa-app .customer-identity-panel > header {
      align-items: center;
      flex-direction: column;
      gap: 9px;
    }

    body.jianfa-app .customer-identity-panel > header > span {
      position: static;
    }

    body.jianfa-app .customer-identity-panel form,
    body.jianfa-app .customer-identity-values {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .customer-identity-panel button {
      width: 100%;
    }

    body.jianfa-app .workflow-grid {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .report-title {
      align-items: flex-start;
      flex-direction: column;
    }

    body.jianfa-app .client-report-editor textarea {
      min-height: 300px;
    }

  }

  body.jianfa-app .account-profile {
    align-items: center;
    border: 1px solid transparent;
    color: var(--muted);
    display: flex;
    gap: 8px;
    padding: 5px 8px;
    text-decoration: none;
    transition: .2s;
  }

  body.jianfa-app .account-profile:hover, body.jianfa-app .account-profile.on {
    border-color: #d8e3ec;
  }

  body.jianfa-app .account-profile img, body.jianfa-app .account-avatar {
    border-radius: 50%;
    display: grid;
    height: 32px;
    object-fit: cover;
    place-items: center;
    width: 32px;
  }

  body.jianfa-app .account-avatar {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }

  body.jianfa-app .account-copy {
    display: grid;
    gap: 0;
    line-height: 1.15;
  }

  body.jianfa-app .account-copy b {
    font-size: 12px;
  }

  body.jianfa-app .account-copy small {
    font-size: 10px;
  }

  body.jianfa-app .preset-1 {
    background: linear-gradient(135deg,#0f172a,#274e70);
  }

  body.jianfa-app .preset-2 {
    background: linear-gradient(135deg,#0f766e,#34d399);
  }

  body.jianfa-app .preset-3 {
    background: linear-gradient(135deg,#92400e,#f59e0b);
  }

  body.jianfa-app .preset-4 {
    background: linear-gradient(135deg,#7c2d12,#fb7185);
  }

  body.jianfa-app .preset-5 {
    background: linear-gradient(135deg,#4c1d95,#a78bfa);
  }

  body.jianfa-app .preset-6 {
    background: linear-gradient(135deg,#334155,#94a3b8);
  }

  body.jianfa-app .notice-success, body.jianfa-app .notice-error {
    font-weight: 700;
    margin: 0 0 18px;
    padding: 11px 14px;
  }

  body.jianfa-app .subscription-panel {
    margin: 0 0 26px;
    padding: 26px;
  }

  body.jianfa-app .subscription-heading {
    align-items: flex-start;
    display: flex;
    gap: 22px;
    justify-content: space-between;
  }

  body.jianfa-app .subscription-heading h2 {
    font: 700 23px var(--font-sans);
  }

  body.jianfa-app .token-card {
    color: #fff;
    display: grid;
    min-width: 220px;
    padding: 15px 17px;
  }

  body.jianfa-app .token-card small, body.jianfa-app .token-card span {
    color: #cbd5e1;
  }

  body.jianfa-app .token-card b {
    font-size: 28px;
    letter-spacing: -.05em;
    line-height: 1.2;
  }

  body.jianfa-app .token-card progress, body.jianfa-app .profile-token progress {
    appearance: none;
    background: rgba(255,255,255,.15);
    border: 0;
    border-radius: var(--ui-radius-sm);
    display: block;
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    width: 100%;
  }

  body.jianfa-app .token-card progress::-webkit-progress-bar,
  body.jianfa-app .profile-token progress::-webkit-progress-bar {
    background: rgba(255,255,255,.15);
  }

  body.jianfa-app .token-card progress::-webkit-progress-value,
  body.jianfa-app .token-card progress::-moz-progress-bar,
  body.jianfa-app .profile-token progress::-webkit-progress-value,
  body.jianfa-app .profile-token progress::-moz-progress-bar {
    background: linear-gradient(90deg,#c5a880,#f4dfac);
    border-radius: inherit;
  }

  body.jianfa-app .plan-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3,minmax(0,1fr));
    margin-top: 20px;
  }

  body.jianfa-app .plan-card {
    display: flex;
    flex-direction: column;
    min-height: 265px;
    padding: 18px;
    transition: .2s;
  }

  body.jianfa-app .plan-card:hover {
    border-color: var(--gold);
    box-shadow: 0 14px 30px rgba(15,23,42,.1);
    transform: translateY(-2px);
  }

  body.jianfa-app .plan-card.current {
    border-color: #c3d2de;
  }

  body.jianfa-app .plan-level {
    background: #fff7ed;
    color: #9a631c;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    width: max-content;
  }

  body.jianfa-app .plan-card h3 {
    font-size: 17px;
    margin-top: 10px;
  }

  body.jianfa-app .plan-card p {
    color: var(--muted);
    font-size: 12px;
    margin: 5px 0;
  }

  body.jianfa-app .plan-price {
    font-size: 25px;
    margin: 7px 0;
  }

  body.jianfa-app .plan-card ul {
    color: #475569;
    font-size: 12px;
    margin: 4px 0 15px;
    padding-left: 18px;
  }

  body.jianfa-app .plan-card form {
    margin-top: auto;
  }

  body.jianfa-app .plan-card button {
    font-size: 12px;
    padding: 9px;
    width: 100%;
  }

  body.jianfa-app .profile-header {
    align-items: flex-start;
  }

  body.jianfa-app .profile-overview {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 1.2fr .7fr .8fr;
    margin-bottom: 20px;
    padding: 25px;
  }

  body.jianfa-app .profile-identity {
    align-items: center;
    display: flex;
    gap: 16px;
  }

  body.jianfa-app .profile-identity h2 {
    font: 700 26px var(--font-sans);
  }

  body.jianfa-app .profile-identity p {
    color: var(--muted);
    margin: 4px 0 0;
  }

  body.jianfa-app .profile-avatar {
    border: 3px solid rgba(197,168,128,.7);
    border-radius: 50%;
    color: #fff;
    display: grid;
    flex: 0 0 auto;
    font-size: 31px;
    font-weight: 800;
    height: 78px;
    object-fit: cover;
    place-items: center;
    width: 78px;
  }

  body.jianfa-app .profile-token, body.jianfa-app .profile-plan {
    border-left: 1px solid var(--line);
    display: grid;
    gap: 3px;
    padding-left: 22px;
  }

  body.jianfa-app .profile-token small, body.jianfa-app .profile-plan small {
    color: var(--muted);
    font-weight: 700;
  }

  body.jianfa-app .profile-token strong {
    font-size: 30px;
    letter-spacing: -.06em;
    line-height: 1;
  }

  body.jianfa-app .profile-token span, body.jianfa-app .profile-plan span {
    color: var(--muted);
    font-size: 12px;
  }

  body.jianfa-app .profile-plan b {
    font-size: 17px;
  }

  body.jianfa-app .profile-plan a {
    color: #102f50;
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
    text-decoration: none;
  }

  body.jianfa-app .profile-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  body.jianfa-app .profile-card {
    padding: 23px;
  }

  body.jianfa-app .profile-card h2 {
    font: 700 19px var(--font-sans);
    margin-bottom: 15px;
  }

  body.jianfa-app .profile-card form {
    display: grid;
    gap: 4px;
  }

  body.jianfa-app .profile-card label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
  }

  body.jianfa-app .profile-card textarea {
    min-height: 110px;
  }

  body.jianfa-app .avatar-presets {
    display: flex;
    gap: 11px;
    margin: 10px 0;
  }

  body.jianfa-app .avatar-presets label {
    cursor: pointer;
  }

  body.jianfa-app .avatar-presets input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
  }

  body.jianfa-app .avatar-presets input:checked + .profile-avatar {
    box-shadow: 0 0 0 3px #d8e3ec,0 0 0 5px #173b63;
  }

  body.jianfa-app .profile-avatar.mini {
    font-size: 17px;
    height: 42px;
    width: 42px;
  }

  body.jianfa-app .level-list {
    display: grid;
    gap: 8px;
  }

  body.jianfa-app .level-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 34px 70px 1fr auto;
    padding: 9px 10px;
  }

  body.jianfa-app .level-row.selected {
    background: #fffbeb;
    border-color: #ead7ae;
  }

  body.jianfa-app .level-row>b {
    color: #102f50;
  }

  body.jianfa-app .level-row em {
    color: #805f23;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
  }

  body.jianfa-app .level-row small {
    grid-column: 3/-1;
  }

  @media(max-width:1050px) {
    body.jianfa-app .plan-grid {
      grid-template-columns: repeat(2,minmax(0,1fr));
    }

    body.jianfa-app .profile-overview {
      grid-template-columns: 1fr 1fr;
    }

    body.jianfa-app .profile-plan {
      border-left: 0;
      border-top: 1px solid var(--line);
      grid-column: 1/-1;
      padding: 15px 0 0;
    }

    body.jianfa-app .subscription-heading {
      flex-direction: column;
    }

    body.jianfa-app .token-card {
      width: 100%;
    }
  }

  @media(max-width:680px) {
    body.jianfa-app .account-copy {
      display: none;
    }

    body.jianfa-app .account-profile {
      padding: 3px;
    }

    body.jianfa-app .plan-grid, body.jianfa-app .profile-grid, body.jianfa-app .profile-overview {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .profile-token, body.jianfa-app .profile-plan {
      border-left: 0;
      border-top: 1px solid var(--line);
      padding: 15px 0 0;
    }

    body.jianfa-app .profile-plan {
      grid-column: auto;
    }

    body.jianfa-app .level-row {
      grid-template-columns: 30px 1fr auto;
    }

    body.jianfa-app .level-row small {
      grid-column: 2/-1;
    }
  }

  body.jianfa-app .case-overview {
    margin-bottom: 16px;
  }

  body.jianfa-app .overview-card {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 112px;
    overflow: hidden;
    padding: 20px 24px;
    position: relative;
    text-decoration: none;
    transition: .22s;
  }

  body.jianfa-app .overview-card:after {
    background: radial-gradient(circle,#d8e3ec,transparent 68%);
    content: "";
    height: 160px;
    position: absolute;
    right: -40px;
    top: -70px;
    width: 160px;
  }

  body.jianfa-app .overview-card:nth-child(3):after {
    background: radial-gradient(circle,#fef3c7,transparent 68%);
  }

  body.jianfa-app .overview-card:hover, body.jianfa-app .overview-card.selected {
    border-color: rgba(197,168,128,.85);
    box-shadow: 0 17px 38px rgba(15,23,42,.14);
    transform: translateY(-2px);
  }

  body.jianfa-app .overview-card b, body.jianfa-app .overview-card .metric-label {
    position: relative;
    z-index: 1;
  }

  body.jianfa-app .overview-card b {
    color: var(--ink);
    font-size: 43px;
    letter-spacing: -.06em;
    line-height: 1;
  }

  body.jianfa-app .overview-card .metric-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 8px;
  }

  body.jianfa-app .danger-overview:after {
    background: radial-gradient(circle,#fee2e2,transparent 68%);
  }

  body.jianfa-app .danger-overview.selected b, body.jianfa-app .danger-overview.selected .metric-label {
    color: #be123c;
  }

  body.jianfa-app .case-toolbar {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    color: var(--ui-text);
    margin: 0 0 16px;
    padding: 18px 20px;
  }

  body.jianfa-app .case-toolbar h2 {
    color: var(--ui-text);
    font: 700 22px var(--font-sans);
  }

  body.jianfa-app .case-toolbar .dashboard-filters {
    background: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    margin: 16px 0 0;
    padding: 0;
  }

  body.jianfa-app .case.high, body.jianfa-app .case.high b, body.jianfa-app .case.high small, body.jianfa-app .case.high em, body.jianfa-app .case.high>span {
    color: #b91c1c;
  }

  body.jianfa-app .case.high {
    background: linear-gradient(100deg,#fff7f7,#fff1f2);
  }

  body.jianfa-app .case.high:hover {
    border-color: #ef4444;
    box-shadow: 0 16px 36px rgba(185,28,28,.16);
  }

  body.jianfa-app .case.high em {
    background: #fee2e2;
    border: 1px solid #fecaca;
  }

  body.jianfa-app .case.high>span {
    background: #fff;
    border-color: #fca5a5;
  }

  @media(max-width:1100px) {
    body.jianfa-app .case-toolbar .dashboard-filters {
      grid-template-columns: repeat(2,minmax(0,1fr));
    }
  }

  @media(max-width:680px) {
    body.jianfa-app .case-toolbar .dashboard-filters {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .overview-card {
      min-height: 116px;
    }
  }

  body.jianfa-app .dialog-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }

  body.jianfa-app .upload-status {
    background: #eef3f7;
    border: 1px solid #c3d2de;
    border-radius: 9px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
    margin: 3px 0 0;
    padding: 9px 11px;
  }

  body.jianfa-app button:disabled, body.jianfa-app .button:disabled {
    cursor: wait;
    filter: saturate(.55);
    opacity: .72;
    pointer-events: none;
    transform: none;
  }

  @media(max-width:680px) {
    body.jianfa-app .dialog-actions {
      grid-template-columns: 1fr;
    }
  }

  body.jianfa-app .upload-quota {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    margin: 3px 0;
    padding: 9px 11px;
  }

  body.jianfa-app .case-uploading {
    background: linear-gradient(100deg,#eef3f7,#fff);
    border-color: #9fb4c5;
  }

  body.jianfa-app .case-uploading>.case-main>span {
    background: #d8e3ec;
    border-color: #9fb4c5;
    color: #102f50;
  }

  body.jianfa-app .case-uploading>em {
    background: #d8e3ec;
    color: #102f50;
  }

  body.jianfa-app .case-upload-failed {
    background: linear-gradient(100deg,#fff1f2,#fff);
    border-color: #fecaca;
  }

  body.jianfa-app .case-upload-failed>em {
    background: #fee2e2;
    color: #be123c;
  }

  body.jianfa-app .case-upload-failed .case-ai-status {
    background: #fff1f2;
    border-color: #fecaca;
    color: #be123c;
  }

  body.jianfa-app .account {
    gap: 10px;
  }

  body.jianfa-app .account-action {
    font-size: 12px;
    height: 34px;
    padding: 0 8px;
    text-decoration: none;
    transition: .2s;
    white-space: nowrap;
    width: 64px;
  }

  body.jianfa-app .account-action:hover, body.jianfa-app .account-action.on {
    background: #eef3f7;
    border-color: #c3d2de;
    color: #102f50;
  }

  body.jianfa-app .account-action.logout:hover {
    background: #fff1f2;
    border-color: #fecaca;
    color: #be123c;
  }

  body.jianfa-app .profile-account-card {
    grid-column: 1/-1;
  }

  body.jianfa-app .profile-account-fields {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
  }

  body.jianfa-app .profile-account-fields section {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  body.jianfa-app .profile-account-fields h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  body.jianfa-app .profile-account-fields .muted {
    font-size: 12px;
    margin-bottom: 4px;
  }

  body.jianfa-app .profile-account-card>form>button {
    justify-self: end;
    margin-top: 10px;
    min-width: 150px;
  }

  body.jianfa-app .button-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
  }

  body.jianfa-app .button-group form {
    display: flex;
    margin: 0;
  }

  body.jianfa-app .button-group button, body.jianfa-app .button-group .button {
    font-size: 12px;
    min-height: 36px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  body.jianfa-app .case-actions {
    align-self: flex-end;
    flex-wrap: nowrap;
    margin-left: auto;
    max-width: none;
  }

  body.jianfa-app .case-actions form {
    gap: 7px;
  }

  body.jianfa-app .case-actions button,
  body.jianfa-app .case-actions select {
    box-sizing: border-box;
    font-family: var(--font-sans) !important;
    font-size: 13px;
    font-weight: 700;
    height: 44px;
    line-height: 1;
    margin: 0;
    min-height: 44px;
    padding: 0 12px;
    text-align: center;
    width: 112px;
  }

  body.jianfa-app .case-actions select {
    appearance: none;
    background: var(--ui-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center / 12px 8px no-repeat !important;
    border-color: var(--ui-blue) !important;
    color: #fff !important;
    padding-right: 30px;
    text-align-last: center;
  }

  body.jianfa-app .case-actions select:hover,
  body.jianfa-app .case-actions select:focus {
    background-color: var(--ui-blue-hover) !important;
    border-color: var(--ui-blue-hover) !important;
    color: #fff !important;
  }

  body.jianfa-app .case-main {
    align-items: center;
    color: inherit;
    display: flex;
    flex: 1;
    gap: 16px;
    min-width: 0;
    text-decoration: none;
  }

  body.jianfa-app .case-main>span {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 50%;
    color: var(--success);
    display: flex;
    flex: 0 0 auto;
    font-size: 16px;
    height: 34px;
    justify-content: center;
    width: 34px;
  }

  body.jianfa-app .case-main>div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  body.jianfa-app .case-main b {
    font-size: 14px;
  }

  body.jianfa-app .case-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.jianfa-app .case.high .case-main>span {
    background: #fff;
    border-color: #fca5a5;
    color: #b91c1c;
  }

  body.jianfa-app .case .case-row-actions {
    display: flex;
    flex: 0 0 auto;
    margin-left: 2px;
    width: auto;
  }

  body.jianfa-app .case-row-actions .button {
    box-shadow: none;
  }

  body.jianfa-app .case>em {
    margin-left: auto;
  }

  body.jianfa-app .case-ai-status i {
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34,197,94,.14);
    flex: 0 0 auto;
    height: 7px;
    width: 7px;
  }

  body.jianfa-app .case-ai-status.is-active i {
    animation: status-pulse 1.4s ease-in-out infinite;
    background: #173b63;
    box-shadow: 0 0 0 3px rgba(23, 59, 99,.14);
  }

  body.jianfa-app .case-ai-status.is-finished {
    color: #047857;
  }

  body.jianfa-app .case-ai-status[data-processing-stage="failed"] i {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.14);
  }

  body.jianfa-app .case-ai-status.just-updated {
    color: #047857;
    font-weight: 800;
  }

  @keyframes status-pulse {
    0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1.12)}
  }

  @media(max-width:900px) {
    body.jianfa-app .account-profile {
      display: none;
    }

    body.jianfa-app .account {
      gap: 6px;
    }

    body.jianfa-app .case-header {
      align-items: stretch;
      flex-direction: column;
    }

    body.jianfa-app .case-actions {
      align-self: flex-end;
      margin-left: 0;
      max-width: none;
    }
  }

  @media(max-width:680px) {

    body.jianfa-app .account-action {
      font-size: 11px;
      height: 32px;
      width: 56px;
    }

    body.jianfa-app .profile-account-fields {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .profile-account-card>form>button {
      justify-self: stretch;
    }

    body.jianfa-app .case {
      align-items: flex-start;
    }

    body.jianfa-app .case-main {
      width: 100%;
    }

    body.jianfa-app .case>em {
      margin-left: 50px;
    }

    body.jianfa-app .case-row-actions {
      margin-left: auto;
    }

    body.jianfa-app .case-actions {
      flex-wrap: wrap;
      justify-content: flex-start;
      width: 100%;
    }
  }

  body.jianfa-app .danger-dialog {
    background: #fff;
    border: 0;
    border-radius: var(--radius-card);
    box-shadow: 0 30px 90px rgba(15,23,42,.34);
    max-width: 520px;
    overflow: hidden;
    padding: 0;
    width: calc(100% - 32px);
  }

  body.jianfa-app .danger-dialog::backdrop {
    backdrop-filter: blur(7px);
    background: rgba(15,23,42,.62);
  }

  body.jianfa-app .danger-dialog form {
    display: grid;
    gap: 0;
    grid-template-columns: 62px 1fr;
    padding: 28px;
  }

  body.jianfa-app .danger-dialog-icon {
    align-items: center;
    display: flex;
    font-size: 30px;
    font-weight: 900;
    height: 52px;
    justify-content: center;
    width: 52px;
  }

  body.jianfa-app .danger-dialog-copy {
    min-width: 0;
  }

  body.jianfa-app .danger-dialog-copy .eyebrow {
    color: #dc2626;
    margin-bottom: 5px;
  }

  body.jianfa-app .danger-dialog-copy h2 {
    font: 700 23px var(--font-sans);
    margin-bottom: 10px;
  }

  body.jianfa-app .danger-dialog-copy p {
    color: #475569;
    line-height: 1.75;
    margin: 0;
  }

  body.jianfa-app .danger-dialog-copy strong {
    color: #0f172a;
  }

  body.jianfa-app .danger-dialog-warning {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: var(--ui-radius);
    color: #be123c;
    font-size: 12px;
    font-weight: 800;
    margin-top: 14px;
    padding: 9px 11px;
  }

  body.jianfa-app .danger-dialog-actions {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    grid-column: 1/-1;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
  }

  body.jianfa-app .danger-dialog-actions button {
    min-width: 112px;
  }

  body.jianfa-app .danger-dialog-actions .danger {
    box-shadow: 0 9px 22px rgba(220,38,38,.25);
  }

  @media(max-width:560px) {
    body.jianfa-app .danger-dialog form {
      grid-template-columns: 1fr;
      padding: 22px;
    }

    body.jianfa-app .danger-dialog-icon {
      margin-bottom: 14px;
    }

    body.jianfa-app .danger-dialog-actions {
      flex-direction: column-reverse;
    }

    body.jianfa-app .danger-dialog-actions button {
      width: 100%;
    }
  }

  body.jianfa-app .report-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  body.jianfa-app .report-actions button, body.jianfa-app .report-actions .button {
    padding: 7px 11px;
    white-space: nowrap;
  }

  body.jianfa-app .client-editor-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.jianfa-app .client-report-editor .client-editor-actions button {
    justify-self: auto;
  }

  body.jianfa-app .reports .report-title:after {
    content: none;
  }

  body.jianfa-app .report-title>.report-actions {
    justify-content: flex-end;
    margin-left: auto;
  }

  body.jianfa-app .report-actions button, body.jianfa-app .report-actions .button {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    min-height: 36px;
  }

  @media(max-width:680px) {
    body.jianfa-app .report-actions {
      width: 100%;
    }

    body.jianfa-app .report-actions button, body.jianfa-app .report-actions .button {
      flex: 1;
    }

    body.jianfa-app .client-editor-actions {
      align-items: stretch;
      flex-direction: column;
    }

    body.jianfa-app .client-editor-actions button {
      width: 100%;
    }
  }

  body.jianfa-app .case-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  body.jianfa-app .case-summary-line {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    width: auto;
  }

  body.jianfa-app .case-summary-line>small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.jianfa-app .case-ai-status {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
    line-height: 1;
    padding: 5px 8px;
  }

  body.jianfa-app .case-ai-status.is-active {
    background: #eef3f7;
    border-color: #c3d2de;
    color: #102f50;
  }

  body.jianfa-app .case-ai-status[data-processing-stage="failed"] {
    background: #fff1f2;
    border-color: #fecaca;
    color: #be123c;
  }

  body.jianfa-app .member-card-list {
    display: grid;
  }

  body.jianfa-app .member-card {
    overflow: hidden;
    transition: .2s;
  }

  body.jianfa-app .member-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(15,23,42,.08);
  }

  body.jianfa-app .member-card.is-pending {
    border-color: #c3d2de;
    box-shadow: 0 7px 22px rgba(23, 59, 99,.08);
  }

  body.jianfa-app .member-card-header {
    align-items: center;
    background: linear-gradient(100deg,#fff,#f8fafc);
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    margin: 0;
    padding: 17px 20px;
  }

  body.jianfa-app .member-identity {
    align-items: center;
    display: flex;
  }

  body.jianfa-app .member-avatar {
    align-items: center;
    background: linear-gradient(135deg,#0b1f3a,#173b63);
    color: #fff;
    display: flex;
    font-size: 17px;
    font-weight: 900;
    justify-content: center;
  }

  body.jianfa-app .member-identity h4 {
    margin: 0 0 2px;
  }

  body.jianfa-app .member-identity p {
    color: #475569;
    margin: 0;
  }

  body.jianfa-app .member-identity small {
    display: block;
    margin-top: 2px;
  }

  body.jianfa-app .member-card-status {
    display: flex;
    flex-direction: column;
  }

  body.jianfa-app .approval-type-badge {
    align-items: center;
    border-radius: var(--ui-radius);
    display: inline-flex;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    padding: 5px 8px;
    width: max-content;
  }

  body.jianfa-app .approval-type-badge.is-normal {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
  }

  body.jianfa-app .approval-type-badge.is-override {
    background: #faf5ff;
    border: 1px solid #d8b4fe;
    color: #6b21a8;
  }

  body.jianfa-app .approval-audit-panel {
    margin-top: 18px;
    padding: 0;
  }

  body.jianfa-app .approval-audit-heading {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 20px 22px 15px;
  }

  body.jianfa-app .approval-audit-heading::-webkit-details-marker {
    display: none;
  }

  body.jianfa-app .approval-audit-panel[open] .approval-audit-heading {
    border-bottom: 1px solid var(--line);
  }

  body.jianfa-app .approval-audit-heading h3 {
    margin: 2px 0 0;
  }

  body.jianfa-app .approval-audit-summary-meta {
    align-items: center;
    display: flex;
    gap: 12px;
  }

  body.jianfa-app .approval-audit-note {
    color: #64748b;
    font-size: 9px;
  }

  body.jianfa-app .approval-audit-summary-meta>b {
    align-items: center;
    background: var(--ui-blue-soft);
    border: 1px solid #d6ddf7;
    border-radius: var(--ui-radius);
    color: var(--sidebar-primary);
    display: inline-flex;
    font-size: 10px;
    gap: 7px;
    min-width: 78px;
    padding: 7px 10px;
  }

  body.jianfa-app .approval-audit-summary-meta>b::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    height: 6px;
    margin-left: auto;
    transform: rotate(45deg) translateY(-2px);
    width: 6px;
  }

  body.jianfa-app .approval-audit-summary-meta .is-open {
    display: none;
  }

  body.jianfa-app .approval-audit-panel[open] .approval-audit-summary-meta .is-closed {
    display: none;
  }

  body.jianfa-app .approval-audit-panel[open] .approval-audit-summary-meta .is-open {
    display: inline;
  }

  body.jianfa-app .approval-audit-panel[open] .approval-audit-summary-meta>b::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  body.jianfa-app .approval-audit-list {
    display: grid;
    gap: 8px;
    padding: 14px 18px 18px;
  }

  body.jianfa-app .approval-audit-panel:not([open])>.approval-audit-list {
    display: none;
  }

  body.jianfa-app .approval-audit-list article {
    align-items: center;
    background: #fbfdff;
    border: 1px solid #e2e8f0;
    border-radius: var(--ui-radius);
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
    padding: 10px 12px;
  }

  body.jianfa-app .approval-audit-list b {
    font-size: 11px;
  }

  body.jianfa-app .approval-audit-list p,
  body.jianfa-app .approval-audit-list article>small {
    color: #64748b;
    font-size: 9px;
    margin: 2px 0 0;
  }

  body.jianfa-app .member-fields {
    gap: 13px;
    grid-template-columns: repeat(4,minmax(0,1fr));
    padding: 18px 20px;
  }

  body.jianfa-app .member-fields label {
    color: #475569;
    display: grid;
    font-size: 11px;
    font-weight: 800;
    min-width: 0;
  }

  body.jianfa-app .member-fields select {
    margin: 0;
    min-width: 0;
    width: 100%;
  }

  body.jianfa-app .member-fields select:disabled {
    background: #f8fafc;
    color: #475569;
    opacity: 1;
  }

  body.jianfa-app .member-card-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    gap: 16px;
    grid-template-columns: minmax(120px,.55fr) minmax(280px,1fr) auto;
  }

  body.jianfa-app .member-plan {
    display: grid;
    gap: 3px;
  }

  body.jianfa-app .member-plan small {
    font-size: 10px;
  }

  body.jianfa-app .member-plan b {
    color: #805f23;
  }

  body.jianfa-app .member-empty {
    margin: 0;
  }

  @media(max-width:1100px) {
    body.jianfa-app .member-fields {
      grid-template-columns: 1fr 1fr;
    }

    body.jianfa-app .member-card-footer {
      grid-template-columns: 1fr 1.5fr;
    }
  }

  @media(max-width:680px) {

    body.jianfa-app .member-card-list {
      padding: 12px;
    }

    body.jianfa-app .member-card-header {
      align-items: flex-start;
      gap: 12px;
    }

    body.jianfa-app .member-card-status small {
      max-width: 150px;
    }

    body.jianfa-app .member-fields {
      grid-template-columns: 1fr;
      padding: 16px;
    }

    body.jianfa-app .member-card-footer {
      grid-template-columns: 1fr;
      padding: 16px;
    }
  }

  body.jianfa-app .member-search-form {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
  }

  body.jianfa-app .member-search-form input {
    height: 39px;
    margin: 0;
    min-width: 270px;
  }

  body.jianfa-app .member-search-form button {
    min-height: 39px;
    min-width: 64px;
    padding: 8px 15px;
    white-space: nowrap;
    width: auto;
  }

  body.jianfa-app .member-search-form a {
    color: #102f50;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  body.jianfa-app .member-column-head {
    box-sizing: border-box;
    display: grid;
  }

  body.jianfa-app .member-column-head {
    background: #f1f5f9;
    border-bottom: 1px solid var(--line);
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
  }

  body.jianfa-app .member-card-list {
    gap: 8px;
  }

  body.jianfa-app .member-card-header, body.jianfa-app .member-fields, body.jianfa-app .member-card-footer {
    display: contents;
  }

  body.jianfa-app .member-identity {
    grid-column: 1;
  }

  body.jianfa-app .member-card-status {
    align-items: flex-start;
    grid-column: 6;
    text-align: left;
  }

  body.jianfa-app .member-card-status small {
    line-height: 1.35;
  }

  body.jianfa-app .member-fields label {
    gap: 4px;
  }

  body.jianfa-app .member-fields label>span:first-child {
    display: none;
  }

  body.jianfa-app .member-fields label:nth-child(1) {
    grid-column: 2;
  }

  body.jianfa-app .member-fields label:nth-child(2) {
    grid-column: 3;
  }

  body.jianfa-app .member-fields label:nth-child(3) {
    grid-column: 4;
  }

  body.jianfa-app .member-fields label:nth-child(4) {
    grid-column: 5;
  }

  body.jianfa-app .member-avatar {
    border-radius: 9px;
  }

  body.jianfa-app .member-identity h4 {
    font-size: 13px;
  }

  body.jianfa-app .member-identity p, body.jianfa-app .member-identity small {
    font-size: 10px;
    line-height: 1.3;
  }

  body.jianfa-app .member-plan {
    grid-column: 7;
  }

  body.jianfa-app .member-card-footer {
    background: transparent;
    border: 0;
    padding: 0;
  }

  body.jianfa-app .member-card:hover {
    transform: none;
  }

  @media(max-width:680px) {
    body.jianfa-app .member-search-form {
      width: 100%;
    }

    body.jianfa-app .member-search-form input {
      min-width: 0;
      width: 100%;
    }

    body.jianfa-app .member-column-head {
      grid-template-columns: 180px 180px 100px 170px 110px 175px 95px 220px minmax(220px,1fr);
      min-width: 1500px;
    }

    body.jianfa-app .member-card {
      min-width: 1500px;
    }

    body.jianfa-app .member-card-list {
      padding: 8px;
    }
  }

  body.jianfa-app .member-directory-scroll {
    overflow-x: visible;
  }

  body.jianfa-app .member-column-head {
    gap: 6px;
    grid-template-columns: minmax(125px,1.1fr) minmax(135px,1.15fr) minmax(82px,.65fr) minmax(130px,1.05fr) minmax(90px,.72fr) minmax(140px,1.15fr) minmax(72px,.58fr) minmax(185px,1.45fr) minmax(205px,1.55fr);
    min-width: 0;
    width: 100%;
  }

  body.jianfa-app .member-card {
    min-width: 0;
    width: 100%;
  }

  body.jianfa-app .member-identity, body.jianfa-app .member-card-status, body.jianfa-app .member-fields label, body.jianfa-app .member-plan {
    grid-row: 1;
  }

  body.jianfa-app .member-column-head {
    padding: 9px 12px;
  }

  body.jianfa-app .member-card-list {
    padding: 8px;
  }

  body.jianfa-app .member-identity {
    gap: 7px;
    min-width: 0;
  }

  body.jianfa-app .member-avatar {
    flex: 0 0 auto;
    height: 31px;
    width: 31px;
  }

  body.jianfa-app .member-identity>div {
    min-width: 0;
  }

  body.jianfa-app .member-identity h4, body.jianfa-app .member-identity p, body.jianfa-app .member-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.jianfa-app .member-fields select {
    font-size: 11px;
    height: 34px;
    padding: 6px 8px;
  }

  body.jianfa-app .member-card-status {
    gap: 3px;
    min-width: 0;
  }

  body.jianfa-app .member-card-status small {
    font-size: 9px;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }

  body.jianfa-app .member-plan {
    min-width: 0;
  }

  body.jianfa-app .member-plan b {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.jianfa-app .member-empty {
    min-width: 0;
  }

  @media(max-width:1250px) {
    body.jianfa-app .member-column-head {
      grid-template-columns: minmax(110px,1fr) minmax(120px,1.05fr) minmax(75px,.62fr) minmax(115px,1fr) minmax(82px,.68fr) minmax(120px,1fr) minmax(65px,.55fr) minmax(165px,1.35fr) minmax(190px,1.5fr);
    }

    body.jianfa-app .member-avatar {
      display: none;
    }
  }

  @media(max-width:680px) {

    body.jianfa-app .case-summary-line {
      max-width: 100%;
    }
  }

  body.jianfa-app .account-copy {
    min-width: 0;
  }

  body.jianfa-app .account-copy small {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.jianfa-app .onboarding-gate {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    color: #9a3412;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 11px 14px;
  }

  body.jianfa-app .onboarding-gate b {
    margin-right: 8px;
  }

  body.jianfa-app .onboarding-gate a {
    background: #9a3412;
    border-radius: 7px;
    color: #fff;
    font-weight: 800;
    padding: 7px 11px;
    text-decoration: none;
    white-space: nowrap;
  }

  body.jianfa-app .onboarding-shell {
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: 1180px;
  }

  body.jianfa-app .onboarding-hero {
    align-items: center;
    background: linear-gradient(125deg,#0b1f3a,#183c77);
    border-radius: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 30px 34px;
  }

  body.jianfa-app .onboarding-hero h1 {
    color: #fff;
    font-size: 30px;
    margin: 5px 0 8px;
  }

  body.jianfa-app .onboarding-hero p:last-child {
    color: #d8e3ec;
    line-height: 1.7;
    margin: 0;
    max-width: 760px;
  }

  body.jianfa-app .onboarding-progress {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3,1fr);
  }

  body.jianfa-app .onboarding-progress span {
    background: #f1f5f9;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    padding: 10px;
    text-align: center;
  }

  body.jianfa-app .onboarding-progress span.done {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
  }

  body.jianfa-app .onboarding-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
  }

  body.jianfa-app .onboarding-card {
    padding: 25px;
  }

  body.jianfa-app .onboarding-card.is-done {
    border-color: #a7f3d0;
  }

  body.jianfa-app .task-number {
    color: #173b63;
    font: 900 11px/1 var(--font-sans);
    letter-spacing: .12em;
  }

  body.jianfa-app .onboarding-card h2 {
    font-size: 20px;
    margin: 9px 0;
  }

  body.jianfa-app .onboarding-card>p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.65;
  }

  body.jianfa-app .onboarding-card form {
    display: grid;
    gap: 11px;
    margin-top: 18px;
  }

  body.jianfa-app .onboarding-card label {
    color: #334155;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
  }

  body.jianfa-app .onboarding-card input {
    margin: 0;
  }

  body.jianfa-app .voice-card blockquote {
    background: #f8fafc;
    border-left: 4px solid #c5a880;
    border-radius: 0 10px 10px 0;
    color: #334155;
    font-size: 15px;
    line-height: 2;
    margin: 17px 0;
    padding: 15px 18px;
  }

  body.jianfa-app .voice-bound {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #047857;
    font-weight: 900;
    margin-top: 18px;
    padding: 15px;
    text-align: center;
  }

  body.jianfa-app .onboarding-reward {
    color: #92400e;
    display: flex;
    gap: 12px;
    padding: 14px 17px;
  }

  body.jianfa-app .onboarding-reward span {
    font-size: 12px;
  }

  body.jianfa-app .onboarding-card button:disabled {
    cursor: not-allowed;
    opacity: .45;
  }

  @media(max-width:780px) {
    body.jianfa-app .onboarding-hero {
      align-items: flex-start;
      flex-direction: column;
      gap: 18px;
      padding: 24px;
    }

    body.jianfa-app .onboarding-grid, body.jianfa-app .onboarding-progress {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .onboarding-gate {
      align-items: flex-start;
      gap: 10px;
    }

    body.jianfa-app .onboarding-reward {
      flex-direction: column;
    }
  }

  body.jianfa-app .plan-auto {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
    margin-top: auto;
    padding: 10px;
    text-align: center;
  }

  body.jianfa-app .referral-card {
    grid-column: 1/-1;
  }

  body.jianfa-app .referral-card>h2 {
    margin-bottom: 8px;
  }

  body.jianfa-app .referral-card>.muted {
    line-height: 1.75;
    margin-bottom: 16px;
  }

  body.jianfa-app .referral-code-label {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
  }

  body.jianfa-app .referral-code-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    margin-top: 5px;
  }

  body.jianfa-app .referral-code-row input {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .18em;
    margin: 0;
    text-align: center;
  }

  body.jianfa-app .referral-code-row button {
    min-height: 43px;
    white-space: nowrap;
  }

  body.jianfa-app .referral-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4,1fr);
    margin-top: 16px;
  }

  body.jianfa-app .referral-stats span {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 3px;
    padding: 12px;
  }

  body.jianfa-app .referral-stats b {
    font-size: 20px;
  }

  body.jianfa-app .referral-stats small {
    font-size: 11px;
  }

  @media(max-width:680px) {
    body.jianfa-app .referral-code-row {
      grid-template-columns: 1fr;
    }

    body.jianfa-app .referral-code-row button {
      width: 100%;
    }

    body.jianfa-app .referral-stats {
      grid-template-columns: 1fr 1fr;
    }
  }

  body.jianfa-app .risk-review-state {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 11px;
    margin-left: 8px;
    padding: 3px 8px;
  }

  body.jianfa-app .risk-chips .risk-dialogue-card {
    display: block;
    flex: 1 1 100%;
    font-weight: 500;
  }

  body.jianfa-app .risk-evidence-title {
    color: #9f1239;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin: 7px 0;
  }

  body.jianfa-app .dialogue-turn {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #fecdd3;
    border-radius: var(--ui-radius);
    display: flex;
    gap: 10px;
    line-height: 1.7;
    margin: 6px 0;
    padding: 8px 10px;
  }

  body.jianfa-app .dialogue-turn span {
    background: #be123c;
    border-radius: var(--inline-label-radius, 999px);
    color: #fff;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 8px;
  }

  body.jianfa-app .dialogue-答 span {
    background: #475569;
  }

  body.jianfa-app .risk-review-notice {
    border-left: 3px solid #f97316;
    font-weight: 800;
    padding: 9px 11px;
  }

  body.jianfa-app .risk-review-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }

  body.jianfa-app .risk-review-form label {
    font-size: 12px;
    font-weight: 800;
  }

  body.jianfa-app .risk-review-form select {
    width: 100%;
  }

  @media(max-width:900px) {
    body.jianfa-app .risk-review-form {
      grid-template-columns: 1fr;
    }
  }

  body.jianfa-app .risk-raw-evidence {
    border-top: 1px dashed #fecdd3;
    margin-top: 10px;
    padding-top: 8px;
  }

  body.jianfa-app .risk-raw-evidence summary {
    color: #9f1239;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
  }

  body.jianfa-app .risk-raw-evidence p {
    background: #fff7f7;
    border-radius: var(--ui-radius-sm);
    color: #7f1d1d;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    margin: 7px 0 0;
    padding: 8px;
    white-space: pre-wrap;
  }

  body.jianfa-app .risk-review-form {
    align-items: end;
    grid-template-columns: minmax(320px,1fr) 320px 230px;
    padding: 12px 14px;
  }

  body.jianfa-app .risk-review-form label {
    display: grid;
    gap: 6px;
    margin: 0;
  }

  body.jianfa-app .risk-review-form textarea {
    height: 50px;
    max-height: 120px;
    min-height: 50px;
    margin: 0;
    resize: vertical;
  }

  body.jianfa-app .risk-review-form select, body.jianfa-app .risk-review-form button {
    height: 50px;
    margin: 0;
  }

  body.jianfa-app .risk-review-form button {
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
    width: 100%;
  }

  @media(max-width:1050px) {
    body.jianfa-app .risk-review-form {
      grid-template-columns: minmax(260px,1fr) 280px 210px;
    }
  }

  @media(max-width:820px) {
    body.jianfa-app .risk-review-form {
      align-items: stretch;
      grid-template-columns: 1fr;
    }

    body.jianfa-app .risk-review-form textarea {
      height: 58px;
    }

    body.jianfa-app .risk-review-form select, body.jianfa-app .risk-review-form button {
      height: 48px;
    }
  }

  body.jianfa-app .role-inference-summary {
    align-items: center;
    background: linear-gradient(110deg,#eef3f7,#fff7ed);
    border: 1px solid #d8e3ec;
    border-radius: var(--ui-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin: 13px 0;
    padding: 11px 13px;
  }

  body.jianfa-app .role-inference-summary b {
    color: #0f172a;
  }

  body.jianfa-app .role-inference-summary span {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
  }

  body.jianfa-app .speaker-turns {
    display: grid;
    gap: 9px;
    margin-top: 10px;
  }

  body.jianfa-app .speaker-turn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    border-radius: var(--ui-radius);
    padding: 10px 12px;
  }

  body.jianfa-app .speaker-turn.is-staff {
    background: #eef3f7;
    border-color: #c3d2de;
    border-left-color: #173b63;
  }

  body.jianfa-app .speaker-turn.is-client {
    background: #fff1f2;
    border-color: #fecdd3;
    border-left-color: #e11d48;
  }

  body.jianfa-app .speaker-turn header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
  }

  body.jianfa-app .speaker-turn header b {
    font-size: 12px;
  }

  body.jianfa-app .speaker-turn time {
    color: #64748b;
    font: 700 10px/1 var(--font-sans);
  }

  body.jianfa-app .speaker-turn p {
    color: #334155;
    line-height: 1.75;
    margin: 6px 0 0;
    white-space: pre-wrap;
  }

  @media(max-width:560px) {
    body.jianfa-app .role-inference-summary {
      align-items: flex-start;
      display: grid;
    }

    body.jianfa-app .speaker-turn header {
      align-items: flex-start;
      flex-direction: column;
      gap: 4px;
    }
  }

  body.jianfa-app .regenerate-dialog {
    background: #fff;
    border: 0;
    border-radius: var(--radius-card);
    box-shadow: 0 30px 90px rgba(15,23,42,.34);
    max-width: 600px;
    overflow: hidden;
    padding: 0;
    width: calc(100% - 32px);
  }

  body.jianfa-app .regenerate-dialog::backdrop {
    backdrop-filter: blur(8px);
    background: rgba(15,23,42,.68);
  }

  body.jianfa-app .regenerate-dialog form {
    display: grid;
    gap: 0;
    grid-template-columns: 68px 1fr;
    padding: 30px;
  }

  body.jianfa-app .regenerate-dialog-icon {
    align-items: center;
    display: flex;
    font-size: 30px;
    font-weight: 900;
    height: 56px;
    justify-content: center;
    width: 56px;
  }

  body.jianfa-app .regenerate-dialog-copy {
    min-width: 0;
  }

  body.jianfa-app .regenerate-dialog-copy .eyebrow {
    color: #173b63;
    margin-bottom: 5px;
  }

  body.jianfa-app .regenerate-dialog-copy h2 {
    font: 700 24px var(--font-sans);
    margin-bottom: 10px;
  }

  body.jianfa-app .regenerate-dialog-copy>p:not(.eyebrow):not(.regenerate-dialog-warning) {
    color: #475569;
    line-height: 1.75;
    margin: 0;
  }

  body.jianfa-app .regenerate-dialog-warning {
    background: linear-gradient(100deg,#fff7ed,#fffbeb);
    border: 1px solid #fdba74;
    border-radius: var(--ui-radius);
    color: #9a3412;
    display: grid;
    gap: 3px;
    margin: 17px 0 0;
    padding: 12px 14px;
  }

  body.jianfa-app .regenerate-dialog-warning b {
    font-size: 14px;
  }

  body.jianfa-app .regenerate-dialog-warning span {
    font-size: 12px;
    line-height: 1.6;
  }

  body.jianfa-app .regenerate-dialog-actions {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    grid-column: 1/-1;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 19px;
  }

  body.jianfa-app .regenerate-dialog-actions button {
    min-width: 138px;
  }

  @media(max-width:560px) {
    body.jianfa-app .regenerate-dialog form {
      grid-template-columns: 1fr;
      padding: 22px;
    }

    body.jianfa-app .regenerate-dialog-icon {
      margin-bottom: 14px;
    }

    body.jianfa-app .regenerate-dialog-actions {
      flex-direction: column-reverse;
    }

    body.jianfa-app .regenerate-dialog-actions button {
      width: 100%;
    }
  }

  body.jianfa-app .case-date-list {
    display: grid;
    gap: 12px;
  }

  body.jianfa-app .case-date-group {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
    overflow: hidden;
  }

  body.jianfa-app .case-date-group>summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    list-style: none;
    min-height: 62px;
    padding: 12px 18px;
  }

  body.jianfa-app .case-date-group>summary::-webkit-details-marker {
    display: none;
  }

  body.jianfa-app .case-date-group>summary>span {
    align-items: baseline;
    display: flex;
    gap: 10px;
    min-width: 0;
  }

  body.jianfa-app .case-date-group>summary b {
    color: var(--ink);
    font-size: 16px;
  }

  body.jianfa-app .case-date-group>summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
  }

  body.jianfa-app .case-date-group>summary strong {
    align-items: center;
    color: var(--brand);
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    gap: 3px;
  }

  body.jianfa-app .case-date-group>summary strong::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    height: 7px;
    margin-left: 12px;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
    width: 7px;
  }

  body.jianfa-app .case-date-group[open]>summary strong::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  body.jianfa-app .case-date-group.is-today {
    border-color: #b8cadd;
  }

  body.jianfa-app .case-date-group.is-today>summary {
    background: linear-gradient(90deg, #eef4f8, #f8fafc);
  }

  body.jianfa-app .case-date-items {
    border-top: 1px solid var(--line);
    gap: 0;
  }

  body.jianfa-app .case-date-items .case {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  body.jianfa-app .case-date-items .case:last-child {
    border-bottom: 0;
  }

  @media(max-width:620px) {
    body.jianfa-app .case-date-list {
      gap: 11px;
    }

    body.jianfa-app .case-date-group {
      border-radius: var(--radius-card);
    }

    body.jianfa-app .case-date-group>summary {
      min-height: 64px;
      padding: 12px 14px;
    }

    body.jianfa-app .case-date-group>summary>span {
      align-items: flex-start;
      flex-direction: column;
      gap: 2px;
    }

    body.jianfa-app .case-date-group>summary b {
      font-size: 15px;
    }

    body.jianfa-app .case-date-group>summary strong {
      font-size: 13px;
    }

    body.jianfa-app .case-date-group>summary strong::after {
      margin-left: 7px;
    }
  }

  body.jianfa-app .customer-search-control {
    display: block;
    margin-top: 0;
    position: relative;
  }

  body.jianfa-app .customer-search-control>input {
    height: 43px;
    margin: 0;
    min-width: 0;
    text-align: left;
    width: 100%;
  }

  body.jianfa-app .customer-search-results {
    display: grid;
    gap: 4px;
    left: 0;
    max-height: 286px;
    overflow: auto;
    padding: 7px;
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    z-index: 45;
  }

  body.jianfa-app .customer-search-results button {
    font-size: 12px;
    justify-content: flex-start;
    min-height: 38px;
    padding: 9px 11px;
    text-align: left;
    width: 100%;
  }

  body.jianfa-app .customer-search-results button:hover, body.jianfa-app .customer-search-results button.is-active {
    box-shadow: inset 2px 2px 5px rgba(126,142,166,.2);
    transform: none;
  }

  body.jianfa-app .customer-search-empty {
    color: #748198;
    font-size: 12px;
    padding: 10px 11px;
  }
}

/* --- [Migrated] SVG & Landing Compatibility --- */
@layer legacy-components {
  .danger-dialog-icon svg, .regenerate-dialog-icon svg, .ui-dialog-icon svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    width: 22px;
  }

  .danger-dialog-icon svg, .regenerate-dialog-icon svg, .ui-dialog-icon svg {
    height: 23px;
    width: 23px;
  }

  .landing-button {
    gap: 13px;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  }

  .landing-button-primary {
    background: linear-gradient(135deg, var(--lf-indigo), var(--lf-blue));
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
  }

  .landing-button-primary:hover {
    background: linear-gradient(135deg, #102f50, #173b63);
  }

  .landing-button-ghost, .landing-button-link {
    box-shadow: none;
  }

  .landing-button-ghost:hover, .landing-button-link:hover {
    box-shadow: none;
  }

  .landing-button-plan {
    background: #f0f4fa;
    border-color: #dbe3ef;
    box-shadow: none;
    color: #19365f;
  }

  .landing-button-light {
    box-shadow: 0 10px 26px rgba(3, 15, 31, .22);
  }


  .trust-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
  }

  .landing-trust .trust-icon svg {
    fill: none;
    height: 21px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 21px;
  }

  @media (max-width: 820px) {
    .landing-menu .landing-button-ghost, .landing-menu .landing-button-link {
      background: rgba(255, 255, 255, .08);
      color: #fff;
    }
  }
}

/* Admin dashboard components (merged from file-end patch) */
body.jianfa-app .admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

body.jianfa-app .admin-dashboard__intro {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
}

body.jianfa-app .admin-dashboard__intro h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 4px 0 6px;
}

body.jianfa-app .admin-dashboard__intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.jianfa-app .admin-dashboard__metrics {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.jianfa-app .admin-metric-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 168px;
  padding: 22px 22px 18px;
}

body.jianfa-app .admin-metric-card__head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

body.jianfa-app .admin-metric-card__title {
  color: var(--ui-text, #0f172a);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

body.jianfa-app .admin-metric-card__hint {
  color: var(--ui-muted, #94a3b8);
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

body.jianfa-app .admin-metric-card__icon {
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

body.jianfa-app .admin-metric-card__icon svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 20px;
}

body.jianfa-app .admin-metric-card__value {
  color: #0f172a;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0;
}

body.jianfa-app .admin-metric-card__foot {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
}

body.jianfa-app .admin-metric-card__delta {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

body.jianfa-app .admin-metric-card__delta.is-up {
  background: #ecfdf5;
  color: #059669;
}

body.jianfa-app .admin-metric-card__delta.is-down {
  background: #fef2f2;
  color: #dc2626;
}

body.jianfa-app .admin-metric-card__delta.is-neutral {
  background: #f1f5f9;
  color: #64748b;
}

body.jianfa-app .admin-metric-card__link {
  color: var(--ui-muted, #64748b);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

body.jianfa-app .admin-metric-card__link:hover {
  color: var(--ui-blue-hover, #2563eb);
}

body.jianfa-app .admin-dashboard__mid,
body.jianfa-app .admin-dashboard__bottom {
  display: grid;
  gap: 18px;
}

body.jianfa-app .admin-dashboard__mid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

body.jianfa-app .admin-dashboard__bottom {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

body.jianfa-app .admin-dashboard__panel {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  padding: 22px 24px;
}

body.jianfa-app .admin-dashboard__panel-head h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}

body.jianfa-app .admin-dashboard__panel-head .muted {
  margin: 0;
}

body.jianfa-app .admin-dashboard__placeholder {
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #94a3b8;
  display: flex;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  min-height: 180px;
}

@media (max-width: 1180px) {
  body.jianfa-app .admin-dashboard__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.jianfa-app .admin-dashboard__mid,
  body.jianfa-app .admin-dashboard__bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.jianfa-app .admin-dashboard__metrics {
    grid-template-columns: 1fr;
  }

  body.jianfa-app .admin-metric-card__value {
    font-size: 28px;
  }
}

/* --- Modern Flat UI: Final Authority --- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  /* Soft SaaS canvas — light, airy, high-end CRM */
  --bg-main: #F5F7FA;
  --app-canvas: #EEF2F7;
  --sidebar-dark: #FFFFFF;
  --sidebar-primary: #2563EB;
  --accent-blue: #3B82F6;
  --text-main: #111827;
  --text-muted: #6B7280;
  --radius-layout: 20px;
  --radius-card: 16px;
  /* Form controls follow Ant-like enterprise style (图一). Nav chrome keeps separate brand blues. */
  --form-primary: #1890ff;
  --form-primary-hover: #40a9ff;
  --form-primary-active: #096dd9;
  --form-reset: #ffa940;
  --form-reset-hover: #ffc069;
  --form-border: #d9d9d9;
  --form-radius: 4px;
  --form-control-height: 32px;
  --form-focus: 0 0 0 2px rgba(24, 144, 255, .2);
  --form-placeholder: #bfbfbf;
  --radius-button: var(--form-radius);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, .06);
  --brand-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  --bg-canvas: #EEF2F7;
  --btn-shadow: none;
  --field-radius: var(--form-radius);
  --inline-label-radius: var(--form-radius);
  --input-radius: var(--form-radius);
  --textarea-radius: var(--form-radius);
  --field-border: 1px solid var(--form-border);
  --field-hover-border: var(--form-primary);
  --field-focus-border: var(--form-primary);
  --field-focus-shadow: var(--form-focus);
  --ui-bg: var(--bg-main);
  --ui-surface: #ffffff;
  --ui-surface-muted: #F3F4F6;
  --ui-border: #E5E7EB;
  --ui-border-strong: var(--form-border);
  --ui-text: var(--text-main);
  --ui-text-soft: #374151;
  --ui-muted: var(--text-muted);
  --ui-blue: var(--accent-blue);
  --ui-blue-hover: #2563EB;
  --ui-blue-soft: #EFF6FF;
  --ui-danger: #EF4444;
  --ui-danger-soft: #FEF2F2;
  --ui-success: #10B981;
  --ui-success-soft: #ECFDF5;
  --ui-warning: #F59E0B;
  --ui-warning-soft: #FFFBEB;
  --ui-radius: 16px;
  --ui-radius-sm: var(--form-radius);
  --ui-focus: var(--form-focus);
  --ui-float-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --ink: var(--ui-text);
  --slate: var(--ui-text-soft);
  --blue: var(--ui-blue);
  --blue-deep: var(--ui-blue-hover);
  --gold: #B89742;
  --gold-deep: #8F7430;
  --gold-light: #EFE4C8;
  --canvas: var(--ui-bg);
  --paper: var(--ui-surface);
  --line: var(--ui-border);
  --muted: var(--ui-muted);
  --shadow: var(--shadow-card);
  --radius: var(--ui-radius);
}

/* Authentication is one DOM component; only its responsive skin changes. */
body.jianfa-app.login {
  align-items: center;
  background: var(--bg-canvas);
  background-image:
    radial-gradient(circle at 8% 10%, rgba(58, 82, 255, .14), transparent 24%),
    radial-gradient(circle at 92% 88%, rgba(92, 36, 255, .12), transparent 28%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}

body.jianfa-app.login::before {
  content: none;
}

.auth-layout {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(39, 53, 118, .18);
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  height: 680px;
  max-height: calc(100dvh - 48px);
  max-width: 1100px;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: min(1100px, calc(100vw - 48px));
}

.auth-visual {
  background: var(--brand-gradient);
  color: #fff;
  overflow: hidden;
  padding: 62px 52px;
  position: relative;
}

.auth-visual::before,
.auth-visual::after {
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.auth-visual::before {
  height: 300px;
  left: -142px;
  top: -112px;
  width: 300px;
}

.auth-visual::after {
  bottom: -178px;
  height: 400px;
  right: -178px;
  width: 400px;
}

.auth-visual-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.auth-visual-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  left: 0;
  position: absolute;
  top: 0;
}

.auth-visual-brand img {
  border-radius: 12px;
  height: 42px;
  width: 42px;
}

.auth-visual-brand span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
}

.auth-visual-kicker,
.auth-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.auth-visual-kicker {
  color: rgba(255, 255, 255, .7);
  margin: 0 0 16px;
}

.auth-visual h1 {
  color: #fff !important;
  font-size: clamp(34px, 3.25vw, 48px);
  letter-spacing: -.045em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.auth-visual-copy > p:last-child {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  max-width: 300px;
}

.auth-orbit {
  border: 2px solid rgba(255, 255, 255, .54);
  border-radius: 50%;
  position: absolute;
}

.auth-orbit::after {
  background: linear-gradient(135deg, #fff, #66E8FF);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(24, 35, 120, .24);
  content: "";
  height: 28px;
  position: absolute;
  right: 8px;
  top: 20px;
  width: 28px;
}

.auth-orbit-one {
  bottom: -80px;
  height: 220px;
  left: 52px;
  width: 220px;
}

.auth-orbit-two {
  bottom: -42px;
  height: 150px;
  left: 86px;
  opacity: .55;
  width: 150px;
}

.auth-dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,.68) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  bottom: 35px;
  height: 72px;
  position: absolute;
  right: 34px;
  width: 72px;
}

.auth-panel {
  background: #fff;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.auth-mobile-wave {
  display: none;
}

.auth-surface {
  height: 100%;
  margin: 0 auto;
  max-width: 520px;
  overflow-y: auto;
  padding: 34px 26px 30px;
  scrollbar-width: thin;
}

.auth-surface::-webkit-scrollbar {
  width: 6px;
}

.auth-surface::-webkit-scrollbar-thumb {
  background: #D9DDEA;
  border-radius: var(--ui-radius-sm);
}

.auth-surface::-webkit-scrollbar-track {
  background: transparent;
}

body.jianfa-app .auth-surface-header {
  align-items: initial;
  display: block;
  justify-content: initial;
  position: relative;
  text-align: center;
}

.auth-home-link {
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 800;
  position: absolute;
  right: 0;
  text-decoration: none;
  top: 0;
}

.auth-logo {
  align-items: center;
  background: #fff;
  border: 1px solid #e4e8f2;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(51, 67, 150, .12);
  display: flex;
  height: 62px;
  justify-content: center;
  margin: 0 auto 14px;
  width: 62px;
}

.auth-logo img {
  border-radius: 11px;
  height: 38px;
  width: 38px;
}

.auth-kicker {
  color: var(--accent-blue);
  margin: 0 0 7px;
}

.auth-surface-header h2 {
  color: var(--text-main);
  font-size: 25px;
  letter-spacing: -.025em;
  margin: 0 0 5px;
}

.auth-surface-header > p:last-child {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

.auth-message {
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
  padding: 9px 11px;
}

.auth-message.is-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.auth-message.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.auth-mode-tabs,
.auth-channel-tabs {
  background: #F0F2F8;
  border-radius: var(--ui-radius);
  display: grid;
  gap: 4px;
  padding: 4px;
}

.auth-mode-tabs {
  grid-template-columns: 1fr 1fr;
  margin: 18px auto 12px;
  max-width: 250px;
}

.auth-channel-tabs {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

body.jianfa-app .auth-mode-tabs button,
body.jianfa-app .auth-channel-tabs button {
  --button-bg: transparent;
  --button-border: 0;
  --button-color: #747d93;
  --button-hover-bg: rgba(255,255,255,.72);
  --button-hover-border: transparent;
  --button-hover-color: #33405f;
  --button-hover-shadow: none;
  --button-shadow: none;
  font-size: 11px;
  min-height: 36px;
  padding: 8px 10px;
}

body.jianfa-app .auth-mode-tabs button[aria-selected="true"],
body.jianfa-app .auth-channel-tabs button[aria-selected="true"] {
  --button-bg: #fff;
  --button-color: var(--accent-blue);
  box-shadow: 0 5px 16px rgba(49, 62, 130, .1) !important;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin: 0;
}

.auth-field {
  color: #4b556b;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
}

.auth-field > input,
.auth-phone-input,
.auth-code-input {
  --field-bg: #fff;
  --field-border: 1px solid #D8DEEA;
  --field-radius: var(--input-radius);
  background: #fff;
  border: 1px solid #D8DEEA;
  border-radius: var(--input-radius);
  min-height: 50px;
}

.auth-field > input {
  margin: 0;
  padding: 11px 14px;
}

.auth-phone-input,
.auth-code-input {
  align-items: center;
  display: flex;
  overflow: hidden;
}

.auth-phone-input:focus-within,
.auth-code-input:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(58,82,255,.12);
}

.auth-phone-input b {
  border-right: 1px solid #E4E7EF;
  color: #3E4966;
  font-size: 12px;
  padding: 0 12px;
}

.auth-phone-input input,
.auth-code-input input {
  --field-bg: transparent;
  --field-border: 0;
  --field-focus-border: transparent;
  --field-focus-shadow: none;
  flex: 1;
  height: 48px;
  margin: 0;
  min-width: 0;
  padding: 10px 12px;
}

body.jianfa-app .auth-code-input button {
  --button-bg: #EEF1FF;
  --button-border: 0;
  --button-color: var(--accent-blue);
  --button-hover-bg: #E4E8FF;
  --button-hover-border: transparent;
  --button-hover-color: #3820d4;
  --button-hover-shadow: none;
  --button-shadow: none;
  border-radius: var(--ui-radius) !important;
  flex: 0 0 auto;
  font-size: 10px;
  margin-right: 6px;
  min-height: 36px;
  padding: 7px 10px;
}

body.jianfa-app button.auth-primary-action {
  --button-background-image: none;
  --button-bg: var(--form-primary);
  --button-border: 1px solid var(--form-primary);
  --button-color: #fff;
  --button-hover-background-image: none;
  --button-hover-bg: var(--form-primary-hover);
  --button-hover-border: var(--form-primary-hover);
  --button-hover-shadow: none;
  --button-shadow: none;
  border-radius: var(--form-radius);
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  margin-top: 3px;
  min-height: var(--form-control-height);
}

.auth-primary-action > span {
  margin-left: auto;
}

.auth-primary-action.is-loading {
  opacity: .72;
}

.auth-form-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: 1fr 1fr;
}

.auth-field-wide {
  grid-column: 1 / -1;
}

.auth-account-type {
  border: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
}

.auth-account-type legend {
  color: #4b556b;
  font-size: 11px;
  font-weight: 800;
  grid-column: 1 / -1;
  margin-bottom: -1px;
}

.auth-account-type label {
  cursor: pointer;
}

.auth-account-type input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.auth-account-type span {
  align-items: center;
  background: #F2F4F9;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #69738a;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
}

.auth-account-type input:checked + span {
  background: #EEF0FF;
  border-color: #AEB9FF;
  color: var(--accent-blue);
}

.auth-form-note {
  color: #8A93A7;
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.auth-switch-prompt {
  border-top: 1px solid #ECEEF4;
  color: #7C8498;
  font-size: 11px;
  margin: 15px 0 0;
  padding-top: 13px;
  text-align: center;
}

body.jianfa-app .auth-switch-prompt button {
  --button-bg: transparent;
  --button-border: 0;
  --button-color: var(--accent-blue);
  --button-hover-bg: transparent;
  --button-hover-border: transparent;
  --button-hover-color: #3920D7;
  --button-hover-shadow: none;
  --button-shadow: none;
  display: inline;
  font-size: inherit;
  min-height: 0;
  padding: 0 0 0 4px;
}

.auth-binding-dialog {
  background: transparent;
  border: 0;
  border-radius: 0;
  max-width: 500px;
  overflow: visible;
  padding: 0;
  width: calc(100% - 32px);
}

.auth-binding-dialog::backdrop {
  background: rgba(18, 24, 57, .66) !important;
  backdrop-filter: blur(8px) !important;
}

.auth-binding-form {
  background: #fff;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(20,28,73,.28);
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 34px;
  position: relative;
}

body.jianfa-app .auth-dialog-close {
  --button-bg: transparent;
  --button-border: 0;
  --button-color: #8B94A8;
  --button-hover-bg: transparent;
  --button-hover-border: transparent;
  --button-hover-color: #111729;
  --button-hover-shadow: none;
  --button-shadow: none;
  font-size: 27px;
  min-height: 34px;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 14px;
  width: 34px;
}

.auth-dialog-icon {
  align-items: center;
  background: var(--brand-gradient);
  border-radius: 18px;
  box-shadow: var(--btn-shadow);
  color: #fff;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.auth-binding-form h2 {
  font-size: 24px;
  margin: -5px 0 0;
}

.auth-binding-form > p:not(.auth-kicker):not(.auth-message) {
  color: #6F788E;
  font-size: 12px;
  line-height: 1.7;
  margin: -5px 0 2px;
}

@media (max-width: 767px) {
  body.jianfa-app.login {
    align-items: flex-start;
    background: var(--bg-canvas);
    display: block;
    padding: 0;
  }

  .auth-layout {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: auto;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    width: 100%;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    background: var(--brand-gradient);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    padding-top: 142px;
  }

  .auth-mobile-wave {
    color: #fff;
    display: block;
    height: 200px;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
  }

  .auth-mobile-wave svg {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
  }

  .auth-mobile-wave path {
    fill: url("#auth-wave-gradient");
  }

  .auth-mobile-wave > div {
    display: grid;
    gap: 4px;
    left: 24px;
    position: absolute;
    top: max(34px, calc(env(safe-area-inset-top) + 18px));
  }

  .auth-mobile-wave small {
    color: rgba(255,255,255,.74);
    font-size: 12px;
    font-weight: 700;
  }

  .auth-mobile-wave strong {
    color: #fff;
    font-size: 25px;
    line-height: 1.25;
    max-width: 300px;
  }

  .auth-surface {
    background: #fff;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -14px 42px rgba(32, 28, 103, .16);
    height: auto;
    margin: 0;
    max-width: none;
    min-height: calc(100vh - 142px);
    min-height: calc(100dvh - 142px);
    overflow: visible;
    padding: 28px 22px max(30px, calc(env(safe-area-inset-bottom) + 24px));
    position: relative;
    z-index: 2;
  }

  .auth-home-link {
    color: #fff;
    right: 22px;
    top: -102px;
  }

  .auth-logo,
  .auth-surface-header .auth-kicker,
  .auth-surface-header h2,
  .auth-surface-header > p:last-child {
    display: none;
  }

  .auth-mode-tabs {
    margin-top: 0;
  }

  .auth-channel-tabs {
    grid-template-columns: 1fr;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-field-wide {
    grid-column: auto;
  }

  .auth-binding-form {
    border-radius: 24px;
    padding: 28px 22px 24px;
  }
}

@media (max-width: 380px) {
  .auth-surface {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-account-type {
    grid-template-columns: 1fr;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  text-shadow: none !important;
}

/* HTML visibility is a structural invariant, not a component skin override. */
html body [hidden] {
  display: none !important;
}

html, body {
  font-family: var(--font-sans) !important;
  font-weight: 400;
}

input, select, textarea, button, option, optgroup, pre, code, kbd, samp, .button, .back-link, .account-action, .logout, .landing-button, nav, aside, dialog, table, .pills, .case-tabs, .case-overview, .case-toolbar, .case, .reports, .record, .report-actions, .mobile-tap-page .app {
  font-family: var(--font-sans) !important;
}

body.print-page {
  background: #fff !important;
  color: #111 !important;
  line-height: 1.8;
  margin: 45px auto;
  max-width: 780px;
  padding: 0 20px;
}

body.print-page h1 {
  border-bottom: 2px solid #111;
  font-size: 26px;
  font-weight: 600;
  padding-bottom: 15px;
  text-align: center;
}

body.print-page pre {
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
}

body.print-page .meta {
  color: #555;
  text-align: center;
}

@media print {
  body.print-page {
    margin: 0 auto;
  }

  body.print-page > button {
    display: none !important;
  }
}

input, select, textarea, option, optgroup {
  font-weight: 400;
}

button, .button, .back-link, .account-action, .logout, .landing-button {
  font-weight: 600;
}

body:not(.landing-body) h1, body:not(.landing-body) h2, body:not(.landing-body) h3, body:not(.landing-body) h4, .client-record, .voice-card blockquote {
  font-family: var(--font-sans) !important;
}

.landing-body h1, .landing-body h2, .landing-body h3, .landing-body p.landing-kicker, .mobile-tap-page .intro h1 {
  font-family: var(--font-sans) !important;
}

.landing-body h1, .landing-body h2 {
  font-weight: 800 !important;
  letter-spacing: -.04em;
}

.landing-body h3 {
  font-weight: 700 !important;
  letter-spacing: -.02em;
}

.landing-body p.landing-kicker {
  font-weight: 800 !important;
}

html, body:not(.login):not(.mobile-tap-page), .landing-body {
  background: var(--ui-bg) !important;
  color: var(--ui-text) !important;
}

body:not(.login):not(.mobile-tap-page) {
  background-image: none !important;
}

::selection {
  background: #c3d2de;
  color: var(--ui-text);
}

h1, h2, h4, .landing-hero h1, .scene-copy h2 {
  color: var(--ui-text) !important;
}

.muted, .landing-lead, .scene-copy > p:not(.landing-kicker) {
  color: var(--ui-muted) !important;
}

.eyebrow, body.jianfa-app main a:not(.button):not(.landing-button):not(.case-main) {
  color: var(--ui-blue);
}

body.jianfa-app .case-toolbar > div {
  display: grid;
  gap: 6px;
  justify-items: start;
  text-align: left;
  width: 100%;
}

body.jianfa-app .case-toolbar .eyebrow {
  color: var(--form-primary);
  margin: 0;
}

body.jianfa-app .case-toolbar h2 {
  color: var(--ui-text);
  line-height: 1.25;
  margin: 0;
}

body.jianfa-app .case-toolbar .muted {
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
  text-align: left;
}

body.jianfa-app .customer-identity-panel .eyebrow {
  color: #dbe7ff;
  margin: 0;
}

body.jianfa-app .customer-identity-panel h2 {
  color: #fff;
  line-height: 1.25;
  margin: 0;
}

body.jianfa-app .customer-identity-panel > p {
  color: #b9c2cf;
}

.landing-nav, .landing-nav.scrolled {
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid var(--ui-border) !important;
  box-shadow: none !important;
  color: var(--ui-text) !important;
}

.logo {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.logo::after {
  content: none !important;
}

.logo img {
  display: block;
  height: 44px;
  object-fit: contain;
  width: 44px;
}

.landing-kicker, .landing-kicker.dark, .landing-trust b {
  color: var(--ui-blue) !important;
}

.landing-kicker span {
  background: var(--ui-blue) !important;
}

.landing-trust .trust-icon svg {
  stroke: var(--ui-blue) !important;
}

.landing-nav .landing-links a {
  color: #334155 !important;
}

.landing-nav .landing-links a:hover, .landing-nav .landing-links a.active {
  color: var(--ui-blue) !important;
}

.landing-nav .landing-links a::after {
  background: var(--ui-blue) !important;
}

.landing-nav .landing-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.pills, .case-tabs, .member-search-form, .onboarding-progress {
  background: var(--ui-surface-muted) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: none !important;
}

.pills a, .case-tab {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: var(--ui-radius-sm) !important;
  box-shadow: none !important;
  color: var(--ui-text-soft) !important;
}

.pills a:hover, .case-tab:hover {
  background: #e2e8f0 !important;
  color: var(--ui-text) !important;
}

.pills .on, .case-tab.active {
  background: var(--ui-blue) !important;
  border-color: var(--ui-blue) !important;
  color: #fff !important;
}

.account-profile, .account-action, .logout {
  border-radius: var(--ui-radius) !important;
  box-shadow: none !important;
}

.account-profile:hover, .account-profile.on {
  background: var(--ui-blue-soft) !important;
  color: var(--ui-blue) !important;
}

.account-avatar, .account-profile img {
  border: 1px solid var(--ui-border) !important;
  box-shadow: none !important;
}

.nav-badge {
  background: var(--ui-danger) !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

body:not(.mobile-tap-page):not(.landing-body) button:not(.landing-menu-toggle):not(.app-topnav__avatar),
.button,
.back-link,
.account-action,
.logout,
.landing-button {
  align-items: center;
  background: var(--button-bg, var(--form-primary)) !important;
  background-image: var(--button-background-image, none) !important;
  border: var(--button-border, 1px solid var(--form-primary)) !important;
  border-radius: var(--radius-button) !important;
  box-shadow: var(--button-shadow, none) !important;
  color: var(--button-color, #fff) !important;
  display: inline-flex;
  font-weight: 500;
  height: auto;
  justify-content: center;
  min-height: var(--form-control-height);
  padding: 4px 15px;
  transform: none !important;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

body:not(.mobile-tap-page):not(.landing-body) button:not(.landing-menu-toggle):not(.app-topnav__avatar):hover,
.button:hover,
.back-link:hover,
.account-action:hover,
.logout:hover,
.landing-button:hover {
  background: var(--button-hover-bg, var(--form-primary-hover)) !important;
  background-image: var(--button-hover-background-image, var(--button-background-image, none)) !important;
  border-color: var(--button-hover-border, var(--form-primary-hover)) !important;
  box-shadow: none !important;
  color: var(--button-hover-color, #fff) !important;
  transform: none !important;
}

body:not(.mobile-tap-page):not(.landing-body) button:not(.landing-menu-toggle):not(.app-topnav__avatar):active,
.button:active,
.landing-button:active {
  background: var(--form-primary-active) !important;
  border-color: var(--form-primary-active) !important;
  transform: none !important;
}

.secondary,
.plain,
.button-default,
.landing-button-ghost,
.landing-button-link,
.landing-button-light {
  --button-bg: #fff;
  --button-border: 1px solid var(--form-border);
  --button-color: rgba(0, 0, 0, .85);
  --button-hover-bg: #fff;
  --button-hover-border: var(--form-primary);
  --button-hover-color: var(--form-primary);
  background: #fff !important;
  border-color: var(--form-border) !important;
  box-shadow: none !important;
  color: rgba(0, 0, 0, .85) !important;
}

.secondary:hover,
.plain:hover,
.button-default:hover,
.landing-button-ghost:hover,
.landing-button-link:hover,
.landing-button-light:hover {
  background: #fff !important;
  border-color: var(--form-primary) !important;
  color: var(--form-primary) !important;
}

button[type="reset"],
.button-reset,
.btn-reset {
  --button-bg: var(--form-reset);
  --button-border: 1px solid var(--form-reset);
  --button-color: #fff;
  --button-hover-bg: var(--form-reset-hover);
  --button-hover-border: var(--form-reset-hover);
  --button-hover-color: #fff;
  background: var(--form-reset) !important;
  border-color: var(--form-reset) !important;
  color: #fff !important;
}

button[type="reset"]:hover,
.button-reset:hover,
.btn-reset:hover {
  background: var(--form-reset-hover) !important;
  border-color: var(--form-reset-hover) !important;
  color: #fff !important;
}

.form-filter-tag {
  background: transparent;
  border: 0;
  border-radius: var(--form-radius);
  color: rgba(0, 0, 0, .85);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  min-height: 24px;
  padding: 1px 8px;
}

.form-filter-tag:hover {
  color: var(--form-primary);
}

.form-filter-tag.is-active,
.form-filter-tag[aria-pressed="true"] {
  background: var(--form-primary);
  color: #fff;
}

body:not(.mobile-tap-page) button.danger, .danger {
  background: var(--ui-danger) !important;
  border-color: var(--ui-danger) !important;
  color: #fff !important;
}

body:not(.mobile-tap-page):not(.landing-body) button:disabled, .button[aria-disabled="true"] {
  background: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed;
  opacity: 1 !important;
}

button:focus-visible, .button:focus-visible, a:focus-visible {
  outline: 2px solid var(--form-primary) !important;
  outline-offset: 1px !important;
}

input:not([type="hidden"]), select, textarea {
  background: var(--field-bg, #fff) !important;
  background-image: none !important;
  border: var(--field-border, 1px solid var(--form-border)) !important;
  border-radius: var(--field-radius, var(--form-radius)) !important;
  box-shadow: var(--field-shadow, none) !important;
  color: rgba(0, 0, 0, .85) !important;
  font-size: 14px;
  line-height: 1.5715;
  min-height: var(--form-control-height);
  opacity: 1;
  padding: 4px 11px;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23bfbfbf' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") !important;
  background-position: right 11px center !important;
  background-repeat: no-repeat !important;
  background-size: 10px 7px !important;
  box-sizing: border-box;
  padding-right: 30px !important;
}

select[multiple], select[size]:not([size="1"]) {
  background-image: none !important;
  padding-right: 11px !important;
}

input:not([type="hidden"]):hover, select:hover, textarea:hover {
  border-color: var(--field-hover-border, var(--form-primary)) !important;
}

input:not([type="hidden"]):focus, select:focus, textarea:focus {
  background: var(--field-bg, #fff) !important;
  border-color: var(--field-focus-border, var(--form-primary)) !important;
  box-shadow: var(--field-focus-shadow, var(--form-focus)) !important;
  outline: none !important;
}

input::placeholder, textarea::placeholder {
  color: var(--form-placeholder) !important;
  font-style: normal !important;
  opacity: 1 !important;
}

.form-help,
#case-upload-form .case-upload-help,
#case-upload-form .upload-quota {
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

input:disabled, select:disabled, textarea:disabled {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

input[type="file"] {
  padding: 5px !important;
}

textarea {
  --field-radius: var(--textarea-radius, var(--form-radius));
  min-height: 64px;
  padding: 4px 11px;
}

input[type="file"]::file-selector-button {
  background: var(--form-primary);
  border: 0;
  border-radius: var(--form-radius);
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  margin-right: 10px;
  padding: 4px 12px;
}

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--ui-blue) !important;
  border: 1px solid var(--ui-border-strong) !important;
  box-shadow: none !important;
  min-height: auto;
}

input[type="checkbox"] {
  border-radius: 3px !important;
}

input[type="radio"] {
  border-radius: 50% !important;
}

input[type="range"] {
  accent-color: var(--ui-blue);
  background: #dbe3ef !important;
  border: 0 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  min-height: 6px;
}

.glass, .reports article, .paper, .case, .stats article, .dashboard-panel, .subscription-panel, .profile-card, .profile-overview, .overview-card, .workflow, .onboarding-card, .onboarding-reward, .table, .risk-panel, .plan-card, .member-card, .archive-item, .step, .analytics-card, .token-card, .feature-card, .application-card, .scene-flow > div, .case-panel, .pricing-card, .customer-search-results {
  background: #fff !important;
  background-image: none !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(225, 228, 235, .86) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card) !important;
}

.glass:hover, .overview-card:hover, .case:hover, .stats article:hover, .feature-card:hover, .pricing-card:hover {
  border-color: var(--ui-border-strong) !important;
  box-shadow: 0 8px 28px -8px rgba(15, 23, 42, .09) !important;
  transform: none !important;
}

[class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "] {
  border-radius: var(--radius-card) !important;
}

.case-compare > div:not(.case-arrow), .accordion-list details, .level-row, .member-fields label {
  background: var(--ui-surface-muted) !important;
  background-image: none !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: none !important;
}

.status-chart div {
  background: #f7f8fb !important;
  background-image: none !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-sm) !important;
  box-shadow: none !important;
}

.stats article::after, .overview-card::after, .paper::before, .landing-orb, .landing-hero::after, .landing-scenes::after {
  display: none !important;
}

.clean-stats article, .clean-stats .overview-card {
  min-height: 112px;
  padding: 20px 24px !important;
}

.clean-stats b {
  margin: 0;
}

.clean-stats .metric-label {
  margin-top: 10px !important;
}

.conversion {
  background: #eef2ff !important;
  background-image: none !important;
  border: 1px solid #d6ddf7 !important;
  border-radius: var(--ui-radius-sm) !important;
  box-shadow: none !important;
  color: var(--ui-blue-hover) !important;
}

.conversion small {
  color: var(--ui-muted) !important;
}

.audio-deck {
  background: #eef4ff !important;
  background-image: none !important;
  border: 1px solid #b8caf0 !important;
  border-left: 4px solid var(--ui-blue) !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: none !important;
  color: var(--ui-text) !important;
}

.audio-deck.is-alternate {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  border-left-color: #64748b !important;
}

.audio-deck small {
  color: var(--ui-muted) !important;
}

.bar-row progress {
  background: #dbe3ef !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

.bar-row progress::-webkit-progress-bar {
  background: #dbe3ef !important;
}

.bar-row progress::-webkit-progress-value,
.bar-row progress::-moz-progress-bar {
  background: var(--ui-blue) !important;
  background-image: none !important;
  border-radius: 2px !important;
}

.bar-row progress.high::-webkit-progress-value,
.bar-row progress.high::-moz-progress-bar {
  background: var(--ui-danger) !important;
}

.bar-row progress.medium::-webkit-progress-value,
.bar-row progress.medium::-moz-progress-bar {
  background: var(--ui-warning) !important;
}

.bar-row progress.low::-webkit-progress-value,
.bar-row progress.low::-moz-progress-bar {
  background: var(--ui-success) !important;
}

progress, progress::-webkit-progress-bar {
  background: #dbe3ef !important;
  border: 0 !important;
  border-radius: 3px !important;
}

progress::-webkit-progress-value, progress::-moz-progress-bar {
  background: var(--ui-blue) !important;
  border-radius: 2px !important;
}

.flag, .notice-error, .risk-review-notice, .risk-line {
  background: var(--ui-danger-soft) !important;
  border: 1px solid #fecaca !important;
  border-radius: var(--ui-radius-sm) !important;
  box-shadow: none !important;
  color: #b91c1c !important;
}

.safe, .notice-success {
  background: var(--ui-success-soft) !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: var(--ui-radius-sm) !important;
  box-shadow: none !important;
  color: #047857 !important;
}

.record-heading, .workflow-grid .step.on {
  background: var(--ui-blue-soft) !important;
  background-image: none !important;
  border: 1px solid #c3d2de !important;
  border-radius: var(--ui-radius) !important;
  box-shadow: none !important;
  color: var(--ui-blue-hover) !important;
}

.workflow-grid {
  position: relative;
}

.workflow-grid .step {
  border-top: 3px solid #cbd5e1 !important;
}

.workflow-grid .step.on {
  border-top-color: var(--ui-blue) !important;
}

.case.high {
  border-color: #fecaca !important;
  box-shadow: inset 3px 0 0 var(--ui-danger) !important;
}

.case > span, .case-main > span, .danger-dialog-icon, .regenerate-dialog-icon, .feature-icon {
  background: var(--ui-blue) !important;
  background-image: none !important;
  border: 1px solid var(--ui-blue) !important;
  border-radius: var(--ui-radius-sm) !important;
  box-shadow: none !important;
  color: #fff !important;
}

.case em, .case-ai-status, .metric-label, .case-meta span, .risk-review-state, .pricing-badge, .pricing-level, .plan-level {
  border-radius: var(--ui-radius-sm) !important;
  box-shadow: none !important;
}

.case-ai-status, .case em {
  background: var(--ui-blue-soft) !important;
  border: 1px solid #c3d2de !important;
  color: var(--ui-blue-hover) !important;
}

dialog:not(.auth-binding-dialog) {
  background: #fff !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--ui-float-shadow) !important;
}

dialog:not(.auth-binding-dialog)::backdrop {
  background: rgba(15, 23, 42, .52) !important;
  backdrop-filter: none !important;
}

.customer-search-results {
  background: #fff !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--radius-button) !important;
  box-shadow: var(--ui-float-shadow) !important;
}

.customer-search-results button {
  background: #fff !important;
  border: 0 !important;
  border-radius: var(--ui-radius-sm) !important;
  box-shadow: none !important;
  color: var(--ui-text) !important;
}

.customer-search-results button:hover, .customer-search-results button.is-active {
  background: var(--ui-blue-soft) !important;
  color: var(--ui-blue-hover) !important;
}

.landing-hero, .landing-scenes, .landing-features, .landing-cases, .landing-pricing {
  background: var(--ui-bg) !important;
  background-image: none !important;
  color: var(--ui-text) !important;
}

.landing-features, .landing-scenes, .landing-pricing {
  background: #fff !important;
}

.landing-applications, .landing-cases {
  background: #f8fafc !important;
}

.landing-hero h1 span {
  background: none !important;
  color: var(--ui-blue) !important;
}

.landing-body h1, .landing-body h2, .landing-body h3 {
  color: #0f172a !important;
}

.landing-body .landing-lead, .landing-body .landing-section-heading > p:last-child, .landing-body .feature-card > p, .landing-body .application-card > p {
  color: #64748b !important;
}

.landing-body .feature-icon, .landing-body .application-icon {
  background: #eef3f7 !important;
  background-image: none !important;
  border: 1px solid #d8e3ec !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--ui-blue) !important;
}

.landing-body .feature-icon svg, .landing-body .application-icon svg {
  stroke: currentColor !important;
}

.landing-body .feature-checks li {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

.landing-body .application-card.featured {
  border: 2px solid var(--ui-blue) !important;
}

.landing-bottom-cta {
  background: #0f172a !important;
  color: #fff !important;
}

.landing-bottom-cta h2 {
  color: #fff !important;
}

.landing-bottom-cta .landing-button-light {
  background: #fff !important;
  border-color: #fff !important;
  color: #102f50 !important;
}

.landing-bottom-cta .landing-button-outline-light {
  background: transparent !important;
  border-color: #64748b !important;
  color: #fff !important;
}

.landing-bottom-cta .landing-button-outline-light:hover {
  background: #1e293b !important;
  border-color: #94a3b8 !important;
  color: #fff !important;
}

.landing-footer {
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

.landing-footer h3, .landing-footer .footer-brand {
  color: #fff !important;
}

.pricing-card.featured {
  border: 2px solid var(--ui-blue) !important;
}

.pricing-badge {
  background: var(--ui-blue) !important;
  color: #fff !important;
}

.plan-card.current {
  background: var(--ui-blue-soft) !important;
  border: 2px solid var(--ui-blue) !important;
  box-shadow: none !important;
}



.mobile-tap-page {
  --mt-purple: #8b74f0;
  --mt-purple-deep: #6d55d8;
  --mt-ink: #1a1a1f;
  --mt-muted: #9a93a8;
  --mt-line: #e7e1f5;
  --blue: #8b74f0;
  --indigo: #8b74f0;
  --ink: var(--mt-ink);
  --muted: var(--mt-muted);
  --red: #e94b67;
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(186, 168, 255, .55) 0%, rgba(214, 204, 255, .28) 38%, rgba(247, 245, 252, 0) 72%),
    linear-gradient(180deg, #e4ddf8 0%, #efeaf9 34%, #f7f5fb 68%, #fbfafc 100%) !important;
  background-image:
    radial-gradient(120% 70% at 50% -8%, rgba(186, 168, 255, .55) 0%, rgba(214, 204, 255, .28) 38%, rgba(247, 245, 252, 0) 72%),
    linear-gradient(180deg, #e4ddf8 0%, #efeaf9 34%, #f7f5fb 68%, #fbfafc 100%) !important;
  color: var(--mt-ink) !important;
  font: 400 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.mobile-tap-page.mt-modal-open {
  overflow: hidden;
}

.mobile-tap-page .app {
  background: transparent;
  box-sizing: border-box;
  height: 100svh;
  margin: 0 auto;
  max-width: 430px;
  overflow: hidden;
  padding: max(14px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  position: relative;
  width: 100%;
}

.mobile-tap-page .mt-stage {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.mobile-tap-page .mt-top {
  align-items: center;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  margin-bottom: 8px;
}

.mobile-tap-page .mt-title {
  color: #7a7194;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
  text-align: center;
}

.mobile-tap-page .mt-icon-btn {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(80, 60, 140, .1);
  color: #4a4458;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 42px;
}

.mobile-tap-page .mt-icon-btn svg {
  display: block;
  height: 18px;
  width: 18px;
}

.mobile-tap-page .mt-icon-btn--sm {
  height: 34px;
  width: 34px;
}

.mobile-tap-page .mt-copy {
  margin: 28px 8px 0;
  text-align: center;
}

.mobile-tap-page .mt-hero-line {
  font-size: clamp(18px, 5.2vw, 22px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.35;
  margin: 0;
}

.mobile-tap-page .mt-caption-muted,
.mobile-tap-page .mt-caption-strong {
  color: #9a90b4;
}

.mobile-tap-page .mt-status {
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.mobile-tap-page .mt-orb-wrap {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 0;
  place-content: center;
  position: relative;
}

.mobile-tap-page .mt-blob {
  background: rgba(168, 145, 245, .28);
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.mobile-tap-page .mt-blob--a {
  animation: mt-blob-float 7s ease-in-out infinite;
  height: min(78vw, 320px);
  opacity: .55;
  width: min(78vw, 320px);
}

.mobile-tap-page .mt-blob--b {
  animation: mt-blob-float 8.5s ease-in-out infinite reverse;
  background: rgba(155, 132, 240, .22);
  border-radius: 54% 46% 50% 50% / 48% 54% 46% 52%;
  height: min(66vw, 270px);
  opacity: .7;
  width: min(66vw, 270px);
}

.mobile-tap-page .mt-blob--c {
  animation: mt-blob-float 6.2s ease-in-out infinite;
  background: rgba(180, 160, 255, .2);
  border-radius: 46% 54% 52% 48% / 54% 48% 52% 46%;
  height: min(54vw, 220px);
  opacity: .85;
  width: min(54vw, 220px);
}

.mobile-tap-page .mt-blob--d {
  background: rgba(140, 120, 230, .16);
  border-radius: 50%;
  height: min(46vw, 190px);
  width: min(46vw, 190px);
}

.mobile-tap-page.is-recording .mt-blob--a,
.mobile-tap-page.is-recording .mt-blob--b,
.mobile-tap-page.is-recording .mt-blob--c {
  animation-duration: 3.2s;
}

@keyframes mt-blob-float {
  0%, 100% { transform: translate(-50%, -50%) scale(.96) rotate(0deg); }
  50% { transform: translate(-52%, -48%) scale(1.05) rotate(4deg); }
}

.mobile-tap-page .mt-orb {
  align-items: center;
  background: linear-gradient(155deg, #b7a4ff 0%, #8b74f0 45%, #6d55d8 100%);
  border-radius: 50%;
  box-shadow: 0 20px 44px rgba(100, 75, 200, .28);
  display: flex;
  height: min(40vw, 168px);
  justify-content: center;
  position: relative;
  width: min(40vw, 168px);
  z-index: 1;
}

.mobile-tap-page .mt-orb.is-recording {
  box-shadow: 0 24px 50px rgba(100, 75, 200, .34);
}

.mobile-tap-page .mt-timer {
  color: #fff;
  font-size: clamp(28px, 7.2vw, 36px);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
}

.mobile-tap-page .mt-controls {
  align-items: center;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  margin: 10px 4px 18px;
  padding: 0 4px;
  position: relative;
  width: 100%;
}

.mobile-tap-page .mt-controls .mt-main-halo {
  justify-self: center;
}

.mobile-tap-page .mt-controls #retryBtn {
  justify-self: start;
}

.mobile-tap-page .mt-controls #trashBtn {
  justify-self: end;
}

.mobile-tap-page .mt-side-btn {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(60, 45, 110, .16);
  color: #1f1a2a;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.mobile-tap-page .mt-side-btn:disabled {
  background: #fff;
  box-shadow: 0 10px 24px rgba(60, 45, 110, .16);
  color: #1f1a2a;
  cursor: not-allowed;
  opacity: 1;
}

.mobile-tap-page .mt-side-btn svg,
.mobile-tap-page .mt-side-btn .mt-icon-trash {
  color: #1f1a2a;
  display: block;
  flex: 0 0 auto;
  height: 26px;
  stroke: currentColor;
  width: 26px;
}

.mobile-tap-page .mt-main-icon.is-pause svg,
.mobile-tap-page .mt-main-icon svg {
  display: block;
  height: 28px;
  width: 28px;
}

.mobile-tap-page .mt-main-halo {
  align-items: center;
  background: rgba(180, 160, 255, .3);
  border-radius: 999px;
  display: grid;
  height: 104px;
  justify-items: center;
  place-content: center;
  width: 104px;
}

.mobile-tap-page .mt-main-btn {
  align-items: center;
  background: linear-gradient(160deg, #a18ef7 0%, #7a62e8 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(100, 75, 200, .28);
  color: #fff;
  display: inline-flex;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.mobile-tap-page .mt-main-btn:disabled {
  opacity: .55;
}

.mobile-tap-page .mt-main-icon {
  align-items: center;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.mobile-tap-page .mt-main-icon svg {
  display: block;
  height: 26px;
  width: 26px;
}

.mobile-tap-page .mt-finish-hidden {
  display: none;
  height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.mobile-tap-page .mt-sr-only,
.mobile-tap-page .foot {
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.mobile-tap-page .mt-modal,
.mobile-tap-page .mt-drawer {
  inset: 0;
  position: fixed;
  z-index: 50;
}

.mobile-tap-page .mt-modal[hidden],
.mobile-tap-page .mt-drawer[hidden] {
  display: none !important;
}

.mobile-tap-page .mt-modal-backdrop {
  background: rgba(20, 16, 36, .4);
  inset: 0;
  position: absolute;
}

.mobile-tap-page .mt-modal-sheet,
.mobile-tap-page .mt-drawer-sheet {
  background: #fff;
  border-radius: 22px 22px 0 0;
  bottom: 0;
  box-shadow: 0 -12px 32px rgba(40, 20, 90, .14);
  left: 50%;
  max-height: min(82svh, 560px);
  overflow: auto;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  position: absolute;
  transform: translateX(-50%);
  width: min(100%, 430px);
}

.mobile-tap-page .mt-modal-head,
.mobile-tap-page .history-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mobile-tap-page .mt-modal-head h2,
.mobile-tap-page .history-card-head h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.mobile-tap-page .history-card-head span {
  color: var(--mt-muted);
  font-size: 11px;
}

.mobile-tap-page .customer-entry-row {
  margin-bottom: 10px;
}

.mobile-tap-page .customer-entry-row label {
  color: #5c5470;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.mobile-tap-page #customerName,
.mobile-tap-page #customerPhone {
  appearance: none;
  background: #faf8ff;
  border: 1px solid var(--mt-line);
  border-radius: 12px;
  color: var(--mt-ink);
  font: 700 15px/1.3 inherit;
  min-height: 46px;
  outline: none;
  padding: 11px 13px;
  width: 100%;
}

.mobile-tap-page #customerName:focus,
.mobile-tap-page #customerPhone:focus {
  border-color: var(--mt-purple);
  box-shadow: 0 0 0 3px rgba(139, 116, 240, .16);
}

.mobile-tap-page #customerName:disabled,
.mobile-tap-page #customerPhone:disabled {
  background: #f0ecf8;
  color: #7a738c;
}

.mobile-tap-page #customerName::placeholder,
.mobile-tap-page #customerPhone::placeholder {
  color: #a39bb5;
  font-size: 11px;
  font-weight: 600;
}

.mobile-tap-page #customerIdentityHint {
  color: var(--mt-muted);
  font-size: 11px;
  margin: 0 0 10px;
}

.mobile-tap-page .crm-match-badge {
  background: #ecfdf3;
  border: 1px solid #a7e4c0;
  border-radius: 10px;
  color: #137443;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.mobile-tap-page .crm-match-badge.is-new {
  background: #f5f2ff;
  border-color: #ddd2ff;
  color: #5b4a93;
}

.mobile-tap-page .crm-merge-prompt {
  background: #faf8ff;
  border: 1px solid #ddd2ff;
  border-radius: 12px;
  margin: 0 0 10px;
  padding: 10px;
}

.mobile-tap-page .crm-merge-prompt p {
  color: #433a5e;
  font-size: 12px;
  margin: 0;
}

.mobile-tap-page .crm-merge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mobile-tap-page .crm-merge-actions button {
  background: #efeaff;
  border: 1px solid #d5c9ff;
  border-radius: 10px;
  color: #4f3fd1;
  flex: 1 1 140px;
  font: 700 11px/1.25 inherit;
  min-height: 34px;
  padding: 8px;
}

.mobile-tap-page .crm-merge-actions button:first-child {
  background: linear-gradient(160deg, #9b84f5, #7a62e8);
  border-color: transparent;
  color: #fff;
}

.mobile-tap-page .mt-confirm-btn {
  background: linear-gradient(160deg, #9b84f5, #7a62e8);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(100, 75, 200, .22);
  color: #fff;
  font: 700 15px/1.2 inherit;
  min-height: 48px;
  width: 100%;
}

.mobile-tap-page .mt-confirm-btn:disabled {
  background: #d9d2ea;
  box-shadow: none;
  color: #9a93ad;
}

.mobile-tap-page .history-list {
  display: grid;
  gap: 8px;
}

.mobile-tap-page .history-item {
  align-items: center;
  background: #faf8ff;
  border: 1px solid var(--mt-line);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 46px;
  padding: 9px 11px;
}

.mobile-tap-page .history-item > div { min-width: 0; }

.mobile-tap-page .history-item strong {
  color: #2f2940;
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-tap-page .history-item time {
  color: var(--mt-muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.mobile-tap-page .history-status {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font: 600 10px/1.2 inherit;
  gap: 5px;
  min-height: 24px;
  padding: 5px 8px;
  white-space: nowrap;
}

.mobile-tap-page .history-status.is-uploaded { background: #ecfdf5; color: #059669; }
.mobile-tap-page .history-status.is-uploading { background: #efeaff; color: #5b3fd4; }

.mobile-tap-page .history-status.is-uploading::before {
  animation: history-upload-spin .8s linear infinite;
  border: 1.5px solid rgba(91, 63, 212, .2);
  border-radius: 50%;
  border-top-color: currentColor;
  content: "";
  height: 8px;
  width: 8px;
}

.mobile-tap-page .history-status.is-failed {
  background: #fff1f2;
  color: #e11d48;
  cursor: pointer;
}

.mobile-tap-page .history-empty {
  color: var(--mt-muted);
  font-size: 12px;
  margin: 0;
  padding: 14px 0;
  text-align: center;
}

@keyframes history-upload-spin {
  to { transform: rotate(360deg); }
}

.mobile-tap-page .mt-overlay-stack {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 30;
}

.mobile-tap-page .recovery,
.mobile-tap-page .notice,
.mobile-tap-page .complete,
.mobile-tap-page .upload {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(50, 30, 110, .16);
  left: 16px;
  pointer-events: auto;
  position: absolute;
  right: 16px;
  top: 18%;
}

.mobile-tap-page .recovery,
.mobile-tap-page .notice,
.mobile-tap-page .complete {
  display: none;
  padding: 16px;
}

.mobile-tap-page .recovery.show,
.mobile-tap-page .notice.show,
.mobile-tap-page .complete.show {
  display: block;
}

.mobile-tap-page .recovery b,
.mobile-tap-page .notice b {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}

.mobile-tap-page .recovery p,
.mobile-tap-page .notice p {
  color: var(--mt-muted);
  font-size: 12px;
  margin: 0 0 12px;
}

.mobile-tap-page .actions { display: flex; gap: 8px; }

.mobile-tap-page .small {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: 10px;
  flex: 1;
  padding: 11px;
}

.mobile-tap-page .small.primary,
.mobile-tap-page .complete a {
  background: linear-gradient(160deg, #9b84f5, #7a62e8);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.mobile-tap-page .notice.success { background: #f1fbf7; border-color: #ccecdf; }
.mobile-tap-page .notice.error { background: #fff5f7; border-color: #ffd8df; }

.mobile-tap-page .upload {
  display: none;
  padding: 24px 18px;
  text-align: center;
}

.mobile-tap-page .upload.show { display: block; }

.mobile-tap-page .ring {
  background: conic-gradient(var(--mt-purple) calc(var(--progress) * 1%), #ebe4f7 0);
  border-radius: 50%;
  display: grid;
  height: 84px;
  margin: auto;
  place-items: center;
  position: relative;
  width: 84px;
}

.mobile-tap-page .ring::before {
  background: #fff;
  border-radius: 50%;
  content: "";
  inset: 7px;
  position: absolute;
}

.mobile-tap-page .ring span {
  color: var(--mt-purple-deep);
  font-size: 17px;
  font-weight: 800;
  position: relative;
}

.mobile-tap-page .upload p {
  color: var(--mt-muted);
  font-size: 12px;
  margin: 12px 0 0;
}

.mobile-tap-page .complete { text-align: center; }

.mobile-tap-page .complete-mark {
  align-items: center;
  background: linear-gradient(160deg, #9b84f5, #7a62e8);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  margin: 0 auto 12px;
  width: 52px;
}

.mobile-tap-page .complete h2 { font-size: 18px; margin: 0 0 6px; }

.mobile-tap-page .complete p {
  color: var(--mt-muted);
  font-size: 12px;
  margin: 0 auto 14px;
}

.mobile-tap-page .complete .actions { display: grid; gap: 8px; }

.mobile-tap-page .complete a,
.mobile-tap-page .complete button {
  border: 0;
  border-radius: 11px;
  font: 700 13px inherit;
  padding: 12px;
  text-decoration: none;
}

.mobile-tap-page .complete button {
  background: #fff;
  border: 1px solid var(--mt-line);
  color: var(--mt-purple-deep);
}

/* Shared confirm / alert dialog — compact system sheet */
.ui-dialog {
  --ud-purple: #8b74f0;
  --ud-purple-deep: #6d55d8;
  --ud-ink: #1a1a1f;
  --ud-muted: #8a8399;
  --ud-line: #ebe6f4;
  --ud-soft: #f4f1fa;
  --ud-danger: #e94b67;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(26, 22, 40, 0.18);
  color: var(--ud-ink);
  font-family: var(--font-sans);
  margin: auto;
  max-width: min(92vw, 320px);
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.ui-dialog::backdrop {
  background: rgba(22, 18, 34, 0.42);
  backdrop-filter: blur(4px);
}

.ui-dialog-shell {
  background: #fff;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.ui-dialog-copy {
  padding: 22px 16px 18px;
  text-align: center;
}

.ui-dialog #ui-dialog-title {
  color: var(--ud-ink);
  font: 650 16px/1.35 inherit;
  letter-spacing: 0.01em;
  margin: 0;
}

.ui-dialog-message {
  color: var(--ud-muted);
  font: 400 12px/1.4 inherit;
  margin: 8px 0 0;
  white-space: nowrap;
}

.ui-dialog-actions {
  border-top: 1px solid var(--ud-line);
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
}

.ui-dialog.is-alert .ui-dialog-actions {
  grid-template-columns: 1fr;
}

.ui-dialog-btn {
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: 500 15px/1 inherit;
  min-height: 48px;
  padding: 13px 10px;
  transition: background 0.12s ease;
}

.ui-dialog-btn:focus,
.ui-dialog-btn:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

.ui-dialog-btn + .ui-dialog-btn {
  border-left: 1px solid var(--ud-line);
}

.ui-dialog-btn:active {
  background: var(--ud-soft);
}

.ui-dialog-btn--ghost {
  color: #6f687f;
  font-weight: 500;
}

.ui-dialog-btn--primary {
  color: var(--ud-purple-deep);
  font-weight: 650;
}

.ui-dialog-btn--primary.is-danger,
.ui-dialog.is-danger .ui-dialog-btn--primary {
  color: var(--ud-danger);
}

.mobile-tap-page .ui-dialog-btn,
.mobile-tap-page .ui-dialog-btn--ghost,
.mobile-tap-page .ui-dialog-btn--primary {
  opacity: 1;
  width: auto;
}

.landing-hero {
  background-color: var(--ui-bg) !important;
  background-image: radial-gradient(circle, rgba(226, 232, 240, .72) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
}

.landing-container, .landing-nav-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1440px;
  padding-left: clamp(20px, 2.5vw, 40px);
  padding-right: clamp(20px, 2.5vw, 40px);
  width: 100%;
}

.landing-hero-grid {
  gap: clamp(40px, 5vw, 68px);
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
}

.landing-simulator {
  min-height: 540px;
  padding: 0;
  position: relative;
}

.simulator-window {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(226, 232, 240, .85);
  border-radius: 18px;
  box-shadow: 0 30px 70px -24px rgba(15, 23, 42, .25);
  color: var(--ui-text);
  overflow: hidden;
  position: relative;
}

.simulator-topbar {
  align-items: center;
  background: rgba(248, 250, 252, .9);
  border-bottom: 1px solid #eef2f7;
  display: grid;
  gap: 14px;
  grid-template-columns: 66px 1fr auto;
  min-height: 68px;
  padding: 12px 18px;
}

.simulator-dots {
  display: flex;
  gap: 6px;
}

.simulator-dots i {
  background: #ff5f57;
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.simulator-dots i:nth-child(2) { background: #febc2e; }
.simulator-dots i:nth-child(3) { background: #28c840; }

.simulator-title {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-self: center;
}

.simulator-title img {
  border-radius: 7px;
  height: 30px;
  width: 30px;
}

.simulator-title span {
  display: grid;
  line-height: 1.25;
}

.simulator-title b { font-size: 11px; }
.simulator-title small { color: #94a3b8 !important; font-size: 6px; letter-spacing: .13em; }

.simulator-secure {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 8px;
  font-weight: 700;
  gap: 5px;
}

.simulator-secure i {
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #d1fae5;
  height: 5px;
  width: 5px;
}

.simulator-canvas {
  min-height: 404px;
  padding: 24px;
  position: relative;
}

.simulator-role {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.simulator-role span { color: #334155; font-size: 10px; font-weight: 800; }
.simulator-role small { color: #94a3b8 !important; font-size: 8px; }

.simulator-prompt {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  color: #334155;
  font-size: 13px;
  line-height: 1.75;
  margin-top: 10px;
  min-height: 82px;
  padding: 14px 16px;
}

.simulator-cursor {
  animation: simulator-cursor .8s steps(1) infinite;
  background: #0f6b78;
  display: inline-block;
  height: 16px;
  margin-left: 2px;
  transform: translateY(3px);
  width: 2px;
}

.simulator-thinking {
  align-items: center;
  background: linear-gradient(100deg, #ecfeff, #eff6ff);
  border: 1px solid #bae6fd;
  border-radius: var(--ui-radius);
  color: #31566d;
  display: flex;
  font-size: 9px;
  gap: 5px;
  left: 24px;
  opacity: 0;
  padding: 7px 11px;
  pointer-events: none;
  position: absolute;
  top: 154px;
  transform: translateY(7px);
  transition: opacity .45s ease, transform .45s ease;
}

.simulator-thinking b { color: #0e7490; }
.simulator-thinking i { animation: simulator-dot 1.1s ease-in-out infinite; background: #0891b2; border-radius: 50%; height: 3px; width: 3px; }
.simulator-thinking i:nth-last-child(2) { animation-delay: .14s; }
.simulator-thinking i:last-child { animation-delay: .28s; }

.simulator-guidance {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 14px;
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, .25);
  left: 24px;
  opacity: 0;
  padding: 16px;
  position: absolute;
  right: 24px;
  top: 148px;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}

.simulator-guidance-head {
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.simulator-guidance-head span { color: #0f172a; font-size: 11px; font-weight: 800; }
.simulator-guidance-head small { color: #94a3b8 !important; font-size: 7px; }

.simulator-term {
  align-items: flex-start;
  background: #f0f9ff;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
}

.simulator-term small { color: #64748b !important; font-size: 7px; }
.simulator-term strong { color: #164e63; font-size: 10px; }

.simulator-guidance p {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  border-radius: 6px;
  color: #475569;
  font-size: 10px;
  line-height: 1.7;
  margin: 10px 0 0;
  padding: 9px 11px;
}

.simulator-guidance p b { color: #166534; display: block; }

.simulator-status {
  align-items: center;
  background: #fbfdff;
  border-top: 1px solid #eef2f7;
  color: #94a3b8;
  display: flex;
  font-size: 8px;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 20px;
}

.simulator-status span { align-items: center; display: flex; gap: 7px; }
.simulator-status span i { background: #0e7490; border-radius: 50%; height: 5px; width: 5px; }
.simulator-status b { color: #64748b; font-size: 8px; }

.simulator-identity {
  align-items: center;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 12px;
  box-shadow: 0 16px 36px -18px rgba(15,23,42,.28);
  display: flex;
  gap: 9px;
  opacity: 0;
  padding: 10px 12px;
  position: absolute;
  right: -18px;
  top: 88px;
  transform: translate(10px,-8px);
  transition: opacity .5s ease .18s, transform .5s cubic-bezier(.2,.8,.2,1) .18s;
  z-index: 4;
}

.simulator-identity > span { font-size: 17px; }
.simulator-identity div { display: grid; line-height: 1.35; }
.simulator-identity b { color: #1e293b; font-size: 9px; }
.simulator-identity small { color: #64748b !important; font-size: 7px; }

.landing-simulator[data-stage="thinking"] .simulator-thinking,
.landing-simulator[data-stage="result"] .simulator-guidance,
.landing-simulator[data-stage="result"] .simulator-identity {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.landing-simulator[data-stage="thinking"] .simulator-cursor,
.landing-simulator[data-stage="result"] .simulator-cursor { display: none; }

@keyframes simulator-cursor { 50% { opacity: 0; } }
@keyframes simulator-dot { 50% { opacity: .25; transform: translateY(-2px); } }

@media (max-width: 1050px) {
  .landing-hero-grid { grid-template-columns: 1fr 440px; }
  .landing-simulator { min-height: 520px; }
  .simulator-identity { right: -8px; }
}

@media (max-width: 820px) {
  .landing-hero-grid { grid-template-columns: 1fr; }
  .landing-simulator { margin: 0 auto; max-width: 600px; min-height: auto; width: 100%; }
}

@media (max-width: 560px) {
  .simulator-topbar { grid-template-columns: 48px 1fr; padding: 10px 12px; }
  .simulator-title { justify-self: start; }
  .simulator-secure { display: none; }
  .simulator-canvas { min-height: 420px; padding: 16px; }
  .simulator-thinking { left: 16px; right: 16px; top: 164px; }
  .simulator-guidance { left: 16px; right: 16px; top: 158px; }
  .simulator-identity { right: 8px; top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .simulator-cursor, .simulator-thinking i { animation: none; }
}

.landing-body .feature-card, .landing-body .application-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}

.landing-body .feature-card:hover, .landing-body .application-card:hover {
  border-color: #c3d2de !important;
  box-shadow: 0 18px 42px rgba(23, 59, 99, .07) !important;
  transform: translateY(-4px) !important;
}

@keyframes recording-pulse {
  50% {
    opacity: .55;
    transform: scale(.82);
  }
}

@media (max-width: 380px) {
  .mobile-tap-page .intro h1 {
    font-size: 25px;
  }

  .mobile-tap-page .lead {
    font-size: 11px;
  }
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Icon-only left rail kept; large text sidebar panel removed. */

.app-icon-rail {
  --rail-navy: #0B1F44;
  --rail-size: 56px;
  align-items: center;
  background: transparent;
  border: 0;
  bottom: 16px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  left: 16px;
  padding: 0;
  position: fixed;
  top: 16px;
  width: var(--rail-size);
  z-index: 80;
}

.app-icon-rail__mark {
  background: var(--rail-navy);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  display: block;
  flex-shrink: 0;
  height: var(--rail-size);
  overflow: hidden;
  text-decoration: none;
  width: var(--rail-size);
}

.app-icon-rail__mark img {
  border: 0;
  border-radius: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.app-icon-rail__pill {
  align-items: center;
  background: var(--rail-navy);
  border-radius: 999px;
  box-shadow: none;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 60px 6px 16px;
  width: var(--rail-size);
}

.app-icon-rail__icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 0;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.app-icon-rail__icons a {
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  display: flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: center;
  margin: 0 auto;
  text-decoration: none;
  transition: .18s ease;
  width: 40px;
}

.app-icon-rail__icons a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.app-icon-rail__icons a.is-active {
  background: #fff;
  color: var(--rail-navy);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.app-icon-rail__icons .ui-icon {
  display: block;
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 22px;
}

.app-icon-rail__avatar {
  flex-shrink: 0;
  margin-top: auto;
  text-decoration: none;
}

.app-icon-rail__avatar > .user-avatar {
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 13px;
  height: 40px;
  width: 40px;
}

.app-topnav {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ui-border);
  margin-left: 88px;
  position: sticky;
  top: 0;
  z-index: 70;
}

.app-topnav__bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
  margin: 0;
  max-width: none;
  padding: 12px 20px 12px 16px;
  width: 100%;
}

.app-topnav__brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.app-topnav__logo {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
  display: block;
  height: 36px;
  width: 36px;
}

.app-topnav__wordmark {
  align-items: baseline;
  display: inline-flex;
  gap: 6px;
  line-height: 1;
}

.app-topnav__wordmark b {
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.app-topnav__wordmark small {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.app-topnav__pills {
  background: #f1f5f9;
  border-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 6px;
}

.app-topnav__pills a {
  border-radius: 999px;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
  padding: 8px 16px;
  text-decoration: none;
  transition: .18s ease;
}

.app-topnav__pills a:hover {
  background: #fff;
  color: #0f172a;
}

.app-topnav__pills a.is-active {
  background: #d8f99a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
  color: #0f172a;
}

.app-topnav__actions {
  align-items: center;
  display: flex;
  gap: 10px;
  position: relative;
}

.app-topnav__notify,
.app-topnav__avatar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: relative;
  text-decoration: none;
  width: 40px;
}

.app-topnav__notify .ui-icon,
.app-topnav a .ui-icon {
  display: block;
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.app-topnav__notify i {
  align-items: center;
  background: #ff5d72;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -4px;
  top: -4px;
}

.app-topnav__account {
  position: relative;
}

.app-topnav__avatar {
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.app-topnav__avatar > .user-avatar {
  font-size: 14px;
  height: 100%;
  width: 100%;
}

.app-topnav__account-menu {
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  box-shadow: var(--ui-float-shadow);
  display: grid;
  gap: 2px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  z-index: 120;
}

.app-topnav__account-menu > header {
  align-items: center;
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  gap: 9px;
  margin-bottom: 4px;
  padding: 4px 6px 10px;
}

.app-topnav__account-menu > header > .user-avatar {
  font-size: 14px;
  height: 36px;
  width: 36px;
}

.app-topnav__account-menu a {
  align-items: center;
  border-radius: 10px;
  color: var(--ui-text);
  display: grid;
  gap: 2px;
  grid-template-columns: 22px 1fr auto;
  padding: 10px;
  text-decoration: none;
}

.app-topnav__account-menu a:hover {
  background: var(--ui-surface-muted);
}

.app-topnav__account-menu a small,
.app-topnav__account-menu a strong {
  color: var(--ui-muted);
  font-size: 11px;
}

.user-avatar {
  border-radius: 50%;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-weight: 800;
  object-fit: cover;
  place-items: center;
}

.user-avatar--profile {
  border: 3px solid rgba(197,168,128,.7);
  font-size: 31px;
  height: 78px;
  width: 78px;
}

html:has(> body.jianfa-app:not(.mobile-tap-page):not(.login)),
body.jianfa-app:not(.mobile-tap-page):not(.login) {
  background: var(--app-canvas) !important;
}

.app-shell {
  background: transparent;
  border-radius: 0;
  margin: 0 0 0 88px;
  min-height: calc(100vh - 64px);
  padding: 0;
  width: auto;
}

body.jianfa-app .app-shell > main {
  background: var(--ui-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  max-width: none;
  min-height: calc(100vh - 64px);
  padding: 24px 28px 40px;
  width: 100%;
}

/* Same-origin legacy case workspace embedded by the CRM negotiation analysis view. */
html.legacy-embedded-frame body.jianfa-app {
  background: #fff;
  min-width: 0;
}

html.legacy-embedded-frame body.jianfa-app .app-icon-rail,
html.legacy-embedded-frame body.jianfa-app .app-topnav,
html.legacy-embedded-frame body.jianfa-app .app-bottom-nav {
  display: none;
}

html.legacy-embedded-frame body.jianfa-app .app-shell {
  border-radius: 0;
  margin: 0;
  min-height: 100vh;
  padding: 14px 20px 22px;
}

html.legacy-embedded-frame body.jianfa-app .app-shell > main {
  margin: 0;
  max-width: none;
  padding: 4px 0 48px;
}

body.jianfa-app .page-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding-bottom: 4px;
}

body.jianfa-app .page-heading h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
}

body.jianfa-app .page-heading .eyebrow {
  color: var(--ui-blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}

body.jianfa-app .page-heading .muted {
  margin-top: 6px;
}

/* Member management is part of the modern app shell and owns this layout. */

.app-bottom-nav {
  display: none;
}

.app-bottom-nav a {
  text-decoration: none;
}

.app-bottom-nav .ui-icon {
  display: block;
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  width: 22px;
}

.dashboard-hero-card {
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  margin-bottom: 22px;
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.dashboard-hero-card__copy {
  padding: 36px 30px 32px 42px;
  position: relative;
  z-index: 1;
}

.dashboard-hero-card__copy h2 {
  font-size: clamp(28px, 3vw, 43px);
  letter-spacing: -.04em;
}

.dashboard-hero-card__copy > p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 16px;
  margin: 14px 0 24px;
  max-width: 560px;
}

.dashboard-hero-card__copy > p b {
  color: var(--accent-blue);
  font-size: 1.2em;
}

.dashboard-hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-hero-card > img {
  align-self: stretch;
  height: 100%;
  justify-self: stretch;
  mix-blend-mode: multiply;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.approval-card {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.approval-card__heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.approval-card__heading > span {
  background: #FFF3E3;
  border-radius: var(--ui-radius-sm);
  color: #B65C00;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
}

.approval-card__decision {
  color: var(--text-muted);
  display: grid;
  font-size: 12px;
  gap: 6px;
}

.approval-card__actions {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(110px, .7fr) minmax(190px, 1.3fr);
}

body.jianfa-app button.approval-action--reject {
  --button-bg: #EEF1F6;
  --button-border: 1px solid transparent;
  --button-color: #56617A;
  --button-hover-bg: #E3E7EF;
  --button-hover-border: transparent;
  --button-hover-color: #354058;
  --button-hover-shadow: none;
  --button-shadow: none;
}

body.jianfa-app button.approval-action--approve {
  --button-bg: var(--accent-blue);
  --button-background-image: none;
  --button-border: 1px solid transparent;
}

@media (max-width: 767px) {
  .app-icon-rail {
    display: none;
  }

  .app-topnav {
    margin-left: 0;
  }

  .app-topnav__pills {
    order: 3;
    width: 100%;
  }

  .app-shell {
    border-radius: 0;
    margin: 0;
    min-height: calc(100vh - 64px);
    padding: 0;
  }

  body.jianfa-app .app-shell > main {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    padding: max(14px, env(safe-area-inset-top)) 14px calc(104px + env(safe-area-inset-bottom));
  }

  body.jianfa-app .page-heading {
    align-items: flex-start;
    margin: 8px 2px 16px;
  }

  body.jianfa-app .page-heading h1 {
    font-size: 28px;
  }

  .app-bottom-nav {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: var(--ui-float-shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 68px;
    left: 12px;
    padding: 7px;
    position: fixed;
    right: 12px;
    z-index: 100;
  }

  .app-bottom-nav a {
    align-items: center;
    border-radius: 14px;
    color: var(--ui-muted);
    display: flex;
    flex-direction: column;
    font-size: 18px;
    gap: 2px;
    justify-content: center;
    min-height: 52px;
    position: relative;
  }

  .app-bottom-nav a.is-active {
    background: var(--ui-blue-soft);
    color: var(--ui-blue-hover);
  }

  .app-bottom-nav small {
    color: inherit !important;
    font-size: 10px;
  }

  .dashboard-hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
  }

  .dashboard-hero-card__copy {
    padding: 26px 22px 10px;
  }

  .dashboard-hero-card__copy h2 {
    font-size: 30px;
  }

  .dashboard-hero-card__copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .dashboard-hero-card > img {
    height: 170px;
    justify-self: stretch;
    margin-top: 0;
    width: 100%;
  }

  .approval-card {
    border-radius: var(--radius-card);
    padding: 20px;
  }

  .approval-card__decision {
    display: none;
  }

  .approval-card__actions {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.45fr);
    position: sticky;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body.jianfa-app button.approval-action {
    min-height: 54px;
    padding: 11px 12px;
  }
}

.clean-stats article, .clean-stats .overview-card {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.clean-stats b {
  font-weight: 900 !important;
  letter-spacing: -.035em;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 2px 8px rgba(15,23,42,.06);
  z-index: 1;
}

.metric-watermark {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  color: var(--ui-blue);
  fill: none;
  height: 36px;
  opacity: 1;
  padding: 0 !important;
  pointer-events: none;
  position: absolute;
  right: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  z-index: 0;
}

.metric-watermark-risk {
  color: #c2410c;
}

.metric-watermark-success {
  color: #047857;
}

.metric-label {
  position: relative;
  z-index: 1;
}

.mini-avatar, .case-customer-avatar {
  align-items: center !important;
  background: #e8eff5 !important;
  border: 1px solid #c3d2de !important;
  border-radius: var(--identity-avatar-radius, 50%) !important;
  color: var(--ui-blue) !important;
  display: inline-flex !important;
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 800;
  justify-content: center;
}

.mini-avatar {
  font-size: 10px;
  height: 24px;
  width: 24px;
}

.case-main > .case-customer-avatar {
  font-size: 13px;
  height: 36px;
  width: 36px;
}

.person-chip, .case-person-line {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.case-person-line {
  min-width: 0;
}

.case-person-line small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-meta .person-chip {
  padding-left: 4px !important;
}

.case-list .case {
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease !important;
}

.case-list .case:hover {
  background: rgba(232, 239, 245, .62) !important;
  border-color: #c3d2de !important;
  cursor: pointer;
}

.case-list .case:active {
  transform: scale(.995) !important;
}

table thead th, .table thead th {
  background: #f8fafc !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

table tbody tr:nth-child(even), .table tbody tr:nth-child(even) {
  background: rgba(248,250,252,.75);
}

table tbody tr {
  transition: background-color .15s ease;
}

table tbody tr:hover {
  background: rgba(232,239,245,.62) !important;
}

.empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--ui-radius);
  color: #94a3b8;
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: 38px 24px;
  text-align: center;
}

.empty-state.compact {
  min-height: 178px;
}

.empty-state svg {
  fill: none;
  height: 56px;
  margin-bottom: 14px;
  opacity: .55;
  stroke: #94a3b8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  width: 56px;
}

.empty-state strong {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 5px;
}

.empty-state span {
  color: #94a3b8;
  font-size: 13px;
}

.skeleton-stack {
  display: grid;
  gap: 12px;
  padding: 12px 0;
}

.skeleton-stack > span {
  animation: jianfa-skeleton 1.45s ease-in-out infinite;
  background: #e2e8f0;
  border-radius: 4px;
  display: block;
  height: 14px;
  width: 100%;
}

.skeleton-stack > span:nth-child(2) {
  animation-delay: .1s;
  width: 86%;
}

.skeleton-stack > span:nth-child(3) {
  animation-delay: .2s;
  width: 64%;
}

.skeleton-stack small {
  color: #94a3b8;
  margin-top: 4px;
}

@keyframes jianfa-skeleton {
  0%,100% { opacity: .45; } 50% { opacity: 1; }
}

body:not(.mobile-tap-page) button:not(:disabled), a.button, .overview-card, .landing-button, [role="button"] {
  transition-property: transform, background-color, border-color, color, box-shadow !important;
  transition-duration: .15s !important;
}

body:not(.mobile-tap-page) button:not(:disabled):active, a.button:active, .overview-card:active, .landing-button:active, [role="button"]:active {
  transform: scale(.97) !important;
}

@media (max-width: 760px) {
  .metric-watermark {
    height: 36px;
    padding: 0;
    right: 16px;
    width: 36px;
  }

  .case-person-line small {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  .pills {
    background: transparent !important;
    border: 0 !important;
  }
}

@media (min-width: 621px) and (max-width: 820px) {
  .landing-menu, .landing-menu.open {
    background: #fff !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius) !important;
    box-shadow: var(--ui-float-shadow) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .mobile-tap-page .mt-blob--a,
  .mobile-tap-page .mt-blob--b,
  .mobile-tap-page .mt-blob--c {
    animation: none !important;
  }

  .mobile-tap-page .history-status.is-uploading::before {
    animation: none !important;
  }
}

/* AI获客中心 MVP — professional internal SaaS accents (CRM SPA + legacy shell) */
/* AI获客中心 — internal SaaS surface (scoped under .crm-spa via pages) */
.mkt-center-banner {
  border-radius: 0.5rem;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0c4a6e;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
}
.mkt-center {
  --mkt-ink: #0f172a;
  --mkt-muted: #64748b;
  --mkt-line: #e2e8f0;
  --mkt-surface: #ffffff;
  --mkt-soft: #f8fafc;
}
.mkt-center-nav a { text-decoration: none; }
.crm-spa .mkt-center table { border-collapse: collapse; width: 100%; }
.crm-spa .mkt-center th,
.crm-spa .mkt-center td { vertical-align: top; }
.crm-spa .mkt-center .mkt-center-empty {
  border-style: dashed;
  text-align: center;
}
.crm-spa .mkt-center .mkt-center-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}
