@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Orbitron:wght@500;600;700&display=swap");

:root {
  --ink: #15171a;
  --slate: #1f2a31;
  --paper: #f6f0e7;
  --sand: #e7dcc8;
  --coral: #f15a3c;
  --teal: #1f9ca6;
  --amber: #f2c14e;
  --moss: #4a6b52;
  --card: #fff8ef;
  --border: rgba(24, 28, 32, 0.12);
  --shadow: 0 18px 40px rgba(15, 20, 26, 0.18);
  --font-sans: "Space Grotesk", "Trebuchet MS", "Tahoma", sans-serif;
  --font-display: "Fraunces", "Palatino Linotype", serif;
}

body.theme-console {
  --ink: #e8f0ff;
  --slate: #8aa3c4;
  --ink-muted: rgba(232, 240, 255, 0.68);
  --ink-faint: rgba(232, 240, 255, 0.45);
  --paper: #0a101b;
  --sand: #0f1726;
  --coral: #ff8f1f;
  --teal: #45f3ff;
  --amber: #6dff88;
  --moss: #6dff88;
  --card: #0f1726;
  --border: rgba(69, 243, 255, 0.2);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  --surface-1: rgba(10, 16, 27, 0.92);
  --surface-2: rgba(14, 22, 36, 0.92);
  --surface-3: rgba(18, 28, 46, 0.88);
  --font-sans: "Manrope", "Space Grotesk", "Trebuchet MS", "Tahoma", sans-serif;
  --font-display: "Orbitron", "Fraunces", "Palatino Linotype", serif;
}

body.theme-console {
  background: radial-gradient(900px circle at 12% -10%, rgba(69, 243, 255, 0.2) 0%, transparent 55%),
    radial-gradient(900px circle at 90% 5%, rgba(109, 255, 136, 0.16) 0%, transparent 50%),
    linear-gradient(160deg, #0b131f 0%, #0a101b 100%);
}

body.embed .glow,
body.embed .noise {
  display: none;
}

body.embed .hero {
  padding: 1.4rem 1.5rem 0.8rem;
}

body.embed .hero h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
}

body.embed .hero p {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(900px circle at 12% -10%, #ffd6b5 0%, transparent 55%),
    radial-gradient(900px circle at 90% 5%, #b5efe8 0%, transparent 50%),
    linear-gradient(160deg, #f8f1e6 0%, #efe0cf 55%, #e4d3bf 100%);
  overflow-x: hidden;
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  z-index: 0;
}

.glow--a {
  top: -140px;
  left: -120px;
  background: #ffb17f;
}

.glow--b {
  bottom: -220px;
  right: -180px;
  background: #7de0d8;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2.4rem, 4vw, 4.5rem) clamp(1.5rem, 6vw, 5.5rem) 2rem;
  display: grid;
  gap: 1.5rem;
  animation: floatIn 0.8s ease both;
}

.hero__top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
  color: rgba(21, 23, 26, 0.75);
}

.hero__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.hero__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
}

.hero__bar .btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
}

.toolbar-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem 0.25rem 0.5rem;
  min-width: 0;
}

.toolbar-control--search {
  flex: 1 1 260px;
  max-width: 360px;
}

.toolbar-control--sort {
  flex: 0 0 auto;
}

.toolbar-control label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(21, 23, 26, 0.65);
}

.toolbar-control input,
.toolbar-control select {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  min-width: 160px;
  color: inherit;
  font-family: var(--font-sans);
}

.toolbar-control--search input {
  min-width: 220px;
}

.toolbar-control--sort select {
  min-width: 140px;
}

.toolbar-control input:focus,
.toolbar-control select:focus {
  outline: none;
}

.toolbar-control--sort .inline {
  gap: 0.4rem;
}

.config-panel {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(15, 20, 26, 0.12);
}

.config-panel__summary {
  display: none;
}

.config-panel summary {
  cursor: pointer;
  font-weight: 600;
}

.config-panel:not([open]) {
  display: none;
}

.config-panel__grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.control {
  display: grid;
  gap: 0.35rem;
}

.control label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(21, 23, 26, 0.7);
}

.control input,
.control select {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.control input:focus,
.control select:focus {
  outline: 2px solid rgba(31, 156, 166, 0.45);
  border-color: rgba(31, 156, 166, 0.6);
}

.control--wide {
  grid-column: span 2;
}

.workspace-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.4rem 0 0.2rem;
}

