/* Память и Центр: спокойные рабочие поверхности поверх общей атмосферы DeX. */
.sw-view {
  --sw-ink:#e2eafa;
  --sw-muted:#94a7bf;
  --sw-dim:#6d829d;
  --sw-line:rgba(167,198,238,.19);
  --sw-blue:#b4d1f5;
  --sw-warm:#d7a779;
  width:100%; max-width:1320px; margin:0 auto; padding:14px clamp(10px,3vw,44px) 36px;
  box-sizing:border-box; color:var(--sw-ink); font-family:"Space Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.sw-view *, .sw-view *::before, .sw-view *::after {box-sizing:border-box}
.sw-view [hidden] {display:none!important}
.sw-view h1,.sw-view h2,.sw-view h3,.sw-view p,.sw-view dl {margin:0}
.sw-view button,.sw-view input {font:inherit}
.sw-view button {cursor:pointer}
.sw-view button:focus-visible,.sw-view input:focus-visible {outline:2px solid #b7d1f5;outline-offset:3px}
.sw-view button:disabled {cursor:not-allowed}
.sw-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sw-kicker {display:block;color:#8da7c5;font-size:9px;font-weight:500;letter-spacing:.16em;line-height:1.5}
.sw-heading {display:flex;justify-content:space-between;align-items:flex-start;gap:28px;margin:0 0 24px}
.sw-heading h1 {margin:7px 0 4px;font-size:clamp(34px,3.5vw,50px);line-height:1.05;font-weight:500;letter-spacing:-.055em}
.sw-heading h1 span {color:#accdf8}
.sw-heading p {color:var(--sw-muted);font-size:12px;line-height:1.5}
.sw-demo {display:inline-flex;gap:8px;align-items:center;margin-top:4px;color:#859ab5;font-size:10px;white-space:nowrap}
.sw-demo i {display:block;width:4px;height:4px;border-radius:50%;background:#a7c8f0}
.sw-memory-tools {display:flex;align-items:center;gap:13px;margin-bottom:16px}
.sw-search {display:flex;align-items:center;gap:11px;flex:1 1 250px;min-width:190px;height:42px;padding:0 12px;border:1px solid rgba(164,198,236,.25);border-radius:9px;background:linear-gradient(100deg,rgba(14,25,43,.72),rgba(21,33,51,.43));color:#b8cee9}
.sw-search>span[aria-hidden] {font-size:21px;line-height:1;transform:translateY(-1px)}
.sw-search input {min-width:0;flex:1;background:transparent;border:0;outline:0;color:#e3edfd;font-size:12px}
.sw-search input::placeholder {color:#8193ad;opacity:1}
.sw-search kbd {color:#768ba5;font-size:9px;font-weight:400;white-space:nowrap}
.sw-segment {display:flex;align-items:center;gap:2px;padding:3px;border:1px solid rgba(151,183,223,.15);border-radius:9px;background:rgba(12,21,35,.38)}
.sw-segment button {min-height:33px;padding:7px 11px;border:1px solid transparent;border-radius:6px;background:transparent;color:#8fa5c0;font-size:10px;white-space:nowrap;transition:background .18s ease,border-color .18s ease,color .18s ease}
.sw-segment button:hover {background:rgba(79,114,159,.17);color:#d9e8fc}
.sw-segment button[aria-pressed=true] {background:rgba(105,143,190,.2);border-color:rgba(171,207,247,.25);color:#dfeaff}
.sw-memory-frame,.sw-queue,.sw-project-frame,.sw-events-list {border:1px solid var(--sw-line);border-radius:15px;background:linear-gradient(127deg,rgba(11,20,34,.78),rgba(16,28,47,.55) 60%,rgba(19,32,51,.51));box-shadow:inset 0 1px rgba(208,227,255,.06),0 15px 50px rgba(1,6,13,.11)}
.sw-memory-frame {display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,31%);min-height:440px;overflow:hidden}
.sw-memory-primary {min-width:0;padding:8px 0}
.sw-subhead {display:flex;justify-content:space-between;gap:20px;padding:10px 20px 12px;border-bottom:1px solid var(--sw-line);color:#829bb9;font-size:9px;letter-spacing:.13em}
.sw-subhead span:last-child {color:#667e9c}
.sw-node-list {min-height:365px}
.sw-node-row {display:flex;align-items:center;gap:15px;width:100%;min-height:66px;padding:12px 20px;text-align:left;border:0;border-bottom:1px solid rgba(152,187,228,.13);background:transparent;color:var(--sw-ink);transition:background .18s ease}
.sw-node-row:last-child {border-bottom:0}
.sw-node-row:hover,.sw-node-row.is-selected {background:linear-gradient(90deg,rgba(91,133,181,.19),rgba(95,132,181,.045))}
.sw-node-row.is-selected {box-shadow:inset 2px 0 #a5c5ea}
.sw-node-signal {flex:none;width:5px;height:5px;border-radius:50%;border:1px solid #8facd1;background:#4c6e93}
.sw-node-row.is-selected .sw-node-signal {background:#c2d9f4;box-shadow:0 0 11px rgba(166,205,249,.36)}
.sw-private-row {border-top:1px solid rgba(155,187,226,.17);background:rgba(8,16,28,.28)}
.sw-private-row .sw-node-copy strong {color:#b1c3d9}
.sw-private-row .sw-node-meta em {color:#91a4bd}
.sw-private-mark {position:relative;display:block;flex:none;width:16px;height:18px}
.sw-private-mark::before {content:"";position:absolute;left:4px;top:1px;width:8px;height:9px;border:1px solid #91a8c3;border-radius:5px 5px 0 0}
.sw-private-mark::after {content:"";position:absolute;left:2px;top:8px;width:12px;height:9px;border:1px solid #91a8c3;border-radius:3px;background:rgba(29,48,72,.65)}
.sw-node-copy {display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.sw-node-copy strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}
.sw-node-copy small,.sw-node-meta small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sw-dim);font-size:10px}
.sw-node-meta {display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:90px}
.sw-node-meta em {color:#abc4e2;font-size:10px;font-style:normal}
.sw-row-arrow {color:#7796b9;font-size:13px}
.sw-empty {display:grid;place-content:center;min-height:280px;padding:30px;text-align:center}
.sw-empty strong {font-size:15px;font-weight:500;color:#c9d9ed}
.sw-empty p {max-width:320px;margin:7px auto 0;color:var(--sw-dim);font-size:11px;line-height:1.5}
.sw-memory-detail {min-width:0;padding:24px clamp(18px,2.5vw,30px);border-left:1px solid var(--sw-line);background:linear-gradient(130deg,rgba(79,115,166,.075),rgba(9,19,33,.08))}
.sw-detail-top {display:flex;align-items:center;justify-content:space-between;gap:10px}
.sw-detail-top button {display:none;padding:0;border:0;background:none;color:#b9d3f1;font-size:10px}
.sw-private-seal {display:grid;place-items:center;width:43px;height:43px;margin-top:24px;border:1px solid rgba(155,189,230,.28);border-radius:10px;background:rgba(98,130,170,.1)}
.sw-private-seal .sw-private-mark {transform:scale(1.25)}
.sw-private-access {display:flex;justify-content:space-between;gap:12px;margin-top:28px;padding:13px 0;border-top:1px solid var(--sw-line);border-bottom:1px solid var(--sw-line)}
.sw-private-access span {color:#819bb8;font-size:9px;letter-spacing:.13em}
.sw-private-access strong {color:#c7d6e8;font-size:11px;font-weight:500}
.sw-private-caption {margin-top:15px!important;color:#839bb7;font-size:10px;line-height:1.6}
.sw-filter-note {margin:12px 0 0!important;color:#d5ad84;font-size:10px}
.sw-detail-type {margin-top:18px;color:#a5bee0;font-size:10px}
.sw-detail-type span {padding:0 4px;color:#6681a2}
.sw-memory-detail h2 {margin-top:10px;font-size:clamp(22px,2vw,29px);font-weight:500;letter-spacing:-.035em;line-height:1.2}
.sw-detail-text {margin-top:16px!important;color:#b6c7de;font-size:12px;line-height:1.65}
.sw-tag-row {display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}
.sw-tag-row span {padding:4px 7px;border:1px solid rgba(157,192,232,.22);border-radius:5px;color:#91abc9;font-size:9px}
.sw-facts {display:grid;gap:11px;margin-top:25px!important;padding:18px 0;border-top:1px solid var(--sw-line);border-bottom:1px solid var(--sw-line)}
.sw-facts div,.sw-decision-facts div {display:grid;grid-template-columns:75px minmax(0,1fr);gap:8px}
.sw-facts dt,.sw-decision-facts dt {color:#7891ae;font-size:10px}
.sw-facts dd,.sw-decision-facts dd {margin:0;color:#bfd0e6;font-size:10px;line-height:1.5}
.sw-detail-links {margin-top:20px}
.sw-detail-links-heading {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.sw-detail-links h3 {font-size:11px;font-weight:500}
.sw-detail-links-heading button {padding:0;border:0;background:none;color:#a9c8ed;font-size:10px}
.sw-detail-links>button {display:flex;justify-content:space-between;gap:10px;width:100%;padding:9px 0;border:0;border-bottom:1px solid rgba(155,187,226,.11);background:transparent;color:#9fb6d3;text-align:left;font-size:10px}
.sw-detail-links>button:hover,.sw-detail-links-heading button:hover {color:#e3edfc}
.sw-footnote {margin-top:11px!important;color:#6e85a1;font-size:9px;line-height:1.4}

.sw-graph {min-height:395px}
.sw-graph-controls {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 14px;color:#7993af;font-size:9px}
.sw-graph-controls>div {display:flex;gap:4px}
.sw-graph-controls button {width:27px;height:27px;padding:0;border:1px solid rgba(156,190,228,.25);border-radius:5px;background:rgba(42,65,95,.24);color:#b4cbed;font-size:15px}
.sw-graph-controls button:hover {background:rgba(76,111,155,.29)}
.sw-graph-stage {position:relative;height:350px;overflow:hidden;cursor:grab;touch-action:none;background:radial-gradient(ellipse at 49% 49%,rgba(87,123,171,.08),transparent 67%)}
.sw-graph-stage:active {cursor:grabbing}
.sw-graph-world {position:absolute;inset:0;transform-origin:50% 50%;will-change:transform}
.sw-graph-world svg {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.sw-graph-world line {stroke:#7396bd;stroke-opacity:.3;stroke-width:1.1;vector-effect:non-scaling-stroke}
.sw-graph-node {position:absolute;display:flex;align-items:center;gap:7px;max-width:125px;padding:7px 9px;border:1px solid rgba(141,179,222,.22);border-radius:7px;background:rgba(16,30,50,.76);color:#a8bed9;font-size:10px;line-height:1.25;text-align:left;transform:translate(-50%,-50%);box-shadow:0 5px 17px rgba(0,5,12,.17)}
.sw-graph-node:hover,.sw-graph-node.is-selected {border-color:rgba(191,217,246,.64);background:rgba(53,81,115,.82);color:#e5eefb}
.sw-graph-dot {flex:none;width:5px;height:5px;border-radius:50%;background:#92b3d9}
.sw-graph-node.is-selected .sw-graph-dot {background:#f0bc8d;box-shadow:0 0 7px #eab17a88}
.sw-graph-empty {min-height:340px}

.sw-section-title {display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:11px}
.sw-section-title h2 {margin-top:5px;font-size:17px;font-weight:500;letter-spacing:-.02em}
.sw-section-title h2 span {margin-left:5px;color:var(--sw-warm);font-size:11px}
.sw-small-muted {color:#7289a5;font-size:9px;text-align:right}
.sw-queue {padding:19px 20px 0;margin-bottom:24px;overflow:hidden}
.sw-queue .sw-section-title {margin-bottom:18px}
.sw-queue .sw-segment button {min-height:29px;padding:5px 9px}
.sw-queue-content {display:grid;grid-template-columns:minmax(240px,37%) minmax(0,1fr);margin:0 -20px}
.sw-queue-list {border-top:1px solid var(--sw-line);border-right:1px solid var(--sw-line)}
.sw-queue-item {display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:start;gap:12px;width:100%;min-height:80px;padding:18px 16px 14px 20px;border:0;border-bottom:1px solid var(--sw-line);background:transparent;color:var(--sw-ink);text-align:left}
.sw-queue-item:last-child {border-bottom:0}
.sw-queue-item:hover,.sw-queue-item.is-selected {background:linear-gradient(90deg,rgba(85,122,170,.19),rgba(85,122,170,.04))}
.sw-queue-item.is-selected {box-shadow:inset 2px 0 #d1a77e}
.sw-number {color:#7089a7;font-size:9px;line-height:1.6}
.sw-queue-item strong,.sw-history strong {display:block;font-size:12px;font-weight:500;line-height:1.4}
.sw-queue-item small {display:block;margin-top:5px;color:#7d95b1;font-size:9px;line-height:1.4}
.sw-orange-mark {margin-top:1px;color:#d7a779;font-size:9px;white-space:nowrap}
.sw-queue-detail {min-width:0;min-height:160px;padding:18px 24px 20px;border-top:1px solid var(--sw-line);background:linear-gradient(120deg,rgba(51,78,111,.055),rgba(8,17,30,.025))}
.sw-queue-detail h3 {margin:6px 0 13px;font-size:17px;font-weight:500;line-height:1.3}
.sw-decision-facts {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sw-decision-facts div {grid-template-columns:65px minmax(0,1fr)}
.sw-payload {margin-top:15px;padding:11px 13px;border-left:1px solid #769ac2;background:rgba(65,94,129,.11)}
.sw-payload span {display:block;margin-bottom:6px;color:#86a4c8;font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.sw-payload p {color:#c0d0e4;font-size:11px;line-height:1.5}
.sw-decision-note {margin-top:9px!important;color:#8da3bd;font-size:10px;line-height:1.5}
.sw-decision-actions {display:flex;align-items:center;gap:7px;margin-top:14px}
.sw-decision-actions button {min-width:66px;padding:6px 9px;border:1px solid rgba(147,180,220,.2);border-radius:5px;background:rgba(50,67,88,.12);color:#6f8298;font-size:10px}
.sw-decision-actions span {margin-left:6px;color:#728aa6;font-size:9px}
.sw-history {padding:22px 20px}
.sw-history span {color:#a5bdd9;font-size:9px}
.sw-history strong {margin-top:7px}
.sw-history p,.sw-history-explainer {margin-top:7px!important;color:#899fba;font-size:10px;line-height:1.5}
.sw-center-grid {display:grid;grid-template-columns:minmax(0,1.33fr) minmax(260px,.8fr);gap:24px}
.sw-project-frame {display:grid;grid-template-columns:36% minmax(0,1fr);min-height:260px;overflow:hidden}
.sw-project-list {border-right:1px solid var(--sw-line)}
.sw-project-choice {display:grid;grid-template-columns:20px minmax(0,1fr);gap:1px 7px;width:100%;padding:17px 14px;border:0;border-bottom:1px solid rgba(151,185,225,.14);background:transparent;color:#d6e3f4;text-align:left}
.sw-project-choice:last-child {border-bottom:0}
.sw-project-choice:hover,.sw-project-choice.is-selected {background:linear-gradient(90deg,rgba(81,119,164,.2),transparent)}
.sw-project-choice.is-selected {box-shadow:inset 2px 0 #9cbbdf}
.sw-project-choice .sw-number {grid-row:1/3}
.sw-project-choice strong {font-size:12px;font-weight:500}
.sw-project-choice small {margin-top:4px;color:#859bb5;font-size:9px}
.sw-project-detail {min-width:0;padding:19px 20px}
.sw-project-detail h3 {margin-top:6px;font-size:20px;font-weight:500}
.sw-project-detail>p {margin-top:7px;color:#99aec8;font-size:11px;line-height:1.5}
.sw-agent-heading {display:flex;justify-content:space-between;margin-top:20px;padding-bottom:8px;border-bottom:1px solid var(--sw-line);color:#a9bfda;font-size:10px}
.sw-agent-heading span {color:#7694b6}
.sw-agent-list {display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.sw-agent-choice {display:flex;flex-direction:column;gap:4px;min-width:105px;padding:7px 9px;border:1px solid rgba(158,193,231,.19);border-radius:7px;background:rgba(31,50,75,.29);color:#a8bfda;text-align:left}
.sw-agent-choice:hover,.sw-agent-choice.is-selected {border-color:rgba(177,207,241,.52);background:rgba(72,104,144,.25)}
.sw-agent-choice strong {font-size:10px;font-weight:500}
.sw-agent-choice span {color:#819bb9;font-size:9px}
.sw-agent-status {display:flex;justify-content:space-between;gap:10px;margin-top:13px;color:#839bb8;font-size:10px}
.sw-agent-status strong {color:#c7d8ef;font-weight:500;text-align:right}
.sw-events-list {min-height:260px;padding:8px 18px}
.sw-event {display:grid;grid-template-columns:45px minmax(0,1fr);gap:12px;padding:15px 0;border-bottom:1px solid rgba(151,185,225,.14)}
.sw-event:last-child {border:0}
.sw-event time {color:#7591af;font-size:9px}
.sw-event strong {font-size:11px;font-weight:500}
.sw-event p {margin-top:6px;color:#8198b2;font-size:10px;line-height:1.5}
.sw-system-strip {display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;padding:14px 0;border-top:1px solid var(--sw-line);color:#7e96b2;font-size:9px;letter-spacing:.09em}
.sw-system-strip span {display:flex;gap:8px}
.sw-system-strip strong {color:#a7bad1;font-weight:400;letter-spacing:0}

@media(max-width:1050px) {
  .sw-memory-tools {flex-wrap:wrap}
  .sw-search {flex-basis:100%}
  .sw-views {margin-left:auto}
  .sw-center-grid {grid-template-columns:1fr}
}
@media(max-width:760px) {
  .sw-view {padding:4px 12px 28px}
  .sw-heading {margin-bottom:17px}
  .sw-heading h1 {font-size:37px}
  .sw-heading p {font-size:11px}
  .sw-demo {font-size:9px}
  .sw-memory-frame {grid-template-columns:1fr}
  .sw-memory-detail {border-left:0;border-top:1px solid var(--sw-line);scroll-margin-top:12px}
  .sw-detail-top button {display:block}
  .sw-node-list {min-height:0}
  .sw-queue-content {grid-template-columns:1fr}
  .sw-queue-list {border-right:0}
  .sw-queue-detail {padding:18px 20px}
}
@media(min-width:761px) and (max-height:800px) {
  .sw-heading {margin-bottom:16px}
  .sw-heading h1 {font-size:37px}
  .sw-memory-tools {margin-bottom:10px}
  .sw-memory-frame,.sw-graph {min-height:0}
  .sw-graph-stage {height:265px}
  .sw-memory-detail {padding-block:18px}
  .sw-facts {margin-top:17px!important;padding:12px 0}
}
@media(max-width:520px) {
  .sw-view {padding-inline:2px}
  .sw-heading {flex-direction:column;gap:9px}
  .sw-heading h1 {font-size:33px}
  .sw-demo {margin:0}
  .sw-memory-tools {gap:8px}
  .sw-search {min-width:0}
  .sw-search kbd {display:none}
  .sw-segment {max-width:100%;overflow:auto}
  .sw-segment button {padding:7px 9px;font-size:9px}
  .sw-views {margin-left:0}
  .sw-memory-frame,.sw-queue,.sw-project-frame,.sw-events-list {border-radius:11px}
  .sw-node-row {padding:12px 13px;gap:9px}
  .sw-node-copy strong {font-size:11px}
  .sw-node-copy small {font-size:9px}
  .sw-node-meta {min-width:62px}
  .sw-row-arrow {display:none}
  .sw-graph-controls>span {max-width:170px;line-height:1.4}
  .sw-graph-stage {height:305px}
  .sw-graph-node {max-width:95px;padding:5px 6px;font-size:8px}
  .sw-queue {padding:15px 14px 0}
  .sw-queue-content {margin:0 -14px}
  .sw-queue .sw-section-title {align-items:start}
  .sw-queue-item {padding:14px;grid-template-columns:16px minmax(0,1fr) auto;gap:8px}
  .sw-queue-detail {padding:17px 14px}
  .sw-decision-facts {grid-template-columns:1fr}
  .sw-decision-actions {flex-wrap:wrap}
  .sw-decision-actions span {flex-basis:100%;margin-left:0}
  .sw-project-frame {grid-template-columns:1fr}
  .sw-project-list {display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid var(--sw-line)}
  .sw-project-choice {min-width:122px;padding:12px 10px;border-bottom:0;border-right:1px solid var(--sw-line);grid-template-columns:1fr}
  .sw-project-choice .sw-number {grid-row:auto}
  .sw-project-detail {padding:17px}
  .sw-system-strip {flex-direction:column;gap:8px}
}
@media(prefers-reduced-motion:reduce) {
  .sw-node-row,.sw-segment button,.sw-graph-node {transition:none}
}
