:root {
  --ink: #10212c;
  --muted: #596877;
  --line: #b7cbc8;
  --paper: #dfeae8;
  --panel: #fbfffd;
  --panel-soft: #eef7f4;
  --sea: #0b8a7f;
  --sea-dark: #073f45;
  --aqua: #13c6b8;
  --blue: #1d4ed8;
  --sky: #0284c7;
  --green: #147846;
  --amber: #a76518;
  --gold: #c98518;
  --coral: #d94f56;
  --copper: #9f4f12;
  --plum: #5b21b6;
  --red: #b91c1c;
  --violet: #6d28d9;
  --navy: #0a2433;
  --carbon: #0d1722;
  --steel: #284756;
  --shadow: 0 22px 54px rgba(11, 36, 50, 0.16);
  --shadow-strong: 0 20px 34px rgba(7, 63, 69, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(10, 36, 51, 0.12) 0 18%, transparent 18% 100%),
    linear-gradient(156deg, rgba(11, 138, 127, 0.18) 0 28%, rgba(29, 78, 216, 0.08) 28% 52%, transparent 52%),
    linear-gradient(24deg, transparent 0 58%, rgba(201, 133, 24, 0.14) 58% 74%, transparent 74%),
    linear-gradient(180deg, #f2f7f5 0%, #dfeae8 48%, #d5e4e2 100%),
    var(--paper);
  color: var(--ink);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--sea-dark);
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef3f0;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(9, 29, 42, 0.99), rgba(7, 63, 69, 0.98) 48%, rgba(13, 23, 34, 0.995)),
    var(--navy);
  color: #fff;
  backdrop-filter: blur(16px);
  box-shadow: 12px 0 34px rgba(13, 23, 34, 0.18);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: 116px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.sidebar .brand-row {
  align-items: flex-start;
}

.sidebar .brand-logo {
  width: 128px;
  margin-top: 2px;
}

.brand-row strong,
.brand-row span {
  display: block;
}

.sidebar .brand-row span,
.sidebar .panel-kicker,
.sidebar .search span,
.sidebar .muted,
.sidebar .pulse-row {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar .pulse-row strong,
.sidebar .brand-row strong {
  color: #fff;
}

.sidebar .side-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

#app:not([data-view="network"]) .network-only-side {
  display: none;
}

.sidebar .ghost-link {
  color: #fff;
}

.nav-signout {
  margin-top: auto;
}

.brand-row span,
.eyebrow,
.panel-kicker,
.search span,
.inline-select span,
.stack-form label,
.diagnostic-form label,
.request-composer label,
.auth-form label,
.setup-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.small {
  font-size: 13px;
}

.search {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(76, 117, 123, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 251, 0.98));
  color: var(--ink);
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(11, 138, 127, 0.15), 0 8px 18px rgba(10, 36, 51, 0.08);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-button,
.filter,
.ghost-button,
.primary-button,
.mini-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-button {
  width: 100%;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
  font-weight: 780;
}

.nav-button:hover,
.nav-button.active {
  background: #e8f4f0;
  border-color: #c9e5dc;
  color: var(--sea-dark);
}

.sidebar .nav-button {
  color: rgba(255, 255, 255, 0.86);
}

.sidebar .nav-button:hover,
.sidebar .nav-button.active {
  background:
    linear-gradient(135deg, rgba(19, 198, 184, 0.18), rgba(29, 78, 216, 0.18));
  border-color: rgba(125, 211, 252, 0.32);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 20px rgba(0, 0, 0, 0.16);
  transform: translateX(2px);
}

.side-panel,
.detail-panel,
.advisor-output,
.map-stage,
.ddt-console,
.auth-card {
  border: 1px solid rgba(76, 117, 123, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 251, 249, 0.94)),
    var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset, var(--shadow);
}

.detail-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  scrollbar-width: thin;
}

.side-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.side-panel.compact {
  margin-top: auto;
}

.inline-ghost-action {
  justify-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pulse-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.pulse-row strong {
  color: var(--ink);
}

.pulse-button {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pulse-button:hover {
  border-color: rgba(15, 118, 110, 0.25);
  background: #fff;
}

.sidebar .pulse-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

.sidebar .pulse-button:hover {
  border-color: rgba(125, 211, 252, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.sidebar .pulse-button strong {
  color: #fff;
}

.sidebar .side-profile-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar .avatar {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(236, 253, 245, 0.14);
  color: #fff;
  font-size: 12px;
}

.side-profile-head strong,
.side-profile-head span {
  display: block;
}

.side-profile-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.sidebar .side-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.side-type-list,
.side-company-list {
  display: grid;
  gap: 7px;
}

.side-type-list span,
.side-company-list article {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.side-type-list b,
.side-company-list strong {
  color: #fff;
  font-size: 13px;
}

.side-network-tools {
  gap: 12px;
}

.side-network-tools .side-tool-block {
  display: grid;
  gap: 9px;
  margin-top: 2px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.side-network-tools h3 {
  margin: 0;
  color: #fff;
  font-size: 13px;
}

.sidebar .drawer {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar .drawer summary {
  color: #fff;
  font-size: 12px;
}

.sidebar .stack-form {
  gap: 8px;
  margin-top: 8px;
}

.sidebar .stack-form label,
.sidebar .network-finder .search-field span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
}

.sidebar input,
.sidebar select,
.sidebar textarea {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  font-size: 12px;
}

.sidebar textarea {
  min-height: 72px;
  padding: 8px;
}

.sidebar .primary-button,
.sidebar .ghost-button {
  min-height: 34px;
  font-size: 12px;
}

.side-network-tools .network-finder {
  gap: 8px;
  padding: 12px 9px 9px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.side-network-tools .segmented-tabs {
  grid-template-columns: 1fr;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.side-network-tools .segmented-tabs button {
  color: rgba(255, 255, 255, 0.72);
}

.side-network-tools .segmented-tabs button.active {
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(236, 253, 245, 0.12);
  color: #fff;
  box-shadow: none;
}

.side-network-tools .directory-list {
  gap: 7px;
}

.side-network-tools #myConnections,
.side-network-tools #peopleDirectory,
.side-network-tools #companyDirectory {
  max-height: 320px;
  overflow: auto;
  scrollbar-width: thin;
}

.side-network-tools .directory-card {
  gap: 7px;
  padding: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.side-network-tools .directory-card strong {
  color: #fff;
  font-size: 12px;
}

.side-network-tools .directory-card p,
.side-network-tools .directory-card .muted {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.side-network-tools .directory-card .avatar {
  width: 30px;
  height: 30px;
}

.side-network-tools .tag-row,
.side-network-tools .connection-strip,
.side-network-tools .source-line {
  display: none;
}

.side-network-tools .company-members-panel {
  padding: 9px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.side-network-tools .feed-actions {
  gap: 5px;
}

.side-network-tools .network-action {
  min-height: 26px;
  padding: 0 7px;
  font-size: 10px;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(7, 63, 69, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(218, 244, 239, 0.86) 52%, rgba(235, 244, 255, 0.82)),
    var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 18px 38px rgba(10, 36, 51, 0.1);
}

.eyebrow {
  margin: 0 0 5px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-row strong {
  font-family: Sora, Manrope, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.topbar h1 {
  font-family: Sora, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 760;
}

.top-actions,
.console-actions,
.filter-row,
.feed-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-color: rgba(6, 78, 88, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #0b8a7f, #1d4ed8 58%, #183a74);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 -2px 0 rgba(7, 63, 69, 0.36) inset, var(--shadow-strong);
}

.primary-button:hover,
.link-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(135deg, #087a72, #1e40af 58%, #122b5c);
  transform: translateY(-2px);
}

.primary-button,
.ghost-button,
.mini-button,
.link-button,
.action-ribbon,
.network-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.primary-button::before,
.ghost-button::before,
.mini-button::before,
.link-button::before,
.action-ribbon::before,
.network-action::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.72) 34%, transparent 48%),
    linear-gradient(135deg, rgba(18, 183, 176, 0.62), rgba(37, 99, 235, 0.35), rgba(217, 119, 6, 0.52));
  opacity: 0;
  transform: translateX(-42%);
  transition: opacity 180ms ease, transform 260ms ease;
}

.primary-button:hover::before,
.ghost-button:hover::before,
.mini-button:hover::before,
.link-button:hover::before,
.action-ribbon:hover::before,
.network-action:hover::before {
  opacity: 0.38;
  transform: translateX(0);
}

.ghost-button,
.filter,
.mini-button {
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(224, 242, 254, 0.22)),
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(234, 242, 255, 0.92));
  border-color: rgba(7, 63, 69, 0.2);
  color: #073f45;
  font-weight: 780;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 -1px 0 rgba(7, 63, 69, 0.12) inset, 0 8px 18px rgba(10, 36, 51, 0.08);
}

.ghost-button:hover,
.filter:hover,
.filter.active,
.mini-button:hover {
  border-color: rgba(29, 78, 216, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, rgba(204, 251, 241, 0.98), rgba(255, 247, 237, 0.96));
  color: var(--sea-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 -2px 0 rgba(7, 63, 69, 0.14) inset, 0 13px 24px rgba(10, 36, 51, 0.14);
  transform: translateY(-1px);
}

.filter.active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(14, 165, 233, 0.14));
}

.ghost-link {
  text-decoration: none;
  font-weight: 760;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.view-grid > * {
  min-width: 0;
}

.atlas-grid,
.market-grid,
.knowledge-grid,
.data-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
}

.network-grid {
  grid-template-columns: minmax(245px, 0.58fr) minmax(420px, 1.2fr) minmax(180px, 0.42fr) minmax(285px, 0.62fr);
  gap: 14px;
}

.post-launch-card {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(235, 250, 247, 0.88));
  box-shadow: 0 10px 24px rgba(10, 36, 51, 0.06);
}

.post-launch-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.post-launch-button:hover {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.post-launch-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sea), var(--blue));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.post-launch-button strong,
.post-launch-button small {
  display: block;
}

.post-launch-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.ddt-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
}

.market-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.map-stage,
.ddt-console {
  padding: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.local-page-stat {
  display: inline-grid;
  min-width: 118px;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.local-page-stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.local-page-stat strong {
  color: var(--sea-dark);
  font-size: 18px;
  line-height: 1;
}

.inline-select {
  display: grid;
  min-width: 220px;
  gap: 7px;
}

.map-wrap {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(209, 243, 234, 0.72), rgba(227, 238, 255, 0.88)),
    #e9f5f4;
}

.earth-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #1f2937;
}

.satellite-map-wrap {
  background: #1f2937;
}

.marker-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.map-fallback {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(23, 33, 43, 0.78);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.map-fallback[hidden] {
  display: none;
}

.project-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.24);
  transform: translate(-50%, -50%);
}

.project-marker::after {
  content: attr(data-short);
  position: absolute;
  left: 20px;
  top: -9px;
  min-width: max-content;
  max-width: 180px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.project-marker:hover::after,
.project-marker.active::after {
  opacity: 1;
  transform: translateY(0);
}

.project-marker[data-stage="Operating"] {
  background: var(--green);
}

.project-marker[data-stage="Commissioning"] {
  background: var(--amber);
}

.project-marker[data-stage="Planning"] {
  background: var(--violet);
}

.nuclear-map-pin {
  display: grid;
  width: 28px !important;
  height: 28px !important;
  margin-left: -14px !important;
  margin-top: -14px !important;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.nuclear-map-pin.stage-operating {
  background: var(--green);
}

.nuclear-map-pin.stage-commissioning {
  background: var(--amber);
}

.nuclear-map-pin.stage-planning {
  background: var(--violet);
}

.compact-submit {
  min-height: 32px;
  padding-inline: 12px;
  font-size: 12px;
  justify-self: start;
}

.nuclear-map-pin.stage-shutdown {
  background: #89919d;
}

.nuclear-map-pin.stage-suspended {
  background: var(--orange);
}

.nuclear-map-pin.stage-cancelled {
  background: #d94d4d;
}

.nuclear-map-pin.active {
  transform: scale(1.22);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.38), 0 12px 26px rgba(0, 0, 0, 0.38);
}

.leaflet-container {
  font: inherit;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--ink);
}

.project-strip,
.category-grid,
.metric-board,
.feed,
.mini-feed,
.detail-stack,
.source-grid,
.data-stats {
  display: grid;
  gap: 10px;
}

.project-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.project-strip[hidden] {
  display: none;
}

.atlas-search-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(76, 117, 123, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.72)),
    var(--panel);
}

