.app-shell .topbar {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px 18px;
  height: auto;
  min-height: 116px;
  padding: 18px 32px;
  position: relative;
}

.app-shell .topbar > .ant-space {
  min-width: 0;
}

.app-shell .topbar > .ant-space:first-child {
  flex: 1 1 360px;
}

.app-shell .topbar > .ant-space:last-child {
  align-items: center;
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: auto;
}

.app-shell .topbar h3.ant-typography {
  line-height: 1.25;
  margin: 4px 0 0;
}

.app-shell .content {
  height: auto;
  min-height: calc(100vh - 116px);
  overflow: auto;
  padding-top: 28px;
}

.app-shell .page-stack {
  padding-top: 2px;
}

.longtee-member-badge {
  max-width: min(320px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.longtee-tool-label {
  background: #f6f8fb;
  border-color: #dbe3ef;
  color: #334155;
  font-size: 13px;
  line-height: 24px;
  margin: 3px 4px 3px 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.longtee-tools-cell {
  max-width: 360px;
}

.longtee-tools-note {
  color: #8b95a7;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.longtee-state-panel {
  display: grid;
  gap: 18px;
  width: 100%;
}

.longtee-state-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(22, 36, 68, 0.06);
  padding: 24px;
}

.longtee-state-card h3 {
  color: #14213d;
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.longtee-state-card p {
  color: #566174;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

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

.longtee-state-item {
  background: #f8fafd;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  padding: 16px;
}

.longtee-state-item strong {
  color: #14213d;
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.longtee-state-item span {
  color: #677287;
  font-size: 13px;
  line-height: 1.6;
}

.longtee-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.longtee-state-pill,
.longtee-state-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  min-height: 34px;
  padding: 0 12px;
}

.longtee-state-pill {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
}

.longtee-state-button {
  background: #f1f5f9;
  border: 1px solid #d8e1ed;
  color: #475569;
}

.longtee-state-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.longtee-log-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.longtee-log-toolbar button {
  background: #fff;
  border: 1px solid #d8e1ed;
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
  height: 34px;
  padding: 0 12px;
}

.longtee-log-list {
  display: grid;
  gap: 10px;
}

.longtee-log-item {
  background: #f8fafd;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  padding: 14px 16px;
}

.longtee-log-item strong {
  color: #14213d;
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.longtee-log-item code {
  color: #475569;
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.longtee-log-meta {
  color: #8b95a7;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .app-shell .topbar {
    min-height: 132px;
    padding: 16px 18px;
  }

  .app-shell .topbar > .ant-space:first-child,
  .app-shell .topbar > .ant-space:last-child {
    flex-basis: 100%;
  }

  .app-shell .topbar > .ant-space:last-child {
    justify-content: flex-start;
    margin-left: 0;
  }

  .app-shell .content {
    min-height: calc(100vh - 132px);
    padding: 20px 18px 42px;
  }

  .longtee-state-grid {
    grid-template-columns: 1fr;
  }

  .longtee-member-badge {
    max-width: 100%;
  }
}
/* Product install methods alignment */
.landing-open > .ant-typography {
  font-size: 18px !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}
.install-box {
  max-width: 960px !important;
}
.install-box .ant-segmented-item,
.install-method-single {
  font-size: 16px !important;
  font-weight: 700 !important;
}
.install-box code {
  font-size: 15px !important;
  line-height: 1.75 !important;
  font-family: Consolas, "SFMono-Regular", "Microsoft YaHei", monospace !important;
}
.install-box p {
  font-size: 15px !important;
  line-height: 1.75 !important;
}
.install-download-link {
  display: inline-flex;
  margin: 0 32px 26px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  background: #2563eb;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.install-download-link:hover {
  background: #1d4ed8;
  color: #fff !important;
}
/* Hero kicker text polish */
.landing-hero .landing-copy > .ant-tag:first-child,
.landing-hero .landing-copy > .ant-badge:first-child,
.landing-hero .landing-copy > span:first-child {
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}
.landing-hero .landing-copy > .ant-tag:first-child .ant-tag-close-icon,
.landing-hero .landing-copy > .ant-badge:first-child .ant-badge-status-text,
.landing-hero .landing-copy > span:first-child * {
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
}
.landing-hero .landing-copy > .ant-tag:first-child::before,
.landing-hero .landing-copy > .ant-badge:first-child .ant-badge-status-dot,
.landing-hero .landing-copy > span:first-child::before {
  background: #fff !important;
}
/* Hero runtime product polish */
.hero-runtime-kicker,
.landing-hero .hero-runtime-kicker,
.landing-hero .hero-runtime-kicker .ant-badge-status-text {
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}
.landing-hero .hero-runtime-kicker .ant-badge-status-dot {
  width: 10px !important;
  height: 10px !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18) !important;
}
.landing-panel .workflow-card {
  width: 136px !important;
  min-width: 136px !important;
  padding: 0 12px !important;
  font-size: 20px !important;
  text-align: center !important;
  white-space: normal !important;
}
.landing-panel .platform-chip {
  font-size: 18px !important;
  font-weight: 700 !important;
}
/* Hero product preview typography balance */
.landing-panel .workflow-card {
  width: 124px !important;
  min-width: 124px !important;
  height: 68px !important;
  padding: 0 10px !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  text-align: center !important;
  white-space: normal !important;
}
.landing-panel .workflow-arrow {
  font-size: 26px !important;
  line-height: 1 !important;
}
.landing-panel .platform-chip {
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  color: #344256 !important;
}
@media (max-width: 1100px) {
  .landing-panel .workflow-card {
    width: 112px !important;
    min-width: 112px !important;
    font-size: 16px !important;
  }
}
/* Final balanced hero product preview */
.landing-panel {
  gap: 14px !important;
}
.landing-panel .workflow-card {
  width: 116px !important;
  min-width: 116px !important;
  height: 62px !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  text-align: center !important;
  white-space: normal !important;
}
.landing-panel .workflow-arrow {
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}
.landing-panel .platform-chip {
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  color: #334155 !important;
  box-shadow: 0 10px 24px rgba(21, 31, 54, .12) !important;
}
.landing-panel .chip-a {
  top: 72px !important;
  left: 78px !important;
}
.landing-panel .chip-b {
  right: 78px !important;
  top: 74px !important;
}
.landing-panel .chip-c {
  bottom: 70px !important;
  left: 94px !important;
}
.landing-panel .chip-d {
  right: 92px !important;
  bottom: 72px !important;
}
@media (max-width: 1100px) {
  .landing-panel .workflow-card {
    width: 104px !important;
    min-width: 104px !important;
    font-size: 14px !important;
  }
}

.longtee-portal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px 0;
  padding: 8px 12px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  color: #101828;
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.longtee-portal-home-link:hover {
  color: #2563eb;
  border-color: #b9c8ff;
  background: #f8fbff;
}
.longtee-portal-home-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #2563eb);
  font-weight: 800;
}
