@import url("/dashboard.tokens.css?v=lp-token-v1");

:root {
  --bg: #f6efe4;
  --bg-strong: #eadcc6;
  --panel: rgba(255, 251, 245, 0.9);
  --panel-strong: rgba(255, 248, 240, 0.96);
  --ink: #172126;
  --muted: #637279;
  --line: rgba(23, 33, 38, 0.1);
  --accent: #c46c3c;
  --accent-strong: #a9552a;
  --accent-2: #256d5d;
  --accent-3: #30495a;
  --danger: #a44632;
  --shadow: 0 14px 40px rgba(23, 33, 38, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --link-profit-head-height: 56px;
  --link-profit-row-height: 78px;
  --link-profit-table-row-gap: 10px;
  --link-profit-visible-rows: 10;
  --ydai-brand-red: #f25345;
  --ydai-brand-red-soft: #fff1ee;
  --ydai-brand-red-line: #f7c9c3;
  --ydai-brand-ink: #334155;
  --ydai-brand-ink-soft: #475569;
  --ydai-brand-muted: #98a2b3;
  --ydai-brand-bg: #f8fbff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(196, 108, 60, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 109, 93, 0.16), transparent 22%),
    linear-gradient(180deg, #fbf4ea 0%, #f2e7d7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 36px) 56px;
}

.link-profit-page-shell .wrap {
  max-width: none;
  width: 100%;
  padding: 20px 20px 40px;
}

  .hero {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
  }

  .login-shell {
    --ydui-entry-radius-card: 12px;
    --ydui-entry-radius-control: 8px;
    --ydui-entry-radius-pill: 999px;
    --ydui-entry-brand: #ff7a33;
    --ydui-entry-brand-muted: #52637a;
    --ydai-color-brand: var(--ydui-entry-brand);
    --ydai-color-brand-muted: var(--ydui-entry-brand-muted);
    --ydai-brand-gap: 0px;
    --ydai-brand-mark-size: 16px;
    --ydai-brand-sub-size: 16px;
    --ydai-brand-mark-weight: 800;
    --ydai-brand-sub-initial-weight-dark: 650;
    --ydai-brand-sub-rest-weight-dark: 600;
    --ydai-brand-mark-letter-spacing: -0.03em;
    --ydai-brand-sub-letter-spacing: -0.025em;
    --ydai-brand-sub-offset-x: 0;
    --ydai-brand-sub-word-gap: 0.18em;
    --ydai-brand-lockup-opacity: 0.96;
    --ydui-entry-border: rgba(203, 213, 225, 0.78);
    --ydui-entry-text: #172033;
    --ydui-entry-muted: #73839a;
    --ydui-entry-blue: #2563eb;
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    color: var(--ydui-entry-text);
    background:
      radial-gradient(circle at 50% 13%, rgba(231, 239, 252, 0.72), transparent 34%),
      radial-gradient(circle at 17% 28%, rgba(255, 122, 51, 0.08), transparent 24%),
      radial-gradient(circle at 84% 24%, rgba(37, 99, 235, 0.08), transparent 25%),
      linear-gradient(180deg, #fbfdff 0%, #f4f8fe 52%, #fbfdff 100%);
  }

  .login-shell::before,
  .login-shell::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
  }

  .login-shell::before {
    top: 84px;
    left: 50%;
    width: min(760px, 82vw);
    height: 360px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.36) 46%, transparent 72%);
    filter: blur(2px);
  }

  .login-shell::after {
    right: -160px;
    bottom: 82px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 122, 51, 0.09), transparent 64%);
  }

  .login-topbar {
    position: relative;
    z-index: 1;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .login-topbar-inner {
    width: min(100%, calc(100vw - 64px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
  }

  .login-brand {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--ydui-entry-brand-muted);
    line-height: 1.1;
    opacity: 0.96;
  }

  .login-brand .brand-mark {
    color: var(--ydui-entry-brand);
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .login-brand .brand-sub {
    display: inline-flex;
    gap: 0;
    color: var(--ydui-entry-brand-muted);
    letter-spacing: -0.025em;
  }

  .login-brand .brand-sub-word + .brand-sub-word {
    margin-left: var(--ydai-brand-sub-word-gap);
  }

  .login-brand .brand-sub-word {
    display: inline-flex;
    align-items: baseline;
  }

  .login-brand .brand-sub-initial {
    font-weight: 700;
  }

  .login-brand .brand-sub-rest {
    font-weight: 625;
  }

  .login-topbar-badge {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: var(--ydui-entry-radius-pill);
    background: rgba(235, 242, 255, 0.9);
    color: var(--ydui-entry-blue);
    font-size: 13px;
    font-weight: 660;
    white-space: nowrap;
  }

  .login-main {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 40px));
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: clamp(44px, 9vh, 86px) 0;
  }

  .login-panel {
    position: relative;
    width: min(610px, 100%);
    display: grid;
    gap: 26px;
    overflow: hidden;
    padding: 34px 48px 44px;
    border: 1px solid var(--ydui-entry-border);
    border-radius: var(--ydui-entry-radius-card);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 24px 70px rgba(45, 63, 90, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
  }

  .login-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 118px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 122, 51, 0.1), transparent 42%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent);
    pointer-events: none;
  }

  .login-title-group {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
  }

  .login-brand-stage {
    position: relative;
    width: min(100%, 560px);
    min-height: 232px;
    display: grid;
    align-content: center;
    place-items: center;
    gap: 14px;
    padding: 22px 16px;
    border: 0;
    border-radius: 24px;
    background:
      radial-gradient(circle at 50% 46%, rgba(255, 122, 61, 0.13), transparent 36%),
      radial-gradient(circle at 72% 30%, rgba(53, 166, 154, 0.08), transparent 30%),
      transparent;
    overflow: hidden;
    isolation: isolate;
  }

  .login-brand-watermark {
    position: absolute;
    left: 50%;
    top: 49%;
    z-index: -2;
    color: rgba(255, 122, 61, 0.055);
    font-size: clamp(112px, 12vw, 156px);
    font-weight: 650;
    letter-spacing: -0.1em;
    line-height: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
  }

  .login-brand-ring {
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: -1;
    display: block;
    border: 1px solid rgba(255, 122, 61, 0.16);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .login-brand-ring.ring-one {
    width: 190px;
    height: 190px;
  }

  .login-brand-ring.ring-two {
    width: 290px;
    height: 290px;
    border-color: rgba(53, 166, 154, 0.11);
  }

  .login-planet-system {
    position: absolute;
    left: 50%;
    top: 45%;
    z-index: 0;
    display: block;
    width: min(520px, 94%);
    height: 150px;
    transform: translate(-50%, -50%) rotate(-7deg);
    pointer-events: none;
  }

  .login-planet-track {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(82, 99, 122, 0.12);
    border-radius: 50%;
    box-shadow:
      inset 0 0 28px rgba(255, 122, 51, 0.035),
      0 0 34px rgba(91, 127, 214, 0.032);
  }

  .login-planet-runner {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
  }

  .login-planet-dot {
    position: absolute;
    left: 50%;
    top: -7px;
    width: 14px;
    height: 14px;
    border: 3px solid rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    background: var(--planet-color);
    box-shadow:
      0 10px 20px var(--planet-glow),
      0 0 0 6px var(--planet-halo);
    transform: translateX(-50%);
  }

  .login-planet-runner.planet-brand {
    --planet-color: var(--ydui-entry-brand);
    --planet-glow: rgba(255, 122, 51, 0.22);
    --planet-halo: rgba(255, 122, 51, 0.08);
    transform: rotate(20deg);
  }

  .login-planet-runner.planet-system {
    --planet-color: #35a69a;
    --planet-glow: rgba(53, 166, 154, 0.2);
    --planet-halo: rgba(53, 166, 154, 0.08);
    transform: rotate(150deg);
  }

  .login-planet-runner.planet-trust {
    --planet-color: #5b7fd6;
    --planet-glow: rgba(91, 127, 214, 0.2);
    --planet-halo: rgba(91, 127, 214, 0.08);
    transform: rotate(278deg);
  }

  .login-planet-runner.planet-discipline {
    --planet-color: #d89a35;
    --planet-glow: rgba(216, 154, 53, 0.2);
    --planet-halo: rgba(216, 154, 53, 0.08);
    transform: rotate(332deg);
  }

  .login-title {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding: 18px 30px;
    border: 1px solid rgba(255, 122, 61, 0.24);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ydui-entry-text);
    font-size: clamp(42px, 5vw, 60px);
    line-height: 0.92;
    font-weight: 680;
    letter-spacing: -0.045em;
    box-shadow: 0 22px 48px rgba(255, 122, 61, 0.14);
  }

  .login-kicker {
    margin: 0;
    color: #6b7c93;
    font-size: 12px;
    font-weight: 620;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .login-title-mark {
    color: var(--ydui-entry-brand);
    font-weight: 800;
    letter-spacing: -0.055em;
  }

  .login-title-sub {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0 0.18em;
    color: var(--ydui-entry-text);
    font-size: 0.58em;
    letter-spacing: -0.045em;
  }

  .login-title-sub-word {
    display: inline-flex;
    align-items: baseline;
  }

  .login-title-sub-initial {
    font-weight: 700;
  }

  .login-title-sub-rest {
    font-weight: 625;
  }

  .login-brand-principle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    color: var(--ydui-entry-text);
    font-size: 17px;
    font-weight: 620;
    letter-spacing: -0.035em;
    line-height: 1.3;
    text-align: center;
  }

  .login-subtitle {
    margin: 0;
    color: var(--ydui-entry-muted);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 430;
  }

  .login-form {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    justify-self: center;
    display: grid;
    gap: 16px;
  }

  .login-form .filter {
    display: grid;
    gap: 8px;
  }

  .login-form label {
    color: #52637a;
    font-size: 14px;
    font-weight: 540;
  }

  .login-input-control {
    min-height: 48px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--ydui-entry-border);
    border-radius: var(--ydui-entry-radius-control);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  }

  .login-input-control:focus-within {
    border-color: rgba(37, 99, 235, 0.46);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  .login-input-icon,
  .login-password-toggle svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .login-form .input {
    width: 100%;
    min-height: 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ydui-entry-text);
    box-shadow: none;
  }

  .login-form .input:focus {
    outline: none;
    box-shadow: none;
  }

  .login-form .input::placeholder {
    color: #94a3b8;
  }

  .login-password-toggle {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--ydui-entry-radius-control);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
  }

  .login-password-toggle:hover {
    background: rgba(226, 232, 240, 0.52);
    color: #52637a;
  }

  .login-form .button.primary {
    width: 100%;
    min-height: 52px;
    border-radius: var(--ydui-entry-radius-control);
    background: linear-gradient(180deg, #2f73f2 0%, #2563eb 100%);
    font-size: 18px;
    font-weight: 660;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
  }

  .login-form .status-banner {
    margin-top: 0;
  }

  .login-access-note {
    margin: 0;
    color: var(--ydui-entry-muted);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
  }

  .login-records {
    position: relative;
    z-index: 1;
    min-height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 22px;
    color: #6b7c93;
    font-size: 12px;
  }

  .login-records a {
    color: inherit;
    text-decoration: none;
  }

  .login-records a:hover {
    color: #172033;
    text-decoration: underline;
  }

  @media (max-width: 640px) {
    .login-topbar-inner,
    .login-main {
      width: min(100vw - 32px, 440px);
    }

    .login-panel {
      padding: 36px 24px 30px;
    }

    .login-brand-stage {
      min-height: 190px;
      padding: 16px 0;
    }

    .login-planet-system {
      width: min(360px, 96%);
      height: 118px;
    }

    .login-brand-ring.ring-one {
      width: 154px;
      height: 154px;
    }

    .login-brand-ring.ring-two {
      width: 230px;
      height: 230px;
    }

    .login-title {
      flex-wrap: wrap;
      row-gap: 2px;
      padding: 14px 18px;
      border-radius: 18px;
      font-size: 36px;
    }

    .login-brand-principle {
      font-size: 15px;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    .login-title {
      animation: loginLogoFloat 4.4s ease-in-out infinite;
    }

    .login-brand-ring.ring-one {
      animation: loginLogoPulse 4.4s ease-in-out infinite;
    }

    .login-brand-ring.ring-two {
      animation: loginLogoPulse 4.4s ease-in-out infinite reverse;
    }

    .login-planet-system {
      animation: loginPlanetOrbit 34s linear infinite;
    }
  }

  @keyframes loginLogoFloat {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-3px);
    }
  }

  @keyframes loginLogoPulse {
    0%,
    100% {
      opacity: 0.58;
      transform: translate(-50%, -50%) scale(1);
    }

    50% {
      opacity: 0.88;
      transform: translate(-50%, -50%) scale(1.045);
    }
  }

  @keyframes loginPlanetOrbit {
    from {
      transform: translate(-50%, -50%) rotate(-7deg);
    }

    to {
      transform: translate(-50%, -50%) rotate(353deg);
    }
  }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #141414;
  color: #f2f2f2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.topbar-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: 64px;
  padding: 0 clamp(16px, 3vw, 24px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

  .topbar-brand {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: var(--ydai-brand-sub-rest-weight-dark);
    letter-spacing: 0;
    white-space: nowrap;
  }

.topbar-brand .brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: var(--ydai-brand-gap);
  opacity: var(--ydai-brand-lockup-opacity);
}

  .topbar-brand .brand-lockup-compact {
    display: none;
  }

  .topbar-brand .brand-mark {
    color: var(--ydai-color-brand);
    font-size: var(--ydai-brand-mark-size);
    font-weight: var(--ydai-brand-mark-weight);
    letter-spacing: var(--ydai-brand-mark-letter-spacing);
    line-height: 1;
  }

  .topbar-brand .brand-sub {
    color: inherit;
    display: inline-flex;
    align-items: baseline;
    font-size: var(--ydai-brand-sub-size);
    letter-spacing: var(--ydai-brand-sub-letter-spacing);
    line-height: 1.1;
    margin-left: var(--ydai-brand-sub-offset-x);
    opacity: 0.9;
  }

  .topbar-brand .brand-sub-word {
    display: inline-flex;
    align-items: baseline;
  }

  .topbar-brand .brand-sub-word + .brand-sub-word {
    margin-left: var(--ydai-brand-sub-word-gap);
  }

  .topbar-brand .brand-sub-initial {
    font-weight: var(--ydai-brand-sub-initial-weight-dark);
  }

  .topbar-brand .brand-sub-rest {
    font-weight: var(--ydai-brand-sub-rest-weight-dark);
  }

  .topbar-nav {
    display: flex;
    align-items: center;
    gap: var(--ydai-header-nav-gap);
    flex-wrap: wrap;
    font-size: 14px;
    margin-left: 18px;
  }

  .topbar-nav a {
    color: rgba(242, 242, 242, 0.78);
    text-decoration: none;
    padding: 6px 2px;
  }

  .topbar-nav a:hover,
  .topbar-nav a.current {
    color: #ffffff;
  }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(242, 242, 242, 0.7);
  font-size: 13px;
  margin-left: auto;
}