.atlas-search-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.72fr) minmax(140px, 0.72fr) minmax(260px, 1.6fr) auto;
  gap: 9px;
  align-items: end;
}

.atlas-search-form label {
  display: grid;
  gap: 7px;
}

.atlas-search-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.project-card,
.category-card,
.metric-card,
.feed-card,
.finding,
.supplier-match,
.recent-card {
  border: 1px solid rgba(76, 117, 123, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 248, 0.94)),
    var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.84) inset, 0 12px 26px rgba(10, 36, 51, 0.08);
}

.compact-project-results .project-card,
.category-grid .category-card,
.taxonomy-shelf .taxonomy-card {
  box-shadow: none;
}

.project-card,
.category-card,
.metric-card,
.feed-card,
.recent-card {
  padding: 14px;
}

.data-card,
.source-card {
  padding: 14px;
  border: 1px solid rgba(76, 117, 123, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 248, 0.94)),
    var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.84) inset, 0 12px 26px rgba(10, 36, 51, 0.08);
}

.data-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(239, 246, 255, 0.84)),
    var(--panel);
}

.data-intro p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.data-intro-steps {
  display: grid;
  gap: 8px;
}

.data-intro-steps span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.data-intro-steps b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-size: 12px;
}

.data-card {
  margin-top: 14px;
}

.source-grid,
.country-grid,
.ddt-library-grid {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
  padding: 4px;
  border: 1px solid rgba(76, 117, 123, 0.14);
  border-radius: var(--radius);
  background: rgba(248, 253, 252, 0.72);
  scrollbar-width: thin;
}

.source-card,
.country-card,
.ddt-library-card {
  display: grid;
  gap: 9px;
}

.ddt-library-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 16px rgba(10, 36, 51, 0.04);
}

.ddt-library-card strong {
  color: var(--ink);
  font-size: 14px;
}

.ddt-library-card p {
  margin-bottom: 0;
}

.data-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 16px rgba(10, 36, 51, 0.04);
}

.data-accordion summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 11px;
  cursor: pointer;
  list-style: none;
}

.data-accordion summary::-webkit-details-marker {
  display: none;
}

.data-accordion summary::after {
  content: "+";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  color: var(--sea-dark);
  font-weight: 900;
}

.data-accordion[open] summary::after {
  content: "-";
}

.data-accordion summary > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.data-accordion strong,
.data-accordion small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-accordion strong {
  color: var(--ink);
  font-size: 14px;
}

.data-accordion small {
  color: var(--muted);
  font-size: 12px;
}

.data-accordion-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.data-accordion-metrics b {
  padding: 4px 6px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.82);
  color: var(--sea-dark);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.data-accordion-body {
  display: grid;
  gap: 9px;
  padding: 0 11px 11px;
  border-top: 1px solid rgba(76, 117, 123, 0.12);
}

.source-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.country-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.data-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.source-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.source-line a {
  font-weight: 760;
}

.plant-info-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 7px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--sea-dark);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.plant-info-link:hover {
  background: rgba(15, 118, 110, 0.13);
}

.compact-head {
  margin-bottom: 10px;
}

.compact-list li {
  font-size: 13px;
}

.template-links {
  margin-top: 10px;
}

.light-link {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(239, 246, 255, 0.92));
  color: var(--sea-dark);
}

.project-card,
.category-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 72px;
  text-align: left;
}

.project-card {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.project-card h3,
.category-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.project-card p,
.category-card p {
  margin: 0;
  font-size: 12px;
}

.project-card.active,
.category-card.active {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.project-card p,
.category-card p,
.feed-card p,
.detail-panel p,
.advisor-output p {
  color: var(--muted);
  line-height: 1.48;
}

.badge-row,
.stat-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(7, 63, 69, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(230, 248, 244, 0.92));
  color: #073f45;
  font-size: 12px;
  font-weight: 780;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.badge.green {
  border-color: rgba(21, 128, 61, 0.22);
  background: rgba(21, 128, 61, 0.08);
  color: var(--green);
}

.badge.amber {
  border-color: rgba(183, 121, 31, 0.24);
  background: rgba(183, 121, 31, 0.08);
  color: var(--amber);
}

.badge.red {
  border-color: rgba(190, 18, 60, 0.2);
  background: rgba(190, 18, 60, 0.07);
  color: var(--red);
}

.candidate-review-list {
  display: grid;
  gap: 9px;
  width: 100%;
}

.candidate-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.candidate-metrics span {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.candidate-metrics b {
  color: var(--ink);
  font-size: 17px;
}

.candidate-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 248, 0.9));
}

.candidate-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.candidate-learning {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learning-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(238, 251, 247, 0.94);
  color: #075e56;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.learning-pill.pending {
  border-color: rgba(180, 83, 9, 0.24);
  background: rgba(255, 248, 230, 0.94);
  color: #8a4b04;
}

.learning-pill.learned {
  border-color: rgba(6, 95, 70, 0.24);
  background: rgba(222, 247, 235, 0.96);
  color: #065f46;
}

.compact-candidate {
  padding: 9px;
}

.compact-candidate .feed-actions {
  gap: 6px;
}

