/* personal-center.css - Extracted styles from personal-center.html */

    :root {
      --navy: #10213a;
      --navy-2: #1b2d48;
      --line: rgba(16,33,58,.16);
      --muted: #617188;
      --text: #182942;
      --bg: #f1f4f9;
      --white: #ffffff;
      --header-light-offset: 96px;
      --sticky-header-offset: 52px;
      --menu-seam-overlap: 2px;
      --hero-bg-1: #0f2340;
      --hero-bg-2: #152f53;
      --hero-border: rgba(16, 32, 58, .4);
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; padding: 0; scrollbar-gutter: auto; }
    body {
      font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      color: var(--text);
      background: var(--bg);
      overflow: hidden;
    }
    a { color: inherit; text-decoration: none; }

    .page-shell { position: relative; }

    .page {
      max-width: 100%;
      margin: 0;
      padding: calc(var(--header-light-offset) + 2px) 0 88px;
      transition: padding-top .18s ease;
      background: #fff;
    }
    body.scrolled-header:not(.menu-open):not(.header-light) .page {
      padding-top: calc(var(--header-light-offset) + 2px);
    }

    .insights-hero {
      background: linear-gradient(180deg, #0d1d39 0%, #0b1730 100%);
      color: #f4f8ff;
      padding: 34px 28px 0;
      border-top: 1px solid rgba(255,255,255,.06);
    }
    .insights-hero-inner {
      max-width: 1220px;
      margin: 0 auto;
      text-align: center;
    }
    .insights-hero h1 {
      margin: 0 0 22px;
      font-family: Georgia, "Times New Roman", "Songti SC", serif;
      font-size: clamp(38px, 5.2vw, 66px);
      font-weight: 500;
      line-height: 1.04;
      letter-spacing: .02em;
    }

    .controls-panel {
      margin: 0;
      padding: 0 0 14px;
      display: grid;
      gap: 0;
      justify-items: center;
    }
    .insights-search {
      width: min(420px, 100%);
      display: grid;
      grid-template-columns: minmax(0, 1fr) 56px;
      gap: 0;
      border: 1px solid rgba(255,255,255,.22);
      min-height: 48px;
      background: rgba(255,255,255,.94);
    }
    .insights-search input {
      border: 0;
      outline: 0;
      padding: 0 16px;
      font-size: 14px;
      color: var(--text);
      background: transparent;
      font-family: inherit;
      width: 100%;
    }
    .insights-search button {
      border: 0;
      border-left: 1px solid rgba(16,33,58,.12);
      background: transparent;
      color: var(--navy-2);
      min-width: 56px;
      font-size: 16px;
      letter-spacing: 0;
      cursor: pointer;
    }

    .tabs {
      display: flex;
      justify-content: center;
      gap: 2px;
      flex-wrap: wrap;
      width: 100%;
      max-width: 1220px;
    }
    .tab-btn {
      border: 0;
      background: transparent;
      color: rgba(255,255,255,.62);
      min-height: 42px;
      padding: 0 16px;
      font-size: 11px;
      letter-spacing: .12em;
      cursor: pointer;
      transition: background .18s ease, color .18s ease;
    }
    .tab-btn.active {
      background: rgba(255,255,255,.08);
      color: #fff;
    }

    .results-head { display: none; }

    .insights-list {
      list-style: none;
      margin: 0 auto;
      padding: 42px 28px 0;
      max-width: 700px;
      background: transparent;
      border: 0;
      box-shadow: none;
    }
    .insight-item + .insight-item {
      margin-top: 10px;
    }
    .insight-link {
      display: block;
      padding: 10px 0 16px;
      transition: opacity .16s ease;
    }
    .insight-link:hover { opacity: .82; }

    .insight-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 6px;
      color: #5b6d86;
      font-size: 9px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .insight-tag {
      display: inline-flex;
      align-items: center;
      color: #4f617a;
      font-weight: 500;
      letter-spacing: .08em;
    }
    .insight-tag::before { content: none; }
    .insight-meta time::before {
      content: "";
      display: inline-block;
      width: 2px;
      height: 2px;
      margin: 0 8px 2px 0;
      border-radius: 999px;
      background: rgba(16,33,58,.32);
      vertical-align: middle;
    }
    .insight-link h2 {
      margin: 0;
      max-width: 640px;
      font-family: Georgia, "Times New Roman", "Songti SC", serif;
      font-weight: 500;
      font-size: clamp(18px, 1.95vw, 26px);
      line-height: 1.18;
      color: #12263f;
      letter-spacing: .005em;
    }

    .article-page {
      max-width: 100%;
      margin: 0;
      padding: calc(var(--header-light-offset) + 2px) 0 88px;
      transition: padding-top .18s ease;
      background: #fff;
    }
    body.scrolled-header:not(.menu-open):not(.header-light) .article-page {
      padding-top: calc(var(--header-light-offset) + 2px);
    }
    .article-hero {
      background: linear-gradient(180deg, #0d1d39 0%, #0b1730 100%);
      color: #f4f8ff;
      padding: 34px 28px 28px;
      border-top: 1px solid rgba(255,255,255,.06);
    }
    .article-hero-inner {
      max-width: 1220px;
      margin: 0 auto;
      text-align: center;
    }
    .article-hero h1 {
      margin: 0 0 16px;
      font-family: Georgia, "Times New Roman", "Songti SC", serif;
      font-size: clamp(24px, 3.2vw, 30px);
      font-weight: 500;
      line-height: 1.06;
      letter-spacing: .02em;
    }
    .article-hero-meta {
      display:flex;
      justify-content:center;
      align-items:center;
      gap:10px;
      flex-wrap:wrap;
      color: rgba(244,248,255,.8);
      font-size: 10px;
      letter-spacing: .14em;
      text-transform: uppercase;
    }
    .article-hero-meta time::before {
      content: "";
      display:inline-block;
      width:2px;
      height:2px;
      margin: 0 8px 2px 0;
      border-radius:999px;
      background: rgba(244,248,255,.7);
      vertical-align: middle;
    }
    .article-content-shell {
      max-width: 700px;
      margin: 0 auto;
      padding: 42px 28px 0;
    }
    .article-intro {
      margin: 0 0 28px;
      color:#495b74;
      font-size:15px;
      line-height:1.95;
    }
    .article-body {
      color:#1a2a43;
      font-size:17px;
      line-height:2;
    }
    .article-body p {
      margin: 0 0 20px;
    }
    .article-footer {
      margin-top: 34px;
      padding-top: 20px;
      border-top: 1px solid rgba(16,33,58,.12);
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:16px;
      flex-wrap:wrap;
    }
    .article-back-link,
    .article-next-link {
      color:#10213a;
      font-size:11px;
      letter-spacing:.12em;
      text-transform:uppercase;
    }
    .empty-state {
      max-width: 1220px;
      margin: 16px auto 0;
      border: 1px dashed rgba(16,33,58,.22);
      background: #fff;
      color: #4b5f7a;
      padding: 24px 28px;
      text-align: center;
      font-size: 14px;
      line-height: 1.8;
    }

    .pagination {
      max-width: 700px;
      margin: 20px auto 0;
      padding: 10px 28px 0;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .page-btn {
      border: 1px solid rgba(16,33,58,.16);
      background: #fff;
      color: var(--navy-2);
      min-width: 32px;
      height: 32px;
      padding: 0 10px;
      font-size: 12px;
      letter-spacing: .04em;
      cursor: pointer;
    }
    .page-btn.nav-btn {
      border: 0;
      min-width: auto;
      padding: 0 2px 0 8px;
      color: var(--navy);
      font-weight: 600;
    }
    .page-btn.active {
      border-color: var(--navy);
      background: var(--navy);
      color: #fff;
    }
    .page-btn:disabled {
      opacity: .38;
      cursor: not-allowed;
    }

    @media (max-width: 900px) {
      .page {
        padding: calc(var(--header-light-offset) + 2px) 0 72px;
      }
      body.scrolled-header:not(.menu-open):not(.header-light) .page {
        padding-top: calc(var(--header-light-offset) + 2px);
      }
      .insights-hero { padding: 28px 18px 0; }
      .controls-panel { padding-bottom: 12px; gap: 0; }
      .insights-search { min-height: 46px; }
      .insights-search input { font-size: 14px; padding: 0 12px; }
      .insights-search button { min-width: 56px; }
      .tabs { justify-content: flex-start; gap: 2px; overflow-x: auto; padding-bottom: 6px; }
      .tab-btn { flex: 0 0 auto; padding: 0 12px; min-height: 38px; }
      .insight-link { padding: 18px 0 20px; }
      .insight-meta { margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
      .top-nav { gap:18px; flex-wrap:wrap; letter-spacing:.14em; }
      .menu-content { grid-template-columns:1fr; }
      .submenu-layout { grid-template-columns:1fr; gap:16px; }
      .tertiary-panel {
        border-left:0;
        border-top:1px solid rgba(18,35,60,.10);
        padding-left:0;
        padding-top:16px;
        min-height:auto;
      }
      .menu-feature-grid { grid-template-columns:1fr; }
      .sticky-mini-inner,
      .header-inner { padding-left:18px; padding-right:18px; }
    }
    .personal-center-empty {
      height: 100vh;
      min-height: 0;
      padding: var(--header-light-offset) 0 0;
      background: #fff;
      color: #050505;
      overflow: hidden;
      position: relative;
    }
    body.scrolled-header:not(.menu-open):not(.header-light) .page.personal-center-empty {
      padding-top: var(--header-light-offset);
    }
    .orbit-dashboard {
      height: calc(100vh - var(--header-light-offset));
      min-height: 0;
      display: grid;
      place-items: center;
      position: relative;
      padding: clamp(28px, 5vh, 54px) 32px clamp(26px, 4vh, 48px);
      isolation: isolate;
    }
    .orbit-dashboard::before {
      content: "";
      position: absolute;
      inset: 52px 9vw 54px;
      border: 1px solid rgba(0,0,0,.05);
      border-radius: 999px;
      transform: rotate(-8deg);
      pointer-events: none;
    }
    .orbit-dashboard::after {
      content: "";
      position: absolute;
      width: min(520px, 52vw);
      aspect-ratio: 1;
      border: 1px solid rgba(0,0,0,.055);
      border-radius: 50%;
      pointer-events: none;
    }
    .orbit-status {
      position: absolute;
      top: 18px;
      left: 34px;
      display: flex;
      gap: 18px;
      align-items: center;
      color: rgba(0,0,0,.34);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .22em;
    }
    .orbit-status b { color: #111; }
    .orbit-logout {
      position: absolute;
      top: 18px;
      right: 34px;
      border: 0;
      background: transparent;
      color: rgba(0,0,0,.58);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .22em;
      cursor: pointer;
      padding: 0;
    }
    .orbit-logout:hover { color: #000; }
    .center-card {
      width: min(300px, 78vw);
      background: #fff;
      box-shadow: 0 28px 76px rgba(0,0,0,.085);
      border: 1px solid rgba(0,0,0,.045);
      border-radius: 6px;
      z-index: 20;
      overflow: hidden;
    }
    .center-strip { height: 4px; background: #000; }
    .center-card-inner { padding: 24px 26px 22px; }
    .profile-head {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: flex-start;
      margin-bottom: 20px;
    }
    .micro-label {
      display: block;
      color: rgba(0,0,0,.28);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: .26em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }
    .profile-head h1 {
      margin: 0;
      font-size: 32px;
      line-height: .95;
      font-weight: 900;
      font-style: normal;
      letter-spacing: -.05em;
      color: #030303;
      cursor: pointer;
      outline: 0;
    }
    .profile-role-label {
      margin-top: 8px;
      color: rgba(0,0,0,.44);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .12em;
    }
    .avatar-mark {
      width: 50px;
      height: 50px;
      border: 1px solid rgba(0,0,0,.08);
      border-radius: 50%;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      background: transparent;
      padding: 0;
      cursor: pointer;
      overflow: hidden;
    }
    .avatar-mark span {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #000;
      color: #fff;
      font-size: 15px;
      font-weight: 900;
    }
    .avatar-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
    /* 有头像时隐藏首字回落（首字元素保留在 DOM 中，换/删头像后可自动恢复） */
    .avatar-mark.has-avatar span { display: none; }
    .hidden-file { display: none; }
    .profile-fields { display: grid; gap: 16px; }
    .profile-select-wrap { position: relative; border-bottom: 2px solid #000; }
    .profile-select-wrap select {
      width: 100%;
      border: 0;
      outline: 0;
      padding: 8px 22px 8px 0;
      color: #050505;
      font-size: 13px;
      font-weight: 800;
      font-style: italic;
      background: transparent;
      cursor: pointer;
      appearance: none;
    }
    .profile-select-wrap::after {
      content: "⌄";
      position: absolute;
      right: 0;
      bottom: 8px;
      font-size: 13px;
      font-weight: 900;
    }
    .profile-row {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-end;
      border-bottom: 1px solid rgba(0,0,0,.07);
      padding-bottom: 14px;
    }
    .profile-row strong {
      font-family: Consolas, "SFMono-Regular", monospace;
      font-size: 15px;
      letter-spacing: -.02em;
    }
    .profile-row.flat {
      align-items: center;
      padding-bottom: 10px;
    }
    .profile-row.flat strong {
      font-family: inherit;
      font-size: 13px;
      letter-spacing: 0;
    }
    .profile-row .warn { color: #c81e1e; }
    .text-link {
      border: 0;
      background: transparent;
      padding: 0;
      color: #111;
      font-size: 10px;
      font-weight: 900;
      text-decoration: none;
      letter-spacing: .08em;
      cursor: pointer;
    }
    .icon-mini {
      width: 26px;
      height: 26px;
      border: 0;
      border-radius: 50%;
      background: #f1f3f6;
      color: #000;
      font-weight: 900;
      cursor: pointer;
    }
    .upload-box {
      display: grid;
      grid-template-columns: 1fr 94px;
      gap: 12px;
      align-items: stretch;
    }
    .upload-target {
      min-height: 78px;
      border: 2px dashed rgba(0,0,0,.12);
      background: #f7f8fa;
      display: grid;
      place-items: center;
      text-align: center;
      cursor: pointer;
      transition: background .2s ease, color .2s ease, border-color .2s ease;
    }
    .upload-target:hover { background: #000; color: #fff; border-color: #000; }
    .upload-target span { font-size: 9px; font-weight: 900; letter-spacing: .16em; }
    .upload-note {
      margin: 0;
      color: rgba(0,0,0,.34);
      font-size: 10px;
      line-height: 1.7;
    }
    .center-actions {
      margin-top: 22px;
      padding-top: 18px;
      border-top: 1px solid rgba(0,0,0,.07);
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
    }
    .secure-time {
      color: rgba(0,0,0,.26);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: .14em;
    }
    .agreement-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .agreement-links button {
      border: 0;
      background: transparent;
      padding: 0;
      color: rgba(0,0,0,.32);
      font: inherit;
      cursor: pointer;
    }
    .agreement-links button:hover { color: #000; }
    .save-btn {
      min-height: 40px;
      border: 0;
      background: #000;
      color: #fff;
      padding: 0 22px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .18em;
      cursor: pointer;
      transition: background .2s ease, color .2s ease;
    }
    .save-btn:hover { background: #c3d600; color: #000; }
    .orbit-card {
      width: 218px;
      height: 120px;
      min-height: 0;
      border: 0;
      background: #f8f9fb;
      color: #050505;
      padding: 20px;
      position: absolute;
      text-align: left;
      border-radius: 4px;
      cursor: pointer;
      transition: transform .45s cubic-bezier(.165,.84,.44,1), background .25s ease, color .25s ease, box-shadow .25s ease;
      z-index: 10;
      overflow: hidden;
    }
    .orbit-card.has-pending::after {
      content: "";
      position: absolute;
      top: 12px;
      right: 12px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #e53935;
      box-shadow: 0 0 0 4px rgba(229,57,53,.1);
      z-index: 2;
    }
    .orbit-card:hover {
      background: #000;
      color: #fff;
      transform: scale(1.045) translateY(-8px);
      box-shadow: 0 22px 44px rgba(0,0,0,.12);
    }
    .pos-top-mid:hover,
    .pos-lower-mid:hover {
      transform: translateX(-50%) scale(1.045) translateY(-8px);
    }
    .orbit-card .card-top {
      display: flex;
      justify-content: flex-end;
      align-items: flex-start;
      margin-bottom: 14px;
    }
    .orbit-card:hover p { color: rgba(255,255,255,.62); }
    .lime-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #c3d600;
      box-shadow: 0 0 12px #c3d600;
      flex: 0 0 auto;
    }
    .orbit-icon {
      font-size: 14px;
      font-weight: 900;
      color: currentColor;
    }
    .orbit-card h2 {
      margin: 0 0 6px;
      font-size: 18px;
      line-height: 1;
      font-weight: 900;
      font-style: italic;
      letter-spacing: -.03em;
      color: currentColor;
    }
    .orbit-card p {
      margin: 0;
      color: rgba(0,0,0,.46);
      font-size: 10.5px;
      line-height: 1.5;
    }
    .mini-stack {
      display: flex;
      margin-top: 17px;
      margin-left: 2px;
    }
    .mini-avatar {
      width: 25px;
      height: 25px;
      border-radius: 50%;
      background: #e2e5ea;
      border: 2px solid #fff;
      margin-left: -7px;
    }
    .mini-avatar:first-child { margin-left: 0; }
    .mini-avatar.dark {
      background: #000;
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 9px;
      font-weight: 900;
    }
    .progress-track {
      height: 4px;
      background: rgba(0,0,0,.08);
      margin-top: 18px;
    }
    .progress-fill { height: 100%; background: #000; }
    .orbit-card:hover .progress-track { background: rgba(255,255,255,.16); }
    .orbit-card:hover .progress-fill { background: #c3d600; }
    .bar-row {
      height: 28px;
      display: flex;
      gap: 5px;
      align-items: end;
      margin-top: 16px;
    }
    .bar-row i {
      display: block;
      width: 5px;
      background: #c8ccd3;
    }
    .orbit-card:hover .bar-row i { background: rgba(255,255,255,.36); }
    .orbit-card:hover .bar-row i:nth-child(3) { background: #c3d600; }
    .orbit-card[hidden] { display: none; }
    .role-orbit-card h2 { font-style: normal; }
    .compact-orbit {
      width: 218px;
      height: 120px;
      min-height: 0;
      display: block;
      text-align: left;
      padding: 20px;
    }
    .compact-orbit h2 {
      margin-top: 6px;
      font-size: 18px;
      letter-spacing: -.03em;
    }
    .small-orbit {
      width: 190px;
      height: 104px;
      min-height: 0;
      padding: 16px;
    }
    .small-orbit h2 {
      margin-top: 4px;
      font-size: 16px;
      letter-spacing: -.03em;
    }
    .small-orbit p {
      font-size: 10px;
      line-height: 1.45;
    }
    .pos-top-left { top: 10%; left: 12%; }
    .pos-top-right { top: 10%; right: 12%; }
    .pos-bottom-left { bottom: 9%; left: 12%; }
    .pos-bottom-right { bottom: 9%; right: 12%; }
    .pos-top-mid { top: 5%; left: 50%; transform: translateX(-50%); width: 218px; height: 120px; min-height: 0; text-align: left; }
    .pos-left-mid { top: 44%; left: 6%; }
    .pos-right-mid { top: 53%; right: 6%; }
    .pos-lower-mid { bottom: 4%; left: 50%; transform: translateX(-50%); width: 218px; height: 120px; min-height: 0; }
    .pos-transaction { top: 31%; right: 6.5%; }
    .pos-task-overview { top: 31%; left: 6.5%; }
    .pos-admin-consult { top: 38%; left: 24%; }
    .pos-admin-mocktrial { top: 65%; left: 27%; }
    .pos-admin-invites { top: 38%; right: 24%; }
    .pos-remote-console { top: 65%; right: 27%; }
    button[data-admin-orbit].pos-left-mid { top: 53%; }
    @keyframes orbitFloat {
      0%, 100% { margin-top: 0; }
      50% { margin-top: -10px; }
    }
    .animate-float { animation: orbitFloat 4.2s ease-in-out infinite; }
    .delay-1 { animation-delay: .45s; }
    .delay-2 { animation-delay: 1.1s; }
    .delay-3 { animation-delay: 1.75s; }
    .orbit-modal {
      position: fixed;
      inset: 0;
      z-index: 260;
      display: grid;
      place-items: start center;
      padding: 118px 26px 24px;
      background: rgba(6, 12, 24, .42);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, visibility .2s ease;
    }
    .orbit-modal.open { opacity: 1; visibility: visible; }
    body.orbit-modal-open { overflow: hidden; }
    .page.personal-center-empty {
      transition: opacity .18s ease, visibility .18s ease;
    }
    body.orbit-modal-open .page.personal-center-empty {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .orbit-modal-panel {
      position: relative;
      width: min(900px, 94vw);
      max-height: calc(100vh - 142px);
      overflow: auto;
      background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.14));
      border: 1px solid rgba(255,255,255,.22);
      box-shadow: 0 44px 120px rgba(0,0,0,.26);
      backdrop-filter: blur(14px);
      border-radius: 6px;
    }
    .modal-strip { height: 5px; background: rgba(0,0,0,.82); }
    .modal-body { padding: 34px; position: relative; }
    .modal-head {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: flex-start;
      margin-bottom: 24px;
    }
    .modal-head h2 {
      margin: 0;
      font-size: clamp(34px, 5vw, 56px);
      line-height: .92;
      font-weight: 900;
      font-style: italic;
      letter-spacing: -.05em;
      color: #000;
    }
    .inline-detail-head {
      align-items: flex-end;
      margin-bottom: 14px;
    }
    .inline-detail-head h3 {
      margin: 0;
      font-size: 18px;
      line-height: 1;
      color: #000;
    }
    .modal-close {
      width: 42px;
      height: 42px;
      border: 0;
      background: rgba(255,255,255,.18);
      color: #000;
      font-size: 22px;
      cursor: pointer;
      border-radius: 50%;
    }
    .modal-side-actions {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 10px;
    }
    .modal-side-actions .modal-close {
      width: 32px; height: 32px;
      border: 1px solid rgba(255,255,255,.20);
      border-radius: 50%;
      background: rgba(255,255,255,.08);
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      display: inline-grid;
      place-items: center;
      transition: background .2s, transform .15s, border-color .2s;
      line-height: 1;
    }
    .modal-side-actions .modal-close:hover {
      background: rgba(255,255,255,.18);
      border-color: rgba(255,255,255,.40);
      transform: scale(1.08);
    }

    /* 写信 + 按钮 */
    .modal-compose-btn {
      width: 32px; height: 32px;
      border: 1px solid rgba(255,255,255,.20);
      border-radius: 50%;
      background: rgba(184,8,18,.75);
      color: #fff;
      font-size: 18px;
      font-weight: 300;
      cursor: pointer;
      display: inline-grid;
      place-items: center;
      transition: background .2s, transform .15s, border-color .2s;
      line-height: 1;
    }
    .modal-compose-btn:hover {
      background: rgba(184,8,18,.95);
      border-color: rgba(255,255,255,.40);
      transform: scale(1.08);
    }
    .modal-compose-btn:active { transform: scale(.95); }

    /* 写信表单 */
    .compose-mail-form {
      display: grid;
      gap: 14px;
      padding: 4px 0;
    }
    .compose-mail-form .form-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .compose-mail-form label {
      font-size: 12px;
      color: rgba(255,255,255,.65);
      letter-spacing: .04em;
    }
    .compose-mail-form label small {
      color: rgba(255,255,255,.40);
      font-weight: 400;
      margin-left: 3px;
    }
    .compose-mail-form input,
    .compose-mail-form textarea {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 6px;
      background: rgba(255,255,255,.07);
      color: #fff;
      font-size: 13px;
      font-family: inherit;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      box-sizing: border-box;
    }
    .compose-mail-form input:focus,
    .compose-mail-form textarea:focus {
      border-color: rgba(184,8,18,.65);
      box-shadow: 0 0 0 2px rgba(184,8,18,.12);
    }
    .compose-mail-form input::placeholder,
    .compose-mail-form textarea::placeholder {
      color: rgba(255,255,255,.30);
    }
    .compose-mail-form textarea {
      resize: vertical;
      min-height: 90px;
      line-height: 1.55;
    }
    .compose-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      margin-top: 6px;
    }
    .compose-actions .btn-primary {
      padding: 8px 22px;
      border: 1px solid transparent;
      border-radius: 999px;
      background: #b40812;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background .2s, opacity .2s;
    }
    .compose-actions .btn-primary:hover { background: #c90a15; }
    .compose-actions .btn-primary:disabled {
      opacity: .55;
      cursor: not-allowed;
    }
    .compose-actions .btn-secondary {
      padding: 8px 18px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 999px;
      background: transparent;
      color: rgba(255,255,255,.72);
      font-size: 13px;
      cursor: pointer;
      transition: background .2s, color .2s;
    }
    .compose-actions .btn-secondary:hover {
      background: rgba(255,255,255,.08);
      color: #fff;
    }
    .compose-result {
      margin-top: 10px;
      padding: 10px 14px;
      border-radius: 6px;
      font-size: 13px;
      text-align: center;
    }
    .compose-result.compose-error {
      background: rgba(180,8,18,.15);
      border: 1px solid rgba(180,8,18,.35);
      color: #ff8a8a;
    }
    .modal-lite-action {
      border: 0;
      background: transparent;
      color: rgba(0,0,0,.62);
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      padding: 0 2px;
    }
    .modal-lite-action:hover { color: #000; }
    .modal-search {
      width: 172px;
      min-height: 32px;
      border: 1px solid rgba(0,0,0,.08);
      outline: 0;
      border-radius: 999px;
      background: rgba(255,255,255,.34);
      padding: 0 12px;
      color: #111;
      font-size: 12px;
      font-family: inherit;
    }
    .modal-grid,
    .card-cloud {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 20px;
    }
    .modal-grid.stat-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .modal-grid.stat-pair > .modal-stat {
      height: 124px;
      min-height: 124px;
    }
    .feedback-filter-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 20px;
    }
    .feedback-filter-tab {
      text-align: left;
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }
    .feedback-filter-tab.active {
      border-color: rgba(180,8,18,.44);
      background: rgba(180,8,18,.12);
      transform: translateY(-2px);
    }
    .feedback-filter-tab strong {
      display: block;
      font-size: 28px;
      font-weight: 900;
      letter-spacing: -.04em;
      color: #000;
    }
    .feedback-filter-tab span {
      color: rgba(0,0,0,.42);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .18em;
    }
    .modal-stat,
    .mini-data-card {
      position: relative;
      min-height: 108px;
      padding: 18px;
      background: rgba(255,255,255,.22);
      border: 1px solid rgba(255,255,255,.18);
      display: grid;
      align-content: space-between;
      border-radius: 3px;
    }
    .modal-stat strong {
      display: block;
      font-size: 28px;
      font-weight: 900;
      letter-spacing: -.04em;
      color: #000;
    }
    .modal-stat span {
      color: rgba(0,0,0,.42);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .18em;
    }
    .mini-data-card strong {
      display: block;
      margin-bottom: 10px;
      font-size: 15px;
      line-height: 1.35;
      color: #000;
    }
    .mini-data-card p {
      margin: 0;
      color: rgba(0,0,0,.52);
      font-size: 12px;
      line-height: 1.75;
    }
    .workbuddy-viewer-panel {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 16px;
    }
    .workbuddy-viewer-toolbar {
      display: none;
    }
    .viewer-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #788c5d;
      box-shadow: 0 0 0 5px rgba(120,140,93,.16);
    }
    .viewer-dot.warn { background: #d97757; box-shadow: 0 0 0 5px rgba(217,119,87,.16); }
    .viewer-hint { margin-left: auto; color: rgba(0,0,0,.42); }
    .workbuddy-screen-frame {
      position: relative;
      overflow: hidden;
      background: #10100f;
      border: 1px solid rgba(0,0,0,.26);
      border-radius: 8px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 60px rgba(0,0,0,.2);
      cursor: crosshair;
    }
    .workbuddy-screen-frame img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 10;
      object-fit: contain;
      user-select: none;
    }
    .workbuddy-console-modal {
      width: min(1180px, calc(100vw - 32px));
      overflow: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .workbuddy-console-modal::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .workbuddy-console-body {
      display: flex;
      flex-direction: column;
      padding: 0 !important;
      height: min(820px, 88vh);
      overflow: hidden;
    }
    .remote-console-head {
      flex: 0 0 auto;
      margin: 0;
      padding: 14px 22px;
      border-bottom: 1px solid rgba(255,255,255,.10);
      background: #050507;
      color: #f7f7f7;
    }
    .workbuddy-console-body > .remote-console-head {
      position: absolute;
      top: 16px;
      right: 18px;
      z-index: 4;
      width: auto;
      padding: 0;
      border: 0;
      background: transparent;
      pointer-events: none;
    }
    .workbuddy-console-body > .remote-console-head > div:first-child { display: none; }
    .workbuddy-console-body > .remote-console-head .modal-side-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      pointer-events: auto;
    }
    .remote-console-head h2 { color: #fff; }
    .remote-console-head .micro-label { color: rgba(255,255,255,.46); }
    .workbuddy-console-scroll {
      flex: 1 1 auto;
      overflow: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding: 18px 22px 24px;
      background: #050507;
    }
    .workbuddy-console-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .workbuddy-running-pill {
      min-width: 76px;
      border: 1px solid rgba(255,255,255,.16);
      background: #121216;
      color: rgba(255,255,255,.56);
      border-radius: 999px;
      padding: 8px 12px;
      text-align: center;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
    }
    .workbuddy-running-pill.is-running { color: #fff; border-color: rgba(120,140,93,.72); background: #253018; }
    .workbuddy-console-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
      gap: 12px;
      margin-bottom: 18px;
    }
    .workbuddy-console-summary,
    .workbuddy-console-section,
    .workbuddy-agent-card,
    .workbuddy-config-card,
    .workbuddy-skill-card {
      border: 1px solid rgba(255,255,255,.12);
      background: #0b0b0f;
      border-radius: 4px;
    }
    .workbuddy-console-summary {
      min-height: 150px;
      padding: 18px;
      display: grid;
      align-content: center;
      gap: 10px;
    }
    .workbuddy-console-summary h3,
    .workbuddy-console-section h3 {
      margin: 0;
      color: #fff;
      font-size: 22px;
      line-height: 1.25;
      letter-spacing: 0;
    }
    .workbuddy-console-summary p {
      margin: 0;
      max-width: 680px;
      color: rgba(255,255,255,.58);
      font-size: 13px;
      line-height: 1.8;
    }
    .workbuddy-console-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    .workbuddy-console-stats .modal-stat {
      min-height: 150px;
    }
    .workbuddy-console-section {
      padding: 16px;
      margin-bottom: 16px;
    }
    .section-line-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .section-line-head > span {
      color: rgba(255,255,255,.46);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .08em;
      text-align: right;
    }
    .workbuddy-agent-grid,
    .workbuddy-config-grid,
    .workbuddy-skill-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    .workbuddy-config-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .workbuddy-agent-card,
    .workbuddy-config-card,
    .workbuddy-skill-card {
      min-height: 180px;
      padding: 15px;
      display: grid;
      align-content: flex-start;
      gap: 12px;
      color: #f5f5f5;
    }
    button.workbuddy-agent-card {
      width: 100%;
      border: 1px solid rgba(255,255,255,.12);
      cursor: pointer;
      text-align: left;
      font: inherit;
      transition: border-color .18s ease, background .18s ease;
    }
    button.workbuddy-agent-card:hover {
      border-color: rgba(255,255,255,.34);
      background: #121218;
    }
    .workbuddy-agent-card > em {
      margin-top: auto;
      color: rgba(255,255,255,.72);
      font-style: normal;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .12em;
    }
    .workbuddy-card-topline {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }
    .workbuddy-card-topline strong,
    .workbuddy-config-card > strong {
      color: #fff;
      font-size: 17px;
      line-height: 1.35;
    }
    .workbuddy-card-topline span {
      flex: 0 0 auto;
      border: 1px solid rgba(255,255,255,.18);
      background: #15151b;
      color: rgba(255,255,255,.62);
      border-radius: 999px;
      padding: 4px 8px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
    }
    .workbuddy-card-topline span.is-running { color: #dff5c4; border-color: rgba(120,140,93,.72); background: #253018; }
    .workbuddy-card-topline span.is-off { color: #4E5A70; border-color: rgba(78,90,112,.3); background: rgba(78,90,112,.2); }
    .workbuddy-agent-card p,
    .workbuddy-skill-card p {
      margin: 0;
      color: rgba(255,255,255,.56);
      font-size: 12px;
      line-height: 1.7;
    }
    .workbuddy-kv-list {
      display: grid;
      gap: 8px;
      margin: 0;
    }
    .workbuddy-kv-list div {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      gap: 8px;
      align-items: start;
      padding-top: 6px;
    }
    .workbuddy-kv-list dt,
    .workbuddy-kv-list dd {
      margin: 0;
      min-width: 0;
      overflow-wrap: anywhere;
      line-height: 1.55;
      font-size: 11px;
    }
    .workbuddy-kv-list dt {
      color: rgba(255,255,255,.42);
      font-weight: 900;
      letter-spacing: .1em;
    }
    .workbuddy-kv-list dd {
      color: rgba(255,255,255,.76);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }
    .workbuddy-kv-list div:last-of-type dd {
      color: #42C69D;
    }
    .workbuddy-record-list {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
      max-height: 260px;
      overflow: auto;
    }
    .workbuddy-record-list li,
    .workbuddy-record-empty {
      border-top: 1px solid rgba(255,255,255,.10);
      padding-top: 8px;
      display: grid;
      gap: 4px;
    }
    .workbuddy-record-list span {
      color: #dff5c4;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .1em;
    }
    .workbuddy-record-list strong {
      color: rgba(255,255,255,.76);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.65;
      overflow-wrap: anywhere;
    }
    .workbuddy-record-list em,
    .workbuddy-record-empty {
      color: rgba(255,255,255,.42);
      font-size: 10px;
      font-style: normal;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }
    .workbuddy-skill-card em {
      margin-top: auto;
      color: rgba(255,255,255,.78);
      font-style: normal;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .12em;
    }
    .workbuddy-skill-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 14px;
    }
    .workbuddy-skill-tabs button {
      border: 1px solid rgba(255,255,255,.14);
      background: #121216;
      color: rgba(255,255,255,.62);
      border-radius: 4px;
      padding: 8px 13px;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
    }
    .workbuddy-skill-tabs button.active {
      border-color: rgba(255,255,255,.38);
      background: #1f1f27;
      color: #fff;
    }
    .workbuddy-skill-install {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      margin-bottom: 14px;
    }
    .workbuddy-skill-install input {
      min-height: 38px;
      border: 1px solid rgba(255,255,255,.14);
      background: #101014;
      border-radius: 4px;
      padding: 0 12px;
      outline: 0;
      color: #fff;
      font: 12px/1.5 inherit;
    }
    .workbuddy-agent-modal { width: min(920px, calc(100vw - 32px)); }
    .workbuddy-agent-modal-body {
      padding: 0 !important;
      height: min(760px, 86vh);
      overflow: hidden;
      background: #050507;
    }
    .workbuddy-dialog-layout {
      height: calc(100% - 72px);
      overflow: auto;
      padding: 18px 22px 24px;
      background: #050507;
    }
    .workbuddy-dialog-layout {
      display: grid;
      align-content: start;
      gap: 10px;
    }
    .workbuddy-dialog-row {
      width: 100%;
      border: 1px solid rgba(255,255,255,.12);
      background: #0b0b0f;
      color: #fff;
      border-radius: 4px;
      padding: 14px;
      display: grid;
      gap: 6px;
      text-align: left;
      cursor: pointer;
      font: inherit;
    }
    .workbuddy-dialog-row:hover { border-color: rgba(255,255,255,.34); background: #121218; }
    .workbuddy-dialog-row strong { font-size: 14px; line-height: 1.35; }
    .workbuddy-dialog-row span,
    .workbuddy-dialog-row p {
      margin: 0;
      color: rgba(255,255,255,.54);
      font-size: 11px;
      line-height: 1.65;
    }
    @media (max-width: 980px) {
      .workbuddy-console-hero,
      .workbuddy-agent-grid,
      .workbuddy-config-grid,
      .workbuddy-skill-grid,
      .workbuddy-console-stats {
        grid-template-columns: 1fr;
      }
      .workbuddy-skill-install {
        grid-template-columns: 1fr;
      }
    }
    .workbuddy-screen-empty {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.66);
      font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      letter-spacing: .08em;
      background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 34%), #10100f;
    }
    .workbuddy-control-row {
      display: none;
    }
    .workbuddy-control-row input,
    .workbuddy-control-row button {
      height: 40px;
      border: 1px solid rgba(0,0,0,.14);
      background: rgba(255,255,255,.38);
      color: rgba(0,0,0,.78);
      border-radius: 5px;
      font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }
    .workbuddy-control-row input { padding: 0 12px; outline: 0; }
    .workbuddy-control-row button { padding: 0 12px; cursor: pointer; transition: transform .18s ease, background .18s ease; }
    .workbuddy-control-row button:hover { background: rgba(255,255,255,.62); transform: translateY(-1px); }
    @media (max-width: 900px) {
      .workbuddy-control-row { grid-template-columns: 1fr 1fr; }
      .workbuddy-control-row input { grid-column: 1 / -1; }
      .workbuddy-screen-frame, .workbuddy-screen-frame img { min-height: 320px; }
      .viewer-hint { width: 100%; margin-left: 0; }
    }
    .mini-data-card em {
      align-self: end;
      margin-top: 18px;
      color: #000;
      font-style: normal;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .14em;
    }
    .mini-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 16px;
    }
    .mailbox-card {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      height: auto;
      min-height: 120px;
      overflow: hidden;
    }
    .mailbox-card > p:not(.mailbox-meta) {
      display: -webkit-box;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }
    .mailbox-card > .mini-actions {
      margin-top: auto;
    }
    /* 信箱弹窗布局优化（仅作用于信箱，不动其他弹窗）— 2026-07-29 按 v3 测试版落地 */
    #modal-mailbox { place-items: center; padding: 24px; }
    #modal-mailbox .orbit-modal-panel {
      display: flex;
      flex-direction: column;
      width: min(1080px, calc(100vw - 48px));
      height: min(680px, calc(100dvh - 48px));
      max-height: calc(100dvh - 48px);
      overflow: hidden;
    }
    #modal-mailbox .modal-body {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      min-height: 0;
      padding: 24px 28px 20px;
    }
    #modal-mailbox .modal-head { flex: 0 0 auto; margin-bottom: 14px; }
    #modal-mailbox .modal-head h2 { font-size: clamp(32px, 3.6vw, 46px); }
    #mailboxCards {
      flex: 1 1 auto;
      min-height: 0;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      grid-template-rows: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 0;
      overflow: hidden;
    }
    #modal-mailbox .pager-row { flex: 0 0 auto; min-height: 30px; margin: 8px 0 0; }
    #modal-mailbox .mailbox-card {
      min-height: 0;
      padding: 14px;
      gap: 8px;
      border-color: rgba(255,255,255,.15);
      background: linear-gradient(145deg, rgba(14,16,27,.88), rgba(7,9,16,.9));
    }
    #modal-mailbox .mailbox-card.is-unread { box-shadow: inset 3px 0 0 rgba(196,36,42,.88); }
    #modal-mailbox .mailbox-card-head,
    #modal-mailbox .mailbox-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
    }
    #modal-mailbox .mailbox-card-type,
    #modal-mailbox .mailbox-card-status,
    #modal-mailbox .mailbox-card-footer time {
      overflow: hidden;
      color: rgba(255,255,255,.56);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .06em;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    #modal-mailbox .mailbox-card-type {
      padding: 4px 7px;
      border: 1px solid rgba(196,36,42,.45);
      border-radius: 999px;
      color: #f2afb2;
      background: rgba(180,8,18,.1);
    }
    #modal-mailbox .mailbox-card-status { color: rgba(255,255,255,.45); }
    #modal-mailbox .mailbox-card.is-unread .mailbox-card-status { color: #f2afb2; }
    #modal-mailbox .mailbox-card strong {
      display: -webkit-box;
      overflow: hidden;
      margin: 0;
      color: #fff;
      font-size: 15px;
      line-height: 1.35;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }
    #modal-mailbox .mailbox-card-summary {
      display: -webkit-box;
      flex: 1 1 auto;
      overflow: hidden;
      margin: 0;
      color: rgba(255,255,255,.68);
      font-size: 11px;
      line-height: 1.5;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }
    #modal-mailbox .mailbox-card-footer {
      padding-top: 8px;
      border-top: 1px solid rgba(255,255,255,.09);
    }
    #modal-mailbox .mailbox-card-footer time { flex: 1 1 auto; }
    #modal-mailbox .mailbox-card .mini-actions { flex: 0 0 auto; gap: 5px; margin: 0; }
    #modal-mailbox .mailbox-card .mini-actions button,
    #modal-mailbox .mailbox-card .mini-actions a { min-height: 26px; padding: 0 9px; font-size: 10px; }

    /* ===== 信件详情弹窗 Gmail 阅读视图风格（仅作用于本弹窗，不改其他弹窗） ===== */
    #modal-mailboxDetail { place-items: center center; }
    #modal-mailboxDetail .orbit-modal-panel {
      display: flex;
      flex-direction: column;
      width: min(760px, 94vw);
      max-height: min(640px, calc(100vh - 80px));
      overflow: hidden;
      color: #eee;
    }
    #modal-mailboxDetail .detail-toolbar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 10px 16px;
      flex-shrink: 0;
    }
    #modal-mailboxDetail .toolbar-btn {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 50%;
      background: transparent;
      color: rgba(255,255,255,.75);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      line-height: 1;
      transition: background .15s;
    }
    #modal-mailboxDetail .toolbar-btn:hover { background: rgba(255,255,255,.1); }
    #modal-mailboxDetail .toolbar-spacer { flex: 1; }
    #modal-mailboxDetail .toolbar-close {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 50%;
      background: transparent;
      color: rgba(255,255,255,.7);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      line-height: 1;
      transition: background .15s;
    }
    #modal-mailboxDetail .toolbar-close:hover { background: rgba(255,255,255,.1); }

    #modal-mailboxDetail .detail-subject {
      padding: 2px 24px 4px;
      flex-shrink: 0;
    }
    #modal-mailboxDetail .detail-subject h1 {
      margin: 0;
      font-size: clamp(20px, 3vw, 26px);
      font-weight: 700;
      line-height: 1.3;
      color: #fff;
    }

    #modal-mailboxDetail .detail-sender {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 4px 24px 10px;
      flex-shrink: 0;
    }
    #modal-mailboxDetail .sender-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      overflow: hidden;
      background: linear-gradient(135deg, #c0392b, #e74c3c);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 600;
      flex-shrink: 0;
    }
    #modal-mailboxDetail .sender-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
    #modal-mailboxDetail .sender-info { flex: 1; min-width: 0; }
    #modal-mailboxDetail .sender-name {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
    }
    #modal-mailboxDetail .sender-meta {
      font-size: 12px;
      color: rgba(255,255,255,.55);
      margin-top: 2px;
    }
    #modal-mailboxDetail .sender-time {
      font-size: 12px;
      color: rgba(255,255,255,.5);
      white-space: nowrap;
      flex-shrink: 0;
    }

    #modal-mailboxDetail .detail-divider {
      height: 1px;
      background: rgba(255,255,255,.12);
      margin: 0 24px;
      flex-shrink: 0;
    }

    #modal-mailboxDetail .detail-body {
      padding: 14px 24px;
      overflow-y: auto;
      flex: 1;
      min-height: 0;
    }
    #modal-mailboxDetail .detail-body p {
      margin: 0 0 10px;
      font-size: 14px;
      line-height: 1.6;
      color: rgba(255,255,255,.88);
      white-space: pre-wrap;
      word-break: break-word;
    }
    #modal-mailboxDetail .detail-body p:last-child { margin-bottom: 0; }
    #modal-mailboxDetail .detail-body strong { color: #fff; font-weight: 600; }
    #modal-mailboxDetail .detail-body .mailbox-detail-card {
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
      padding: 12px 14px;
      margin-bottom: 10px;
      display: block;
    }
    #modal-mailboxDetail .detail-body .mailbox-detail-card p { margin: 4px 0 0; color: rgba(255,255,255,.82); }
    #modal-mailboxDetail .detail-body .mailbox-label {
      color: rgba(255,255,255,.55);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .04em;
    }
    #modal-mailboxDetail .detail-body .mini-actions { margin-top: 6px; }

    #modal-mailboxDetail .detail-attachments {
      display: none;
      padding: 12px 24px 16px;
      border-top: 1px solid rgba(255,255,255,.12);
      flex-shrink: 0;
    }
    #modal-mailboxDetail .detail-attachments.visible { display: block; }
    #modal-mailboxDetail .attachments-label {
      font-size: 11px;
      font-weight: 600;
      color: rgba(255,255,255,.55);
      letter-spacing: .06em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }
    #modal-mailboxDetail .attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
    #modal-mailboxDetail .attachment-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 6px;
      font-size: 12px;
      color: #eee;
      text-decoration: none;
      transition: background .15s;
    }
    #modal-mailboxDetail .attachment-chip:hover { background: rgba(255,255,255,.14); }

    #modal-mailboxDetail .detail-actions {
      display: flex;
      gap: 8px;
      padding: 12px 24px;
      border-top: 1px solid rgba(255,255,255,.12);
      flex-shrink: 0;
    }
    #modal-mailboxDetail .action-btn {
      padding: 7px 16px;
      border: 1px solid rgba(255,255,255,.25);
      border-radius: 999px;
      background: transparent;
      font-size: 12px;
      font-weight: 600;
      color: #eee;
      cursor: pointer;
      transition: all .15s;
    }
    #modal-mailboxDetail .action-btn:hover {
      background: rgba(255,255,255,.1);
      border-color: rgba(255,255,255,.4);
    }
    #modal-mailboxDetail .action-btn--primary {
      background: #fff;
      color: #111;
      border-color: #fff;
    }
    #modal-mailboxDetail .action-btn--primary:hover { background: #ddd; }

    .mailbox-section {
      display: grid;
      gap: 6px;
      align-content: flex-start;
    }
    .mailbox-label {
      color: rgba(0,0,0,.52);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .16em;
      text-transform: uppercase;
    }
    .mailbox-section p,
    .mailbox-detail-card p {
      margin: 0;
      color: rgba(0,0,0,.68);
      font-size: 12px;
      line-height: 1.75;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .mailbox-detail-stack {
      display: grid;
      gap: 12px;
    }
    .mailbox-detail-card {
      min-height: 0;
      gap: 10px;
    }
    .mailbox-attachment-block {
      margin-top: auto;
      display: grid;
      gap: 8px;
    }
    .mailbox-attachment-block .mini-actions {
      margin-top: 0;
    }
    .mailbox-detail-meta {
      margin: 0;
      color: rgba(0,0,0,.46);
      font-size: 11px;
      letter-spacing: .08em;
    }
    .mini-actions button,
    .mini-actions a,
    .mini-actions select,
    .inline-action {
      min-height: 28px;
      border: 0;
      border-radius: 999px;
      background: #e9edf2;
      color: #000;
      padding: 0 11px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .mini-actions select {
      padding-right: 26px;
      appearance: none;
      -webkit-appearance: none;
      min-width: 116px;
    }
    .mini-data-card.dark .mini-actions button,
    .mini-data-card.dark .mini-actions a,
    .mini-data-card.dark .mini-actions select,
    .mini-data-card.dark .inline-action {
      background: rgba(255,255,255,.14);
      color: #fff;
    }
    .staff-tag-inline {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
    }
    .staff-tag-select {
      min-width: 116px;
    }
    .staff-tag-inline span {
      color: rgba(0,0,0,.56);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      white-space: nowrap;
    }
    .mini-data-card.dark .staff-tag-inline span {
      color: rgba(255,255,255,.72);
    }
    .mini-actions .staff-tag-inline {
      margin-left: -1px;
    }
    .mini-actions .staff-tag-inline span {
      display: none;
    }
    .mini-actions .staff-tag-select {
      min-width: 88px;
      max-width: 88px;
      padding: 0 22px 0 10px;
      font-size: 9px;
      letter-spacing: .04em;
    }
    .modal-floating-add {
      position: sticky;
      z-index: 3;
      bottom: 18px;
      margin: 10px 0 0 auto;
      width: 48px;
      height: 48px;
      border: 0;
      border-radius: 50%;
      background: #000;
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 28px;
      line-height: 1;
      font-weight: 300;
      cursor: pointer;
      box-shadow: 0 18px 36px rgba(0,0,0,.22);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .modal-floating-add:hover {
      transform: translateY(-2px);
      box-shadow: 0 22px 44px rgba(0,0,0,.26);
    }
    #modal-aiLab #aiLabAddBtn {
      position: static;
      flex: 0 0 32px;
      width: 32px;
      height: 32px;
      margin: 0;
      border: 1px solid rgba(255,255,255,.20);
      border-radius: 50%;
      font-size: 22px;
      box-shadow: none;
    }
    .detail-panel,
    .reply-box,
    .chat-box,
    .edit-box {
      position: relative;
      margin-top: 14px;
      padding: 18px;
      background: rgba(255,255,255,.16);
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 4px;
    }
    .detail-panel h3,
    .reply-box h3,
    .chat-box h3,
    .edit-box h3 {
      margin: 0 0 8px;
      font-size: 16px;
      color: #000;
    }
    .detail-panel p,
    .detail-panel li {
      color: rgba(0,0,0,.58);
      font-size: 12px;
      line-height: 1.75;
    }
    .detail-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(0,0,0,.16);
      background: rgba(255,255,255,.36);
      color: #000;
      border-radius: 50%;
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
    }
    .access-log-tools {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
    }
    .access-log-tools span {
      color: rgba(0,0,0,.38);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .14em;
    }
    .access-log-tools input {
      width: 150px;
      min-height: 32px;
      border: 1px solid rgba(0,0,0,.08);
      outline: 0;
      border-radius: 999px;
      background: rgba(255,255,255,.34);
      color: #111;
      padding: 0 12px;
      font-family: inherit;
      font-size: 12px;
      font-weight: 700;
    }
    .access-log-cloud {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .access-log-card {
      min-height: 184px;
    }
    .access-log-card p {
      word-break: break-word;
    }
    .task-overview-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 16px;
    }
    .task-overview-section {
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 4px;
      padding: 16px;
      min-height: 360px;
    }
    .task-overview-section h3 {
      margin: 0 0 12px;
      font-size: 15px;
      color: #000;
    }
    .task-list {
      display: grid;
      gap: 10px;
      max-height: 410px;
      overflow: auto;
      padding-right: 3px;
    }
    .task-list .mini-data-card {
      background: rgba(255,255,255,.18);
      min-height: 132px;
    }
    .task-transcript-pre {
      margin: 12px 0 0;
      padding: 14px;
      max-height: 380px;
      overflow: auto;
      white-space: pre-wrap;
      word-break: break-word;
      background: rgba(255,255,255,.16);
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 4px;
      color: rgba(0,0,0,.72);
      font-size: 12px;
      line-height: 1.78;
      font-family: inherit;
    }
    .proof-card {
      position: relative;
    }
    .proof-star {
      position: absolute;
      top: 12px;
      right: 14px;
      color: #d71920;
      font-size: 18px;
      font-weight: 900;
      line-height: 1;
    }
    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .reply-box textarea,
    .chat-input textarea,
    .edit-box input,
    .edit-box textarea,
    .edit-box select {
      width: 100%;
      border: 1px solid rgba(0,0,0,.08);
      outline: 0;
      background: rgba(255,255,255,.36);
      border-radius: 4px;
      padding: 12px;
      color: #111;
      font-family: inherit;
      font-size: 13px;
    }
    .reply-box textarea,
    .chat-input textarea,
    .edit-box textarea { min-height: 92px; resize: vertical; }
    .form-tip {
      margin-top: 10px;
      font-size: 12px;
      line-height: 1.6;
      color: rgba(255,255,255,.82);
    }
    .chat-shell {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 14px;
    }
    .chat-messages {
      min-height: 260px;
      max-height: 360px;
      overflow: auto;
      display: grid;
      gap: 10px;
      align-content: start;
    }
    .chat-bubble {
      max-width: 82%;
      padding: 11px 13px;
      border-radius: 4px;
      background: rgba(255,255,255,.22);
      color: rgba(0,0,0,.7);
      font-size: 13px;
      line-height: 1.7;
    }
    .chat-bubble.user {
      justify-self: end;
      background: rgba(0,0,0,.84);
      color: #fff;
    }
    .chat-bubble.agent-action-bubble {
      max-width: 92%;
      background: rgba(255,255,255,.62);
      border: 1px solid rgba(0,0,0,.1);
      color: rgba(0,0,0,.74);
    }
    .agent-action-card,
    .agent-learning-panel {
      display: grid;
      gap: 10px;
      padding: 13px;
      border: 1px solid rgba(0,0,0,.1);
      background: rgba(255,255,255,.52);
      border-radius: 4px;
    }
    .agent-action-card strong,
    .agent-learning-panel strong {
      color: #000;
      font-size: 13px;
    }
    .agent-action-card p,
    .agent-learning-panel p {
      margin: 0;
      color: rgba(0,0,0,.62);
      font-size: 12px;
      line-height: 1.7;
      white-space: pre-wrap;
    }
    .agent-action-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .agent-action-meta span {
      padding: 4px 7px;
      border: 1px solid rgba(0,0,0,.1);
      background: rgba(255,255,255,.55);
      color: rgba(0,0,0,.54);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .agent-action-tools {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .agent-action-tools button {
      border: 1px solid rgba(0,0,0,.16);
      background: #000;
      color: #fff;
      padding: 8px 11px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 800;
    }
    .agent-action-tools button[data-agent-action-cancel],
    .agent-action-tools button[data-learning-note-reject] {
      background: rgba(255,255,255,.5);
      color: #000;
    }
    .agent-dashboard {
      margin-top: 12px;
      display: grid;
      gap: 10px;
    }
    .chat-input {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      margin-top: 12px;
      align-items: end;
    }
    .empty-note {
      color: rgba(0,0,0,.38);
      font-size: 12px;
      line-height: 1.7;
    }
    .mini-data-card.dark {
      background: #000;
      color: #fff;
    }
    .mini-data-card.dark strong,
    .mini-data-card.dark em { color: #fff; }
    .mini-data-card.dark p { color: rgba(255,255,255,.62); }
    .mini-data-card {
      transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    }
    .mini-data-card:hover {
      background: rgba(0,0,0,.78);
      color: #fff;
      transform: translateY(-3px);
      box-shadow: 0 18px 34px rgba(0,0,0,.1);
    }
    .mini-data-card:hover strong,
    .mini-data-card:hover em { color: #fff; }
    .mini-data-card:hover p { color: rgba(255,255,255,.64); }
    .mini-data-card.has-pending-comment::after {
      content: '';
      position: absolute;
      top: 12px;
      right: 12px;
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: #d71920;
      box-shadow: 0 0 0 4px rgba(215,25,32,.12);
    }
    .mini-data-card:hover .mini-actions button,
    .mini-data-card:hover .mini-actions a,
    .mini-data-card:hover .inline-action {
      background: rgba(255,255,255,.15);
      color: #fff;
    }
    .staff-service-stat {
      position: relative;
      grid-template-columns: 1fr;
      align-items: stretch;
      gap: 0;
      padding-right: 82px;
    }
    .staff-service-stat > span,
    .staff-service-stat > strong {
      grid-column: 1;
    }
    .staff-filter-card { cursor: pointer; }
    .staff-service-stat .mini-actions {
      position: absolute;
      right: 14px;
      top: 14px;
      bottom: 14px;
      width: 54px;
      display: grid;
      grid-template-rows: repeat(4, 1fr);
      gap: 4px;
      margin-top: 0;
    }
    .staff-service-stat .mini-actions button {
      min-height: 0;
      height: 100%;
      padding: 0 6px;
      font-size: 9px;
      letter-spacing: .04em;
    }
    .pager-row {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 8px;
      margin-top: -4px;
    }
    .pager-row button {
      min-height: 30px;
      border: 0;
      border-radius: 999px;
      background: rgba(255,255,255,.24);
      color: #000;
      padding: 0 12px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      cursor: pointer;
    }
    .pager-row button:disabled {
      opacity: .34;
      cursor: default;
    }
    .pager-row span {
      color: rgba(0,0,0,.42);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .12em;
    }
    .soft-action-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 6px;
    }
    .soft-pill {
      min-height: 34px;
      border: 0;
      border-radius: 999px;
      padding: 0 14px;
      background: #f1f3f6;
      color: #000;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
    }
    .consult-library-filters {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-bottom: 18px;
    }
    .consult-filter-card {
      width: 100%;
      border: 1px solid rgba(255,255,255,.18);
      text-align: left;
      cursor: pointer;
      transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    }
    .consult-filter-card.active {
      background: rgba(0,0,0,.8);
      border-color: rgba(0,0,0,.86);
      transform: translateY(-2px);
    }
    .consult-filter-card.active strong,
    .consult-filter-card.active span {
      color: #fff;
    }
    .consult-library-grid {
      display: block;
    }
    .consult-library-section {
      min-height: 0;
    }
    .consult-library-section[hidden] {
      display: none !important;
    }
    .consult-library-section .card-cloud {
      grid-template-columns: 1fr;
      margin-top: 12px;
      margin-bottom: 0;
    }
    .consult-price-field {
      width: 120px;
      min-height: 30px;
      border: 1px solid rgba(0,0,0,.08);
      outline: 0;
      border-radius: 999px;
      background: rgba(255,255,255,.34);
      padding: 0 11px;
      color: #111;
      font-size: 11px;
      font-family: inherit;
      font-weight: 800;
    }
    .consult-library-status {
      min-height: 18px;
      margin: 10px 0 0;
      color: rgba(255,255,255,.68);
      font-size: 12px;
      line-height: 1.5;
    }
    .invite-code-card strong {
      font-size: clamp(28px, 4vw, 42px);
      letter-spacing: .04em;
    }
    .profile-invite-code {
      display: inline-flex;
      align-items: baseline;
      gap: 8px;
      color: rgba(255,255,255,.72);
      font-size: 12px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .profile-invite-code strong {
      color: #fff;
      font-family: Consolas, "SFMono-Regular", monospace;
      font-size: 15px;
      letter-spacing: -.02em;
      font-weight: 700;
    }
    .consult-meta-fields {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 168px));
      gap: 8px;
      width: 100%;
      margin-top: 10px;
      align-items: start;
    }
    .consult-meta-fields select,
    .consult-meta-fields input,
    .consult-meta-fields textarea {
      width: 100%;
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(0,0,0,.22);
      color: #fff;
      padding: 10px 12px;
      font: inherit;
      outline: 0;
    }
    .consult-meta-fields select {
      min-height: 42px;
      max-width: 168px;
    }
    .consult-meta-fields textarea {
      min-height: 72px;
      resize: vertical;
      line-height: 1.55;
      grid-column: 1 / -1;
    }
    .mock-trial-skill-section {
      min-height: 0;
    }
    .mock-trial-skill-section[hidden] {
      display: none !important;
    }
    .mock-trial-skill-fields {
      display: grid;
      gap: 10px;
    }
    .mock-trial-skill-fields input,
    .mock-trial-skill-fields textarea {
      width: 100%;
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(0,0,0,.22);
      color: #fff;
      padding: 10px 12px;
      font: inherit;
      outline: 0;
    }
    .mock-trial-skill-fields textarea {
      min-height: 118px;
      resize: vertical;
      line-height: 1.6;
    }
    .mock-trial-skill-fields input::placeholder,
    .mock-trial-skill-fields textarea::placeholder {
      color: rgba(255,255,255,.42);
    }
    .mock-trial-skill-hint {
      color: rgba(255,255,255,.62);
      font-size: 12px;
      line-height: 1.55;
    }
    .mock-trial-skill-section .card-cloud {
      grid-template-columns: 1fr;
      margin-top: 12px;
      margin-bottom: 0;
    }
    .mock-trial-skill-status {
      min-height: 18px;
      margin: 10px 0 0;
      color: rgba(255,255,255,.68);
      font-size: 12px;
      line-height: 1.5;
    }
    .mock-trial-skill-preview {
      margin-top: 10px;
      color: rgba(255,255,255,.76);
      font-size: 13px;
      line-height: 1.7;
      white-space: pre-wrap;
    }
    .consult-select {
      position: relative;
      max-width: 168px;
    }
    .consult-select-input {
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
    }
    .consult-select-trigger {
      width: 100%;
      min-height: 42px;
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(0,0,0,.22);
      color: #fff;
      padding: 10px 38px 10px 12px;
      font: inherit;
      text-align: left;
      outline: 0;
      cursor: pointer;
      position: relative;
    }
    .consult-select-trigger::after {
      content: '';
      position: absolute;
      right: 14px;
      top: 50%;
      width: 8px;
      height: 8px;
      border-right: 2px solid rgba(255,255,255,.88);
      border-bottom: 2px solid rgba(255,255,255,.88);
      transform: translateY(-65%) rotate(45deg);
      transition: transform .18s ease;
    }
    .consult-select.open .consult-select-trigger::after {
      transform: translateY(-20%) rotate(225deg);
    }
    .consult-select-menu {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 6px);
      z-index: 20;
      max-height: 188px;
      overflow-y: auto;
      border: 1px solid rgba(180,8,18,.54);
      background: rgba(8,10,18,.98);
      box-shadow: 0 18px 40px rgba(0,0,0,.42);
    }
    .consult-select-menu[hidden] {
      display: none;
    }
    .consult-select-option {
      width: 100%;
      border: 0;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: transparent;
      color: rgba(255,255,255,.92);
      padding: 12px 16px;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }
    .consult-select-option:last-child {
      border-bottom: 0;
    }
    .consult-select-option:hover,
    .consult-select-option.active {
      background: rgba(180,8,18,.16);
      color: #fff;
    }
    .consult-meta-fields select option {
      background: #090c14;
      color: #f5f7fb;
    }
    .consult-meta-fields input::placeholder,
    .consult-meta-fields textarea::placeholder {
      color: rgba(255,255,255,.42);
    }
    @media (max-width: 1120px) {
      .personal-center-empty {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
        padding-top: var(--header-light-offset);
      }
      .orbit-dashboard {
        height: calc(100vh - var(--header-light-offset));
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 188px));
        gap: 10px;
        align-content: center;
        justify-items: center;
        padding: 18px;
      }
      .orbit-dashboard::before,
      .orbit-dashboard::after,
      .orbit-status,
      .orbit-logout { display: none; }
      .center-card,
      .orbit-card,
      .compact-orbit,
      .small-orbit,
      .pos-top-mid,
      .pos-lower-mid {
        position: relative;
        inset: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin: 0;
      }
      .center-card {
        order: -1;
        grid-column: 1 / -1;
        width: min(300px, 100%);
      }
      .orbit-card,
      .compact-orbit,
      .small-orbit,
      .pos-top-mid,
      .pos-lower-mid {
        height: 112px;
        padding: 16px;
      }
      .orbit-card .card-top { margin-bottom: 12px; }
      .orbit-card h2,
      .compact-orbit h2 { font-size: 17px; }
      .orbit-card p { font-size: 10px; line-height: 1.45; }
      .orbit-card:hover,
      .pos-top-mid:hover,
      .pos-lower-mid:hover { transform: translateY(-4px); }
      .modal-grid,
      .modal-grid.stat-pair,
      .card-cloud,
      .consult-library-grid,
      .task-overview-grid,
      .form-grid,
      .chat-shell { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .orbit-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
      }
      .center-card {
        width: min(260px, 100%);
      }
      .center-card-inner,
      .modal-body { padding: 18px; }
      .center-card-inner { padding: 18px; }
      .profile-head { margin-bottom: 14px; }
      .profile-head h1 { font-size: 28px; }
      .profile-fields { gap: 10px; }
      .profile-row { padding-bottom: 10px; }
      .center-actions { padding-top: 12px; }
      .orbit-card,
      .compact-orbit,
      .small-orbit,
      .pos-top-mid,
      .pos-lower-mid {
        height: 68px;
        padding: 12px;
      }
      .orbit-card .card-top { margin-bottom: 7px; }
      .orbit-card h2,
      .compact-orbit h2 { font-size: 15px; margin-bottom: 4px; }
      .orbit-card p { display: none; }
      .orbit-card small { font-size: 8px; }
      .upload-box { grid-template-columns: 1fr; }
      .center-actions { align-items: flex-start; flex-direction: column; }
      .save-btn { width: 100%; }
    }

    body {
      background: radial-gradient(circle at 50% 42%, #101522 0%, #03050b 58%, #000 100%) !important;
      color: rgba(255,255,255,.9);
    }
    #personalParticleCanvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }
    .page-shell { position: relative; z-index: 1; }
    .personal-center-empty { background: transparent !important; }
    .orbit-dashboard {
      background: transparent !important;
      color: rgba(255,255,255,.9);
    }
    .orbit-dashboard::before,
    .orbit-dashboard::after { opacity: .12; border-color: rgba(255,255,255,.16); }
    .orbit-status,
    .orbit-status b,
    .orbit-logout { color: rgba(255,255,255,.78) !important; }
    .center-card,
    .orbit-card,
    .orbit-modal-panel,
    .modal-stat,
    .mini-data-card,
    .upload-target {
      background: transparent !important;
      color: rgba(255,255,255,.92) !important;
      border: 1px solid rgba(255,255,255,.16) !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    .center-card { border-radius: 8px; }
    .orbit-card:hover {
      background: rgba(255,255,255,.06) !important;
      color: #fff !important;
      border-color: rgba(180,8,18,.46) !important;
    }
    .center-strip,
    .modal-strip,
    .progress-fill { background: #b40812 !important; }
    .profile-head h1,
    .profile-role-label,
    .profile-row strong,
    .modal-head h2,
    .inline-detail-head h3,
    .modal-stat strong,
    .mini-data-card strong,
    .mini-data-card em,
    .text-link {
      color: rgba(255,255,255,.95) !important;
    }
    .micro-label,
    .profile-row span,
    .orbit-card small,
    .orbit-card p,
    .modal-stat span,
    .mini-data-card p,
    .upload-note,
    .modal-lite-action {
      color: rgba(255,255,255,.58) !important;
    }
    .profile-row,
    .profile-select-wrap { border-color: rgba(255,255,255,.18) !important; }
    .profile-select-wrap select,
    .modal-search,
    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .chat-input,
    .mini-data-card textarea {
      background: transparent !important;
      color: rgba(255,255,255,.92) !important;
      border-color: rgba(255,255,255,.18) !important;
    }
    .avatar-mark span,
    .modal-close,
    .icon-mini,
    .mini-actions button,
    .mini-actions a,
    .mini-actions select,
    .inline-action,
    .save-btn,
    .modal-floating-add {
      background: transparent !important;
      color: rgba(255,255,255,.92) !important;
      border: 1px solid rgba(255,255,255,.18) !important;
      box-shadow: none !important;
    }
    .staff-tag-select,
    .mini-actions .staff-tag-select,
    .edit-box .staff-tag-select {
      background: rgba(8,10,18,.94) !important;
      color: rgba(255,255,255,.96) !important;
      border: 1px solid rgba(180,8,18,.72) !important;
      box-shadow: none !important;
    }
    .staff-tag-select:focus,
    .mini-actions .staff-tag-select:focus,
    .edit-box .staff-tag-select:focus {
      outline: none;
      border-color: rgba(220,32,45,.92) !important;
      box-shadow: 0 0 0 1px rgba(220,32,45,.28) !important;
    }
    .staff-tag-select option {
      background: #090c14;
      color: #f5f7fb;
    }
    .orbit-modal {
      background: rgba(3,3,12,.58) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    .orbit-modal-panel,
    .task-list,
    .task-transcript-pre,
    .chat-messages,
    .card-cloud,
    .reply-box textarea,
    .chat-input textarea,
    .edit-box textarea {
      scrollbar-width: thin;
      scrollbar-color: rgba(180,8,18,.72) rgba(255,255,255,.08);
    }
    .orbit-modal-panel::-webkit-scrollbar,
    .task-list::-webkit-scrollbar,
    .task-transcript-pre::-webkit-scrollbar,
    .chat-messages::-webkit-scrollbar,
    .card-cloud::-webkit-scrollbar,
    .reply-box textarea::-webkit-scrollbar,
    .chat-input textarea::-webkit-scrollbar,
    .edit-box textarea::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    .orbit-modal-panel::-webkit-scrollbar-track,
    .task-list::-webkit-scrollbar-track,
    .task-transcript-pre::-webkit-scrollbar-track,
    .chat-messages::-webkit-scrollbar-track,
    .card-cloud::-webkit-scrollbar-track,
    .reply-box textarea::-webkit-scrollbar-track,
    .chat-input textarea::-webkit-scrollbar-track,
    .edit-box textarea::-webkit-scrollbar-track {
      background: rgba(255,255,255,.05);
      border-radius: 999px;
    }
    .orbit-modal-panel::-webkit-scrollbar-thumb,
    .task-list::-webkit-scrollbar-thumb,
    .task-transcript-pre::-webkit-scrollbar-thumb,
    .chat-messages::-webkit-scrollbar-thumb,
    .card-cloud::-webkit-scrollbar-thumb,
    .reply-box textarea::-webkit-scrollbar-thumb,
    .chat-input textarea::-webkit-scrollbar-thumb,
    .edit-box textarea::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, rgba(180,8,18,.88), rgba(120,6,12,.92));
      border-radius: 999px;
      border: 2px solid rgba(5,8,16,.18);
    }
    .orbit-modal-panel::-webkit-scrollbar-thumb:hover,
    .task-list::-webkit-scrollbar-thumb:hover,
    .task-transcript-pre::-webkit-scrollbar-thumb:hover,
    .chat-messages::-webkit-scrollbar-thumb:hover,
    .card-cloud::-webkit-scrollbar-thumb:hover,
    .reply-box textarea::-webkit-scrollbar-thumb:hover,
    .chat-input textarea::-webkit-scrollbar-thumb:hover,
    .edit-box textarea::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(208,22,32,.94), rgba(145,8,16,.96));
    }

    /* ===== 叶AI控制台 v4 改造：详情面板 / 工具列表 / 运行指标 / 自动化任务（复用上方深色玻璃 token） ===== */
    .workbuddy-detail-section { border-left: 2px solid rgba(180,8,18,.6); }
    .workbuddy-detail-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(220px, .82fr);
      gap: 16px;
    }
    .workbuddy-detail-col {
      display: flex;
      flex-direction: column;
      min-width: 0;
      gap: 10px;
    }
    .workbuddy-col-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
    }
    .workbuddy-col-head > span {
      color: rgba(255,255,255,.62);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .1em;
    }
    .workbuddy-col-head > em {
      margin: 0;
      color: rgba(255,255,255,.46);
      font-style: normal;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
    }
    .workbuddy-tools {
      display: grid;
      gap: 6px;
      max-height: 240px;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(180,8,18,.72) rgba(255,255,255,.08);
    }
    .workbuddy-tool-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 4px;
      background: #0e0e13;
    }
    .workbuddy-tool-name {
      color: rgba(255,255,255,.8);
      font-size: 12px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }
    .workbuddy-tool-toggle {
      min-height: 30px;
      border: 1px solid rgba(255,255,255,.2);
      border-radius: 999px;
      padding: 0 12px;
      font: 10px/1 inherit;
      font-weight: 900;
      letter-spacing: .08em;
      cursor: pointer;
      transition: background .15s ease, border-color .15s ease, color .15s ease;
    }
    .workbuddy-tool-toggle.is-enabled { color: #dff5c4; border-color: rgba(120,140,93,.6); background: #1c2a14; }
    .workbuddy-tool-toggle.is-enabled:hover { border-color: rgba(120,140,93,.92); }
    .workbuddy-tool-toggle.is-disabled { color: rgba(240,103,105,.92); border-color: rgba(240,103,105,.5); background: rgba(240,103,105,.1); }
    .workbuddy-tool-toggle.is-disabled:hover { border-color: rgba(240,103,105,.82); }
    .workbuddy-metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      align-content: start;
    }
    .workbuddy-metric {
      display: grid;
      gap: 6px;
      align-content: start;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 4px;
      background: #0e0e13;
    }
    .workbuddy-metric-label {
      color: rgba(255,255,255,.46);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .1em;
    }
    .workbuddy-metric-value {
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      line-height: 1.3;
      font-variant-numeric: tabular-nums;
      overflow-wrap: anywhere;
    }
    .workbuddy-automation-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .workbuddy-automation-card {
      min-height: 150px;
      padding: 15px;
      display: grid;
      align-content: flex-start;
      gap: 12px;
      color: #f5f5f5;
    }
    .workbuddy-badge {
      flex: 0 0 auto;
      border: 1px solid rgba(255,255,255,.18);
      background: #15151b;
      color: rgba(255,255,255,.62);
      border-radius: 999px;
      padding: 4px 8px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
    }
    .workbuddy-badge.is-running { color: #dff5c4; border-color: rgba(120,140,93,.72); background: #253018; }
    .workbuddy-badge.is-paused { color: rgba(255,255,255,.52); border-color: rgba(255,255,255,.2); background: #15151b; }
    .workbuddy-open-chat {
      display: block;
      margin-top: 0;
      padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,.08);
      color: #7B74DF;
      font-style: normal;
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      transition: color .15s ease;
    }
    .workbuddy-open-chat:hover { color: #9B94EF; text-decoration: underline; }
    button.workbuddy-agent-card.active {
      border-color: rgba(120,140,93,.6);
      background: #121218;
      box-shadow: 0 0 0 1px rgba(120,140,93,.3);
    }
    @media (max-width: 980px) {
      .workbuddy-detail-grid,
      .workbuddy-automation-grid { grid-template-columns: 1fr; }
    }
    .modal-stat,
    .mini-data-card,
    .detail-panel,
    .reply-box,
    .chat-box,
    .edit-box,
    .task-overview-section,
    .task-list .mini-data-card,
    .task-transcript-pre {
      background: rgba(5,8,16,.72) !important;
      border-color: rgba(255,255,255,.14) !important;
    }
    .modal-stat:hover,
    .mini-data-card:hover,
    .task-overview-section:hover,
    .edit-box:hover {
      border-color: rgba(180,8,18,.38) !important;
    }
    .modal-stat span,
    .mini-data-card p,
    .mailbox-label,
    .mailbox-detail-meta,
    .detail-panel p,
    .detail-panel li,
    .task-transcript-pre,
    .upload-note,
    .form-tip,
    .micro-label,
    .modal-lite-action {
      color: rgba(255,255,255,.68) !important;
    }
    .detail-panel h3,
    .reply-box h3,
    .chat-box h3,
    .edit-box h3,
    .task-overview-section h3,
    .modal-head h2,
    .inline-detail-head h3 {
      color: #fff !important;
    }
    .modal-stat strong,
    .mini-data-card strong,
    .mini-data-card em,
    .mailbox-section p strong {
      color: #fff !important;
    }
    .proof-star,
    .profile-row .warn,
    .mini-actions button:hover,
    .mini-actions a:hover,
    .inline-action:hover,
    .modal-lite-action:hover {
      color: #d71920 !important;
    }
    .profile-select-wrap select,
    .modal-search,
    .form-grid input,
    .form-grid select,
    .form-grid textarea,
    .chat-input,
    .mini-data-card textarea,
    .edit-box input,
    .edit-box textarea,
    .edit-box select,
    .reply-box textarea,
    .chat-input textarea {
      background: rgba(0,0,0,.24) !important;
      color: rgba(255,255,255,.96) !important;
      border-color: rgba(255,255,255,.18) !important;
      box-shadow: none !important;
    }
    .form-grid input::placeholder,
    .form-grid textarea::placeholder,
    .edit-box input::placeholder,
    .edit-box textarea::placeholder,
    .modal-search::placeholder {
      color: rgba(255,255,255,.4) !important;
    }
    .form-grid select option,
    .edit-box select option,
    .profile-select-wrap select option {
      background: #080b13;
      color: #fff;
    }
    .detail-close,
    .modal-close,
    .icon-mini,
    .mini-actions button,
    .mini-actions a,
    .inline-action,
    .save-btn,
    .modal-floating-add {
      background: rgba(255,255,255,.04) !important;
      color: #fff !important;
      border-color: rgba(255,255,255,.16) !important;
    }
    .detail-close:hover,
    .modal-close:hover,
    .icon-mini:hover,
    .mini-actions button:hover,
    .mini-actions a:hover,
    .inline-action:hover,
    .save-btn:hover,
    .modal-floating-add:hover {
      background: rgba(180,8,18,.14) !important;
      border-color: rgba(180,8,18,.4) !important;
    }
/* LAWXB_REAL_HOME_HEADER_START */
:root{--text-white:#f5f7fb;--text-dim:rgba(255,255,255,.45);--accent-color:#b40812;--cubic-fluid:cubic-bezier(.16,1,.3,1);}
body{--header-light-offset:78px;}
.spatial-header {
      position: fixed; top: 0; left: 0; width: 100%; height: 100px;
      z-index: 1000; padding: 0 40px;
      display: grid;
      grid-template-columns: 120px 1fr auto 1fr 120px;
      align-items: center;
      background: rgba(3, 3, 12, 0.08);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    .nav-anchor-left { justify-self: start; }
    .nav-anchor-right { justify-self: end; }
    
    .header-link-btn {
      color: rgba(255, 255, 255, 0.92); text-decoration: none;
      font-size: 11px; letter-spacing: .25em; font-weight: 500;
      cursor: pointer; opacity: 1; transition: color 0.3s, text-shadow 0.3s;
      text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
      border: 0;
      background: transparent;
      padding: 0;
      font-family: inherit;
    }
    .header-link-btn:hover { color: #fff; text-shadow: 0 0 16px rgba(255, 255, 255, 0.42); }

    /* 功能纽带组 */
    .nav-cluster-left { display: flex; gap: 45px; justify-content: flex-end; padding-right: 45px; }
    .nav-cluster-right { display: flex; gap: 45px; justify-content: flex-start; padding-left: 45px; }
    
    .nav-node {
      color: rgba(255, 255, 255, 0.68); text-decoration: none;
      font-size: 13px; font-weight: 500; letter-spacing: .15em;
      cursor: pointer; position: relative; transition: color 0.3s;
      text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
    }
    .nav-node:hover, .nav-node.active { color: var(--text-white); }
    .nav-node::after {
      content: ''; position: absolute; bottom: -8px; left: 50%; width: 0; height: 2px;
      background: var(--accent-color); transition: width 0.4s var(--cubic-fluid); transform: translateX(-50%);
      box-shadow: 0 0 8px var(--accent-color);
    }
    .nav-node.active::after { width: 100%; }

    /* 居中核心Logo */
    .nav-brand { text-align: center; text-decoration: none; color: #fff; cursor: pointer; text-shadow: 0 3px 18px rgba(0,0,0,.56); }
    .brand-txt { font-family: Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: .05em; }
    .brand-sub { font-size: 8px; letter-spacing: .35em; color: var(--text-dim); display: block; margin-top: 3px; }

    /* === 顶部原站多级菜单 === */
    .site-menu-dropdown {
      position: fixed;
      left: 0;
      right: 0;
      top: 100px;
      z-index: 998;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transform: translateY(-12px);
      pointer-events: none;
      background: rgba(3, 3, 12, 0.08);
      border-top: 1px solid rgba(255, 255, 255, 0.04);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      transition: max-height 0.55s var(--cubic-fluid), opacity 0.32s ease, transform 0.42s var(--cubic-fluid);
    }

    body.menu-open .site-menu-dropdown {
      max-height: 390px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    body.menu-open .spatial-header {
      background: rgba(3, 3, 12, 0.12);
      border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .site-menu-shell {
      width: min(1180px, calc(100% - 80px));
      margin: 0 auto;
      padding: 30px 0 32px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 34px;
    }

    .menu-column {
      min-height: 210px;
      padding: 4px 28px 4px 0;
      border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .menu-column:last-child { border-right: 0; }

    .menu-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      text-decoration: none;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 0.18em;
      margin-bottom: 18px;
    }
    .menu-primary::after {
      content: "";
      width: 18px;
      height: 1px;
      background: var(--accent-color);
      box-shadow: 0 0 12px rgba(180, 8, 18, 0.72);
    }

    .menu-secondary-list,
    .menu-third-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .menu-secondary-list a,
    .menu-third-list a {
      color: rgba(245, 247, 251, 0.68);
      text-decoration: none;
      font-size: 13px;
      line-height: 1.7;
      letter-spacing: 0.08em;
      transition: color 0.22s ease, transform 0.22s ease;
    }
    .menu-secondary-list a:hover,
    .menu-third-list a:hover {
      color: #fff;
      transform: translateX(4px);
    }

    .menu-nested {
      margin-top: 8px;
      margin-left: 14px;
      padding-left: 14px;
      border-left: 1px solid rgba(180, 8, 18, 0.42);
    }
    .menu-third-label {
      display: block;
      margin-bottom: 7px;
      color: rgba(245, 247, 251, 0.36);
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    .site-search-panel {
      position: fixed;
      top: 102px;
      right: 40px;
      width: min(620px, calc(100vw - 80px));
      z-index: 997;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      pointer-events: none;
      transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
      padding: 14px 16px 16px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(3, 3, 12, 0.82);
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
    }
    body.site-search-open .site-search-panel {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }
    .site-search-form {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .site-search-form input {
      flex: 1;
      min-width: 0;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(255, 255, 255, 0.03);
      color: #fff;
      padding: 11px 14px;
      border-radius: 0;
      outline: none;
      font-size: 13px;
    }
    .site-search-form input::placeholder { color: rgba(255, 255, 255, 0.42); }
    .site-search-form button {
      border: 1px solid rgba(180, 8, 18, 0.70);
      background: transparent;
      color: #ffdde0;
      padding: 11px 18px;
      font-size: 12px;
      letter-spacing: 0.18em;
    }
    .site-search-results {
      display: grid;
      gap: 8px;
      margin-top: 12px;
      max-height: 280px;
      overflow: auto;
    }
    .site-search-result {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background: rgba(255, 255, 255, 0.03);
      color: #fff;
      padding: 11px 13px;
      border-radius: 0;
      text-align: left;
    }
    .site-search-result strong {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 2px;
    }
    .site-search-result span {
      display: block;
      color: rgba(255, 255, 255, 0.58);
      font-size: 11px;
      line-height: 1.45;
    }
    .site-search-empty {
      color: rgba(255, 255, 255, 0.56);
      padding: 10px 0 4px;
      font-size: 12px;
    }

    
.spatial-header{height:78px;padding:0 38px;background:rgba(3,3,12,.16);border-bottom-color:rgba(255,255,255,.10);box-shadow:0 14px 38px rgba(0,0,0,.12);backdrop-filter:blur(28px) saturate(165%);-webkit-backdrop-filter:blur(28px) saturate(165%)}.site-menu-dropdown{top:78px;background:rgba(3,3,12,.22)!important;border-top-color:rgba(255,255,255,.08);border-bottom-color:rgba(255,255,255,.12);backdrop-filter:blur(30px) saturate(170%);-webkit-backdrop-filter:blur(30px) saturate(170%)}body.menu-open .spatial-header{background:rgba(3,3,12,.24)}body.menu-open .site-menu-dropdown{max-height:344px}.spatial-panel{padding-top:78px}.site-menu-shell{margin-left:42px;width:min(860px,calc(100% - 88px));min-height:230px;padding-top:24px;padding-bottom:26px}.menu-primary,.menu-secondary,.menu-third-list a{color:rgba(255,255,255,.82);text-shadow:0 2px 18px rgba(0,0,0,.68)}.menu-primary:hover,.menu-primary.active,.menu-secondary:hover,.menu-secondary.active,.menu-third-list a:hover{color:#fff}.menu-panel{min-height:190px}.menu-secondary-list{border-right-color:rgba(255,255,255,.12)}
.spatial-header,
body.menu-open .spatial-header{
  background:rgba(3,3,12,.045)!important;
  border-bottom-color:rgba(255,255,255,.12)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.site-menu-dropdown{
  background:transparent!important;
  border-top-color:rgba(255,255,255,.07)!important;
  border-bottom-color:rgba(255,255,255,.12)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.site-menu-dropdown::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(3,3,12,.035);
  pointer-events:none;
}
.site-menu-shell{position:relative;z-index:1;}
.site-search-panel{
  background:transparent!important;
  border-color:rgba(255,255,255,.14)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.site-menu-dropdown{
  color:#111!important;
  overflow:hidden;
}
.site-menu-dropdown::before{
  background:linear-gradient(180deg,rgba(252,251,252,.72),rgba(252,251,252,.86))!important;
  backdrop-filter:blur(18px) saturate(135%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(135%)!important;
}
.site-menu-dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-24px;
  height:90px;
  background:rgba(252,251,252,.78);
  filter:blur(22px);
  pointer-events:none;
}
.menu-primary,
.menu-secondary,
.menu-third-list a{
  color:#111!important;
  text-shadow:0 1px 0 rgba(255,255,255,.45)!important;
}
.menu-primary:hover,
.menu-primary.active,
.menu-secondary:hover,
.menu-secondary.active,
.menu-third-list a:hover{
  color:#b40812!important;
}
.menu-secondary{
  font-size:15px!important;
  font-weight:700!important;
}
.menu-third-list a{
  font-size:14px!important;
  font-weight:700!important;
}
.menu-secondary-list{
  border-right-color:rgba(0,0,0,.16)!important;
}
.menu-third-label{
  color:rgba(0,0,0,.48)!important;
  font-weight:700!important;
}
.site-search-panel{
  top:20px!important;
  right:112px!important;
  left:auto!important;
  width:min(520px,calc(100vw - 170px))!important;
  padding:0!important;
  border:0!important;
  opacity:0;
  visibility:hidden;
  transform:scaleX(.1)!important;
  transform-origin:right center!important;
  transition:opacity .22s ease,visibility .22s ease,transform .28s cubic-bezier(.16,1,.3,1)!important;
  z-index:1001!important;
}
body.site-search-open .site-search-panel{
  opacity:1;
  visibility:visible;
  transform:scaleX(1)!important;
}
.site-search-form{
  height:38px!important;
  display:flex!important;
  align-items:center;
  border-bottom:1px solid rgba(0,0,0,.42)!important;
  background:rgba(252,251,252,.56)!important;
  backdrop-filter:blur(12px) saturate(130%)!important;
  -webkit-backdrop-filter:blur(12px) saturate(130%)!important;
}
.site-search-form input{
  color:#111!important;
  border:0!important;
  background:transparent!important;
  height:100%!important;
  padding:0 12px!important;
  font-weight:600!important;
}
.site-search-form input::placeholder{color:rgba(0,0,0,.46)!important;}
.site-search-form button{display:none!important;}
.site-search-results{
  margin-top:10px!important;
  display:grid;
  gap:8px;
}
.site-search-result,
.site-search-empty{
  color:#111!important;
  background:rgba(252,251,252,.68)!important;
  border:1px solid rgba(0,0,0,.12)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.08)!important;
  backdrop-filter:blur(12px) saturate(130%)!important;
  -webkit-backdrop-filter:blur(12px) saturate(130%)!important;
}
.site-search-result strong,
.site-search-result span{color:#111!important;}

/* LAWXB_REAL_HOME_HEADER_END */

  
/* LAWXB_PAGE_MENU_FIX_START */
body.lawxb-complaint-shell .spatial-header,
body.lawxb-complaint-shell.menu-open .spatial-header {
  height: 78px !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(17, 20, 26, .12) !important;
  box-shadow: 0 8px 24px rgba(17, 20, 26, .08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.lawxb-personal-shell .spatial-header,
body.lawxb-personal-shell.menu-open .spatial-header {
  height: 78px !important;
  background: #03050b !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.lawxb-complaint-shell .header-link-btn,
body.lawxb-complaint-shell .nav-node,
body.lawxb-complaint-shell .nav-brand,
body.lawxb-complaint-shell .brand-txt {
  color: #11141a !important;
  text-shadow: none !important;
}
body.lawxb-complaint-shell .brand-sub {
  color: rgba(17, 20, 26, .58) !important;
  text-shadow: none !important;
}
body.lawxb-personal-shell .header-link-btn,
body.lawxb-personal-shell .nav-node,
body.lawxb-personal-shell .nav-brand,
body.lawxb-personal-shell .brand-txt {
  color: rgba(255, 255, 255, .94) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55) !important;
}
body.lawxb-personal-shell .brand-sub {
  color: rgba(255, 255, 255, .54) !important;
}
body.lawxb-complaint-shell .site-menu-dropdown,
body.lawxb-personal-shell .site-menu-dropdown {
  position: fixed !important;
  top: 78px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: max-height .28s ease, opacity .2s ease !important;
}
body.lawxb-complaint-shell .site-menu-dropdown {
  background: #fff !important;
  color: #11141a !important;
  border-top: 1px solid rgba(17, 20, 26, .08) !important;
  border-bottom: 1px solid rgba(17, 20, 26, .12) !important;
}
body.lawxb-personal-shell .site-menu-dropdown {
  background: #03050b !important;
  color: rgba(255, 255, 255, .92) !important;
  border-top: 1px solid rgba(255, 255, 255, .09) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
}
body.lawxb-complaint-shell.menu-open .site-menu-dropdown,
body.lawxb-personal-shell.menu-open .site-menu-dropdown {
  max-height: 320px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.lawxb-complaint-shell .site-menu-dropdown::before,
body.lawxb-complaint-shell .site-menu-dropdown::after,
body.lawxb-personal-shell .site-menu-dropdown::before,
body.lawxb-personal-shell .site-menu-dropdown::after {
  content: none !important;
  display: none !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .site-menu-shell,
body.lawxb-personal-shell .site-menu-dropdown .site-menu-shell {
  position: relative !important;
  z-index: 1 !important;
  width: min(820px, calc(100% - 96px)) !important;
  min-height: 230px !important;
  margin: 0 0 0 48px !important;
  padding: 24px 0 28px 18px !important;
  display: grid !important;
  grid-template-columns: 180px 280px minmax(220px, 1fr) !important;
  gap: 34px !important;
  align-items: start !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary-list,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary-list,
body.lawxb-complaint-shell .site-menu-dropdown .menu-third-list,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary-list,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary-list,
body.lawxb-personal-shell .site-menu-dropdown .menu-third-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary-list,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary-list {
  grid-column: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding-right: 22px !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary-list { border-right: 1px solid rgba(17, 20, 26, .12) !important; }
body.lawxb-personal-shell .site-menu-dropdown .menu-primary-list { border-right: 1px solid rgba(255, 255, 255, .12) !important; }
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary {
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: left !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  cursor: pointer !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary { color: #11141a !important; }
body.lawxb-personal-shell .site-menu-dropdown .menu-primary,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary { color: rgba(255, 255, 255, .92) !important; }
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary {
  padding: 8px 0 !important;
  font-size: 18px !important;
  letter-spacing: .18em !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary {
  padding: 5px 0 !important;
  font-size: 15px !important;
  letter-spacing: .08em !important;
  line-height: 1.7 !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary::after,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary::after,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary::after,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary::after {
  content: "\203A" !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
  font-size: 18px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: translateY(-1px) !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary::after,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary::after {
  color: rgba(17, 20, 26, .34) !important;
}
body.lawxb-personal-shell .site-menu-dropdown .menu-primary::after,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary::after {
  color: rgba(255, 255, 255, .42) !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-panel,
body.lawxb-personal-shell .site-menu-dropdown .menu-panel {
  grid-column: 2 / 4 !important;
  display: none !important;
  grid-template-columns: 260px minmax(220px, 1fr) !important;
  gap: 30px !important;
  min-height: 190px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-panel.active,
body.lawxb-personal-shell .site-menu-dropdown .menu-panel.active {
  display: grid !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary-list,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary-list {
  grid-column: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding-right: 30px !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary-list { border-right: 1px solid rgba(17, 20, 26, .12) !important; }
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary-list { border-right: 1px solid rgba(255, 255, 255, .12) !important; }
body.lawxb-complaint-shell .site-menu-dropdown .menu-tertiary-column,
body.lawxb-personal-shell .site-menu-dropdown .menu-tertiary-column {
  grid-column: 2 !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-tertiary-group,
body.lawxb-personal-shell .site-menu-dropdown .menu-tertiary-group {
  display: none !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-tertiary-group.active,
body.lawxb-personal-shell .site-menu-dropdown .menu-tertiary-group.active {
  display: block !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-third-label,
body.lawxb-personal-shell .site-menu-dropdown .menu-third-label {
  display: block !important;
  margin-bottom: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-third-label { color: rgba(17, 20, 26, .48) !important; }
body.lawxb-personal-shell .site-menu-dropdown .menu-third-label { color: rgba(255, 255, 255, .48) !important; }
body.lawxb-complaint-shell .site-menu-dropdown .menu-third-list,
body.lawxb-personal-shell .site-menu-dropdown .menu-third-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-third-list a,
body.lawxb-personal-shell .site-menu-dropdown .menu-third-list a {
  display: block !important;
  padding: 4px 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  text-decoration: none !important;
  text-shadow: none !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-third-list a { color: #11141a !important; }
body.lawxb-personal-shell .site-menu-dropdown .menu-third-list a { color: rgba(255, 255, 255, .82) !important; }
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary:hover,
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary.active,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary:hover,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary.active,
body.lawxb-complaint-shell .site-menu-dropdown .menu-third-list a:hover,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary:hover,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary.active,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary:hover,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary.active,
body.lawxb-personal-shell .site-menu-dropdown .menu-third-list a:hover {
  color: #b40812 !important;
}
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary:hover::after,
body.lawxb-complaint-shell .site-menu-dropdown .menu-primary.active::after,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary:hover::after,
body.lawxb-complaint-shell .site-menu-dropdown .menu-secondary.active::after,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary:hover::after,
body.lawxb-personal-shell .site-menu-dropdown .menu-primary.active::after,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary:hover::after,
body.lawxb-personal-shell .site-menu-dropdown .menu-secondary.active::after {
  color: #b40812 !important;
}
/* LAWXB_PAGE_MENU_FIX_END */

/* LAWXB_PERSONAL_HEADER_PARITY_START */
body.lawxb-personal-shell {
  --header-light-offset: 78px !important;
  scrollbar-gutter: auto !important;
}

body.lawxb-personal-shell::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

body.lawxb-personal-shell::-webkit-scrollbar-track {
  background: transparent !important;
}

@media (min-width: 981px) {
  body.lawxb-personal-shell .spatial-header,
  body.lawxb-personal-shell.menu-open .spatial-header {
    height: 78px !important;
    padding: 0 38px !important;
    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr) auto minmax(0, 1fr) 120px !important;
    align-items: center !important;
    background: rgba(3, 3, 12, 0.045) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.lawxb-personal-shell .nav-cluster-left {
    display: flex !important;
    gap: 45px !important;
    justify-content: flex-end !important;
    padding-right: 76px !important;
  }

  body.lawxb-personal-shell .nav-cluster-right {
    display: flex !important;
    gap: 45px !important;
    justify-content: flex-start !important;
    padding-left: 76px !important;
  }

  body.lawxb-personal-shell .site-menu-dropdown {
    top: 78px !important;
  }

  body.lawxb-personal-shell .page.personal-center-empty {
    padding-top: 78px !important;
    height: calc(100vh - 78px) !important;
  }

  body.lawxb-personal-shell .spatial-panel {
    padding-top: 78px !important;
  }
}
/* LAWXB_PERSONAL_HEADER_PARITY_END */

/* Keep the lowest orbit card inside the visible personal-center stage. */
body.lawxb-personal-shell .page.personal-center-empty {
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

body.lawxb-personal-shell .orbit-dashboard {
  height: calc(100dvh - 78px) !important;
  min-height: calc(100dvh - 78px) !important;
  padding-bottom: max(72px, env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 1121px) {
  body.lawxb-personal-shell .pos-lower-mid {
    bottom: clamp(64px, 7vh, 80px) !important;
  }
}

@keyframes lawxbBottomOrbitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes lawxbCenteredBottomOrbitFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@media (min-width: 1121px) {
  body.lawxb-personal-shell .pos-bottom-left.animate-float,
  body.lawxb-personal-shell .pos-bottom-right.animate-float {
    animation-name: lawxbBottomOrbitFloat !important;
  }

  body.lawxb-personal-shell .pos-lower-mid.animate-float {
    animation-name: lawxbCenteredBottomOrbitFloat !important;
  }
}

/* 叶AI控制台：对齐 WorkBuddy 官方控制台的信息密度与层级。 */
#modal-remoteConsole {
  place-items: center;
  padding: 24px 26px;
}
#modal-remoteConsole .workbuddy-console-modal {
  display: flex;
  flex-direction: column;
  width: min(900px, calc(100vw - 32px));
  height: min(640px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  border-color: #26262c;
  background: #050507;
  box-shadow: 0 28px 90px rgba(0,0,0,.5);
  overflow: hidden;
}
#modal-remoteConsole .workbuddy-console-body {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #050507;
}
#modal-remoteConsole .modal-strip {
  height: 5px;
  background: #b40812;
}
#modal-remoteConsole .workbuddy-console-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 34px 18px;
  background: #050507;
}
#modal-remoteConsole .workbuddy-console-title-block h2 {
  margin: 0;
  color: #f8f8f8;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}
#modal-remoteConsole .workbuddy-console-title-block p {
  margin: 7px 0 15px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  line-height: 1.4;
}
#modal-remoteConsole .workbuddy-console-status,
#modal-remoteConsole .workbuddy-console-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#modal-remoteConsole .workbuddy-console-status > span:last-child {
  color: rgba(255,255,255,.46);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
#modal-remoteConsole .workbuddy-running-pill {
  min-width: 0;
  padding: 5px 10px;
  border-color: #303038;
  background: #0c0c10;
  color: rgba(255,255,255,.54);
  font-size: 11px;
  letter-spacing: 0;
}
#modal-remoteConsole .workbuddy-running-pill.is-running {
  border-color: rgba(92,207,156,.42);
  background: rgba(38,142,99,.16);
  color: #65dbad;
}
#modal-remoteConsole .workbuddy-console-actions {
  flex: 0 0 auto;
  padding-top: 8px;
}
#modal-remoteConsole .modal-lite-action,
#modal-remoteConsole .modal-close {
  min-height: 34px;
  border-color: #2c2c33;
  background: #09090c;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
}
#modal-remoteConsole .modal-lite-action:hover,
#modal-remoteConsole .modal-close:hover {
  border-color: rgba(180,8,18,.72);
  background: rgba(180,8,18,.12);
  color: #fff;
}
#modal-remoteConsole .modal-close {
  width: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}
#modal-remoteConsole .workbuddy-console-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 34px max(54px, env(safe-area-inset-bottom));
  background: #050507;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(180,8,18,.9) rgba(255,255,255,.06);
}
#modal-remoteConsole .workbuddy-console-scroll::-webkit-scrollbar { display: block; width: 7px; }
#modal-remoteConsole .workbuddy-console-scroll::-webkit-scrollbar-thumb { background: #b40812; border-radius: 999px; }
#modal-remoteConsole .workbuddy-console-section {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
}
#modal-remoteConsole .workbuddy-console-section:last-child {
  margin-bottom: 0;
  padding-bottom: 16px;
}
#modal-remoteConsole .section-line-head {
  align-items: baseline;
  margin: 0 0 11px;
}
#modal-remoteConsole .section-line-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#modal-remoteConsole .section-line-head h3 {
  color: #f6f6f7;
  font-size: 15px;
  font-weight: 900;
}
#modal-remoteConsole .section-line-head span {
  color: rgba(255,255,255,.48);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
#modal-remoteConsole .workbuddy-agent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#modal-remoteConsole .workbuddy-agent-card {
  min-height: 154px;
  padding: 15px;
  gap: 9px;
  border-color: #2b2b31;
  border-radius: 7px;
  background: #0b0b0f;
}
#modal-remoteConsole button.workbuddy-agent-card:hover,
#modal-remoteConsole button.workbuddy-agent-card.active {
  border-color: rgba(180,8,18,.72);
  background: #18080b;
  box-shadow: none;
}
#modal-remoteConsole .workbuddy-card-topline strong {
  font-size: 16px;
  font-weight: 900;
}
#modal-remoteConsole .workbuddy-card-topline span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.52);
  font-size: 10px;
}
#modal-remoteConsole .workbuddy-card-topline span.is-running { color: #65dbad; border: 0; background: transparent; }
#modal-remoteConsole .workbuddy-card-topline span.is-off { color: rgba(255,255,255,.48); border: 0; background: transparent; }
#modal-remoteConsole .workbuddy-agent-card p {
  min-height: 17px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 1.45;
}
#modal-remoteConsole .workbuddy-kv-list { gap: 3px; }
#modal-remoteConsole .workbuddy-kv-list div {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
  padding-top: 0;
}
#modal-remoteConsole .workbuddy-kv-list dt,
#modal-remoteConsole .workbuddy-kv-list dd {
  font-size: 10px;
  line-height: 1.45;
}
#modal-remoteConsole .workbuddy-kv-list dt { letter-spacing: 0; }
#modal-remoteConsole .workbuddy-kv-list dd { color: rgba(255,255,255,.78); }
#modal-remoteConsole .workbuddy-kv-list div:last-of-type dd { color: rgba(255,255,255,.78); }
#modal-remoteConsole .workbuddy-open-chat {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #d24249;
  font-size: 10px;
  font-weight: 900;
}
#modal-remoteConsole .workbuddy-open-chat:hover { color: #f06970; }
#modal-remoteConsole .workbuddy-detail-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #2a2a31;
  border-left: 1px solid #2a2a31;
  border-radius: 7px;
  background: #09090c;
}
#modal-remoteConsole .workbuddy-detail-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(255px, .92fr);
  gap: 22px;
}
#modal-remoteConsole .workbuddy-col-head { margin-bottom: 8px; }
#modal-remoteConsole .workbuddy-col-head > span {
  color: #f7f7f7;
  font-size: 13px;
  letter-spacing: 0;
}
#modal-remoteConsole .workbuddy-col-head > em {
  color: rgba(255,255,255,.48);
  font-size: 10px;
  letter-spacing: 0;
}
#modal-remoteConsole .workbuddy-tools {
  gap: 6px;
  max-height: 238px;
  padding-right: 4px;
}
#modal-remoteConsole .workbuddy-tool-row {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 36px;
  padding: 6px 9px;
  border-color: #25252c;
  border-radius: 6px;
  background: #0d0d11;
}
#modal-remoteConsole .workbuddy-tool-icon { color: rgba(255,255,255,.64); font-size: 11px; }
#modal-remoteConsole .workbuddy-tool-name { font-size: 11px; }
#modal-remoteConsole .workbuddy-tool-toggle {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0;
}
#modal-remoteConsole .workbuddy-tool-toggle.is-enabled {
  border-color: rgba(92,207,156,.38);
  background: rgba(38,142,99,.16);
  color: #65dbad;
}
#modal-remoteConsole .workbuddy-metrics { gap: 8px; }
#modal-remoteConsole .workbuddy-metric {
  gap: 5px;
  min-height: 66px;
  padding: 11px;
  border-color: #25252c;
  border-radius: 6px;
  background: #0d0d11;
}
#modal-remoteConsole .workbuddy-metric-label {
  color: rgba(255,255,255,.44);
  font-size: 10px;
  letter-spacing: 0;
}
#modal-remoteConsole .workbuddy-metric-value {
  color: #f6f6f6;
  font-size: 19px;
  font-weight: 900;
}
#modal-remoteConsole .workbuddy-metric:nth-child(3) .workbuddy-metric-value { color: #65dbad; }
#modal-remoteConsole .workbuddy-metric:nth-child(6) .workbuddy-metric-value { color: #65dbad; }
#modal-remoteConsole .workbuddy-automation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#modal-remoteConsole .workbuddy-automation-card {
  min-height: 128px;
  padding: 14px;
  gap: 9px;
  border: 1px solid #292930;
  border-radius: 7px;
  background: #0c0c10;
}
#modal-remoteConsole .workbuddy-automation-card .workbuddy-kv-list div { grid-template-columns: 32px minmax(0, 1fr); }
#modal-remoteConsole .workbuddy-badge {
  padding: 3px 7px;
  font-size: 10px;
  letter-spacing: 0;
}
#modal-remoteConsole .workbuddy-badge.is-running {
  border-color: rgba(92,207,156,.38);
  background: rgba(38,142,99,.16);
  color: #65dbad;
}

