/* Greenlight — a full-viewport console, built on the site's tokens. */

.gl-body { display: flex; flex-direction: column; min-height: 100vh; }

/* top bar */
.gl-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--card);
}
.gl-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gl-sep { color: var(--line); }
.gl-name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.gl-name em { font-style: normal; color: var(--ok); }
.gl-tag { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.gl-keys { display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.gl-keys kbd {
  display: inline-block; min-width: 16px; text-align: center; padding: 1px 4px; margin-right: 2px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--paper);
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-2);
}
@media (max-width: 900px) { .gl-keys { display: none; } }

/* stats strip */
.gl-stats {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 12px 22px; border-bottom: 1px solid var(--line);
}
.gl-stats .st b { font-family: var(--display); font-weight: 650; font-size: 19px; margin-right: 7px; }
.gl-stats .st s {
  text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}
.st-thresh { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.st-thresh label { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.st-thresh output { color: var(--ok); font-weight: 500; }
.st-thresh input[type="range"] { accent-color: var(--ok); width: 160px; }
@media (max-width: 720px) { .st-thresh { margin-left: 0; width: 100%; } }

/* main split */
.gl-app {
  flex: 1; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 0; min-height: 0;
}
@media (max-width: 860px) { .gl-app { grid-template-columns: 1fr; } }

/* queue list */
.gl-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 10px; }
@media (max-width: 860px) { .gl-list { border-right: none; border-bottom: 1px solid var(--line); } }

.gl-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  font-family: var(--sans); color: var(--ink);
  transition: border-color 0.15s, transform 0.25s, opacity 0.25s, background 0.15s;
}
.gl-row:hover { border-color: var(--ink-3); }
.gl-row.sel { border-color: var(--ink); background: var(--paper); box-shadow: inset 3px 0 0 var(--ok); }
.gl-row.out-ok { opacity: 0; transform: translateX(24px); }
.gl-row.out-no { opacity: 0; transform: translateX(-24px); }
.gl-row.arriving { animation: gl-arrive 0.4s ease; }
@keyframes gl-arrive { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.gl-row .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.gl-row .dot.finance { background: #2458b3; }
.gl-row .dot.outbound { background: #7c4bd1; }
.gl-row .dot.kyc { background: #b8860b; }
.gl-row .dot.support { background: #0f8a86; }
.gl-row .dot.ops { background: #5a6b7d; }

.gl-row .body { flex: 1; min-width: 0; }
.gl-row .title { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-row .meta { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.gl-conf {
  font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 99px; flex-shrink: 0;
}
.gl-conf.g { background: var(--ok-soft); color: var(--ok); }
.gl-conf.y { background: var(--warn-soft); color: var(--warn); }
.gl-conf.r { background: var(--signal-soft); color: var(--signal); }

.gl-empty {
  margin: 40px auto; max-width: 34ch; text-align: center;
  font-size: 14.5px; color: var(--ink-3); line-height: 1.7;
}
.gl-empty b { display: block; font-family: var(--display); font-size: 17px; color: var(--ink-2); margin-bottom: 6px; }

/* detail pane */
.gl-detail { padding: 22px 24px; overflow-y: auto; background: var(--card); }
.gl-detail h2 { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
.gl-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.gl-badges span {
  font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 99px;
  background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink-2);
}
.gl-detail h3 {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin: 20px 0 8px;
}
.gl-detail h3::before { content: '— '; color: var(--ok); }
.gl-detail .why { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.gl-ev { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.gl-ev:last-of-type { border-bottom: none; }
.gl-ev .src {
  font-family: var(--mono); font-size: 10.5px; color: #2458b3; background: #e3ecfb;
  padding: 1px 7px; border-radius: 3px; white-space: nowrap; flex-shrink: 0;
}
.gl-ev .txt { font-size: 13px; color: var(--ink-2); }
.gl-detail pre {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.6;
  color: var(--ink-2); overflow-x: auto;
}
.gl-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.gl-actions .btn { font-size: 14px; }
.btn-approve { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn-approve:hover { background: #17693f; }
.btn-reject { border: 1px solid #ecc7c3; color: var(--signal); background: var(--signal-soft); }
.btn-reject:hover { background: #f0d9d6; }
.gl-detail .none { color: var(--ink-3); font-size: 14px; margin-top: 20px; }

/* status bar */
.gl-status {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.gl-back { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.gl-back:hover { color: var(--ink); }

/* toast */
.gl-toast[hidden] { display: none; }
.gl-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r-sm);
  box-shadow: 0 12px 32px -12px rgba(20, 29, 39, 0.5);
  font-size: 13.5px; z-index: 60;
}
.gl-toast button {
  font: 600 13px var(--sans); color: #8fe0b2; background: none; border: none;
  cursor: pointer; padding: 2px 4px;
}
.gl-toast button:hover { color: #b8f0d0; }