.wide-candidate-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-candidate-list .candidate-metrics {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-panel,
.advisor-output {
  position: sticky;
  top: 24px;
  padding: 18px;
}

.detail-hero {
  display: grid;
  gap: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 10px 12px;
  border-left: 3px solid var(--sea);
  border-radius: 0 var(--radius) var(--radius) 0;
  background:
    linear-gradient(90deg, rgba(204, 251, 241, 0.22), rgba(255, 255, 255, 0.9)),
    #f8faf8;
  color: #34404d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.drawer {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.drawer summary {
  cursor: pointer;
  font-weight: 800;
}

.stack-form,
.diagnostic-form {
  display: grid;
  gap: 10px;
}

.stack-form label,
.diagnostic-form label,
.auth-form label,
.setup-form label {
  display: grid;
  gap: 7px;
}

.check-row {
  display: flex !important;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 8px;
}

.check-row input {
  width: auto;
  min-height: 0;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.category-card {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-color: rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.82));
}

.category-card .badge {
  order: 2;
  min-height: 20px;
  padding: 0 6px;
  font-size: 10px;
}

.category-card h3 {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card p {
  display: none;
}

.category-card .card-action {
  display: none;
}

.market-directory {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.supplier-results-panel {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.72)),
    var(--panel);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.08);
}

.market-section-title,
.market-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-section-title h3 {
  margin-bottom: 0;
}

.market-section-title > span {
  max-width: 360px;
  text-align: right;
}

.taxonomy-shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.taxonomy-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  gap: 6px;
  min-height: 46px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.82)),
    #fff;
  color: var(--ink);
  text-align: left;
}

.taxonomy-card:hover,
.category-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
}

.taxonomy-card .feed-meta,
.taxonomy-card .tag-row {
  min-width: 0;
}

.taxonomy-card .feed-meta {
  display: block;
}

.taxonomy-card .feed-meta span {
  display: none;
}

.taxonomy-card .tag-row {
  display: none;
}

.taxonomy-card strong,
.taxonomy-card .badge {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-action {
  align-self: end;
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.supplier-table-wrap {
  max-height: 520px;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.supplier-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.35;
}

.supplier-table th,
.supplier-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.supplier-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef8f5;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.supplier-table tbody tr:hover,
.supplier-table tbody tr.active {
  background: #f4fbf8;
}

.compare-check {
  width: 18px;
  min-height: 18px;
}

.compare-toggle.selected {
  border-color: rgba(21, 128, 61, 0.24);
  background: rgba(21, 128, 61, 0.1);
  color: var(--green);
}

.supplier-name {
  font-weight: 780;
}

.supplier-table .mini-button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 12px;
}

.supplier-table .product-cell {
  max-width: 260px;
}

.supplier-table .product-cell .muted.small,
.supplier-table .source-line {
  display: -webkit-box;
  max-width: 230px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.supplier-table .source-line {
  font-size: 12px;
}

.score {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--green);
  font-weight: 800;
}

.supplier-rank {
  min-width: 42px;
  padding: 4px 9px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(37, 99, 235, 0.13));
  color: var(--sea-dark);
}

.market-results-summary,
.compare-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.market-results-summary {
  border-color: rgba(15, 118, 110, 0.2);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 246, 255, 0.82)),
    #fff;
}

.compare-panel-head {
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}

.compare-panel-head > div {
  display: grid;
  gap: 2px;
}

.market-counts,
.market-summary-actions,
.market-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-chip-zone {
  display: grid;
  gap: 10px;
}

.market-chip-group {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 118, 110, 0.14);
}

.market-chip-group strong {
  color: var(--sea-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.stat-pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 780;
}

.stat-pill b {
  color: var(--ink);
  font-size: 15px;
}

.filter-chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
}

.filter-chip:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(224, 242, 254, 0.88);
}

.market-results-summary p,
.compare-panel p {
  margin: 0;
  color: var(--muted);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-insight {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 183, 176, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(255, 251, 235, 0.82)),
    var(--panel);
}

.compare-insight h3 {
  margin: 6px 0;
  font-size: 18px;
}

.compare-score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.compare-score-strip span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--sea-dark);
  font-weight: 850;
}

.compare-score-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.compare-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.compare-card p {
  color: var(--ink);
}

.compare-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compare-metrics span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.compare-metrics b {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.source-cell {
  display: grid;
  gap: 5px;
  min-width: 130px;
}

.source-cell a {
  font-weight: 760;
  overflow-wrap: anywhere;
}

.top-supplier-card {
  display: grid;
  width: 100%;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(239, 246, 255, 0.9)),
    var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.top-supplier-card:hover {
  border-color: var(--sea);
  transform: translateY(-1px);
}

.top-supplier-card strong {
  font-family: "Space Grotesk", Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  line-height: 1.05;
}

.top-supplier-card small {
  color: var(--muted);
  line-height: 1.4;
}

.mini-stat-row,
.supplier-contact-grid {
  display: grid;
  gap: 8px;
}

.mini-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-stat-row span,
.supplier-contact-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-stat-row b,
.supplier-contact-grid b {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.supplier-showcase {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.78)),
    var(--panel);
}

.market-add-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(239, 246, 255, 0.82)),
    var(--panel);
}

.market-add-panel h3,
.market-add-panel p {
  margin: 0;
}

.market-add-panel .primary-button {
  width: 100%;
}

.supplier-add-page {
  width: min(760px, calc(100vw - 32px));
}

.supplier-add-page .stack-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-add-page .stack-form .wide,
.supplier-add-page .stack-form .check-row,
.supplier-add-page .stack-form button {
  grid-column: 1 / -1;
}

.supplier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-contact-grid a {
  overflow-wrap: anywhere;
  font-weight: 760;
}

.product-showcase {
  display: grid;
  gap: 8px;
}

.metric-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.ddt-tool-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ddt-mode-button {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(7, 63, 69, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, rgba(225, 247, 243, 0.98), rgba(231, 240, 255, 0.92)),
    var(--panel);
  color: var(--sea-dark);
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.84) inset, 0 10px 20px rgba(10, 36, 51, 0.08);
}

.ddt-mode-button strong,
.ddt-mode-button span {
  display: block;
}

.ddt-mode-button strong {
  font-family: "Space Grotesk", Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
}

.ddt-mode-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.ddt-mode-button:hover,
.ddt-mode-button.active {
  border-color: rgba(29, 78, 216, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, rgba(183, 255, 239, 0.92), rgba(215, 228, 255, 0.96)),
    var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 -2px 0 rgba(7, 63, 69, 0.12) inset, 0 14px 28px rgba(10, 36, 51, 0.16);
  transform: translateY(-2px);
}

.ddt-mode-button.active {
  box-shadow: 0 0 0 3px rgba(11, 138, 127, 0.14), 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 16px 30px rgba(10, 36, 51, 0.16);
}

.ddt-mode-panel {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.76)),
    var(--panel);
}

.ddt-mode-panel h3,
.ddt-mode-panel p {
  margin-bottom: 0;
}

.diagnostic-form .ddt-question-label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
  text-transform: none;
}

.diagnostic-form .ddt-question-label span {
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.diagnostic-form .ddt-question-label strong {
  font-family: "Space Grotesk", Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.15;
}

.ddt-simple-answer {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 246, 255, 0.86)),
    var(--panel);
  box-shadow: 0 10px 22px rgba(10, 36, 51, 0.07);
}

.ddt-simple-answer p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.5;
}

.metric-input {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
}

.advisor-output {
  min-height: 540px;
}

.finding {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.finding.has-signal {
  border-color: rgba(15, 118, 110, 0.24);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(239, 246, 255, 0.82)),
    var(--panel);
}

.finding.empty-signal {
  border-color: rgba(203, 218, 215, 0.82);
  background: rgba(248, 250, 248, 0.72);
}

.ddt-action-list li,
.ddt-reference-card {
  display: grid;
  gap: 8px;
}

.ddt-result-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.ddt-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(37, 99, 235, 0.88));
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ddt-inline-action:hover,
.clickable-badge:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.ddt-inline-action.secondary {
  background:
    linear-gradient(135deg, rgba(28, 78, 216, 0.92), rgba(14, 116, 144, 0.86));
}

.advisor-output .tag-row {
  min-width: 0;
}

.advisor-output .clickable-badge {
  max-width: 100%;
  height: auto;
  padding-top: 6px;
  padding-bottom: 6px;
  justify-content: flex-start;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

.ddt-reference-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.ddt-reference-card p {
  margin: 6px 0 0;
}

.ddt-reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.clickable-badge {
  cursor: pointer;
  color: var(--sea-dark);
}

.empty-note {
  margin-bottom: 0;
}

.confidence {
  display: grid;
  gap: 7px;
}

.confidence-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebe8;
}

.confidence-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sea), var(--blue));
}

.request-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 251, 248, 0.98)),
    var(--panel);
}

.market-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(239, 253, 249, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 18px 38px rgba(8, 47, 73, 0.08);
}

