:root {
  --admin-bg: #f4f6f9;
  --admin-sidebar: #343a40;
  --admin-sidebar-soft: #3f474e;
  --admin-border: #dee2e6;
  --admin-text: #212529;
  --admin-muted: #6c757d;
  --admin-primary: #007bff;
  --admin-success: #28a745;
  --admin-danger: #dc3545;
  --admin-warning: #ffc107;
  --admin-card-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
  font-family: "Source Sans Pro", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* {
  letter-spacing: 0;
}

body.reqloop-admin {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: "Source Sans Pro", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

body.reqloop-admin aside {
  min-height: 100vh;
  padding: 0;
  gap: 0;
  display: block;
  border-right: 0;
  background: var(--admin-sidebar);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.brand {
  height: 57px;
  margin: 0;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: var(--admin-sidebar);
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #007bff, #00a65a);
  box-shadow: none;
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 600;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: #c2c7d0;
  font-size: 12px;
}

button.nav {
  width: calc(100% - 16px);
  min-height: 39px;
  margin: 4px 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c2c7d0;
  text-align: left;
  font-weight: 500;
  box-shadow: none;
}

button.nav::before {
  width: 18px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  text-align: center;
  opacity: .9;
}

button.nav[data-tab="intake"]::before { content: "\f15c"; }
button.nav[data-tab="flow"]::before { content: "\f0e8"; }
button.nav[data-tab="prototype"]::before { content: "\f108"; }
button.nav[data-tab="review"]::before { content: "\f4ad"; }
button.nav[data-tab="admin"]::before { content: "\f509"; }
button.nav[data-tab="knowledge"]::before { content: "\f02d"; }
button.nav[data-tab="docs"]::before { content: "\f1c1"; }
button.nav[data-tab="ppt"]::before { content: "\f1c4"; }
button.nav[data-tab="architecture"]::before { content: "\f542"; }
button.nav[data-tab="video"]::before { content: "\f03d"; }
button.nav[data-tab="stats"]::before { content: "\f201"; }

button.nav:hover,
button.nav.active {
  background: var(--admin-primary);
  color: #fff;
}

main {
  min-width: 0;
  background: var(--admin-bg);
}

header {
  height: 57px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--admin-border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

#subtitle,
.sub {
  margin: 3px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
}

.top-actions,
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  display: none;
  padding: 16px 18px 24px;
}

.tab.active {
  display: block;
}

.login-panel {
  min-height: calc(100vh - 57px);
  padding: 24px;
  display: none;
  place-items: center;
}

.login-box {
  width: min(420px, 100%);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
}

#flow .flow-layout {
  grid-template-columns: minmax(360px, var(--flow-left, 1fr)) 10px minmax(420px, 1fr);
  gap: 10px;
}

.flow-splitter {
  min-height: 100%;
  border-radius: .25rem;
  background: linear-gradient(90deg, transparent 0, transparent 3px, #d0d7de 3px, #d0d7de 7px, transparent 7px);
  cursor: col-resize;
  touch-action: none;
}

.flow-splitter:hover,
.flow-splitter.dragging {
  background: linear-gradient(90deg, transparent 0, transparent 3px, #007bff 3px, #007bff 7px, transparent 7px);
}

.grid.three {
  grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.2fr) minmax(320px, .85fr);
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: .25rem;
  background: #fff;
  box-shadow: var(--admin-card-shadow);
}

.panel-head {
  min-height: 48px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .125);
  background: #fff;
}

.panel-head h2 {
  margin: 0;
  color: var(--admin-text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

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

.panel-body {
  padding: 1rem;
}

.cards {
  display: grid;
  gap: 10px;
}

.card {
  padding: .75rem;
  display: grid;
  gap: 6px;
  border: 1px solid var(--admin-border);
  border-radius: .25rem;
  background: #fff;
  box-shadow: none;
}

.card p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}

.card small {
  color: var(--admin-muted);
  line-height: 1.45;
}

label {
  display: block;
  margin: 9px 0 5px;
  color: #343a40;
  font-size: 13px;
  font-weight: 600;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  padding: .375rem .75rem;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  background: #fff;
  color: #495057;
  outline: 0;
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}

button {
  min-height: 34px;
  padding: .375rem .75rem;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  background: #fff;
  color: #343a40;
  cursor: pointer;
  font-weight: 500;
  box-shadow: none;
}

button:hover {
  border-color: #adb5bd;
  box-shadow: none;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.primary {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: #fff;
}

.primary:hover {
  border-color: #0069d9;
  background: #0069d9;
  color: #fff;
}

.success {
  border-color: var(--admin-success);
  background: var(--admin-success);
  color: #fff;
}

.danger {
  border-color: #f5c6cb;
  background: #fff5f5;
  color: var(--admin-danger);
}

.pill {
  min-height: 24px;
  padding: .2rem .45rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8daff;
  border-radius: 10rem;
  background: #e7f3ff;
  color: #004085;
  font-size: 12px;
  line-height: 1.2;
}

.pill.green {
  border-color: #c3e6cb;
  background: #d4edda;
  color: #155724;
}

.pill.amber {
  border-color: #ffeeba;
  background: #fff3cd;
  color: #856404;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.list-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.list-tools input {
  width: 240px;
  height: 34px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--admin-border);
  border-radius: .25rem;
  background: #fff;
}

table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 13px;
}

th,
td {
  padding: .65rem .75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--admin-border);
}

th {
  background: #f8f9fa;
  color: #495057;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f8fbff;
}

.prototype-table {
  min-width: 1160px;
  font-size: 13px;
}

.prototype-table select[multiple] {
  min-width: 210px;
  min-height: 72px;
}

.prototype-table input[readonly] {
  display: inline-block;
  width: 280px;
  margin-right: 6px;
}

#requirementRows td {
  vertical-align: top;
}