/* WorkBuddy conversation detail: a separate stacked modal above the list. */
#modal-workbuddyAgent .workbuddy-agent-modal {
  width: min(620px, calc(100vw - 32px));
  max-height: min(560px, calc(100dvh - 48px));
}
#modal-workbuddyAgent .workbuddy-agent-modal-body {
  height: min(560px, calc(100dvh - 48px));
}
#modal-workbuddyAgent .remote-console-head {
  margin: 0;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #25252c;
}
#modal-workbuddyAgent .remote-console-head h2 {
  font-size: 22px;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: 0;
}
#modal-workbuddyAgent .remote-console-head .micro-label,
#modal-workbuddyConversation .remote-console-head .micro-label { display: none; }
#modal-workbuddyAgent .workbuddy-dialog-layout {
  height: calc(100% - 67px);
  display: block;
  padding: 8px 20px 18px;
}
#modal-workbuddyAgent .workbuddy-dialog-row {
  display: grid;
  grid-template-columns: 56px 48px 3px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.11);
  border-radius: 0;
  background: transparent;
}
#modal-workbuddyAgent .workbuddy-dialog-row:hover {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.035);
}
#modal-workbuddyAgent .workbuddy-dialog-row:last-child { border-bottom: 0; }
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-date,
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-time,
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-actor,
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-go {
  margin: 0;
  font-style: normal;
  line-height: 1.35;
  white-space: nowrap;
}
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-date {
  color: rgba(255,255,255,.46);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-time {
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-mark {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #b40812;
}
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-actor {
  overflow: hidden;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  text-overflow: ellipsis;
}
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-go {
  color: #d45a61;
  font-size: 11px;
  font-weight: 700;
}
#modal-workbuddyAgent .workbuddy-dialog-row .workbuddy-dialog-go b {
  margin-left: 3px;
  font-size: 16px;
  font-weight: 400;
  line-height: 0;
  vertical-align: -1px;
}
#modal-workbuddyConversation {
  z-index: 280;
  place-items: center;
  padding: 24px 26px;
  background: rgba(3,3,8,.72);
}
#modal-workbuddyConversation .workbuddy-conversation-modal {
  display: flex;
  flex-direction: column;
  width: min(620px, calc(100vw - 32px));
  max-height: min(560px, calc(100dvh - 48px));
  overflow: hidden;
  border-color: #2a2a31;
  background: #050507;
  box-shadow: 0 28px 90px rgba(0,0,0,.62);
}
#modal-workbuddyConversation .workbuddy-conversation-modal-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  background: #050507;
}
#modal-workbuddyConversation .remote-console-head {
  flex: 0 0 auto;
  margin: 0;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #25252c;
  background: #09090c;
}
#modal-workbuddyConversation .remote-console-head h2 {
  max-width: 500px;
  color: #f6f6f6;
  font-size: 22px;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: 0;
}
#modal-workbuddyConversation .modal-close {
  width: 34px;
  height: 34px;
  border-color: #303038;
  background: #0c0c10;
  color: rgba(255,255,255,.76);
}
#modal-workbuddyConversation .workbuddy-conversation-scroll {
  min-height: 0;
  overflow: auto;
  padding: 18px 24px 26px;
  scrollbar-width: thin;
  scrollbar-color: #b40812 rgba(255,255,255,.06);
}
#modal-workbuddyConversation .workbuddy-conversation-scroll::-webkit-scrollbar { width: 7px; }
#modal-workbuddyConversation .workbuddy-conversation-scroll::-webkit-scrollbar-thumb { background: #b40812; border-radius: 999px; }
#modal-workbuddyConversation .workbuddy-conversation-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #28282f;
  border-radius: 4px;
  background: #09090c;
}
#modal-workbuddyConversation .workbuddy-conversation-meta span {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#modal-workbuddyConversation .workbuddy-conversation-meta b {
  display: inline;
  margin-right: 5px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  font-weight: 700;
}
#modal-workbuddyConversation .workbuddy-conversation-block,
#modal-workbuddyConversation .workbuddy-conversation-tools {
  margin: 0 0 15px;
}
#modal-workbuddyConversation .workbuddy-conversation-block-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
  padding-left: 8px;
  border-left: 3px solid #b40812;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 800;
}
#modal-workbuddyConversation .workbuddy-conversation-block-label time {
  color: rgba(255,255,255,.4);
  font-size: 10px;
  font-weight: 500;
}
#modal-workbuddyConversation .workbuddy-conversation-block p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #28282f;
  border-radius: 6px;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
