:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --border: #d0d5dd;
  --text: #101828;
  --muted: #667085;
  --primary: #1f3a5f;
  --primary-soft: #eef4ff;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-shell {
  --page-scale: 0.7;
  width: calc(100vw / var(--page-scale));
  height: calc(100vh / var(--page-scale));
  display: flex;
  transform: scale(var(--page-scale));
  transform-origin: left top;
  overflow: hidden;
  background: var(--bg);
}

.login-view {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 24px;
}

.login-panel h1,
.login-panel p {
  margin: 0;
}

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
}

.sidebar {
  width: 196px;
  flex: 0 0 196px;
  position: sticky;
  top: 0;
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
  background: #14233b;
  color: #fff;
  padding: 14px;
}

.brand {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.nav {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #d0d5dd;
  text-align: left;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.nav-link {
  text-decoration: none;
}

.nav.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.main {
  flex: 1;
  height: 100%;
  padding: 16px;
  min-width: 0;
  overflow: auto;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

h1 {
  margin: 0;
  font-size: 20px;
}

p {
  color: var(--muted);
}

button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 6px;
  padding: 7px 11px;
  cursor: pointer;
}

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

button.danger {
  border-color: #f0b4b4;
  color: #9b1c1c;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-toast {
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 20;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #14532d;
  color: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.18);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-toast.error {
  background: var(--danger);
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.layout {
  display: grid;
  grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#issues-view > .panel {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#issues-view > .detail-panel {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.panel {
  background: var(--panel);
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 12px;
}

.product-graph-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.product-domain-list {
  display: grid;
  gap: 8px;
}

.product-domain-card {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  background: #fff;
}

.product-domain-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.product-domain-card strong {
  font-size: 14px;
}

.product-domain-card span {
  color: var(--muted);
  font-size: 12px;
}

.product-graph-editor {
  display: grid;
  gap: 12px;
}

.field-template-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.field-template-table th,
.field-template-table td {
  border-bottom: 1px solid #e4e7ec;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.field-template-table th {
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}

.facility-view {
  min-height: calc(100vh - 128px);
}

.facility-stage {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 360px;
  gap: 16px;
  min-height: calc(100vh - 150px);
  padding: 14px;
  border: 1px solid rgba(83, 137, 205, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(70, 139, 210, 0.18), transparent 46%),
    linear-gradient(135deg, #08111f 0%, #101827 48%, #07101e 100%);
  color: #dce9ff;
}

.facility-map {
  position: relative;
  min-height: 640px;
  border: 1px solid rgba(118, 177, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background: #050a12;
  box-shadow: inset 0 0 36px rgba(49, 109, 175, 0.24);
}

.facility-slots {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 18px;
}

.factory-layout-canvas {
  position: relative;
  min-width: 1120px;
  width: 100%;
  border: 1px solid rgba(118, 177, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(96, 165, 250, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(56, 189, 248, 0.16), transparent 48%),
    #07111f;
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: inset 0 0 40px rgba(59, 130, 246, 0.16);
}

.factory-object {
  position: absolute;
  min-width: 18px;
  min-height: 14px;
  display: grid;
  place-items: center;
  padding: 2px;
  border: 1px solid rgba(147, 197, 253, 0.76);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.74);
  color: #dbeafe;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.18);
}

.factory-object span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-object strong {
  position: absolute;
  top: -9px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f97316;
  color: white;
  font-size: 11px;
  line-height: 18px;
}

.factory-object.deviceGroup {
  border-color: rgba(147, 197, 253, 0.9);
  background: rgba(30, 64, 111, 0.68);
}

.factory-object.powderRoom {
  border-color: rgba(216, 180, 254, 0.92);
  background: rgba(88, 28, 135, 0.36);
}

.factory-object.agvPath,
.factory-object.agvPathVertical {
  border-color: rgba(103, 232, 249, 0.82);
  background: rgba(8, 145, 178, 0.28);
  color: #cffafe;
  border-radius: 999px;
}

.factory-object.coolingTower,
.factory-object.nitrogenGenerator,
.factory-object.gasSource,
.factory-object.powerRoom {
  border-color: rgba(125, 211, 252, 0.86);
  background: rgba(12, 74, 110, 0.52);
}

.factory-object.autoPowderFeeder,
.factory-object.powderPipeline,
.factory-object.powderPipelineVertical {
  border-color: rgba(244, 114, 182, 0.9);
  background: rgba(131, 24, 67, 0.36);
  color: #fce7f3;
}

.factory-object.closed {
  border-color: rgba(45, 212, 191, 0.8);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.2);
}

.factory-object.open {
  border-color: rgba(250, 204, 21, 0.95);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.32);
}

.factory-object.critical {
  border-color: rgba(248, 113, 113, 0.98);
  box-shadow: 0 0 22px rgba(248, 113, 113, 0.44);
}

.factory-object.active {
  outline: 2px solid #bfdbfe;
  outline-offset: 3px;
  z-index: 3;
}

.facility-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 54px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid rgba(147, 197, 253, 0.8);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  color: #dbeafe;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.24);
}

.facility-slot span,
.facility-slot strong {
  display: block;
}

.facility-slot strong {
  position: absolute;
  top: -9px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f97316;
  color: white;
  font-size: 11px;
  line-height: 18px;
}

.facility-slot.idle {
  border-color: rgba(148, 163, 184, 0.52);
  color: #94a3b8;
  box-shadow: none;
}

.facility-slot.closed {
  border-color: rgba(45, 212, 191, 0.8);
  color: #99f6e4;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.22);
}

.facility-slot.open {
  border-color: rgba(250, 204, 21, 0.9);
  color: #fef3c7;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.3);
}

.facility-slot.critical {
  border-color: rgba(248, 113, 113, 0.95);
  color: #fecaca;
  box-shadow: 0 0 22px rgba(248, 113, 113, 0.42);
}

.facility-slot.active {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.facility-detail {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(118, 177, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 15, 28, 0.82);
}

.facility-detail-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.facility-detail-head span {
  color: #7dd3fc;
  font-size: 12px;
}

.facility-detail-head h2 {
  margin: 6px 0;
  font-size: 22px;
}

.facility-detail-head p,
.facility-section p,
.facility-issue-link span {
  color: #9fb0c9;
}

.facility-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.facility-kpis div {
  padding: 10px;
  border: 1px solid rgba(118, 177, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.facility-kpis strong {
  display: block;
  font-size: 22px;
  color: #bfdbfe;
}

.facility-kpis span {
  color: #94a3b8;
  font-size: 12px;
}

.facility-section {
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.facility-section h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.facility-system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.facility-system-card {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(118, 177, 255, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  text-align: left;
}

.facility-system-card strong,
.facility-system-card span {
  display: block;
}

.facility-system-card span {
  margin-top: 4px;
  color: #9fb0c9;
  font-size: 12px;
}

.facility-system-card.idle {
  border-color: rgba(148, 163, 184, 0.18);
}

.facility-system-card.closed {
  border-color: rgba(45, 212, 191, 0.42);
}

.facility-system-card.open {
  border-color: rgba(250, 204, 21, 0.62);
}

.facility-system-card.critical {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.16);
}

.facility-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.facility-section p span {
  color: #7f91ad;
}

.facility-mini-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  margin-bottom: 6px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

.facility-mini-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(96, 165, 250, 0.26);
}

.facility-mini-bar span,
.facility-mini-bar strong {
  position: relative;
  z-index: 1;
}

.facility-issue-link {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(118, 177, 255, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  text-align: left;
}

.facility-issue-link strong,
.facility-issue-link span {
  display: block;
}

.overview {
  margin-bottom: 12px;
}

.overview-controls {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px);
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.range-tab {
  padding: 7px 12px;
}

.range-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.date-range input {
  padding: 8px 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.kpi-card {
  display: block;
  min-height: 58px;
  padding: 8px 10px;
  text-align: left;
  background: var(--panel);
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.kpi-card.danger .kpi-value {
  color: var(--danger);
}

.kpi-value {
  display: block;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
}

.kpi-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.metric-block {
  background: var(--panel);
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 9px;
}

.metric-block h2 {
  margin: 0 0 7px;
  font-size: 13px;
}

.metric-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  margin-bottom: 5px;
  padding: 7px 8px;
  overflow: hidden;
  background: #f8fafc;
  text-align: left;
  font-size: 12px;
}

.metric-row span,
.metric-row strong {
  position: relative;
  z-index: 1;
}

.metric-row i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: block;
  background: #dbeafe;
}

.flow-strip {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.flow-strip span {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.report-toolbar {
  border-bottom: 1px solid #e4e7ec;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.auto-report-panel {
  border-bottom: 1px solid #e4e7ec;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.auto-report-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.check-row input {
  width: auto;
}

.setting-number-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.setting-number-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.setting-number-row input {
  width: 96px;
  text-align: center;
}

.setting-number-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.setting-number-row strong {
  display: inline-block;
  min-width: 96px;
  color: var(--text);
}

#save-auto-report-btn {
  margin-top: 12px;
}

.legend {
  border: 1px solid #e4e7ec;
  background: #f8fafc;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  padding: 10px 12px;
  margin-bottom: 14px;
}

#export-issues-btn {
  width: 100%;
  margin-bottom: 14px;
}

#issue-list {
  max-height: min(1380px, calc(100vh - 440px));
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

#issue-list .issue-card:last-child {
  margin-bottom: 0;
}

.issue-card,
.report-card {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.cluster-card {
  cursor: default;
  padding: 0;
  overflow: hidden;
}

.cluster-header {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 14px;
  background: #fff;
  text-align: left;
}

.cluster-header strong,
.cluster-header em {
  display: block;
  min-width: 0;
}

.cluster-header strong {
  margin-bottom: 6px;
  font-style: normal;
}

.cluster-header em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.cluster-header b {
  color: var(--primary);
  font-size: 13px;
}

.cluster-body {
  border-top: 1px solid #e4e7ec;
  padding: 14px;
}

.model-group {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.model-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  font-weight: 700;
}

.model-body {
  padding: 12px;
}

.issue-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.issue-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.send-report-btn {
  margin-top: 10px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.report-actions .send-report-btn {
  margin-top: 0;
}

.summary-list {
  margin: 14px 0;
  display: grid;
  gap: 10px;
}

.summary-list h3 {
  margin: 0;
  font-size: 15px;
}

.summary-item {
  border: 1px solid #dce3ee;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.knowledge-structure {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.knowledge-structure > div {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.knowledge-structure pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font: inherit;
  line-height: 1.6;
}

.empty-summary {
  color: var(--muted);
  text-align: left;
  padding: 10px 0;
}

.archive-grid {
  align-items: flex-start;
  grid-template-columns: 1fr 1fr;
}

.archive-grid > div {
  min-width: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 14px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  font-size: 14px;
}

.report-content {
  border-top: 1px solid #e4e7ec;
  margin-top: 10px;
  padding-top: 10px;
}

.recipient-box {
  border-top: 1px solid #e4e7ec;
  margin-top: 10px;
  padding-top: 10px;
}

.recipient-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.recipient-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.recipient-item input {
  width: auto;
}

.responsibility-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.responsibility-column {
  min-width: 220px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.responsibility-column-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #eef4ff;
  color: var(--primary);
}

.responsibility-column-head span {
  min-width: 24px;
  text-align: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbeafe;
  font-size: 12px;
}

.responsibility-column-body {
  padding: 10px;
}

.compact-card {
  cursor: default;
  padding: 10px;
}

.compact-card .report-actions {
  gap: 6px;
}

.compact-card .report-actions button {
  padding: 7px 10px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
}

.similar-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.similar-item input {
  width: auto;
  margin-top: 4px;
}

.similar-item strong,
.similar-item em {
  display: block;
}

.similar-item em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.report-content h3 {
  margin: 10px 0 6px;
  font-size: 14px;
}

.report-content p {
  margin: 4px 0;
  font-size: 13px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tags {
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
}

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

.block {
  border-top: 1px solid #e4e7ec;
  padding-top: 14px;
  margin-top: 14px;
}

.block h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 80px 12px;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  html,
  body {
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}