#requirementRows textarea {
  min-height: 58px;
}

#requirementRows select {
  min-width: 150px;
}

.generate-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
}

.generate-row select {
  max-width: 170px;
}

.inline-label {
  width: auto;
  margin: 0;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--admin-muted);
  font-size: 12px;
}

.selected {
  padding: .65rem .75rem;
  border: 1px dashed #ced4da;
  border-radius: .25rem;
  background: #f8f9fa;
  color: var(--admin-muted);
}

.flow {
  min-height: 430px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--admin-border);
  border-radius: .25rem;
  background: #f8f9fa;
}

.flow-row {
  min-width: max-content;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-node {
  width: 170px;
  min-height: 85px;
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid #ced4da;
  border-left: 4px solid var(--admin-primary);
  border-radius: .25rem;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}

.flow-edit {
  width: 260px;
  align-content: start;
}

.flow-edit label {
  margin: 4px 0 2px;
  font-size: 11px;
}

.flow-edit input {
  padding: 6px 7px;
  font-size: 12px;
}

.flow #saveFlowBtn {
  margin-top: 12px;
}

.arrow {
  color: #6c757d;
  font-size: 20px;
}

.flow-toolbar {
  min-width: 760px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-prototype-actions {
  margin-left: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flow-prototype-actions select {
  width: 130px;
  min-height: 32px;
}

.flow-prototype-actions .prototype-name-input {
  width: 180px;
  min-height: 32px;
}

.demand-bulk-bar {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--admin-muted);
  font-size: 13px;
}

.demand-bulk-bar label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 86px;
  white-space: nowrap;
  color: #1f2937;
  font-weight: 500;
}

.demand-bulk-bar .select-all-label span {
  display: inline-block;
  min-width: 34px;
  white-space: nowrap;
}

.demand-bulk-bar input[type="checkbox"],
.demand-table input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.demand-table {
  min-width: 1120px;
  table-layout: fixed;
}

.demand-table th:nth-child(1),
.demand-table td:nth-child(1) {
  width: 74px;
}

.demand-table th:nth-child(2),
.demand-table td:nth-child(2) {
  width: 100px;
}

.demand-table th:nth-child(3),
.demand-table td:nth-child(3) {
  width: 190px;
}

.demand-table th:nth-child(4),
.demand-table td:nth-child(4) {
  width: 260px;
}

.demand-table th:nth-child(6),
.demand-table td:nth-child(6) {
  width: 120px;
}

.demand-table th:nth-child(7),
.demand-table td:nth-child(7) {
  width: 170px;
}

.demand-table th:nth-child(8),
.demand-table td:nth-child(8) {
  width: 210px;
}

.doc-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-style-cell {
  max-width: 420px;
  color: #4b5563;
  line-height: 1.5;
}

.guide-preview-body {
  display: grid;
  gap: 12px;
}

.guide-preview-panel {
  grid-column: 1 / -1;
}

.guide-stage {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}

.guide-stage iframe {
  width: 100%;
  height: 620px;
  border: 1px solid var(--admin-border);
  border-radius: .35rem;
  background: #fff;
}

.guide-step-panel {
  min-width: 0;
}

.guide-step-card {
  height: 100%;
  padding: 16px;
  border: 1px solid var(--admin-border);
  border-radius: .35rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-step-card h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.guide-step-card p {
  margin: 0;
  color: #475467;
  line-height: 1.7;
}

.guide-step-card dl {
  margin: auto 0 0;
  display: grid;
  gap: 8px;
}

.guide-step-card dt {
  color: #6b7280;
  font-size: 12px;
}

.guide-step-card dd {
  margin: -4px 0 0;
  color: #1f2937;
  line-height: 1.5;
}

.guide-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.guide-progress button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.guide-progress button.active {
  width: 28px;
  background: var(--admin-primary);
}

@media (max-width: 1180px) {
  .guide-stage {
    grid-template-columns: 1fr;
  }

  .guide-stage iframe {
    height: 520px;
  }
}

.demand-desc-cell {
  max-width: 460px;
  color: #4b5563;
  line-height: 1.5;
}

.video-preview-body {
  display: grid;
  gap: 12px;
}

#videoCanvas,
#videoPlayer {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--admin-border);
  border-radius: .35rem;
  background: #f5f7fb;
}

.prototype-css-option {
  position: relative;
}

.prototype-css-option summary {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--admin-border);
  border-radius: .25rem;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.prototype-css-option textarea {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 5;
  width: 360px;
  min-height: 150px;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: .25rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.flow-toolbar .file-button {
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--admin-border);
  border-radius: .25rem;
  background: #fff;
  color: #212529;
  cursor: pointer;
}

.flow-tip {
  color: var(--admin-muted);
  font-size: 12px;
}

.diagram-wrap {
  min-width: 760px;
  margin-bottom: 14px;
  border: 1px solid #dbe4f1;
  border-radius: .25rem;
  background: #fff;
  overflow: auto;
}

.flow-diagram {
  width: 100%;
  min-width: 760px;
  max-height: 1220px;
  display: block;
}

.diagram-arrows path {
  fill: none;
  stroke: #6c757d;
  stroke-width: 1.7;
}

.diagram-edge text {
  fill: #1f2d3d;
  font-size: 18px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
}

.flow-diagram marker path {
  fill: #6c757d;
}

.diagram-node rect,
.diagram-node polygon {
  fill: #eef5ff;
  stroke: #3c8dbc;
  stroke-width: 1.4;
  cursor: pointer;
}

.diagram-node.decision polygon {
  fill: #fff8df;
  stroke: #c59a28;
}

.diagram-node text {
  fill: #1f2d3d;
  font-size: 20px;
  font-weight: 700;
  pointer-events: none;
}

.diagram-node .node-owner {
  fill: #6c757d;
  font-size: 15px;
  font-weight: 500;
}

.diagram-node.selected rect,
.diagram-node.selected polygon {
  stroke: #007bff;
  stroke-width: 3;
  filter: drop-shadow(0 8px 18px rgba(0, 123, 255, .22));
}

.flow-editor {
  min-width: 760px;
}

.flow-editor summary {
  margin-bottom: 12px;
  color: #495057;
  cursor: pointer;
  font-weight: 700;
}

