:root {
  color-scheme: light;
  --accent-fill-rest: #0078a1;
  --neutral-layer-1: #ffffff;
}

html,
body {
  margin: 0;
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
  color: #0f172a;
}

body {
  min-height: 100vh;
}

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

/* Shell Layout */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell-header {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2c6e91;
}

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

.top-nav__link {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #4b5563;
  transition: background-color 120ms ease;
}

.top-nav__link:hover {
  background: rgba(0, 120, 161, 0.09);
  color: #0078a1;
}

.top-nav__link[aria-current="page"] {
  background: rgba(0, 120, 161, 0.15);
  color: #0078a1;
  font-weight: 600;
}

.shell-body {
  flex: 1;
  padding: 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.panel-shell {
  grid-column: span 12;
  min-width: 0;
}

/* Panel */
.panel {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.panel-header.compact {
  margin-bottom: 1rem;
}

.panel-header.compact h2,
.panel-header.compact h1,
.panel-header h1 {
  margin: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

/* Typography */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #2c6e91;
  margin-bottom: 0.5rem;
}

.lede,
.small-copy {
  color: #4b5563;
}

.section-title,
.tag-group__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #12344d;
  margin-bottom: 0.5rem;
}

/* Session */
.session-meta,
.session-actions,
.meta-row,
.actions,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.generator-endpoint {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.06);
  color: #4b5563;
}

.badge-accent {
  background: rgba(0, 120, 161, 0.12);
  color: #0078a1;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.06);
  color: #4b5563;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-accent {
  background: #0078a1;
  color: white;
}

.btn-accent:hover:not(:disabled) {
  background: #006483;
}

.btn-outline {
  border-color: rgba(15, 23, 42, 0.2);
  background: white;
}

.btn-outline:hover:not(:disabled) {
  border-color: #0078a1;
  color: #0078a1;
}

.btn-stealth {
  background: transparent;
}

/* Text Field */
.text-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.text-field__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.text-field__input {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
}

.text-field__input:focus {
  outline: none;
  border-color: #0078a1;
}

.text-field__input:disabled {
  background: rgba(15, 23, 42, 0.04);
}

/* Select */
.select {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  width: 100%;
}

.select:focus {
  outline: none;
  border-color: #0078a1;
}

/* Message Bars */
.message-bar {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.message-bar-error {
  background: rgba(181, 71, 71, 0.1);
  color: #b54747;
  border: 1px solid rgba(181, 71, 71, 0.2);
}

.message-bar-success {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.message-bar-info {
  background: rgba(0, 120, 161, 0.1);
  color: #0078a1;
  border: 1px solid rgba(0, 120, 161, 0.2);
}

.message-bar-warning {
  background: rgba(202, 138, 4, 0.1);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.2);
}

/* Smart Feed Panel */
.smart-feed-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.smart-mode-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Tag Chips */
.tag-chip {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #12344d;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.tag-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 161, 0.45);
}

.tag-chip.is-selected {
  border-color: #0078a1;
  background: rgba(0, 120, 161, 0.09);
}

.tag-chip.danger.is-selected {
  border-color: #b54747;
  background: rgba(181, 71, 71, 0.1);
}

/* Source Grid */
.source-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Lists */
.feed-list,
.signal-list,
.author-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.signal-item {
  display: grid;
  gap: 0.5rem;
}

.signal-item__top,
.feed-item__header,
.author-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.feed-item {
  display: grid;
  gap: 1rem;
}

.author-row {
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.meta-row a {
  color: #0078a1;
  text-decoration: none;
  font-weight: 600;
}

.meta-row a:hover {
  text-decoration: underline;
}

.status-text {
  margin-left: 0.5rem;
  color: #4b5563;
  font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 1100px) {
  .source-grid {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 959px) {
  .panel-header,
  .feed-item__header,
  .signal-item__top {
    flex-direction: column;
  }
  
  .top-nav {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .shell-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .top-nav__link {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
  }
}
An unhandled error has occurred. Reload 🗙