.topbar-meta {
  color: rgba(242, 242, 242, 0.52);
  font-size: 12px;
}

.user-menu {
  position: relative;
}

.user-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-toggle::-webkit-details-marker {
  display: none;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2b2f3a;
  color: #f2f2f2;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 122, 51, 0.6);
}

.user-caret {
  color: rgba(242, 242, 242, 0.7);
  font-size: 12px;
}

.user-avatar.large {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 320px;
  background: #14161a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: #f2f2f2;
}

.user-menu[open] .user-caret {
  transform: rotate(180deg);
}

.user-caret {
  transition: transform 0.2s ease;
}

.user-card {
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(98, 108, 124, 0.5), rgba(32, 36, 46, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.user-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.user-name {
  font-weight: 700;
}

.user-sub {
  color: rgba(242, 242, 242, 0.6);
  font-size: 12px;
  margin-top: 4px;
}

.user-badges {
  display: flex;
  gap: 8px;
  color: rgba(242, 242, 242, 0.7);
}

.pill.muted {
  background: rgba(0, 0, 0, 0.35);
}

.role-card.compact {
  background: transparent;
  border: none;
  padding: 0;
}

.user-links {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.user-link {
  text-decoration: none;
  color: rgba(242, 242, 242, 0.85);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.user-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.user-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.user-panel .chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(242, 242, 242, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

.user-panel .role-select {
  background: rgba(15, 15, 17, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.user-panel .button.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.05;
}

.hero p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 860px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a,
.button,
.role-select,
.select,
.input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.nav a:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 33, 38, 0.18);
}

.nav a.current {
  background: rgba(37, 109, 93, 0.14);
  border-color: rgba(37, 109, 93, 0.24);
  color: var(--accent-2);
  font-weight: 700;
}

.button {
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.accent {
  background: rgba(196, 108, 60, 0.14);
  color: var(--accent-strong);
  border-color: rgba(196, 108, 60, 0.2);
}

.button.ghost {
  background: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.button-small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel + .panel {
  margin-top: 18px;
}

.panel-body {
  padding: 18px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  flex: 1;
}

.filter {
  display: grid;
  gap: 6px;
}

.filter label,
.panel-label,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.select,
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  outline: none;
}

.select:focus,
.input:focus {
  border-color: rgba(37, 109, 93, 0.4);
}

.input-compact {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 12px;
}

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

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
}

.metric-card .label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.metric-card .label {
  color: var(--muted);
  font-size: 13px;
}

.metric-card .value {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
}

.metric-card .ellipsis-value {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.metric-info {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(23, 33, 38, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-3);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  padding: 0;
  flex: 0 0 auto;
  position: relative;
}

.metric-info:hover {
  background: #fff;
}

.metric-info::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(23, 33, 38, 0.96);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-line;
  text-align: left;
  box-shadow: 0 14px 32px rgba(23, 33, 38, 0.28);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 20;
}

.metric-info::before {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  right: 8px;
  width: 10px;
  height: 10px;
  background: rgba(23, 33, 38, 0.96);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
  z-index: 19;
}

.metric-info:hover::after,
.metric-info:hover::before,
.metric-info:focus-visible::after,
.metric-info:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.layout-grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-shell,
.chart-shell,
.summary-shell {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: var(--radius-lg);
}

.table-head,
.chart-head,
.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 0;
}

.table-head h2,
.chart-head h2,
.summary-head h2,
.section-title {
  margin: 0;
  font-size: 18px;
}

.table-wrap {
  overflow: auto;
  padding: 8px 16px 14px;
}

.summary-wrap {
  padding: 8px 16px 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.link-profit-page-grid table {
  table-layout: fixed;
}

th,
td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(23, 33, 38, 0.08);
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable.active {
  color: var(--lp-color-text-primary);
}

th.sort-active {
  color: var(--ink);
}

.sort-mark {
  margin-left: 4px;
  color: var(--ydai-brand-red);
}

tbody tr:hover {
  background: rgba(37, 109, 93, 0.05);
}

.chart-wrap {
  padding: 8px 16px 16px;
}

.chart {
  width: 100%;
  height: 290px;
  display: block;
}

.axis {
  stroke: rgba(23, 33, 38, 0.14);
  stroke-width: 1;
}

.grid-line {
  stroke: rgba(23, 33, 38, 0.08);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.area {
  fill: rgba(196, 108, 60, 0.12);
}

.dot {
  fill: var(--accent-2);
}

.chip-list,
.tag-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip,
.tag-link,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.tag-link {
  color: var(--accent-strong);
  background: rgba(196, 108, 60, 0.12);
}

.badge.ok {
  color: var(--accent-2);
  background: rgba(37, 109, 93, 0.12);
}

.badge.bad {
  color: var(--danger);
  background: rgba(164, 70, 50, 0.12);
}

.badge.role {
  color: var(--accent-3);
  background: rgba(48, 73, 90, 0.12);
}

.link {
  color: var(--accent-2);
  font-weight: 700;
}

.status-banner {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.status-banner.show {
  display: block;
}

.status-banner.warn {
  color: var(--ydai-brand-red);
  background: var(--ydai-brand-red-soft);
  border-color: var(--ydai-brand-red-line);
}

.status-banner.info {
  color: var(--ydai-brand-ink);
  background: var(--ydai-brand-bg);
  border-color: color-mix(in srgb, var(--ydai-brand-ink) 16%, white);
}

.status-hero {
  position: relative;
  overflow: hidden;
  padding: 26px clamp(20px, 3vw, 34px);
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 18%, rgba(196, 108, 60, 0.16), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(37, 109, 93, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 251, 245, 0.94), rgba(255, 248, 240, 0.86));
  box-shadow: var(--shadow);
}

.status-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 320px;
  height: 220px;
  border-radius: 50%;
  background: rgba(196, 108, 60, 0.1);
  pointer-events: none;
}

.status-hero .hero-top {
  position: relative;
  z-index: 1;
  align-items: center;
}

.status-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.status-hero .eyebrow {
  color: var(--accent-3);
}

.status-hero #metaText {
  font-size: 15px;
}

.status-hero .button.primary {
  min-height: 44px;
  padding: 11px 18px;
  background: var(--accent-2);
  color: #fff;
  border-color: rgba(37, 109, 93, 0.22);
  box-shadow: 0 12px 28px rgba(37, 109, 93, 0.18);
}

.status-summary-grid {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) repeat(2, minmax(160px, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 16px;
}

.status-summary-grid > .panel {
  height: 100%;
  margin-top: 0;
}

.status-summary-grid > .panel + .panel {
  margin-top: 0;
}

.status-overview-card .panel-body {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  min-height: 132px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.overall-indicator {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 10px rgba(99, 114, 121, 0.12);
}

.overall-indicator.operational {
  background: var(--accent-2);
  box-shadow: 0 0 0 10px rgba(37, 109, 93, 0.14);
}

.overall-indicator.degraded {
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(196, 108, 60, 0.14);
}

.overall-indicator.down {
  background: var(--danger);
  box-shadow: 0 0 0 10px rgba(164, 70, 50, 0.14);
}

.status-overview-card h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.status-mini-card {
  height: 100%;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.status-mini-card strong {
  display: block;
  margin-top: 14px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.service-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  padding: 18px;
  box-shadow: var(--shadow);
}

.service-card.operational {
  border-color: rgba(37, 109, 93, 0.22);
}

.service-card.degraded {
  border-color: rgba(196, 108, 60, 0.26);
}

.service-card.down {
  border-color: rgba(164, 70, 50, 0.28);
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.service-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.service-state {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(154, 165, 169, 0.14);
  color: #526066;
}

.service-state.operational {
  background: rgba(37, 109, 93, 0.12);
  color: var(--accent-2);
}

.service-state.degraded {
  background: rgba(196, 108, 60, 0.12);
  color: var(--accent-strong);
}

.service-state.down {
  background: rgba(164, 70, 50, 0.12);
  color: var(--danger);
}

.service-card-body {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 9px;
  border-top: 1px solid rgba(32, 45, 50, 0.08);
}

.service-row span {
  color: var(--muted);
  font-size: 12px;
}

.service-row strong {
  min-width: 0;
  max-width: 68%;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 12px;
  color: var(--ink);
}

.role-card {
  display: grid;
  gap: 10px;
  min-width: 250px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

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

.role-select {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.summary-table th {
  width: 120px;
}

.empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.access-drawer {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100vw - 32px));
  z-index: 40;
}

.access-drawer[open] .access-toggle {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.access-toggle {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.access-toggle::-webkit-details-marker {
  display: none;
}

.access-drawer .role-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: var(--panel-strong);
}

.footer-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.log-box {
  margin: 0;
  min-height: 240px;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.55 "Cascadia Mono", "Consolas", monospace;
}

.code-editor {
  width: 100%;
  min-height: 520px;
  resize: vertical;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: 12px/1.55 "Cascadia Mono", "Consolas", monospace;
  outline: none;
}

.code-editor:focus {
  border-color: rgba(37, 109, 93, 0.4);
}

.link-master-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.link-master-sidebar,
.link-master-editor {
  min-height: 720px;
}

.link-master-toolbar {
  display: grid;
  gap: 12px;
}

.link-master-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
}

.link-master-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.link-master-item-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.link-master-item:hover {
  border-color: rgba(37, 109, 93, 0.24);
  transform: translateY(-1px);
}

.link-master-item.selected {
  border-color: rgba(37, 109, 93, 0.3);
  background: rgba(37, 109, 93, 0.08);
}

.link-master-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.link-master-item-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.link-master-item-main strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

.link-master-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.link-master-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.master-form {
  display: grid;
}

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

.master-grid-span-2 {
  grid-column: span 2;
}

.link-preview-card {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.link-preview-shell {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.link-preview-image {
  max-width: 100%;
  max-height: 320px;
  display: none;
  object-fit: contain;
}

.link-profit-header-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}


.link-profit-page-grid {
  display: grid;
  gap: 14px;
}

.link-profit-split-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: start;
}

.link-profit-side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.link-profit-side-stack > #linkProfitDetailMetaRoot {
  margin-top: auto;
}

.link-profit-page-grid .panel > .panel-body {
  padding: 16px;
}

.link-profit-header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.link-profit-header-copy {
  min-width: 0;
}

.link-profit-header-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.04em;
  color: #173453;
}

.link-profit-header-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  color: #5a7491;
}

.link-profit-summary-chips {
  margin-top: 12px;
}

.link-profit-summary-chips .chip {
  background: rgba(241, 246, 255, 0.9);
  color: #2f5378;
  border-color: rgba(132, 174, 219, 0.18);
}

.link-profit-inline-error {
  margin-top: 14px;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 14px;
  color: #a63f4e;
  background: rgba(255, 234, 238, 0.88);
  border: 1px solid rgba(225, 131, 149, 0.26);
}

.link-profit-header-card,
.link-profit-alert-card,
.link-profit-meta-card,
.link-profit-batch-card,
.upload-center-batch-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 248, 255, 0.66));
  border: 1px solid rgba(132, 174, 219, 0.16);
  border-radius: 22px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.link-profit-header-value,
.link-profit-alert-main,
.link-profit-meta-main,
.link-profit-batch-value,
.upload-center-batch-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #143250;
}

.link-profit-header-value.compact,
.link-profit-batch-value.compact,
.upload-center-batch-value.compact {
  font-size: 16px;
  line-height: 1.6;
}

.link-profit-alert-grid,
.link-profit-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.link-profit-batch-grid,
.upload-center-batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.link-profit-alert-card-wide,
.upload-center-alert-card-wide {
  grid-column: span 2;
}

.link-profit-batch-source-wrap {
  padding-top: 0;
}

.link-profit-batch-source-grid,
.link-profit-issue-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.link-profit-batch-source-card,
.link-profit-issue-detail-panel,
.link-profit-quality-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 248, 255, 0.66));
  border: 1px solid rgba(132, 174, 219, 0.16);
  border-radius: 20px;
  padding: 14px;
}

.link-profit-batch-card.decision {
  background: linear-gradient(135deg, rgba(232, 244, 255, 0.96), rgba(245, 250, 255, 0.84));
  border-color: rgba(93, 153, 228, 0.26);
  box-shadow: 0 14px 32px rgba(109, 157, 214, 0.14);
}

.link-profit-source-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.link-profit-source-list,
.link-profit-issue-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.link-profit-issue-detail-list {
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.link-profit-source-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 250, 255, 0.82);
}

.link-profit-source-item strong {
  display: block;
  margin-top: 4px;
  color: #173453;
  word-break: break-all;
}

.link-profit-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.link-profit-issue-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.link-profit-issue-chip.error {
  color: #a93e4d;
  background: rgba(255, 234, 237, 0.88);
  border-color: rgba(213, 114, 130, 0.22);
}

.link-profit-issue-chip.warning {
  color: #a56919;
  background: rgba(255, 243, 220, 0.92);
  border-color: rgba(232, 183, 79, 0.28);
}

.link-profit-issue-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(132, 174, 219, 0.16);
  background: rgba(247, 250, 255, 0.82);
}

.link-profit-issue-row.error {
  background: rgba(255, 241, 243, 0.92);
  border-color: rgba(223, 149, 161, 0.22);
}

.link-profit-issue-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.link-profit-issue-message {
  color: #173453;
  line-height: 1.55;
}

.link-profit-quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.link-profit-quality-grid-secondary {
  margin-top: 10px;
}

.link-profit-quality-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #143250;
}

.link-profit-toolbar,
.upload-center-toolbar {
  position: relative;
}

.link-profit-toolbar .filters,
.upload-center-toolbar .filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) repeat(2, minmax(132px, 0.9fr));
  gap: 10px 12px;
  width: 100%;
}

.link-profit-toolbar .filter,
.upload-center-toolbar .filter {
  gap: 5px;
}

.link-profit-toolbar .filter label,
.upload-center-toolbar .filter label {
  font-size: 12px;
  font-weight: 700;
  color: #5f7894;
  letter-spacing: 0.01em;
}

