/* Пульт PAE поверх общего вида tasks.css, макет «Неоновое стекло» (ТЗ § 7). */
.topline { justify-content: space-between; }
.new-task {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.2rem;
  border: 1px solid var(--green); border-radius: 22px; text-decoration: none; font-weight: 700;
  color: #021A10 !important; text-shadow: none !important; font-style: normal !important;
  font-size: 1rem !important; letter-spacing: 0 !important;
  background: linear-gradient(180deg, var(--green), #0BB36A); box-shadow: 0 0 1.4rem rgba(22, 255, 150, .45);
}

.hero { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; padding: 1.4rem 1.75rem; }
.hero-text { flex: 1; min-width: 0; }
.hero p { margin: .35rem 0 0; }
.eyebrow { color: var(--cyan); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .3rem !important; }
#summary-line { color: var(--soft); }
.bridge-state { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .5rem; }
.bridge-state::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 .5rem var(--amber); }
.bridge-state[data-connected="true"]::before { background: var(--green); box-shadow: 0 0 .5rem var(--green); }
.orb {
  flex: none; width: 6.5rem; height: 6.5rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 3.6rem; font-weight: 700; color: #E9FBFF; text-shadow: 0 0 .9rem var(--cyan);
  background: radial-gradient(circle at 35% 30%, #7FE6FF 0%, #1F78D1 35%, #071A3D 75%);
  box-shadow: 0 0 2.2rem rgba(0, 201, 255, .55), inset 0 0 1.4rem rgba(245, 249, 255, .25);
}

#connection { margin-bottom: .5rem; }
#status { min-height: 1.5em; margin: .25rem 0 .5rem; color: var(--muted); }

.console-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.console-col { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.decisions-panel { border-color: #5B3DB0; box-shadow: 0 0 1.9rem rgba(153, 96, 255, .22); }
.decisions-panel h2::before { background: var(--violet); box-shadow: 0 0 .6rem var(--violet); }
.projects-panel h2::before { background: var(--blue); box-shadow: 0 0 .6rem var(--blue); }
.recent-panel h2::before { background: var(--green); box-shadow: 0 0 .6rem var(--green); }
.count { margin-inline-start: auto; padding: .05rem .65rem; border-radius: 10px; background: var(--violet); color: #0A0420; font-size: .95rem; }
.aside { margin-inline-start: auto; color: var(--muted); font-size: .8rem; font-weight: 500; }
a { color: var(--cyan); }
a:hover { color: var(--text); }

.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.plain > li { overflow-wrap: anywhere; }
.empty, .soon { color: var(--muted); padding: .4rem 0; }
.soon { font-size: .88rem; border-top: 1px dashed var(--line); padding-top: .6rem; }
.muted { color: var(--muted); margin: 0; font-size: .88rem; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--soft); font-size: .88rem; }

.decision {
  display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 74, 119, .35), rgba(2, 10, 29, .6));
}
.decision-body { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.decision time { color: var(--muted); font-size: .85rem; }
.decision a {
  flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
  border: 1px solid var(--green); border-radius: 12px; background: rgba(22, 255, 150, .14);
  color: var(--green); font-weight: 700; text-decoration: none;
}

.agent { display: grid; gap: .45rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(2, 10, 29, .55); }
.agent-head { display: flex; align-items: center; gap: .6rem; }
.agent-head strong { flex: 1; min-width: 0; }
.agent .alert { margin: 0; color: #FFB3BF; font-weight: 600; overflow-wrap: anywhere; }
.agent:has(.alert) { border-color: #8F2A3B; }
.steps { display: flex; gap: .25rem; }
.steps span { flex: 1; height: .4rem; border-radius: 3px; background: var(--line); }
.steps [data-step="done"] { background: var(--green); }
.steps [data-step="current"] { background: var(--cyan); box-shadow: 0 0 .5rem var(--cyan); }

.state { padding: .05rem .6rem; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; color: var(--soft); white-space: nowrap; }
.state[data-state^="AWAITING"] { border-color: var(--violet); color: #D9C8FF; }
.state[data-state="QUEUED"], .state[data-state="RUNNING"], .state[data-state="REVIEW"], .state[data-state="TESTING"] { border-color: var(--cyan); color: #A6EEFF; }
.state[data-state="ACCEPTED"] { border-color: var(--green); color: #A9FFD5; }
.state[data-state="CANCELLED"], .state[data-state="BLOCKED"] { border-color: var(--red); color: #FFB3BF; }

.projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.project { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(2, 10, 29, .5); }
.project-mark {
  flex: none; width: 2rem; height: 2rem; border-radius: 9px; display: grid; place-items: center;
  font-weight: 700; font-size: .8rem; background: linear-gradient(135deg, var(--cyan), var(--line));
}
.project:nth-child(2) .project-mark { background: linear-gradient(135deg, var(--violet), #2B1C6B); }
.project:nth-child(4) .project-mark { background: linear-gradient(135deg, #0BB36A, #0B5A3A); }
.project:nth-child(5) .project-mark { background: linear-gradient(135deg, var(--red), #5A0B1E); }
.project:nth-child(6) .project-mark { background: linear-gradient(135deg, #B8862A, #5A3E0B); }
.project-name { flex: 1; min-width: 0; display: grid; }
.project a { font-size: .82rem; justify-self: start; }

.recent-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: baseline; padding: .4rem 0; border-bottom: 1px solid rgba(23, 74, 119, .6); }
.recent-row time { color: var(--muted); font-size: .82rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* На узком экране порядок макета: решения, исполнители, проекты, задачи. */
@media (max-width: 60rem) {
  .console-grid { display: flex; flex-direction: column; }
  .console-col { display: contents; }
  .decisions-panel { order: 1; }
  .agents-panel { order: 2; }
  .projects-panel { order: 3; }
  .recent-panel { order: 4; }
}
@media (max-width: 34rem) {
  .hero { padding: 1rem; gap: 1rem; }
  .orb { width: 4.4rem; height: 4.4rem; font-size: 2.4rem; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .decision { flex-direction: column; align-items: stretch; }
  .decision a { justify-content: center; }
  .recent-row { grid-template-columns: minmax(0, 1fr) auto; }
  .recent-row time { grid-column: 1 / -1; }
}
.count:not([hidden]) + .aside { margin-inline-start: .75rem; }
