/* [project]/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
    --default-font-family: var(--font-ui);
    --default-mono-font-family: var(--font-code);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .block {
    display: block;
  }

  .inline-grid {
    display: inline-grid;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

:root {
  --font-ui: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  --font-code: "Consolas", "Liberation Mono", "DejaVu Sans Mono", monospace;
  --bg-start: #eef2f8;
  --bg-end: #dce7f5;
  --surface: #ffffffd1;
  --surface-strong: #fffffff0;
  --surface-soft: #ecf3ffd6;
  --border: #46608a38;
  --border-strong: #46608a5c;
  --text-primary: #101826;
  --text-secondary: #43506a;
  --accent: #0065d5;
  --accent-soft: #0065d524;
  --success: #1f8d4e;
  --danger: #b0324e;
  --warning: #be6c12;
  --shadow-lg: 0 20px 45px #182a4826;
  --shadow-md: 0 8px 22px #182a481f;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-ui);
  background: radial-gradient(1200px 600px at 0% 0%, #1a6ad629, transparent 68%), radial-gradient(900px 520px at 100% 0%, #239d6724, transparent 62%), linear-gradient(145deg, var(--bg-start), var(--bg-end));
}

.monitoring-shell {
  z-index: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  padding: 20px;
  animation: .44s ease-out shell-rise;
  display: flex;
  position: relative;
  overflow: hidden;
}

.background-orb {
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  position: absolute;
}

.background-orb-left {
  background: radial-gradient(circle, #0065d533, #0000 68%);
  border-radius: 999px;
  width: 520px;
  height: 520px;
  top: -230px;
  left: -220px;
}

.background-orb-right {
  background: radial-gradient(circle, #1f8d4e2e, #0000 70%);
  border-radius: 999px;
  width: 480px;
  height: 480px;
  top: -140px;
  right: -160px;
}

.card-surface {
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  animation: .36s ease-out both card-rise;
  position: relative;
}

.monitoring-header {
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  display: flex;
}

.monitoring-header h1 {
  letter-spacing: .02em;
  margin: 2px 0 0;
  font-size: clamp(1.4rem, 1.8vw, 2rem);
}

.label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-family: var(--font-code);
  margin: 0;
}

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

.status-chip {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  display: flex;
}

.status-chip span {
  color: var(--text-secondary);
  font-size: .76rem;
}

.status-chip strong {
  font-size: .9rem;
  line-height: 1.3;
}

.tone-connected {
  color: var(--success);
}

.tone-connecting, .tone-reconnecting {
  color: var(--warning);
}

.tone-disconnected {
  color: var(--danger);
}

.connection-error {
  color: #7f2238;
  background: #b0324e14;
  border: 1px solid #b0324e54;
  border-radius: 10px;
  margin: 0;
  padding: 8px 10px;
  font-size: .86rem;
}

.monitoring-grid {
  z-index: 1;
  flex: 1;
  grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
  gap: 14px;
  min-height: 0;
  display: grid;
  position: relative;
}

.news-panel, .details-panel {
  flex-direction: column;
  min-height: 0;
  display: flex;
}

.panel-head {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 10px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.panel-head p {
  color: var(--text-secondary);
  margin: 3px 0 0;
  font-size: .82rem;
}

.news-list {
  flex: 1;
  min-height: 430px;
  position: relative;
  overflow-y: auto;
}

.virtual-root {
  width: 100%;
  position: relative;
}

.virtual-window {
  width: 100%;
  padding: 6px;
  position: absolute;
  inset: 0 auto auto 0;
}

.news-row {
  text-align: left;
  background: var(--surface-strong);
  width: 100%;
  color: inherit;
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 12px;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 8px;
  padding: 10px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  display: flex;
}

.news-row:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #182a481c;
}

.news-row-selected {
  border-color: #0065d580;
  box-shadow: 0 10px 20px #0065d529;
}

.news-row h3 {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: .94rem;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.news-row-header, .news-row-footer {
  align-items: center;
  gap: 8px;
  display: flex;
}

.news-row-footer {
  margin-top: auto;
}

.symbol-pill {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: #0c3f74;
  min-width: 44px;
  font-family: var(--font-code);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  font-size: .73rem;
  display: inline-flex;
}

.badge {
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 999px;
  align-items: center;
  padding: 2px 8px;
  font-size: .72rem;
  display: inline-flex;
}

.badge-positive {
  color: #115f35;
  background: #1f8d4e24;
  border-color: #115f3547;
}

.badge-negative {
  color: #861f39;
  background: #b0324e24;
  border-color: #861f394d;
}

.badge-neutral {
  color: #704908;
  background: #be6c1224;
  border-color: #7e530b47;
}

.badge-unknown {
  color: #4f5f79;
  background: #4f5f791f;
  border-color: #4f5f793d;
}

.timestamp {
  color: var(--text-secondary);
  margin-left: auto;
  font-size: .72rem;
}

.detail-text {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  overflow: hidden;
}

.price {
  font-family: var(--font-code);
  color: #0c3f74;
  margin-left: auto;
  font-size: .78rem;
}

.details-content {
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-height: 430px;
  padding: 12px;
  display: flex;
  overflow-y: auto;
}

.details-section {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  border-radius: 12px;
  padding: 10px;
  animation: .28s ease-out both section-fade;
}

.details-section h3 {
  margin: 0 0 8px;
  font-size: .93rem;
}

.summary-text {
  color: #1a2538;
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
}

.inline-grid {
  color: var(--text-secondary);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  font-size: .8rem;
  display: grid;
}

.inline-grid strong {
  color: #233149;
}

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

.kv-item {
  border: 1px solid var(--border);
  background: #f7faff;
  border-radius: 10px;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  display: flex;
}

.kv-item span {
  color: var(--text-secondary);
  font-size: .74rem;
  font-family: var(--font-code);
}

.kv-item strong {
  overflow-wrap: anywhere;
  font-size: .8rem;
  line-height: 1.35;
}

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

.group-card {
  border: 1px solid var(--border);
  background: #f7faff;
  border-radius: 10px;
  padding: 8px;
}

.group-card h4 {
  color: #1d3e66;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 7px;
  font-size: .78rem;
}

.group-line {
  border-top: 1px dashed #46608a33;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: .76rem;
  display: flex;
}

.group-line:first-of-type {
  border-top: none;
  padding-top: 0;
}

.group-line > span:first-child {
  color: var(--text-secondary);
  text-transform: lowercase;
}

.group-line > strong {
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 58%;
}

.val-bullish {
  color: #1a8a4a;
  font-weight: 600;
}

.val-bearish {
  color: #c13050;
  font-weight: 600;
}

.val-strong {
  color: #0060c8;
  font-weight: 600;
}

.val-weak {
  color: #8b95a8;
}

.val-moderate {
  color: #b06814;
}

.val-neutral-tone {
  color: #697a94;
  font-style: italic;
}

.val-unclear {
  color: #8b95a8;
  font-style: italic;
}

.has-hint {
  cursor: help;
  border-bottom: 1px dotted;
}

.hint-popup {
  z-index: 9999;
  color: #e2e8f2;
  pointer-events: none;
  white-space: normal;
  background: #1a2538;
  border-radius: 10px;
  min-width: 180px;
  max-width: 400px;
  padding: 10px 14px;
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.55;
  position: fixed;
  box-shadow: 0 10px 28px #00000059;
}

.classifier-flow {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}

.classifier-chip {
  border: 1px solid var(--border);
  background: #f7faff;
  border-radius: 8px;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  font-size: .74rem;
  display: inline-flex;
}

.classifier-chip h4 {
  color: #1d3e66;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
}

.cf-entries {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  display: inline-flex;
}

.cf-entry {
  align-items: baseline;
  gap: 3px;
  display: inline-flex;
}

.cf-entry > span {
  color: var(--text-secondary);
  font-size: .72rem;
}

.cf-sep {
  color: var(--border-strong);
  margin: 0 1px;
}

.agent-stack {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  display: grid;
}

.agent-row {
  border: 1px solid var(--border);
  background: #f7faff;
  border-left: 3px solid #8b95a8;
  border-radius: 10px;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  transition: box-shadow .16s;
  display: flex;
}

.agent-row:hover {
  box-shadow: 0 4px 12px #182a481a;
}

.agent-row[data-dir="up"], .agent-row[data-dir="long"], .agent-row[data-dir="buy"], .agent-row[data-dir="bullish"] {
  border-left-color: #1a8a4a;
}

.agent-row[data-dir="down"], .agent-row[data-dir="short"], .agent-row[data-dir="sell"], .agent-row[data-dir="bearish"] {
  border-left-color: #c13050;
}

.agent-row h4 {
  color: #1d3e66;
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
  margin: 0;
  font-size: .74rem;
}

.agent-fields {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.agent-field {
  align-items: baseline;
  gap: 4px;
  font-size: .76rem;
  display: inline-flex;
}

.agent-field > span {
  color: var(--text-secondary);
  text-transform: lowercase;
  font-size: .72rem;
}

.scoring-summary {
  margin-top: 0;
  margin-bottom: 8px;
}

.empty-state {
  height: 100%;
  min-height: 180px;
  color: var(--text-secondary);
  place-items: center;
  padding: 20px;
  font-size: .9rem;
  display: grid;
}

.details-empty {
  min-height: 320px;
}

.muted {
  color: var(--text-secondary);
  margin: 0;
  font-size: .83rem;
}

.gate-reason {
  color: #861f39;
  margin: 0 0 .5rem;
  font-size: .88rem;
  font-weight: 500;
}

.news-list, .details-content {
  scrollbar-width: thin;
  scrollbar-color: #46608a8c #fff6;
}

.news-list::-webkit-scrollbar {
  width: 10px;
}

.details-content::-webkit-scrollbar {
  width: 10px;
}

.news-list::-webkit-scrollbar-thumb {
  background: #46608a73 padding-box content-box;
  border: 2px solid #0000;
  border-radius: 999px;
}

.details-content::-webkit-scrollbar-thumb {
  background: #46608a73 padding-box content-box;
  border: 2px solid #0000;
  border-radius: 999px;
}

@keyframes shell-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .news-list, .details-content {
    min-height: 320px;
    max-height: 58vh;
  }
}

@media (max-width: 680px) {
  .monitoring-shell {
    gap: 12px;
    padding: 12px;
  }

  .monitoring-header {
    padding: 14px;
  }

  .status-grid, .inline-grid, .kv-grid, .group-grid {
    grid-template-columns: 1fr;
  }

  .agent-row {
    flex-direction: column;
    gap: 4px;
  }

  .agent-row h4 {
    min-width: auto;
  }

  .news-row {
    min-height: 118px;
    height: auto !important;
  }

  .timestamp {
    display: none;
  }
}

.segment-warn-block {
  margin: .5rem 0;
}

.segment-details {
  margin-top: .4rem;
}

.segment-details-summary {
  cursor: pointer;
  color: var(--accent);
  -webkit-user-select: none;
  user-select: none;
  font-size: .82rem;
  font-weight: 500;
}

.segment-details-summary:hover {
  text-decoration: underline;
}

.segment-details-list {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 260px;
  margin-top: .4rem;
  padding: 8px 10px;
  overflow-y: auto;
}

.segment-detail-row {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
  font-size: .78rem;
  line-height: 1.5;
}

.segment-detail-row:last-child {
  border-bottom: none;
}

.segment-agent {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-code);
  font-size: .75rem;
}

.segment-cond {
  font-family: var(--font-code);
  color: var(--text-secondary);
  font-size: .75rem;
}

.segment-acc {
  color: var(--text-secondary);
  opacity: .8;
  font-size: .72rem;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=app_globals_71f961d1.css.map*/