.link-profit-toolbar .select,
.link-profit-toolbar .input,
.upload-center-toolbar .select,
.upload-center-toolbar .input {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 13px;
  border-color: rgba(132, 174, 219, 0.18);
  background: rgba(252, 254, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.link-profit-toolbar .select:hover,
.link-profit-toolbar .input:hover,
.upload-center-toolbar .select:hover,
.upload-center-toolbar .input:hover {
  border-color: rgba(91, 145, 209, 0.28);
}

.link-profit-toolbar .select:focus,
.link-profit-toolbar .input:focus,
.upload-center-toolbar .select:focus,
.upload-center-toolbar .input:focus {
  border-color: rgba(67, 132, 207, 0.42);
  box-shadow: 0 0 0 3px rgba(96, 159, 228, 0.12);
}

.link-profit-table-head,
.upload-center-table-head {
  align-items: center;
}

.link-profit-inline-note {
  padding: 10px 12px;
  border-radius: 16px;
  color: #53728f;
  background: rgba(241, 246, 255, 0.88);
  border: 1px solid rgba(132, 174, 219, 0.16);
}

.link-profit-th-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-profit-th-tip {
  margin-left: 8px;
}

.link-profit-page-grid table th,
.link-profit-page-grid table td {
  vertical-align: middle;
}

.link-profit-page-grid table th:nth-child(1),
.link-profit-page-grid table td:nth-child(1) {
  width: 340px;
  min-width: 340px;
  padding-left: 12px;
  padding-right: 8px;
}

.link-profit-page-grid table th:nth-child(2),
.link-profit-page-grid table td:nth-child(2) {
  min-width: 84px;
  width: 84px;
}

.link-profit-page-grid table th:nth-child(3),
.link-profit-page-grid table td:nth-child(3) {
  min-width: 132px;
  width: 132px;
}

.link-profit-page-grid table th:nth-child(4),
.link-profit-page-grid table td:nth-child(4) {
  min-width: 92px;
  width: 92px;
}

.link-profit-page-grid table th:nth-child(5),
.link-profit-page-grid table td:nth-child(5),
.link-profit-page-grid table th:nth-child(6),
.link-profit-page-grid table td:nth-child(6),
.link-profit-page-grid table th:nth-child(7),
.link-profit-page-grid table td:nth-child(7),
.link-profit-page-grid table th:nth-child(8),
.link-profit-page-grid table td:nth-child(8) {
  white-space: nowrap;
}

.link-profit-page-grid table th:nth-child(5),
.link-profit-page-grid table td:nth-child(5) {
  min-width: 114px;
  width: 114px;
}

.link-profit-page-grid table th:nth-child(6),
.link-profit-page-grid table td:nth-child(6),
.link-profit-page-grid table th:nth-child(7),
.link-profit-page-grid table td:nth-child(7),
.link-profit-page-grid table th:nth-child(8),
.link-profit-page-grid table td:nth-child(8) {
  min-width: 108px;
  width: 108px;
}

.link-profit-page-grid table th:nth-child(8),
.link-profit-page-grid table td:nth-child(8) {
  padding-right: 12px;
}

.link-profit-page-grid table thead th {
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 12px;
  padding-right: 12px;
  color: #6a8199;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.link-profit-page-grid table thead::after {
  content: "";
  display: block;
  height: var(--link-profit-table-row-gap);
}

.link-profit-page-grid table thead th:first-child,
.link-profit-page-grid table thead th:nth-child(2),
.link-profit-page-grid table thead th:nth-child(3) {
  text-align: center;
}

.link-profit-page-grid table thead th:first-child .link-profit-th-label {
  justify-content: center;
  width: 100%;
}

.link-profit-page-grid table thead th:nth-child(4),
.link-profit-page-grid table thead th:nth-child(5),
.link-profit-page-grid table thead th:nth-child(6),
.link-profit-page-grid table thead th:nth-child(7),
.link-profit-page-grid table thead th:nth-child(8),
.link-profit-page-grid table thead th:nth-child(9),
.link-profit-page-grid table thead th:nth-child(10) {
  text-align: right;
}

.link-profit-page-grid table tbody td:nth-child(4),
.link-profit-page-grid table tbody td:nth-child(5),
.link-profit-page-grid table tbody td:nth-child(6),
.link-profit-page-grid table tbody td:nth-child(7),
.link-profit-page-grid table tbody td:nth-child(8),
.link-profit-page-grid table tbody td:nth-child(9),
.link-profit-page-grid table tbody td:nth-child(10) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.link-profit-page-grid table tbody td:nth-child(2),
.link-profit-page-grid table tbody td:nth-child(3) {
  text-align: center;
}

.link-profit-page-grid table tbody td:nth-child(2) .link-profit-action-tag {
  margin: 0 auto;
}

.link-profit-page-grid table tbody td:nth-child(3) .link-profit-badge {
  margin: 0 auto;
}

.link-profit-page-grid table tbody tr {
  height: var(--link-profit-row-height);
}

.link-profit-page-grid table tbody tr[data-link-profit-row] {
  cursor: pointer;
  transition: transform var(--lp-transition-fast), box-shadow var(--lp-transition-fast);
}

.link-profit-page-grid table tbody td {
  color: #29445f;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
  border-top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: var(--lp-shadow-xs);
}

.link-profit-page-grid table tbody tr[data-link-profit-row] + tr[data-link-profit-row] td,
.link-profit-page-grid table tbody tr[data-link-profit-row] + tr.link-profit-row-filler td,
.link-profit-page-grid table tbody tr.link-profit-row-filler + tr.link-profit-row-filler td {
  border-top: var(--link-profit-table-row-gap) solid transparent;
  background-clip: padding-box;
}

.link-profit-page-grid table tbody td:first-child {
  padding-left: 12px;
  padding-right: 8px;
  border-top-left-radius: var(--lp-radius-lg);
  border-bottom-left-radius: var(--lp-radius-lg);
}

.link-profit-page-grid table tbody td:last-child {
  padding-right: 16px;
  border-top-right-radius: var(--lp-radius-lg);
  border-bottom-right-radius: var(--lp-radius-lg);
}

.link-profit-page-grid table tbody td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.link-profit-page-grid table tbody tr[data-link-profit-row]:hover td {
  background: color-mix(in srgb, var(--lp-color-row-hover) 92%, white);
  box-shadow: var(--lp-shadow-sm);
}

.link-profit-page-grid table tbody tr.link-profit-row-selected td,
.link-profit-page-grid table tbody tr.page-row-selected td {
  background: linear-gradient(180deg, rgba(235, 245, 255, 0.92), rgba(229, 240, 255, 0.9));
  box-shadow: var(--lp-shadow-sm);
}

.link-profit-page-grid table tbody tr.link-profit-row-selected:hover,
.link-profit-page-grid table tbody tr.page-row-selected:hover {
  background: transparent;
}

.link-profit-page-grid table tbody tr.link-profit-row-filler {
  pointer-events: none;
}

.link-profit-page-grid table tbody tr.link-profit-row-filler td {
  height: var(--link-profit-row-height);
  padding: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.link-profit-product-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: var(--lp-product-cell-height);
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: var(--lp-radius-md);
  transition: background var(--lp-transition-fast);
}

.link-profit-product-button:hover,
.link-profit-product-button:focus-visible {
  background: color-mix(in srgb, var(--lp-color-bg-muted) 55%, white);
  outline: none;
}

.link-profit-product-media {
  position: relative;
  flex: 0 0 auto;
  width: var(--lp-product-image-size);
  height: var(--lp-product-image-size);
  aspect-ratio: 1 / 1;
}

.link-profit-product-thumb.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef4ff 0%, #e5eefb 100%);
  border: 1px solid rgba(151, 176, 214, 0.2);
  color: #6f84a4;
}

.link-profit-product-placeholder-icon {
  position: relative;
  width: 18px;
  height: 14px;
  border-radius: 5px;
  border: 1.5px solid currentColor;
  opacity: 0.75;
}

.link-profit-product-placeholder-icon::before,
.link-profit-product-placeholder-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.link-profit-product-placeholder-icon::before {
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.link-profit-product-placeholder-icon::after {
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(0% 100%, 35% 35%, 58% 70%, 76% 48%, 100% 100%);
  opacity: 0.88;
}

.link-profit-product-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.link-profit-product-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  line-height: 17px;
}

.link-profit-product-id {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #6b7280;
  line-height: 16px;
}

.link-profit-id {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(129, 169, 210, 0.2);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.92), rgba(238, 245, 255, 0.88));
  color: #294766;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: flex-start;
}

.link-profit-id-button {
  cursor: pointer;
}

.link-profit-id-button:hover {
  border-color: rgba(84, 143, 214, 0.32);
  color: #2f6aa3;
}

.link-profit-kpi-card {
  overflow: hidden;
}

.link-profit-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -22px auto;
  width: 120px;
  height: 68px;
  border-radius: 999px;
  opacity: 0.9;
  filter: blur(2px);
}

.link-profit-kpi-card.neutral::after {
  background: radial-gradient(circle, rgba(141, 191, 255, 0.32), rgba(141, 191, 255, 0));
}

.link-profit-kpi-card.blue::after {
  background: radial-gradient(circle, rgba(100, 167, 255, 0.34), rgba(100, 167, 255, 0));
}

.link-profit-kpi-card.scale::after {
  background: radial-gradient(circle, rgba(101, 207, 152, 0.34), rgba(101, 207, 152, 0));
}

.link-profit-kpi-card.observe::after {
  background: radial-gradient(circle, rgba(255, 203, 94, 0.34), rgba(255, 203, 94, 0));
}

.link-profit-kpi-card.stop::after {
  background: radial-gradient(circle, rgba(243, 138, 154, 0.34), rgba(243, 138, 154, 0));
}

.link-profit-kpi-card.risk::after,
.link-profit-kpi-card.slate::after {
  background: radial-gradient(circle, rgba(197, 166, 132, 0.3), rgba(197, 166, 132, 0));
}

.link-profit-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
}

.link-profit-empty-title {
  font-size: 24px;
  font-weight: 700;
  color: #163655;
}

.link-profit-detail-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
}

.link-profit-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(132, 174, 219, 0.16);
}

.link-profit-detail-header-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.link-profit-detail-header h3 {
  margin: 0;
  color: #143250;
  font-size: 24px;
  line-height: 1.35;
}

.link-profit-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 20px 22px;
  overflow: auto;
  max-height: 72vh;
}

.link-profit-detail-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.link-profit-detail-thumb {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid rgba(138, 180, 224, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 255, 0.88));
  object-fit: cover;
}

.link-profit-detail-thumb.placeholder {
  display: grid;
  place-items: center;
  color: #6882a0;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.link-profit-detail-copy {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.link-profit-detail-copy .link-profit-id {
  display: block;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lp-product-id-color);
  font-family: inherit;
  font-size: var(--lp-product-id-font-size);
  font-weight: var(--lp-font-weight-medium);
  line-height: 1.45;
}

.link-profit-detail-copy .chip-list {
  gap: 6px;
}

.link-profit-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-profit-detail-card,
.link-profit-detail-section {
  border-radius: 18px;
  border: 1px solid rgba(132, 174, 219, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 255, 0.8));
  padding: 14px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.link-profit-detail-value {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #143250;
}

.link-profit-detail-value.compact {
  font-size: 15px;
  line-height: 1.5;
}

.link-profit-detail-actions {
  margin-top: 12px;
}

#linkProfitDetailMetaRoot .panel-body {
  padding: 16px 18px 18px;
}

#linkProfitDetailMetaRoot .table-head {
  padding-top: 0;
}

#linkProfitDetailMetaRoot .link-profit-detail-grid {
  gap: 10px;
}

#linkProfitDetailMetaRoot .link-profit-detail-actions {
  margin-top: 10px;
}

.link-profit-main-panel {
  display: flex;
  flex-direction: column;
}

.link-profit-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: hidden;
}

.link-profit-table-wrap th {
  height: var(--link-profit-head-height);
  padding-top: 0;
  padding-bottom: 0;
  font-size: 13px;
}

.link-profit-table-wrap td {
  height: var(--link-profit-row-height);
  padding-top: 0;
  padding-bottom: 0;
  font-size: 13px;
  vertical-align: middle;
  overflow: hidden;
}

.link-profit-table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.link-profit-table-wrap .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 50px;
  padding: 0 6px;
  border-radius: 999px;
  color: #4f6e90;
  font-size: 11px;
  font-weight: 700;
  background: rgba(241, 246, 255, 0.84);
  border: 1px solid rgba(132, 174, 219, 0.16);
}

.link-profit-table-wrap .link:hover {
  color: #2f6aa3;
  border-color: rgba(84, 143, 214, 0.26);
  background: rgba(245, 249, 255, 0.96);
}

.link-profit-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(132, 174, 219, 0.14);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.78), rgba(242, 248, 255, 0.92));
}

.link-profit-pagination-meta {
  color: #5b7189;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.link-profit-pagination-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.link-profit-table-footer .button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.link-profit-table-footer .button.ghost {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(132, 174, 219, 0.2);
  color: #4c6681;
}

.link-profit-table-footer .button.ghost:hover {
  background: rgba(245, 250, 255, 0.96);
  border-color: rgba(101, 153, 217, 0.26);
}

.link-profit-table-footer .button.primary {
  background: linear-gradient(135deg, #5da8ff, #3c83f2);
  border-color: rgba(60, 131, 242, 0.22);
  box-shadow: 0 10px 20px rgba(80, 141, 224, 0.16);
}

.link-profit-table-footer .button:disabled {
  opacity: 0.42;
  background: rgba(235, 241, 248, 0.84);
  color: #8aa0b8;
  border-color: rgba(132, 174, 219, 0.16);
}

.link-profit-loading-stack {
  display: grid;
  gap: 18px;
}

.skeleton-block {
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(232, 239, 248, 0.7), rgba(255, 255, 255, 0.94), rgba(232, 239, 248, 0.7));
  background-size: 220% 100%;
  animation: link-profit-skeleton 1.6s ease-in-out infinite;
}

.skeleton-block.tall {
  height: 110px;
}

.skeleton-block.metric {
  min-height: 132px;
}

.skeleton-block.wide {
  height: 46px;
  margin-top: 10px;
}

.link-profit-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

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

.link-profit-decision-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.link-profit-decision-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.link-profit-decision-reason {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.link-profit-decision-count {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: #111827;
}

.link-profit-decision-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  min-height: 40px;
}

.link-profit-decision-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(132, 174, 219, 0.16);
  color: #21476a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.link-profit-decision-actions {
  margin-top: 12px;
}

.link-profit-decision-actions .button {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.link-profit-bottom-stack {
  display: grid;
  gap: 14px;
  padding: 0 4px 4px;
}

.link-profit-action-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 34px;
  min-width: var(--lp-action-tag-min-width);
  max-width: var(--lp-action-tag-max-width);
  padding: 5px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  white-space: normal;
  text-align: center;
}

.link-profit-action-tag.action-primary-positive {
  color: var(--lp-action-scale-color);
}

.link-profit-action-tag.action-primary-negative {
  color: var(--lp-action-stop-color);
}

.link-profit-action-tag.action-primary-warning {
  color: var(--lp-action-investigate-color);
}

.link-profit-action-tag.action-primary-optimize {
  color: var(--lp-action-optimize-color);
}

.link-profit-action-tag.action-primary-default {
  color: var(--lp-action-observe-color);
}