.market-search input {
  min-height: 52px;
  border-color: rgba(15, 118, 110, 0.34);
  font-size: 16px;
}

.market-search .primary-button {
  min-height: 52px;
}

.ddt-guidance {
  margin-bottom: 4px;
}

.ddt-action-row {
  align-items: stretch;
  margin-top: 2px;
}

.ddt-action-row .primary-button,
.ddt-action-row .ghost-button {
  min-height: 42px;
}

.ddt-question-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.ddt-question-wrap textarea {
  min-height: 128px;
  border-color: rgba(15, 118, 110, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.72)),
    #fff;
  font-size: 15px;
  line-height: 1.5;
}

.ddt-loading {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 246, 255, 0.84)),
    var(--panel);
}

.ddt-loading h2::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  margin-left: 2px;
  animation: thinkingDots 1.1s steps(4, end) infinite;
}

.ddt-companion {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 247, 248, 0.82)),
    #fff;
}

.drop-core {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 46px;
  height: 62px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 58% 58% 62% 62% / 70% 70% 42% 42%;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.95) 0 14%, transparent 15%),
    linear-gradient(145deg, rgba(53, 155, 237, 0.95), rgba(15, 118, 110, 0.88));
  box-shadow: inset 0 -10px 18px rgba(11, 81, 76, 0.22), 0 14px 24px rgba(37, 99, 235, 0.16);
  transform: translate(-50%, -50%) rotate(45deg);
}

.drop-n {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
}

.drop-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.34);
  opacity: 0;
}

.drop-particle.p1 {
  left: 18px;
  top: 34px;
}

.drop-particle.p2 {
  right: 16px;
  top: 72px;
}

.drop-particle.p3 {
  left: 30px;
  bottom: 36px;
}

.ddt-companion.thinking .drop-core {
  animation: dropPulse 1.15s ease-in-out infinite;
}

.ddt-companion.thinking .drop-particle {
  animation: particleRise 1.2s ease-in-out infinite;
  opacity: 0.8;
}

.ddt-companion.success {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(219, 234, 254, 0.82));
}

.ddt-companion.success .drop-core {
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.96) 0 14%, transparent 15%),
    linear-gradient(145deg, rgba(20, 184, 166, 0.95), rgba(37, 99, 235, 0.86));
}

.ddt-companion.success .drop-particle {
  animation: nuclearLift 1.8s ease-out 1;
}

.ddt-companion.uncertain .drop-core,
.ddt-companion.error .drop-core {
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.95) 0 14%, transparent 15%),
    linear-gradient(145deg, rgba(183, 121, 31, 0.9), rgba(53, 155, 237, 0.78));
}

.ddt-companion.error .drop-particle {
  background: rgba(190, 18, 60, 0.4);
  animation: fizzOut 0.9s ease-out 1;
}

@keyframes dropPulse {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.06); }
}

@keyframes particleRise {
  0% { opacity: 0.1; transform: translateY(8px); }
  50% { opacity: 0.85; }
  100% { opacity: 0.1; transform: translateY(-12px); }
}

@keyframes nuclearLift {
  0% { opacity: 0.85; transform: translateY(8px) scale(0.8); }
  100% { opacity: 0; transform: translateY(-42px) scale(1.4); }
}

@keyframes fizzOut {
  0% { opacity: 0.9; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(1.7); }
}

@keyframes thinkingDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.community-rooms,
.community-welcome,
.knowledge-grid-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.community-welcome {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-rooms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-welcome article,
.community-rooms article,
.knowledge-card,
.knowledge-hero {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.community-welcome article:first-child {
  border-color: rgba(15, 118, 110, 0.26);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(224, 242, 254, 0.82)),
    var(--panel);
}

.community-welcome article:last-child {
  border-color: rgba(217, 119, 6, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.9), rgba(255, 241, 242, 0.76)),
    var(--panel);
}

.community-rooms article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.76)),
    var(--panel);
}

.community-welcome p,
.community-rooms p,
.knowledge-card p,
.knowledge-hero p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.feed-card {
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-left: 3px solid rgba(15, 118, 110, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 253, 252, 0.98)),
    var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 8px 20px rgba(10, 36, 51, 0.055);
}

.knowledge-control-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: var(--radius);
  background: rgba(248, 253, 252, 0.86);
}

.knowledge-data-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.knowledge-data-box {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.knowledge-data-box.passive {
  cursor: default;
}

.knowledge-data-box:hover,
.knowledge-data-box.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 246, 255, 0.88));
}

.knowledge-data-box.passive:hover {
  border-color: rgba(15, 118, 110, 0.16);
  background: #fff;
}

.knowledge-data-box.clear-box {
  border-color: rgba(185, 73, 67, 0.32);
  background: rgba(255, 247, 246, 0.94);
}

.knowledge-data-box strong {
  color: var(--sea-dark);
  font-size: 20px;
  line-height: 1;
}

.knowledge-data-box span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-select-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 250, 0.9)),
    var(--panel);
}

.knowledge-results-bar > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.knowledge-results-bar strong {
  color: var(--ink);
  font-size: 13px;
}

.knowledge-results-bar span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.knowledge-data-row {
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-left: 3px solid rgba(15, 118, 110, 0.28);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(10, 36, 51, 0.035);
}

.knowledge-data-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.knowledge-data-row summary::-webkit-details-marker {
  display: none;
}

.knowledge-data-row summary::after {
  content: "+";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  color: var(--sea-dark);
  font-weight: 900;
}

.knowledge-data-row[open] summary::after {
  content: "-";
}

.knowledge-data-row summary > span:first-child,
.knowledge-row-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.knowledge-data-row strong,
.knowledge-data-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-data-row small {
  color: var(--muted);
  font-size: 12px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
}

.admin-intro {
  margin-bottom: 14px;
}

.admin-health-grid {
  margin-bottom: 14px;
}

.admin-learning-card {
  border-color: rgba(15, 118, 110, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.78)),
    var(--panel);
}

.admin-learning-route {
  display: grid;
  gap: 12px;
}

.learning-route-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.learning-route-hero h4 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.learning-route-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.learning-rate {
  display: grid;
  min-width: 120px;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(236, 253, 245, 0.82);
  text-align: center;
}

.learning-rate strong {
  color: var(--sea-dark);
  font-size: 28px;
  line-height: 1;
}

.learning-rate span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.learning-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(76, 117, 123, 0.13);
}

.learning-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sea), var(--green));
}

.learning-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.learning-route-grid article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.learning-route-grid span,
.learning-route-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.learning-route-grid strong {
  color: var(--ink);
  font-size: 22px;
}

.learning-route-grid small {
  font-weight: 650;
  text-transform: none;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.admin-candidate-grid {
  display: grid;
  gap: 14px;
}

.admin-queue-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.admin-queue-metrics article {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 247, 0.9)),
    var(--panel);
}

.admin-queue-metrics span,
.admin-queue-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-queue-metrics strong {
  color: var(--ink);
  font-size: 24px;
}

.admin-queue-metrics small {
  font-weight: 650;
  line-height: 1.3;
  text-transform: none;
}

.admin-review-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-review-lane {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-review-lane-wide {
  grid-column: 1 / -1;
}

.queue-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(236, 253, 245, 0.72);
}

.queue-lane-head div {
  display: grid;
  gap: 2px;
}

.queue-lane-head strong {
  color: var(--ink);
  font-size: 14px;
}

.queue-lane-head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-review-lane-body {
  display: grid;
  gap: 9px;
  max-height: 460px;
  min-height: 130px;
  overflow: auto;
  padding: 10px;
}

.dismissal-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-height: 360px;
}

.admin-module-card {
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 250, 0.9)),
    var(--panel);
}

.admin-quality-card {
  overflow: hidden;
}

.admin-ribbon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -14px -14px 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.16);
  background:
    linear-gradient(135deg, rgba(7, 63, 69, 0.94), rgba(15, 118, 110, 0.86)),
    var(--ink);
  color: #fff;
}

.admin-ribbon-head .eyebrow,
.admin-ribbon-head p {
  color: rgba(255, 255, 255, 0.78);
}

.admin-ribbon-head h3,
.admin-ribbon-head p {
  margin: 0;
}

.admin-ribbon-head h3 {
  color: #fff;
}

.admin-module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-status-note {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.admin-table-stack {
  display: grid;
  gap: 10px;
}

.admin-table td:first-child {
  min-width: 260px;
}

.admin-control-panel {
  align-self: start;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-command-list {
  display: grid;
  gap: 8px;
}

.admin-command-row {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.92);
}

.admin-command-row code,
.admin-result-box {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-command-row code {
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 760;
}

.admin-result-box {
  max-height: 360px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: #061d25;
  color: #dff8f4;
  font-size: 11px;
  line-height: 1.45;
}

.knowledge-row-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.knowledge-row-metrics b {
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.88);
  color: var(--sea-dark);
  font-size: 10px;
  white-space: nowrap;
}

.knowledge-row-body {
  padding: 10px 11px 11px;
  border-top: 1px solid rgba(76, 117, 123, 0.12);
}

.feed-card.community-empty {
  border-left-color: var(--gold);
}

.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.network-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  gap: 4px;
  border: 1px solid rgba(7, 63, 69, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(10, 36, 51, 0.05);
}

.network-action:hover {
  border-color: rgba(29, 78, 216, 0.24);
  background: #fff;
  transform: translateY(-1px);
}

.network-action:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.reaction-button {
  border-color: rgba(15, 118, 110, 0.2);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.84), rgba(239, 246, 255, 0.8));
  color: var(--sea-dark);
}

