/* Live MCP alignment layer.
   Keep the Live evidence functions; make the workspace feel like Classic. */
:root {
  --background: #ffffff;
  --card: #ffffff;
  --muted: #f3f6fa;
  --accent: #f8fafc;
  --border: #ccd8e7;
  --noah-ink: #1c2b3a;
  --noah-fg-soft: #475569;
  --noah-fg-mute: #73839b;
  --noah-fg-faint: #9aa8ba;
  --noah-rule: #ccd8e7;
  --noah-rule-soft: #e4ebf3;
  --noah-rail: #f3f6fa;
  --noah-accent: #e66b2c;
  --live-rail-w: 300px;
}

body,
.nh-pane,
.nh-thread-wrap,
.aui-root.aui-thread-root {
  background: #ffffff;
}

/* The shared product masthead owns the top chrome. */
.nh-header {
  min-height: 68px;
  padding-left: 24px;
  padding-right: 24px;
  background: #ffffff;
  border-bottom: 1px solid #1c2b3a;
}

.nh-tag { color: #73839b; border-left-color: #ccd8e7; }
.nh-pulse { background: #e66b2c; }

/* Same rail width and material as Classic. */
.nh-rail {
  flex: 0 0 var(--live-rail-w);
  width: var(--live-rail-w);
  color: #475569;
  background: #f3f6fa;
  border-right-color: #ccd8e7;
}

.nh-new-chat {
  display: none;
}

.nh-live-rail-title {
  margin: 26px 22px 10px;
  padding-bottom: 10px;
  color: #73839b;
  border-bottom: 1px solid #e4ebf3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.nh-chat-list { padding: 0 18px 12px; }

.nh-rail-handle {
  position: relative;
  z-index: 4;
  flex: 0 0 4px;
  width: 4px;
  cursor: col-resize;
  background: transparent;
  transition: background-color 120ms ease;
  touch-action: none;
}

.nh-rail-handle::after {
  content: "";
  position: absolute;
  inset: 0 -4px;
}

.nh-rail-handle:hover,
.nh-rail-handle.dragging { background: #1c2b3a; }

.nh-chat-item,
.nh-chat-item.active,
.nh-chat-item:hover { border-radius: 6px; }

.nh-chat-item.active {
  color: #1c2b3a;
  background: #ffffff;
  border-left: 2px solid #e66b2c;
}

/* Match Classic's quiet centred welcome rather than an editorial report card. */
.aui-thread-root {
  --thread-max-width: 47rem !important;
  --composer-bg: #ffffff !important;
  --composer-radius: 16px !important;
}

body.pp-live-empty [data-slot="aui_thread-viewport"] > .justify-center {
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}

body.pp-live-empty [data-slot="aui_thread-viewport"] { overflow-y: hidden; }

body.pp-live-empty .nh-welcome {
  max-width: 45rem;
  padding: 22vh 0 0;
  border: 0;
  background: transparent;
}

body.pp-live-empty .nh-welcome::before { display: none; }

body.pp-live-empty .nh-welcome h1 {
  max-width: none;
  margin: 0 0 8px;
  color: #1c2b3a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.02em;
}

body.pp-live-empty .nh-rotate-line {
  max-width: 580px;
  min-height: 0;
  margin: 0;
  color: #73839b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

body.pp-live-empty .nh-take-noah { display: none; }

.nh-take-noah {
  margin: 0;
  padding: 16px 0 0;
  color: #73839b;
  border: 0;
  border-top: 1px solid #e4ebf3;
  background: transparent;
  font-size: 12.5px;
  line-height: 1.6;
}

.nh-take-noah .kick {
  margin-bottom: 5px;
  color: #73839b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  letter-spacing: .14em;
}

.nh-take-noah a,
.nh-ad-bar a { color: #1c2b3a; }

.nh-take-noah a:hover,
.nh-ad-bar a:hover { color: #e66b2c; }

.nh-ad-bar {
  color: #73839b;
  border-color: #e4ebf3;
  border-radius: 8px;
  background: #f3f6fa;
}

.nh-tool {
  color: #475569;
  border-color: #e4ebf3;
  border-radius: 8px;
  background: #f3f6fa;
}

.nh-tool.running { border-left: 2px solid #e66b2c; }
.nh-tool.running .nh-dot { background: #e66b2c; }

.aui-root textarea,
.aui-root [contenteditable="true"] {
  color: #1c2b3a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aui-root form { box-shadow: none; }

[data-slot="aui_composer-shell"] {
  min-height: 126px;
  padding: 16px 18px;
  border: 1.5px solid #e66b2c;
  box-shadow: none !important;
}

.aui-composer-input {
  min-height: 48px;
  padding: 0;
  font-size: 15px;
}

.aui-composer-action-wrapper { margin-top: auto; }

body.pp-live-empty .aui-thread-viewport-footer {
  margin-top: 34px;
  padding-bottom: 0;
}

@media (max-height: 760px) {
  body.pp-live-empty .nh-welcome { padding-top: 12vh; }
}

@media (max-width: 720px) {
  .nh-header {
    min-height: 68px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nh-rail {
    flex-basis: min(300px, 88vw);
    width: min(300px, 88vw);
  }

  .nh-rail-handle { display: none; }

  body.pp-live-empty .nh-welcome { padding: 9vh 2px 0; }

  body.pp-live-empty .nh-welcome h1 { font-size: 25px; }
  body.pp-live-empty .nh-rotate-line { max-width: none; font-size: 15px; }
  body.pp-live-empty .aui-thread-viewport-footer { margin-top: 22px; }
  [data-slot="aui_composer-shell"] { min-height: 112px; padding: 14px 15px; }
}