.link-profit-action-tag-primary {
  font-size: var(--lp-action-primary-font-size);
  font-weight: var(--lp-action-primary-font-weight);
  line-height: var(--lp-action-primary-line-height);
  color: currentColor;
}

.link-profit-action-tag-reason {
  font-size: var(--lp-action-reason-font-size);
  font-weight: var(--lp-action-reason-font-weight);
  line-height: var(--lp-action-reason-line-height);
  opacity: var(--lp-action-reason-opacity);
  color: var(--lp-color-text-secondary);
}

.link-profit-number-positive {
  color: var(--lp-color-positive);
  font-weight: 800;
}

.link-profit-number-negative {
  color: var(--lp-color-negative);
  font-weight: 800;
}

.link-profit-toolbar .filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.link-profit-decision-table th:nth-child(1),
.link-profit-decision-table td:nth-child(1) {
  width: 380px;
  min-width: 380px;
  max-width: 420px;
  padding-left: 12px;
  padding-right: 12px;
}

.link-profit-decision-table th:nth-child(2),
.link-profit-decision-table td:nth-child(2) {
  width: 92px;
  min-width: 92px;
  max-width: 96px;
}

.link-profit-decision-table th:nth-child(3),
.link-profit-decision-table td:nth-child(3) {
  width: 88px;
  min-width: 88px;
  max-width: 92px;
}

.link-profit-decision-table th:nth-child(4),
.link-profit-decision-table td:nth-child(4),
.link-profit-decision-table th:nth-child(5),
.link-profit-decision-table td:nth-child(5),
.link-profit-decision-table th:nth-child(6),
.link-profit-decision-table td:nth-child(6),
.link-profit-decision-table th:nth-child(7),
.link-profit-decision-table td:nth-child(7) {
  width: 112px;
  min-width: 112px;
}

.link-profit-decision-table th:nth-child(8),
.link-profit-decision-table td:nth-child(8) {
  width: 84px;
  min-width: 84px;
}

.link-profit-decision-table thead th:nth-child(4),
.link-profit-decision-table thead th:nth-child(5),
.link-profit-decision-table thead th:nth-child(6),
.link-profit-decision-table thead th:nth-child(7),
.link-profit-decision-table thead th:nth-child(8),
.link-profit-decision-table tbody td:nth-child(4),
.link-profit-decision-table tbody td:nth-child(5),
.link-profit-decision-table tbody td:nth-child(6),
.link-profit-decision-table tbody td:nth-child(7),
.link-profit-decision-table tbody td:nth-child(8) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.link-profit-decision-table thead th:nth-child(2),
.link-profit-decision-table tbody td:nth-child(2),
.link-profit-decision-table thead th:nth-child(3),
.link-profit-decision-table tbody td:nth-child(3) {
  text-align: left;
}

.link-profit-decision-table thead th:nth-child(7),
.link-profit-decision-table tbody td:nth-child(7) {
  text-align: right;
}

.link-profit-decision-table thead th:nth-child(8),
.link-profit-decision-table tbody td:nth-child(8) {
  text-align: right;
}

.link-profit-decision-table {
  background: #ffffff;
  width: 100%;
  table-layout: fixed;
}

.link-profit-page-grid table.link-profit-decision-table th:nth-child(1),
.link-profit-page-grid table.link-profit-decision-table td:nth-child(1) {
  width: 420px;
  min-width: 420px;
  max-width: 420px;
  padding-left: 12px;
  padding-right: 12px;
}

.link-profit-page-grid table.link-profit-decision-table th:nth-child(2),
.link-profit-page-grid table.link-profit-decision-table td:nth-child(2) {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
}

.link-profit-page-grid table.link-profit-decision-table th:nth-child(3),
.link-profit-page-grid table.link-profit-decision-table td:nth-child(3) {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

.link-profit-page-grid table.link-profit-decision-table th:nth-child(4),
.link-profit-page-grid table.link-profit-decision-table td:nth-child(4),
.link-profit-page-grid table.link-profit-decision-table th:nth-child(5),
.link-profit-page-grid table.link-profit-decision-table td:nth-child(5),
.link-profit-page-grid table.link-profit-decision-table th:nth-child(6),
.link-profit-page-grid table.link-profit-decision-table td:nth-child(6),
.link-profit-page-grid table.link-profit-decision-table th:nth-child(7),
.link-profit-page-grid table.link-profit-decision-table td:nth-child(7) {
  width: 116px;
  min-width: 116px;
}

.link-profit-page-grid table.link-profit-decision-table th:nth-child(8),
.link-profit-page-grid table.link-profit-decision-table td:nth-child(8) {
  width: 84px;
  min-width: 84px;
}

.link-profit-page-grid table.link-profit-decision-table tbody td:nth-child(3) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.link-profit-decision-table .link-profit-badge,
.link-profit-detail-meta-row .link-profit-badge {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 10px;
  opacity: 0.6;
  box-shadow: none;
}

.link-profit-page-grid table.link-profit-decision-table tbody td:nth-child(2),
.link-profit-page-grid table.link-profit-decision-table tbody td:nth-child(3) {
  white-space: nowrap;
}

.link-profit-page-shell .topbar {
  min-height: var(--lp-header-height);
  background: color-mix(in srgb, var(--lp-color-bg-card) 88%, transparent);
  color: var(--lp-color-neutral);
  border-bottom: 1px solid var(--lp-color-border-soft);
  box-shadow: none;
}

.link-profit-page-shell {
  font-family: var(--lp-font-family-base);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 22%),
    linear-gradient(180deg, #fafcff 0%, var(--lp-color-bg-page) 100%);
}

.link-profit-page-shell .topbar-inner {
  min-height: var(--lp-header-height);
  height: var(--lp-header-height);
  padding-top: 0;
  padding-bottom: 0;
  align-items: stretch;
}

.link-profit-page-shell .topbar-brand,
.link-profit-page-shell .topbar-meta {
  color: var(--lp-color-text-tertiary);
}

.link-profit-page-shell .topbar-nav {
  gap: 16px;
  margin-left: 20px;
  align-items: stretch;
}

.link-profit-page-shell .topbar-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-md);
  font-weight: var(--lp-font-weight-medium);
  line-height: 1.2;
  min-height: 32px;
  padding: 0 4px;
}

.link-profit-page-shell .topbar-brand {
  min-width: 0;
}

.link-profit-page-shell .topbar-brand .brand-lockup {
  gap: var(--ydai-brand-gap);
}

.link-profit-page-shell .topbar-brand .brand-mark,
.link-profit-page-shell .topbar-nav a.current {
  color: var(--ydai-color-brand);
}

.link-profit-page-shell .topbar-brand .brand-mark {
  display: inline-block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ydai-color-brand);
  font-size: var(--ydai-brand-mark-size);
  font-weight: var(--ydai-brand-mark-weight);
  letter-spacing: -0.03em;
}

.link-profit-page-shell .topbar-brand .brand-sub {
  color: var(--ydai-color-brand-muted);
  font-size: var(--ydai-brand-sub-size);
  font-weight: var(--ydai-brand-sub-weight);
  opacity: 1;
  letter-spacing: -0.025em;
  margin-left: -0.045em;
}

.link-profit-page-shell .topbar-nav a.current {
  color: var(--ydai-header-nav-current-color);
  font-weight: var(--lp-font-weight-semibold);
  padding-bottom: 2px;
}

.link-profit-page-shell .topbar-nav a.current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 2px;
  border-radius: var(--lp-radius-pill);
  background: var(--ydai-color-brand);
  opacity: 0.9;
}

.link-profit-page-shell .topbar-nav a:hover {
  color: var(--lp-color-text-primary);
}

.link-profit-page-shell .topbar-meta {
  color: var(--ydai-header-meta-color);
  font-size: var(--lp-font-size-sm);
}

.link-profit-page-shell .hero.link-profit-hero {
  padding: var(--lp-space-3) var(--lp-space-4);
  margin-bottom: 14px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-color-border-soft);
  background: color-mix(in srgb, var(--lp-color-bg-card) 78%, transparent);
  box-shadow: var(--lp-shadow-sm);
  backdrop-filter: blur(12px);
}

.link-profit-page-shell .hero.link-profit-hero::after {
  display: none;
}

.link-profit-page-shell .hero .eyebrow {
  margin: 0 0 6px;
  font-size: var(--lp-font-size-sm);
  letter-spacing: 0;
  color: var(--lp-color-text-tertiary);
  font-weight: var(--lp-font-weight-medium);
}

.link-profit-page-shell .hero h1 {
  font-size: calc(var(--lp-font-size-lg) + 2px);
  line-height: 1.35;
  font-weight: var(--lp-font-weight-semibold);
  letter-spacing: 0;
  color: var(--lp-color-text-primary);
}

.link-profit-page-shell .hero p,
.link-profit-page-shell #metaText {
  margin-top: 4px;
  font-size: var(--lp-font-size-sm);
  color: var(--lp-color-text-tertiary);
  max-width: none;
}

.link-profit-page-shell .hero-actions .button.primary {
  min-height: 36px;
  padding: var(--lp-space-2) var(--lp-space-3);
  border-radius: calc(var(--lp-radius-sm) + 2px);
  background: color-mix(in srgb, var(--lp-color-bg-card) 96%, transparent);
  border: 1px solid var(--lp-color-border-soft);
  color: var(--lp-color-neutral);
  box-shadow: var(--lp-shadow-xs);
  transition:
    transform var(--lp-transition-fast),
    box-shadow var(--lp-transition-fast),
    border-color var(--lp-transition-fast);
}

.link-profit-page-grid {
  gap: 16px;
}

.link-profit-page-shell .wrap {
  max-width: var(--lp-page-max-width);
  padding: var(--lp-page-padding-y) var(--lp-page-padding-x);
}

.link-profit-page-grid .panel,
.link-profit-loading-stack .panel,
.link-profit-main-panel,
#linkProfitDetailMetaRoot .panel {
  background: var(--lp-gradient-card-soft);
  border: 1px solid var(--lp-color-border-soft);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-shadow-sm);
  backdrop-filter: none;
  overflow: hidden;
  transition:
    transform var(--lp-transition-base),
    box-shadow var(--lp-transition-base),
    border-color var(--lp-transition-base);
}

.link-profit-page-grid .panel > .panel-body {
  padding: var(--lp-space-4);
}

.link-profit-table-head h2,
.upload-center-table-head h2 {
  font-size: var(--lp-font-size-md);
  font-weight: var(--lp-font-weight-semibold);
  color: var(--lp-color-text-primary);
}

.link-profit-table-head .muted.small,
.upload-center-table-head .muted.small {
  font-size: var(--lp-font-size-sm);
  color: var(--lp-color-text-tertiary);
}

.link-profit-summary-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.link-profit-summary-panel > .panel-body {
  padding: 0 !important;
}

.link-profit-summary-head {
  margin-bottom: 10px;
}

.link-profit-summary-head h2 {
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-semibold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--lp-color-text-tertiary);
}

.link-profit-summary-head .muted.small {
  font-size: var(--lp-font-size-xs);
  color: var(--lp-color-text-tertiary);
  opacity: 0.82;
}

.link-profit-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.link-profit-summary-card {
  min-height: calc(var(--lp-summary-card-height) - 4px);
  padding: 14px var(--lp-space-4);
  border-radius: var(--lp-radius-lg);
  border: 1px solid color-mix(in srgb, var(--lp-color-border-soft) 92%, transparent);
  background: color-mix(in srgb, var(--lp-color-bg-card) 92%, var(--lp-color-bg-card-soft));
  box-shadow: var(--lp-shadow-xs);
}

.link-profit-summary-card .panel-label {
  font-size: var(--lp-font-size-xs);
  color: var(--lp-color-text-tertiary);
  letter-spacing: 0.01em;
}

.link-profit-summary-value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: var(--lp-font-weight-medium);
  letter-spacing: 0;
  color: var(--lp-color-text-primary);
}

.link-profit-decision-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.link-profit-decision-panel > .panel-body {
  padding: 0 !important;
}

.link-profit-decision-grid {
  gap: 16px;
}

.link-profit-decision-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--lp-decision-card-height);
  padding: var(--lp-space-5);
  border-radius: var(--lp-radius-xl);
  border: 1px solid var(--lp-color-border-soft);
  background: linear-gradient(
    135deg,
    var(--lp-color-bg-card) 0%,
    var(--lp-color-bg-card-soft) 100%
  );
  box-shadow: var(--lp-shadow-md);
  overflow: hidden;
}

.link-profit-decision-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--lp-color-neutral);
  opacity: 0.18;
}

.link-profit-decision-card.positive {
  background: linear-gradient(
    135deg,
    var(--lp-color-bg-card) 0%,
    var(--lp-color-positive-bg) 100%
  );
  border-color: color-mix(in srgb, var(--lp-color-positive) 10%, var(--lp-color-border-soft));
}

.link-profit-decision-card.positive::before {
  background: var(--lp-color-positive);
  opacity: 0.42;
}

.link-profit-decision-card.danger {
  background: linear-gradient(
    135deg,
    var(--lp-color-bg-card) 0%,
    var(--lp-color-negative-bg) 100%
  );
  border-color: color-mix(in srgb, var(--lp-color-negative) 10%, var(--lp-color-border-soft));
}

.link-profit-decision-card.danger::before {
  background: var(--lp-color-negative);
  opacity: 0.4;
}

.link-profit-decision-card.warning {
  background: linear-gradient(
    135deg,
    var(--lp-color-bg-card) 0%,
    var(--lp-color-optimize-bg) 100%
  );
  border-color: color-mix(in srgb, var(--lp-color-optimize) 12%, var(--lp-color-border-soft));
}

.link-profit-decision-card.warning::before {
  background: var(--lp-color-optimize);
  opacity: 0.4;
}

.link-profit-decision-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.link-profit-decision-title {
  font-size: var(--lp-font-size-lg);
  font-weight: var(--lp-font-weight-semibold);
  color: var(--lp-color-text-primary);
}

.link-profit-decision-reason {
  margin-top: 4px;
  font-size: var(--lp-font-size-sm);
  color: var(--lp-color-text-secondary);
}

.link-profit-decision-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lp-color-bg-card) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--lp-color-border-soft) 92%, transparent);
  font-size: 24px;
  font-weight: var(--lp-font-weight-bold);
  line-height: 1;
  color: var(--lp-color-text-primary);
}

.link-profit-decision-pill {
  min-height: 28px;
  padding: 5px var(--lp-space-3);
  border-radius: var(--lp-radius-pill);
  background: color-mix(in srgb, var(--lp-color-bg-card) 86%, transparent);
  border: 1px solid var(--lp-color-border-soft);
  color: var(--lp-color-neutral);
  font-size: var(--lp-font-size-xs);
  font-weight: var(--lp-font-weight-semibold);
}

.link-profit-decision-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  min-height: 38px;
}

.link-profit-decision-actions .button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: var(--lp-radius-sm);
  box-shadow: none;
}