.reaction-button[aria-pressed="true"] {
  border-color: rgba(15, 118, 110, 0.35);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(20, 184, 166, 0.13));
  color: var(--sea-dark);
}

.dislike-button {
  border-color: rgba(185, 28, 28, 0.18);
  color: #8f1d1d;
}

.dislike-button .reaction-icon {
  background: rgba(185, 28, 28, 0.08);
  color: #8f1d1d;
}

.dislike-button[aria-pressed="true"] {
  border-color: rgba(185, 28, 28, 0.3);
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.92), rgba(255, 247, 237, 0.8));
}

.reaction-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--sea-dark);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.connect-button .reaction-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}

.knowledge-grid-list {
  grid-template-columns: 1fr;
}

.knowledge-hero {
  margin-bottom: 14px;
  border-color: rgba(37, 99, 235, 0.2);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(236, 253, 245, 0.88)),
    var(--panel);
}

.knowledge-match {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px;
  border-left: 3px solid rgba(15, 118, 110, 0.42);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(240, 253, 250, 0.74);
}

.knowledge-match strong {
  color: var(--sea-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.knowledge-match p {
  margin: 0;
}

.market-search label {
  display: grid;
  gap: 7px;
}

.market-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.request-composer .wide {
  grid-column: 1 / -1;
}

.attachment-field input {
  padding: 10px;
  background: #fff;
}

.feed-card {
  display: grid;
  gap: 8px;
}

#networkFeed {
  gap: 8px;
}

#networkFeed .feed-card {
  gap: 10px;
  min-height: 260px;
  padding: 14px;
}

#networkFeed .feed-card .feed-meta {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(76, 117, 123, 0.14);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

#networkFeed .feed-card .profile-inline {
  gap: 8px;
}

#networkFeed .feed-card .profile-inline .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

#networkFeed .feed-card .profile-inline strong {
  font-size: 13px;
}

#networkFeed .feed-card .profile-inline p {
  font-size: 12px;
  line-height: 1.35;
}

#networkFeed .feed-card h3 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.25;
}

#networkFeed .feed-card > p {
  margin-bottom: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

#networkFeed .feed-actions,
#networkFeed .tag-row,
#networkFeed .reaction-row {
  gap: 5px;
}

.post-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.post-link-card,
.attachment-card {
  min-width: 0;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.92);
  text-decoration: none;
}

.post-link-card,
.attachment-file {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
}

.post-link-card strong,
.attachment-card strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.post-link-card small,
.attachment-card small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-icon {
  display: grid;
  flex: 0 0 auto;
  min-width: 34px;
  height: 28px;
  place-items: center;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--sea-dark);
  font-size: 10px;
  font-weight: 900;
}

.attachment-image {
  display: grid;
  overflow: hidden;
}

.attachment-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.attachment-image span,
.attachment-video a {
  padding: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.attachment-video {
  display: grid;
  overflow: hidden;
}

.attachment-video video {
  width: 100%;
  max-height: 220px;
  background: #0f172a;
}

.network-feed-column {
  min-width: 0;
}

.network-search-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.78)),
    var(--panel);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.network-search-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.network-search-head h3 {
  margin-bottom: 0;
}

.network-search-tabs {
  min-width: 230px;
}

.network-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.network-search-form label {
  display: grid;
  gap: 7px;
}

.network-search-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.network-connections-strip,
.network-results-panel {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(76, 117, 123, 0.16);
}

.network-connections-strip h3 {
  margin: 0;
  font-size: 14px;
}

.network-overlay[hidden] {
  display: none;
}

.network-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 25, 38, 0.42);
  backdrop-filter: blur(5px);
}

.network-page-panel {
  display: grid;
  gap: 14px;
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 248, 0.96)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(7, 25, 38, 0.28);
  scrollbar-width: thin;
}

.network-page-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.network-page-head h2 {
  margin: 0;
  font-size: 22px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.icon-button:hover {
  border-color: rgba(15, 118, 110, 0.26);
  color: var(--sea-dark);
}

.network-page-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.network-page-results {
  padding-top: 0;
  border-top: 0;
}

.network-page-section {
  display: grid;
  gap: 10px;
}

.network-page-section h3 {
  margin: 0;
  font-size: 15px;
}

.network-posts-panel {
  width: min(840px, calc(100vw - 32px));
}

.my-posts-list {
  display: grid;
  gap: 10px;
}

.my-post-card {
  min-height: 0;
}

.network-profile-rail {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--radius);
  scrollbar-width: thin;
}

.network-signal-rail {
  display: grid;
  gap: 10px;
  min-width: 0;
  position: sticky;
  top: 24px;
}

.network-mini-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(76, 117, 123, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 252, 0.92)),
    var(--panel);
  box-shadow: 0 10px 22px rgba(10, 36, 51, 0.06);
}

.network-mini-card h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.network-signal-list,
.room-list {
  display: grid;
  gap: 7px;
}

.network-signal-card,
.room-list article {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
}

.network-signal-card.live-news-card {
  border-left: 3px solid rgba(15, 118, 110, 0.45);
}

.network-signal-card span {
  color: var(--sea-dark);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.network-signal-card strong,
.room-list strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.network-signal-card small,
.room-list span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.network-panel {
  max-height: none;
}

.network-discovery-panel {
  padding: 12px;
}

.network-right-rail {
  display: grid;
  gap: 10px;
  min-width: 0;
  position: sticky;
  top: 24px;
  align-content: start;
}

.network-launch-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(240, 249, 247, 0.9)),
    var(--panel);
  box-shadow: 0 10px 22px rgba(10, 36, 51, 0.07);
}

.network-launch-panel h3 {
  margin: 0;
  font-size: 15px;
}

.compact-connections {
  gap: 8px;
  padding: 9px;
  border-color: rgba(125, 211, 252, 0.18);
  background:
    linear-gradient(135deg, rgba(6, 52, 63, 0.86), rgba(12, 96, 91, 0.58));
  box-shadow: none;
}

.connection-launch-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.connection-launch-stats span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(76, 117, 123, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.connection-launch-stats strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.compact-connections .connection-launch-stats span {
  border-color: rgba(125, 211, 252, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 255, 255, 0.76);
}

.compact-connections .connection-launch-stats strong {
  color: #fff;
}

.connection-launch-actions,
.messenger-head,
.messenger-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.connection-launch-actions {
  flex-wrap: wrap;
}

.messenger-panel {
  padding: 10px;
  position: static;
}

.messenger-card {
  display: grid;
  gap: 10px;
}

.messenger-card h3,
.messenger-card h4 {
  margin: 0;
}

.messenger-card h4 {
  color: var(--ink);
  font-size: 13px;
}

.conversation-list {
  display: grid;
  gap: 7px;
  max-height: 185px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.conversation-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 7px;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.conversation-button:hover,
.conversation-button.active {
  border-color: rgba(15, 118, 110, 0.25);
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 36, 51, 0.08);
}

.conversation-button.unread {
  border-color: rgba(15, 118, 110, 0.38);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(239, 246, 255, 0.92)),
    #fff;
  box-shadow: 0 8px 18px rgba(10, 36, 51, 0.1);
}

.conversation-button.unread strong {
  color: var(--sea-dark);
}

.conversation-button .avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.conversation-button span {
  min-width: 0;
}

.conversation-button strong,
.conversation-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-button strong {
  font-size: 12px;
}

.conversation-button small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.conversation-button .conversation-time {
  margin-top: 2px;
  color: rgba(69, 88, 101, 0.82);
  font-size: 10px;
}

.conversation-button em {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.message-thread-wrap {
  display: grid;
  gap: 8px;
}

.message-thread-header {
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.9);
}

.message-thread-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.message-thread-header .avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.message-thread-header p {
  margin: 0;
  font-size: 12px;
}

.message-thread {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 235px;
  max-height: 325px;
  overflow: auto;
  padding: 9px;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 253, 252, 0.94), rgba(240, 249, 247, 0.86));
  scrollbar-width: thin;
}

.message-bubble {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: 88%;
  padding: 8px 9px;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(10, 36, 51, 0.06);
}

.message-bubble.from-viewer {
  justify-self: end;
  border-color: rgba(15, 118, 110, 0.24);
  background: #e8f4f0;
}

.message-bubble span {
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-wrap;
}

