﻿:root {
  --channels-bg: #01080b;
  --channels-panel: rgba(4, 18, 22, .94);
  --channels-panel-soft: rgba(7, 27, 31, .78);
  --channels-line: rgba(92, 220, 183, .17);
  --channels-line-strong: rgba(92, 235, 190, .38);
  --channels-emerald: #57e9b7;
  --channels-teal: #31cdbd;
  --channels-amber: #dfbd58;
  --channels-text: #edf8f5;
  --channels-muted: #87a39c;
}

html, body { max-width: 100%; overflow-x: hidden; }
body { overflow-y: auto; background: var(--channels-bg); }
body.channels-detail-open { overflow: hidden; }
.channels-shell, .channels-shell * { box-sizing: border-box; }
.channels-shell {
  position: relative; z-index: 1; width: 100%; max-width: 100vw; min-height: 100vh;
  display: grid; grid-template-rows: auto 1fr auto; overflow-x: clip;
  background:
    radial-gradient(circle at 74% 11%, rgba(17, 114, 101, .12), transparent 27%),
    radial-gradient(circle at 15% 28%, rgba(40, 176, 128, .07), transparent 24%),
    linear-gradient(155deg, #020a0d, #010609 68%);
  color: var(--channels-text);
}
.channels-shell::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .16;
  background-image: linear-gradient(rgba(89, 231, 184, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(89, 231, 184, .025) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.channels-status { width: 100%; max-width: 100vw; min-width: 0; }
.channels-main { width: 100%; max-width: 1880px; min-width: 0; margin: auto; padding: 22px 28px 26px; }
.eyebrow { color: #66e6c2; font-size: .67rem; font-weight: 900; letter-spacing: .16em; }

.channels-hero {
  display: grid; grid-template-columns: minmax(570px, .88fr) minmax(560px, 1.12fr); gap: 18px;
  min-height: 344px; margin-bottom: 18px;
}
.hero-primary, .global-presence, .directory-console {
  border: 1px solid var(--channels-line); border-radius: 20px;
  background: linear-gradient(145deg, rgba(5, 26, 27, .94), rgba(2, 12, 16, .97));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(139, 255, 219, .025);
}
.hero-primary { display: grid; align-content: space-between; gap: 22px; padding: 30px 32px; overflow: hidden; }
.hero-copy { min-width: 0; }
.hero-copy h1 {
  max-width: 760px; margin: 11px 0 8px; font-size: clamp(2.25rem, 3.25vw, 4.35rem);
  line-height: .94; letter-spacing: -.048em;
}
.hero-copy > p { max-width: 720px; margin: 0; color: #a9bdb8; font-size: .83rem; line-height: 1.55; }
.governance-notice {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; margin-top: 16px; padding: 10px 13px;
  border: 1px solid rgba(226, 190, 78, .12); border-left: 2px solid var(--channels-amber); border-radius: 6px;
  background: rgba(190, 145, 29, .09); color: #dbc77d; font-size: .72rem; line-height: 1.4;
}
.governance-notice span { color: #f3ce53; font-size: 1rem; }
.directory-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0; }
.directory-summary > div {
  min-width: 0; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px;
  padding: 13px 12px; border: 1px solid rgba(101, 231, 193, .15); border-radius: 11px; background: rgba(1, 12, 15, .7);
}
.metric-icon {
  grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; align-self: center;
  border: 1px solid rgba(87, 233, 183, .28); border-radius: 10px; color: var(--channels-emerald); font-size: 1.15rem;
}
.directory-summary dt { color: #809b94; font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
.directory-summary dd { margin: 3px 0 0; color: var(--channels-emerald); font-size: 1.32rem; font-weight: 850; line-height: 1; }

.global-presence { position: relative; min-width: 0; padding: 16px 18px 12px; overflow: hidden; }
.global-presence::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 55% 44%, rgba(22, 190, 157, .11), transparent 35%), linear-gradient(100deg, transparent, rgba(41, 182, 155, .035), transparent);
}
.global-presence header { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.global-presence header p { margin: 4px 0 0; color: #729089; font-size: .65rem; }
.presence-legend { display: inline-flex; align-items: center; gap: 6px; color: #728e87; font-size: .6rem; }
.presence-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--channels-teal); box-shadow: 0 0 10px var(--channels-teal); }
.world-map { position: relative; height: 258px; margin: -12px 0 -42px; isolation: isolate; }
.world-map::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 8% 5%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(23, 207, 181, .12), rgba(2, 18, 22, .02) 54%, transparent 72%);
  filter: blur(8px);
}
.globe-description {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.world-map canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block;
  cursor: grab; touch-action: pan-y; outline: none; filter: drop-shadow(0 0 20px rgba(25, 196, 169, .14));
}
.world-map canvas:active { cursor: grabbing; }
.world-map canvas:focus-visible { outline: 3px solid rgba(96, 240, 196, .55); outline-offset: -4px; border-radius: 14px; }
.globe-orbits { position: absolute; z-index: 0; inset: 7% 9% 14%; pointer-events: none; transform: perspective(520px) rotateX(69deg); }
.globe-orbits i { position: absolute; inset: 10% 2%; border: 1px solid rgba(49, 205, 189, .14); border-radius: 50%; }
.globe-orbits i:nth-child(2) { inset: 3% 10%; transform: rotate(18deg); border-color: rgba(87, 233, 183, .1); }
.globe-orbits i:nth-child(3) { inset: 18% -2%; transform: rotate(-12deg); border-color: rgba(49, 205, 189, .08); }
.globe-hotspots { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.globe-hotspots button {
  position: absolute; left: 0; top: 0; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%;
  opacity: 0; transform: translate(-50%, -50%) scale(.82); pointer-events: none; cursor: pointer;
  background: radial-gradient(circle, #d8fff1 0 8%, #48e2ba 13% 25%, rgba(43, 212, 177, .28) 30% 49%, transparent 52%);
  filter: drop-shadow(0 0 7px #31cdbd); transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}
.globe-hotspots button::before, .globe-hotspots button::after {
  content: ""; position: absolute; inset: 2px; border: 1px solid rgba(94, 240, 198, .48); border-radius: 50%; animation: globe-presence-pulse 2.8s ease-out infinite;
}
.globe-hotspots button::after { animation-delay: -1.4s; }
.globe-hotspots button[data-visible="true"] { opacity: 1; pointer-events: auto; }
.globe-hotspots button:hover, .globe-hotspots button:focus-visible, .globe-hotspots button[aria-pressed="true"] { transform: translate(-50%, -50%) scale(1.24); filter: drop-shadow(0 0 11px #62f0c7); }
.globe-hotspots button[aria-pressed="true"] { background: radial-gradient(circle, #fff 0 10%, #7fffd3 15% 28%, rgba(49, 221, 157, .45) 32% 55%, transparent 58%); }
.globe-tooltip {
  position: absolute; z-index: 5; min-width: 150px; max-width: 210px; padding: 9px 11px; border: 1px solid rgba(91, 231, 187, .28);
  border-radius: 8px; background: rgba(1, 13, 17, .94); box-shadow: 0 14px 35px rgba(0, 0, 0, .4); color: #a7c4bd;
  font-size: .59rem; line-height: 1.4; pointer-events: none; transform: translate(12px, -50%);
}
.globe-tooltip strong { display: block; margin-bottom: 2px; color: #ecfaf6; font-size: .7rem; }
.globe-tooltip b { color: var(--channels-emerald); }
.globe-controls {
  position: absolute; z-index: 6; right: 6px; top: 50%; display: grid; transform: translateY(-50%);
  border: 1px solid rgba(98, 220, 184, .2); border-radius: 10px; overflow: hidden; background: rgba(2, 17, 21, .9);
}
.globe-controls button { width: 36px; height: 36px; border: 0; border-bottom: 1px solid rgba(98, 220, 184, .12); background: transparent; color: #b9d2cb; font-size: 1.15rem; cursor: pointer; }
.globe-controls button:last-child { border-bottom: 0; font-size: .86rem; }
.globe-controls button:hover { background: rgba(76, 216, 173, .1); color: #68e8b9; }
.globe-drag-hint { position: absolute; z-index: 4; right: 52px; bottom: 42px; color: #7f9b94; font-size: .56rem; pointer-events: none; }
.globe-drag-hint::before { content: "↔"; margin-right: 5px; color: #51d9b4; }
.globe-runtime-status { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #74a59a; font-size: .61rem; pointer-events: none; }
.world-map[data-ready="true"] .globe-runtime-status { display: none; }
.world-map[data-failed="true"] .globe-runtime-status { display: block; max-width: 280px; color: #d3b968; text-align: center; }
.continent-chips { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid rgba(101, 231, 193, .14); border-radius: 999px; background: rgba(2, 14, 18, .88); }
.continent-chips button {
  min-width: 0; min-height: 48px; display: grid; place-content: center; gap: 2px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: #849e97; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.continent-chips button:hover { color: #d9f0ea; background: rgba(70, 222, 181, .06); }
.continent-chips button[aria-pressed="true"] { border-color: #31db9d; background: rgba(36, 161, 122, .14); color: #e8fbf5; box-shadow: inset 0 0 20px rgba(44, 208, 157, .08), 0 0 18px rgba(27, 174, 130, .08); }
.continent-chips span { font-size: .64rem; white-space: nowrap; }
.continent-chips strong { color: #dcece8; font-size: .83rem; }
.continent-chips button[aria-pressed="true"] strong { color: var(--channels-emerald); }

.directory-console { padding: 18px; }
.directory-console-header { display: grid; grid-template-columns: auto minmax(320px, 1fr) auto; gap: 22px; align-items: end; padding: 0 2px 16px; border-bottom: 1px solid rgba(103, 224, 190, .11); }
.directory-console-header h2 { margin: 5px 0 0; font-size: 1.35rem; }
.directory-search { min-width: 0; color: #809b94; font-size: .65rem; }
.search-field { position: relative; display: flex; align-items: center; margin-top: 7px; }
.search-field > i { position: absolute; left: 13px; width: 11px; height: 11px; border: 1.5px solid #7c9b94; border-radius: 50%; pointer-events: none; }
.search-field > i::after { content: ""; position: absolute; width: 5px; height: 1px; right: -4px; bottom: -2px; transform: rotate(45deg); background: #7c9b94; }
.directory-search input { width: 100%; min-height: 42px; padding: 0 58px 0 36px; border: 1px solid rgba(105, 223, 190, .18); border-radius: 9px; background: #020f13; color: var(--channels-text); }
.directory-search kbd { position: absolute; right: 9px; padding: 3px 6px; border: 1px solid rgba(111, 216, 187, .12); border-radius: 5px; color: #607a74; font: 600 .55rem/1.2 inherit; }
.directory-tools { display: flex; align-items: end; gap: 10px; }
.directory-tools > p { margin: 0 6px 9px 0; color: #78928c; font-size: .65rem; white-space: nowrap; }
.directory-tools > p strong { color: var(--channels-emerald); font-size: .78rem; }
.sort-control { color: #78928c; font-size: .58rem; }
.sort-control select { display: block; min-width: 176px; min-height: 40px; margin-top: 5px; padding: 0 30px 0 10px; border: 1px solid rgba(105, 223, 190, .16); border-radius: 8px; background: #031115; color: #bdd0cb; }
.view-switch { display: flex; margin-bottom: 1px; padding: 3px; border: 1px solid rgba(105, 223, 190, .15); border-radius: 8px; background: #031115; }
.view-switch button { width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: #6f8983; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: rgba(62, 221, 173, .12); color: var(--channels-emerald); }
.filter-toggle { display: none; }

.directory-workspace { min-width: 0; display: grid; grid-template-columns: 294px minmax(0, 1fr) 372px; gap: 14px; align-items: start; padding-top: 16px; }
.channel-filters, .directory-panel, .entity-detail { min-width: 0; border: 1px solid rgba(105, 223, 190, .14); border-radius: 14px; background: var(--channels-panel); }
.channel-filters { position: sticky; top: 14px; padding: 16px; }
.filters-heading, .directory-heading, .detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filters-heading h3, .directory-heading h2 { margin: 4px 0 0; font-size: 1.08rem; }
.filters-heading button { padding: 6px 8px; border: 0; background: transparent; color: #48c7ad; font-size: .62rem; text-decoration: underline; cursor: pointer; }
.filter-status { margin: 14px 0 11px; padding: 7px 9px; border-radius: 7px; background: rgba(76, 214, 169, .055); color: #71928a; font-size: .62rem; }
.filter-grid { display: grid; gap: 10px; }
.filter-grid label { color: #78928c; font-size: .62rem; }
.filter-grid select { width: 100%; min-height: 39px; margin-top: 5px; padding: 0 30px 0 10px; border: 1px solid rgba(103, 222, 189, .16); border-radius: 7px; background: #020f13; color: #c9dad6; }
.more-filters { margin-top: 11px; border-top: 1px solid rgba(103, 222, 189, .09); }
.more-filters summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 1px 4px; color: #8ba49e; font-size: .66rem; cursor: pointer; list-style: none; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters[open] summary span { transform: rotate(45deg); }
.filter-grid-secondary { padding-top: 9px; }

.directory-panel { min-height: 690px; padding: 16px; }
.directory-heading { padding-bottom: 13px; border-bottom: 1px solid rgba(103, 222, 189, .09); }
.directory-page-summary { color: #718d86; font-size: .62rem; }
.active-filters { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 8px 0 0; }
.active-filters > span { color: #718d86; font-size: .59rem; white-space: nowrap; }
.active-filters > div { display: flex; flex-wrap: wrap; gap: 5px; }
.active-filters button { padding: 4px 7px; border: 1px solid rgba(90, 223, 183, .17); border-radius: 999px; background: rgba(67, 196, 157, .07); color: #8dc3b4; font-size: .56rem; cursor: pointer; }
.active-filters button::after { content: " ×"; color: #e4c66d; }
.entity-mosaic { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 13px 0; outline: none; }
.entity-mosaic[data-view-mode="list"] { grid-template-columns: 1fr; }
.entity-card {
  position: relative; min-width: 0; min-height: 234px; display: flex; flex-direction: column; padding: 13px;
  border: 1px solid rgba(103, 222, 189, .14); border-radius: 11px; overflow: hidden;
  background: linear-gradient(150deg, rgba(7, 31, 30, .92), rgba(2, 13, 17, .97));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.entity-card::after { content: ""; position: absolute; inset: auto -40% -70% 35%; height: 150px; pointer-events: none; background: radial-gradient(circle, rgba(41, 193, 145, .08), transparent 66%); }
.entity-card:hover { z-index: 1; transform: translateY(-2px); border-color: rgba(91, 235, 188, .38); box-shadow: 0 13px 30px rgba(0, 0, 0, .22); }
.entity-card.is-selected { border-color: #36d695; background: linear-gradient(150deg, rgba(9, 45, 38, .96), rgba(2, 15, 18, .98)); box-shadow: inset 0 0 25px rgba(48, 219, 155, .06), 0 0 18px rgba(41, 196, 143, .09); }
.catalogued-badge { display: inline-flex; align-items: center; width: max-content; padding: 4px 7px; border-radius: 999px; background: rgba(69, 218, 163, .11); color: #65dbb4; font-size: .56rem; font-weight: 850; }
.card-top { display: flex; justify-content: space-between; gap: 9px; align-items: start; margin-bottom: 11px; }
.entity-mark, .detail-mark { display: grid; place-items: center; border: 1px solid rgba(91, 231, 187, .32); background: #07251f; color: #61e9b8; font-weight: 900; }
.entity-mark { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; }
.card-classification { min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.entity-type { color: #78928c; font-size: .56rem; text-transform: uppercase; letter-spacing: .035em; }
.access-badge { padding: 3px 6px; border-radius: 999px; background: rgba(59, 206, 152, .09); color: #66cba9; font-size: .52rem; }
.entity-copy { min-width: 0; flex: 1; }
.entity-copy h3 { margin: 6px 0; overflow-wrap: anywhere; font-size: .97rem; }
.entity-copy > p { margin: 4px 0; color: #8fa8a1; font-size: .65rem; line-height: 1.35; }
.entity-services { min-height: 31px; }
.entity-participation { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.entity-participation span, .detail-human-states span { display: inline-flex; padding: 4px 6px; border: 1px solid rgba(112, 225, 195, .13); border-radius: 999px; background: rgba(112, 225, 195, .04); color: #89aaa2; font-size: .53rem; }
.entity-participation span:nth-child(2), .detail-human-states span:nth-child(2) { border-color: rgba(225, 185, 69, .19); color: #c7ab5d; }
.entity-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(112, 225, 195, .09); font-size: .56rem; }
.entity-meta span { color: #8ca39d; }
.entity-meta strong { max-width: 65%; color: #b8af7b; text-align: right; font-weight: 600; line-height: 1.3; }
.entity-card > button { position: relative; z-index: 2; align-self: flex-end; min-height: 34px; margin-top: 10px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--channels-emerald); color: #002016; font-size: .6rem; font-weight: 900; cursor: pointer; }
.entity-mosaic[data-view-mode="list"] .entity-card { min-height: 128px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 12px; }
.entity-mosaic[data-view-mode="list"] .catalogued-badge { position: absolute; right: 12px; top: 12px; }
.entity-mosaic[data-view-mode="list"] .card-top { grid-row: 1 / 3; display: block; }
.entity-mosaic[data-view-mode="list"] .card-classification { display: none; }
.entity-mosaic[data-view-mode="list"] .entity-copy { grid-column: 2; }
.entity-mosaic[data-view-mode="list"] .entity-participation { margin-top: 5px; }
.entity-mosaic[data-view-mode="list"] .entity-card > button { grid-column: 3; grid-row: 1 / 3; align-self: end; }
.directory-loading, .directory-empty { min-height: 240px; padding: 38px 18px; text-align: center; color: #8fa59f; }
.directory-loading > span { display: block; margin-bottom: 20px; font-size: .72rem; }
.directory-loading > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.directory-loading i { height: 150px; border-radius: 10px; background: linear-gradient(100deg, rgba(36, 94, 80, .1), rgba(76, 173, 144, .2), rgba(36, 94, 80, .1)); background-size: 220% 100%; animation: channel-shimmer 1.8s linear infinite; }
.directory-loading[data-state="error"] > div { display: none; }
.directory-loading button, .directory-empty button { min-height: 38px; margin-top: 16px; padding: 0 13px; border: 1px solid rgba(90, 230, 185, .26); border-radius: 8px; background: rgba(55, 190, 148, .09); color: #70dcbc; cursor: pointer; }
.directory-empty strong { display: block; color: #dcebe7; font-size: 1rem; }
.directory-empty p { margin: 7px 0 0; font-size: .7rem; }
.pagination { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 96px; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid rgba(112, 225, 195, .09); }
.pagination > button, .page-numbers button { min-height: 36px; border: 1px solid rgba(112, 225, 195, .17); border-radius: 7px; background: #06191b; color: #8fdcc7; cursor: pointer; }
.pagination button:disabled { opacity: .32; cursor: not-allowed; }
.pagination > span { color: #78928c; font-size: .58rem; white-space: nowrap; }
.page-numbers { display: flex; justify-content: center; gap: 5px; }
.page-numbers button { min-width: 34px; padding: 0 7px; }
.page-numbers button[aria-current="page"] { border-color: #42dca3; background: rgba(52, 193, 145, .15); color: var(--channels-emerald); box-shadow: 0 0 12px rgba(57, 215, 159, .08); }
.page-numbers span { display: grid; place-items: center; width: 22px; color: #6f8882; }

.entity-detail { position: sticky; top: 14px; min-height: 690px; max-height: calc(100vh - 28px); padding: 16px; overflow: auto; scrollbar-color: rgba(91, 219, 183, .25) transparent; }
.entity-detail:focus { outline: 2px solid rgba(87, 233, 183, .48); outline-offset: 2px; }
.detail-top { padding-bottom: 12px; border-bottom: 1px solid rgba(112, 225, 195, .1); }
.detail-top button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #a8bdb8; font-size: 1.25rem; cursor: pointer; }
.detail-placeholder { min-height: 600px; display: grid; place-content: center; text-align: center; color: #819791; }
.detail-placeholder > span { display: grid; place-items: center; width: 64px; height: 64px; margin: auto; border: 1px solid rgba(104, 239, 194, .3); border-radius: 17px; background: #08231f; color: #68e8b9; font-size: 1rem; font-weight: 900; }
.detail-placeholder h2 { margin: 16px 0 6px; color: #dfece9; font-size: 1.15rem; }
.detail-placeholder p { max-width: 260px; margin: 0; font-size: .68rem; line-height: 1.55; }
.entity-detail article { padding-top: 15px; animation: detail-enter .22s ease-out both; }
.detail-identity { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; }
.detail-mark { width: 58px; height: 58px; border-radius: 14px; }
.detail-identity h2 { margin: 6px 0 2px; font-size: 1.27rem; overflow-wrap: anywhere; }
.detail-type { margin: 0; color: #829a94; font-size: .64rem; }
.detail-human-states { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.rights-notice { margin: 12px 0; padding: 11px 12px; border: 1px solid rgba(217, 190, 112, .08); border-left: 2px solid var(--channels-amber); border-radius: 5px; background: rgba(217, 190, 112, .07); color: #cbbb83; font-size: .67rem; line-height: 1.45; }
.entity-detail dl { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0; border-top: 1px solid rgba(112, 225, 195, .09); }
.entity-detail dl div { min-width: 0; padding: 10px 6px; border-bottom: 1px solid rgba(112, 225, 195, .08); }
.entity-detail dt { color: #718c85; font-size: .55rem; text-transform: uppercase; }
.entity-detail dd { margin: 4px 0 0; color: #d5e4e0; font-size: .66rem; line-height: 1.4; overflow-wrap: anywhere; }
.detail-list { margin-top: 8px; border: 1px solid rgba(112, 225, 195, .12); border-radius: 8px; background: #031014; overflow: hidden; }
.detail-list summary { display: flex; justify-content: space-between; gap: 9px; align-items: center; padding: 10px 11px; color: #a7c9c0; font-size: .67rem; cursor: pointer; list-style: none; }
.detail-list summary::-webkit-details-marker { display: none; }
.detail-list summary b { color: var(--channels-emerald); font-size: .58rem; }
.detail-list summary i { transition: transform .18s ease; }
.detail-list[open] summary i { transform: rotate(180deg); }
.detail-list ul { max-height: 195px; margin: 0; padding: 0 13px 12px 28px; overflow: auto; border-top: 1px solid rgba(112, 225, 195, .08); }
.detail-list li { margin: 7px 0; color: #aebfbb; font-size: .62rem; line-height: 1.45; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.registration-link, .official-site, .portal-return { color: #72e2c0; text-decoration: none; }
.registration-link, .official-site { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 11px; border: 1px solid rgba(98, 220, 184, .42); border-radius: 8px; font-size: .65rem; font-weight: 850; }
.registration-link { background: linear-gradient(135deg, rgba(32, 159, 116, .58), rgba(16, 95, 78, .68)); color: #effff9; }
.official-site { background: rgba(98, 220, 184, .03); }
.registration-context { margin: 11px 0 0; color: #819b94; font-size: .59rem; line-height: 1.5; }
.detail-backdrop { display: none; }

.channels-status { min-height: 50px; display: grid; grid-template-columns: auto 210px minmax(0, 1fr) 120px auto; gap: 16px; align-items: center; padding: 0 28px; border-top: 1px solid rgba(112, 225, 195, .12); background: rgba(1, 7, 9, .96); color: #748b85; font-size: .61rem; }
.portal-return { font-weight: 800; white-space: nowrap; }
.channels-status > span { color: #69e7b8; font-weight: 800; }
.channels-status > span i { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #69e7b8; box-shadow: 0 0 8px #69e7b8; }
.channels-status p { margin: 0; text-align: center; }
.channels-status strong { text-align: right; color: #9eb2ad; }
.adm-footer-link { color: inherit; opacity: .42; font-size: .58rem; letter-spacing: .12em; text-decoration: none; }
.channels-shell [hidden] { display: none !important; }

.channels-shell button:focus-visible, .channels-shell a:focus-visible, .channels-shell select:focus-visible, .channels-shell input:focus-visible, .channels-shell summary:focus-visible { outline: 3px solid rgba(96, 240, 196, .55); outline-offset: 2px; }

@keyframes globe-presence-pulse { 0% { opacity: .72; transform: scale(.35); } 78%, 100% { opacity: 0; transform: scale(1.55); } }
@keyframes channel-shimmer { to { background-position: -220% 0; } }
@keyframes detail-enter { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

@media (min-width: 1760px) {
  .directory-workspace { grid-template-columns: 306px minmax(0, 1fr) 390px; gap: 16px; }
  .entity-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1480px) {
  .channels-main { padding-inline: 18px; }
  .channels-hero { grid-template-columns: minmax(500px, .9fr) minmax(520px, 1.1fr); }
  .hero-primary { padding: 25px; }
  .directory-workspace { grid-template-columns: 270px minmax(0, 1fr) 335px; gap: 12px; }
  .entity-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-console-header { grid-template-columns: auto minmax(280px, 1fr) auto; gap: 14px; }
}

@media (max-width: 1280px) {
  .channels-hero { grid-template-columns: 1fr 1fr; }
  .directory-summary { grid-template-columns: repeat(2, 1fr); }
  .world-map { margin-bottom: -30px; }
  .directory-workspace { grid-template-columns: 245px minmax(0, 1fr) 318px; }
  .directory-console { padding: 14px; }
  .channel-filters, .directory-panel, .entity-detail { padding: 13px; }
  .channels-status { grid-template-columns: auto 1fr auto; }
  .channels-status p, .channels-status strong { display: none; }
}

@media (max-width: 1100px) {
  .channels-hero { grid-template-columns: 1fr; }
  .hero-primary { grid-template-columns: 1fr minmax(360px, .65fr); align-items: end; }
  .global-presence { min-height: 330px; }
  .directory-console-header { grid-template-columns: 1fr minmax(300px, 1.3fr); }
  .directory-tools { grid-column: 1 / -1; justify-content: flex-end; }
  .directory-workspace { grid-template-columns: 1fr; }
  .channel-filters { position: relative; top: auto; }
  .filter-grid-primary, .filter-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entity-detail {
    position: fixed; z-index: 72; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); min-height: 0; max-height: none;
    transform: translateX(calc(100% + 28px)); pointer-events: none; box-shadow: -24px 0 70px rgba(0, 0, 0, .52); transition: transform .24s ease;
  }
  .entity-detail[data-has-selection="true"] { transform: translateX(0); pointer-events: auto; }
  .detail-placeholder { display: none; }
  .detail-backdrop:not([hidden]) { position: fixed; z-index: 70; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: rgba(0, 6, 8, .68); backdrop-filter: blur(3px); cursor: default; }
}

@media (max-width: 780px) {
  .channels-main { padding: 10px; }
  .hero-primary { grid-template-columns: 1fr; padding: 22px; }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 3.25rem); }
  .global-presence { padding-inline: 12px; }
  .world-map { height: 205px; margin-bottom: -24px; }
  .continent-chips { overflow-x: auto; grid-template-columns: repeat(5, minmax(112px, 1fr)); border-radius: 13px; scrollbar-width: thin; }
  .directory-console { padding: 12px; }
  .directory-console-header { grid-template-columns: 1fr; align-items: stretch; }
  .directory-tools { grid-column: auto; flex-wrap: wrap; justify-content: space-between; }
  .directory-tools > p { flex: 1 0 100%; }
  .sort-control { flex: 1; }
  .sort-control select { width: 100%; min-width: 0; }
  .filter-toggle { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 12px; border: 1px solid rgba(105, 223, 190, .16); border-radius: 9px; background: #031418; color: #a9c5bd; cursor: pointer; }
  .filter-toggle strong { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: rgba(74, 212, 167, .1); color: var(--channels-emerald); }
  .channel-filters[data-collapsed="true"] .filter-body { display: none; }
  .channel-filters[data-collapsed="true"] .filter-status { margin-bottom: 0; }
  .filter-grid-primary, .filter-grid-secondary { grid-template-columns: 1fr; }
  .entity-mosaic { grid-template-columns: 1fr; }
  .entity-mosaic[data-view-mode="list"] .entity-card { display: flex; }
  .entity-mosaic[data-view-mode="list"] .catalogued-badge { position: static; }
  .pagination { grid-template-columns: 88px 1fr 88px; }
  .pagination > span { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .page-numbers button:not([aria-current="page"]):not(:first-child):not(:last-child) { display: none; }
  .directory-loading > div { grid-template-columns: 1fr; }
  .directory-loading i:nth-child(n+2) { display: none; }
  .channels-status { grid-template-columns: 1fr auto; gap: 8px; min-height: 66px; padding: 9px 12px; }
  .channels-status > span { grid-column: 1 / -1; grid-row: 2; }
  .adm-footer-link { justify-self: end; }
}

@media (max-width: 480px) {
  .channels-hero { min-height: 0; }
  .hero-primary { padding: 20px 14px; }
  .hero-copy h1 { font-size: 2.25rem; overflow-wrap: break-word; }
  .directory-summary > div { padding: 11px 9px; }
  .metric-icon { width: 32px; height: 32px; }
  .directory-summary dd { font-size: 1.12rem; }
  .global-presence { min-height: 310px; }
  .world-map { height: 185px; }
  .directory-console-header h2 { font-size: 1.2rem; }
  .directory-panel { min-height: 620px; }
  .directory-heading { align-items: end; }
  .active-filters { align-items: start; flex-direction: column; }
  .entity-detail { inset: 6px; width: auto; border-radius: 13px; }
  .entity-detail dl { grid-template-columns: 1fr; }
  .detail-actions { grid-template-columns: 1fr; }
  .detail-actions { margin-right: 62px; }
  .pagination { grid-template-columns: 72px 1fr 72px; margin-right: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .channels-shell *, .channels-shell *::before, .channels-shell *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .hero-primary, .global-presence, .directory-console, .channel-filters, .directory-panel, .entity-detail, .entity-card { border: 1px solid CanvasText; }
  .catalogued-badge, .entity-participation span, .detail-human-states span { border: 1px solid CanvasText; }
}

/* CANAIS_STAGE4_COMMERCIAL_UI_START */
.channel-commerce{
  display:grid;
  gap:14px;
  margin:18px 0;
  padding:18px;
  border:1px solid rgba(112,134,255,.24);
  border-radius:18px;
  background:
    radial-gradient(circle at 100% 0,rgba(123,86,255,.12),transparent 38%),
    linear-gradient(145deg,rgba(8,17,31,.97),rgba(18,20,40,.96));
  box-shadow:0 18px 44px rgba(2,7,18,.24);
}
.channel-commerce[hidden]{display:none!important}
.channel-commerce__heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.channel-commerce__heading h3{
  margin:4px 0 0;
  font-size:18px;
  letter-spacing:-.02em;
}
.channel-commerce__eyebrow{
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
  opacity:.66;
}
.channel-commerce__state{
  flex:0 0 auto;
  padding:7px 10px;
  border:1px solid rgba(122,103,255,.32);
  border-radius:999px;
  background:rgba(103,78,255,.12);
  font-size:8px;
  font-weight:900;
  letter-spacing:.14em;
}
.channel-commerce__message,
.channel-commerce__governance,
.channel-commerce__dormant{
  margin:0;
  font-size:11px;
  line-height:1.55;
  opacity:.76;
}
.channel-commerce__offers{
  display:grid;
  gap:9px;
}
.channel-commerce__offer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  width:100%;
  padding:13px 14px;
  border:1px solid rgba(122,103,255,.3);
  border-radius:13px;
  color:inherit;
  background:rgba(87,63,224,.12);
  text-align:left;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.channel-commerce__offer:hover{
  transform:translateY(-1px);
  border-color:rgba(143,125,255,.68);
  background:rgba(102,76,244,.2);
}
.channel-commerce__offer span{
  font-size:11px;
  font-weight:800;
}
.channel-commerce__offer strong{
  font-size:12px;
  white-space:nowrap;
}
.channel-commerce__payment{
  display:grid;
  gap:13px;
  padding:14px;
  border:1px solid rgba(64,174,255,.24);
  border-radius:14px;
  background:rgba(4,13,25,.68);
}
.channel-commerce__payment[hidden]{display:none!important}
.channel-commerce__payment-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
}
.channel-commerce__payment-head span{
  display:block;
  margin-bottom:4px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.16em;
  color:#8caeff;
}
.channel-commerce__payment-head strong{font-size:18px}
.channel-commerce__payment-head p{
  max-width:210px;
  margin:0;
  font-size:9px;
  line-height:1.45;
  opacity:.62;
  text-align:right;
}
.channel-commerce__tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.channel-commerce__tabs button{
  min-height:36px;
  border:1px solid rgba(128,145,255,.22);
  border-radius:10px;
  color:inherit;
  background:rgba(255,255,255,.035);
  font-size:9px;
  font-weight:900;
  letter-spacing:.1em;
  cursor:pointer;
}
.channel-commerce__tabs button[aria-selected="true"]{
  border-color:rgba(132,112,255,.72);
  background:rgba(104,78,244,.2);
}
.channel-commerce__payment-view{
  display:grid;
  gap:10px;
}
.channel-commerce__payment-view[hidden]{display:none!important}
.channel-commerce__payment-view>strong{
  font-size:10px;
  letter-spacing:.12em;
}
.channel-commerce__payment-view>p{
  margin:0;
  font-size:10px;
  line-height:1.5;
  opacity:.68;
}
.channel-commerce__payment-view code{
  display:block;
  padding:11px;
  border-radius:10px;
  background:rgba(0,0,0,.28);
  font-size:10px;
  overflow-wrap:anywhere;
}
.channel-commerce__payment-view label{
  display:grid;
  gap:5px;
  font-size:9px;
  font-weight:800;
  opacity:.88;
}
.channel-commerce__payment-view input{
  width:100%;
  box-sizing:border-box;
  min-height:38px;
  padding:8px 10px;
  border:1px solid rgba(129,145,255,.22);
  border-radius:9px;
  color:inherit;
  background:rgba(3,10,20,.72);
  outline:none;
}
.channel-commerce__payment-view input:focus{
  border-color:rgba(133,112,255,.72);
}
.channel-commerce__card-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.channel-commerce__primary{
  min-height:40px;
  padding:9px 13px;
  border:1px solid rgba(130,108,255,.72);
  border-radius:10px;
  color:white;
  background:linear-gradient(135deg,#6045d9,#8b5cf6);
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  cursor:pointer;
}
.channel-commerce__flow{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:5px;
  margin:0;
  padding:0;
  list-style:none;
}
.channel-commerce__flow li{
  padding:7px 4px;
  border-radius:8px;
  background:rgba(255,255,255,.035);
  font-size:7px;
  font-weight:800;
  text-align:center;
  opacity:.48;
}
.channel-commerce__flow li[data-active="true"]{
  background:rgba(96,69,217,.2);
  color:#c8bbff;
  opacity:1;
}
@media(max-width:768px){
  .channel-commerce{padding:14px}
  .channel-commerce__heading,
  .channel-commerce__payment-head{display:grid}
  .channel-commerce__payment-head p{
    max-width:none;
    text-align:left;
  }
  .channel-commerce__flow{
    grid-template-columns:repeat(3,1fr);
  }
}
@media(max-width:480px){
  .channel-commerce__offer{
    grid-template-columns:1fr;
  }
  .channel-commerce__card-grid{
    grid-template-columns:1fr;
  }
  .channel-commerce__flow{
    grid-template-columns:repeat(2,1fr);
  }
}
@media(prefers-reduced-motion:reduce){
  .channel-commerce__offer{
    transition:none;
  }
  .channel-commerce__offer:hover{
    transform:none;
  }
}
/* CANAIS_STAGE4_COMMERCIAL_UI_END */