.workspace-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px dashed rgba(24, 28, 32, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.workspace-row__primary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(21, 23, 26, 0.65);
}

.workspace-row__input {
  min-width: 160px;
  flex: 1 1 200px;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(24, 28, 32, 0.16);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.workspace-row__input:focus {
  outline: 2px solid rgba(31, 156, 166, 0.35);
  border-color: rgba(31, 156, 166, 0.55);
}

.inline {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.hint {
  font-size: 0.75rem;
  color: rgba(21, 23, 26, 0.6);
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 2rem;
  padding: 0 clamp(1.5rem, 6vw, 5.5rem) 4rem;
}

.filters {
  position: relative;
  top: auto;
  align-self: start;
}

.panel {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel--watchers {
  margin-top: 1.5rem;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel__actions {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.5rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.toggle--inline {
  margin: 0;
  font-size: 0.8rem;
}

.filter-block {
  margin: 1.1rem 0;
}

.filter-block summary {
  list-style: none;
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(21, 23, 26, 0.7);
  cursor: pointer;
}

.filter-block summary::-webkit-details-marker {
  display: none;
}

.filter-list {
  display: grid;
  gap: 0.4rem;
}

.rating-filter {
  display: grid;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(21, 23, 26, 0.08);
}

.rating-filter:first-child {
  border-top: none;
}

.rating-filter__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(21, 23, 26, 0.6);
}

.rating-filter__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.rating-filter__controls label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: rgba(21, 23, 26, 0.6);
}

.rating-filter__controls select {
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.rating-visibility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.rating-visibility label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.filter-item span {
  flex: 1;
}

.filter-item em {
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(21, 23, 26, 0.6);
}

.watchers {
  display: grid;
  gap: 0.8rem;
}

.watcher {
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(24, 28, 32, 0.08);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.6rem;
}

.watcher__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.watcher__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.watcher__state {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(21, 23, 26, 0.6);
}

.watcher__detail {
  font-size: 0.8rem;
  color: rgba(21, 23, 26, 0.65);
}

.watcher__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.watcher-command {
  display: grid;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  border: 1px dashed rgba(24, 28, 32, 0.15);
  background: rgba(255, 255, 255, 0.65);
}

.watcher-command__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.watcher-command__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.watcher-command__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(21, 23, 26, 0.6);
}

.watcher-command__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.watcher-command__field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: rgba(21, 23, 26, 0.65);
}

.watcher-command__field span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.watcher-command__field input {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(24, 28, 32, 0.16);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.watcher-command__field input:focus {
  outline: 2px solid rgba(31, 156, 166, 0.35);
  border-color: rgba(31, 156, 166, 0.55);
}

.watcher-command__preview {
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(21, 23, 26, 0.06);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.watcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(21, 23, 26, 0.2);
}

.watcher-dot--active {
  background: var(--teal);
}

.watcher-dot--idle {
  background: var(--amber);
}

.watcher-dot--paused {
  background: var(--coral);
}

.watcher-dot--missing,
.watcher-dot--empty,
.watcher-dot--disconnected,
.watcher-dot--off {
  background: rgba(21, 23, 26, 0.3);
}

.watcher-runs {
  display: grid;
  gap: 0.4rem;
}

.watcher-run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(24, 28, 32, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.watcher-run__info {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.watcher-run__name {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.watcher-run__meta {
  font-size: 0.75rem;
  color: rgba(21, 23, 26, 0.6);
}

.watcher-run__actions {
  display: flex;
  gap: 0.4rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(31, 156, 166, 0.1);
  color: #0b4f57;
  font-size: 0.75rem;
  border: 1px solid rgba(31, 156, 166, 0.35);
  cursor: pointer;
}

.content {
  display: grid;
  gap: 1.5rem;
  align-self: start;
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 2rem);
}

.selection-panel {
  background: var(--card);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 20, 26, 0.12);
  display: grid;
  gap: 0.8rem;
}

.selection-panel--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  box-shadow: none;
}

.selection-panel__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.selection-count {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.selection-label {
  font-size: 0.8rem;
  color: rgba(21, 23, 26, 0.65);
}

.selection-panel__export {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(24, 28, 32, 0.08);
}

.selection-panel__export--inline {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
}

.selection-panel__export--inline summary {
  padding: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.selection-panel__export--inline[open] {
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
  flex-basis: 100%;
}

.selection-panel__export summary {
  cursor: pointer;
  font-weight: 600;
}

.export-fields {
  display: grid;
  gap: 0.4rem;
  margin: 0.7rem 0 0.6rem;
}

.export-fields .toggle {
  margin: 0;
  font-size: 0.8rem;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.widget-panel {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.widget-panel__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stats--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.stats--inline .stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  box-shadow: none;
}

.stats--inline .stat__label {
  letter-spacing: 0.1em;
}

.stats--inline .stat__value {
  font-size: 1.05rem;
}

.stat {
  background: var(--card);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 20, 26, 0.12);
  animation: fadeUp 0.6s ease both;
}

.stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(21, 23, 26, 0.65);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 320px));
  gap: 1.4rem;
  justify-content: start;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding-right: 0.4rem;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid rgba(24, 28, 32, 0.1);
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
  position: relative;
  min-width: 0;
}

.card > * {
  min-width: 0;
}

.card:hover {
  transform: translateY(6px);
  box-shadow: 0 24px 50px rgba(15, 20, 26, 0.22);
}

.card--selected {
  border-color: rgba(31, 156, 166, 0.6);
  box-shadow: 0 18px 40px rgba(14, 76, 84, 0.18);
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.card-select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: rgba(21, 23, 26, 0.65);
  flex: 0 0 auto;
}

.card-select input {
  accent-color: #1f9ca6;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(241, 90, 60, 0.15);
  color: #7a1a06;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge--status {
  background: rgba(31, 156, 166, 0.15);
  color: #0a4c54;
}

.badge--maturity {
  background: rgba(242, 193, 78, 0.18);
  color: #7a4d02;
}

.badge--workspace {
  background: rgba(74, 107, 82, 0.16);
  color: #26402c;
}

.meta-grid {
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.meta-grid span {
  color: rgba(21, 23, 26, 0.7);
}

.ratings {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(24, 28, 32, 0.08);
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.rating-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(21, 23, 26, 0.6);
  min-width: 92px;
}

.rating-stars {
  display: inline-flex;
  gap: 0.25rem;
  min-width: 0;
}

.rating-star {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: rgba(21, 23, 26, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rating-star svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rating-star.is-active {
  color: var(--amber);
}

.rating-value {
  font-size: 0.8rem;
  color: rgba(21, 23, 26, 0.6);
  min-width: 34px;
  text-align: right;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  background: rgba(74, 107, 82, 0.12);
  color: #2c4a34;
  font-size: 0.75rem;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.card .actions .btn {
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  border-radius: 12px;
}

.entrypoints {
  display: grid;
  gap: 0.6rem;
}

.entry {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 28, 32, 0.08);
}

.entry__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.entry__row--actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.entry-select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 156, 166, 0.25);
  background: rgba(31, 156, 166, 0.08);
  color: rgba(21, 23, 26, 0.7);
}

.entry-select input {
  accent-color: #1f9ca6;
}

.entry code {
  font-size: 0.78rem;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.entry-command {
  display: grid;
  gap: 0.4rem;
}

.entry-command__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem;
}

.entry-command__field {
  display: grid;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: rgba(21, 23, 26, 0.65);
}

.entry-command__field span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.entry-command__field input {
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(24, 28, 32, 0.16);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.entry-command__field input:focus {
  outline: 2px solid rgba(31, 156, 166, 0.35);
  border-color: rgba(31, 156, 166, 0.55);
}

.sessions {
  padding: 0.4rem 0;
}

.session-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 28, 32, 0.08);
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.session-provider {
  font-weight: 600;
  font-size: 0.85rem;
}

.session-origin {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(31, 42, 49, 0.08);
  color: #1f2a31;
}

.session-origin--system-run {
  background: rgba(242, 193, 78, 0.2);
  color: #7a4d02;
}

.session-origin--user {
  background: rgba(31, 156, 166, 0.15);
  color: #0a4c54;
}

.session-origin--unknown {
  background: rgba(21, 23, 26, 0.08);
  color: rgba(21, 23, 26, 0.6);
}

.session-date {
  font-size: 0.75rem;
  color: rgba(21, 23, 26, 0.6);
}

.session-id {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-sans);
  background: var(--coral);
  color: white;
}

.btn--ghost {
  background: rgba(31, 42, 49, 0.08);
  color: #1f2a31;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(31, 42, 49, 0.25);
  color: #1f2a31;
}

.footer {
  padding: 2rem clamp(1.5rem, 6vw, 5.5rem);
  color: rgba(21, 23, 26, 0.65);
  font-size: 0.85rem;
}

.pill {
  background: rgba(241, 90, 60, 0.15);
  color: #7a1a06;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill--ghost {
  background: rgba(31, 42, 49, 0.08);
  color: #2f3b42;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #1f2a31;
  color: #f8f1e6;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

body.theme-console .config-panel,
body.theme-console .panel,
body.theme-console .watcher,
body.theme-console .watcher-command,
body.theme-console .watcher-run,
body.theme-console .selection-panel,
body.theme-console .selection-panel__export,
body.theme-console .stat,
body.theme-console .card,
body.theme-console .ratings,
body.theme-console .entry,
body.theme-console .session-row,
body.theme-console .workspace-row,
body.theme-console .entrypoints,
body.theme-console .watchers {
  background: var(--surface-2);
  border-color: rgba(69, 243, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body.theme-console .selection-panel__export,
body.theme-console .watcher-command,
body.theme-console .watcher-run,
body.theme-console .entry,
body.theme-console .session-row,
body.theme-console .workspace-row {
  background: var(--surface-1);
  box-shadow: none;
}

body.theme-console .card {
  border-color: rgba(69, 243, 255, 0.18);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

body.theme-console .card:hover {
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.6);
}

body.theme-console .card--selected {
  border-color: rgba(109, 255, 136, 0.65);
  box-shadow: 0 20px 40px rgba(7, 80, 60, 0.35);
}

body.theme-console .hero p,
body.theme-console .hint,
body.theme-console .filter-item em,
body.theme-console .rating-filter__label,
body.theme-console .rating-filter__controls label,
body.theme-console .selection-label,
body.theme-console .meta-grid span,
body.theme-console .rating-label,
body.theme-console .rating-value,
body.theme-console .watcher__detail,
body.theme-console .watcher__state,
body.theme-console .watcher-command__title,
body.theme-console .watcher-command__field,
body.theme-console .watcher-run__meta,
body.theme-console .session-date,
body.theme-console .session-id,
body.theme-console .entry-command__field,
body.theme-console .entry code,
body.theme-console .session-origin--unknown {
  color: var(--ink-muted);
}

body.theme-console .control label,
body.theme-console .filter-block summary,
body.theme-console .rating-filter__controls label,
body.theme-console .workspace-row__primary,
body.theme-console .panel h2,
body.theme-console .stat__label,
body.theme-console .card-select,
body.theme-console .entry-select,
body.theme-console .watcher-command__field span,
body.theme-console .entry-command__field span {
  color: var(--ink-faint);
}

body.theme-console .control input,
body.theme-console .control select,
body.theme-console .workspace-row__input,
body.theme-console .rating-filter__controls select,
body.theme-console .watcher-command__field input,
body.theme-console .entry-command__field input {
  background: rgba(8, 12, 22, 0.75);
  border-color: rgba(69, 243, 255, 0.25);
  color: var(--ink);
}

body.theme-console .control input:focus,
body.theme-console .control select:focus,
body.theme-console .workspace-row__input:focus,
body.theme-console .rating-filter__controls select:focus,
body.theme-console .watcher-command__field input:focus,
body.theme-console .entry-command__field input:focus {
  outline: 2px solid rgba(69, 243, 255, 0.45);
  border-color: rgba(69, 243, 255, 0.65);
}

body.theme-console .entry-select {
  background: rgba(8, 12, 22, 0.75);
  border-color: rgba(69, 243, 255, 0.35);
}

body.theme-console .watcher-command__preview,
body.theme-console .entry code,
body.theme-console .session-id {
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
}

body.theme-console .rating-star {
  color: rgba(232, 240, 255, 0.25);
}

body.theme-console .rating-star.is-active {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(109, 255, 136, 0.35);
}

body.theme-console .btn {
  background: linear-gradient(135deg, var(--teal), var(--moss));
  color: #041018;
  font-weight: 600;
}

body.theme-console .btn--ghost {
  background: rgba(69, 243, 255, 0.12);
  color: var(--ink);
  border: 1px solid rgba(69, 243, 255, 0.25);
}

body.theme-console .btn--outline {
  background: rgba(109, 255, 136, 0.85);
  border-color: rgba(109, 255, 136, 0.55);
  color: #041018;
}

body.theme-console .control label.btn--outline,
body.theme-console .control label.btn--outline span {
  color: #041018;
}

body.theme-console .pill {
  background: rgba(69, 243, 255, 0.18);
  color: #c9f4ff;
}

body.theme-console .pill--ghost {
  background: rgba(12, 18, 30, 0.85);
  color: var(--ink-muted);
  border: 1px solid rgba(69, 243, 255, 0.2);
}

body.theme-console .chip {
  background: rgba(69, 243, 255, 0.16);
  color: #c9f4ff;
  border-color: rgba(69, 243, 255, 0.35);
}

body.theme-console .badge {
  background: rgba(255, 143, 31, 0.22);
  color: #ffd39a;
}

body.theme-console .badge--status {
  background: rgba(69, 243, 255, 0.2);
  color: #c9f4ff;
}

body.theme-console .badge--maturity {
  background: rgba(109, 255, 136, 0.18);
  color: #b7ffcc;
}

body.theme-console .badge--workspace {
  background: rgba(232, 240, 255, 0.12);
  color: var(--ink-muted);
}

body.theme-console .tag {
  background: rgba(109, 255, 136, 0.18);
  color: #b7ffcc;
}

body.theme-console .session-origin {
  background: rgba(12, 18, 30, 0.85);
  color: var(--ink-muted);
  border: 1px solid rgba(69, 243, 255, 0.2);
}

body.theme-console .session-origin--system-run {
  background: rgba(255, 143, 31, 0.22);
  color: #ffd39a;
}

body.theme-console .session-origin--user {
  background: rgba(69, 243, 255, 0.2);
  color: #c9f4ff;
}

body.theme-console .watcher-dot--active {
  background: var(--teal);
}

body.theme-console .watcher-dot--idle {
  background: #f2c14e;
}

body.theme-console .watcher-dot--paused {
  background: var(--coral);
}

body.theme-console .watcher-dot--missing,
body.theme-console .watcher-dot--empty,
body.theme-console .watcher-dot--disconnected,
body.theme-console .watcher-dot--off {
  background: rgba(232, 240, 255, 0.3);
}

body.theme-console .footer {
  color: var(--ink-muted);
}

body.theme-console .hero {
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem) 0.8rem;
  gap: 0.9rem;
}

body.theme-console .hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

body.theme-console .hero p {
  font-size: 0.85rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 820px;
}

body.theme-console .hero__bar {
  gap: 0.5rem 0.7rem;
}

body.theme-console .toolbar-control {
  background: rgba(10, 16, 27, 0.75);
  border-color: rgba(69, 243, 255, 0.35);
  color: var(--ink);
}

body.theme-console .toolbar-control label {
  color: var(--ink-faint);
}

body.theme-console .toolbar-control input,
body.theme-console .toolbar-control select {
  color: var(--ink);
}

body.theme-console .config-panel {
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
}

body.theme-console .config-panel__grid {
  gap: 0.8rem;
}

body.theme-console .selection-panel--compact {
  background: var(--surface-2);
  border-color: rgba(69, 243, 255, 0.25);
}

body.theme-console .selection-panel--compact .selection-label {
  color: var(--ink-faint);
}

body.theme-console .selection-panel__export--inline {
  background: rgba(69, 243, 255, 0.16);
  border-color: rgba(69, 243, 255, 0.35);
}

body.theme-console .selection-panel__export--inline summary {
  color: #041018;
}

body.theme-console .selection-panel__export--inline[open] {
  background: var(--surface-1);
  color: var(--ink);
}

body.theme-console .stats--inline .stat {
  background: rgba(10, 16, 27, 0.75);
  border-color: rgba(69, 243, 255, 0.25);
  color: var(--ink);
}

body.theme-console .stats--inline .stat__label {
  color: var(--ink-faint);
}

body.theme-console .tag {
  background: rgba(69, 243, 255, 0.14);
  color: #bfefff;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .control--wide {
    grid-column: span 1;
  }

  .content {
    position: static;
    max-height: none;
  }

  .cards {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}