.message-bubble small {
  color: var(--muted);
  font-size: 10px;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.message-form textarea {
  min-height: 66px;
}

.message-form button {
  min-height: 42px;
}

.network-explorer {
  display: grid;
  gap: 10px;
}

.explorer-head {
  display: grid;
  gap: 8px;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
}

.segmented-tabs button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.segmented-tabs button.active {
  border-color: rgba(15, 118, 110, 0.22);
  background: #fff;
  color: var(--sea-dark);
  box-shadow: 0 8px 18px rgba(10, 36, 51, 0.08);
}

.explorer-pane {
  display: none;
}

.explorer-pane.active {
  display: grid;
  gap: 10px;
}

.network-finder {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.72), rgba(236, 253, 245, 0.74)),
    #fff;
}

.profile-card,
.directory-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.directory-card.compact-card {
  gap: 8px;
  padding: 10px;
}

.network-discovery-panel .directory-card {
  gap: 7px;
  padding: 10px;
}

.network-discovery-panel .directory-card > p,
.network-discovery-panel .connection-strip,
.network-discovery-panel .source-line {
  font-size: 12px;
}

.company-card {
  border-color: rgba(29, 78, 216, 0.16);
}

.company-members-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius);
  background: rgba(248, 253, 252, 0.88);
}

.profile-hero,
.profile-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-inline p,
.profile-card p,
.directory-card p {
  margin-bottom: 0;
}

.small-inline {
  margin-bottom: 6px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: #e8f4f0;
  color: var(--sea-dark);
  font-weight: 850;
}

.profile-hero .avatar {
  width: 64px;
  height: 64px;
}

.comment .avatar,
.small-inline .avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.directory-list {
  display: grid;
  gap: 10px;
}

.compact-directory {
  gap: 8px;
}

.connection-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.connection-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 5px;
  padding: 3px 7px 3px 3px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.78);
  color: var(--sea-dark);
  font-size: 11px;
  font-weight: 750;
}

.connection-chip .avatar {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.small {
  font-size: 12px;
}

.feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.comment-thread {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.comment {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #f8faf8;
}

.comment strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.comment-form input {
  min-height: 36px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: 380px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 720;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.setup-card {
  width: min(100%, 980px);
}

.auth-card h1 {
  margin: 20px 0 10px;
}

.auth-form,
.setup-form,
.setup-form section {
  display: grid;
  gap: 12px;
}

.setup-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.setup-form section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.setup-form button {
  grid-column: 1 / -1;
}

.alert {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(190, 18, 60, 0.2);
  border-radius: var(--radius);
  background: rgba(190, 18, 60, 0.06);
  color: var(--red);
  font-weight: 720;
}

.auth-link {
  margin-bottom: 0;
  color: var(--muted);
}

.network-top-tools,
.market-top-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.network-quick-search {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(210px, 1fr);
  gap: 8px;
  min-width: min(100%, 420px);
}

.network-quick-search select,
.network-quick-search input {
  min-height: 39px;
  padding: 9px 11px;
  border: 1px solid rgba(76, 117, 123, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.network-quick-search button {
  grid-column: 1 / -1;
  min-height: 38px;
}

.notification-host {
  position: relative;
  z-index: 20;
}

.notification-shell {
  position: relative;
}

.notification-toggle {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  min-width: 172px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.94);
  color: var(--sea-dark);
  font-weight: 850;
  text-align: left;
}

.notification-toggle strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
  font-size: 12px;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(390px, calc(100vw - 34px));
  max-height: min(560px, calc(100vh - 130px));
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(76, 117, 123, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.notification-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notification-list,
.blocked-list {
  display: grid;
  gap: 7px;
}

.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.92);
  color: var(--ink);
  text-align: left;
}

.notification-item.unread {
  border-color: rgba(15, 118, 110, 0.36);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(239, 246, 255, 0.95));
}

.notification-item .avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.notification-item strong,
.notification-item small {
  display: block;
}

.notification-item strong {
  font-size: 12px;
}

.notification-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.notification-settings {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(76, 117, 123, 0.14);
}

.notification-settings summary {
  color: var(--sea-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.notification-preferences-form {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
}

.blocked-list {
  margin-top: 8px;
}

.blocked-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(238, 247, 244, 0.92);
  font-size: 12px;
}

.marketplace-network-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(76, 117, 123, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(10, 36, 51, 0.08);
}

.marketplace-network-panel.activity-workspace {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 246, 244, 0.88)),
    var(--panel);
}

.marketplace-profile-drawer {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: rgba(236, 253, 245, 0.72);
}

.marketplace-profile-drawer summary {
  padding: 10px 12px;
  color: var(--sea-dark);
  cursor: pointer;
  font-weight: 850;
}

.marketplace-profile-drawer .compact-market-form {
  padding: 0 10px 10px;
}

.activity-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.marketplace-ad-rail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 253, 248, 0.86)),
    var(--panel);
  box-shadow: 0 12px 26px rgba(10, 36, 51, 0.08);
}

.marketplace-ad-list {
  display: grid;
  max-height: 420px;
  gap: 10px;
  overflow: auto;
  padding-right: 3px;
}

.marketplace-ad-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.marketplace-ad-card h4,
.marketplace-ad-card p {
  margin: 0;
}

.marketplace-ad-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.compact-market-form {
  display: grid;
  gap: 8px;
}

.compact-market-form label {
  display: grid;
  gap: 4px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

.compact-market-form input,
.compact-market-form select,
.compact-market-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(76, 117, 123, 0.24);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.94);
  color: var(--ink);
  font-weight: 650;
}

.compact-market-form textarea {
  min-height: 70px;
  resize: vertical;
}

.marketplace-network-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.marketplace-network-stats span {
  padding: 8px;
  border: 1px solid rgba(76, 117, 123, 0.15);
  border-radius: 8px;
  background: rgba(238, 247, 244, 0.9);
  color: var(--muted);
  font-size: 11px;
}

.marketplace-network-stats strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.marketplace-inquiry-list {
  display: grid;
  gap: 8px;
}

.marketplace-inquiry-list h4 {
  margin: 6px 0 0;
  font-size: 13px;
}

.marketplace-inquiry {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.92);
}

.marketplace-inquiry.unread {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.96));
}

.marketplace-inquiry h5,
.marketplace-inquiry p {
  margin: 0;
}

.marketplace-inquiry h5 {
  font-size: 13px;
}

.marketplace-inquiry p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.install-prompt {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(390px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.install-prompt h3,
.install-prompt p {
  margin: 0;
}

.install-prompt p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.install-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(76, 117, 123, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.legal-card p,
.legal-card li {
  color: var(--steel);
  line-height: 1.6;
}

.legal-acceptance {
  padding: 10px;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: rgba(238, 247, 244, 0.88);
}

.attention-flash {
  animation: attentionPulse 2.2s ease;
}

@keyframes attentionPulse {
  0%,
  100% {
    box-shadow: none;
  }
  20%,
  70% {
    box-shadow: 0 0 0 4px rgba(19, 198, 184, 0.26), var(--shadow);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .atlas-grid,
  .market-grid,
  .network-grid,
  .knowledge-grid,
  .data-grid,
  .admin-grid,
  .ddt-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel,
  .advisor-output,
  .network-profile-rail,
  .network-signal-rail,
  .network-right-rail,
  .messenger-panel {
    position: static;
  }

  .network-feed-column {
    order: 1;
  }

  .network-right-rail {
    order: 2;
  }

  .network-profile-rail {
    order: 3;
    max-height: none;
  }

  .network-signal-rail {
    order: 4;
  }

  .project-strip,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taxonomy-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-panel {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    padding: 18px;
  }

  .topbar,
  .section-head,
  .section-tools,
  .market-section-title,
  .market-summary-top,
  .network-top-tools,
  .market-top-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .market-section-title > span {
    max-width: none;
    text-align: left;
  }

  .top-actions button,
  .filter-row button,
  .inline-select,
  .local-page-stat {
    flex: 1;
    min-width: 0;
  }

  .map-wrap {
    min-height: 330px;
  }

  .project-strip,
  .category-grid,
  .taxonomy-shelf,
  .metric-board,
  .market-filter-grid,
  .community-welcome,
  .community-rooms,
  .knowledge-grid-list,
  .source-grid,
  .country-grid,
  .data-stats,
  .ddt-tool-switch,
  .market-search,
  .compare-grid,
  .compare-score-strip,
  .data-intro,
  .mini-stat-row,
  .supplier-contact-grid,
  .candidate-metrics,
  .wide-candidate-list,
  .wide-candidate-list .candidate-metrics,
  .request-composer,
  .stat-grid,
  .setup-form {
    grid-template-columns: 1fr;
  }

  .ddt-question-wrap {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .taxonomy-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-search-form,
  .ddt-result-item,
  .ddt-reference-card {
    grid-template-columns: 1fr;
  }

  .advisor-output .tag-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .advisor-output .badge,
  .advisor-output .clickable-badge {
    width: 100%;
  }

  .ddt-companion {
    min-height: 82px;
  }

  .network-overlay {
    padding: 10px;
  }

  .network-page-panel {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .network-page-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-search-form,
  .network-quick-search,
  .message-form,
  .knowledge-select-row,
  .supplier-add-page .stack-form,
  .marketplace-network-stats {
    grid-template-columns: 1fr;
  }

  .notification-host,
  .notification-toggle {
    width: 100%;
  }

  .notification-dropdown {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 36px));
  }

  .knowledge-results-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-result-actions {
    justify-content: stretch;
  }

  .knowledge-result-actions .mini-button {
    width: 100%;
  }

  .connection-launch-stats {
    grid-template-columns: 1fr;
  }

  .data-accordion summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .data-accordion summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .data-accordion-metrics {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .knowledge-data-row summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .knowledge-row-metrics {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 470px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .workspace,
  .sidebar,
  .auth-body {
    padding: 14px;
  }

  h1 {
    font-size: 30px;
  }

  .map-stage,
  .ddt-console,
  .detail-panel,
  .advisor-output,
  .auth-card {
    padding: 14px;
  }
}

.marketplace-group-browser,
.market-community-strip {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 246, 244, 0.82)), var(--panel);
  box-shadow: 0 14px 34px rgba(10, 36, 51, 0.08);
}

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

.marketplace-group-card,
.marketplace-item-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(230, 247, 244, 0.72)), #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 22px rgba(10, 36, 51, 0.08);
}

.marketplace-group-card {
  min-height: 164px;
  align-content: start;
}

.marketplace-group-card:hover,
.marketplace-item-card:hover {
  border-color: rgba(29, 78, 216, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(10, 36, 51, 0.14);
}

.marketplace-group-card h3,
.marketplace-group-card p,
.marketplace-group-card small,
.marketplace-item-card h3,
.marketplace-item-card p {
  margin: 0;
}

.marketplace-group-card h3,
.marketplace-item-card h3 {
  font-size: 17px;
}

.marketplace-group-card p,
.marketplace-group-card small,
.marketplace-item-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.marketplace-community-preview,
.marketplace-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.marketplace-post-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.72)), #fff;
  box-shadow: 0 10px 24px rgba(10, 36, 51, 0.08);
}

