
    @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

    :root {
      /* ── Design Tokens: PMO 驾驶舱 v2 ── */
      --page: #edecea;
      --panel: #fff;
      --panel-soft: #f4f4f1;
      --cell: #fafafa;
      --cell-muted: #eceae6;
      --ink: #1d2026;
      --muted: #6c6c66;
      --faint: #8a8a84;
      --faint-2: #9a9a95;
      --faint-3: #a3a39d;
      --line: rgba(20, 22, 28, .05);
      --line-card: rgba(20, 22, 28, .05);
      --line-internal: #eceae6;
      --line-internal-2: #e4e3df;
      --blue: #2f6feb;
      --blue-dark: #1d5fd0;
      --blue-soft: #eef3fe;
      --green: #16a34a;
      --green-soft: #e9f6ee;
      --amber: #d9920a;
      --amber-dark: #b8730a;
      --amber-soft: #fdf4e3;
      --violet: #7c3aed;
      --violet-soft: #f1ecfe;
      --red: #e5484d;
      --red-soft: #fdecec;
      --red-deep: #c0353a;
      --risk-dot: #f0595d;
      --deliverable-gold: #e8b339;
      --shadow-card: 0 1px 2px rgba(20, 22, 28, .04), 0 16px 36px -26px rgba(20, 22, 28, .35);
      --shadow-modal: 0 40px 80px -30px rgba(20, 22, 28, .55);
      --shadow-drawer: -24px 0 70px -34px rgba(20, 22, 28, .6);
      --radius-card: 18px;
      --radius-card-lg: 22px;
      --radius-lg: 18px;
      --radius-md: 13px;
      --radius-sm: 10px;
      --radius-chip: 7px;
      --radius-pill: 99px;
      --radius-base: 9px;
      --ease: 180ms cubic-bezier(.16, 1, .3, 1);
      /* base labels */
      --base-trust-bg: #eef3fe;
      --base-trust-fg: #2f6feb;
      --base-med-bg: #f1ecfe;
      --base-med-fg: #7c3aed;
      --base-zs-bg: #e4f4f8;
      --base-zs-fg: #0e8aa6;
      --base-zy-bg: #eef1f5;
      --base-zy-fg: #5b6675;
      /* task/deliverable status */
      --status-active: #2f6feb;
      --status-active-bg: #eef3fe;
      --status-pending: #d9920a;
      --status-pending-bg: #fdf4e3;
      --status-done: #16a34a;
      --status-done-bg: #e9f6ee;
      --status-todo: #8a8a84;
      --status-todo-bg: #f1f1ee;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100dvh;
      background: #edecea;
      color: #1d2026;
      font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0;
    }

    button,
    input {
      font: inherit;
    }

    .stage {
      width: 100%;
      min-height: 100dvh;
      margin: 0;
      padding: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      border: 0;
    }

    .app {
      min-height: 100dvh;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      overflow: hidden;
      display: grid;
      grid-template-columns: 86px minmax(0, 1fr);
    }

    .rail {
      padding: 20px 14px;
      background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(240,242,238,.86));
      border-right: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }

    .logo {
      width: 54px;
      height: 54px;
      border-radius: 20px;
      display: grid;
      place-items: center;
      background: #fff;
      box-shadow: var(--shadow-soft);
      margin-bottom: 26px;
    }

    .logo-mark {
      width: 30px;
      height: 30px;
      border-radius: 9px;
      background:
        linear-gradient(180deg, transparent 0 58%, rgba(49,134,246,.14) 58% 100%),
        linear-gradient(90deg, #86bdfd, #3186f6);
      position: relative;
    }

    .logo-mark::before,
    .logo-mark::after {
      content: "";
      position: absolute;
      bottom: 6px;
      width: 5px;
      border-radius: 99px;
      background: #fff;
    }

    .logo-mark::before {
      left: 8px;
      height: 13px;
    }

    .logo-mark::after {
      left: 17px;
      height: 20px;
    }

    .rail-link,
    .settings {
      width: 48px;
      height: 48px;
      border: 0;
      border-radius: 18px;
      background: transparent;
      color: #64717d;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
    }

    .rail-link.active,
    .rail-link:hover,
    .settings:hover {
      background: #fff;
      color: var(--ink);
      box-shadow: var(--shadow-soft);
      transform: translateY(-1px);
    }

    .rail-spacer {
      flex: 1;
    }

    .content {
      min-width: 0;
      padding: 18px 22px 22px;
      display: grid;
      gap: 16px;
    }

    .topbar {
      height: 72px;
      border-radius: 24px;
      background: rgba(255,255,255,.74);
      border: 1px solid rgba(255,255,255,.84);
      box-shadow: var(--shadow-soft);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 0 18px;
    }

    .nav-pills,
    .top-actions,
    .avatar-stack {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav-pill,
    .action-pill {
      height: 46px;
      padding: 0 18px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.82);
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      gap: 9px;
      font-size: 14px;
      font-weight: 680;
      box-shadow: 0 8px 20px rgba(31, 38, 48, .06);
      cursor: pointer;
      transition: transform var(--ease), box-shadow var(--ease);
    }

    .nav-pill.active {
      background: linear-gradient(180deg, #fff, #f4f8ff);
      color: var(--blue-dark);
      border-color: rgba(49,134,246,.24);
      box-shadow: 0 10px 24px rgba(49,134,246,.13);
    }

    .nav-pill:hover,
    .action-pill:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-soft);
    }

    .search {
      width: 46px;
      padding: 0;
      justify-content: center;
    }

    .avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: linear-gradient(135deg, #e7edf5, #cfd8e5);
      border: 3px solid #fff;
      box-shadow: 0 8px 18px rgba(31, 38, 48, .13);
      overflow: hidden;
      display: grid;
      place-items: center;
      color: #42505c;
      font-size: 12px;
      font-weight: 800;
    }

    .avatar + .avatar {
      margin-left: -18px;
    }

    .avatar.a1 { background: linear-gradient(135deg, #ffd9a7, #e66f3f); }
    .avatar.a2 { background: linear-gradient(135deg, #f1c2d4, #8d6fd4); }
    .avatar.a3 { background: linear-gradient(135deg, #bce8d6, #2a8e69); }
    .avatar.more { background: #fff; color: var(--ink); }

    .main-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 16px;
      align-items: stretch;
    }

    .planner {
      min-width: 0;
      border-radius: var(--radius-xl);
      background: rgba(255,255,255,.74);
      border: 1px solid rgba(255,255,255,.84);
      box-shadow: var(--shadow-panel);
      padding: 18px 18px 16px;
      overflow: hidden;
    }

    .calendar-hero {
      background: #fff;
      border: 1px solid rgba(20,22,28,.05);
      border-radius: 22px;
      padding: 24px 28px 18px;
      box-shadow: 0 1px 2px rgba(20,22,28,.04), 0 20px 44px -28px rgba(20,22,28,.35);
      overflow: hidden;
      margin-bottom: 18px;
    }

    .calendar-hero-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      position: relative;
      gap: 20px;
      margin-bottom: 18px;
    }

    .calendar-hero-title {
      flex: 1;
    }

    .calendar-hero-title .kicker {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: #9a9a95;
      margin-bottom: 8px;
      display: block;
    }

    .calendar-hero-title h1 {
      margin: 0;
      font: 700 22px/1.2 'Space Grotesk', -apple-system, 'PingFang SC', sans-serif;
      color: #1d2026;
      letter-spacing: -.01em;
    }

    .calendar-hero-subtitle {
      font-size: 12.5px;
      color: #6c6c66;
      margin-top: 6px;
    }

    .calendar-hero-legend {
      display: flex;
      gap: 18px;
      align-items: center;
      font-size: 11.5px;
      color: #6c6c66;
      padding-top: 4px;
      flex-shrink: 0;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .legend-diamond {
      width: 10px;
      height: 10px;
      background: #e8b339;
      transform: rotate(45deg);
      border-radius: 2px;
    }

    .legend-circle {
      width: 11px;
      height: 11px;
      border: 2px solid #2f6feb;
      border-radius: 50%;
    }

    .legend-dot.red {
      width: 9px;
      height: 9px;
      background: #f0595d;
      border-radius: 50%;
    }

    .calendar-hero-footer {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(20,22,28,.07);
    }

    .inspection-chip {
      font-size: 11px;
      font-weight: 600;
      color: #2f6feb;
      background: #eef3fe;
      border-radius: 7px;
      padding: 4px 10px;
    }

    .inspection-text {
      font-size: 12px;
      color: #8a8a84;
    }

    .planner-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
      margin-bottom: 14px;
    }

    .calendar-context {
      min-height: 54px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 10px 12px;
      border-radius: 20px;
      background: rgba(255,255,255,.62);
      border: 1px solid rgba(255,255,255,.78);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    }

    .week-title {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 8px;
      min-width: 0;
    }

    .week-title strong {
      font-size: 16px;
      line-height: 1.2;
      font-weight: 820;
    }

    .week-title span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 660;
    }

    .calendar-legend {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .legend-pill {
      height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      background: #fff;
      border: 1px solid var(--line);
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 11px;
      font-weight: 760;
      white-space: nowrap;
    }

    .legend-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--blue);
    }

    .legend-dot.green { background: var(--green); }
    .legend-dot.amber { background: #ffb21a; }
    .legend-dot.red { background: var(--red); }

    .kicker {
      display: block;
      color: var(--muted);
      font-size: 15px;
      margin-bottom: 7px;
      font-weight: 650;
    }

    h1 {
      margin: 0;
      font-size: clamp(34px, 3vw, 52px);
      line-height: 1.02;
      font-weight: 820;
    }

    .planner-tools {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
      padding-top: 2px;
    }

    .tool-btn {
      height: 42px;
      padding: 0 15px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      gap: 9px;
      font-size: 13px;
      font-weight: 680;
      box-shadow: 0 8px 18px rgba(31, 38, 48, .06);
      cursor: pointer;
    }

    .timeline {
      display: grid;
      grid-template-columns: 252px repeat(12, minmax(50px, 1fr));
      gap: 6px;
      position: relative;
    }

    .date-cell,
    .empty-head {
      min-height: 50px;
      border-radius: 15px;
    }

    .date-cell {
      background: rgba(255,255,255,.72);
      border: 1px solid rgba(255,255,255,.8);
      color: var(--muted);
      display: grid;
      place-items: center;
      text-align: center;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
      font-size: 12px;
      line-height: 1.18;
      font-weight: 700;
    }

    .date-cell strong {
      color: var(--ink);
      display: block;
      font-size: 18px;
      margin-top: 2px;
    }

    .date-cell.today {
      background: linear-gradient(180deg, #6caeff, var(--blue));
      color: #fff;
      box-shadow: 0 12px 28px rgba(49,134,246,.36);
      position: relative;
    }

    .date-cell.today strong {
      color: #fff;
    }

    .date-cell.muted {
      background:
        repeating-linear-gradient(135deg, rgba(126, 137, 148, .15) 0 7px, rgba(126, 137, 148, .06) 7px 12px),
        var(--cell-muted);
      color: #5f6973;
    }

    .date-cell.muted strong {
      color: #4c5660;
    }

    .project-row {
      display: contents;
    }

    .project-card,
    .grid-cell {
      min-height: 60px;
      border-radius: 16px;
    }

    .project-card {
      background: rgba(255,255,255,.92);
      border: 1px solid rgba(255,255,255,.86);
      box-shadow: 0 10px 24px rgba(31, 38, 48, .06);
      padding: 9px 10px;
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
    }

    .project-icon {
      width: 44px;
      height: 44px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 850;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
    }

    .project-icon.secure { background: linear-gradient(135deg, #68b8ff, #2556c8); }
    .project-icon.med { background: linear-gradient(135deg, #52d69a, #098355); }
    .project-icon.pipe { background: linear-gradient(135deg, #ffdc61, #dc8a0a); color: #493100; }
    .project-icon.risk { background: linear-gradient(135deg, #ff9388, #d84238); }

    .project-title {
      margin: 0;
      font-size: 14px;
      font-weight: 770;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .project-meta {
      margin-top: 5px;
      display: flex;
      align-items: center;
      gap: 7px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 650;
    }

    .checkpoint {
      margin-top: 5px;
      width: fit-content;
      max-width: 100%;
      height: 22px;
      padding: 0 8px;
      border-radius: 999px;
      background: var(--panel-soft);
      color: #48535e;
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 10px;
      font-weight: 760;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--green);
    }

    .dot.warn { background: #ffb21a; }
    .dot.red { background: var(--red); }

    .grid-cell {
      background: rgba(255,255,255,.56);
      border: 1px solid rgba(255,255,255,.78);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
      position: relative;
    }

    .grid-cell.off {
      background:
        repeating-linear-gradient(135deg, rgba(126, 137, 148, .14) 0 7px, rgba(126, 137, 148, .05) 7px 12px),
        rgba(228, 232, 230, .76);
    }

    .phase {
      height: 60px;
      border-radius: 16px;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      gap: 9px;
      color: #fff;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        0 16px 32px rgba(31, 38, 48, .16);
      position: relative;
      z-index: 2;
      overflow: hidden;
      transition: transform var(--ease), box-shadow var(--ease);
    }

    .phase:hover {
      transform: translateY(-2px);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.38),
        0 20px 38px rgba(31, 38, 48, .2);
    }

    .phase::after {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: 15px;
      background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 45%);
      pointer-events: none;
    }

    .phase.green { background: linear-gradient(135deg, #28d68b, #08a961); }
    .phase.blue { background: linear-gradient(135deg, #8fc5ff, #438df5); }
    .phase.violet { background: linear-gradient(135deg, #a786ff, #7248ee); }
    .phase.amber { background: linear-gradient(135deg, #ffe26c, #ffb31e); color: #4d3600; }
    .phase.red { background: linear-gradient(135deg, #ff9188, #e65449); }
    .phase.muted {
      background:
        repeating-linear-gradient(135deg, rgba(126,137,148,.18) 0 7px, rgba(126,137,148,.06) 7px 12px),
        rgba(226,232,235,.84);
      color: #56616b;
      border: 1px dashed rgba(86,97,107,.24);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    }

    .phase .phase-icon {
      width: 34px;
      height: 34px;
      border-radius: 13px;
      background: rgba(255,255,255,.2);
      border: 1px solid rgba(255,255,255,.28);
      display: grid;
      place-items: center;
      flex: 0 0 auto;
    }

    .phase.amber .phase-icon {
      background: rgba(255,255,255,.34);
      border-color: rgba(255,255,255,.42);
    }

    .phase-title {
      font-size: 13px;
      font-weight: 780;
      line-height: 1.2;
    }

    .phase-sub {
      margin-top: 3px;
      font-size: 10px;
      opacity: .84;
      font-weight: 650;
      white-space: nowrap;
    }

    .mini-milestone {
      min-height: 60px;
      border-radius: 16px;
      background: rgba(255,255,255,.66);
      border: 1px dashed rgba(27,32,37,.14);
      color: var(--muted);
      padding: 9px 10px;
      display: grid;
      align-content: center;
      gap: 3px;
      font-size: 10px;
      font-weight: 720;
      line-height: 1.25;
    }

    .mini-milestone strong {
      color: var(--ink);
      font-size: 12px;
    }

    .span-2 { grid-column: span 2; }
    .span-3 { grid-column: span 3; }
    .span-4 { grid-column: span 4; }

    .today-line {
      position: absolute;
      top: 50px;
      bottom: 4px;
      left: calc(252px + 6px + (100% - 252px - 66px) * 4 / 12 + 25px);
      width: 0;
      border-left: 3px dashed var(--blue);
      opacity: .92;
      z-index: 3;
      pointer-events: none;
    }

    .side-panel {
      min-width: 0;
      display: grid;
      grid-template-columns: .95fr .78fr 1.18fr;
      gap: 16px;
      align-items: stretch;
    }

    .decision-card,
    .summary-card,
    .assistant-card {
      border-radius: 18px;
      background: #fff;
      border: 1px solid rgba(20,22,28,.05);
      box-shadow: 0 1px 2px rgba(20,22,28,.04), 0 16px 36px -26px rgba(20,22,28,.35);
      padding: 22px;
    }

    .decision-card {
      min-height: 270px;
      display: grid;
      align-content: start;
      gap: 13px;
    }

    .card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    h2 {
      margin: 0;
      font-size: 17px;
      line-height: 1.3;
      font-weight: 700;
      color: #1d2026;
    }

    .count-badge {
      min-width: 38px;
      height: 24px;
      border-radius: 7px;
      background: #fdf4e3;
      color: #b8730a;
      display: grid;
      place-items: center;
      font-size: 12px;
      font-weight: 700;
      padding: 2px 8px;
      border: none;
    }

    .decision-list {
      display: grid;
      gap: 11px;
    }

    .decision-item {
      border-radius: 13px;
      background: #fffdf7;
      border: 1px solid #f0e6cf;
      padding: 14px 15px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      box-shadow: none;
    }

    .decision-title {
      font-size: 14px;
      font-weight: 760;
      margin: 0 0 6px;
    }

    .decision-meta {
      color: var(--muted);
      font-size: 12px;
      font-weight: 620;
    }

    .mini-action {
      height: 33px;
      border: 0;
      border-radius: 9px;
      background: #1d2026;
      color: #fff;
      padding: 0 15px;
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
    }

    .mini-action.secondary {
      color: #6c6c66;
      background: #fff;
      border: 1px solid #e4e3df;
    }

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

    .metric {
      min-height: 124px;
      border-radius: 13px;
      padding: 15px;
      background: #fff;
      border: 1px solid rgba(20,22,28,.05);
      box-shadow: none;
    }

    .metric strong {
      display: block;
      font-size: 33px;
      line-height: 1;
      font-weight: 700;
      font-family: 'Space Grotesk', sans-serif;
      letter-spacing: 0;
    }

    .metric span {
      display: block;
      color: #6c6c66;
      font-size: 12px;
      line-height: 1.35;
      margin-top: 9px;
      font-weight: 500;
    }

    .assistant-card {
      min-height: 270px;
      display: grid;
      align-content: start;
      gap: 13px;
      text-align: left;
    }

    .ai-card {
      background:
        linear-gradient(180deg, rgba(255,255,255,.84), rgba(244,248,255,.76)),
        rgba(255,255,255,.76);
    }

    .orb {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      margin: 0;
      background: linear-gradient(150deg, #3f7bf0, #7b5cf0);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 22px -10px rgba(63,123,240,.6);
      position: relative;
    }

    .orb::after {
      content: "";
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: rgba(255,255,255,.92);
    }

    .assistant-card p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
      font-weight: 620;
    }

    .ai-head {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 16px;
    }

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

    .flow-step {
      flex: 1;
      border: 1px solid #eceae6;
      border-radius: 11px;
      padding: 12px 13px;
      background: #fafafa;
    }

    .flow-step b {
      font: 700 14px 'Space Grotesk';
      color: #2f6feb;
      display: block;
      margin-bottom: 5px;
    }

    .flow-step span {
      font-size: 12px;
      color: #5a5a54;
      line-height: 1.45;
    }

    .flow-step b {
      display: block;
      color: var(--blue-dark);
      font-size: 18px;
      line-height: 1;
      margin-bottom: 7px;
    }

    .flow-step span {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.3;
      font-weight: 700;
    }

    .candidate-list {
      display: grid;
      gap: 9px;
    }

    .candidate {
      border: 1px solid #eceae6;
      border-radius: 13px;
      padding: 14px 15px;
      background: #fff;
    }

    .candidate-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      margin-bottom: 10px;
    }

    .candidate-title {
      font-weight: 600;
      font-size: 14px;
      color: #1d2026;
      line-height: 1.4;
    }

    .confidence-chip {
      flex: none;
      font-size: 11px;
      font-weight: 600;
      padding: 3px 9px;
      border-radius: 7px;
    }

    .confidence-chip.high {
      background: #e9f6ee;
      color: #16a34a;
    }

    .confidence-chip.medium {
      background: #fdf4e3;
      color: #b8730a;
    }

    .confidence-chip.low {
      background: #fdecec;
      color: #c0353a;
    }

    .candidate-info {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 10px;
    }

    .info-chip {
      font-size: 11.5px;
      color: #6c6c66;
      background: #f4f4f1;
      border-radius: 7px;
      padding: 3px 9px;
    }

    .candidate-meta {
      color: #6c6c66;
      font-size: 12px;
      line-height: 1.45;
      font-weight: 650;
    }

    .candidate-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 12px;
    }

    .candidate-source {
      font-size: 11px;
      color: #a3a39d;
    }

    .candidate-buttons {
      display: flex;
      gap: 8px;
    }

    .candidate-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 7px;
    }

    .candidate-title {
      font-size: 13px;
      line-height: 1.35;
      font-weight: 790;
    }

    .source-pill {
      height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      background: var(--blue-soft);
      color: var(--blue-dark);
      font-size: 10px;
      font-weight: 800;
      white-space: nowrap;
    }

    .candidate-meta {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
      font-weight: 650;
    }

    .candidate-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }

    .candidate-actions .mini-action {
      height: 30px;
      font-size: 11px;
    }

    .prompt-box {
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid #e4e3df;
      border-radius: 12px;
      padding: 6px 6px 6px 15px;
      background: #fafafa;
    }

    .prompt-box input {
      border: 0;
      outline: 0;
      background: transparent;
      color: var(--ink);
      min-width: 0;
      font-size: 13px;
    }

    .send {
      width: 38px;
      height: 38px;
      flex: none;
      border: none;
      border-radius: 9px;
      background: #1d2026;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .prompt-box input::placeholder {
      font-size: 13px;
      color: #a3a39d;
    }

    .bottom-grid {
      display: grid;
      grid-template-columns: 1.45fr 1fr;
      gap: 18px;
    }

    .middle-grid {
      display: grid;
      grid-template-columns: 1.6fr 1fr;
      gap: 18px;
    }

    .event-card,
    .people-card,
    .risk-card {
      min-height: 350px;
      border-radius: 18px;
      background: #fff;
      border: 1px solid rgba(20,22,28,.05);
      box-shadow: 0 1px 2px rgba(20,22,28,.04), 0 16px 36px -26px rgba(20,22,28,.35);
      padding: 22px;
      overflow: hidden;
    }

    .yellow-event {
      margin-top: 15px;
      border-radius: 22px;
      padding: 18px;
      background: linear-gradient(135deg, #ffe46c, #ffd22d);
      color: #392900;
      min-height: 128px;
      box-shadow: 0 18px 34px rgba(218,151,0,.2);
    }

    .yellow-event h3 {
      margin: 0 0 8px;
      font-size: 18px;
      line-height: 1.2;
    }

    .yellow-event p {
      margin: 0;
      color: rgba(57,41,0,.74);
      font-size: 13px;
      line-height: 1.5;
      font-weight: 650;
    }

    .event-chips {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 16px;
    }

    .chip {
      min-height: 38px;
      padding: 0 12px;
      border-radius: 12px;
      background: rgba(255,255,255,.5);
      border: 1px solid rgba(255,255,255,.45);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 740;
    }

    .plain-event {
      margin-top: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,.72);
      border: 1px solid var(--line);
      padding: 14px 16px;
    }

    .plain-event strong {
      display: block;
      font-size: 14px;
      margin-bottom: 5px;
    }

    .plain-event span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
      font-weight: 630;
    }

    .people-grid {
      margin-top: 15px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .person {
      min-height: 120px;
      border-radius: 12px;
      background: #fff;
      border: 1px solid #eceae6;
      padding: 12px;
      text-align: left;
      box-shadow: none;
    }

    .person .avatar {
      margin: 0 auto 10px;
      border-width: 2px;
    }

    .person strong {
      display: block;
      font-size: 14px;
    }

    .person span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 620;
    }

    .task-pill {
      margin: 13px auto 0;
      height: 32px;
      width: fit-content;
      padding: 0 11px;
      border-radius: 999px;
      background: var(--panel-soft);
      border: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: 7px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 760;
    }

    .risk-list {
      margin-top: 15px;
      display: grid;
      gap: 10px;
    }

    .risk-item {
      border-radius: 11px;
      background: #fff;
      border: 1px solid #eceae6;
      border-left: 3px solid #e5484d;
      padding: 13px 15px;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      align-items: start;
    }

    .risk-icon {
      display: none;
    }

    .risk-icon.warn {
      background: #ffb31e;
      color: #432e00;
    }

    .risk-item h3 {
      margin: 0 0 5px;
      font-size: 14px;
      font-weight: 600;
      color: #1d2026;
    }

    .risk-item p {
      margin: 0;
      color: #6c6c66;
      font-size: 12.5px;
      line-height: 1.5;
      font-weight: 400;
    }

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

    .svg.fill {
      fill: currentColor;
      stroke: none;
    }

    @media (max-width: 1280px) {
      .bottom-grid {
        grid-template-columns: 1fr;
      }

      .side-panel {
        grid-template-columns: 1fr;
      }

      .assistant-card {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 900px) {
      .stage {
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
      }

      .app {
        grid-template-columns: 1fr;
        border-radius: 0;
      }

      .rail {
        display: none;
      }

      .content {
        padding: 12px;
      }

      .topbar {
        height: auto;
        padding: 12px;
        flex-wrap: wrap;
      }

      .top-actions {
        width: 100%;
        justify-content: space-between;
      }

      .planner {
        overflow-x: auto;
      }

      .planner-head {
        min-width: 920px;
      }

      .calendar-context {
        min-width: 920px;
        align-items: flex-start;
        flex-direction: column;
      }

      .timeline {
        min-width: 920px;
      }

      .side-panel {
        grid-template-columns: 1fr;
      }

      .people-grid,
      .summary-card {
        grid-template-columns: 1fr;
      }
    }
  
:root{--bg:#f3f5f1;--panel:rgba(255,255,255,.78);--panel-solid:#fff;--soft:#eef2ed;--ink:#17191d;--muted:#606a73;--line:rgba(27,32,37,.1);--blue:#3186f6;--blue-dark:#1d5fd0;--green:#10bf73;--amber:#ffd643;--red:#e35b4f;--violet:#7955ec;--shadow:0 26px 74px rgba(31,38,48,.12);--shadow-soft:0 12px 30px rgba(31,38,48,.08);--ease:180ms cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:var(--bg);color:var(--ink);font-family:"Avenir Next","SF Pro Display","PingFang SC","Microsoft YaHei",system-ui,sans-serif;letter-spacing:0}button,input,textarea{font:inherit}.svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.logo{width:54px;height:54px;border-radius:20px;display:grid;place-items:center;background:#fff;box-shadow:var(--shadow-soft)}.logo-mark{width:30px;height:30px;border-radius:9px;background:linear-gradient(180deg,transparent 0 58%,rgba(49,134,246,.14) 58% 100%),linear-gradient(90deg,#86bdfd,#3186f6);position:relative}.logo-mark:before,.logo-mark:after{content:"";position:absolute;bottom:6px;width:5px;border-radius:99px;background:#fff}.logo-mark:before{left:8px;height:13px}.logo-mark:after{left:17px;height:20px}
.auth-page{min-height:100dvh;display:grid;grid-template-columns:1.08fr .92fr;gap:28px;padding:34px}.hero,.state-stack,.status-only{border-radius:34px;background:var(--panel);border:1px solid rgba(255,255,255,.84);box-shadow:var(--shadow);min-width:0}.hero{padding:34px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}.brand-row{display:flex;align-items:center;gap:14px}.brand-row strong{font-size:18px;display:block}.brand-row span,.caption{color:var(--muted);font-size:13px;font-weight:650}.hero h1{margin:0;font-size:clamp(38px,5.8vw,76px);line-height:.98;font-weight:860}.lead{margin:22px 0 0;max-width:640px;color:var(--muted);font-size:17px;line-height:1.75;font-weight:620}.security-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.security-card,.login-card,.status-card,.totp-card{border-radius:28px;background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.88);box-shadow:var(--shadow-soft);padding:24px}.security-card{min-height:132px}.security-card b{display:block;font-size:15px;margin:12px 0 8px}.security-card span{color:var(--muted);font-size:12px;line-height:1.45;font-weight:650}.icon-box,.state-icon{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:#dfeeff;color:var(--blue-dark)}.state-stack{padding:20px;display:grid;gap:16px;align-content:start}.card-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}.card-head.between{justify-content:space-between;margin-bottom:14px}h2{margin:0;font-size:26px;line-height:1.1;font-weight:830}.oauth-button,.primary{width:100%;min-height:56px;border:0;border-radius:999px;background:var(--blue);color:#fff;font-size:16px;font-weight:820;display:inline-flex;align-items:center;justify-content:center;gap:11px;box-shadow:0 16px 30px rgba(49,134,246,.25);cursor:pointer;text-decoration:none}.oauth-button:hover,.primary:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(49,134,246,.3)}.meta-list{display:grid;gap:10px;margin:18px 0 0}.meta-line{min-height:42px;border-radius:16px;background:var(--soft);padding:10px 12px;color:var(--muted);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:12px}.meta-line strong{color:var(--ink)}.status-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;align-items:center}.status-card h3{margin:0 0 5px;font-size:17px}.status-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.45;font-weight:650}.small-button,.secondary,.tool-btn,.mini-action{border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer;text-decoration:none}.small-button{height:38px;padding:0 14px;display:inline-flex;align-items:center}.state-icon.red{color:#a9251b;background:#ffe6e2}.state-icon.amber{color:#8a5a00;background:#fff5cf}.state-icon.green{color:#067047;background:#ddf8ea}.state-icon.blue{color:var(--blue-dark);background:#dfeeff}.status-only{max-width:760px;margin:12vh auto;padding:28px;display:grid;gap:18px}
.app{min-height:100dvh;background:rgba(249,250,247,.9);display:grid;grid-template-columns:86px minmax(0,1fr)}.rail{padding:20px 14px;background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(240,242,238,.86));border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:14px}.rail .logo{margin-bottom:26px}.rail-link,.settings{width:48px;height:48px;border:0;border-radius:18px;background:transparent;color:#64717d;display:grid;place-items:center;cursor:pointer}.rail-link.active,.rail-link:hover,.settings:hover{background:#fff;color:var(--ink);box-shadow:var(--shadow-soft)}.rail-spacer{flex:1}.content{min-width:0;padding:18px 22px 22px;display:grid;gap:16px}.topbar{min-height:72px;border-radius:24px;background:rgba(255,255,255,.74);border:1px solid rgba(255,255,255,.84);box-shadow:var(--shadow-soft);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px}.nav-pills,.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.nav-pill,.action-pill{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.82);color:var(--ink);display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:680;text-decoration:none}.nav-pill.active{background:linear-gradient(180deg,#fff,#f4f8ff);color:var(--blue-dark);border-color:rgba(49,134,246,.24)}.user-chip,.identity-chip{display:flex;align-items:center;gap:10px;border-radius:999px;background:#fff;border:1px solid var(--line);padding:7px 12px}.identity-chip{min-height:48px;padding-right:15px;background:linear-gradient(180deg,#fff,#f8fbff);border-color:rgba(49,134,246,.18);box-shadow:0 8px 20px rgba(31,38,48,.06)}.identity-chip strong,.user-chip strong{display:block;max-width:168px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.identity-chip span,.user-chip span{display:block;color:var(--muted);font-size:11px;font-weight:760;white-space:nowrap}.identity-chip .mode{color:var(--blue-dark)}.avatar{width:34px;height:34px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#7fc1ff,#3186f6);color:#fff;font-size:12px;font-weight:850}.logout{border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:800;cursor:pointer}
.main-grid{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:16px;align-items:start}.planner,.assistant-card,.decision-card,.summary-card,.event-card,.people-card,.risk-card{border-radius:34px;background:rgba(255,255,255,.76);border:1px solid rgba(255,255,255,.84);box-shadow:var(--shadow-soft);padding:18px;overflow:hidden}.planner{align-self:start}.planner-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.kicker{display:block;color:var(--muted);font-size:15px;margin-bottom:7px;font-weight:650}.planner h1{margin:0;font-size:clamp(34px,3vw,52px);line-height:1.02;font-weight:820}.planner-tools{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.tool-btn{height:40px;padding:0 14px;display:inline-flex;align-items:center;gap:8px}.calendar-context{min-height:54px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-radius:20px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.78)}.week-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.week-title strong{font-size:16px}.week-title span{color:var(--muted);font-size:12px;font-weight:660}.calendar-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.legend-pill{height:30px;padding:0 10px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--muted);display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:760}.legend-dot{width:9px;height:9px;border-radius:50%;background:var(--blue)}.legend-dot.green{background:var(--green)}.legend-dot.amber{background:#ffb21a}.legend-dot.red{background:var(--red)}.legend-dot.violet{background:var(--violet)}
.timeline{display:grid;grid-template-columns:252px repeat(12,minmax(50px,1fr));gap:6px;position:relative;overflow:auto}.date-cell,.empty-head{min-height:50px;border-radius:15px}.date-cell{background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.8);color:var(--muted);display:grid;place-items:center;text-align:center;font-size:12px;line-height:1.18;font-weight:700}.date-cell strong{color:var(--ink);display:block;font-size:18px;margin-top:2px}.date-cell.today{background:linear-gradient(180deg,#6caeff,var(--blue));color:#fff;box-shadow:0 12px 28px rgba(49,134,246,.36)}.date-cell.today strong{color:#fff}.project-row{display:contents}.project-card,.grid-cell,.phase,.mini-milestone{min-height:60px;border-radius:16px}.project-card{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.86);box-shadow:0 10px 24px rgba(31,38,48,.06);padding:9px 10px;display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center}.project-icon{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;color:#fff;font-weight:850;background:linear-gradient(135deg,#68b8ff,#2556c8)}.project-title{margin:0;font-size:14px;font-weight:770;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-meta,.checkpoint,.candidate-meta,.decision-meta{color:var(--muted);font-size:11px;font-weight:650}.checkpoint{margin-top:5px;width:fit-content;max-width:100%;height:22px;padding:0 8px;border-radius:999px;background:var(--soft);display:flex;align-items:center;white-space:nowrap}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--green)}.dot.warn{background:#ffb21a}.dot.red{background:var(--red)}.grid-cell{background:rgba(255,255,255,.56);border:1px solid rgba(255,255,255,.78)}.phase{padding:10px 12px;display:flex;align-items:center;gap:9px;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 16px 32px rgba(31,38,48,.16);overflow:hidden}.phase.green{background:linear-gradient(135deg,#28d68b,#08a961)}.phase.blue{background:linear-gradient(135deg,#8fc5ff,#438df5)}.phase.violet{background:linear-gradient(135deg,#a786ff,#7248ee)}.phase.amber{background:linear-gradient(135deg,#ffe26c,#ffb31e);color:#4d3600}.phase.red{background:linear-gradient(135deg,#ff9188,#e65449)}.phase-title{font-size:13px;font-weight:780}.phase-sub{font-size:10px;opacity:.84;font-weight:650;white-space:nowrap}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.mini-milestone{background:rgba(255,255,255,.66);border:1px dashed rgba(27,32,37,.14);color:var(--muted);padding:9px 10px;display:grid;align-content:center;font-size:10px;font-weight:720}.mini-milestone strong{color:var(--ink);font-size:12px}
.side-panel{min-width:0;display:grid;grid-template-columns:1fr;gap:16px;align-items:start}.side-panel>.assistant-card,.side-panel>.decision-card,.side-panel>.summary-card{min-width:0}.ai-card{background:linear-gradient(180deg,rgba(255,255,255,.84),rgba(244,248,255,.76)),rgba(255,255,255,.76)}.ai-head{display:grid;grid-template-columns:62px minmax(0,1fr);gap:14px;align-items:center}.ai-head h2{font-size:24px}.orb{width:62px;height:62px;border-radius:50%;background:radial-gradient(circle at 36% 24%,rgba(255,255,255,.98),rgba(255,255,255,.4) 24%,transparent 25%),radial-gradient(circle at 50% 50%,#d9efff 0 27%,#83c4ff 58%,#4fa0f4 100%);box-shadow:inset 9px 10px 24px rgba(255,255,255,.6),0 20px 36px rgba(49,134,246,.22)}.assistant-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.65;font-weight:620}.flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.flow-step{min-height:64px;border-radius:17px;background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.84);padding:10px}.flow-step b{display:block;color:var(--blue-dark);font-size:18px}.flow-step span{color:var(--muted);font-size:11px;line-height:1.3;font-weight:700}.candidate-list,.decision-list,.risk-list{display:grid;gap:10px}.candidate,.decision-item,.plain-event,.person,.risk-item{border-radius:18px;background:rgba(255,255,255,.78);border:1px solid var(--line);padding:12px;box-shadow:0 8px 18px rgba(31,38,48,.05)}.candidate-title,.decision-title{font-size:13px;line-height:1.35;font-weight:790}.candidate-top,.decision-item,.risk-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.source-pill{height:24px;padding:0 8px;border-radius:999px;background:#dfeeff;color:var(--blue-dark);font-size:10px;font-weight:800;white-space:nowrap;display:inline-flex;align-items:center}.candidate-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.mini-action{min-height:32px;padding:0 13px;background:var(--blue);color:#fff;border:0}.mini-action.secondary{color:var(--ink);background:var(--soft);border:1px solid var(--line)}.mini-action:disabled{background:#c8d0d8;color:#fff;cursor:not-allowed}.summary-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{min-height:150px;border-radius:22px;padding:15px;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.86)}.metric strong{display:block;font-size:33px;line-height:1;font-weight:830}.metric span{display:block;color:var(--muted);font-size:12px;line-height:1.35;margin-top:9px;font-weight:660}.metric-list{display:grid;gap:6px;margin-top:12px}.metric-line{min-height:24px;border-radius:10px;background:rgba(247,248,245,.86);padding:6px 8px;color:var(--ink);font-size:11px;line-height:1.35;font-weight:720;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metric-empty{color:var(--muted)}.bottom-grid{display:grid;grid-template-columns:1.05fr 1.05fr 1fr;gap:18px}.yellow-event{margin-top:15px;border-radius:22px;padding:18px;background:linear-gradient(135deg,#ffe46c,#ffd22d);color:#392900;min-height:128px}.yellow-event h3{margin:0 0 8px;font-size:18px}.yellow-event p{margin:0;color:rgba(57,41,0,.74);font-size:13px;line-height:1.5;font-weight:650}.empty-state,.error-state{border-radius:24px;background:#fff;border:1px solid var(--line);padding:24px;color:var(--muted);font-weight:700}.error-state{color:#8a241b;background:#fff4f2}.member-layout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:16px}.output-form,.drawer-form{display:grid;gap:10px}.output-form input,.output-form textarea,.output-form select,.drawer-form input,.drawer-form textarea,.drawer-form select,.candidate-select{width:100%;border:1px solid var(--line);border-radius:16px;background:#fff;padding:12px;outline:0}.output-form select,.drawer-form select,select.candidate-select{appearance:none;-webkit-appearance:none;min-height:42px;padding-right:40px;color:var(--ink);font-weight:760;background:linear-gradient(45deg,transparent 50%,#64717d 50%),linear-gradient(135deg,#64717d 50%,transparent 50%),linear-gradient(180deg,#fff,#f7faf8);background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%,0 0;background-size:5px 5px,5px 5px,100% 100%;background-repeat:no-repeat;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 6px 16px rgba(31,38,48,.04);cursor:pointer}.output-form select:focus,.drawer-form select:focus,select.candidate-select:focus{border-color:rgba(49,134,246,.42);box-shadow:0 0 0 4px rgba(49,134,246,.12),inset 0 1px 0 rgba(255,255,255,.9)}.candidate-edit{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.readonly-card{display:grid;gap:12px}.readonly-card .state-icon{width:54px;height:54px;border-radius:19px}.readonly-card h2{font-size:25px}.readonly-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.65;font-weight:650}.readonly-note{border-radius:18px;background:#f5f7f3;border:1px solid var(--line);padding:12px;color:var(--muted);font-size:12px;font-weight:700;line-height:1.55}.report-text{width:100%;min-height:220px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:12px;color:var(--ink);resize:vertical}.toast{margin-top:10px;color:var(--muted);font-size:12px;font-weight:700}.project-card{cursor:pointer}.project-card:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(31,38,48,.12)}.modal-backdrop{position:fixed;inset:0;background:rgba(20,24,28,.24);display:none;align-items:center;justify-content:flex-end;padding:22px;z-index:20}.modal-backdrop.open{display:flex}.drawer{width:min(620px,100%);max-height:calc(100dvh - 44px);overflow:auto;border-radius:30px;background:rgba(255,255,255,.94);box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.88);padding:22px}.drawer-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.drawer h2{font-size:26px}.drawer-list{display:grid;gap:10px}.drawer-item{border-radius:18px;background:#f7f8f5;border:1px solid var(--line);padding:12px}.drawer-item strong{display:block;margin-bottom:5px}.drawer-item span,.drawer-item p{color:var(--muted);font-size:12px;line-height:1.5}.close-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;cursor:pointer}.prompt-box input{min-width:0}.prompt-box input:focus{outline:2px solid rgba(49,134,246,.24)}
.member-work-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:16px}.member-task-panel,.member-note-list{display:grid;gap:10px}.member-task-card,.member-note-card,.task-board-card{border-radius:20px;background:rgba(255,255,255,.78);border:1px solid var(--line);padding:14px;box-shadow:0 8px 18px rgba(31,38,48,.05)}.member-task-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.member-task-card strong,.member-note-card strong,.task-board-card strong{display:block;font-size:14px}.member-task-card span,.member-note-card span,.task-board-card span{display:block;color:var(--muted);font-size:12px;line-height:1.5;font-weight:680}.task-board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.task-board-card{display:grid;gap:8px}.task-progress{height:8px;border-radius:999px;background:#e8ece8;overflow:hidden}.task-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8fc5ff,#3186f6)}.task-status-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.member-task-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.phase[data-stage-project]{cursor:pointer}.phase[data-stage-project]:hover{filter:saturate(1.05) brightness(1.03);transform:translateY(-1px)}.stage-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stage-check{border-radius:16px;background:#fff;border:1px solid var(--line);padding:10px}.stage-check b{display:block;color:var(--blue-dark);font-size:16px}.stage-check span{display:block;color:var(--muted);font-size:11px;font-weight:700;line-height:1.35}.member-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.summary-card>.member-metrics{grid-column:1/-1}.member-metric{border-radius:20px;background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.86);padding:16px;min-height:118px}.member-metric strong{display:block;font-size:30px;line-height:1;font-weight:830}.member-metric span{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:10px;font-weight:680}
@media(max-width:1180px){.main-grid,.member-layout,.bottom-grid,.member-work-grid{grid-template-columns:1fr}.side-panel{grid-template-columns:1fr 1fr}.auth-page{grid-template-columns:1fr}.security-grid{grid-template-columns:1fr}}@media(max-width:760px){.app{grid-template-columns:1fr}.rail{display:none}.content{padding:10px}.topbar,.planner-head,.calendar-context{align-items:flex-start;flex-direction:column}.side-panel,.summary-card,.member-metrics{grid-template-columns:1fr}.auth-page{padding:10px}.hero,.state-stack{border-radius:24px}.status-card{grid-template-columns:48px minmax(0,1fr)}.status-card .small-button{grid-column:1/-1}.timeline{grid-template-columns:210px repeat(12,50px)}}
.timeline{grid-template-columns:minmax(280px,320px) repeat(12,minmax(72px,1fr));align-items:stretch}.project-card,.grid-cell,.phase,.mini-milestone{min-height:72px}.project-card{align-self:stretch;overflow:hidden}.project-meta{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}.checkpoint{overflow:hidden;text-overflow:ellipsis}.phase{min-width:0}.phase>div:last-child{min-width:0}.phase-title,.phase-sub{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.person{min-height:146px;display:grid;justify-items:center;text-align:center;align-content:center;gap:8px}.person strong,.person span,.task-pill{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person .mini-action{margin-top:2px}.metric{display:flex;flex-direction:column;gap:8px}.metric-list{min-height:86px}.metric .metric-action{align-self:flex-start;margin-top:auto}.roadmap-badge{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;height:28px;padding:0 10px;border-radius:999px;background:#fff3c4;color:#7a5200;font-size:11px;font-weight:850}.roadmap-badge:before{content:"";width:8px;height:8px;border-radius:50%;background:#ffb21a}@media(max-width:1480px){.main-grid,.bottom-grid{grid-template-columns:1fr}.side-panel{grid-template-columns:1fr}.timeline{grid-template-columns:minmax(260px,300px) repeat(12,72px)}}@media(max-width:760px){.timeline{grid-template-columns:minmax(220px,260px) repeat(12,68px)}.people-grid{grid-template-columns:1fr}.side-panel{grid-template-columns:1fr}.summary-card{grid-template-columns:1fr}.task-board-grid{grid-template-columns:1fr}}

/* Dashboard fit pass: the project schedule must be readable without horizontal scrolling. */
.content{align-content:start}
.main-grid{grid-template-columns:minmax(0,1fr) minmax(330px,390px);align-items:start}
.planner{min-height:auto;padding:18px 18px 14px}
.planner-head{margin-bottom:12px}
.planner h1{font-size:clamp(32px,2.6vw,46px)}
.planner-tools{gap:8px}
.tool-btn{height:36px;padding:0 12px}
.calendar-context{min-height:46px;margin-bottom:8px;padding:8px 10px}
.legend-pill{height:26px;padding:0 8px;font-size:10px}
.timeline{
  width:100%;
  grid-template-columns:minmax(168px,210px) repeat(12,minmax(0,1fr));
  gap:4px;
  overflow:visible;
  align-items:stretch;
}
.date-cell,.empty-head{min-height:42px;border-radius:12px}
.date-cell{font-size:10px;line-height:1.1}
.date-cell strong{font-size:16px;margin-top:1px}
.project-card,.grid-cell,.phase,.mini-milestone{min-height:52px;border-radius:13px}
.project-card{grid-template-columns:34px minmax(0,1fr);gap:8px;padding:7px 8px}
.project-icon{width:34px;height:34px;border-radius:12px;font-size:13px}
.project-title{font-size:12px;line-height:1.18}
.project-meta,.checkpoint,.phase-sub,.candidate-meta,.decision-meta{font-size:10px}
.checkpoint{height:18px;padding:0 6px;margin-top:4px}
.phase{padding:7px 8px;gap:6px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 10px 22px rgba(31,38,48,.13)}
.phase .phase-icon{width:26px;height:26px;min-width:26px;border-radius:9px}
.phase .svg{width:14px;height:14px}
.phase-title{font-size:12px;line-height:1.15}
.phase-sub{line-height:1.15}
.today-line{top:42px}
.side-panel{gap:12px}
.assistant-card,.decision-card,.summary-card,.event-card,.people-card,.risk-card{padding:16px}
.ai-head{grid-template-columns:52px minmax(0,1fr);gap:12px}
.ai-head h2{font-size:22px;line-height:1.08}
.orb{width:52px;height:52px}
.flow-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.flow-step{min-height:56px;padding:8px;border-radius:14px}
.flow-step b{font-size:16px}
.flow-step span{font-size:10px;line-height:1.25}
.candidate,.decision-item,.plain-event,.person,.risk-item{padding:10px;border-radius:16px}
.decision-card{min-height:0}
.dashboard-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}
.metric{min-height:118px;padding:13px;border-radius:18px}
.metric strong{font-size:28px}
.metric span{font-size:11px;margin-top:6px}
.metric-list{min-height:54px;margin-top:8px}
.metric-line{min-height:20px;padding:4px 7px;font-size:10px}
.metric .metric-action{min-height:28px;padding:0 10px}
.bottom-grid{grid-template-columns:1fr 1fr 1.35fr;gap:14px}
.event-card,.people-card,.risk-card{min-height:0}
.yellow-event{min-height:96px;margin-top:10px;padding:14px}
.plain-event{margin-top:8px;padding:11px 12px}
.people-grid{margin-top:10px;gap:10px}
.person{min-height:128px}
.risk-list{margin-top:10px;gap:8px}
.risk-item{grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center}
.risk-icon{width:32px;height:32px;border-radius:11px}
.risk-icon .svg{width:15px;height:15px}
.risk-item h3{font-size:12px;line-height:1.25;margin-bottom:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.risk-item p{font-size:10px;line-height:1.3}
.card-head{margin-bottom:12px}
h2{font-size:23px}
@media(max-width:1480px){
  .main-grid{grid-template-columns:minmax(0,1fr) minmax(310px,360px)}
  .timeline{grid-template-columns:minmax(150px,185px) repeat(12,minmax(0,1fr));gap:3px}
  .project-card,.grid-cell,.phase,.mini-milestone{min-height:50px}
  .project-icon{width:30px;height:30px;border-radius:10px}
  .project-card{grid-template-columns:30px minmax(0,1fr);gap:6px}
  .phase{padding:6px 7px}
  .phase .phase-icon{display:none}
  .phase-title{font-size:11px}
  .phase-sub{font-size:9px}
  .bottom-grid{grid-template-columns:1fr 1fr 1.2fr}
}
@media(max-width:1180px){
  .main-grid{grid-template-columns:1fr}
  .side-panel{grid-template-columns:1fr 1fr}
  .assistant-card{grid-column:auto}
  .timeline{grid-template-columns:minmax(150px,190px) repeat(12,minmax(0,1fr))}
  .dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bottom-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .planner{overflow-x:hidden}
  .planner-head,.calendar-context{min-width:0}
  .timeline{min-width:0;grid-template-columns:minmax(126px,150px) repeat(12,minmax(0,1fr));gap:2px}
  .date-cell strong{font-size:13px}
  .date-cell{font-size:9px}
  .project-card{grid-template-columns:1fr}
  .project-icon{display:none}
  .phase{padding:5px 4px}
  .dashboard-summary,.side-panel,.people-grid{grid-template-columns:1fr}
}

/* Spacious dashboard pass: restore the original full-width schedule stage. */
.main-grid{grid-template-columns:1fr}
.planner{padding:24px 28px 22px;border-radius:22px;box-shadow:0 1px 2px rgba(20,22,28,.04), 0 16px 36px -26px rgba(20,22,28,.35)}
.planner-head{margin-bottom:18px}
.planner h1{font-size:clamp(42px,4vw,64px);line-height:.98}
.planner-tools{gap:12px}
.tool-btn{height:42px;padding:0 16px}
.calendar-context{min-height:58px;margin-bottom:14px;padding:12px 14px}
.legend-pill{height:32px;padding:0 12px;font-size:12px}
.timeline{
  grid-template-columns:minmax(260px,300px) repeat(12,minmax(0,1fr));
  gap:7px;
  overflow:visible;
}
.date-cell,.empty-head{min-height:54px;border-radius:16px}
.date-cell{font-size:12px;line-height:1.15}
.date-cell strong{font-size:22px;margin-top:2px}
.project-card,.grid-cell,.phase,.mini-milestone{min-height:72px;border-radius:17px}
.project-card{grid-template-columns:46px minmax(0,1fr);gap:12px;padding:11px 12px}
.project-icon{display:grid;width:46px;height:46px;border-radius:16px;font-size:15px}
.project-title{font-size:15px;line-height:1.2}
.project-meta,.checkpoint{font-size:12px}
.checkpoint{height:24px;padding:0 10px;margin-top:6px}
.phase{padding:12px 14px;gap:11px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 18px 34px rgba(31,38,48,.16)}
.phase{border:0;text-align:left;cursor:pointer}
.phase:focus-visible{outline:3px solid rgba(49,134,246,.24);outline-offset:2px}
.phase .phase-icon{display:grid;width:36px;height:36px;min-width:36px;border-radius:13px}
.phase .svg{width:18px;height:18px}
.phase-title{font-size:15px;line-height:1.18}
.phase-sub{font-size:11px;line-height:1.2}
.today-line{top:54px}
.control-grid{display:grid;grid-template-columns:1.1fr .72fr 1.05fr;gap:20px;align-items:stretch}
.control-grid>.assistant-card,.control-grid>.decision-card,.control-grid>.summary-card{min-width:0}
.assistant-card,.decision-card,.summary-card,.event-card,.people-card,.risk-card{padding:22px;border-radius:32px}
.ai-head{grid-template-columns:72px minmax(0,1fr);gap:18px}
.ai-head h2{font-size:30px;line-height:1.08}
.orb{width:72px;height:72px}
.flow-steps{gap:12px;margin-top:18px}
.flow-step{min-height:86px;padding:15px;border-radius:20px}
.flow-step b{font-size:22px}
.flow-step span{font-size:13px;line-height:1.35}
.candidate,.decision-item,.plain-event,.person,.risk-item{padding:16px;border-radius:20px}
.decision-card{min-height:270px}
.dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.metric{min-height:174px;padding:20px;border-radius:24px}
.metric strong{font-size:42px}
.metric span{font-size:13px;margin-top:10px}
.metric-list{min-height:76px;margin-top:14px}
.metric-line{min-height:26px;padding:6px 10px;font-size:12px}
.metric .metric-action{min-height:34px;padding:0 14px}
.bottom-grid{grid-template-columns:1fr 1fr 1.45fr;gap:20px}
.event-card,.people-card,.risk-card{min-height:520px}
.yellow-event{min-height:132px;margin-top:16px;padding:20px;border-radius:24px}
.plain-event{margin-top:14px;padding:16px 18px}
.people-grid{margin-top:16px;gap:14px}
.person{min-height:180px}
.risk-list{margin-top:16px;gap:14px}
.risk-item{grid-template-columns:42px minmax(0,1fr);gap:14px;align-items:center}
.risk-icon{width:42px;height:42px;border-radius:15px}
.risk-icon .svg{width:19px;height:19px}
.risk-item h3{font-size:14px;line-height:1.3;margin-bottom:5px;-webkit-line-clamp:2}
.risk-item p{font-size:12px;line-height:1.4}
.card-head{margin-bottom:18px}
h2{font-size:17px;font-weight:700;line-height:1.3}
@media(max-width:1480px){
  .planner{padding:22px 24px 20px}
  .timeline{grid-template-columns:minmax(220px,260px) repeat(12,minmax(0,1fr));gap:5px}
  .project-card,.grid-cell,.phase,.mini-milestone{min-height:64px}
  .project-card{grid-template-columns:40px minmax(0,1fr);gap:10px}
  .project-icon{display:grid;width:40px;height:40px;border-radius:14px}
  .phase{padding:10px 11px}
  .phase .phase-icon{display:grid;width:30px;height:30px;min-width:30px}
  .phase-title{font-size:13px}
  .phase-sub{font-size:10px}
  .control-grid{grid-template-columns:1fr .72fr 1.05fr;gap:16px}
  .bottom-grid{grid-template-columns:1fr 1fr 1.35fr;gap:16px}
  .event-card,.people-card,.risk-card{min-height:430px}
}
@media(max-width:1180px){
  .control-grid{grid-template-columns:1fr}
  .dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bottom-grid{grid-template-columns:1fr}
  .event-card,.people-card,.risk-card{min-height:0}
}
@media(max-width:760px){
  .planner{padding:16px 14px}
  .planner h1{font-size:34px}
  .timeline{grid-template-columns:minmax(128px,150px) repeat(12,minmax(0,1fr));gap:2px}
  .project-card,.grid-cell,.phase,.mini-milestone{min-height:52px}
  .project-card{grid-template-columns:1fr}
  .project-icon,.phase .phase-icon{display:none}
  .dashboard-summary{grid-template-columns:1fr}
  .ai-head{grid-template-columns:52px minmax(0,1fr)}
  .orb{width:52px;height:52px}
}

/* React deterministic timeline pass: every project owns one fixed row. */
.timeline{
  grid-auto-flow:row;
  grid-auto-rows:88px;
  overflow:hidden;
  align-items:stretch;
}
.timeline .empty-head,
.timeline .date-cell{
  grid-row:1;
}
.timeline .project-card,
.timeline .grid-cell,
.timeline .mini-milestone,
.timeline .phase{
  width:100%;
  height:100%;
  min-height:88px;
}
.timeline .grid-cell,
.timeline .mini-milestone{
  z-index:0;
}
.timeline .project-card,
.timeline .phase{
  position:relative;
  z-index:2;
}
.timeline .phase{
  grid-column:auto;
  display:flex;
  min-width:0;
  max-width:100%;
  justify-content:flex-start;
}
.timeline .phase>span:last-child{
  min-width:0;
}
.timeline .phase-title,
.timeline .phase-sub{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:1480px){
  .timeline{grid-auto-rows:78px}
  .timeline .project-card,
  .timeline .grid-cell,
  .timeline .mini-milestone,
  .timeline .phase{min-height:78px}
}
@media(max-width:760px){
  .timeline{grid-auto-rows:52px}
  .timeline .project-card,
  .timeline .grid-cell,
  .timeline .mini-milestone,
  .timeline .phase{min-height:52px}
}

/* Visual convergence pass: keep the spacious prototype structure, but make it stable and responsive. */
.content{
  max-width:1460px;
  margin:0 auto;
  padding:26px 30px 52px;
  gap:18px;
}
.topbar{
  min-height:78px;
  border-radius:26px;
  padding:12px 20px;
}
.main-grid{
  display:block;
}
.planner{
  padding:24px 28px 22px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 1px 2px rgba(20,22,28,.04), 0 16px 36px -26px rgba(20,22,28,.35);
}
.planner-head{
  align-items:flex-start;
  margin-bottom:26px;
}
.kicker{
  font-size:15px;
  letter-spacing:0;
}
.planner h1{
  font-size:clamp(50px,4.6vw,76px);
  line-height:.95;
  letter-spacing:0;
}
.planner-tools{
  padding-top:2px;
}
.tool-btn{
  min-height:44px;
  padding:0 17px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  box-shadow:0 12px 26px rgba(31,38,48,.07);
}
.calendar-context{
  margin-bottom:18px;
  padding:0;
  min-height:42px;
  background:transparent;
  border:0;
}
.week-title strong{
  font-size:17px;
}
.week-title span{
  font-size:13px;
}
.calendar-side{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.scroll-hint{
  height:30px;
  padding:0 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  background:#eef3ef;
  color:#606a73;
  font-size:12px;
  font-weight:760;
}
.legend-pill{
  height:32px;
  padding:0 12px;
  font-size:12px;
  background:rgba(255,255,255,.86);
}
.timeline{
  width:100%;
  grid-template-columns:minmax(340px,390px) repeat(12,minmax(0,1fr));
  gap:8px;
  grid-auto-rows:86px;
  max-height:432px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  scrollbar-width:thin;
}
.date-cell,
.empty-head{
  min-height:56px;
}
.date-cell{
  border-radius:18px;
  background:rgba(255,255,255,.62);
}
.date-cell strong{
  font-size:23px;
}
.timeline .project-card,
.timeline .grid-cell,
.timeline .mini-milestone,
.timeline .phase{
  min-height:86px;
  border-radius:18px;
}
.timeline .project-card{
  grid-template-columns:50px minmax(0,1fr);
  gap:13px;
  padding:12px 14px;
  background:rgba(255,255,255,.92);
  align-content:center;
}
.project-icon{
  width:50px;
  height:50px;
  border-radius:17px;
}
.project-copy{
  min-width:0;
}
.project-title-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.project-title{
  font-size:15px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.project-meta{
  font-size:12px;
  color:#68737d;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.checkpoint{
  font-size:12px;
  height:25px;
  margin-top:7px;
  width:fit-content;
  max-width:100%;
  overflow:visible;
  text-overflow:clip;
}
.risk-chip{
  height:22px;
  padding:0 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:#eef3ef;
  color:#53606a;
  font-size:11px;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
}
.risk-chip.warn{
  background:#fff4d4;
  color:#7a5400;
}
.risk-chip.red{
  background:#ffe5e2;
  color:#9c2b23;
}
.status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#20bf75;
}
.risk-chip.warn .status-dot{
  background:#ffb31e;
}
.risk-chip.red .status-dot{
  background:#e35b4f;
}
.timeline .phase{
  padding:13px 15px;
  gap:12px;
}
.timeline .phase .phase-icon{
  display:grid;
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:13px;
}
.phase-title{
  font-size:15px;
  line-height:1.18;
}
.phase-sub{
  font-size:11px;
}
.today-line{
  top:56px;
}
.control-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);
  gap:18px;
  align-items:stretch;
}
.control-grid>.assistant-card,
.control-grid>.decision-card{
  min-width:0;
}
.summary-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  gap:18px;
  align-items:stretch;
}
.risk-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
  gap:18px;
  align-items:stretch;
}
.assistant-card,
.decision-card,
.summary-card,
.event-card,
.people-card,
.risk-card{
  border-radius:18px;
  padding:22px;
  background:#fff;
  box-shadow:0 1px 2px rgba(20,22,28,.04), 0 16px 36px -26px rgba(20,22,28,.35);
}
.ai-head{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:16px;
}
.ai-head h2{
  font-size:17px;
  font-weight:700;
}
.orb{
  width:42px;
  height:42px;
  border-radius:12px;
}
.flow-steps{
  gap:12px;
  margin-top:18px;
}
.flow-step{
  min-height:88px;
  border-radius:20px;
  padding:16px;
}
.candidate,
.decision-item,
.plain-event,
.risk-item{
  border-radius:13px;
  padding:14px 15px;
}
.decision-card{
  min-height:270px;
}
.dashboard-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.metric{
  min-height:176px;
  border-radius:24px;
  padding:20px;
}
.metric strong{
  font-size:42px;
}
.metric-list{
  min-height:76px;
}
.bottom-grid{
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}
.event-card,
.people-card,
.risk-card{
  min-height:500px;
}
.yellow-event{
  min-height:132px;
  border-radius:24px;
}
.people-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.person{
  min-height:140px;
  align-content:start;
  justify-items:stretch;
  text-align:left;
  gap:10px;
  border-radius:12px;
  background:#fff;
  border:1px solid #eceae6;
  padding:12px;
}
.risk-list{
  gap:12px;
}
.risk-item{
  border-radius:11px;
  padding:13px 15px;
  background:#fff;
  border:1px solid #eceae6;
  border-left:3px solid #e5484d;
  grid-template-columns:minmax(0,1fr);
  gap:0;
}

@media(max-width:1440px){
  .content{padding:18px 22px 26px}
  .planner{padding:26px 28px 24px}
  .planner h1{font-size:clamp(44px,4vw,62px)}
  .timeline{
    grid-template-columns:minmax(300px,340px) repeat(12,minmax(0,1fr));
    gap:6px;
    grid-auto-rows:78px;
    max-height:396px;
  }
  .timeline .project-card,
  .timeline .grid-cell,
  .timeline .mini-milestone,
  .timeline .phase{min-height:78px}
  .timeline .project-card{grid-template-columns:42px minmax(0,1fr);gap:10px}
  .project-icon{width:42px;height:42px;border-radius:15px}
  .phase-title{font-size:13px}
  .timeline .phase{padding:10px 12px}
  .control-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:16px;
  }
  .summary-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:16px;
  }
  .risk-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:16px;
  }
  .bottom-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr)}
  .event-card,.people-card,.risk-card{min-height:430px}
}

@media(max-width:1180px){
  .topbar{
    height:auto;
    align-items:flex-start;
    flex-direction:column;
  }
  .top-actions{
    width:100%;
    justify-content:flex-start;
  }
  .planner{
    padding:24px;
  }
  .planner-head{
    flex-direction:column;
    gap:14px;
  }
  .planner-tools{
    justify-content:flex-start;
  }
  .calendar-context{
    align-items:flex-start;
    flex-direction:column;
  }
  .calendar-side{
    justify-content:flex-start;
  }
  .timeline{
    grid-template-columns:minmax(260px,300px) repeat(12,minmax(0,1fr));
    gap:5px;
    grid-auto-rows:72px;
    max-height:370px;
  }
  .timeline .project-card,
  .timeline .grid-cell,
  .timeline .mini-milestone,
  .timeline .phase{min-height:72px}
  .date-cell strong{font-size:18px}
  .phase .phase-icon{display:none}
  .control-grid{
    grid-template-columns:1fr;
  }
  .summary-grid{
    grid-template-columns:1fr;
  }
  .risk-grid{
    grid-template-columns:1fr;
  }
  .dashboard-summary{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .metric{
    min-height:150px;
  }
  .bottom-grid{
    grid-template-columns:1fr;
  }
  .event-card,
  .people-card,
  .risk-card{
    min-height:0;
  }
}

@media(max-width:760px){
  html,
  body{
    overflow-x:hidden;
  }
  .content{
    padding:12px;
    gap:12px;
    overflow:hidden;
  }
  .stage,
  .app,
  .content,
  .topbar,
  .planner,
  .timeline{
    width:100%;
    max-width:100vw;
    min-width:0;
  }
  .topbar,
  .planner,
  .assistant-card,
  .decision-card,
  .summary-card,
  .event-card,
  .people-card,
  .risk-card{
    border-radius:24px;
  }
  .nav-pills,
  .top-actions{
    width:100%;
    min-width:0;
  }
  .nav-pills{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .nav-pill{
    min-height:40px;
    padding:0 12px;
    justify-content:center;
    min-width:0;
  }
  .nav-pill.search{
    width:100%;
    justify-self:stretch;
  }
  .top-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .identity-chip{
    width:100%;
    min-width:0;
  }
  .identity-chip strong,
  .identity-chip span{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .avatar-stack{
    display:none;
  }
  .action-pill{
    min-height:40px;
    padding:0 12px;
    min-width:0;
    width:100%;
    justify-content:center;
  }
  .planner{
    padding:18px 14px;
    overflow:hidden;
  }
  .planner h1{
    font-size:38px;
  }
  .planner-tools{
    width:100%;
  }
  .tool-btn{
    min-height:38px;
    padding:0 12px;
  }
  .calendar-legend{
    justify-content:flex-start;
  }
  .timeline{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    grid-auto-rows:auto;
    overflow:visible;
  }
  .timeline .empty-head,
  .timeline .date-cell,
  .timeline .grid-cell,
  .timeline .mini-milestone,
  .today-line{
    display:none;
  }
  .timeline .project-card,
  .timeline .phase{
    grid-column:auto !important;
    grid-row:auto !important;
    min-height:64px;
    height:auto;
    min-width:0;
    width:auto;
    justify-self:stretch;
    border-radius:18px;
  }
  .timeline .project-card{
    grid-column:1 / -1 !important;
    grid-template-columns:40px minmax(0,1fr);
  }
  .project-title-row{
    grid-template-columns:1fr;
    gap:5px;
  }
  .project-title{
    white-space:normal;
  }
  .risk-chip{
    justify-self:start;
  }
  .project-icon{
    display:grid;
    width:40px;
    height:40px;
  }
  .timeline .phase{
    padding:12px;
    max-width:calc(100vw - 52px);
    overflow:hidden;
    box-sizing:border-box;
  }
  .timeline .phase>span:last-child{
    min-width:0;
    overflow:hidden;
  }
  .phase-title{
    font-size:13px;
  }
  .phase-sub{
    font-size:11px;
  }
  .control-grid,
  .dashboard-summary,
  .people-grid{
    grid-template-columns:1fr;
  }
  .ai-head{
    grid-template-columns:54px minmax(0,1fr);
  }
  .orb{
    width:54px;
    height:54px;
  }
  .ai-head h2,
  h2{
    font-size:16px;
  }
  .flow-steps{
    grid-template-columns:1fr;
  }
  .metric{
    min-height:132px;
  }
}

.person .avatar{
  justify-self:center;
}
.person strong{
  text-align:center;
}
.person-role{
  text-align:center;
  color:#606a73;
  font-size:12px;
  font-weight:760;
}
.load-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
}
.load-stats span{
  min-height:44px;
  border-radius:14px;
  background:#f4f7f4;
  display:grid;
  place-items:center;
  color:#606a73;
  font-size:11px;
  font-weight:780;
  text-align:center;
}
.load-stats b{
  color:#17191d;
  font-size:16px;
  line-height:1;
}
.load-stats .warn{
  color:#7a5400;
  background:#fff4d4;
}
.person-task{
  min-height:34px;
  border-radius:14px;
  padding:8px 10px;
  background:#fff;
  border:1px solid rgba(27,32,37,.08);
  color:#606a73;
  font-size:11px;
  line-height:1.35;
  font-weight:720;
  white-space:normal;
}

/* Calendar usability pass: dynamic today window, visible daily inspection, source clarity. */
.daily-inspection{
  margin:0 0 14px;
  padding:12px;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.86);
  display:grid;
  grid-template-columns:minmax(260px,.9fr) minmax(0,1.35fr) auto;
  gap:12px;
  align-items:center;
}
.inspection-lead{
  min-width:0;
  display:grid;
  gap:3px;
}
.inspection-date{
  width:max-content;
  max-width:100%;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  background:#dfeeff;
  color:#1d5fd0;
  font-size:12px;
  font-weight:850;
}
.inspection-lead strong{
  font-size:18px;
  line-height:1.1;
}
.inspection-lead span:last-child{
  color:#606a73;
  font-size:12px;
  line-height:1.45;
  font-weight:680;
}
.inspection-items{
  min-width:0;
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:2px;
}
.inspection-item{
  min-width:210px;
  max-width:280px;
  min-height:92px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 18px rgba(31,38,48,.05);
  padding:10px 12px;
  text-align:left;
  display:grid;
  gap:4px;
  cursor:pointer;
}
.inspection-item.warn{
  background:linear-gradient(180deg,#fff,#fff8e5);
  border-color:rgba(255,179,30,.28);
}
.inspection-item.red{
  background:linear-gradient(180deg,#fff,#fff0ee);
  border-color:rgba(227,91,79,.3);
}
.inspection-item b{
  color:#1d5fd0;
  font-size:11px;
  line-height:1;
}
.inspection-item.warn b{color:#8a5d00}
.inspection-item.red b{color:#a33128}
.inspection-item strong{
  min-width:0;
  color:#17191d;
  font-size:13px;
  line-height:1.25;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.inspection-item span{
  color:#606a73;
  font-size:11px;
  line-height:1.35;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.inspection-empty{
  min-height:52px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--line);
  color:#606a73;
  padding:12px;
  display:flex;
  align-items:center;
  font-size:12px;
  font-weight:720;
}
.timeline .grid-cell.today-col,
.timeline .mini-milestone.today-col{
  background:rgba(49,134,246,.08);
  border-color:rgba(49,134,246,.22);
  box-shadow:inset 0 0 0 1px rgba(49,134,246,.08);
}
.today-line{
  display:none;
}
@media(max-width:1180px){
  .daily-inspection{
    grid-template-columns:1fr;
  }
  .inspection-items{
    overflow:auto;
    padding-bottom:2px;
  }
}
@media(max-width:760px){
  .daily-inspection{
    padding:10px;
    border-radius:18px;
  }
  .inspection-item{
    min-width:220px;
  }
}

.project-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.detail-kpi{
  min-width:0;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(27,32,37,.08);
  padding:14px;
  display:grid;
  gap:5px;
}
.detail-kpi span{
  color:#606a73;
  font-size:11px;
  font-weight:760;
}
.detail-kpi strong{
  margin:0;
  color:#17191d;
  font-size:18px;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.detail-kpi em{
  color:#606a73;
  font-size:11px;
  font-style:normal;
  font-weight:720;
}
.detail-section{
  display:grid;
  gap:9px;
}
.detail-list{
  display:grid;
  gap:7px;
}
.detail-list span{
  min-height:34px;
  border-radius:13px;
  background:#fff;
  border:1px solid rgba(27,32,37,.08);
  padding:9px 10px;
  color:#4f5a64;
  font-size:12px;
  line-height:1.35;
  font-weight:720;
}
.detail-list.compact{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media(max-width:760px){
  .project-detail-grid,
  .detail-list.compact{
    grid-template-columns:1fr;
  }
}

/* ===== OVERLAY / MODAL / DRAWER ===== */

.overlay-backdrop{
  position:fixed;
  inset:0;
  background:rgba(20,22,28,.42);
  z-index:60;
  display:flex;
  justify-content:flex-end;
}

/* ===== PROJECT DETAIL DRAWER (560px slide-over) ===== */

.drawer-panel{
  width:560px;
  max-width:94vw;
  height:100%;
  background:#f4f3f1;
  overflow-y:auto;
  box-shadow:-24px 0 70px -34px rgba(20,22,28,.6);
}
.drawer-header{
  padding:22px 24px 20px;
  background:#fff;
  border-bottom:1px solid #eceae6;
  position:sticky;
  top:0;
  z-index:2;
}
.drawer-header-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.drawer-base-tag{
  width:44px;
  height:44px;
  border-radius:11px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:13px;
}
.drawer-title{
  font-size:16px;
  font-weight:700;
  color:#1d2026;
  line-height:1.3;
}
.drawer-subtitle{
  font-size:12.5px;
  color:#8a8a84;
  margin-top:3px;
}
.drawer-close{
  width:32px;
  height:32px;
  flex:none;
  border:1px solid #e4e3df;
  border-radius:9px;
  background:#fff;
  color:#8a8a84;
  font-size:15px;
  cursor:pointer;
  font-family:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
}
.drawer-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.drawer-chip{
  font-size:11.5px;
  font-weight:600;
  padding:4px 10px;
  border-radius:7px;
}
.drawer-chip.neutral{
  color:#6c6c66;
  background:#f4f4f1;
}
.drawer-progress{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:14px;
}
.drawer-progress-bar{
  flex:1;
  height:7px;
  border-radius:99px;
  background:#eceae6;
  overflow:hidden;
}
.drawer-progress-bar>div{
  height:100%;
  border-radius:99px;
  background:#1d2026;
}
.drawer-progress-label{
  font-size:12px;
  font-weight:600;
  color:#1d2026;
  font-variant-numeric:tabular-nums;
}
.drawer-actions{
  display:flex;
  gap:9px;
  margin-top:16px;
}
.drawer-body{
  padding:20px 24px 28px;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.drawer-section-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  color:#9a9a95;
  text-transform:uppercase;
  margin-bottom:11px;
}
.drawer-milestone-box{
  background:#fff;
  border:1px solid #eceae6;
  border-radius:13px;
  padding:6px 16px;
}
.drawer-milestone-row{
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 0;
}
.drawer-milestone-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  flex:none;
}
.drawer-milestone-date{
  font-size:12px;
  font-weight:600;
  color:#1d2026;
  font-variant-numeric:tabular-nums;
  width:44px;
  flex:none;
}
.drawer-milestone-title{
  font-size:13px;
  color:#3a3a34;
}
.drawer-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.drawer-list-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid #eceae6;
  border-radius:11px;
  padding:12px 15px;
}
.drawer-list-item-name{
  font-size:13.5px;
  font-weight:600;
  color:#1d2026;
}
.drawer-list-item-meta{
  font-size:11.5px;
  color:#a3a39d;
  margin-top:3px;
}
.drawer-risk{
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:11px;
  padding:12px 15px;
}
.drawer-risk-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  flex:none;
}
.drawer-members{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.drawer-member-pill{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #eceae6;
  border-radius:99px;
  padding:5px 13px 5px 5px;
}
.drawer-member-avatar{
  width:26px;
  height:26px;
  border-radius:50%;
  flex:none;
  background:#f1f1ee;
  color:#5a5a54;
  font-weight:700;
  font-size:11px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.drawer-member-name{
  font-size:12.5px;
  font-weight:600;
  color:#1d2026;
}
.drawer-no-risk{
  background:#fff;
  border:1px dashed #e0dfdb;
  border-radius:11px;
  padding:16px;
  text-align:center;
  font-size:13px;
  color:#16a34a;
}

/* ===== AI ASSIGN MODAL ===== */

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(20,22,28,.42);
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.modal-panel{
  width:460px;
  max-width:94vw;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 40px 80px -30px rgba(20,22,28,.55);
}
.modal-header{
  padding:20px 22px;
  border-bottom:1px solid #eceae6;
  display:flex;
  align-items:center;
  gap:11px;
}
.modal-header-title{
  font-size:16px;
  font-weight:700;
  color:#1d2026;
}
.modal-header-sub{
  font-size:12px;
  color:#a3a39d;
  margin-top:2px;
}
.modal-close{
  width:30px;
  height:30px;
  flex:none;
  border:1px solid #e4e3df;
  border-radius:8px;
  background:#fff;
  color:#8a8a84;
  font-size:14px;
  cursor:pointer;
  font-family:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal-body{
  padding:20px 22px;
  display:flex;
  flex-direction:column;
  gap:15px;
}
.modal-field-label{
  font-size:11.5px;
  font-weight:600;
  color:#9a9a95;
  margin-bottom:6px;
}
.modal-field{
  height:40px;
  border:1px solid #e4e3df;
  border-radius:10px;
  display:flex;
  align-items:center;
  padding:0 13px;
  font-size:13.5px;
  color:#1d2026;
  background:#fafafa;
}
.modal-footer{
  padding:16px 22px;
  border-top:1px solid #eceae6;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}
.modal-btn{
  height:38px;
  padding:0 18px;
  border-radius:9px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  display:inline-flex;
  align-items:center;
}
.modal-btn.secondary{
  border:1px solid #e4e3df;
  background:#fff;
  color:#5a5a54;
}
.modal-btn.primary{
  border:none;
  background:#1d2026;
  color:#fff;
  padding:0 20px;
}

/* ===== DECISION MODAL ===== */

.decision-options{
  display:flex;
  flex-direction:column;
  gap:13px;
}
.decision-radio{
  display:flex;
  align-items:center;
  gap:11px;
  border:1.5px solid #e4e3df;
  border-radius:11px;
  padding:13px 15px;
  cursor:pointer;
  transition:border-color 120ms ease, background 120ms ease;
}
.decision-radio.selected{
  border-color:#2f6feb;
  background:#eef3fe;
}
.decision-radio-dot{
  width:16px;
  height:16px;
  border-radius:50%;
  border:1.5px solid #c9c8c2;
  flex:none;
  transition:border-width 120ms ease, border-color 120ms ease;
}
.decision-radio.selected .decision-radio-dot{
  border:5px solid #2f6feb;
}
.decision-radio-label{
  font-size:13.5px;
  color:#3a3a34;
}
.decision-radio.selected .decision-radio-label{
  font-weight:600;
  color:#1d2026;
}
.decision-textarea{
  width:100%;
  min-height:64px;
  border:1px solid #e4e3df;
  border-radius:10px;
  padding:11px 13px;
  font-size:13px;
  font-family:inherit;
  color:#1d2026;
  resize:none;
  background:#fafafa;
}

/* ===== ORB icon (AI icon) ===== */
.orb-icon-sm{
  width:34px;
  height:34px;
  border-radius:10px;
  flex:none;
  background:linear-gradient(150deg,#3f7bf0,#7b5cf0);
  display:flex;
  align-items:center;
  justify-content:center;
}
.orb-icon-sm::after{
  content:"";
  width:13px;
  height:13px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
}

/* ===== Status chips ===== */
.status-chip{
  font-size:11px;
  font-weight:600;
  padding:3px 9px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
}
.status-chip.active{
  color:#2f6feb;
  background:#eef3fe;
}
.status-chip.pending{
  color:#d9920a;
  background:#fdf4e3;
}
.status-chip.done{
  color:#16a34a;
  background:#e9f6ee;
}
.status-chip.todo{
  color:#8a8a84;
  background:#f1f1ee;
}

/* ===== Project overview filter chips ===== */
.filter-chips{
  display:flex;
  gap:6px;
}
.filter-chip{
  display:flex;
  align-items:center;
  gap:5px;
  padding:6px 11px;
  border-radius:9px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  background:#fff;
  color:#5a5a54;
  border:1px solid #e4e3df;
  transition:background 120ms ease, color 120ms ease;
}
.filter-chip.active{
  background:#1d2026;
  color:#fff;
  border-color:#1d2026;
}

/* ===== Risk due chip ===== */
.risk-due-chip{
  flex:none;
  font-size:11px;
  font-weight:600;
  padding:3px 9px;
  border-radius:7px;
}
.risk-due-chip.red{
  background:#fdecec;
  color:#c0353a;
}
.risk-due-chip.yellow{
  background:#fdf4e3;
  color:#b8730a;
}

/* ===== Timeline checkpoint dots ===== */
.checkpoint-timeline{
  display:flex;
  flex-direction:column;
}
.checkpoint-row{
  display:flex;
  gap:13px;
}
.checkpoint-dot-col{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.checkpoint-dot{
  width:11px;
  height:11px;
  border-radius:50%;
  margin-top:3px;
  flex:none;
}
.checkpoint-line{
  flex:1;
  width:2px;
  background:#eceae6;
  min-height:16px;
}
.checkpoint-date{
  font-size:12px;
  font-weight:600;
  color:#1d2026;
  font-variant-numeric:tabular-nums;
}
.checkpoint-title{
  font-size:13.5px;
  color:#3a3a34;
  margin-top:3px;
}
.checkpoint-project{
  font-size:11.5px;
  color:#a3a39d;
  margin-top:3px;
}
.checkpoint-item{
  padding-bottom:18px;
}

/* ===== Project Overview ===== */
.project-overview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-overview-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #eceae6;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.project-overview-row:hover {
  border-color: #d8d6d0;
  background: #fafafa;
}
.project-overview-info {
  flex: 1;
  min-width: 0;
}
.project-overview-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-overview-title strong {
  font-size: 15px;
  font-weight: 600;
}
.project-overview-meta {
  font-size: 12.5px;
  color: #6c6c66;
  margin-top: 2px;
}
.project-overview-note {
  font-size: 12px;
  margin-top: 2px;
}
.project-overview-note.warn { color: #b8730a; }
.project-overview-note.red { color: #e5484d; }
.project-overview-right {
  flex: none;
  width: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.status-dot.ok { background: #16a34a; }
.status-dot.warn { background: #d9920a; }
.status-dot.red { background: #e5484d; }

/* ===== Checkpoint Card ===== */
.checkpoint-card {
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(20,22,28,.05);
  box-shadow: var(--shadow-card);
  padding: 22px;
  overflow: hidden;
}

/* ===== 设计稿样式 - 按README像素级对齐 ===== */

/* 页面外层 */
.stage {
  min-height: 100vh;
  background: #edecea;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #1d2026;
}

/* 内容容器 */
.content {
  max-width: 1460px;
  margin: 0 auto;
  padding: 26px 30px 52px;
}

/* 卡片通用样式 */
.assistant-card,
.decision-card,
.summary-card,
.people-card,
.risk-card,
.checkpoint-card {
  background: #fff;
  border: 1px solid rgba(20,22,28,.05);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(20,22,28,.04), 0 16px 36px -26px rgba(20,22,28,.35);
}

/* 日历Hero */
.calendar-hero {
  background: #fff;
  border-radius: 22px;
  padding: 24px 28px 18px;
  box-shadow: 0 1px 2px rgba(20,22,28,.04), 0 20px 44px -28px rgba(20,22,28,.35);
  margin-bottom: 18px;
}

.calendar-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.calendar-hero-title .kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9a9a95;
  margin-bottom: 8px;
  display: block;
}

.calendar-hero-title h1 {
  margin: 0;
  font: 700 22px/1.2 'Space Grotesk', -apple-system, 'PingFang SC', sans-serif;
  color: #1d2026;
}

.calendar-hero-subtitle {
  font-size: 12.5px;
  color: #6c6c66;
  margin-top: 6px;
}

.calendar-hero-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11.5px;
  color: #6c6c66;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-diamond {
  width: 10px;
  height: 10px;
  background: #e8b339;
  transform: rotate(45deg);
  border-radius: 2px;
}

.legend-circle {
  width: 11px;
  height: 11px;
  border: 2px solid #2f6feb;
  border-radius: 50%;
}

.legend-dot.red {
  width: 9px;
  height: 9px;
  background: #f0595d;
  border-radius: 50%;
}

.calendar-hero-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(20,22,28,.07);
}

.inspection-chip {
  padding: 6px 12px;
  background: #eef3fe;
  color: #2f6feb;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
}

.inspection-text {
  font-size: 12.5px;
  color: #8a8a84;
}

/* AI候选台 */
.ai-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.ai-head .orb {
  width: 42px;
  height: 42px;
  background: linear-gradient(150deg, #3f7bf0, #7b5cf0);
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
}

.ai-head .orb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}

.ai-head h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.ai-head p {
  font-size: 13px;
  color: #6c6c66;
  margin: 0;
}

.flow-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.flow-step {
  flex: 1;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #eceae6;
  border-radius: 11px;
  font-size: 13px;
  color: #6c6c66;
}

.flow-step b {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #2f6feb;
  margin-right: 8px;
}

/* 候选卡 */
.candidate {
  background: #fff;
  border: 1px solid rgba(20,22,28,.06);
  border-radius: 13px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.candidate-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.candidate-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2026;
  flex: 1;
  margin-right: 12px;
}

.confidence-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  flex-shrink: 0;
}

.confidence-chip.high {
  background: rgba(22,163,74,.1);
  color: #16a34a;
}

.confidence-chip.medium {
  background: rgba(217,146,10,.1);
  color: #d9920a;
}

.confidence-chip.low {
  background: rgba(229,72,77,.1);
  color: #e5484d;
}

.candidate-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.info-chip {
  font-size: 12px;
  color: #6c6c66;
  padding: 6px 12px;
  background: #f4f4f1;
  border-radius: 7px;
}

.candidate-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(20,22,28,.06);
}

.candidate-source {
  font-size: 12px;
  color: #9a9a95;
}

.candidate-buttons {
  display: flex;
  gap: 12px;
}

/* 待确认 */
.decision-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.count-badge {
  padding: 4px 10px;
  background: #fdf4e3;
  color: #b8730a;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
}

.decision-item {
  background: #fffdf7;
  border: 1px solid #f0e6cf;
  border-radius: 13px;
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.decision-item:hover {
  background: #fff9f0;
  border-color: #e8d9c0;
}

.decision-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2026;
  margin-bottom: 4px;
}

.decision-meta {
  font-size: 12px;
  color: #6c6c66;
}

/* 项目总览 */
.summary-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.filter-chips {
  display: flex;
  gap: 8px;
}

.filter-chip {
  padding: 6px 12px;
  background: #fff;
  color: #5a5a54;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e4e3df;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: #1d2026;
  color: #fff;
  border-color: #1d2026;
}

.filter-chip:hover:not(.active) {
  background: #f8f9fa;
  border-color: #d0d0d0;
}

.project-overview-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(20,22,28,.06);
  border-radius: 13px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-overview-row:hover {
  background: #fafafa;
  border-color: rgba(20,22,28,.12);
}

.project-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.project-icon.secure {
  background: #eef3fe;
  color: #2f6feb;
}

.project-icon.med {
  background: #f1ecfe;
  color: #7c3aed;
}

.project-icon.pipe {
  background: #e4f4f8;
  color: #0e8aa6;
}

.project-icon.risk {
  background: #eef1f5;
  color: #5b6675;
}

.project-overview-info {
  flex: 1;
  min-width: 0;
}

.project-overview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.project-overview-title strong {
  font-size: 15px;
  font-weight: 600;
}

.project-overview-meta {
  font-size: 12.5px;
  color: #6c6c66;
}

.project-overview-note {
  font-size: 12px;
  margin-top: 6px;
}

.project-overview-note.warn {
  color: #b8730a;
}

.project-overview-note.red {
  color: #e5484d;
}

.project-overview-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  width: 118px;
}

.status-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
}

.status-chip.active {
  background: #fdecec;
  color: #c0353a;
}

.status-chip.pending {
  background: #fdf4e3;
  color: #b8730a;
}

.status-chip.done {
  background: #e9f6ee;
  color: #16a34a;
}

/* 团队负载 */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.person {
  background: #fff;
  border: 1px solid rgba(20,22,28,.06);
  border-radius: 13px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.person:hover {
  background: #fafafa;
  border-color: rgba(20,22,28,.12);
}

.person .avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.person strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.person-role {
  font-size: 11px;
  color: #9a9a95;
  margin-bottom: 12px;
  display: block;
}

.load-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #6c6c66;
}

.load-stats b {
  font-weight: 600;
  margin-right: 4px;
}

.load-stats .warn {
  color: #e5484d;
}

.person-task {
  font-size: 12px;
  color: #9a9a95;
  margin-bottom: 12px;
  display: block;
}

/* 风险与阻塞 */
.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(20,22,28,.06);
  border-radius: 13px;
  margin-bottom: 12px;
  border-left: 3px solid #e5484d;
}

.risk-item .risk-icon {
  width: 32px;
  height: 32px;
  background: #fdecec;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.risk-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

.risk-item p {
  font-size: 12px;
  color: #6c6c66;
  margin: 0;
}

/* 本周检查点 */
.checkpoint-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkpoint-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20,22,28,.06);
}

.checkpoint-item:last-child {
  border-bottom: none;
}

.checkpoint-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 12px;
  flex-shrink: 0;
}

.checkpoint-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.checkpoint-line {
  width: 2px;
  flex: 1;
  background: #eceae6;
  margin-top: 4px;
}

.checkpoint-date {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #1d2026;
  margin-bottom: 4px;
}

.checkpoint-title {
  font-size: 13px;
  font-weight: 600;
  color: #1d2026;
  margin-bottom: 2px;
}

.checkpoint-project {
  font-size: 12px;
  color: #6c6c66;
}

/* 项目详情抽屉 */
.drawer {
  width: 560px;
  max-width: 94vw;
  height: 100vh;
  background: #f4f3f1;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
  box-shadow: -24px 0 70px -34px rgba(20,22,28,.6);
}

.drawer-head {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(20,22,28,.06);
  z-index: 10;
}

.drawer-head .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(20,22,28,.12);
  background: #fff;
  color: #1d2026;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-head .kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9a9a95;
  margin-bottom: 8px;
  display: block;
}

.drawer-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.drawer-list {
  padding: 24px 28px;
}

.drawer-item {
  margin-bottom: 20px;
}

.drawer-item strong {
  font-size: 13px;
  font-weight: 600;
  color: #1d2026;
  display: block;
  margin-bottom: 8px;
}

.drawer-item span {
  font-size: 13px;
  color: #6c6c66;
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-form input,
.drawer-form textarea {
  padding: 12px 16px;
  border: 1px solid #e4e3df;
  border-radius: 11px;
  font-size: 13px;
  color: #1d2026;
  background: #fff;
}

.drawer-form input:focus,
.drawer-form textarea:focus {
  outline: none;
  border-color: #2f6feb;
  box-shadow: 0 0 0 3px rgba(47,111,235,.12);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* 按钮样式 */
.mini-action {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #1d2026;
  background: #1d2026;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-action:hover {
  background: #333;
  border-color: #333;
}

.mini-action.secondary {
  background: #fff;
  color: #1d2026;
  border-color: #e4e3df;
}

.mini-action.secondary:hover {
  background: #f8f9fa;
  border-color: #d0d0d0;
}

/* 空状态 */
.empty-state {
  font-size: 13px;
  color: #9a9a95;
  text-align: center;
  padding: 20px;
  background: rgba(20,22,28,.02);
  border-radius: 11px;
  border: 1px dashed rgba(20,22,28,.12);
}

/* 响应式布局 */
@media (max-width: 1180px) {
  .middle-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  
  .people-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .content {
    padding: 16px;
  }
  
  .calendar-hero {
    padding: 16px;
  }
  
  .flow-steps {
    flex-direction: column;
  }
  
  .filter-chips {
    flex-wrap: wrap;
  }
  
  .project-overview-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .project-overview-right {
    width: 100%;
    align-items: flex-start;
    }
  }

  /* 弹窗样式 */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20,22,28,.42);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 40px 80px -30px rgba(20,22,28,.55);
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(20,22,28,.06);
  }

  .modal-head h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
  }

  .modal-head .close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(20,22,28,.12);
    background: #fff;
    color: #1d2026;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-body {
    padding: 24px 28px;
  }

  /* AI分配弹窗 */
  .assign-candidate {
    background: #fafafa;
    border: 1px solid #eceae6;
    border-radius: 13px;
    padding: 16px 20px;
    margin-bottom: 20px;
  }

  .assign-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2026;
    margin-bottom: 12px;
  }

  .assign-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6c6c66;
  }

  .assign-source {
    font-size: 12px;
    color: #9a9a95;
  }

  .assign-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }

  /* 决策弹窗 */
  .decision-task {
    background: #fafafa;
    border: 1px solid #eceae6;
    border-radius: 13px;
    padding: 16px 20px;
    margin-bottom: 20px;
  }

  .decision-task-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2026;
    margin-bottom: 8px;
  }

  .decision-task-meta {
    font-size: 12px;
    color: #6c6c66;
  }

  .decision-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  .decision-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e4e3df;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .decision-option:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
  }

  .decision-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2f6feb;
  }

  .decision-option span {
    font-size: 14px;
    font-weight: 500;
    color: #1d2026;
  }

  .decision-note {
    margin-bottom: 20px;
  }

  .decision-note textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e4e3df;
    border-radius: 11px;
    font-size: 13px;
    color: #1d2026;
    background: #fff;
    resize: vertical;
    min-height: 80px;
  }

  .decision-note textarea:focus {
    outline: none;
    border-color: #2f6feb;
    box-shadow: 0 0 0 3px rgba(47,111,235,.12);
  }

  .decision-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }

