.phase2-console {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.phase2-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 12px;
  align-items: start;
}

.phase2-head h3 { font-size: 18px; line-height: 1.25; }
.phase2-head span, .phase2-form-head span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.phase2-screen-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 9px;
}

.phase2-metric {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.phase2-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.phase2-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.15;
  color: var(--ink);
}

.phase2-workflow {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.phase2-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.phase2-toolbar input, .phase2-toolbar select { margin-top: 0; }

.phase2-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
}

.phase2-form-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
}

.phase2-form label {
  min-width: 0;
}

.phase2-form textarea {
  min-height: 76px;
}

.phase2-form label:has(textarea) {
  grid-column: span 2;
}

.phase2-form .form-actions {
  grid-column: 1 / -1;
}

.phase2-check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfcfe;
}

.phase2-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.phase2-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.phase2-table-wrap table { min-width: 920px; }

.phase2-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  color: var(--muted);
  font-weight: 800;
}

.phase2-state.error {
  border-color: #e7b9b2;
  color: #8c251c;
  background: #fff7f6;
}

.phase2-profile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.phase2-profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 12px;
  align-items: start;
}

.phase2-profile-head h3 { font-size: 18px; }
.phase2-profile-head span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.phase2-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.phase2-tabs div {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfe;
}

.phase2-tabs strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.phase2-tabs span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

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

.phase2-capacity div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.phase2-capacity strong, .phase2-capacity span {
  display: block;
  font-size: 12px;
}

.phase2-capacity span { color: var(--muted); margin-top: 4px; }
.phase2-capacity meter { width: 100%; margin-top: 8px; }
.phase2-added { border-color: #b9d3d5; }
.phase2-endpoint { border-left: 4px solid var(--teal); }

.phase2-record-list {
  display: grid;
  gap: 9px;
}

.phase2-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--ink);
}

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

@media (max-width: 1180px) {
  .phase2-screen-strip, .phase2-tabs, .phase2-capacity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase2-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .phase2-head, .phase2-toolbar, .phase2-profile-head, .phase2-screen-strip, .phase2-tabs, .phase2-capacity, .phase2-form { grid-template-columns: 1fr; }
  .phase2-form label:has(textarea) { grid-column: span 1; }
  .phase2-list-head { display: grid; }
}
