:root {
      --page: #f4f4f2;
      --surface: #ffffff;
      --card: #f1f0ec;
      --card-2: #f7f6f3;
      --line: #e4e3df;
      --line-soft: #ecebe8;
      --text: #151515;
      --muted: #8d8f8d;
      --faint: #aeb0ad;
      --green: #15c6a3;
      --green-dark: #0f9d83;
      --black: #0f0f0f;
      --blue: #3d7cff;
      --orange: #e99a42;
      --red: #d46c73;
      --shadow: 0 18px 48px rgba(28, 31, 35, 0.07);
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      height: 100%;
      overflow: hidden;
    }

    body {
      margin: 0;
      background: var(--page);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      letter-spacing: 0;
    }

    button,
    input {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    .app {
      height: 100vh;
      display: grid;
      grid-template-columns: 84px minmax(0, 1fr);
      overflow: hidden;
    }

    .rail {
      position: sticky;
      top: 0;
      height: 100vh;
      background: #fbfbfa;
      border-right: 1px solid #eeeeeb;
      padding: 24px 12px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }

    .brand-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 28%, #ffffff 0 16%, transparent 17%), linear-gradient(135deg, #5a66ff, #ff42ba 62%, #ff7a41);
      box-shadow: 0 5px 16px rgba(255, 66, 186, 0.2);
    }

    .rail-nav {
      display: grid;
      gap: 14px;
      margin-top: 16px;
    }

    .rail-btn {
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 13px;
      background: transparent;
      color: #9b9c99;
      display: grid;
      place-items: center;
      position: relative;
    }

    .rail-btn.active {
      background: #eeeeec;
      color: #111;
    }

    .rail-btn svg {
      width: 24px;
      height: 24px;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .rail-business-btn {
      border: 1px solid transparent;
    }

    .rail-business-btn img {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      display: block;
      object-fit: cover;
    }

    .rail-business-btn-smart {
      color: #4f70e8;
    }

    .rail-business-btn-smart svg {
      width: 27px;
      height: 27px;
    }

    .rail-business-btn.active {
      border-color: #dedfdb;
      background: #eeeeec;
      box-shadow: inset 3px 0 0 var(--green);
    }

    .rail-business-btn-smart.active {
      box-shadow: inset 3px 0 0 #4f70e8;
    }

    .rail-bottom {
      margin-top: auto;
      display: grid;
      gap: 14px;
      justify-items: center;
    }

    .avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: #3579ff;
      color: #fff;
      display: grid;
      place-items: center;
      font-weight: 850;
      box-shadow: 0 8px 18px rgba(53, 121, 255, 0.22);
    }

    .main {
      min-height: 0;
      padding: 22px 22px 22px 0;
      overflow: hidden;
    }

    .surface {
      height: calc(100vh - 44px);
      background: var(--surface);
      border: 1px solid #e9e8e5;
      border-radius: 18px;
      box-shadow: var(--shadow);
      overflow: auto;
    }

    .inner {
      width: min(1760px, calc(100vw - 150px));
      margin: 0 auto;
      padding: 38px 48px 64px;
    }

    .topbar {
      display: grid;
      grid-template-columns: minmax(280px, 1fr) auto;
      gap: 24px;
      align-items: start;
      min-height: 86px;
    }

    .title-tabs {
      display: flex;
      align-items: baseline;
      gap: 34px;
      white-space: nowrap;
    }

    .title-tabs h1 {
      margin: 0;
      font-size: 28px;
      line-height: 1.1;
      font-weight: 850;
    }

    .title-tabs button {
      border: 0;
      background: transparent;
      color: #757773;
      font-size: 26px;
      font-weight: 780;
      padding: 0;
    }

    .top-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 12px;
    }

    .history-btn {
      height: 46px;
      padding: 0 24px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      color: #1b1b1b;
      font-weight: 760;
      box-shadow: 0 5px 12px rgba(0, 0, 0, 0.04);
    }

    .search {
      width: 330px;
      height: 46px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 18px;
      box-shadow: 0 5px 12px rgba(0, 0, 0, 0.035);
    }

    .search svg {
      width: 21px;
      height: 21px;
      stroke: #777977;
      stroke-width: 2.2;
      fill: none;
    }

    .search input {
      border: 0;
      outline: 0;
      width: 100%;
      min-width: 0;
      color: #333;
      background: transparent;
      font-size: 15px;
    }

    .section-title svg,
    .mini-icon svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .section {
      margin-top: 0;
      margin-bottom: 48px;
    }

    .today-section,
    .access-section {
      margin-top: 12px;
    }

    .assistant-access-view {
      padding-top: 12px;
    }

    .assistant-access-view.is-qubao-integrated {
      min-height: 100%;
      padding: 0;
    }

    .assistant-access-view.is-qubao-integrated > :not(.qubao-integration-handoff) {
      display: none !important;
    }

    .qubao-integration-handoff {
      min-height: calc(100vh - 48px);
      box-sizing: border-box;
      display: grid;
      place-items: center;
      padding: clamp(28px, 6vw, 86px);
      background:
        radial-gradient(circle at 50% 18%, rgba(61, 124, 255, 0.14), transparent 38%),
        linear-gradient(180deg, #f7f9fd 0%, #f3f6fa 100%);
    }

    .qubao-integration-handoff[hidden] {
      display: none !important;
    }

    .qubao-integration-card {
      width: min(760px, 100%);
      box-sizing: border-box;
      padding: clamp(32px, 5vw, 58px);
      border: 1px solid rgba(148, 163, 184, 0.24);
      border-radius: 28px;
      background: rgba(255, 255, 255, 0.86);
      box-shadow: 0 30px 90px rgba(50, 74, 120, 0.12), 0 4px 18px rgba(15, 23, 42, 0.04);
      backdrop-filter: blur(22px) saturate(1.08);
      text-align: center;
    }

    .qubao-integration-eyebrow {
      color: #3d7cff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
    }

    .qubao-integration-lockup {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 20px;
      color: #13213a;
      font-size: 15px;
      font-weight: 750;
    }

    .qubao-integration-mark {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: #0b172b;
      color: #ffca28;
      font-size: 18px;
      font-weight: 900;
    }

    .qubao-integration-card h1 {
      margin: 18px 0 12px;
      color: #111827;
      font-size: clamp(30px, 4vw, 44px);
      line-height: 1.15;
      letter-spacing: -0.045em;
    }

    .qubao-integration-card > p {
      max-width: 620px;
      margin: 0 auto;
      color: #667085;
      font-size: 14px;
      line-height: 1.8;
    }

    .qubao-integration-points {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
      margin: 24px 0;
    }

    .qubao-integration-points span {
      padding: 7px 11px;
      border: 1px solid #e1e7f0;
      border-radius: 999px;
      background: #f8fafc;
      color: #667085;
      font-size: 11px;
      font-weight: 650;
    }

    .qubao-integration-open {
      min-width: 190px;
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 0;
      border-radius: 13px;
      background: #3d7cff;
      box-shadow: 0 14px 28px rgba(61, 124, 255, 0.24);
      color: #fff;
      cursor: pointer;
      font-size: 14px;
      font-weight: 750;
      transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    }

    .qubao-integration-open:hover {
      transform: translateY(-1px);
      background: #2f6eed;
      box-shadow: 0 17px 34px rgba(61, 124, 255, 0.3);
    }

    .qubao-integration-open:focus-visible {
      outline: 3px solid rgba(61, 124, 255, 0.25);
      outline-offset: 3px;
    }

    .qubao-integration-card small {
      display: block;
      margin-top: 18px;
      color: #98a2b3;
      font-size: 10px;
      line-height: 1.55;
    }

    @media (max-width: 720px) {
      .qubao-integration-handoff {
        min-height: 100vh;
        padding: 18px;
      }

      .qubao-integration-card {
        padding: 30px 22px;
        border-radius: 22px;
      }

      .qubao-integration-card h1 {
        font-size: 30px;
      }
    }

    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 24px;
    }

    .section-title {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .section-title h2 {
      margin: 0;
      font-size: 28px;
      line-height: 1.2;
      font-weight: 840;
    }

    .section-title p {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      font-weight: 720;
      padding-left: 14px;
      border-left: 1px solid var(--line);
    }

    .access-title {
      align-items: flex-end;
    }

    .access-title > div {
      display: grid;
      gap: 7px;
    }

    .section-eyebrow {
      color: var(--green-dark);
      font-size: 11px;
      line-height: 1;
      font-weight: 900;
      letter-spacing: 0.16em;
    }

    .more-btn {
      border: 0;
      background: transparent;
      color: #9d9f9c;
      font-size: 16px;
      font-weight: 780;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: max-content;
    }

    .today-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
    }

    .access-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
      gap: 16px;
    }

    .access-card {
      min-height: 392px;
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 28px;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      box-shadow: 0 12px 30px rgba(28, 31, 35, 0.055);
    }

    .access-card-primary {
      color: #fff;
      border-color: #171b19;
      background:
        radial-gradient(circle at 92% 3%, rgba(21, 198, 163, 0.2), transparent 33%),
        linear-gradient(145deg, #111412, #1d211f 72%, #181b1a);
    }

    .access-card-feishu {
      color: #161918;
      background:
        radial-gradient(circle at 95% 0%, rgba(61, 124, 255, 0.12), transparent 34%),
        linear-gradient(160deg, #fff, #f3f5f8);
    }

    .access-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 18px;
    }

    .access-kicker {
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .access-card-primary .access-kicker {
      color: #82e8d2;
    }

    .access-card-feishu .access-kicker {
      color: #356fe8;
    }

    .access-status {
      flex: 0 0 auto;
      border-radius: 999px;
      padding: 7px 10px;
      color: #dffaf4;
      background: rgba(255, 255, 255, 0.1);
      font-size: 11px;
      font-weight: 850;
    }

    .access-status-planning {
      color: #3567cc;
      background: #e9efff;
    }

    .access-card h3 {
      margin: 0;
      max-width: 680px;
      font-size: 27px;
      line-height: 1.18;
      font-weight: 880;
      letter-spacing: -0.025em;
    }

    .access-description {
      margin: 12px 0 0;
      max-width: 720px;
      font-size: 14px;
      line-height: 1.65;
      font-weight: 650;
    }

    .access-card-primary .access-description {
      color: #aeb6b2;
    }

    .access-card-feishu .access-description {
      color: #737b78;
    }

    .access-steps {
      margin: 22px 0 0;
      padding: 0;
      list-style: none;
      counter-reset: access-step;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .access-steps li {
      counter-increment: access-step;
      min-width: 0;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 13px 12px;
      background: rgba(255, 255, 255, 0.045);
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      column-gap: 8px;
      row-gap: 4px;
    }

    .access-steps li::before {
      content: counter(access-step, decimal-leading-zero);
      grid-row: 1 / span 2;
      color: #6de0c8;
      font-size: 11px;
      font-weight: 900;
      line-height: 1.5;
    }

    .access-steps strong {
      min-width: 0;
      color: #fff;
      font-size: 12px;
      line-height: 1.35;
      font-weight: 850;
    }

    .access-steps span {
      min-width: 0;
      color: #909995;
      font-size: 11px;
      line-height: 1.4;
      font-weight: 650;
    }

    .starter-prompt,
    .feishu-example {
      margin-top: 12px;
      border-radius: 14px;
      padding: 13px 15px;
    }

    .starter-prompt {
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(0, 0, 0, 0.18);
    }

    .starter-prompt > span,
    .feishu-example > span {
      display: block;
      margin-bottom: 6px;
      font-size: 11px;
      font-weight: 850;
    }

    .starter-prompt > span {
      color: #7adbc8;
    }

    .starter-prompt p,
    .feishu-example p {
      margin: 0;
      font-size: 12px;
      line-height: 1.52;
      font-weight: 650;
    }

    .starter-prompt p {
      color: #c9cfcc;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }

    .access-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: auto;
      padding-top: 16px;
    }

    .access-action {
      min-height: 42px;
      border-radius: 12px;
      padding: 0 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 13px;
      font-weight: 850;
      transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
    }

    .access-action:hover {
      transform: translateY(-1px);
    }

    .access-action-light {
      border: 1px solid #fff;
      color: #111412;
      background: #fff;
    }

    .access-action-ghost {
      border: 1px solid rgba(255, 255, 255, 0.18);
      color: #f4f6f5;
      background: rgba(255, 255, 255, 0.06);
    }

    .feishu-example {
      border: 1px solid #dbe3f5;
      background: #edf2ff;
    }

    .feishu-example > span {
      color: #5570aa;
    }

    .feishu-example p {
      color: #49566f;
    }

    .feishu-example strong {
      color: #275ac2;
    }

    .route-summary {
      margin-top: 14px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .route-summary div {
      border-top: 1px solid #e0e4e8;
      padding-top: 11px;
      display: grid;
      gap: 4px;
    }

    .route-summary span {
      color: #8a908e;
      font-size: 11px;
      font-weight: 750;
    }

    .route-summary strong {
      color: #2c312f;
      font-size: 12px;
      line-height: 1.4;
      font-weight: 850;
    }

    .access-action-outline {
      width: max-content;
      margin-top: auto;
      border: 1px solid #ccd4df;
      color: #54606d;
      background: rgba(255, 255, 255, 0.66);
    }

    .access-footnote {
      margin: 9px 0 0;
      color: #979d9b;
      font-size: 11px;
      line-height: 1.45;
      font-weight: 650;
    }

    .today-card {
      min-height: 132px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: linear-gradient(180deg, #ffffff, #f7f6f3);
      padding: 20px 22px;
      display: grid;
      align-content: space-between;
      box-shadow: 0 8px 22px rgba(28, 31, 35, 0.035);
    }

    .today-card.week-card {
      min-height: 132px;
      align-content: start;
      gap: 8px;
      padding: 17px 19px;
    }

    .today-card .week-card-title {
      color: #333936;
      font-size: 13px;
      font-weight: 900;
    }

    .week-split {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
      min-width: 0;
    }

    .week-period {
      min-width: 0;
      display: grid;
      align-content: start;
      gap: 4px;
      padding-left: 13px;
    }

    .week-period:first-child {
      padding-left: 0;
      padding-right: 13px;
      border-right: 1px solid #e3e3df;
    }

    .week-period-label {
      color: #747975;
      font-size: 10px;
      line-height: 1.2;
      font-weight: 850;
      letter-spacing: 0.01em;
    }

    .week-period-label small {
      margin-left: 4px;
      color: #a1a5a2;
      font-size: 9px;
      font-weight: 750;
    }

    .week-period-value {
      min-width: 0;
      display: grid;
      gap: 2px;
    }

    .today-card .week-period strong {
      color: #151515;
      font-size: 22px;
      line-height: 1.15;
      font-weight: 900;
      white-space: nowrap;
    }

    .week-period-value em {
      color: #363a38;
      font-size: 10px;
      line-height: 1.2;
      font-style: normal;
      font-weight: 850;
      white-space: nowrap;
    }

    .today-card .week-period p {
      color: #8d918e;
      font-size: 9px;
      line-height: 1.25;
      font-weight: 720;
    }

    .week-period-natural {
      opacity: 0.68;
    }

    .today-card .week-period-natural strong {
      font-size: 15px;
    }

    .week-period-natural .week-period-value em {
      font-size: 9px;
    }

    .today-card span,
    .todo-card span {
      color: #8e918e;
      font-size: 14px;
      font-weight: 800;
    }

    .today-card strong {
      color: #151515;
      font-size: 24px;
      line-height: 1.15;
      font-weight: 880;
    }

    .today-card p,
    .todo-card p,
    .opportunity-card p {
      margin: 0;
      color: #858885;
      line-height: 1.55;
    }

    .todo-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .todo-card {
      min-height: 168px;
      border-radius: 18px;
      background: #fff;
      border: 1px solid var(--line);
      padding: 22px;
      display: grid;
      align-content: space-between;
    }

    .todo-card.high {
      background: #f1f0ec;
    }

    .todo-card strong,
    .opportunity-card strong {
      font-size: 20px;
      line-height: 1.2;
      font-weight: 850;
    }

    .opportunity-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .opportunity-card {
      min-height: 170px;
      border-radius: 18px;
      background: var(--card);
      padding: 22px;
      display: grid;
      align-content: space-between;
      gap: 12px;
    }

    .bundle-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .bundle-card {
      min-height: 282px;
      background: var(--card);
      border-radius: 18px;
      padding: 28px;
      display: grid;
      grid-template-rows: 124px 1px minmax(80px, auto);
      gap: 18px;
    }

    .bundle-top {
      display: grid;
      grid-template-columns: 108px minmax(0, 1fr) auto;
      gap: 22px;
      align-items: center;
    }

    .thumb {
      width: 108px;
      height: 108px;
      border-radius: 20px;
      display: block;
      object-fit: cover;
      box-shadow: 0 10px 22px rgba(30, 35, 40, 0.08);
      flex: none;
    }

    .bundle-copy {
      min-width: 0;
      align-self: center;
    }

    .bundle-copy h3 {
      margin: 0 0 12px;
      font-size: 25px;
      line-height: 1.2;
      font-weight: 850;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .bundle-copy p {
      margin: 0;
      color: #858885;
      font-size: 16px;
      line-height: 1.55;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .type-tag {
      min-height: 28px;
      padding: 0 12px;
      border-radius: 10px;
      background: #e8e7e2;
      color: #222;
      display: inline-flex;
      align-items: center;
      font-size: 14px;
      font-weight: 820;
    }

    .type-tag.warn {
      color: #b05a61;
      background: #f4e6e4;
    }

    .add-btn {
      width: 96px;
      height: 46px;
      border: 0;
      border-radius: 12px;
      background: var(--black);
      color: #fff;
      font-size: 15px;
      font-weight: 850;
      box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
      justify-self: end;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      white-space: nowrap;
    }

    .link-stack {
      display: grid;
      gap: 8px;
      justify-items: end;
    }

    .link-stack .add-btn {
      height: 38px;
      min-width: 112px;
      width: auto;
      padding: 0 14px;
      font-size: 13px;
    }

    .add-btn.secondary {
      background: #ffffff;
      color: #222;
      border: 1px solid #d9d8d4;
      box-shadow: 0 5px 12px rgba(0, 0, 0, 0.04);
    }

    .divider {
      background: #e0dfda;
    }

    .bundle-bottom {
      align-self: end;
      display: grid;
      gap: 14px;
    }

    .bundle-bottom > span {
      color: #969895;
      font-size: 15px;
      font-weight: 720;
    }

    .chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }

    .skill-chip {
      min-height: 34px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid rgba(230, 229, 225, 0.9);
      color: #4d4f4c;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 0 12px;
      font-size: 15px;
      font-weight: 760;
      white-space: nowrap;
      text-decoration: none;
    }

    .mini-icon {
      width: 22px;
      height: 22px;
      border-radius: 7px;
      display: grid;
      place-items: center;
      color: #fff;
      flex: none;
    }

    .op-card-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .op-card {
      min-height: 160px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      padding: 22px 24px;
      display: grid;
      align-content: space-between;
    }

    .op-card strong {
      font-size: 20px;
      line-height: 1.2;
    }

    .op-card p {
      margin: 12px 0 0;
      color: #858885;
      line-height: 1.65;
    }

    .data-peek {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .data-card {
      min-height: 168px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fff;
      padding: 22px;
      display: grid;
      gap: 14px;
    }

    .data-card h3 {
      margin: 0;
      font-size: 20px;
    }

    .data-line {
      height: 10px;
      border-radius: 20px;
      background: #efefec;
      overflow: hidden;
    }

    .data-line span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: var(--green);
    }

    .file-library-section {
      margin-top: 18px;
    }

    .file-list-toolbar {
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .file-list-title {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #202223;
    }

    .file-list-title svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .file-list-title strong {
      font-size: 24px;
      font-weight: 850;
    }

    .file-list-title .chevron {
      width: 18px;
      height: 18px;
    }

    .file-table-wrap {
      border: 1px solid #dcdeda;
      background: #fff;
      overflow-x: auto;
    }

    .file-table {
      width: 100%;
      min-width: 720px;
      border-collapse: collapse;
      table-layout: fixed;
    }

    .file-table th,
    .file-table td {
      height: 72px;
      padding: 0 52px;
      text-align: left;
      border-bottom: 1px solid #e5e6e2;
    }

    .file-table th {
      color: #69707a;
      font-size: 18px;
      font-weight: 850;
      background: #fff;
    }

    .file-table td {
      color: #5f6670;
      font-size: 18px;
      font-weight: 650;
    }

    .file-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .file-name {
      display: inline-flex;
      align-items: center;
      gap: 18px;
      min-width: 0;
      color: #202223;
      text-decoration: none;
      font-weight: 760;
    }

    .file-icon {
      width: 30px;
      height: 30px;
      border-radius: 6px;
      background: #3b72f0;
      color: #fff;
      display: grid;
      place-items: center;
      flex: none;
    }

    .file-icon svg {
      width: 19px;
      height: 19px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .float-action {
      position: fixed;
      right: 44px;
      bottom: 56px;
      width: 48px;
      height: 48px;
      border: 0;
      border-radius: 50%;
      background: #bd8550;
      color: #fff;
      display: grid;
      place-items: center;
      box-shadow: 0 12px 28px rgba(189, 133, 80, 0.35);
      z-index: 70;
    }

    .chatbot-backdrop {
      position: fixed;
      inset: 0;
      display: none;
      background:
        radial-gradient(circle at 72% 72%, rgba(189, 133, 80, 0.18), transparent 34%),
        rgba(18, 18, 18, 0.26);
      backdrop-filter: blur(3px);
      z-index: 50;
    }

    .chatbot-backdrop.is-open {
      display: none;
    }

    .float-action svg {
      width: 24px;
      height: 24px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .chatbot-panel {
      position: fixed;
      right: 44px;
      bottom: 118px;
      width: min(420px, calc(100vw - 32px));
      aspect-ratio: 3 / 4;
      background: #fff;
      border: 1px solid rgba(18, 18, 18, 0.16);
      border-radius: 22px;
      box-shadow: 0 24px 70px rgba(22, 24, 26, 0.24);
      overflow: hidden;
      display: none;
      z-index: 60;
    }

    .chatbot-panel.is-open {
      display: grid;
      grid-template-rows: 76px minmax(0, 1fr) 78px;
    }

    .chatbot-head {
      min-height: 76px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      border-bottom: 0;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
        linear-gradient(135deg, #1f1f1f 0%, #101010 54%, #bd8550 100%);
      color: #fff;
    }

    .chatbot-head strong,
    .chatbot-head span {
      display: block;
    }

    .chatbot-head strong {
      font-size: 20px;
      font-weight: 850;
    }

    .chatbot-head span {
      margin-top: 6px;
      color: rgba(255, 255, 255, 0.68);
      font-size: 13px;
      font-weight: 700;
    }

    .chatbot-close {
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.16);
      color: #fff;
      font-size: 26px;
      line-height: 1;
    }

    .chatbot-messages {
      min-height: 0;
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      overflow-y: auto;
      background:
        linear-gradient(180deg, rgba(248, 247, 244, 0.76), rgba(255, 255, 255, 0.98)),
        #fff;
    }

    .bot-message,
    .user-message {
      max-width: 86%;
      border-radius: 18px;
      padding: 12px 14px;
      line-height: 1.6;
      font-size: 14px;
      font-weight: 650;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }

    .bot-message {
      align-self: flex-start;
      background: #fff;
      color: #383936;
      border: 1px solid #e5e3dc;
      box-shadow: 0 8px 24px rgba(22, 24, 26, 0.06);
    }

    .user-message {
      align-self: flex-end;
      background: #111;
      color: #fff;
    }

    .bot-message.is-loading {
      color: #7f8581;
    }

    .chatbot-form {
      padding: 14px 16px;
      border-top: 1px solid #e6e3dc;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 76px;
      gap: 10px;
      background: #fff;
    }

    .chatbot-form input {
      min-width: 0;
      height: 48px;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 0 14px;
      outline: none;
      background: #fff;
      font-size: 14px;
    }

    .chatbot-form button {
      border: 0;
      border-radius: 14px;
      background: #111;
      color: #fff;
      font-weight: 850;
      font-size: 14px;
    }

    .chatbot-form input:disabled,
    .chatbot-form button:disabled {
      cursor: wait;
      opacity: 0.58;
    }

    @media (max-width: 1280px) {
      .inner {
        width: auto;
        padding: 34px 34px 56px;
      }

      .bundle-top {
        grid-template-columns: 96px minmax(0, 1fr);
      }

      .thumb {
        width: 96px;
        height: 96px;
      }

      .add-btn {
        grid-column: 2;
        justify-self: start;
        margin-top: -2px;
      }

      .link-stack {
        grid-column: 2;
        justify-items: start;
      }

      .bundle-card {
        grid-template-rows: auto 1px minmax(80px, auto);
      }
    }

    @media (max-width: 980px) {
      .app {
        grid-template-columns: 72px minmax(0, 1fr);
      }

      .main {
        padding: 14px 14px 14px 0;
      }

      .inner {
        padding: 28px 24px 48px;
      }

      .topbar {
        grid-template-columns: 1fr;
      }

      .top-actions {
        justify-content: start;
        flex-wrap: wrap;
      }

      .bundle-grid,
      .today-grid,
      .access-grid,
      .todo-grid,
      .opportunity-grid {
        grid-template-columns: 1fr;
      }

      .bundle-card {
        min-height: 260px;
      }

      .access-card {
        min-height: auto;
      }

      .file-table th,
      .file-table td {
        padding: 0 28px;
      }
    }

    @media (max-width: 640px) {
      .app {
        display: block;
        height: 100vh;
        overflow: hidden;
      }

      .rail {
        position: static;
        top: auto;
        min-height: auto;
        height: 70px;
        padding: 10px 14px;
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
      }

      .rail-nav {
        display: flex;
        margin-top: 0;
      }

      .rail-bottom {
        display: none;
      }

      .main {
        height: calc(100vh - 70px);
        padding: 10px;
      }

      .surface {
        height: 100%;
        min-height: 0;
      }

      .inner {
        padding: 24px 18px 44px;
      }

      .title-tabs {
        gap: 20px;
      }

      .title-tabs h1,
      .section-title h2 {
        font-size: 24px;
      }

      .title-tabs button {
        font-size: 22px;
      }

      .search {
        width: 100%;
      }

      .section-title {
        align-items: flex-start;
        flex-direction: column;
      }

      .section-title p {
        padding-left: 0;
        border-left: 0;
      }

      .access-title {
        align-items: flex-start;
      }

      .access-steps,
      .route-summary {
        grid-template-columns: 1fr;
      }

      .access-card {
        padding: 22px;
      }

      .access-card h3 {
        font-size: 23px;
      }

      .access-actions {
        flex-direction: column;
      }

      .access-action,
      .access-action-outline {
        width: 100%;
      }

      .bundle-card {
        padding: 22px;
      }

      .bundle-top {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 16px;
      }

      .thumb {
        width: 76px;
        height: 76px;
        border-radius: 16px;
        font-size: 30px;
      }

      .bundle-copy h3 {
        font-size: 21px;
        white-space: normal;
      }

      .bundle-copy p {
        white-space: normal;
      }

      .add-btn {
        grid-column: 1 / -1;
      }

      .link-stack {
        grid-column: 1 / -1;
      }

      .file-list-title strong {
        font-size: 22px;
      }

      .file-table {
        min-width: 560px;
      }

      .file-table th,
      .file-table td {
        height: 64px;
        padding: 0 18px;
        font-size: 15px;
      }

      .chatbot-panel {
        right: 14px;
        bottom: 86px;
        width: min(380px, calc(100vw - 28px));
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 20px;
        grid-template-rows: 76px minmax(0, 1fr) 78px;
      }

      .chatbot-panel.is-open {
        display: grid;
        grid-template-rows: 76px minmax(0, 1fr) 78px;
      }

      .chatbot-head {
        min-height: 76px;
        padding: 16px 18px;
      }

      .chatbot-head strong {
        font-size: 20px;
      }

      .chatbot-messages {
        padding: 18px;
      }

      .chatbot-form {
        padding: 14px;
        grid-template-columns: minmax(0, 1fr) 76px;
      }

      .chatbot-form input {
        height: 48px;
      }
    }

    .workspace-view {
      display: none;
    }

    .workspace-view.is-active {
      display: block;
    }

    .business-space-view {
      padding-top: 8px;
    }

    .business-quick-tabs {
      width: max-content;
      max-width: 100%;
      min-height: 64px;
      margin: 2px auto 34px;
      padding: 7px;
      border: 1px solid #dde5ee;
      border-radius: 999px;
      background: #f3f6fa;
      display: flex;
      align-items: center;
      gap: 4px;
      box-shadow: 0 8px 22px rgba(49, 66, 86, 0.045);
      overflow-x: auto;
    }

    .business-quick-tab {
      min-height: 48px;
      padding: 0 26px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: #657086;
      font-size: 16px;
      font-weight: 850;
      white-space: nowrap;
      transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    }

    .business-quick-tab.is-active {
      color: #161d2a;
      background: #fff;
      box-shadow: 0 8px 18px rgba(55, 72, 96, 0.1);
    }

    .business-quick-tabs-smart .business-quick-tab.is-active {
      color: #2f4cae;
    }

    .business-quick-tab:disabled {
      cursor: default;
      opacity: 0.72;
    }

    .business-space-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin: 12px 0 34px;
    }

    .business-space-heading {
      min-width: 0;
    }

    .business-space-eyebrow,
    .module-eyebrow {
      display: block;
      color: var(--green-dark);
      font-size: 11px;
      line-height: 1;
      font-weight: 900;
      letter-spacing: 0.16em;
    }

    .business-space-heading h2 {
      margin: 12px 0 8px;
      font-size: clamp(30px, 3vw, 46px);
      line-height: 1.05;
      font-weight: 900;
      letter-spacing: -0.04em;
    }

    .business-space-heading p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
      font-weight: 680;
    }

    .business-back {
      flex: none;
      min-height: 40px;
      padding: 0 15px;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: #fff;
      color: #545955;
      font-size: 13px;
      font-weight: 820;
      box-shadow: 0 5px 12px rgba(0, 0, 0, 0.035);
    }

    .business-back:hover {
      transform: translateY(-1px);
    }

    .directory-icon {
      width: 92px;
      height: 92px;
      border-radius: 20px;
      display: grid;
      place-items: center;
      flex: none;
      object-fit: cover;
      box-shadow: 0 10px 22px rgba(24, 30, 29, 0.12);
    }

    .directory-icon-smart {
      color: #fff;
      background: linear-gradient(145deg, #3d7cff, #5a63df);
    }

    .directory-icon-smart svg {
      width: 52px;
      height: 52px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .weekly-stage-intro h3,
    .business-empty-state h3 {
      margin: 14px 0 10px;
      font-size: clamp(26px, 3vw, 42px);
      line-height: 1.08;
      font-weight: 900;
      letter-spacing: -0.04em;
    }

    .weekly-module-stage {
      max-width: 1180px;
      padding: 4px 0 20px;
    }

    .weekly-stage-intro {
      max-width: 680px;
      margin-bottom: 28px;
    }

    .weekly-stage-intro h3 {
      margin-bottom: 10px;
    }

    .weekly-stage-intro p,
    .business-empty-state p {
      margin: 0;
      color: #7e8581;
      font-size: 14px;
      line-height: 1.65;
      font-weight: 650;
    }

    .weekly-stage-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .weekly-stage-card {
      min-height: 154px;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 17px;
      background: linear-gradient(180deg, #fff, #f8f8f5);
      display: grid;
      align-content: start;
      gap: 8px;
    }

    .weekly-stage-number {
      color: var(--green-dark);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.1em;
    }

    .weekly-stage-card strong {
      font-size: 18px;
      font-weight: 880;
    }

    .weekly-stage-card p {
      margin: 0;
      color: #8a908c;
      font-size: 12px;
      line-height: 1.55;
      font-weight: 650;
    }

    .module-coming-soon {
      margin-top: 14px;
      padding: 16px 20px;
      border-radius: 15px;
      background: #eff8f4;
      color: #316856;
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 12px;
      font-weight: 720;
    }

    .module-coming-soon span {
      color: #73a491;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .business-empty-state {
      min-height: 360px;
      max-width: 760px;
      border: 1px dashed #d8ddd8;
      border-radius: 22px;
      padding: 54px 30px;
      display: grid;
      justify-items: center;
      align-content: center;
      text-align: center;
      background: #fafbf9;
    }

    .business-empty-state .directory-icon {
      width: 72px;
      height: 72px;
      margin-bottom: 22px;
    }

    .business-empty-state h3 {
      margin-top: 14px;
      font-size: clamp(24px, 3vw, 36px);
    }

    .business-empty-state p {
      max-width: 440px;
    }

    @media (max-width: 980px) {
      .weekly-stage-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .business-quick-tabs {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 24px;
      }

      .business-quick-tab {
        min-height: 44px;
        padding: 0 18px;
        font-size: 14px;
      }

      .business-space-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
      }

      .business-back {
        min-height: 36px;
      }

      .module-coming-soon {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
      }
    }

    .rail-radar-btn .radar-signal-dot {
      fill: currentColor;
      stroke: none;
    }

    .rail-radar-btn.active {
      color: #0f867f;
      background: #e9f7f5;
      box-shadow: inset 3px 0 0 #20b8ad;
    }

    .app[data-active-panel="intelligence-cockpit"] .surface {
      overflow: hidden;
    }

    .app[data-active-panel="intelligence-cockpit"] .float-action {
      display: none;
    }

    .app[data-active-panel="intelligence-cockpit"] .inner {
      width: 100%;
      height: 100%;
      padding: 26px 30px 28px;
    }

    .intelligence-cockpit-view.is-active {
      height: 100%;
      min-height: 0;
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr);
      gap: 18px;
    }

    .cockpit-header {
      min-height: 62px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .cockpit-heading {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .cockpit-mark {
      width: 44px;
      height: 44px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      color: #116d69;
      background: #e8f8f5;
      border: 1px solid #cdebe7;
      flex: none;
    }

    .cockpit-mark svg {
      width: 30px;
      height: 30px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .cockpit-mark svg circle:last-child {
      fill: #f05283;
      stroke: none;
    }

    .cockpit-heading h2 {
      margin: 0 0 5px;
      font-size: 28px;
      line-height: 1.1;
      font-weight: 900;
      letter-spacing: 0;
    }

    .cockpit-heading p {
      margin: 0;
      color: #858a88;
      font-size: 13px;
      line-height: 1.45;
      font-weight: 650;
    }

    .cockpit-live {
      min-height: 36px;
      padding: 0 13px;
      border: 1px solid #dce6e3;
      border-radius: 8px;
      background: #fbfdfc;
      color: #5f6b68;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .cockpit-live span,
    .viewer-live-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #1fc4a6;
      box-shadow: 0 0 0 4px rgba(31, 196, 166, 0.12);
      flex: none;
    }

    .intelligence-tabs {
      min-height: 80px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid #e7e8e5;
      border-bottom: 1px solid #e7e8e5;
    }

    .intelligence-tab {
      min-width: 0;
      min-height: 80px;
      padding: 13px 18px;
      border: 0;
      border-right: 1px solid #e7e8e5;
      background: #fff;
      color: #747a77;
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      text-align: left;
      position: relative;
      transition: color 160ms ease, background 160ms ease;
    }

    .intelligence-tab:last-child {
      border-right: 0;
    }

    .intelligence-tab::after {
      content: "";
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: -1px;
      height: 3px;
      background: transparent;
      transform: scaleX(0.35);
      transition: transform 180ms ease, background 180ms ease;
    }

    .intelligence-tab:hover {
      color: #202624;
      background: #fafbf9;
    }

    .intelligence-tab:active {
      transform: translateY(1px);
    }

    .intelligence-tab:focus-visible {
      z-index: 1;
      outline: 3px solid rgba(32, 184, 173, 0.26);
      outline-offset: -3px;
    }

    .intelligence-tab.is-active {
      color: #101615;
      background: #f1faf8;
    }

    .intelligence-tab.is-active::after {
      background: #18a99f;
      transform: scaleX(1);
    }

    .intelligence-tab-index {
      color: #a4aaa7;
      font-size: 11px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }

    .intelligence-tab.is-active .intelligence-tab-index {
      color: #14877f;
    }

    .intelligence-tab-copy {
      min-width: 0;
      display: grid;
      gap: 5px;
    }

    .intelligence-tab-copy strong {
      overflow: hidden;
      color: inherit;
      font-size: 15px;
      line-height: 1.2;
      font-weight: 900;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .intelligence-tab-copy small {
      overflow: hidden;
      color: #959a97;
      font-size: 11px;
      line-height: 1.2;
      font-weight: 650;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .intelligence-stage {
      min-height: 0;
      border: 1px solid #202b31;
      border-radius: 8px;
      overflow: hidden;
      position: relative;
      background: #0d1418;
      box-shadow: 0 18px 36px rgba(22, 35, 39, 0.14);
    }

    .radar-idle {
      width: 100%;
      height: 100%;
      min-height: 420px;
      display: grid;
      grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
      align-items: center;
      justify-items: center;
      gap: 30px;
      padding: 34px 7%;
      color: #f4faf9;
      background-color: #0d1418;
      background-image: linear-gradient(rgba(110, 155, 154, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 155, 154, 0.055) 1px, transparent 1px);
      background-size: 36px 36px;
    }

    .intelligence-stage[data-state="viewer"] .radar-idle {
      display: none;
    }

    .radar-visual {
      width: min(390px, 46vh);
      aspect-ratio: 1;
      border: 1px solid rgba(93, 232, 218, 0.3);
      border-radius: 50%;
      position: relative;
      overflow: hidden;
      background: radial-gradient(circle, rgba(24, 169, 159, 0.08), rgba(13, 20, 24, 0) 65%);
      box-shadow: inset 0 0 54px rgba(42, 190, 180, 0.06), 0 0 46px rgba(42, 190, 180, 0.05);
    }

    .radar-ring,
    .radar-axis,
    .radar-center,
    .radar-blip,
    .radar-sweep {
      position: absolute;
    }

    .radar-ring {
      left: 50%;
      top: 50%;
      border: 1px solid rgba(93, 232, 218, 0.21);
      border-radius: 50%;
      transform: translate(-50%, -50%);
    }

    .radar-ring-one {
      width: 33%;
      height: 33%;
    }

    .radar-ring-two {
      width: 66%;
      height: 66%;
    }

    .radar-ring-three {
      width: 91%;
      height: 91%;
    }

    .radar-axis {
      background: rgba(93, 232, 218, 0.13);
    }

    .radar-axis-horizontal {
      left: 4%;
      right: 4%;
      top: 50%;
      height: 1px;
    }

    .radar-axis-vertical {
      top: 4%;
      bottom: 4%;
      left: 50%;
      width: 1px;
    }

    .radar-sweep {
      inset: 4%;
      border-radius: 50%;
      background: conic-gradient(from 0deg, transparent 0 76%, rgba(68, 224, 209, 0.03) 82%, rgba(68, 224, 209, 0.34) 99.5%, transparent 100%);
      animation: radarSweep 4.8s linear infinite;
    }

    .radar-center {
      left: 50%;
      top: 50%;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #f05283;
      box-shadow: 0 0 0 7px rgba(240, 82, 131, 0.12);
      transform: translate(-50%, -50%);
    }

    .radar-blip {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #63eadc;
      box-shadow: 0 0 0 0 rgba(99, 234, 220, 0.5);
      animation: radarBlip 2.4s ease-out infinite;
    }

    .radar-blip-one {
      left: 65%;
      top: 27%;
    }

    .radar-blip-two {
      left: 30%;
      top: 61%;
      animation-delay: 0.8s;
    }

    .radar-blip-three {
      left: 72%;
      top: 69%;
      background: #f39a54;
      animation-delay: 1.5s;
    }

    .radar-idle-copy {
      width: 100%;
      max-width: 430px;
      justify-self: start;
    }

    .radar-idle-copy > span {
      color: #74d9d1;
      font-size: 12px;
      line-height: 1.2;
      font-weight: 850;
    }

    .radar-idle-copy strong {
      display: block;
      margin-top: 14px;
      font-size: 34px;
      line-height: 1.18;
      font-weight: 900;
      letter-spacing: 0;
    }

    .radar-idle-copy p {
      margin: 16px 0 0;
      color: #91a09f;
      font-size: 14px;
      line-height: 1.6;
      font-weight: 650;
    }

    .intelligence-viewer {
      width: 100%;
      height: 100%;
      min-height: 0;
      display: none;
      grid-template-rows: 48px minmax(0, 1fr);
    }

    .intelligence-stage[data-state="viewer"] .intelligence-viewer {
      display: grid;
    }

    .intelligence-viewer-bar {
      padding: 0 12px 0 16px;
      border-bottom: 1px solid #26333a;
      background: #111a1f;
      color: #edf5f4;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .viewer-source {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 11px;
    }

    .viewer-source > div {
      min-width: 0;
      display: flex;
      align-items: baseline;
      gap: 10px;
    }

    .viewer-source strong {
      overflow: hidden;
      font-size: 13px;
      font-weight: 850;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .viewer-source small {
      color: #81928f;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }

    .viewer-actions {
      display: flex;
      gap: 6px;
      flex: none;
    }

    .viewer-actions button {
      width: 32px;
      height: 32px;
      padding: 0;
      border: 1px solid #314149;
      border-radius: 6px;
      background: #172329;
      color: #b8c7c4;
      display: grid;
      place-items: center;
      transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
    }

    .viewer-actions button:hover {
      color: #fff;
      border-color: #4c6968;
      background: #213136;
    }

    .viewer-actions button:disabled,
    .viewer-actions button:disabled:hover {
      color: #65716f;
      border-color: #29373c;
      background: #172329;
      opacity: 0.42;
      cursor: not-allowed;
    }

    .viewer-actions button:active {
      transform: translateY(1px);
    }

    .viewer-actions button:focus-visible {
      outline: 3px solid rgba(99, 234, 220, 0.34);
      outline-offset: 1px;
    }

    .viewer-actions svg {
      width: 17px;
      height: 17px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .intelligence-frame-shell {
      min-height: 0;
      position: relative;
      overflow: hidden;
      background: #f3f5f4;
    }

    .intelligence-frame-shell:fullscreen {
      width: 100vw;
      height: 100vh;
      background: #fff;
    }

    .intelligence-frame-shell iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: none;
      background: #fff;
    }

.intelligence-frame-shell iframe.is-active {
  display: block;
}

.intelligence-frame-shell.has-embed-fallback {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 36px;
  background:
    linear-gradient(rgba(231, 244, 241, 0.68) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 244, 241, 0.68) 1px, transparent 1px),
    #f8fbfa;
  background-size: 24px 24px;
}

.intelligence-embed-fallback {
  width: min(480px, 100%);
  padding: 34px;
  border: 1px solid #d6e5e1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 44px rgba(27, 79, 71, 0.09);
  text-align: center;
}

.embed-fallback-icon,
.operations-local-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 15px;
  border-radius: 10px;
  background: #e6f8f4;
  color: #168f81;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 850;
}

.intelligence-embed-fallback strong,
.operations-local-fallback strong {
  color: #1c2a27;
  display: block;
  font-size: 17px;
  font-weight: 850;
}

.intelligence-embed-fallback p,
.operations-local-fallback p {
  margin: 10px auto 20px;
  color: #687773;
  font-size: 13px;
  line-height: 1.7;
}

.intelligence-embed-fallback button,
.operations-local-fallback a {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: #172421;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

    .intelligence-loading {
      position: absolute;
      inset: 0;
      z-index: 2;
      padding: 30px;
      display: none;
      align-content: center;
      justify-items: center;
      gap: 12px;
      background: rgba(245, 247, 246, 0.97);
      color: #697572;
    }

    .intelligence-stage.is-loading .intelligence-loading {
      display: grid;
    }

    .intelligence-loading span {
      width: min(420px, 76%);
      height: 14px;
      border-radius: 4px;
      background: linear-gradient(90deg, #e4e8e6 20%, #f5f7f6 50%, #e4e8e6 80%);
      background-size: 240% 100%;
      animation: intelligenceLoading 1.5s ease-in-out infinite;
    }

    .intelligence-loading span:nth-child(2) {
      width: min(330px, 62%);
    }

    .intelligence-loading span:nth-child(3) {
      width: min(250px, 48%);
    }

    .intelligence-loading strong {
      margin-top: 10px;
      font-size: 12px;
      font-weight: 800;
    }

    @keyframes radarSweep {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes radarBlip {
      0% {
        box-shadow: 0 0 0 0 rgba(99, 234, 220, 0.46);
        opacity: 0.5;
      }
      65% {
        box-shadow: 0 0 0 14px rgba(99, 234, 220, 0);
        opacity: 1;
      }
      100% {
        box-shadow: 0 0 0 18px rgba(99, 234, 220, 0);
        opacity: 0.58;
      }
    }

    @keyframes intelligenceLoading {
      0% {
        background-position: 100% 0;
      }
      100% {
        background-position: -100% 0;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .radar-sweep,
      .radar-blip,
      .intelligence-loading span {
        animation: none;
      }
    }

    @media (max-width: 980px) {
      .app[data-active-panel="intelligence-cockpit"] .inner {
        padding: 22px 22px 24px;
      }

      .intelligence-cockpit-view.is-active {
        gap: 14px;
      }

      .intelligence-tab {
        padding-inline: 12px;
      }

      .intelligence-tab::after {
        left: 12px;
        right: 12px;
      }

      .radar-idle {
        grid-template-columns: 1fr 0.8fr;
        padding-inline: 4%;
      }

      .radar-visual {
        width: min(330px, 42vh);
      }

      .radar-idle-copy strong {
        font-size: 28px;
      }
    }

    @media (max-width: 720px) {
      .app[data-active-panel="intelligence-cockpit"] .surface {
        overflow: auto;
      }

      .app[data-active-panel="intelligence-cockpit"] .inner {
        height: auto;
        min-height: 100%;
        padding: 18px 14px 20px;
      }

      .intelligence-cockpit-view.is-active {
        height: auto;
        min-height: 720px;
        grid-template-rows: auto auto minmax(520px, 1fr);
      }

      .cockpit-header {
        align-items: flex-start;
      }

      .cockpit-heading h2 {
        font-size: 23px;
      }

      .cockpit-heading p {
        max-width: 240px;
      }

      .cockpit-live {
        display: none;
      }

      .intelligence-tabs {
        display: flex;
        min-height: 76px;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .intelligence-tabs::-webkit-scrollbar {
        display: none;
      }

      .intelligence-tab {
        flex: 0 0 215px;
        min-height: 76px;
      }

      .radar-idle {
        min-height: 520px;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 28px 22px;
        text-align: center;
      }

      .radar-visual {
        width: min(280px, 74vw);
      }

      .radar-idle-copy {
        justify-self: center;
      }

      .radar-idle-copy strong {
        font-size: 25px;
      }

      .radar-idle-copy p {
        font-size: 13px;
      }

      .viewer-source > div {
        display: grid;
        gap: 2px;
      }

      .viewer-source small {
        font-size: 10px;
      }
    }

    /* Intelligence cockpit: compact switcher, light radar, unified navigation state. */
    .rail-btn.active,
    .rail-radar-btn.active {
      border: 1px solid #cbe8e3;
      background: #e9f7f5;
      color: #0f867f;
      box-shadow: 0 5px 14px rgba(16, 124, 116, 0.1);
    }

    .intelligence-cockpit-view.is-active {
      grid-template-rows: auto minmax(0, 1fr);
      gap: 12px;
    }

    .cockpit-header {
      min-height: 58px;
      display: grid;
      grid-template-columns: minmax(280px, 1fr) auto minmax(180px, 1fr);
      align-items: center;
      gap: 18px;
    }

    .cockpit-heading {
      justify-self: start;
    }

    .cockpit-heading h2 {
      margin: 0 0 4px;
      font-size: 24px;
    }

    .cockpit-heading h2 button {
      padding: 0;
      border: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      font-weight: inherit;
      letter-spacing: 0;
      cursor: pointer;
    }

    .cockpit-heading h2 button:hover {
      color: #117f78;
    }

    .cockpit-heading h2 button:focus-visible {
      border-radius: 4px;
      outline: 3px solid rgba(32, 184, 173, 0.24);
      outline-offset: 4px;
    }

    .cockpit-mark {
      width: 38px;
      height: 38px;
    }

    .cockpit-mark svg {
      width: 25px;
      height: 25px;
    }

    .cockpit-live {
      justify-self: end;
    }

    .intelligence-tabs {
      width: min(620px, 46vw);
      min-height: 44px;
      padding: 4px;
      display: flex;
      justify-self: center;
      gap: 2px;
      overflow: hidden;
      border: 1px solid #e8ebe9;
      border-radius: 8px;
      background: #f1f3f2;
    }

    .intelligence-tab {
      flex: 1 1 0;
      min-width: 0;
      min-height: 36px;
      padding: 0 16px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: #727976;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      place-items: center;
      text-align: center;
      box-shadow: none;
      transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
    }

    .intelligence-tab::after {
      display: none;
    }

    .intelligence-tab:hover {
      color: #202624;
      background: rgba(255, 255, 255, 0.62);
    }

    .intelligence-tab:focus-visible {
      outline: 3px solid rgba(32, 184, 173, 0.22);
      outline-offset: 1px;
    }

    .intelligence-tab.is-active {
      color: #17201e;
      background: #fff;
      box-shadow: 0 1px 3px rgba(21, 34, 31, 0.12), 0 3px 10px rgba(21, 34, 31, 0.05);
    }

    .intelligence-tab > strong {
      overflow: hidden;
      max-width: 100%;
      font-size: 13px;
      line-height: 1.1;
      font-weight: 850;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .intelligence-stage {
      border-color: #d9e5e2;
      background: #f4f8f7;
      box-shadow: 0 12px 28px rgba(35, 62, 57, 0.08);
    }

    .radar-idle {
      min-height: 460px;
      color: #1b2926;
      background-color: #f3f8f7;
      background-image: linear-gradient(rgba(45, 135, 126, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 135, 126, 0.055) 1px, transparent 1px);
      background-size: 40px 40px;
    }

    .radar-visual {
      width: min(360px, 43vh);
      border-color: rgba(24, 169, 159, 0.34);
      background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 18%, rgba(78, 196, 184, 0.1) 58%, rgba(78, 196, 184, 0.02) 72%);
      box-shadow: inset 0 0 64px rgba(42, 190, 180, 0.08), 0 16px 46px rgba(42, 118, 111, 0.1);
    }

    .radar-ring {
      border-color: rgba(24, 142, 133, 0.25);
    }

    .radar-axis {
      background: rgba(24, 142, 133, 0.15);
    }

    .radar-sweep {
      background: conic-gradient(from 0deg, transparent 0 76%, rgba(45, 184, 172, 0.025) 82%, rgba(45, 184, 172, 0.25) 99.5%, transparent 100%);
    }

    .radar-center {
      box-shadow: 0 0 0 7px rgba(240, 82, 131, 0.1);
    }

    .radar-blip {
      background: #20a99e;
    }

    .radar-idle-copy > span {
      color: #138c84;
    }

    .radar-idle-copy p {
      color: #71817d;
    }

    .intelligence-viewer {
      grid-template-rows: 44px minmax(0, 1fr);
    }

    .intelligence-viewer-bar {
      padding: 0 9px 0 14px;
      border-bottom-color: #dfe8e5;
      background: #f8fbfa;
      color: #1c2926;
    }

    .viewer-source small {
      color: #7e8d89;
    }

    .viewer-actions button {
      width: 30px;
      height: 30px;
      border-color: #d8e3e0;
      background: #fff;
      color: #61736f;
    }

    .viewer-actions button:hover {
      color: #0e8179;
      border-color: #b9ddd7;
      background: #edf8f6;
    }

    .viewer-actions button:focus-visible {
      outline-color: rgba(24, 169, 159, 0.24);
    }

    @media (max-width: 1180px) {
      .cockpit-header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
          "heading live"
          "tabs tabs";
        gap: 10px 16px;
      }

      .cockpit-heading {
        grid-area: heading;
      }

      .intelligence-tabs {
        grid-area: tabs;
        width: min(620px, 100%);
      }

      .cockpit-live {
        grid-area: live;
      }
    }

    @media (max-width: 720px) {
      .intelligence-cockpit-view.is-active {
        grid-template-rows: auto minmax(520px, 1fr);
        gap: 12px;
      }

      .cockpit-header {
        align-items: center;
      }

      .cockpit-heading h2 {
        font-size: 21px;
      }

      .cockpit-heading p {
        display: none;
      }

      .cockpit-mark {
        width: 36px;
        height: 36px;
      }

      .intelligence-tabs {
        width: 100%;
        min-height: 42px;
        overflow: visible;
      }

      .intelligence-tab {
        flex: 1 1 0;
        min-width: 0;
        min-height: 34px;
        padding: 0 8px;
      }

      .intelligence-tab > strong {
        font-size: 12px;
      }

      .radar-idle {
        min-height: 520px;
        color: #1b2926;
      }

      .radar-visual {
        width: min(260px, 70vw);
      }

      .viewer-actions {
        gap: 4px;
      }

      .viewer-source small {
        display: none;
      }
    }

    .construction-view.is-active {
      min-height: calc(100vh - 160px);
      display: grid;
      place-content: center;
      justify-items: center;
      padding: 120px 24px;
      text-align: center;
    }

    .construction-lockup {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 34px;
      color: #303030;
    }

    .construction-ghost {
      width: clamp(86px, 9vw, 122px);
      height: auto;
      fill: none;
      stroke: currentColor;
      stroke-width: 8;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex: none;
    }

    .construction-ghost circle {
      fill: currentColor;
      stroke: none;
    }

    .construction-copy {
      text-align: left;
      font-size: clamp(58px, 7vw, 104px);
      line-height: 0.98;
      font-weight: 900;
      letter-spacing: 0;
    }

    .construction-copy strong {
      display: block;
      font-size: clamp(62px, 7.4vw, 112px);
      font-weight: 900;
    }

    .construction-view p {
      margin: 40px 0 0;
      color: #5d5d5d;
      font-size: 26px;
      font-weight: 800;
    }

    @media (max-width: 720px) {
      .construction-lockup {
        flex-direction: column;
        gap: 22px;
      }

      .construction-copy {
        text-align: center;
        font-size: 44px;
      }

      .construction-copy strong {
        font-size: 52px;
      }

      .construction-view p {
        margin-top: 26px;
        font-size: 20px;
      }
    }


/* Server-backed authentication and account management. */
[hidden] {
  display: none !important;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  min-height: 100vh;
  padding: 28px;
  display: none;
  place-items: center;
  background: var(--page);
}

.auth-screen.is-active {
  display: grid;
  pointer-events: auto;
}

.app {
  display: none;
}

.app.is-authenticated {
  display: grid;
}

.auth-screen:not(.is-active),
.app[aria-hidden="true"] {
  pointer-events: none;
}

.auth-card,
.password-card,
.modal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(460px, calc(100vw - 40px));
  padding: 34px;
  display: grid;
  gap: 18px;
}

.auth-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0 16%, transparent 17%), linear-gradient(135deg, #5a66ff, #ff42ba 62%, #ff7a41);
}

.auth-card h1 {
  margin: 0;
  font-size: 30px;
}

.auth-card p,
.password-card p,
.modal-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-account-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f4f2;
}

.auth-account-switch button {
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #777b78;
  font-weight: 820;
}

.auth-account-switch button.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(20, 24, 30, 0.08);
}

.auth-card label,
.password-card label,
.modal-card label {
  display: grid;
  gap: 8px;
  color: #555;
  font-weight: 760;
}

.auth-card input,
.password-card input,
.modal-card input,
.modal-card select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: #fff;
}

.form-error {
  min-height: 20px;
  color: #b8454d;
  font-size: 14px;
  font-weight: 760;
}

.primary-action,
.secondary-action {
  height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 850;
}

.primary-action {
  border: 0;
  background: var(--black);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: #222;
}

.auth-hint {
  color: #8a8c88;
  font-size: 13px;
  font-weight: 720;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  height: 46px;
  min-width: 128px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.user-menu-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.user-menu-popover {
  position: absolute;
  right: 0;
  top: 54px;
  width: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(28, 31, 35, 0.14);
  display: none;
  z-index: 20;
}

.user-menu-popover.is-open {
  display: grid;
}

.user-menu-popover button {
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  padding: 0 10px;
  font-weight: 760;
}

.user-menu-popover button:hover {
  background: var(--card-2);
}

.is-hidden {
  display: none !important;
}

.admin-view {
  padding-bottom: 40px;
}

.admin-head {
  align-items: center;
}

.admin-add-btn {
  width: 112px;
}

.admin-alert {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff2ef;
  color: #af4c42;
  font-weight: 760;
}

.admin-alert.is-active {
  display: block;
}

.account-table-wrap {
  border: 1px solid #deddd9;
  background: #fff;
  overflow-x: auto;
}

.account-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.account-table th,
.account-table td {
  height: 68px;
  padding: 0 18px;
  border-bottom: 1px solid #e9e8e5;
  text-align: left;
  color: #5f6670;
  font-weight: 700;
}

.account-table th {
  color: #68707a;
  font-size: 14px;
  font-weight: 850;
}

.account-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}

.status-active {
  background: #e7f7f2;
  color: #109378;
}

.status-disabled {
  background: #f2eeee;
  color: #9b5a5a;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.password-card {
  width: min(480px, 100%);
  padding: 28px;
  display: grid;
  gap: 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.28);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 90;
}

.modal-backdrop.is-active {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 100;
}

.modal.is-active {
  display: grid;
}

.modal-card {
  width: min(460px, calc(100vw - 40px));
  padding: 22px;
  display: grid;
  gap: 16px;
}

.modal-card header,
.modal-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-card header strong {
  font-size: 20px;
  font-weight: 850;
}

.modal-card footer {
  justify-content: flex-end;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  font-size: 22px;
}

.temporary-password-box {
  min-height: 54px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 1px;
}

@media (max-width: 980px) {
  .top-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .account-table {
    min-width: 1060px;
  }
}

@media (max-width: 640px) {
  .app.is-authenticated {
    display: block;
  }

  .auth-card {
    padding: 24px;
  }

  .user-menu,
  .user-menu-trigger {
    width: 100%;
  }
}

.auth-card input[readonly] {
  background: #f7f6f3;
  color: #575955;
  cursor: default;
}


.rail-logout {
  width: 38px;
  height: 38px;
  border: 1px solid #e0dfdc;
  border-radius: 50%;
  background: #fff;
  color: #8d8f8d;
  display: grid;
  place-items: center;
}

.rail-logout svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-actions .admin-add-btn {
  width: auto;
  min-width: 112px;
  padding: 0 16px;
}

.account-table {
  min-width: 1120px;
}

.table-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.temporary-result {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.temporary-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.temporary-result strong {
  color: #111;
  font-size: 18px;
  font-weight: 850;
  word-break: break-all;
}

.temporary-password-value {
  width: max-content;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff !important;
  text-align: center;
}

#copyTemporaryAccountCredentials.is-copied {
  background: #168f79;
}

/* Workbench navigation: overview first, operations data by default. */
.assistant-access-view .access-section {
  margin-top: 68px;
}

.weather-card strong {
  white-space: normal;
}

.quandlaidian-view .business-quick-tabs {
  margin-bottom: 20px;
}

.weekly-engine-entry {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid #216df5;
  border-radius: 8px;
  color: #fff;
  background: #216df5;
  box-shadow: 0 8px 18px rgba(33, 109, 245, 0.18);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.weekly-engine-entry:hover {
  border-color: #155cd6;
  background: #155cd6;
}

.weekly-module-native {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f4f7fb;
}

.weekly-engine-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 270px);
  min-height: 760px;
  border: 0;
  background: #f4f7fb;
}

@media (max-width: 900px) {
  .weekly-engine-frame {
    height: calc(100vh - 220px);
    min-height: 680px;
  }
}

.quandlaidian-tab-panel {
  display: none;
}

.quandlaidian-tab-panel.is-active {
  display: block;
}

.operations-viewer-head {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #dce3e1;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #f7faf9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.operations-viewer-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.operations-viewer-head strong {
  color: #1c2523;
  font-size: 14px;
  font-weight: 850;
}

.operations-viewer-head span:not(.operations-live-dot) {
  color: #79827f;
  font-size: 12px;
  font-weight: 680;
}

.operations-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22b89a;
  box-shadow: 0 0 0 5px rgba(34, 184, 154, 0.1);
}

.operations-viewer-head a {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d8dedc;
  border-radius: 8px;
  background: #fff;
  color: #404845;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.operations-data-viewer {
  height: calc(100vh - 220px);
  min-height: 660px;
  border: 1px solid #dce3e1;
  border-radius: 0 0 12px 12px;
  background: #fff;
  overflow: hidden;
}

.operations-data-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.operations-local-fallback {
  display: none;
  width: min(480px, calc(100% - 40px));
  padding: 34px;
  border: 1px solid #dce8e5;
  border-radius: 12px;
  background: #fbfefd;
  text-align: center;
}

.is-direct-open-workbench .operations-data-viewer .operations-local-fallback {
  display: block;
}

.is-direct-open-workbench .operations-data-viewer {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f8fbfa;
}

.is-direct-open-workbench .operations-data-viewer .operations-local-fallback + iframe {
  display: none;
}

@media (max-width: 1100px) {
  .operations-data-viewer .operations-local-fallback {
    display: block;
  }

  .operations-data-viewer .operations-local-fallback + iframe {
    display: none;
  }
}

.quandlaidian-materials-empty {
  min-height: calc(100vh - 260px);
}

@media (max-width: 720px) {
  .assistant-access-view .access-section {
    margin-top: 48px;
  }

  .operations-viewer-head {
    align-items: flex-start;
    padding: 12px;
  }

  .operations-viewer-head > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .operations-live-dot {
    display: none;
  }

  .operations-data-viewer {
    height: 72vh;
    min-height: 540px;
  }
}

/* Full-screen Quanlaidian workspace, matching the intelligence cockpit. */
.app[data-active-panel="quandlaidian-weekly"] .surface {
  overflow: hidden;
}

.app[data-active-panel="quandlaidian-weekly"] .float-action {
  display: none;
}

.app[data-active-panel="quandlaidian-weekly"] .inner {
  width: 100%;
  height: 100%;
  padding: 26px 30px 28px;
}

.quandlaidian-view.is-active {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.quandlaidian-view .business-quick-tabs {
  min-height: 48px;
  margin: 0 auto;
  padding: 5px;
}

.quandlaidian-view .business-quick-tab {
  min-height: 36px;
  padding-inline: 22px;
  font-size: 14px;
}

.quandlaidian-view .quandlaidian-tab-panel.is-active {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.quandlaidian-view [data-quandlaidian-panel="operations"].is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.quandlaidian-view .operations-data-viewer {
  height: 100%;
  min-height: 0;
}

.quandlaidian-view [data-quandlaidian-panel="weekly"].is-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.quandlaidian-view [data-quandlaidian-panel="weekly"] .business-space-head {
  display: none;
}

.quandlaidian-view .weekly-module-stage {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.quandlaidian-view .weekly-engine-frame {
  height: 100%;
  min-height: 0;
}

@media (max-width: 720px) {
  .app[data-active-panel="quandlaidian-weekly"] .surface {
    overflow: auto;
  }

  .app[data-active-panel="quandlaidian-weekly"] .inner {
    width: auto;
    height: auto;
    min-height: 100%;
    padding: 18px 14px 20px;
  }

  .quandlaidian-view.is-active {
    height: auto;
    min-height: 720px;
  }

  .quandlaidian-view .operations-data-viewer,
  .quandlaidian-view .weekly-engine-frame {
    height: 72vh;
    min-height: 540px;
  }
}

/* Weekly intelligence floats beside the idle radar and stays data-driven. */
.cockpit-heading p {
  max-width: 560px;
  white-space: normal;
}

.radar-idle {
  grid-template-columns: minmax(360px, 0.9fr) minmax(620px, 1.1fr);
  gap: clamp(28px, 4vw, 76px);
  padding: 28px clamp(30px, 3.4vw, 72px);
}

.radar-core {
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 24px;
}

.radar-core .radar-visual {
  width: min(330px, 36vh);
}

.radar-core .radar-idle-copy {
  max-width: 360px;
  justify-self: center;
  text-align: center;
}

.radar-core .radar-idle-copy strong {
  margin-top: 10px;
  font-size: 25px;
}

.radar-core .radar-idle-copy p {
  margin-top: 9px;
  font-size: 13px;
}

.weekly-intelligence-panel {
  width: 100%;
  max-width: 760px;
  height: min(700px, calc(100vh - 205px));
  min-height: 520px;
  justify-self: end;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 22px 54px rgba(29, 76, 69, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(138%);
  -webkit-backdrop-filter: blur(22px) saturate(138%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  text-align: left;
}

.weekly-intelligence-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #21b49e, #4b82ee 56%, #f09466);
}

.weekly-intel-head {
  min-width: 0;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(55, 109, 100, 0.12);
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.weekly-intel-archive {
  min-height: 32px;
  border-color: rgba(26, 143, 130, 0.22);
  background: rgba(255, 255, 255, 0.66);
  color: #147f73;
}

.weekly-intel-week {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: #e8f6f3;
  color: #128678;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.weekly-intel-title {
  min-width: 0;
}

.weekly-intel-title h3 {
  margin: 0;
  color: #15211f;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 900;
}

.weekly-intel-title p {
  margin: 7px 0 0;
  color: #85908c;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 680;
}

.weekly-intel-scroll {
  min-height: 0;
  padding: 20px 24px 26px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #cbd9d5 transparent;
}

.weekly-intel-lead {
  margin: 0 0 22px;
  padding-left: 15px;
  border-left: 3px solid #26aa98;
  color: #263835;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 820;
}

.weekly-intel-section + .weekly-intel-section {
  margin-top: 24px;
}

.weekly-intel-section h4 {
  margin: 0 0 10px;
  color: #7b8783;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.weekly-intel-list,
.weekly-intel-highlight-section {
  display: grid;
}

.weekly-intel-row {
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid #e8edeb;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.weekly-intel-row:first-child {
  padding-top: 4px;
}

.weekly-intel-row-copy {
  min-width: 0;
}

.weekly-intel-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.weekly-intel-row-title strong {
  color: #1d2927;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 870;
}

.weekly-intel-tag,
.weekly-intel-type {
  flex: none;
  color: #168b7d;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 900;
}

.weekly-intel-type {
  color: #7d8985;
}

.weekly-intel-date {
  margin-left: auto;
  color: #7e8d88;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 820;
  white-space: nowrap;
}

.weekly-intel-row p {
  margin: 5px 0 0;
  color: #6e7b77;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 650;
}

.weekly-intel-source {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d8e2df;
  border-radius: 6px;
  background: #fff;
  color: #4f615d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.weekly-intel-source:hover {
  border-color: #a9d8d0;
  background: #edf8f6;
  color: #0b8075;
}

.weekly-intel-details {
  margin-top: 18px;
}

.weekly-intel-details > summary {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #dbe5e2;
  border-radius: 7px;
  background: #f6f9f8;
  color: #40514d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

.weekly-intel-details > summary::-webkit-details-marker {
  display: none;
}

.weekly-intel-details > summary::after {
  content: "+";
  color: #178b7e;
  font-size: 18px;
  line-height: 1;
}

.weekly-intel-details[open] > summary::after {
  content: "−";
}

.weekly-intel-detail-content {
  padding-top: 22px;
}

.weekly-intel-impact,
.weekly-intel-next {
  padding: 9px 0;
  border-bottom: 1px solid #edf0ef;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.weekly-intel-impact span,
.weekly-intel-next time {
  color: #168b7d;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 900;
}

.weekly-intel-impact p,
.weekly-intel-next p {
  margin: 0;
  color: #66736f;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 650;
}

.weekly-intel-footer {
  min-height: 56px;
  padding: 10px 18px 10px 24px;
  border-top: 1px solid #e4eae8;
  background: #f8faf9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.weekly-intel-footer span {
  color: #77837f;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 680;
}

.weekly-intel-footer .weekly-intel-source {
  min-height: 34px;
  border-color: #15211f;
  background: #15211f;
  color: #fff;
}

.weekly-intelligence-loading,
.weekly-intelligence-error {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #687773;
  font-size: 13px;
}

.weekly-intelligence-loading span {
  width: 24px;
  height: 24px;
  border: 2px solid #d3e7e3;
  border-top-color: #1da28f;
  border-radius: 50%;
  animation: intelligenceLoading 1s linear infinite;
}

.weekly-intelligence-error button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d2dfdc;
  border-radius: 6px;
  background: #fff;
  color: #167f74;
  font-weight: 820;
}

@media (max-width: 1180px) {
  .radar-idle {
    grid-template-columns: minmax(270px, 0.7fr) minmax(500px, 1.3fr);
    gap: 28px;
    padding-inline: 28px;
  }

  .radar-core .radar-visual {
    width: min(270px, 32vh);
  }
}

@media (max-width: 900px) {
  .radar-idle {
    height: auto;
    grid-template-columns: 1fr;
    align-content: start;
    padding: 26px;
    overflow: visible;
  }

  .radar-core {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 26px;
  }

  .radar-core .radar-visual {
    width: 230px;
  }

  .radar-core .radar-idle-copy {
    justify-self: start;
    text-align: left;
  }

  .weekly-intelligence-panel {
    max-width: none;
    height: 640px;
  }
}

@media (max-width: 720px) {
  .radar-idle {
    min-height: 0;
    padding: 18px 14px;
    text-align: left;
  }

  .radar-core {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .radar-core .radar-visual {
    width: min(230px, 66vw);
  }

  .radar-core .radar-idle-copy {
    justify-self: center;
    text-align: center;
  }

  .weekly-intelligence-panel {
    height: 680px;
    min-height: 0;
  }

  .weekly-intel-head,
  .weekly-intel-scroll {
    padding-left: 16px;
    padding-right: 16px;
  }

  .weekly-intel-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .weekly-intel-archive {
    grid-column: 2;
    justify-self: start;
  }

  .weekly-intel-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .weekly-intel-footer .weekly-intel-source {
    width: 100%;
  }
}

/* Homepage task composer and channel expert framework. */
#assistantStartProjectSlot:empty {
  display: none;
}

#assistantStartProjectSlot .access-section {
  margin-top: 56px;
}

.assistant-access-view .today-section {
  margin-bottom: 12px;
}

.assistant-access-view .today-section .section-head {
  margin-bottom: 16px;
}

.assistant-access-view .today-section .section-title h2 {
  font-size: 24px;
}

.assistant-access-view .today-card {
  min-height: 108px;
  padding: 15px 18px;
  border-radius: 15px;
}

.assistant-access-view .today-card.week-card {
  min-height: 108px;
  padding: 14px 16px;
  gap: 5px;
}

.assistant-access-view .today-card span {
  font-size: 12px;
}

.assistant-access-view .today-card > strong {
  font-size: 21px;
}

.assistant-access-view .today-card > p {
  font-size: 12px;
}

.assistant-access-view .today-card .week-period strong {
  font-size: 18px;
}

.assistant-access-view .today-card .week-period-natural strong {
  font-size: 13px;
}

.assistant-access-view .daily-saying-card {
  align-content: space-between;
  background: linear-gradient(145deg, #f9fbfa, #f3f6f4);
}

.daily-saying-text {
  margin: 0;
  color: #252a27 !important;
  font-size: 15px;
  line-height: 1.5 !important;
  font-weight: 760;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.daily-saying-card small {
  overflow: hidden;
  color: #8a908c;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-launch-section {
  width: 100%;
  margin: 0 auto 42px;
}

.task-greeting {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  margin: 0 auto 16px;
}

.task-launch-section-compact { margin-top: 0; }

.task-launch-section-compact .task-greeting {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.task-launch-section-compact .task-provider-area {
  display: inline-flex;
  grid-column: auto;
  align-items: center;
  gap: 10px;
}

.task-greeting-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eaf8f5;
  border: 1px solid #cdebe4;
}

.task-greeting-mark {
  display: grid;
  place-items: center;
  color: #158f7d;
  font-size: 14px;
  font-weight: 900;
}

.task-greeting h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 850;
}

.task-greeting p {
  margin: 7px 0 0;
  color: #858885;
  font-size: 15px;
  line-height: 1.5;
}

.task-provider-area {
  display: grid;
  grid-column: 3;
  justify-items: end;
  gap: 7px;
}

.task-provider-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e1e4e1;
  border-radius: 10px;
  background: #f2f4f2;
}

.task-provider-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #747975;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
}

.task-provider-switch button.is-active {
  background: #fff;
  color: #151817;
  box-shadow: 0 1px 5px rgba(25, 31, 28, 0.1);
}

.task-provider-switch button:disabled {
  color: #b4b8b5;
  cursor: not-allowed;
}

.task-integration-status {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: #d59a4b;
  box-shadow: 0 0 0 3px rgba(213, 154, 75, 0.12);
  flex: 0 0 auto;
}

.task-integration-status .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.task-integration-status.is-ready {
  background: #22b99b;
  box-shadow: 0 0 0 3px rgba(34, 185, 155, 0.12);
}

.task-integration-status.is-missing {
  background: #d56c58;
  box-shadow: 0 0 0 3px rgba(213, 108, 88, 0.12);
}

.task-provider-switch-composer {
  flex: 0 0 auto;
}

.channel-conversation-shell {
  width: 100%;
  height: clamp(680px, 76vh, 940px);
  min-height: 680px;
  margin: 0 auto;
  border: 1px solid #e0e4e1;
  border-radius: 20px;
  background: #fbfcfb;
  box-shadow: 0 18px 46px rgba(28, 35, 32, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.channel-task-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 28px clamp(24px, 4vw, 72px) 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.channel-task-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 38px 20px;
  text-align: center;
}

.channel-task-welcome-eyebrow {
  color: #159582;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.channel-task-welcome h2 {
  margin: 12px 0 8px;
  color: #1f2522;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.18;
}

.channel-task-welcome > p {
  margin: 0;
  color: #808784;
  font-size: 14px;
}

.channel-task-starters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.channel-task-starters button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #e1e6e3;
  border-radius: 10px;
  background: #f4f6f5;
  color: #373d39;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.channel-task-starters button:hover,
.channel-task-starters button:focus-visible {
  border-color: #9ad9cc;
  background: #edf9f6;
  box-shadow: 0 8px 18px rgba(35, 158, 137, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.channel-self-intro-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8eeeb;
}

.channel-self-intro-followups-label {
  flex: 0 0 100%;
  color: #77817d;
  font-size: 12px;
  font-weight: 750;
}

.channel-self-intro-followups-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-self-intro-followups-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d6e8e3;
  border-radius: 8px;
  background: #f4fbf8;
  color: #187b6d;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.channel-self-intro-followups-actions button:hover,
.channel-self-intro-followups-actions button:focus-visible {
  border-color: #62c4b2;
  background: #e7f7f2;
  outline: none;
  transform: translateY(-1px);
}

.channel-task-message {
  width: fit-content;
  max-width: min(820px, 88%);
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #252826;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.channel-task-message-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 150px));
  gap: 8px;
  margin-top: 9px;
}

.channel-task-message-images img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.channel-task-message:last-child {
  margin-bottom: 0;
}

.channel-task-message.is-user {
  margin-left: auto;
  background: #151716;
  color: #fff;
}

.channel-task-message.is-agent {
  width: min(880px, 92%);
  border: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.channel-task-message.is-loading {
  color: #747976;
}

.channel-task-progress-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-task-progress-head strong {
  color: #303532;
  font-size: 13px;
}

.channel-task-progress-head em {
  margin-left: auto;
  color: #168877;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.channel-task-progress-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22b99b;
  box-shadow: 0 0 0 4px rgba(34, 185, 155, 0.12);
}

.channel-task-progress-list {
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  gap: 12px;
  list-style: none;
}

.channel-task-progress-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a0a5a1;
  font-size: 11px;
}

.channel-task-progress-list i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7dbd8;
}

.channel-task-progress-list li.is-active {
  color: #277f72;
  font-weight: 760;
}

.channel-task-progress-list li.is-active i {
  background: #22b99b;
  box-shadow: 0 0 0 3px rgba(34, 185, 155, 0.12);
}

.channel-task-progress-list li.is-done i {
  background: #8bcfc2;
}

.channel-task-message h4 {
  margin: 17px 0 7px;
  font-size: 15px;
  line-height: 1.45;
}

.channel-task-message h4:first-child {
  margin-top: 0;
}

.channel-task-message p,
.channel-task-message ul,
.channel-task-message ol {
  margin: 7px 0;
}

.channel-task-message ul,
.channel-task-message ol {
  padding-left: 21px;
}

.channel-task-message li + li {
  margin-top: 4px;
}

.channel-answer-section {
  margin: 0 0 10px;
}

.channel-answer-section.is-insight,
.channel-answer-section.is-actions {
  padding: 11px 13px;
  border-radius: 10px;
  background: #f3f8f6;
}

.channel-answer-section.is-insight {
  border-left: 3px solid #27aa96;
}

.channel-answer-section.is-actions {
  background: #f7f6f2;
  border-left: 3px solid #d59a4b;
}

.channel-answer-section.is-pricing-intake,
.channel-answer-section.is-pricing-recommendation,
.channel-answer-section.is-pricing-evidence,
.channel-answer-section.is-pricing-risk {
  padding: 14px 15px;
  border: 1px solid #dfe8e4;
  border-radius: 12px;
  background: #f8fbfa;
  box-shadow: 0 8px 24px rgba(33, 67, 58, 0.05);
}

.channel-answer-section.is-pricing-intake,
.channel-answer-section.is-pricing-recommendation {
  border-left: 4px solid #24aa92;
}

.channel-answer-section.is-pricing-recommendation {
  background: linear-gradient(135deg, #f1faf7 0%, #fbfdfc 100%);
}

.channel-answer-section.is-pricing-evidence {
  background: #f7f8f5;
  border-color: #e2e3dc;
}

.channel-answer-section.is-pricing-risk {
  background: #fff9f2;
  border-color: #f1dfc7;
}

.channel-task-message.is-agent.has-pricing-form {
  width: min(1040px, 100%);
  max-width: 100%;
  white-space: normal;
}

.pricing-intake-form {
  overflow: hidden;
  border: 1px solid #d9e6e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(26, 61, 52, 0.08);
  color: #202824;
}

.pricing-intake-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 20px;
  padding: 22px 24px 20px;
  border-bottom: 1px solid #dce9e4;
  background:
    linear-gradient(90deg, rgba(31, 161, 139, 0.11) 0, rgba(31, 161, 139, 0) 62%),
    #f7fbf9;
}

.pricing-intake-header > div span {
  color: #178574;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.pricing-intake-header h3 {
  margin: 3px 0 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pricing-intake-header em {
  align-self: start;
  padding: 6px 9px;
  border: 1px solid #c9e4dc;
  border-radius: 999px;
  color: #147b6d;
  background: #ecf8f4;
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.pricing-intake-header > p {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0;
  color: #66716c;
  font-size: 12px;
  line-height: 1.65;
}

.pricing-intake-origin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 18px 24px 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #171b19;
  color: #fff;
}

.pricing-intake-origin span {
  padding-top: 1px;
  color: #7ddbc8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pricing-intake-origin p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.pricing-intake-group {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 22px;
  margin: 0 24px;
  padding: 22px 0;
  border-bottom: 1px solid #e8eeeb;
}

.pricing-intake-group-title {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 9px;
  align-content: start;
}

.pricing-intake-group-title b {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  color: #fff;
  background: #1b8f7d;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.pricing-intake-group-title h4 {
  margin: 1px 0 3px;
  font-size: 13px;
  line-height: 1.35;
}

.pricing-intake-group-title p {
  margin: 0;
  color: #7a847f;
  font-size: 10px;
  line-height: 1.55;
}

.pricing-intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.pricing-intake-grid-cost {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-intake-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.pricing-intake-grid label > span {
  color: #45514b;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.pricing-intake-grid label > span i,
.pricing-intake-grid label > span small {
  color: #178574;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

.pricing-intake-grid input,
.pricing-intake-grid select,
.pricing-intake-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9e1dd;
  border-radius: 9px;
  outline: none;
  background: #fbfcfb;
  color: #202824;
  font: inherit;
  font-size: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.pricing-intake-grid input,
.pricing-intake-grid select {
  height: 39px;
  padding: 0 10px;
}

.pricing-intake-grid textarea {
  min-height: 62px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.5;
}

.pricing-intake-grid input::placeholder,
.pricing-intake-grid textarea::placeholder {
  color: #a0aaa5;
}

.pricing-intake-grid input:hover,
.pricing-intake-grid select:hover,
.pricing-intake-grid textarea:hover {
  border-color: #b9cbc4;
  background: #fff;
}

.pricing-intake-grid input:focus-visible,
.pricing-intake-grid select:focus-visible,
.pricing-intake-grid textarea:focus-visible {
  border-color: #1f9e89;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 158, 137, 0.13);
}

.pricing-intake-wide {
  grid-column: 1 / -1;
}

.pricing-intake-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 20px;
  background: #f8faf9;
}

.pricing-intake-footer p {
  max-width: 560px;
  margin: 0;
  color: #6b7670;
  font-size: 10px;
  line-height: 1.55;
}

.pricing-intake-footer-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pricing-intake-status {
  color: #84918b;
  font-size: 11px;
  line-height: 1.45;
}

.pricing-intake-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.pricing-intake-footer button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #151a18;
  box-shadow: 0 8px 20px rgba(21, 26, 24, 0.14);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.pricing-intake-footer button:hover {
  background: #1d8d7b;
  transform: translateY(-1px);
}

.pricing-intake-footer button:focus-visible {
  outline: 3px solid rgba(31, 158, 137, 0.28);
  outline-offset: 2px;
}

.pricing-intake-footer .pricing-intake-defer {
  background: #fff;
  border: 1px solid #d8e5e0;
  box-shadow: none;
  color: #50625d;
}

.pricing-intake-footer .pricing-intake-defer:hover {
  background: #f1faf7;
  border-color: #9bdacf;
  color: #117c6c;
  transform: none;
}

.pricing-intake-form.is-submitted {
  opacity: 0.8;
}

.pricing-intake-form.is-submitted .pricing-intake-footer button {
  background: #71807a;
  box-shadow: none;
  cursor: wait;
  transform: none;
}

.pricing-intake-form.is-submitted .pricing-intake-defer {
  display: none;
}

.pricing-intake-form.is-deferred {
  border-color: #d6e9e4;
}

.channel-answer-table-wrap {
  max-width: 100%;
  margin: 10px 0 4px;
  overflow-x: auto;
  border: 1px solid #e0e6e3;
  border-radius: 10px;
  background: #fff;
}

.channel-answer-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.channel-answer-table th,
.channel-answer-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #edf0ee;
  border-right: 1px solid #edf0ee;
  text-align: left;
  vertical-align: top;
}

.channel-answer-table th {
  color: #35564e;
  font-weight: 800;
  background: #f1f7f5;
  white-space: nowrap;
}

.channel-answer-table th:last-child,
.channel-answer-table td:last-child {
  border-right: 0;
}

.channel-answer-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-answer-section.is-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.channel-answer-section.is-followups h4 {
  width: 100%;
}

.channel-followup-button {
  min-height: 30px;
  border: 1px solid #d9e6e2;
  border-radius: 9px;
  background: #fff;
  color: #3d5f58;
  padding: 5px 9px;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.channel-followup-button:hover {
  border-color: #91cfc3;
  background: #f1faf7;
}

.channel-task-sources {
  margin-top: 12px;
  color: #6e746f;
}

.channel-task-sources summary {
  min-height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #818984;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.channel-task-sources summary::-webkit-details-marker {
  display: none;
}

.channel-task-sources summary::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 9px 0 2px;
  border-right: 1.5px solid #409c90;
  border-bottom: 1.5px solid #409c90;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.channel-task-sources[open] summary {
  color: #52605a;
}

.channel-task-sources[open] summary::before {
  margin-top: 3px;
  transform: rotate(225deg);
}

.channel-task-sources-body {
  margin-top: 6px;
  padding: 8px 11px;
  border-left: 2px solid #bde4dc;
  border-radius: 0 8px 8px 0;
  background: rgba(235, 248, 244, 0.58);
  font-size: 12px;
  line-height: 1.65;
}

.channel-task-sources-body p,
.channel-task-sources-body ul,
.channel-task-sources-body ol {
  margin: 7px 0;
}

.channel-task-source-link {
  color: #178b7d;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(23, 139, 125, 0.34);
  text-underline-offset: 2px;
}

.channel-task-source-link:hover {
  color: #0d6f63;
  text-decoration-color: currentColor;
}

.channel-task-composer {
  flex: 0 0 auto;
  min-height: 106px;
  margin: 0 clamp(18px, 2vw, 36px) 12px;
  border: 1px solid #dcded9;
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px 10px;
  box-shadow: 0 12px 32px rgba(30, 34, 37, 0.08);
  display: grid;
  grid-template-rows: auto minmax(42px, auto) auto;
  gap: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.channel-task-composer:focus-within {
  border-color: #a9d9cf;
  box-shadow: 0 18px 44px rgba(30, 34, 37, 0.07), 0 0 0 3px rgba(21, 198, 163, 0.08);
}

.channel-task-composer.is-running {
  border-color: #d4dfda;
}

.channel-task-composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 128px;
  border: 0;
  outline: 0;
  resize: none;
  overflow-y: auto;
  background: transparent;
  color: #171918;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
}

.channel-task-composer textarea::placeholder {
  color: #9a9d99;
}

.channel-task-attachments {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.channel-task-attachments[hidden] {
  display: none;
}

.channel-task-attachment {
  position: relative;
  width: 72px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #d9dedb;
  border-radius: 9px;
  background: #f4f6f4;
}

.channel-task-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-task-attachment button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 20, 19, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.task-composer-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.task-composer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.task-tool-button,
.knowledge-boundary,
.selected-expert-chip {
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.task-tool-button {
  border: 0;
  background: transparent;
  color: #555956;
  padding: 0 7px;
  font-weight: 760;
}

.task-tool-button:hover {
  background: #f2f3f0;
}

.task-tool-button svg,
.knowledge-boundary svg,
.selected-expert-chip svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.knowledge-boundary {
  color: #7e827e;
  font-size: 12px;
  font-weight: 720;
}

.selected-expert-chip {
  margin-left: auto;
  max-width: 280px;
  border: 1px solid #d4eae5;
  background: #eef9f6;
  color: #117d6d;
  padding: 0 6px 0 10px;
  font-size: 13px;
  font-weight: 820;
}

.selected-expert-chip[hidden] {
  display: none;
}

.selected-expert-chip[hidden] + .task-send-button {
  margin-left: auto;
}

.selected-expert-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-expert-chip button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  color: #438f82;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.selected-expert-chip button:hover {
  background: #dcefeb;
}

.task-send-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #111312;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(17, 19, 18, 0.16);
  transition: transform 160ms ease, opacity 160ms ease;
}

.task-send-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.task-send-button:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  box-shadow: none;
}

.task-send-button.is-running:disabled {
  opacity: 1;
  background: #eef1ee;
  color: #2f8175;
}

.task-send-button.is-running svg {
  display: none;
}

.task-send-button.is-running::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(47, 129, 117, 0.22);
  border-top-color: #2f8175;
  border-radius: 50%;
  animation: channel-task-spin 780ms linear infinite;
}

@keyframes channel-task-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .task-send-button.is-running::before {
    animation: none;
  }
}

.task-send-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-prototype-notice {
  min-height: 20px;
  margin: 0 clamp(22px, 5vw, 76px) 10px;
  color: #7d817e;
  font-size: 12px;
  font-weight: 720;
}

.task-prototype-notice.is-visible {
  color: #98651f;
}

.expert-market-section {
  margin-bottom: 24px;
}

.expert-section-head {
  align-items: center;
}

.expert-mode-switch {
  min-height: 38px;
  border-radius: 10px;
  background: #f1f2ef;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.expert-mode-tab {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #929691;
  font-size: 12px;
  font-weight: 800;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.expert-mode-tab.is-active {
  background: #fff;
  color: #1d201e;
  box-shadow: 0 2px 6px rgba(25, 30, 28, 0.06);
}

.expert-mode-tab:focus-visible {
  outline: 2px solid rgba(21, 143, 125, 0.35);
  outline-offset: 2px;
}

.expert-panel[hidden] {
  display: none;
}

.skill-pack-note {
  min-height: 44px;
  margin-bottom: 12px;
  border: 1px solid #dbe8e4;
  border-radius: 10px;
  background: #f5faf8;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6f7571;
  font-size: 12px;
}

.skill-pack-note strong {
  color: #202421;
  font-size: 13px;
  white-space: nowrap;
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.expert-card {
  min-height: 174px;
  border: 1px solid #e1e2de;
  border-radius: 13px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  outline: 0;
  box-shadow: 0 12px 28px rgba(28, 31, 35, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.expert-card:hover,
.expert-card:focus-visible {
  transform: translateY(-2px);
  border-color: #bdc9c5;
  box-shadow: 0 16px 34px rgba(28, 31, 35, 0.08);
}

.expert-card.is-selected {
  border-color: #62b9a8;
  box-shadow: 0 0 0 3px rgba(21, 198, 163, 0.09), 0 16px 34px rgba(28, 31, 35, 0.08);
}

.expert-card header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.expert-card header > div {
  min-width: 0;
}

.expert-card h3 {
  margin: 0;
  color: #181a19;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

.expert-card header div span {
  display: block;
  margin-top: 4px;
  color: #979a96;
  font-size: 11px;
  font-weight: 720;
}

.expert-card > p {
  flex: 1;
  margin: 0;
  color: #696d69;
  font-size: 12.5px;
  line-height: 1.55;
}

.expert-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.expert-card footer span {
  min-height: 24px;
  border-radius: 6px;
  background: #f3f4f1;
  color: #676b67;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 740;
}

.expert-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  background: #f2f3f1;
}

.expert-avatar {
  background-image: url("../public/assets/channel-icons/expert-avatar-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  box-shadow: inset 0 0 0 1px rgba(28, 34, 31, 0.05);
}

.expert-avatar-1 { background-position: 0 0; }
.expert-avatar-2 { background-position: 33.333% 0; }
.expert-avatar-3 { background-position: 66.667% 0; }
.expert-avatar-4 { background-position: 100% 0; }
.expert-avatar-5 { background-position: 0 50%; }
.expert-avatar-6 { background-position: 33.333% 50%; }
.expert-avatar-7 { background-position: 66.667% 50%; }
.expert-avatar-8 { background-position: 100% 50%; }
.expert-avatar-9 { background-position: 0 100%; }
.expert-avatar-10 { background-position: 33.333% 100%; }
.expert-avatar-11 { background-position: 66.667% 100%; }
.expert-avatar-12 { background-position: 100% 100%; }

.expert-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.expert-use-button {
  min-width: 48px;
  height: 29px;
  border: 1px solid #dedfdb;
  border-radius: 9px;
  background: #fff;
  color: #444844;
  font-size: 12px;
  font-weight: 820;
}

.expert-card:hover .expert-use-button,
.expert-card.is-selected .expert-use-button {
  border-color: #151716;
  background: #151716;
  color: #fff;
}

@media (max-width: 1260px) {
  .expert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .task-launch-section {
    width: 100%;
  }

  .channel-conversation-shell {
    height: clamp(600px, 74vh, 760px);
    min-height: 600px;
  }

  .task-greeting {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .task-provider-area {
    grid-column: 2;
    justify-items: start;
  }

  .task-composer-footer {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .task-provider-switch-composer {
    order: 2;
  }

  .selected-expert-chip {
    margin-left: 0;
  }

  .pricing-intake-group {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pricing-intake-grid-cost {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #assistantStartProjectSlot .access-section {
    margin-top: 40px;
  }

  .task-greeting {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .task-greeting-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .task-greeting h2 {
    font-size: 23px;
  }

  .task-provider-area {
    width: 100%;
  }

  .channel-task-composer {
    min-height: 104px;
    margin: 0 10px 8px;
    padding: 12px;
    grid-template-rows: auto minmax(42px, auto) auto;
  }

  .channel-task-messages {
    padding: 20px 14px 18px;
  }

  .channel-task-welcome {
    padding: 28px 6px;
  }

  .channel-task-welcome h2 {
    font-size: 27px;
  }

  .channel-task-starters {
    gap: 8px;
    margin-top: 20px;
  }

  .channel-task-starters button {
    min-height: 36px;
    padding: 0 13px;
    font-size: 12px;
  }

  .channel-conversation-shell {
    height: 74vh;
    min-height: 560px;
    border-radius: 16px;
  }

  .task-prototype-notice {
    margin: 0 14px 8px;
  }

  .channel-task-composer textarea {
    min-height: 42px;
    max-height: 112px;
  }

  .channel-task-progress-list {
    flex-direction: column;
    gap: 6px;
  }

  .task-composer-tools {
    width: calc(100% - 52px);
    flex-wrap: wrap;
  }

  .knowledge-boundary {
    white-space: normal;
  }

  .selected-expert-chip {
    order: 3;
    max-width: calc(100% - 52px);
  }

  .expert-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-pack-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .expert-grid {
    grid-template-columns: 1fr;
  }

  .expert-card {
    min-height: 0;
  }

  .pricing-intake-header {
    grid-template-columns: 1fr;
    padding: 18px 16px 16px;
  }

  .pricing-intake-header em {
    justify-self: start;
  }

  .pricing-intake-origin {
    grid-template-columns: 1fr;
    margin: 14px 16px 0;
  }

  .pricing-intake-group {
    margin: 0 16px;
    padding: 18px 0;
  }

  .pricing-intake-grid,
  .pricing-intake-grid-cost {
    grid-template-columns: 1fr;
  }

  .pricing-intake-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .pricing-intake-footer button {
    width: 100%;
  }

  .pricing-intake-actions {
    width: 100%;
  }
}

/* 2026-08 cockpit, business logo and downloadable Skill library. */
.rail-business-btn-smart img,
.directory-icon-smart img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.rail-business-btn-smart img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.directory-icon-smart {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #071d3a;
}

.expert-mode-switch-bottom {
  width: fit-content;
  margin: 18px auto 0;
}

.skill-pack-note {
  justify-content: space-between;
}

.skill-pack-note > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.skill-pack-note a {
  flex: none;
  min-height: 30px;
  border: 1px solid #d8dfdc;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #202421;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 820;
}

.product-design-skill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-design-skill-card {
  min-height: 168px;
  cursor: pointer;
}

.product-skill-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.product-skill-avatar-taste { background: #4067dd; }
.product-skill-avatar-system { background: #d65b65; }

.skill-detail-button {
  min-height: 29px;
  border: 1px solid #dfe1dd;
  border-radius: 8px;
  background: #fff;
  color: #383c39;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 820;
}

.skill-detail-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  color: #1b1e1c;
}

.skill-detail-dialog::backdrop {
  background: rgba(18, 22, 20, 0.42);
  backdrop-filter: blur(4px);
}

.skill-detail-dialog-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(24, 31, 28, 0.22);
}

.skill-detail-dialog h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.skill-detail-dialog-card > p,
.skill-detail-dialog section p {
  color: #666e69;
  font-size: 13px;
  line-height: 1.7;
}

.skill-detail-dialog section {
  margin-top: 18px;
  border-top: 1px solid #e7e9e6;
  padding-top: 16px;
}

.skill-detail-dialog section > span {
  font-size: 12px;
  font-weight: 880;
}

.skill-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f2ef;
  font-size: 22px;
}

.skill-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-detail-tags span {
  border-radius: 6px;
  padding: 6px 9px;
  background: #f1f3f0;
  color: #5c645f;
  font-size: 11px;
  font-weight: 780;
}

.skill-detail-download {
  min-height: 42px;
  margin-top: 22px;
  border-radius: 9px;
  background: #161917;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.intelligence-stage,
.radar-idle {
  background-color: #f8fbfc !important;
  background-image: none !important;
}

.intelligence-stage::before,
.radar-idle::before {
  display: none !important;
}

.radar-core .radar-visual {
  width: min(390px, 42vh);
  aspect-ratio: 1;
  filter: drop-shadow(0 28px 36px rgba(65, 105, 157, 0.12));
}

.radar-ring {
  border-color: rgba(85, 139, 207, 0.24) !important;
  box-shadow: 0 0 20px rgba(90, 190, 214, 0.06);
}

.radar-axis {
  background: rgba(84, 139, 199, 0.12) !important;
}

.radar-sweep {
  background: conic-gradient(from 0deg, rgba(65, 208, 207, 0.34), rgba(86, 156, 234, 0.09) 32deg, transparent 74deg) !important;
  filter: drop-shadow(0 0 14px rgba(63, 193, 211, 0.2));
}

.radar-center {
  background: #19b8b0 !important;
  box-shadow: 0 0 0 8px rgba(30, 187, 181, 0.11), 0 0 24px rgba(30, 187, 181, 0.28) !important;
}

.radar-signal {
  position: absolute;
  z-index: 4;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px rgba(78, 124, 181, 0.16), 0 8px 20px rgba(64, 99, 145, 0.18);
  cursor: pointer;
}

.radar-signal > i {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #4e7ee7;
  box-shadow: 0 0 0 6px rgba(78, 126, 231, 0.11);
}

.radar-signal > span {
  width: 205px;
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  border: 1px solid rgba(135, 161, 195, 0.22);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(54, 88, 129, 0.12);
  backdrop-filter: blur(14px);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.radar-signal > span strong,
.radar-signal > span small {
  display: block;
}

.radar-signal > span strong {
  color: #172638;
  font-size: 13px;
}

.radar-signal > span small {
  margin-top: 5px;
  color: #6f7f91;
  font-size: 10px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.radar-signal.is-detected {
  transform: scale(1.12);
}

.radar-signal.is-detected > span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.radar-signal-product { left: 70%; top: 24%; }
.radar-signal-product > i { background: #18b8ae; }
.radar-signal-product > span { left: auto; right: 38px; }
.radar-signal-tyc { left: 24%; top: 30%; }
.radar-signal-tyc > span { left: 38px; right: auto; }
.radar-signal-ecommerce { left: 68%; top: 72%; }
.radar-signal-ecommerce > i { background: #785ee9; }
.radar-signal-ecommerce > span { left: auto; right: 38px; }

.radar-core .radar-idle-copy {
  width: min(390px, 100%);
  min-height: 110px;
  border: 1px solid rgba(129, 157, 192, 0.18);
  border-radius: 12px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(49, 85, 125, 0.08);
  backdrop-filter: blur(16px);
}

.radar-core .radar-idle-copy strong {
  color: #172638;
}

.radar-core .radar-idle-copy p {
  min-height: 22px;
  color: #6e7c8a;
}

@media (max-width: 900px) {
  .product-design-skill-grid { grid-template-columns: 1fr; }
  .radar-core .radar-visual { width: min(320px, 72vw); }
  .radar-signal > span { width: 170px; }
}

@media (max-width: 720px) {
  .skill-pack-note > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .expert-mode-switch-bottom { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .expert-mode-tab { white-space: nowrap; }
  .radar-signal > span { display: none; }
}