.link-profit-decision-actions {
  margin-top: auto;
  padding-top: 14px;
}

.link-profit-toolbar .filter label {
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-medium);
  color: var(--lp-color-text-tertiary);
}

.link-profit-toolbar .select,
.link-profit-toolbar .input {
  min-height: 40px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-color-border-soft);
  background: var(--lp-color-bg-card);
  box-shadow: var(--lp-shadow-xs);
  transition:
    border-color var(--lp-transition-fast),
    box-shadow var(--lp-transition-fast),
    transform var(--lp-transition-fast);
}

.link-profit-main-panel {
  border-radius: var(--lp-radius-xl);
  border-color: color-mix(in srgb, var(--lp-color-border-soft) 88%, white);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lp-color-bg-card) 98%, white) 0%,
    var(--lp-color-bg-card) 100%
  );
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.link-profit-table-wrap {
  padding: 10px 12px 10px;
}

.link-profit-side-stack {
  gap: 12px;
}

.link-profit-side-stack > #linkProfitDetailDrawerRoot,
.link-profit-side-stack > #linkProfitDetailMetaRoot {
  width: 100%;
}

.link-profit-side-stack > #linkProfitDetailDrawerRoot {
  position: sticky;
  top: calc(var(--lp-header-height) + 16px);
}

.link-profit-table-wrap th {
  height: var(--link-profit-head-height);
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-semibold);
  color: var(--lp-color-text-tertiary);
  background: transparent;
}

.link-profit-table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.link-profit-table-wrap td {
  height: var(--lp-table-row-height);
  font-size: var(--lp-font-size-md);
  color: var(--lp-color-text-primary);
}

.link-profit-page-grid table th:nth-child(2),
.link-profit-page-grid table td:nth-child(2) {
  width: 112px;
}

.link-profit-page-grid table th:nth-child(3),
.link-profit-page-grid table td:nth-child(3) {
  width: 96px;
}

.link-profit-page-grid table th:nth-child(4),
.link-profit-page-grid table td:nth-child(4) {
  width: 84px;
}

.link-profit-page-grid table th:nth-child(5),
.link-profit-page-grid table td:nth-child(5),
.link-profit-page-grid table th:nth-child(6),
.link-profit-page-grid table td:nth-child(6),
.link-profit-page-grid table th:nth-child(7),
.link-profit-page-grid table td:nth-child(7),
.link-profit-page-grid table th:nth-child(8),
.link-profit-page-grid table td:nth-child(8) {
  width: 120px;
}

.link-profit-page-grid table th:nth-child(9),
.link-profit-page-grid table td:nth-child(9) {
  width: 72px;
}

.link-profit-page-grid table th:nth-child(10),
.link-profit-page-grid table td:nth-child(10) {
  width: 84px;
}

.link-profit-page-grid table tbody tr[data-link-profit-row] {
  box-shadow: none;
}

.link-profit-product-thumb {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: var(--lp-product-image-radius);
  margin-right: 0;
  box-shadow: var(--lp-shadow-xs);
  object-fit: cover;
  overflow: hidden;
}

.link-profit-product-title {
  font-size: 13px;
  font-weight: var(--lp-product-title-font-weight);
  color: var(--lp-color-text-primary);
}

.link-profit-product-id {
  font-size: 11px;
  color: var(--lp-product-id-color);
}

.link-profit-detail-panel {
  background: var(--lp-gradient-card-soft);
  border: 1px solid var(--lp-color-border-soft);
  box-shadow: var(--lp-shadow-sm);
}

#linkProfitDetailMetaRoot .panel {
  background: var(--lp-gradient-card-soft);
  border: 1px solid var(--lp-color-border-soft);
  box-shadow: var(--lp-shadow-sm);
}

.link-profit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: var(--lp-status-padding-y) var(--lp-status-padding-x);
  font-size: var(--lp-status-font-size);
  font-weight: var(--lp-status-font-weight);
  opacity: var(--lp-status-opacity);
  border: 1px solid transparent;
  border-radius: var(--lp-radius-pill);
  box-shadow: none;
  white-space: nowrap;
}

.link-profit-badge.scale {
  color: var(--lp-color-positive);
  background: var(--lp-color-positive-bg);
  border-color: color-mix(in srgb, var(--lp-color-positive) 14%, var(--lp-color-border-soft));
}

.link-profit-badge.stop {
  color: var(--lp-color-negative);
  background: var(--lp-color-negative-bg);
  border-color: color-mix(in srgb, var(--lp-color-negative) 18%, var(--lp-color-border-soft));
}

.link-profit-badge.observe {
  color: var(--lp-color-warning);
  background: #fff7ed;
  border-color: color-mix(in srgb, var(--lp-color-warning) 16%, var(--lp-color-border-soft));
}

.link-profit-badge.risk {
  color: #a16207;
  background: #fefce8;
  border-color: color-mix(in srgb, #eab308 20%, var(--lp-color-border-soft));
}

.link-profit-badge.muted {
  color: var(--lp-color-text-secondary);
  background: var(--lp-color-bg-muted);
  border-color: var(--lp-color-border-soft);
}

.link-profit-split-shell {
  grid-template-columns: minmax(0, 1fr) var(--lp-right-panel-width);
  gap: 16px;
}

.link-profit-detail-panel {
  border-radius: var(--lp-radius-xl);
  border: 1px solid var(--lp-color-border-soft);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lp-color-bg-card) 96%, var(--lp-color-bg-card-soft)) 0%,
    var(--lp-color-bg-card) 100%
  );
  box-shadow: var(--lp-shadow-xs);
  overflow: hidden;
}

.link-profit-detail-body {
  gap: 10px;
  padding: 14px;
  max-height: none;
}

.link-profit-detail-top {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
}

.link-profit-detail-thumb {
  width: 84px;
  height: 84px;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: var(--lp-radius-md);
  object-fit: cover;
  overflow: hidden;
}

.link-profit-detail-thumb.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef4ff 0%, #e5eefb 100%);
  border: 1px solid rgba(151, 176, 214, 0.2);
  color: #6f84a4;
}

.link-profit-detail-placeholder-icon {
  position: relative;
  width: 24px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid currentColor;
  opacity: 0.78;
}

.link-profit-detail-placeholder-icon::before,
.link-profit-detail-placeholder-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.link-profit-detail-placeholder-icon::before {
  top: 3px;
  right: 3px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.link-profit-detail-placeholder-icon::after {
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0% 100%, 34% 36%, 56% 72%, 76% 48%, 100% 100%);
  opacity: 0.88;
}

.link-profit-detail-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--lp-color-text-primary);
}

.link-profit-detail-heading {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-color-text-tertiary);
}

.link-profit-detail-copy {
  gap: 6px;
}

.link-profit-detail-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.link-profit-detail-meta-row .link-profit-action-tag {
  min-width: 0;
}

.link-profit-detail-meta-row .link-profit-badge {
  transform: translateY(1px);
}

.link-profit-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.link-profit-detail-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 62px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid color-mix(in srgb, var(--lp-color-border-soft) 88%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lp-color-bg-card) 94%, white) 0%,
    color-mix(in srgb, var(--lp-color-bg-muted) 78%, white) 100%
  );
  padding: 11px 14px 10px;
  box-shadow: var(--lp-shadow-xs);
}

.link-profit-detail-card.link-profit-detail-card-full {
  grid-column: 1 / -1;
}

.link-profit-detail-value {
  display: block;
  font-size: 16px;
  font-weight: var(--lp-font-weight-semibold);
  color: var(--lp-color-text-primary);
  font-variant-numeric: tabular-nums;
  text-align: left;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  height: auto;
  transform: none;
}

.link-profit-detail-value-slot {
  display: block;
  width: 100%;
  min-width: 0;
}

.link-profit-detail-card-meta {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
}

.link-profit-detail-label {
  display: block;
  color: color-mix(in srgb, var(--lp-color-text-tertiary) 92%, white);
  font-size: 11px;
  font-weight: var(--lp-font-weight-medium);
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0.01em;
  margin-bottom: 7px;
}

.link-profit-detail-minor {
  display: grid;
  gap: 2px;
  padding: 0 2px;
  opacity: 0.65;
}

#linkProfitDetailMetaRoot .table-head h2 {
  font-size: 13px;
  font-weight: var(--lp-font-weight-semibold);
  color: var(--lp-color-text-tertiary);
}

#linkProfitDetailMetaRoot .panel {
  background: color-mix(in srgb, var(--lp-color-bg-card) 88%, var(--lp-color-bg-card-soft));
  border-color: color-mix(in srgb, var(--lp-color-border-soft) 94%, transparent);
  box-shadow: none;
}

#linkProfitDetailMetaRoot .link-profit-detail-grid {
  grid-template-columns: 1fr;
}

#linkProfitDetailMetaRoot .link-profit-detail-card {
  border-radius: var(--lp-radius-md);
  border: 1px solid color-mix(in srgb, var(--lp-color-border-soft) 92%, transparent);
  background: color-mix(in srgb, var(--lp-color-bg-card) 96%, white);
  padding: 10px var(--lp-space-3);
  height: auto;
  min-height: 58px;
  box-shadow: none;
}

#linkProfitDetailMetaRoot .link-profit-detail-value {
  font-size: 14px;
  font-weight: var(--lp-font-weight-medium);
  color: var(--lp-color-neutral);
  line-height: 1.2;
}

#linkProfitDetailMetaRoot .link-profit-detail-label {
  color: color-mix(in srgb, var(--lp-color-text-tertiary) 94%, white);
  margin-bottom: 6px;
}

#linkProfitDetailMetaRoot .button.primary {
  min-height: 34px;
  padding: 7px var(--lp-space-3);
  border-radius: calc(var(--lp-radius-sm) + 2px);
  background: var(--lp-color-bg-muted);
  border: 1px solid var(--lp-color-border-soft);
  color: var(--lp-color-neutral);
  box-shadow: var(--lp-shadow-xs);
}

.link-profit-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 14px;
  border-top: 1px solid color-mix(in srgb, var(--lp-color-border-soft) 92%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lp-color-bg-card) 70%, transparent) 0%,
    color-mix(in srgb, var(--lp-color-bg-card-soft) 72%, white) 100%
  );
  border-bottom-left-radius: var(--lp-radius-xl);
  border-bottom-right-radius: var(--lp-radius-xl);
}

.link-profit-pagination-meta {
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-medium);
}

.link-profit-pagination-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.link-profit-table-footer .button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--lp-radius-sm);
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-semibold);
  box-shadow: none;
}

.link-profit-table-footer .button.ghost {
  background: color-mix(in srgb, var(--lp-color-bg-card) 94%, transparent);
  border-color: var(--lp-color-border-soft);
  color: var(--lp-color-text-secondary);
}

.link-profit-table-footer .button.ghost:hover {
  background: var(--lp-color-bg-card);
  border-color: color-mix(in srgb, var(--lp-color-text-tertiary) 22%, var(--lp-color-border-soft));
}

.link-profit-table-footer .button.primary {
  background: color-mix(in srgb, var(--lp-color-bg-muted) 86%, white);
  border-color: color-mix(in srgb, var(--ydai-color-brand) 18%, var(--lp-color-border-soft));
  color: var(--lp-color-text-primary);
}

.link-profit-table-footer .button:disabled {
  opacity: 0.42;
  background: color-mix(in srgb, var(--lp-color-bg-muted) 90%, white);
  color: var(--lp-color-text-tertiary);
  border-color: var(--lp-color-border-soft);
}

.link-profit-details {
  margin-top: 0;
  border-radius: var(--lp-radius-md);
  border: 1px solid var(--lp-color-border-soft);
  background: var(--lp-color-bg-card);
  box-shadow: var(--lp-shadow-xs);
}

.link-profit-details summary {
  padding: 14px var(--lp-space-4);
  font-size: 13px;
  font-weight: var(--lp-font-weight-semibold);
  color: var(--lp-color-neutral);
}

.link-profit-details summary::-webkit-details-marker {
  display: none;
}

.link-profit-bottom-stack {
  gap: 12px;
  padding: 0 0 4px;
}

.link-profit-batch-card,
.upload-center-batch-card,
.link-profit-alert-card,
.link-profit-meta-card,
.link-profit-quality-card,
.link-profit-batch-source-card,
.link-profit-issue-detail-panel {
  border-radius: var(--lp-radius-md);
  border: 1px solid var(--lp-color-border-soft);
  background: var(--lp-color-bg-card);
  box-shadow: var(--lp-shadow-sm);
}

.link-profit-batch-value,
.upload-center-batch-value,
.link-profit-alert-main,
.link-profit-meta-main,
.link-profit-quality-value {
  font-size: 18px;
  font-weight: var(--lp-font-weight-semibold);
  color: var(--lp-color-text-primary);
}

@keyframes link-profit-skeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -20% 0;
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-brand .brand-lockup-full {
    display: none;
  }

  .topbar-brand .brand-lockup-compact {
    display: inline-flex;
  }

  .user-panel {
    right: auto;
    left: 0;
  }

  .layout-grid,
  .layout-grid.equal {
    grid-template-columns: 1fr;
  }

  .status-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-top,
  .toolbar {
    align-items: stretch;
  }

  .access-drawer {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }

  .link-master-layout {
    grid-template-columns: 1fr;
  }

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

  .master-grid-span-2 {
    grid-column: span 1;
  }

  .link-profit-header-grid {
    grid-template-columns: 1fr;
  }

  .link-profit-header-bar,
  .link-profit-batch-grid,
  .upload-center-batch-grid {
    grid-template-columns: 1fr;
  }

  .link-profit-toolbar .filters,
  .upload-center-toolbar .filters {
    grid-template-columns: 1fr 1fr;
  }

  .link-profit-summary-grid,
  .link-profit-decision-grid {
    grid-template-columns: 1fr;
  }

  .link-profit-alert-card-wide,
  .upload-center-alert-card-wide {
    grid-column: span 1;
  }

  .link-profit-split-shell {
    grid-template-columns: 1fr;
  }

  .link-profit-detail-panel {
    max-height: none;
  }

  .link-profit-detail-top,
  .link-profit-detail-grid {
    grid-template-columns: 1fr;
  }

  #linkProfitDetailMetaRoot .link-profit-detail-grid {
    grid-template-columns: 1fr;
  }

  .link-profit-detail-header {
    flex-direction: column;
  }

  .link-profit-detail-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .link-profit-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .link-profit-pagination-actions {
    justify-content: flex-start;
  }
}

.dashboard-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #101a24;
  color: #f4f7fb;
  box-shadow: 0 12px 32px rgba(7, 15, 26, 0.3);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dashboard-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-toast.warn {
  background: #3c251d;
  border-color: rgba(220, 116, 76, 0.5);
}