.marketplace-post-card.compact {
  min-height: 168px;
}

.marketplace-post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.marketplace-work-page,
.marketplace-category-page,
.marketplace-deal-page,
.network-room-panel {
  width: min(1180px, calc(100vw - 32px));
}

.marketplace-community-page {
  width: min(1500px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.marketplace-community-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(460px, 1fr) minmax(260px, 0.44fr);
  gap: 14px;
  align-items: start;
}

.marketplace-community-left,
.marketplace-community-main,
.marketplace-community-right,
.marketplace-community-intro,
.market-community-topics {
  display: grid;
  gap: 12px;
}

.marketplace-community-intro,
.marketplace-community-main,
.market-community-topics {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(231, 246, 244, 0.78)),
    var(--panel);
}

.marketplace-community-intro h3,
.marketplace-community-intro p {
  margin: 0;
}

.market-community-signal-tabs {
  display: grid;
  gap: 8px;
}

.market-community-signal-button {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
}

.market-community-signal-button:hover,
.market-community-signal-button.active {
  border-color: rgba(29, 78, 216, 0.46);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(224, 242, 254, 0.88));
}

.market-community-signal-button span {
  color: var(--sea-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-community-signal-button strong {
  font-size: 15px;
}

.market-community-signal-button small {
  color: var(--muted);
  line-height: 1.35;
}

.marketplace-community-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.marketplace-community-stats span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 11px;
}

.marketplace-community-stats strong {
  color: var(--ink);
  font-size: 18px;
}

.market-community-feed-label {
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.72);
}

.marketplace-community-page .marketplace-community-board {
  display: grid;
  min-height: 420px;
  max-height: 680px;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.market-community-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-community-topic {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 830;
}

.market-community-topic:hover,
.market-community-topic.active {
  border-color: rgba(29, 78, 216, 0.42);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(224, 242, 254, 0.9));
}

.community-ad-rail .marketplace-ad-list {
  max-height: 520px;
}

.marketplace-work-layout,
.marketplace-deal-layout,
.network-room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.marketplace-post-form,
.room-composer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.marketplace-post-form .wide,
.marketplace-post-form button,
.room-composer .wide,
.room-composer button {
  grid-column: 1 / -1;
}

.marketplace-preview-card,
.marketplace-deal-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(240, 253, 250, 0.95), rgba(239, 246, 255, 0.76)), var(--panel);
  box-shadow: 0 14px 30px rgba(10, 36, 51, 0.09);
}

.marketplace-preview-points,
.network-room-main,
.network-room-side,
.room-feed {
  display: grid;
  gap: 10px;
}

.marketplace-preview-points span {
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 790;
}

.category-page-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(76, 117, 123, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.category-page-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.marketplace-item-card {
  min-height: 250px;
}

.marketplace-item-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.marketplace-item-metrics span,
.room-stats-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(76, 117, 123, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 11px;
}

.marketplace-item-metrics b,
.room-stats-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.room-stats-row strong {
  font-size: 18px;
  line-height: 1;
}

.room-post-card {
  border-left: 3px solid rgba(15, 118, 110, 0.46);
}

.group-message-drawer,
.room-create-drawer {
  padding: 8px;
  border: 1px solid rgba(76, 117, 123, 0.16);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.86);
}

.group-message-drawer summary,
.room-create-drawer summary {
  color: var(--sea-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 860;
}

.room-list,
.network-signal-list {
  display: grid;
  gap: 7px;
}

.room-card {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.room-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 12px 24px rgba(10, 36, 51, 0.1);
}

.room-card strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.room-card span,
.room-card small,
.room-card em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.room-card span {
  color: var(--sea-dark);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.room-card em {
  font-style: normal;
  font-weight: 760;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(0, 125, 119, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 72, 83, 0.95), rgba(0, 133, 126, 0.82)),
    linear-gradient(90deg, rgba(18, 94, 120, 0.2), rgba(41, 120, 255, 0.18));
  color: #f8ffff;
  box-shadow: 0 22px 55px rgba(4, 37, 48, 0.18);
}

.command-hero .eyebrow,
.command-hero p {
  color: rgba(248, 255, 255, 0.84);
}

.command-hero h2 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.08;
}

.command-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
}

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

.command-score-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  color: #f8ffff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.command-score-card:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
}

.command-score-card strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.command-score-card span {
  display: block;
  margin-top: 2px;
  color: rgba(248, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.command-main,
.command-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.command-tool-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 12px;
  text-align: left;
  color: #12313b;
  border: 1px solid rgba(8, 134, 128, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(248, 255, 255, 0.98), rgba(227, 247, 246, 0.9));
  box-shadow: 0 14px 28px rgba(4, 48, 58, 0.09);
}

.command-tool-card.active {
  border-color: rgba(33, 112, 232, 0.62);
  background: linear-gradient(145deg, #e8fffb, #dceaff);
  box-shadow: 0 18px 34px rgba(24, 88, 178, 0.18);
}

.command-tool-card strong {
  font-size: 15px;
}

.command-tool-card span:not(.badge) {
  color: #536a76;
  font-size: 13px;
  line-height: 1.35;
}

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

.compact-command-panel {
  max-height: 420px;
  overflow: auto;
}

.command-workbench,
.command-result-card,
.command-empty {
  padding: 18px;
  border: 1px solid rgba(0, 125, 119, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 249, 0.92));
  box-shadow: 0 18px 36px rgba(5, 46, 54, 0.1);
}

.command-form {
  display: grid;
  gap: 14px;
}

.command-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.command-input {
  display: grid;
  gap: 6px;
}

.command-input span {
  color: #4c6472;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-result {
  margin-top: 16px;
}

.command-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.command-result-metrics.compact-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}

.command-result-metrics div {
  padding: 12px;
  border: 1px solid rgba(0, 125, 119, 0.18);
  border-radius: 12px;
  background: #f7fffd;
}

.command-result-metrics span {
  display: block;
  color: #5c7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-result-metrics strong {
  display: block;
  margin-top: 6px;
  color: #092832;
  font-size: 18px;
}

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

.command-columns section {
  padding: 12px;
  border: 1px solid rgba(33, 112, 232, 0.14);
  border-radius: 12px;
  background: rgba(244, 250, 255, 0.8);
}

.command-columns h5,
.command-result-card h5 {
  margin: 0 0 8px;
  color: #0c303b;
  font-size: 13px;
  text-transform: uppercase;
}

.command-columns ul {
  margin: 0;
  padding-left: 18px;
}

.command-columns li {
  margin-bottom: 6px;
}

.command-sensitivity {
  margin-top: 4px;
}

