.ps-agent-page {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0b0b0b !important;
}

.lt-ps-agent-root,
.lt-ps-shell {
  width: 100%;
  min-height: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.9);
}

.lt-ps-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem;
  overflow: hidden;
}

.lt-ps-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(17, 17, 17, 0.94);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.24);
}

.lt-ps-header p,
.lt-ps-header h2,
.lt-ps-header span {
  margin: 0;
}

.lt-ps-header p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lt-ps-header h2 {
  color: #f8f8f8;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
}

.lt-ps-header span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
}

.lt-ps-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 2.3fr) minmax(19rem, 0.9fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(7, 7, 7, 0.92);
}

.lt-ps-side,
.lt-ps-chat {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.75rem;
  background: rgba(18, 18, 18, 0.92);
}

.lt-ps-side {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.lt-ps-chat {
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.lt-ps-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.lt-ps-card,
.lt-ps-board,
.lt-ps-plan,
.lt-ps-form textarea,
.lt-ps-form button,
.lt-ps-secondary,
.lt-ps-card button,
.lt-ps-card input,
.lt-ps-asset,
.lt-ps-plan-actions button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(24, 24, 24, 0.9);
  color: rgba(255, 255, 255, 0.86);
}

.lt-ps-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
}

.lt-ps-card strong,
.lt-ps-chat header strong,
.lt-ps-plan strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
}

.lt-ps-card p,
.lt-ps-muted,
.lt-ps-chat header span,
.lt-ps-plan p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  line-height: 1.55;
}

.lt-ps-plan-error {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 8px;
  color: rgba(255, 218, 218, 0.94) !important;
  background: rgba(248, 113, 113, 0.09);
}

.lt-ps-charge-note {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.62) !important;
  background: rgba(255, 255, 255, 0.04);
}

.lt-ps-card label {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
  font-weight: 800;
}

.lt-ps-card input {
  min-height: 2.25rem;
  padding: 0 0.7rem;
  outline: 0;
}

.lt-ps-card button,
.lt-ps-secondary,
.lt-ps-plan-actions button {
  min-height: 2.35rem;
  padding: 0 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.lt-ps-card button:hover,
.lt-ps-secondary:hover,
.lt-ps-plan-actions button:hover,
.lt-ps-asset:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(35, 35, 35, 0.94);
}

.lt-ps-status-list {
  display: grid;
  gap: 0.4rem;
}

.lt-ps-status-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.1rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 800;
}

.lt-ps-status-list span.ok {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}

.lt-ps-status-list span.warn {
  border-color: rgba(245, 158, 11, 0.35);
  color: rgba(255, 235, 190, 0.94);
  background: rgba(245, 158, 11, 0.1);
}

.lt-ps-install-note {
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.08);
  color: rgba(226, 239, 255, 0.92) !important;
}

.lt-ps-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.lt-ps-assets {
  display: grid;
  gap: 0.45rem;
  max-height: 20rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.lt-ps-asset {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.55rem 0.65rem;
  text-align: left;
  cursor: pointer;
}

.lt-ps-asset strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lt-ps-asset span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lt-ps-board {
  position: relative;
  display: grid;
  min-height: 100%;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: auto;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255,255,255,0.055), transparent 34rem),
    #090909;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.lt-ps-board-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 18rem;
  text-align: center;
}

.lt-ps-board-copy p,
.lt-ps-board-copy h3,
.lt-ps-board-copy span {
  margin: 0;
}

.lt-ps-board-copy p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lt-ps-board-copy h3 {
  margin-top: 0.35rem;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 900;
}

.lt-ps-board-copy span {
  width: min(100%, 34rem);
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
  line-height: 1.7;
}

.lt-ps-plan {
  display: grid;
  gap: 0.65rem;
  align-self: end;
  width: min(100%, 44rem);
  margin: 1rem auto 0;
  padding: 0.95rem;
}

.lt-ps-plan-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lt-ps-plan-steps span {
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
}

.lt-ps-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lt-ps-plan-actions button:first-child,
.lt-ps-form button {
  background: rgba(238, 238, 238, 0.92);
  color: #151515;
}

.lt-ps-chat header {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lt-ps-log {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
}

.lt-ps-msg {
  max-width: 92%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  line-height: 1.55;
}

.lt-ps-msg p {
  margin: 0;
  white-space: pre-wrap;
}

.lt-ps-msg.user {
  justify-self: end;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.lt-ps-form {
  display: grid;
  gap: 0.5rem;
}

.lt-ps-ref-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2.2rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem;
}

.lt-ps-ref-chip {
  display: inline-grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  min-height: 2rem;
  padding: 0.18rem 0.45rem 0.18rem 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.lt-ps-ref-chip img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  object-fit: cover;
}

.lt-ps-ref-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lt-ps-ref-chip b {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.7rem;
}

.lt-ps-form textarea {
  min-height: 7.4rem;
  max-height: 12rem;
  padding: 0.8rem;
  resize: vertical;
  outline: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.lt-ps-form button {
  min-height: 2.55rem;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
}

.lt-ps-form button:disabled {
  opacity: 0.55;
}

@media (max-width: 1180px) {
  .lt-ps-grid {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.4fr);
  }

  .lt-ps-chat {
    grid-column: 1 / -1;
    min-height: 26rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .lt-ps-header,
  .lt-ps-grid {
    grid-template-columns: 1fr;
  }

  .lt-ps-side,
  .lt-ps-chat {
    border: 0;
  }

  .lt-ps-board {
    min-height: 28rem;
  }
}