.dashboard-toast.info {
  background: #17242e;
  border-color: rgba(73, 171, 146, 0.55);
}
 .link-base-workbench,
 .order-base-workbench {
   display: grid;
   gap: 24px;
 }
 
 .page-main-grid {
   display: grid;
   grid-template-columns: minmax(0, 1fr) 340px;
   gap: 20px;
   align-items: start;
 }
 
 .page-left-stack {
   display: grid;
   gap: 20px;
   min-width: 0;
 }
 
 .page-detail-rail {
   position: sticky;
   top: 92px;
   align-self: start;
 }

 .page-detail-panel {
   position: relative;
   max-height: calc(100vh - 112px);
 }

.page-detail-panel::before,
.page-detail-panel::after {
  content: none;
}
 
 .page-detail-panel .panel-body {
   display: grid;
   gap: 16px;
   max-height: calc(100vh - 176px);
   overflow: auto;
   overscroll-behavior: contain;
 }
 
.page-detail-top,
.object-summary-header {
  display: grid;
}

.page-detail-top {
  gap: 6px;
}

.object-summary-header {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.object-summary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
 
 .page-detail-heading {
   color: var(--lp-color-text-tertiary);
   font-size: var(--lp-font-size-sm);
   font-weight: var(--lp-font-weight-semibold);
 }
 
.page-detail-title {
  color: var(--lp-color-text-primary);
  font-size: var(--lp-font-size-lg);
  font-weight: var(--lp-font-weight-semibold);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
 
.page-detail-sub {
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  line-height: 1.2;
}

.object-summary-support {
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  line-height: 1.2;
}

.object-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.object-summary-media {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: var(--lp-product-image-radius);
}
 
 .page-detail-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 12px;
 }
 
.page-detail-card {
  border: 1px solid var(--lp-color-border-soft);
  border-radius: var(--lp-radius-md);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lp-color-bg-card) 96%, var(--lp-color-bg-card-soft)) 0%,
    var(--lp-color-bg-card) 100%
  );
  padding: 12px;
  display: grid;
  gap: 6px;
  box-shadow: var(--lp-shadow-xs);
}

.page-detail-card.full {
  grid-column: 1 / -1;
}
 
 .page-detail-card:nth-child(1),
 .page-detail-card:nth-child(2),
 .page-detail-card:nth-child(6),
 .page-detail-card:nth-child(12),
 .page-detail-card:nth-child(18) {
   grid-column: 1 / -1;
 }
 
 .page-detail-label {
   color: var(--lp-color-text-tertiary);
   font-size: var(--lp-font-size-sm);
   font-weight: var(--lp-font-weight-medium);
 }
 
 .page-detail-value {
   color: var(--lp-color-text-primary);
   font-size: var(--lp-font-size-md);
   font-weight: var(--lp-font-weight-medium);
   word-break: break-word;
 }
 
.page-detail-empty {
  border: 1px dashed var(--lp-color-border-soft);
  border-radius: var(--lp-radius-md);
  background: var(--lp-color-bg-card-soft);
  color: var(--lp-color-text-secondary);
  padding: 16px;
  font-size: var(--lp-font-size-md);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: var(--lp-radius-pill);
  border: 1px solid transparent;
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-medium);
  white-space: nowrap;
}

.status-badge--neutral {
  color: var(--lp-color-text-secondary);
  background: var(--lp-color-bg-muted);
  border-color: var(--lp-color-border-soft);
}

.status-badge--positive {
  color: var(--lp-color-positive);
  background: var(--lp-color-positive-bg);
  border-color: color-mix(in srgb, var(--lp-color-positive) 14%, var(--lp-color-border-soft));
}

.status-badge--warning {
  color: var(--lp-color-warning);
  background: color-mix(in srgb, var(--lp-color-warning-bg) 82%, white);
  border-color: color-mix(in srgb, var(--lp-color-warning) 16%, var(--lp-color-border-soft));
}

.status-badge--negative {
  color: var(--lp-color-negative);
  background: var(--lp-color-negative-bg);
  border-color: color-mix(in srgb, var(--lp-color-negative) 18%, var(--lp-color-border-soft));
}

.product-cell-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-cell-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shared-product-cell {
  min-width: 0;
}

.link-base-workbench .shared-product-cell,
.order-base-workbench .shared-product-cell {
  min-height: var(--lp-product-cell-height);
}

.product-cell-stack .product-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-media-slot,
.product-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lp-color-bg-card-soft);
  border: 1px solid var(--lp-color-border-soft);
  box-shadow: var(--lp-shadow-xs);
}

.object-media-slot.object-summary-media {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: var(--lp-product-image-radius);
}

.object-media-thumb,
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.object-summary-media .object-media-thumb {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.page-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--lp-space-4);
  min-height: 72px;
  padding: 14px var(--lp-space-5) 16px;
  border-top: 1px solid color-mix(in srgb, var(--lp-color-border-soft) 52%, transparent);
}

.page-pagination-summary {
  display: grid;
  gap: 4px;
  align-self: center;
}

.page-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--lp-space-3);
}

.page-sort-meta {
  color: var(--lp-color-text-tertiary);
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-medium);
}

.page-pagination-size {
  display: inline-flex;
  align-items: center;
  gap: var(--lp-space-2);
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-medium);
}

.page-pagination-size .input {
  min-height: 34px;
  min-width: 72px;
  width: 72px;
  padding: 6px 10px;
  border-radius: var(--lp-radius-sm);
  box-shadow: none;
}

.page-pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: var(--lp-space-2);
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-medium);
}

.page-pagination-jump .input {
  min-height: 34px;
  width: 84px;
  padding: 6px 12px;
}
 
.object-media-thumb.placeholder,
.product-img-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f84a4;
  background: linear-gradient(180deg, #eef4ff 0%, #e5eefb 100%);
  border: 1px solid rgba(151, 176, 214, 0.2);
  font-size: var(--lp-font-size-sm);
  font-weight: var(--lp-font-weight-medium);
}

.object-summary-media .object-media-thumb.placeholder {
  padding: 8px;
  box-sizing: border-box;
}

.object-media-thumb.placeholder .link-profit-product-placeholder-icon,
.product-img-placeholder .link-profit-product-placeholder-icon {
  width: 18px;
  height: 14px;
}

.object-summary-media .object-media-thumb.placeholder .link-profit-product-placeholder-icon {
  width: 28px;
  height: 22px;
  border-radius: 7px;
  border-width: 2px;
  opacity: 0.8;
}

.link-base-workbench table tbody tr,
.order-base-workbench table tbody tr {
  cursor: pointer;
}

.link-base-workbench table tbody tr[data-link-id],
.order-base-workbench table tbody tr[data-order-id] {
  height: var(--link-profit-row-height);
}

.link-base-workbench table th:nth-child(1),
.link-base-workbench table td:nth-child(1) {
  width: 400px;
}

.link-base-workbench table th:nth-child(2),
.link-base-workbench table td:nth-child(2) {
  width: 96px;
}

.link-base-workbench table th:nth-child(3),
.link-base-workbench table td:nth-child(3) {
  width: 200px;
}

.link-base-workbench table th:nth-child(4),
.link-base-workbench table td:nth-child(4) {
  width: 150px;
}

.link-base-workbench table th:nth-child(5),
.link-base-workbench table td:nth-child(5),
.link-base-workbench table th:nth-child(6),
.link-base-workbench table td:nth-child(6),
.link-base-workbench table th:nth-child(7),
.link-base-workbench table td:nth-child(7),
.link-base-workbench table th:nth-child(8),
.link-base-workbench table td:nth-child(8) {
  width: 120px;
}

.order-base-workbench table th:nth-child(1),
.order-base-workbench table td:nth-child(1) {
  width: 380px;
}

.order-base-workbench table th:nth-child(2),
.order-base-workbench table td:nth-child(2) {
  width: 160px;
}

.order-base-workbench table th:nth-child(3),
.order-base-workbench table td:nth-child(3) {
  width: 96px;
}

.order-base-workbench table th:nth-child(4),
.order-base-workbench table td:nth-child(4) {
  width: 108px;
}

.order-base-workbench table th:nth-child(5),
.order-base-workbench table td:nth-child(5) {
  width: 132px;
}

.order-base-workbench table th:nth-child(6),
.order-base-workbench table td:nth-child(6) {
  width: 76px;
}

.order-base-workbench table th:nth-child(7),
.order-base-workbench table td:nth-child(7),
.order-base-workbench table th:nth-child(8),
.order-base-workbench table td:nth-child(8),
.order-base-workbench table th:nth-child(9),
.order-base-workbench table td:nth-child(9) {
  width: 104px;
}

.order-base-workbench table th:nth-child(10),
.order-base-workbench table td:nth-child(10) {
  width: 96px;
}

.link-base-workbench table thead th,
.order-base-workbench table thead th {
  height: var(--lp-header-height);
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
}

.link-base-workbench table thead::after,
.order-base-workbench table thead::after {
  content: "";
  display: block;
  height: var(--link-profit-table-row-gap);
}

.link-base-workbench table tbody td,
.order-base-workbench table tbody td {
  color: #29445f;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
  border-top: 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: var(--lp-shadow-xs);
}

.link-base-workbench .link-profit-table-wrap,
.order-base-workbench .link-profit-table-wrap {
  min-height: calc(var(--lp-header-height) + var(--link-profit-table-row-gap) + (10 * var(--link-profit-row-height)) + 2px);
}

.link-base-workbench table tbody tr[data-link-id] + tr[data-link-id] td,
.order-base-workbench table tbody tr[data-order-id] + tr[data-order-id] td {
  border-top: 10px solid transparent;
  background-clip: padding-box;
}


.link-base-workbench table tbody td + td,
.order-base-workbench table tbody td + td {
  border-left: 1px solid color-mix(in srgb, var(--lp-color-border-soft) 22%, transparent);
}

.link-base-workbench table thead th:first-child,
.link-base-workbench table tbody td:first-child,
.order-base-workbench table thead th:first-child,
.order-base-workbench table tbody td:first-child {
  text-align: left;
}

.link-base-workbench table thead th:nth-child(2),
.link-base-workbench table thead th:nth-child(3),
.link-base-workbench table thead th:nth-child(4),
.link-base-workbench table thead th:nth-child(5),
.link-base-workbench table thead th:nth-child(6),
.link-base-workbench table thead th:nth-child(8) {
  text-align: center;
}

.link-base-workbench table thead th:nth-child(7),
.link-base-workbench table tbody td:nth-child(7),
.order-base-workbench table thead th:nth-child(4),
.order-base-workbench table tbody td:nth-child(4) {
  text-align: center;
}

.link-base-workbench table thead th:nth-child(2),
.link-base-workbench table thead th:nth-child(3),
.link-base-workbench table thead th:nth-child(4),
.link-base-workbench table thead th:nth-child(5),
.link-base-workbench table thead th:nth-child(6),
.link-base-workbench table thead th:nth-child(8),
.link-base-workbench table tbody td:nth-child(2),
.link-base-workbench table tbody td:nth-child(3),
.link-base-workbench table tbody td:nth-child(4),
.link-base-workbench table tbody td:nth-child(5),
.link-base-workbench table tbody td:nth-child(6),
.link-base-workbench table tbody td:nth-child(8),
.order-base-workbench table thead th:nth-child(2),
.order-base-workbench table thead th:nth-child(3),
.order-base-workbench table thead th:nth-child(5),
.order-base-workbench table thead th:nth-child(6),
.order-base-workbench table thead th:nth-child(7),
.order-base-workbench table thead th:nth-child(8),
.order-base-workbench table thead th:nth-child(9),
.order-base-workbench table thead th:nth-child(10),
.order-base-workbench table tbody td:nth-child(2),
.order-base-workbench table tbody td:nth-child(3),
.order-base-workbench table tbody td:nth-child(5),
.order-base-workbench table tbody td:nth-child(6),
.order-base-workbench table tbody td:nth-child(7),
.order-base-workbench table tbody td:nth-child(8),
.order-base-workbench table tbody td:nth-child(9),
.order-base-workbench table tbody td:nth-child(10) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.link-base-workbench table tbody td:first-child,
.order-base-workbench table tbody td:first-child {
  border-top-left-radius: var(--lp-radius-lg);
  border-bottom-left-radius: var(--lp-radius-lg);
}

.link-base-workbench table tbody td:last-child,
.order-base-workbench table tbody td:last-child {
  border-top-right-radius: var(--lp-radius-lg);
  border-bottom-right-radius: var(--lp-radius-lg);
}

.link-base-workbench table tbody tr:hover td,
.order-base-workbench table tbody tr:hover td {
  background: color-mix(in srgb, var(--lp-color-row-hover) 92%, white);
  box-shadow: var(--lp-shadow-sm);
}

.link-base-workbench table tbody tr.page-row-selected td,
.order-base-workbench table tbody tr.page-row-selected td {
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.96), rgba(239, 245, 251, 0.94));
  box-shadow: var(--lp-shadow-sm);
}

.link-base-workbench table tbody tr.page-row-selected td + td,
.order-base-workbench table tbody tr.page-row-selected td + td {
  border-left-color: color-mix(in srgb, #dfe8f2 30%, transparent);
}

.page-detail-panel {
  border-radius: var(--lp-radius-xl);
  border: 1px solid var(--lp-color-border-soft);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lp-color-bg-card) 96%, var(--lp-color-bg-card-soft)) 0%,
    var(--lp-color-bg-card) 100%
  );
  box-shadow: var(--lp-shadow-xs);
  overflow: hidden;
}

.link-base-page-shell,
.order-base-page-shell,
.upload-center-page-shell,
.push-center-page-shell {
   font-family: var(--lp-font-family-base);
   background:
     radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 26%),
     radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 22%),
     linear-gradient(180deg, #fafcff 0%, var(--lp-color-bg-page) 100%);
   color: var(--lp-color-text-primary);
 }

.link-base-page-shell .topbar,
.order-base-page-shell .topbar,
.upload-center-page-shell .topbar,
.push-center-page-shell .topbar {
   min-height: var(--lp-header-height);
   background: color-mix(in srgb, var(--lp-color-bg-card) 88%, transparent);
   color: var(--lp-color-neutral);
   border-bottom: 1px solid var(--lp-color-border-soft);
   box-shadow: none;
   backdrop-filter: blur(18px);
 }

.link-base-page-shell .topbar-inner,
.order-base-page-shell .topbar-inner,
.upload-center-page-shell .topbar-inner,
.push-center-page-shell .topbar-inner {
   min-height: var(--lp-header-height);
   height: var(--lp-header-height);
   padding-top: 0;
   padding-bottom: 0;
   align-items: stretch;
 }

.link-base-page-shell .topbar-brand,
.link-base-page-shell .topbar-meta,
.order-base-page-shell .topbar-brand,
.order-base-page-shell .topbar-meta,
.upload-center-page-shell .topbar-brand,
.upload-center-page-shell .topbar-meta,
.push-center-page-shell .topbar-brand,
.push-center-page-shell .topbar-meta {
   color: var(--lp-color-text-tertiary);
 }