.command-handoff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.command-query-stack {
  display: grid;
  gap: 10px;
}

.command-query-stack strong {
  display: block;
  margin-bottom: 6px;
  color: #21424f;
  font-size: 12px;
  text-transform: uppercase;
}

.connector-list,
.command-case-list {
  display: grid;
  gap: 10px;
}

.connector-card,
.command-case-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  text-align: left;
  color: #173641;
  border: 1px solid rgba(0, 125, 119, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #eefbf8);
}

.connector-card div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.connector-card span:not(.badge),
.command-case-card span {
  color: #5b7180;
  font-size: 12px;
}

.connector-card p {
  margin: 0;
  color: #5b7180;
  font-size: 13px;
}

.command-case-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.command-case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 112, 232, 0.45);
  box-shadow: 0 14px 28px rgba(33, 112, 232, 0.14);
}

.primary-button,
.ghost-button,
.filter {
  min-height: 36px;
  padding: 0 11px;
  font-size: 13px;
}

.mini-button,
.network-action,
.action-ribbon {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.nav-button {
  min-height: 38px;
  padding: 0 11px;
}

.topbar {
  border-color: rgba(7, 63, 69, 0.24);
}

.top-actions {
  margin-left: auto;
}

.help-button {
  white-space: nowrap;
}

.rich-text {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

.rich-text a {
  color: #075985;
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-body-text {
  color: #183544;
  font-size: 14px;
  white-space: pre-wrap;
}

.post-body-text.is-collapsed {
  max-height: 13.4em;
  overflow: hidden;
}

.text-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #075985;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feed-card {
  min-height: 0;
  border-color: rgba(10, 88, 99, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 250, 249, 0.95)),
    var(--panel);
}

#networkFeed {
  display: grid;
  gap: 14px;
}

#networkFeed .feed-card,
#networkRoomFeed .feed-card {
  box-shadow: 0 10px 24px rgba(10, 36, 51, 0.09);
}

.post-attachments,
.message-attachments {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.post-attachments {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.attachment-card {
  max-width: 100%;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.96);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}

.attachment-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
}

.attachment-file strong,
.attachment-file small,
.attachment-image span,
.attachment-video a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-link-card > span:last-child,
.attachment-file > span:last-child {
  min-width: 0;
}

.post-link-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-icon {
  display: grid;
  min-width: 42px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #0b3f46;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.attachment-image {
  display: grid;
  gap: 6px;
  padding: 7px;
}

.attachment-image img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 7px;
}

.attachment-video {
  display: grid;
  gap: 7px;
  padding: 7px;
}

.attachment-video video {
  width: 100%;
  max-height: 220px;
  border-radius: 7px;
  background: #06151c;
}

.comment-thread {
  border-top-color: rgba(76, 117, 123, 0.2);
}

.comment {
  border: 1px solid rgba(76, 117, 123, 0.16);
  background: linear-gradient(180deg, #ffffff, #f3fbf8);
}

.comment-reply {
  margin-top: 8px;
  margin-left: 26px;
  border-left: 3px solid rgba(11, 138, 127, 0.42);
  background: linear-gradient(180deg, #f8fffd, #edf7f4);
}

.comment-tools {
  margin-top: 6px;
}

.reply-target {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(11, 138, 127, 0.18);
  border-radius: 8px;
  background: rgba(236, 253, 245, 0.9);
  color: #0b3f46;
  font-size: 12px;
  font-weight: 760;
}

.network-right-rail {
  top: 16px;
}

.messenger-panel {
  position: sticky;
  top: 16px;
  padding: 0;
  border: 1px solid rgba(10, 36, 51, 0.3);
  background:
    linear-gradient(180deg, rgba(9, 29, 42, 0.98), rgba(7, 63, 69, 0.96)),
    var(--navy);
  color: #fff;
  box-shadow: 0 18px 36px rgba(10, 36, 51, 0.24);
}

.messenger-card {
  padding: 12px;
}

.messenger-card h3,
.messenger-card h4 {
  color: #fff;
}

.messenger-card .muted,
.messenger-card p {
  color: rgba(255, 255, 255, 0.68);
}

.messenger-card select,
.messenger-card textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.messenger-card .drawer {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.messenger-card .drawer summary {
  color: #fff;
}

.messenger-card .mini-button {
  min-height: 32px;
  padding: 0 9px;
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f8ffff;
  box-shadow: none;
  font-size: 12px;
}

.messenger-card .mini-button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: none;
}

.conversation-list {
  max-height: 215px;
}

.conversation-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.conversation-button:hover,
.conversation-button.active {
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.conversation-button.unread {
  border-color: rgba(19, 198, 184, 0.48);
  background:
    linear-gradient(135deg, rgba(19, 198, 184, 0.2), rgba(29, 78, 216, 0.18)),
    rgba(255, 255, 255, 0.1);
}

.conversation-button strong,
.conversation-button.unread strong {
  color: #fff;
}

.conversation-button small,
.conversation-button .conversation-time {
  color: rgba(255, 255, 255, 0.64);
}

.message-thread-header {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.message-thread {
  min-height: 250px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(19, 198, 184, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(6, 21, 28, 0.72), rgba(8, 37, 45, 0.88));
}

.message-bubble {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #10212c;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.message-bubble.from-viewer {
  border-color: rgba(19, 198, 184, 0.34);
  background: #d8fff8;
}

.message-body-text {
  font-size: 13px;
  white-space: pre-wrap;
}

.message-form {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
}

.message-form textarea {
  min-height: 58px;
}

.message-attach-control {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.message-attach-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.help-overlay {
  z-index: 180;
}

.help-panel {
  max-width: 880px;
}

.help-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
}

.help-topic-list {
  display: grid;
  align-content: start;
  gap: 7px;
}

.help-topic-list button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(76, 117, 123, 0.18);
  border-radius: 8px;
  background: #f8fffd;
  color: #12313b;
  text-align: left;
  font-weight: 820;
}

.help-topic-list button.active {
  border-color: rgba(11, 138, 127, 0.34);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(239, 246, 255, 0.95));
  color: var(--sea-dark);
}

.help-topic-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(11, 138, 127, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(238, 249, 249, 0.94));
}

.help-topic-card h3,
.help-topic-card p {
  margin: 0;
}

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

.help-manual-section {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(11, 138, 127, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.help-manual-section strong {
  color: #0b3f46;
  font-size: 12px;
  text-transform: uppercase;
}

.help-manual-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.help-manual-section li {
  color: #405968;
  font-size: 13px;
  line-height: 1.38;
}

.help-question-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 4px solid var(--sea);
  border-radius: 8px;
  background: rgba(236, 253, 245, 0.92);
}

.help-question-box strong,
.help-question-box p {
  margin: 0;
}

.help-question-form {
  display: grid;
  gap: 8px;
}

.help-question-form textarea {
  min-height: 78px;
}

.help-question-form .ghost-button {
  justify-self: start;
}

.help-question-result {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(7, 63, 69, 0.16);
  border-radius: 8px;
  background: #fff;
}

.help-question-result strong,
.help-question-result p {
  margin: 0;
}

.post-composer-panel {
  max-width: 900px;
}

.post-composer-form {
  margin-top: 12px;
}

.app-legal-footer {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 63, 69, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #425b68;
  font-size: 12px;
  line-height: 1.45;
}

.app-legal-footer strong {
  color: #0b3f46;
}

.command-score-card {
  min-height: 82px;
}

.command-score-card small {
  display: block;
  margin-top: 2px;
  color: rgba(248, 255, 255, 0.7);
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .command-layout,
  .command-hero {
    grid-template-columns: 1fr;
  }

  .command-tool-grid,
  .command-support-grid,
  .command-metric-grid,
  .command-result-metrics,
  .command-result-metrics.compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-group-cards,
  .marketplace-community-preview,
  .marketplace-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-work-layout,
  .marketplace-deal-layout,
  .marketplace-community-layout,
  .network-room-layout {
    grid-template-columns: 1fr;
  }

  .messenger-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .command-tool-grid,
  .command-support-grid,
  .command-metric-grid,
  .command-result-metrics,
  .command-result-metrics.compact-metrics,
  .command-columns,
  .command-scoreboard {
    grid-template-columns: 1fr;
  }

  .command-hero,
  .command-workbench,
  .command-result-card,
  .command-empty {
    padding: 14px;
  }

  .marketplace-group-cards,
  .marketplace-community-preview,
  .marketplace-community-stats,
  .marketplace-category-grid,
  .category-page-tools,
  .marketplace-post-form,
  .room-composer,
  .room-stats-row {
    grid-template-columns: 1fr;
  }

  .help-body,
  .help-manual-grid,
  .message-form {
    grid-template-columns: 1fr;
  }

  .post-launch-button {
    border-radius: 12px;
  }

  .messenger-head,
  .messenger-controls,
  .connection-launch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-reply {
    margin-left: 12px;
  }
}