#modal-workbuddyConversation .workbuddy-conversation-block.is-user p { border-left: 3px solid #b40812; background: #10090b; }
#modal-workbuddyConversation .workbuddy-conversation-block.is-agent p { background: #0d0d11; }
#modal-workbuddyConversation .workbuddy-conversation-block.is-summary p { color: rgba(255,255,255,.68); background: #0a0a0d; }
#modal-workbuddyConversation .workbuddy-conversation-tools > div { display: flex; flex-wrap: wrap; gap: 7px; }
#modal-workbuddyConversation .workbuddy-conversation-tools span {
  padding: 4px 8px;
  border: 1px solid rgba(180,8,18,.42);
  border-radius: 999px;
  background: rgba(180,8,18,.1);
  color: #ee9ba0;
  font-size: 10px;
  line-height: 1.35;
}

/* Compact management panels: match the mailbox's fixed, paged card view. */
@media (min-width: 761px) {
  #modal-staff .orbit-modal-panel,
  #modal-aiLab .orbit-modal-panel,
  #modal-access .orbit-modal-panel,
  #modal-consultLibraries .orbit-modal-panel {
    width: min(1080px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    overflow: hidden;
  }

  #modal-staff .modal-body,
  #modal-aiLab .modal-body,
  #modal-access .modal-body,
  #modal-consultLibraries .modal-body { padding: 24px 28px 20px; }

  #modal-staff .modal-head,
  #modal-aiLab .modal-head,
  #modal-access .modal-head,
  #modal-consultLibraries .modal-head { margin-bottom: 16px; }

  #modal-staff .modal-head h2,
  #modal-aiLab .modal-head h2,
  #modal-access .modal-head h2,
  #modal-consultLibraries .modal-head h2 { font-size: clamp(32px, 3.6vw, 46px); }

  #modal-staff .modal-grid,
  #modal-aiLab .modal-grid,
  #modal-access .modal-grid,
  #modal-consultLibraries .modal-grid { gap: 10px; margin-bottom: 12px; }

  #modal-staff .modal-grid.stat-pair > .modal-stat,
  #modal-aiLab .modal-grid.stat-pair > .modal-stat,
  #modal-access .modal-grid.stat-pair > .modal-stat,
  #modal-consultLibraries .consult-filter-card {
    height: 92px;
    min-height: 92px;
    padding: 14px;
  }

  #modal-staff .modal-stat strong,
  #modal-aiLab .modal-stat strong,
  #modal-access .modal-stat strong,
  #modal-consultLibraries .modal-stat strong { font-size: 25px; }

  #modal-staff .card-cloud,
  #modal-aiLab .card-cloud,
  #modal-access .card-cloud { gap: 10px; margin-bottom: 10px; }

  #modal-staff .mini-data-card,
  #modal-aiLab .mini-data-card,
  #modal-access .mini-data-card { min-height: 0; height: 166px; padding: 14px; }

  #modal-staff .mini-data-card strong,
  #modal-aiLab .mini-data-card strong,
  #modal-access .mini-data-card strong { margin-bottom: 4px; font-size: 15px; }

  #modal-staff .mini-data-card p,
  #modal-aiLab .mini-data-card p,
  #modal-access .mini-data-card p { font-size: 11px; line-height: 1.45; }

  #modal-staff .mini-data-card em,
  #modal-aiLab .mini-data-card em,
  #modal-access .mini-data-card em { margin-top: 6px; }

  #modal-staff .mini-actions,
  #modal-aiLab .mini-actions,
  #modal-access .mini-actions { gap: 6px; margin-top: 8px; }

  #modal-staff .mini-actions button,
  #modal-aiLab .mini-actions button,
  #modal-access .mini-actions button { min-height: 25px; padding: 0 10px; }

  #modal-staff .pager-row,
  #modal-aiLab .pager-row,
  #modal-access .pager-row,
  #modal-consultLibraries .pager-row { min-height: 30px; margin-top: 0; }

  #modal-consultLibraries .consult-library-section { padding: 12px; }
  #modal-consultLibraries .consult-library-section h3 { margin-bottom: 8px; font-size: 14px; }
  #modal-consultLibraries .edit-box { margin-top: 0; padding: 10px; }
  #modal-consultLibraries .form-grid { gap: 8px; }

  #modal-consultLibraries .edit-box input,
  #modal-consultLibraries .edit-box select { min-height: 32px; padding: 6px 10px; font-size: 11px; }

  #modal-consultLibraries .edit-box .mini-actions { margin-top: 8px; }

  #modal-consultLibraries .consult-library-section .card-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  #modal-consultLibraries .consult-library-section .mini-data-card {
    min-height: 0;
    height: 164px;
    padding: 11px;
  }

  #modal-consultLibraries .mini-data-card strong { margin-bottom: 3px; font-size: 14px; }
  #modal-consultLibraries .mini-data-card p { font-size: 10px; line-height: 1.35; }

  #modal-consultLibraries .consult-meta-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
  }

  #modal-consultLibraries .consult-select { max-width: none; }

  #modal-consultLibraries .consult-select-trigger {
    min-height: 30px;
    padding: 0 22px 0 8px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #modal-consultLibraries .consult-select-trigger::after { right: 9px; }

  #modal-consultLibraries .consult-meta-fields textarea {
    min-height: 32px;
    height: 32px;
    padding: 7px 8px;
    font-size: 10px;
    line-height: 1.35;
    resize: none;
  }

  #modal-consultLibraries .mini-actions { gap: 5px; margin-top: 7px; }

  #modal-consultLibraries .mini-actions button,
  #modal-consultLibraries .consult-price-field { min-height: 25px; padding: 0 9px; font-size: 9px; }

  #modal-consultLibraries .consult-price-field { width: 86px; }

  #modal-consultLibraries .consult-library-status { min-height: 0; margin-top: 6px; font-size: 10px; }

  /* Consultation libraries keep a fixed working area for their long list. */
  #modal-consultLibraries .orbit-modal-panel {
    display: flex;
    flex-direction: column;
    height: min(760px, calc(100dvh - 48px));
  }

  /* Account records close to the current page while retaining internal overflow. */
  #modal-access .orbit-modal-panel {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: calc(100dvh - 48px);
  }

  #modal-access .modal-body,
  #modal-consultLibraries .modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #modal-access .modal-body { flex: 0 1 auto; }
  #modal-consultLibraries .modal-body { flex: 1 1 auto; }

  /* AI resources use the header action and fit the current page of cards. */
  #modal-aiLab .orbit-modal-panel {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: calc(100dvh - 48px);
  }

  #modal-aiLab .modal-body {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  #modal-access .modal-head,
  #modal-access .modal-grid,
  #modal-access .pager-row,
  #modal-consultLibraries .modal-head,
  #modal-consultLibraries .modal-grid,
  #modal-consultLibraries .consult-library-status { flex: 0 0 auto; }

  #modal-access #accountCards {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    padding-right: 6px;
  }

  #modal-access #accessDetail:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
  }

  #modal-access #accessDetail .access-log-tools,
  #modal-access #accessDetail .pager { flex: 0 0 auto; }

  #modal-access #accessDetail .access-log-back { margin-right: auto; }

  #modal-access #accessDetail .access-log-cloud {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    padding-right: 6px;
    grid-auto-rows: max-content;
  }

  #modal-access #accessDetail .access-log-card {
    height: auto;
    min-height: 236px;
    align-content: start;
  }

  #modal-access #accessDetail .access-log-card p {
    line-height: 1.45;
  }

  #modal-access #accessDetail .access-log-card em {
    max-width: 100%;
    overflow: hidden;
    margin-top: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #modal-access:has(#accessDetail:not([hidden])) .modal-grid { display: none; }
  #modal-access:has(#accessDetail:not([hidden])) .modal-head { margin-bottom: 10px; }
  #modal-access #accessDetail:not([hidden]) { padding: 12px; }
  #modal-access #accessDetail .access-log-tools { margin-bottom: 10px; }
  #modal-access #accessDetail .access-log-cloud { gap: 8px; }
  #modal-access #accessDetail .access-log-card { min-height: 0; padding: 12px; }
  #modal-access #accessDetail .access-log-card p { font-size: 10px; line-height: 1.35; }
  #modal-access #accessDetail .access-log-card em { margin-top: 6px; }

  /* Shared compact layout for the remaining admin management libraries. */
  #modal-posts .orbit-modal-panel,
  #modal-insights .orbit-modal-panel,
  #modal-briefings .orbit-modal-panel,
  #modal-transactions .orbit-modal-panel,
  #modal-invites .orbit-modal-panel {
    display: flex;
    flex-direction: column;
    width: min(1080px, calc(100vw - 48px));
    height: min(700px, calc(100dvh - 142px));
    max-height: calc(100dvh - 142px);
    overflow: hidden;
  }

  #modal-posts .modal-body,
  #modal-insights .modal-body,
  #modal-briefings .modal-body,
  #modal-transactions .modal-body,
  #modal-invites .modal-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 24px 28px 20px;
  }

  #modal-posts .modal-head,
  #modal-insights .modal-head,
  #modal-briefings .modal-head,
  #modal-transactions .modal-head,
  #modal-invites .modal-head { flex: 0 0 auto; margin-bottom: 14px; }

  #modal-posts .modal-head h2,
  #modal-insights .modal-head h2,
  #modal-briefings .modal-head h2,
  #modal-transactions .modal-head h2,
  #modal-invites .modal-head h2 { font-size: clamp(32px, 3.6vw, 46px); }

  #modal-posts .modal-grid,
  #modal-insights .modal-grid,
  #modal-transactions .modal-grid,
  #modal-invites .modal-grid { flex: 0 0 auto; gap: 10px; margin-bottom: 12px; }

  #modal-posts .modal-grid.stat-pair > .modal-stat,
  #modal-insights .modal-grid.stat-pair > .modal-stat,
  #modal-transactions .modal-grid.stat-pair > .modal-stat,
  #modal-invites .modal-grid.stat-pair > .modal-stat { min-height: 72px; height: 72px; padding: 11px 14px; }

  #modal-posts .modal-stat strong,
  #modal-insights .modal-stat strong,
  #modal-transactions .modal-stat strong,
  #modal-invites .modal-stat strong { font-size: 24px; }

  #postCards,
  #insightCards,
  #briefingCards,
  #transactionCards,
  #inviteCards {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    gap: 10px;
    overflow-y: auto;
    align-content: start;
    padding-right: 6px;
  }

  #modal-posts .pager-row,
  #modal-insights .pager-row,
  #modal-briefings .pager-row,
  #modal-transactions .pager-row,
  #modal-invites .pager-row { flex: 0 0 auto; min-height: 30px; margin: 8px 0 0; }

  .management-card {
    display: flex;
    flex-direction: column;
    min-height: 192px;
    padding: 14px;
    border-color: rgba(255,255,255,.15) !important;
    background: linear-gradient(145deg, rgba(14,16,27,.88), rgba(7,9,16,.9)) !important;
  }

  .management-card:hover { transform: none; box-shadow: inset 3px 0 0 rgba(196,36,42,.88); }
  .management-card-kicker,
  .management-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .management-card-kicker { margin-bottom: 9px; }
  .management-card-kicker span,
  .management-card-meta span {
    overflow: hidden;
    color: rgba(255,255,255,.55);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .management-card-kicker span:first-child {
    padding: 4px 7px;
    border: 1px solid rgba(196,36,42,.45);
    border-radius: 999px;
    color: #f2afb2;
    background: rgba(180,8,18,.1);
  }

  .management-card strong {
    overflow: hidden;
    margin-bottom: 7px;
    color: #fff !important;
    font-size: 15px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .management-card-summary {
    display: -webkit-box;
    flex: 1 1 auto;
    overflow: hidden;
    margin: 0 0 11px !important;
    color: rgba(255,255,255,.68) !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .management-card-meta {
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.09);
  }

  .management-card-actions { margin-top: auto !important; padding-top: 9px; }
  .management-card-actions button { min-height: 25px; padding: 0 10px; font-size: 10px; }
  .transaction-management-card em,
  .invite-management-card em {
    margin-top: 10px;
    color: #f5f5f7 !important;
    font-size: 13px;
    letter-spacing: 0;
  }

  .transaction-management-card.is-income { box-shadow: inset 3px 0 0 rgba(78,190,122,.78); }
  .transaction-management-card.is-income .management-card-kicker span:first-child { border-color: rgba(78,190,122,.45); color: #90e7b0; background: rgba(78,190,122,.1); }
  .transaction-management-card.is-expense .management-card-kicker span:first-child { border-color: rgba(196,36,42,.45); }

  #modal-posts:has(#postDetail:not([hidden])) #postCards,
  #modal-posts:has(#postDetail:not([hidden])) #postPager,
  #modal-insights:has(#insightDetail:not([hidden])) #insightCards,
  #modal-insights:has(#insightDetail:not([hidden])) #insightPager,
  #modal-briefings:has(#briefingEditBox:not([hidden])) #briefingCards,
  #modal-briefings:has(#briefingEditBox:not([hidden])) #briefingPager { display: none; }

  #modal-posts #postDetail:not([hidden]),
  #modal-insights #insightDetail:not([hidden]),
  #modal-briefings #briefingEditBox:not([hidden]) {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
    overflow-y: auto;
  }

  #modal-consultLibraries .consult-library-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(180,8,18,.72) rgba(255,255,255,.08);
  }

  #modal-consultLibraries .consult-library-grid::-webkit-scrollbar { width: 10px; }
  #modal-consultLibraries .consult-library-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 999px; }
  #modal-consultLibraries .consult-library-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(180,8,18,.88), rgba(120,6,12,.92));
    border: 2px solid rgba(5,8,16,.18);
    border-radius: 999px;
  }

  /* 人员管理按当前页内容收口；超出视口时内容区独立滚动。 */
  #modal-staff .orbit-modal-panel {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: calc(100dvh - 48px);
  }

  #modal-staff .modal-body {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 22px;
    scrollbar-width: thin;
    scrollbar-color: rgba(180,8,18,.72) rgba(255,255,255,.08);
  }

  #modal-staff .modal-body::-webkit-scrollbar { width: 10px; }
  #modal-staff .modal-body::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 999px; }
  #modal-staff .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(180,8,18,.88), rgba(120,6,12,.92));
    border: 2px solid rgba(5,8,16,.18);
    border-radius: 999px;
  }

  /* 咨询库：三种库作为紧凑导航，人员资料改为可快速扫读的双列卡片。 */
  #modal-consultLibraries .consult-library-filters { gap: 8px; margin-bottom: 12px; }
  #modal-consultLibraries .consult-filter-card {
    height: 72px;
    min-height: 72px;
    padding: 11px 14px;
    text-align: left;
  }

  #modal-consultLibraries .consult-filter-card.active {
    border-color: rgba(210,38,48,.8) !important;
    background: linear-gradient(105deg, rgba(180,8,18,.2), rgba(9,12,20,.26)) !important;
    box-shadow: inset 3px 0 0 #c4242a;
  }

  #modal-consultLibraries .consult-library-section {
    padding: 14px;
    border-color: rgba(255,255,255,.14) !important;
    background: rgba(8,10,18,.46) !important;
  }

  #modal-consultLibraries .consult-library-section h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    font-size: 15px;
  }

  #modal-consultLibraries .consult-library-section h3::after {
    content: '资料更新后需点击保存';
    color: rgba(255,255,255,.48);
    font-size: 10px;
    font-weight: 500;
  }

  #modal-consultLibraries .consult-library-add {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(174px, .75fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border-color: rgba(255,255,255,.13) !important;
    background: rgba(0,0,0,.16) !important;
  }

  #modal-consultLibraries .consult-add-form { display: contents; }
  #modal-consultLibraries .consult-fixed-library-add { grid-template-columns: minmax(0, 1fr) auto; }
  #modal-consultLibraries .consult-library-add .mini-actions { margin: 0; }
  #modal-consultLibraries .consult-library-add .mini-actions button { min-height: 32px; font-size: 10px; }

  #modal-consultLibraries .consult-library-section .card-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
  }

  #modal-consultLibraries .consult-library-section .mini-data-card.consult-member-card {
    display: flex;
    flex-direction: column;
    min-height: 256px;
    height: auto;
    padding: 14px;
    border-color: rgba(255,255,255,.15) !important;
    background: linear-gradient(145deg, rgba(16,18,29,.86), rgba(7,9,16,.9)) !important;
  }

  #modal-consultLibraries .consult-member-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    margin-bottom: 11px;
  }

  #modal-consultLibraries .consult-member-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
  }
  #modal-consultLibraries .consult-member-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

  #modal-consultLibraries .consult-member-identity { min-width: 0; flex: 1 1 auto; }
  #modal-consultLibraries .consult-member-identity strong { overflow: hidden; margin: 1px 0 3px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
  #modal-consultLibraries .consult-member-identity p { overflow: hidden; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

  #modal-consultLibraries .consult-online {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 999px;
    color: rgba(255,255,255,.58);
    font-size: 9px;
    font-weight: 800;
  }

  #modal-consultLibraries .consult-online.is-online { border-color: rgba(70,189,120,.45); color: #81e3a8; }

  #modal-consultLibraries .consult-meta-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  #modal-consultLibraries .consult-field { min-width: 0; }
  #modal-consultLibraries .consult-field > span {
    display: block;
    margin: 0 0 5px;
    color: rgba(255,255,255,.45);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  #modal-consultLibraries .consult-select-trigger { min-height: 32px; font-size: 10px; }
  #modal-consultLibraries .consult-select-option {
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.4;
  }
  #modal-consultLibraries .consult-intro-field { grid-column: 1 / -1; }
  #modal-consultLibraries .consult-meta-fields textarea {
    height: 46px;
    min-height: 46px;
    padding: 7px 8px;
    font-size: 10px;
    resize: vertical;
  }

  #modal-consultLibraries .consult-member-actions {
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.09);
  }

  #modal-consultLibraries .consult-member-actions .consult-remove-action {
    order: -2;
    margin-right: auto;
    border-color: transparent !important;
    background: transparent !important;
    color: rgba(255,255,255,.56) !important;
  }

  #modal-consultLibraries .consult-member-actions .consult-price-field {
    width: 82px;
    color: #fff;
    background: rgba(0,0,0,.25);
  }
}
@media (max-width: 720px) {
  #modal-remoteConsole .workbuddy-console-modal {
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }
  #modal-remoteConsole .workbuddy-console-body { height: auto; }
  #modal-remoteConsole .workbuddy-console-head { flex-wrap: wrap; padding: 22px 18px 16px; gap: 12px; }
  #modal-remoteConsole .workbuddy-console-title-block { flex: 1 0 100%; }
  #modal-remoteConsole .workbuddy-console-title-block h2 { font-size: 28px; white-space: nowrap; }
  #modal-remoteConsole .workbuddy-console-actions { width: 100%; justify-content: flex-end; gap: 6px; padding-top: 0; }
  #modal-remoteConsole .workbuddy-console-actions .modal-lite-action { padding: 0 8px; font-size: 10px; }
  #modal-remoteConsole .workbuddy-console-scroll { padding: 0 18px max(42px, env(safe-area-inset-bottom)); }
  #modal-remoteConsole .workbuddy-agent-grid,
  #modal-remoteConsole .workbuddy-detail-grid,
  #modal-remoteConsole .workbuddy-automation-grid { grid-template-columns: 1fr; }
  #modal-workbuddyAgent .workbuddy-dialog-layout { padding: 8px 16px 18px; }
  #modal-workbuddyAgent .workbuddy-dialog-row { grid-template-columns: 48px 43px 3px minmax(0, 1fr) auto; gap: 8px; }
  #modal-workbuddyAgent .remote-console-head { padding: 16px; }
  #modal-workbuddyConversation .workbuddy-conversation-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
  #modal-workbuddyConversation .workbuddy-conversation-scroll { padding: 16px 18px 22px; }
  #modal-workbuddyConversation .remote-console-head { padding: 18px; }
}