.link-base-page-shell .topbar-nav,
.order-base-page-shell .topbar-nav,
.upload-center-page-shell .topbar-nav,
.push-center-page-shell .topbar-nav {
   gap: 16px;
   margin-left: 20px;
   align-items: stretch;
 }

.link-base-page-shell .topbar-nav a,
.order-base-page-shell .topbar-nav a,
.upload-center-page-shell .topbar-nav a,
.push-center-page-shell .topbar-nav a {
   position: relative;
   display: inline-flex;
   align-items: center;
   align-self: center;
   color: var(--lp-color-text-secondary);
   font-size: var(--lp-font-size-md);
   font-weight: var(--lp-font-weight-medium);
   padding: 0;
 }

.link-base-page-shell .topbar-brand .brand-mark,
.order-base-page-shell .topbar-brand .brand-mark,
.upload-center-page-shell .topbar-brand .brand-mark,
.push-center-page-shell .topbar-brand .brand-mark {
   color: var(--ydai-color-brand);
 }

.link-base-page-shell .topbar-brand .brand-sub,
.order-base-page-shell .topbar-brand .brand-sub,
.upload-center-page-shell .topbar-brand .brand-sub,
.push-center-page-shell .topbar-brand .brand-sub {
   color: var(--ydai-color-brand-muted);
   opacity: 1;
 }

.link-base-page-shell .topbar-nav a.current,
.order-base-page-shell .topbar-nav a.current,
.upload-center-page-shell .topbar-nav a.current,
.push-center-page-shell .topbar-nav a.current {
   color: var(--ydai-header-nav-current-color);
   font-weight: var(--lp-font-weight-semibold);
   padding-bottom: 2px;
 }

.link-base-page-shell .topbar-nav a.current::after,
.order-base-page-shell .topbar-nav a.current::after,
.upload-center-page-shell .topbar-nav a.current::after,
.push-center-page-shell .topbar-nav a.current::after {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: -16px;
   height: 2px;
   border-radius: 999px;
   background: var(--ydai-color-brand);
 }

.link-base-page-shell .topbar-nav a:hover,
.order-base-page-shell .topbar-nav a:hover,
.upload-center-page-shell .topbar-nav a:hover,
.push-center-page-shell .topbar-nav a:hover {
   color: var(--lp-color-text-primary);
 }

.link-base-page-shell .topbar-actions,
.order-base-page-shell .topbar-actions,
.upload-center-page-shell .topbar-actions,
.push-center-page-shell .topbar-actions {
   color: var(--ydai-header-meta-color);
 }

.link-base-page-shell .topbar-meta,
.order-base-page-shell .topbar-meta,
.upload-center-page-shell .topbar-meta,
.push-center-page-shell .topbar-meta {
   color: var(--ydai-header-meta-color);
   font-size: var(--lp-font-size-sm);
 }

.link-base-page-shell .wrap,
.order-base-page-shell .wrap,
.upload-center-page-shell .wrap,
.push-center-page-shell .wrap {
   max-width: var(--lp-page-max-width);
   padding: var(--lp-page-padding-y) var(--lp-page-padding-x);
 }

.link-base-page-shell .hero,
.order-base-page-shell .hero,
.upload-center-page-shell .hero,
.push-center-page-shell .hero {
   padding: var(--lp-space-3) var(--lp-space-4);
   margin-bottom: 14px;
   border-radius: var(--lp-radius-lg);
   border: 1px solid var(--lp-color-border-soft);
   background: color-mix(in srgb, var(--lp-color-bg-card) 78%, transparent);
   box-shadow: var(--lp-shadow-sm);
 }

.link-base-page-shell .hero .eyebrow,
.order-base-page-shell .hero .eyebrow,
.upload-center-page-shell .hero .eyebrow,
.push-center-page-shell .hero .eyebrow {
   margin: 0 0 6px;
   font-size: var(--lp-font-size-sm);
   letter-spacing: 0;
   color: var(--lp-color-text-tertiary);
   font-weight: var(--lp-font-weight-medium);
 }

.link-base-page-shell .hero h1,
.order-base-page-shell .hero h1,
.upload-center-page-shell .hero h1,
.push-center-page-shell .hero h1 {
   font-size: calc(var(--lp-font-size-lg) + 2px);
   line-height: 1.35;
   font-weight: var(--lp-font-weight-semibold);
   letter-spacing: 0;
   color: var(--lp-color-text-primary);
 }

.link-base-page-shell .hero p,
.link-base-page-shell #metaText,
.order-base-page-shell .hero p,
.order-base-page-shell #metaText,
.upload-center-page-shell .hero p,
.upload-center-page-shell #metaText,
.push-center-page-shell .hero p,
.push-center-page-shell #metaText {
   margin-top: 4px;
   font-size: var(--lp-font-size-sm);
   color: var(--lp-color-text-tertiary);
   max-width: none;
 }

.link-base-page-shell .hero-actions .button.primary,
.order-base-page-shell .hero-actions .button.primary,
.upload-center-page-shell .hero-actions .button.primary,
.push-center-page-shell .hero-actions .button.primary {
   min-height: 36px;
   padding: var(--lp-space-2) var(--lp-space-3);
   border-radius: calc(var(--lp-radius-sm) + 2px);
   background: color-mix(in srgb, var(--lp-color-bg-card) 96%, transparent);
   border: 1px solid var(--lp-color-border-soft);
   color: var(--lp-color-neutral);
   box-shadow: none;
 }

.link-base-page-shell .panel,
.order-base-page-shell .panel,
.upload-center-page-shell .panel,
.push-center-page-shell .panel {
   background: var(--lp-gradient-card-soft);
   border: 1px solid var(--lp-color-border-soft);
   border-radius: var(--lp-radius-xl);
   box-shadow: var(--lp-shadow-sm);
   backdrop-filter: none;
   overflow: hidden;
 }

.link-base-page-shell .panel > .panel-body,
.order-base-page-shell .panel > .panel-body,
.upload-center-page-shell .panel > .panel-body,
.push-center-page-shell .panel > .panel-body {
   padding: var(--lp-space-4);
 }

.link-base-page-shell .table-head h2,
.order-base-page-shell .table-head h2,
.upload-center-page-shell .table-head h2,
.push-center-page-shell .table-head h2 {
   font-size: var(--lp-font-size-md);
   font-weight: var(--lp-font-weight-semibold);
   color: var(--lp-color-text-primary);
 }

.link-base-page-shell .status-banner,
.order-base-page-shell .status-banner,
.upload-center-page-shell .status-banner,
.push-center-page-shell .status-banner {
  background: color-mix(in srgb, var(--lp-color-bg-card) 86%, transparent);
  border: 1px solid var(--lp-color-border-soft);
  box-shadow: var(--lp-shadow-sm);
}

.upload-center-page-shell .upload-center-workbench {
  display: grid;
  gap: 16px;
}

.push-center-page-shell .push-center-workbench {
  display: grid;
  gap: 18px;
}

.push-center-page-shell .push-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.push-center-page-shell .push-center-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.push-center-page-shell .push-center-preview {
  padding: 8px 16px 14px;
}

.push-center-page-shell .push-center-preview-table th {
  width: 120px;
}
 
 .link-base-page-shell .table-wrap td:nth-child(2),
 .order-base-page-shell .table-wrap td:nth-child(3) {
   max-width: 320px;
 }
 
 @media (max-width: 1180px) {
  .page-main-grid {
     grid-template-columns: 1fr;
   }
 
   .page-detail-rail {
     position: static;
   }

   .push-center-page-shell .push-center-grid,
   .push-center-page-shell .push-center-form-grid {
     grid-template-columns: 1fr;
   }
 }
 
 @media (max-width: 768px) {
   .page-detail-grid {
     grid-template-columns: 1fr;
   }
 }

/* Phase 0.1 public Team Intro page styles. */
.team-intro-page-shell .wrap {
  --team-orange: #ff7a3d;
  --team-orange-soft: rgba(255, 122, 61, 0.1);
  --team-teal: #35a69a;
  --team-teal-soft: rgba(53, 166, 154, 0.08);
  --team-blue: #5b7fd6;
  --team-blue-soft: rgba(91, 127, 214, 0.09);
  --team-gold: #d89a35;
  --team-gold-soft: rgba(216, 154, 53, 0.1);
  --team-harbor: #2f6f7e;
  --team-harbor-soft: rgba(47, 111, 126, 0.1);
  --team-ink-soft: rgba(82, 102, 130, 0.08);
  display: grid;
  gap: var(--lp-space-5);
}

.team-intro-page-shell {
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 122, 61, 0.08), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(53, 166, 154, 0.06), transparent 24%),
    radial-gradient(circle at 66% 42%, rgba(91, 127, 214, 0.045), transparent 28%),
    radial-gradient(circle at 28% 78%, rgba(216, 154, 53, 0.045), transparent 24%),
    linear-gradient(rgba(102, 122, 152, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 122, 152, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff 0%, var(--lp-color-bg-page) 100%);
  background-size: auto, auto, auto, auto, 44px 44px, 44px 44px, auto;
}

.team-intro-page-shell .team-intro-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: var(--lp-space-6);
  align-items: stretch;
  min-height: 290px;
  overflow: visible;
  isolation: isolate;
  padding: var(--lp-space-3) 0 var(--lp-space-4);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 122, 61, 0.12), transparent 28%),
    radial-gradient(circle at 76% 18%, rgba(53, 166, 154, 0.08), transparent 28%),
    radial-gradient(circle at 48% 64%, rgba(91, 127, 214, 0.05), transparent 32%),
    radial-gradient(circle at 88% 88%, rgba(216, 154, 53, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.12));
  box-shadow: none;
}

.team-intro-page-shell .team-intro-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -96px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ydai-color-brand) 18%, transparent) 0%, transparent 68%);
  pointer-events: none;
}

.team-intro-page-shell .team-intro-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -40px;
  bottom: -72px;
  width: 100vw;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255, 122, 61, 0.08), transparent 38%),
    radial-gradient(ellipse at 82% 64%, rgba(53, 166, 154, 0.06), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.32));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.42) 78%, transparent 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

.team-intro-page-shell .team-intro-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--lp-space-5);
}

.team-intro-page-shell .team-intro-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--lp-color-text-primary);
}

.team-intro-page-shell .team-intro-lede {
  max-width: 720px;
  margin-top: var(--lp-space-4);
  color: var(--lp-color-text-secondary);
  font-size: calc(var(--lp-font-size-md) + 1px);
  line-height: var(--lp-line-height-loose);
}

.team-intro-page-shell .team-intro-brand-stage {
  position: relative;
  display: grid;
  place-items: center;
  gap: var(--lp-space-3);
  max-width: 820px;
  min-height: 230px;
  margin: 0 0 calc(var(--lp-space-8) + var(--lp-space-6));
  padding: var(--lp-space-5);
  border: 0;
  border-radius: var(--lp-radius-xl);
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 122, 61, 0.13), transparent 36%),
    radial-gradient(circle at 72% 30%, rgba(53, 166, 154, 0.08), transparent 30%),
    transparent;
  background-size: auto, auto, auto;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

.team-intro-page-shell .team-intro-brand-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  color: rgba(255, 122, 61, 0.055);
  font-size: clamp(112px, 13vw, 188px);
  font-weight: var(--lp-font-weight-semibold);
  letter-spacing: -0.1em;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.team-intro-page-shell .team-intro-brand-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  display: block;
  border: 1px solid rgba(255, 122, 61, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.team-intro-page-shell .team-intro-brand-ring.ring-one {
  width: 190px;
  height: 190px;
}

.team-intro-page-shell .team-intro-brand-ring.ring-two {
  width: 290px;
  height: 290px;
  border-color: rgba(53, 166, 154, 0.12);
}

.team-intro-page-shell .team-intro-planet-system {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 1;
  display: block;
  width: min(680px, 86%);
  height: 190px;
  transform: translate(-50%, -50%) rotate(-7deg);
  pointer-events: none;
}

.team-intro-page-shell .team-intro-planet-track {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(82, 99, 122, 0.12);
  border-radius: 50%;
  box-shadow:
    inset 0 0 28px rgba(255, 122, 51, 0.04),
    0 0 34px rgba(91, 127, 214, 0.035);
}

.team-intro-page-shell .team-intro-planet-runner {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

.team-intro-page-shell .team-intro-planet-dot {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: var(--planet-color);
  box-shadow:
    0 10px 22px var(--planet-glow),
    0 0 0 8px var(--planet-halo);
  transform: translateX(-50%);
}

.team-intro-page-shell .planet-owner {
  --planet-color: var(--team-orange);
  --planet-glow: rgba(255, 122, 61, 0.26);
  --planet-halo: rgba(255, 122, 61, 0.08);
  transform: rotate(12deg);
}

.team-intro-page-shell .planet-product {
  --planet-color: var(--team-teal);
  --planet-glow: rgba(53, 166, 154, 0.24);
  --planet-halo: rgba(53, 166, 154, 0.08);
  transform: rotate(102deg);
}

.team-intro-page-shell .planet-architecture {
  --planet-color: var(--team-blue);
  --planet-glow: rgba(91, 127, 214, 0.24);
  --planet-halo: rgba(91, 127, 214, 0.08);
  transform: rotate(192deg);
}

.team-intro-page-shell .planet-governance {
  --planet-color: var(--team-gold);
  --planet-glow: rgba(216, 154, 53, 0.24);
  --planet-halo: rgba(216, 154, 53, 0.08);
  transform: rotate(282deg);
}

.team-intro-page-shell .team-intro-brand-lockup {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 30px;
  border: 1px solid rgba(255, 122, 61, 0.24);
  border-radius: var(--lp-radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 48px rgba(255, 122, 61, 0.14);
}

.team-intro-page-shell .team-intro-brand-main {
  color: var(--ydai-color-brand);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: var(--ydai-brand-mark-weight);
  letter-spacing: var(--ydai-brand-mark-letter-spacing);
  line-height: 0.92;
}

.team-intro-page-shell .team-intro-brand-sub {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 var(--ydai-brand-sub-word-gap);
  color: var(--ydai-color-brand-muted);
  font-size: clamp(30px, 3.3vw, 50px);
  letter-spacing: var(--ydai-brand-sub-letter-spacing);
  line-height: 0.98;
}

.team-intro-page-shell .team-intro-brand-sub-word {
  display: inline-flex;
  align-items: baseline;
}

.team-intro-page-shell .team-intro-brand-sub-initial {
  font-weight: var(--ydai-brand-sub-initial-weight-dark);
}

.team-intro-page-shell .team-intro-brand-sub-rest {
  font-weight: var(--ydai-brand-sub-rest-weight-dark);
}

.team-intro-page-shell .team-intro-brand-stage p {
  max-width: 430px;
  margin: 0;
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  line-height: var(--lp-line-height-loose);
  text-align: center;
}

.team-intro-page-shell .team-intro-brand-principle {
  display: inline-flex;
  justify-content: center;
  color: var(--lp-color-text-primary);
  font-size: clamp(var(--lp-font-size-lg), 2vw, var(--lp-font-size-xl));
  font-weight: var(--lp-font-weight-semibold);
  letter-spacing: -0.035em;
  line-height: var(--lp-line-height-tight);
  text-align: center;
}

.team-intro-page-shell .team-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lp-space-3);
  align-items: center;
}

.team-intro-page-shell .team-intro-actions .button {
  min-height: 40px;
  border-radius: calc(var(--lp-radius-sm) + 2px);
  box-shadow: none;
  text-decoration: none;
}

.team-intro-page-shell .team-intro-actions .button.primary {
  background: var(--lp-color-text-primary);
  color: var(--lp-color-text-inverse);
  border-color: color-mix(in srgb, var(--lp-color-text-primary) 85%, transparent);
}

.team-intro-page-shell .team-intro-actions .button.ghost {
  color: var(--lp-color-text-secondary);
  background: color-mix(in srgb, var(--lp-color-bg-card) 76%, transparent);
  border-color: var(--lp-color-border-soft);
}

.team-intro-page-shell .team-intro-hero-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--lp-space-3);
  align-content: start;
  padding: var(--lp-space-4);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.team-intro-page-shell .team-intro-collab-flow {
  position: relative;
  display: grid;
  gap: var(--lp-space-3);
  margin-bottom: var(--lp-space-1);
  padding: var(--lp-space-4);
  border: 1px solid rgba(102, 122, 152, 0.14);
  border-radius: var(--lp-radius-lg);
  background:
    linear-gradient(135deg, var(--team-orange-soft), transparent 42%),
    rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.team-intro-page-shell .team-intro-collab-flow .kicker {
  margin-bottom: 0;
}

.team-intro-page-shell .team-intro-flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lp-space-2);
}