.flow-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.control-add {
  margin: 6px 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.control-add input,
.control-add select {
  min-width: 0;
}

.control-add button {
  width: fit-content;
  min-width: 108px;
  grid-column: 1 / 2;
}

.control-add label {
  margin-top: 0;
}

.control-add-title {
  margin-top: 6px;
  color: #1f2d3d;
  font-weight: 750;
}

.node-config {
  display: grid;
  gap: 10px;
}

.selected-node-head {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe4f1;
  border-radius: .25rem;
  background: #f8fbff;
}

.selected-node-head strong {
  color: #1f2d3d;
  font-size: 15px;
}

.node-control-rows {
  display: grid;
  gap: 8px;
}

.node-control-header,
.node-control-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 1fr) 74px minmax(130px, 1fr) minmax(130px, 1fr) 64px;
  gap: 6px;
  align-items: center;
}

.node-control-header,
.branch-header {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.node-config textarea {
  min-height: 72px;
}

.node-config-actions {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: 0;
  padding-top: 4px;
}

.mini-check {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #334155;
  white-space: nowrap;
}

.mini-check input {
  width: auto;
}

.node-output-rows,
.branch-rows {
  display: grid;
  gap: 8px;
}

.node-output-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.output-add {
  margin: 8px 0 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.branch-header,
.branch-row,
.branch-add {
  display: grid;
  grid-template-columns: minmax(90px, .7fr) minmax(160px, 1.2fr) minmax(160px, 1fr) minmax(120px, .9fr) 64px;
  gap: 6px;
  align-items: center;
}

.decision-branch-header,
.decision-branch-row {
  grid-template-columns: 70px minmax(160px, 1.2fr) minmax(160px, 1fr) minmax(120px, .9fr);
}

.decision-input-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decision-input-options label {
  margin: 0;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe4f1;
  border-radius: .25rem;
  background: #f8fbff;
}

.branch-add {
  margin-top: 8px;
}

.choice-list {
  display: grid;
  gap: 6px;
}

.choice-list label {
  margin: 0;
  font-weight: 500;
}

.choice-list input {
  width: auto;
}

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

.stat {
  padding: .9rem;
  border: 1px solid var(--admin-border);
  border-radius: .25rem;
  background: #fff;
}

.stat span {
  color: var(--admin-muted);
  font-size: 12px;
}

.stat b {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 10rem;
  background: #e9ecef;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--admin-primary);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .42);
}

.modal-mask[hidden] {
  display: none;
}

.modal {
  width: min(620px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: .25rem;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
}

.wide-modal {
  width: min(920px, calc(100vw - 48px));
}

.modal-head,
.modal-actions {
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--admin-border);
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--admin-border);
  border-bottom: 0;
}

.modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

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

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}

.compact-name-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: none;
  grid-template-rows: auto auto auto;
  border-radius: .45rem;
}

.compact-name-modal .modal-head {
  align-items: flex-start;
  padding: 18px 20px 14px;
}

.compact-name-modal .modal-head h2 {
  font-size: 18px;
}

.compact-name-modal .modal-head span {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}

.compact-name-modal .name-modal-body {
  overflow: visible;
  padding: 18px 20px 20px;
  display: grid;
  gap: 8px;
}

.compact-name-modal .name-modal-body label {
  margin: 0;
  color: #374151;
  font-weight: 600;
}

.compact-name-modal .name-modal-body input {
  height: 42px;
  width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: .3rem;
  padding: 0 12px;
  font-size: 14px;
}

.compact-name-modal .modal-actions {
  padding: 14px 20px 18px;
}

#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  padding: 10px 12px;
  border-radius: .25rem;
  background: #343a40;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .18s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#docPreview,
#changeText {
  min-height: 420px;
}

@media (max-width: 1180px) {
  body.reqloop-admin {
    grid-template-columns: 1fr;
  }

  body.reqloop-admin aside {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding-bottom: 8px;
  }

  .brand {
    grid-column: 1 / -1;
  }

  button.nav {
    width: auto;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.reqloop-admin {
    font-size: 13px;
  }

  body.reqloop-admin aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .list-tools {
    width: 100%;
    margin-left: 0;
  }

  .list-tools input {
    width: 100%;
  }

  .stats,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