.team-intro-page-shell .team-intro-flow-step {
  --flow-accent: var(--team-orange);
  display: grid;
  gap: var(--lp-space-1);
  min-width: 0;
  padding: var(--lp-space-3);
  border: 1px solid color-mix(in srgb, var(--flow-accent) 18%, var(--lp-color-border-soft));
  border-radius: var(--lp-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.team-intro-page-shell .team-intro-flow-step.is-owner {
  --flow-accent: var(--team-orange);
}

.team-intro-page-shell .team-intro-flow-step.is-product {
  --flow-accent: var(--team-teal);
}

.team-intro-page-shell .team-intro-flow-step.is-architecture {
  --flow-accent: var(--team-blue);
}

.team-intro-page-shell .team-intro-flow-step.is-governance {
  --flow-accent: var(--team-gold);
}

.team-intro-page-shell .team-intro-flow-step.is-release {
  --flow-accent: var(--team-harbor);
}

.team-intro-page-shell .team-intro-flow-dot {
  width: 22px;
  height: 4px;
  border-radius: var(--lp-radius-pill);
  background: var(--flow-accent);
}

.team-intro-page-shell .team-intro-flow-step strong {
  color: var(--lp-color-text-primary);
  font-size: var(--lp-font-size-sm);
}

.team-intro-page-shell .team-intro-flow-step span:not(.team-intro-flow-dot) {
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-xs);
  line-height: var(--lp-line-height-base);
}

.team-intro-page-shell .team-intro-flow-output {
  display: grid;
  gap: var(--lp-space-1);
  padding: var(--lp-space-3);
  border-radius: var(--lp-radius-md);
  background: rgba(255, 122, 61, 0.08);
}

.team-intro-page-shell .team-intro-flow-output strong {
  color: var(--lp-color-text-primary);
  font-size: var(--lp-font-size-sm);
}

.team-intro-page-shell .team-intro-flow-output span {
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-xs);
  line-height: var(--lp-line-height-base);
}

.team-intro-page-shell .team-intro-signal {
  display: grid;
  gap: var(--lp-space-1);
  padding: var(--lp-space-3);
  border: 1px solid var(--lp-color-border-soft);
  border-radius: var(--lp-radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.team-intro-page-shell .team-intro-signal strong {
  color: var(--lp-color-text-primary);
  font-size: var(--lp-font-size-md);
}

.team-intro-page-shell .team-intro-signal span {
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  line-height: var(--lp-line-height-base);
}

.team-intro-page-shell .team-intro-section {
  display: grid;
  gap: var(--lp-space-4);
}

.team-intro-page-shell .team-intro-section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--lp-space-4);
  align-items: end;
}

.team-intro-page-shell .team-intro-section-head h2 {
  margin: 0;
  font-size: var(--lp-font-size-xl);
  line-height: var(--lp-line-height-tight);
  color: var(--lp-color-text-primary);
}

.team-intro-page-shell .team-intro-section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  line-height: var(--lp-line-height-loose);
}

.team-intro-page-shell .team-intro-two-col,
.team-intro-page-shell .team-intro-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--lp-space-4);
}

.team-intro-page-shell .team-intro-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-intro-page-shell .team-intro-principle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-intro-page-shell .team-intro-mission-card,
.team-intro-page-shell .team-intro-role-card,
.team-intro-page-shell .team-intro-working-card,
.team-intro-page-shell .team-intro-map-card {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--lp-color-border-soft);
  border-radius: var(--lp-radius-lg);
  background: color-mix(in srgb, var(--lp-color-bg-card) 86%, transparent);
  box-shadow: var(--lp-shadow-xs);
  overflow: hidden;
}

.team-intro-page-shell .team-intro-mission-card::before,
.team-intro-page-shell .team-intro-role-card::before,
.team-intro-page-shell .team-intro-working-card::before,
.team-intro-page-shell .team-intro-map-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--team-card-accent, var(--ydai-color-brand));
}

.team-intro-page-shell .team-intro-mission-card::after,
.team-intro-page-shell .team-intro-role-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -48px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--team-card-soft, var(--team-orange-soft));
  pointer-events: none;
}

.team-intro-page-shell .team-intro-mission-card.is-decision {
  --team-card-accent: var(--team-orange);
  --team-card-soft: var(--team-orange-soft);
}

.team-intro-page-shell .team-intro-mission-card.is-system {
  --team-card-accent: var(--team-teal);
  --team-card-soft: var(--team-teal-soft);
}

.team-intro-page-shell .team-intro-mission-card > *,
.team-intro-page-shell .team-intro-working-card > *,
.team-intro-page-shell .team-intro-map-card > * {
  position: relative;
  z-index: 1;
}

.team-intro-page-shell .team-intro-mission-card,
.team-intro-page-shell .team-intro-role-card {
  padding: var(--lp-space-5);
}

.team-intro-page-shell .kicker {
  margin: 0 0 var(--lp-space-2);
  color: var(--lp-color-text-tertiary);
  font-size: var(--lp-font-size-xs);
  font-weight: var(--lp-font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-intro-page-shell .team-intro-mission-card h3,
.team-intro-page-shell .team-intro-role-card h3 {
  margin: 0;
  color: var(--lp-color-text-primary);
  font-size: calc(var(--lp-font-size-lg) + 1px);
  line-height: var(--lp-line-height-tight);
}

.team-intro-page-shell .team-intro-mission-card p,
.team-intro-page-shell .team-intro-working-card p,
.team-intro-page-shell .team-intro-map-card p {
  margin: var(--lp-space-3) 0 0;
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  line-height: var(--lp-line-height-loose);
}

.team-intro-page-shell .team-intro-role-card {
  --team-card-accent: var(--team-orange);
  --team-card-soft: var(--team-orange-soft);
  display: grid;
  gap: var(--lp-space-4);
  isolation: isolate;
}

.team-intro-page-shell .team-intro-role-card > * {
  position: relative;
  z-index: 1;
}

.team-intro-page-shell .team-intro-role-card.is-owner {
  --team-card-accent: var(--team-orange);
  --team-card-soft: var(--team-orange-soft);
}

.team-intro-page-shell .team-intro-role-card.is-product {
  --team-card-accent: var(--team-teal);
  --team-card-soft: var(--team-teal-soft);
}

.team-intro-page-shell .team-intro-role-card.is-architecture {
  --team-card-accent: var(--team-blue);
  --team-card-soft: var(--team-blue-soft);
}

.team-intro-page-shell .team-intro-role-card.is-governance {
  --team-card-accent: var(--team-gold);
  --team-card-soft: var(--team-gold-soft);
}

.team-intro-page-shell .team-intro-role-card.is-release {
  --team-card-accent: var(--team-harbor);
  --team-card-soft: var(--team-harbor-soft);
}

.team-intro-page-shell .team-intro-role-top {
  display: flex;
  justify-content: space-between;
  gap: var(--lp-space-3);
  align-items: start;
}

.team-intro-page-shell .team-intro-role-card .role-title {
  margin-top: var(--lp-space-1);
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
}

.team-intro-page-shell .team-intro-role-card > p {
  margin: 0;
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  line-height: var(--lp-line-height-loose);
}

.team-intro-page-shell .team-intro-role-orb {
  display: block;
  width: 30px;
  height: 6px;
  margin: var(--lp-space-2) 0 var(--lp-space-3);
  border-radius: var(--lp-radius-pill);
  background: var(--team-card-accent);
  box-shadow: 0 8px 20px var(--team-card-soft);
}

.team-intro-page-shell .team-intro-collab-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: var(--lp-space-4);
}

.team-intro-page-shell .team-intro-working-card,
.team-intro-page-shell .team-intro-map-card {
  --team-card-accent: var(--team-orange);
  --team-card-soft: var(--team-orange-soft);
  padding: var(--lp-space-4);
}

.team-intro-page-shell .team-intro-map-card {
  --team-card-accent: var(--team-teal);
  --team-card-soft: var(--team-teal-soft);
}

.team-intro-page-shell .team-intro-working-list {
  display: grid;
  gap: var(--lp-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-intro-page-shell .team-intro-working-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--lp-space-3);
  align-items: start;
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-sm);
  line-height: var(--lp-line-height-base);
}

.team-intro-page-shell .team-intro-working-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--lp-radius-pill);
  background: var(--team-orange-soft);
  color: color-mix(in srgb, var(--team-orange) 60%, var(--lp-color-text-primary));
  font-weight: var(--lp-font-weight-semibold);
}

.team-intro-page-shell .team-intro-map-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--lp-space-3);
  align-items: stretch;
  margin-top: var(--lp-space-4);
}

.team-intro-page-shell .team-intro-map-node {
  --node-accent: var(--team-orange);
  position: relative;
  display: grid;
  gap: var(--lp-space-2);
  min-height: 92px;
  padding: var(--lp-space-3);
  border: 1px solid var(--lp-color-border-soft);
  border-radius: var(--lp-radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--node-accent) 18%, transparent), transparent 52%);
}

.team-intro-page-shell .team-intro-map-node:nth-child(2) {
  --node-accent: var(--team-teal);
}

.team-intro-page-shell .team-intro-map-node:nth-child(3) {
  --node-accent: var(--team-blue);
}

.team-intro-page-shell .team-intro-map-node:nth-child(4) {
  --node-accent: var(--team-gold);
}

.team-intro-page-shell .team-intro-map-node::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: var(--lp-radius-pill);
  background: var(--node-accent);
}

.team-intro-page-shell .team-intro-map-node:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lp-color-text-tertiary);
  font-weight: var(--lp-font-weight-semibold);
}

.team-intro-page-shell .team-intro-map-node strong {
  color: var(--lp-color-text-primary);
  font-size: var(--lp-font-size-sm);
}

.team-intro-page-shell .team-intro-map-node span {
  color: var(--lp-color-text-secondary);
  font-size: var(--lp-font-size-xs);
  line-height: var(--lp-line-height-base);
}

@media (max-width: 1120px) {
  .team-intro-page-shell .team-intro-hero,
  .team-intro-page-shell .team-intro-collab-grid {
    grid-template-columns: 1fr;
  }

  .team-intro-page-shell .team-intro-flow-steps {
    grid-template-columns: 1fr;
  }

  .team-intro-page-shell .team-intro-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-intro-page-shell .team-intro-principle-grid {
    grid-template-columns: 1fr;
  }

  .team-intro-page-shell .team-intro-map-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-intro-page-shell .team-intro-map-node::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .team-intro-page-shell .team-intro-section-head,
  .team-intro-page-shell .team-intro-role-top {
    display: grid;
  }

  .team-intro-page-shell .team-intro-two-col,
  .team-intro-page-shell .team-intro-role-grid,
  .team-intro-page-shell .team-intro-principle-grid,
  .team-intro-page-shell .team-intro-map-flow {
    grid-template-columns: 1fr;
  }

  .team-intro-page-shell .team-intro-hero,
  .team-intro-page-shell .team-intro-mission-card,
  .team-intro-page-shell .team-intro-role-card {
    padding: var(--lp-space-4);
  }

  .team-intro-page-shell .team-intro-actions .button {
    width: 100%;
    justify-content: center;
  }

  .team-intro-page-shell .team-intro-brand-stage {
    min-height: 260px;
    padding: var(--lp-space-4);
  }

  .team-intro-page-shell .team-intro-planet-system {
    width: min(300px, 88%);
    height: 168px;
  }

  .team-intro-page-shell .team-intro-planet-dot {
    top: -7px;
    width: 13px;
    height: 13px;
    border-width: 2px;
  }

  .team-intro-page-shell .team-intro-brand-lockup {
    display: grid;
    justify-items: center;
    gap: var(--lp-space-2);
    text-align: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .team-intro-page-shell .team-intro-hero,
  .team-intro-page-shell .team-intro-section {
    animation: teamIntroRise 520ms ease both;
  }

  .team-intro-page-shell .team-intro-section:nth-of-type(2) {
    animation-delay: 80ms;
  }

  .team-intro-page-shell .team-intro-section:nth-of-type(3) {
    animation-delay: 140ms;
  }

  .team-intro-page-shell .team-intro-section:nth-of-type(4) {
    animation-delay: 200ms;
  }

  .team-intro-page-shell .team-intro-brand-lockup {
    animation: teamIntroLogoFloat 3.8s ease-in-out infinite;
  }

  .team-intro-page-shell .team-intro-brand-ring.ring-one {
    animation: teamIntroLogoPulse 3.8s ease-in-out infinite;
  }

  .team-intro-page-shell .team-intro-brand-ring.ring-two {
    animation: teamIntroLogoPulse 3.8s ease-in-out infinite reverse;
  }

  .team-intro-page-shell .team-intro-planet-system {
    animation: teamIntroPlanetOrbit 28s linear infinite;
  }
}

@keyframes teamIntroRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes teamIntroLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes teamIntroLogoPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes teamIntroPlanetOrbit {
  from {
    transform: translate(-50%, -50%) rotate(-7deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(353deg);
  }
}
