#cs {
  --cs-ink: var(--glass-text-main, #242039);
  --cs-muted: var(--glass-text-muted, #69627c);
  --cs-line: rgba(128, 113, 155, 0.2);
  --cs-paper: var(--glass-bg, rgba(255, 255, 255, 0.85));
  --cs-accent: #e88049;
  color: var(--cs-ink);
  font-size: 14px;
}
#cs * {
  box-sizing: border-box;
}
#cs button,
#cs input,
#cs select {
  font: inherit;
}
#cs button,
#cs .cs-file {
  cursor: pointer;
}
#cs button:focus-visible,
#cs input:focus-visible,
#cs select:focus-visible {
  outline: 3px solid #ffb08a;
  outline-offset: 2px;
}
#cs .cs-toolbar,
#cs .cs-section-head,
#cs .cs-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
#cs h2,
#cs h3,
#cs p {
  margin: 0 0 12px;
}
#cs h2 {
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.04em;
}
#cs h3 {
  font-size: 16px;
}
#cs .cs-toolbar {
  border-bottom: 1px solid var(--cs-line);
  padding-bottom: 22px;
}
#cs .cs-eyebrow {
  display: block;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 800;
  color: var(--cs-muted);
  margin-bottom: 10px;
}
#cs .cs-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
#cs .btn {
  font-size: 12px;
  min-height: 38px;
  padding: 9px 14px;
  text-decoration: none;
}
#cs .cs-file {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
#cs .cs-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
#cs .cs-private {
  font-size: 12px;
  color: var(--cs-muted);
  padding: 16px 0;
  line-height: 1.7;
}
#csNotice {
  padding: 12px 16px;
  border: 1px solid #8dcbb7;
  background: #e7f5ee;
  color: #185c48;
  border-radius: 12px;
  margin-bottom: 14px;
  white-space: pre-wrap;
}
#csNotice:empty {
  display: none;
}
#csNotice.cs-error {
  background: #fff0e8;
  color: #943419;
  border-color: #edb494;
}
#cs .cs-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
#cs .cs-sidebar {
  background: var(--cs-paper);
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  overflow: hidden;
}
#cs .cs-sidebar section {
  padding: 18px;
  border-bottom: 1px solid var(--cs-line);
}
#cs label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 12px 0 6px;
}
#cs input:not([type="file"]):not([type="checkbox"]),
#cs select {
  display: block;
  width: 100%;
  border: 1px solid var(--cs-line);
  border-radius: 9px;
  padding: 10px;
  background: var(--cs-paper);
  color: inherit;
  min-width: 0;
}
#cs select {
  max-width: 100%;
}
#cs .cs-muted {
  font-size: 12px;
  line-height: 1.6;
  color: var(--cs-muted);
  margin: 8px 0;
}
#cs .cs-badge {
  background: #ebe6fa;
  color: #55447d;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 11px;
}
#cs .cs-small {
  margin-top: 10px;
}
#cs .cs-link {
  border: 0;
  background: none;
  color: var(--cs-accent);
  font-size: 12px;
}
#cs .cs-sidebar section > .btn {
  margin-top: 8px;
  width: 100%;
}
#cs .cs-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: #eee9f6;
  margin-top: 8px;
  color: #3d315a;
  overflow-wrap: anywhere;
  font-size: 11px;
}
#cs .cs-filter button {
  margin-inline-start: auto;
  border: 0;
  background: none;
  color: inherit;
  font-size: 17px;
}
#cs .cs-main {
  min-width: 0;
}
#cs .cs-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--cs-line);
  margin-bottom: 24px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
#cs .cs-tabs button {
  background: none;
  border: 0;
  padding: 10px 13px;
  border-radius: 9px;
  color: var(--cs-muted);
  font-weight: 700;
  font-size: 12px;
}
#cs .cs-tabs [aria-pressed="true"] {
  background: #e9e3f5;
  color: #483668;
}
#cs .cs-board-head {
  margin: 0 0 20px;
}
#cs .cs-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
#cs .cs-visual {
  min-width: 0;
  border: 1px solid var(--cs-line);
  background: var(--cs-paper);
  border-radius: 18px;
  box-shadow: 0 6px 24px #46336907;
  overflow: hidden;
}
#cs .cs-visual.cs-wide {
  grid-column: 1/-1;
}
#cs .cs-visual.cs-dragover {
  outline: 3px solid var(--cs-accent);
}
#cs .cs-visual-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cs-line);
}
#cs .cs-visual-head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
#cs .cs-icon-btn {
  background: none;
  border: 1px solid var(--cs-line);
  border-radius: 7px;
  color: inherit;
  padding: 4px 7px;
  font-size: 12px;
}
#cs .cs-drag {
  cursor: grab;
}
#cs .cs-chart {
  height: 300px;
  width: 100%;
}
#cs .cs-visual-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  flex-wrap: wrap;
}
#cs .cs-visual-footer span {
  flex: 1;
  font-size: 10px;
  color: var(--cs-muted);
}
#cs .cs-kpi {
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}
#cs .cs-kpi strong {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.1;
  color: #1c7760;
  overflow-wrap: anywhere;
}
#cs .cs-kpi small {
  color: var(--cs-muted);
  margin-top: 15px;
}
#cs .cs-empty {
  padding: 65px 20px;
  border: 1px dashed var(--cs-line);
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffe7d740, #d8efe740);
}
#cs .cs-empty p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--cs-muted);
  line-height: 1.8;
}
#cs .cs-empty-art {
  height: 110px;
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: center;
  margin-bottom: 24px;
}
#cs .cs-empty-art i {
  width: 25px;
  height: 40%;
  background: #f3c9ac;
  border-radius: 6px 6px 0 0;
}
#cs .cs-empty-art i:nth-child(2) {
  height: 70%;
  background: #f5a775;
}
#cs .cs-empty-art i:nth-child(3) {
  height: 55%;
  background: #9ac5b2;
}
#cs .cs-empty-art i:nth-child(4) {
  height: 100%;
  background: #438a73;
}
#cs .cs-empty-art i:nth-child(5) {
  height: 80%;
  background: #b5a5cd;
}
#cs .cs-prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
#cs .cs-panel {
  border: 1px solid var(--cs-line);
  background: var(--cs-paper);
  padding: 18px;
  border-radius: 16px;
  min-width: 0;
}
#cs .cs-panel > .btn {
  margin-top: 12px;
}
#cs .cs-table-wrap {
  overflow: auto;
  border: 1px solid var(--cs-line);
  border-radius: 10px;
  max-height: 520px;
}
#cs table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: start;
}
#cs th,
#cs td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--cs-line);
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}
#cs th {
  background: var(--cs-paper);
  position: sticky;
  top: 0;
  z-index: 1;
}
#cs td button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  text-align: start;
  width: 100%;
  font-size: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  white-space: nowrap;
}
#cs td button:hover {
  color: #ba5b26;
  text-decoration: underline;
}
#cs .cs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px;
}
#cs dialog {
  width: min(780px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--cs-line);
  background: var(--cs-paper);
  color: inherit;
  border-radius: 22px;
  padding: 25px;
  box-shadow: 0 30px 100px #17102b50;
}
#cs dialog::backdrop {
  background: #18122b80;
  backdrop-filter: blur(5px);
}
#cs .cs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
#cs .cs-check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 20px 0;
}
#cs #csGuide li {
  line-height: 1.8;
  margin: 12px 0;
}
#cs [hidden] {
  display: none !important;
}
.lab:has(#cs) {
  max-width: 1580px;
}
.lab:has(#cs) > .lab-hero {
  margin-bottom: 30px;
}
.lab:has(#cs) > .lab-hero h1 {
  font-size: clamp(32px, 4vw, 50px);
}
@media (max-width: 1100px) {
  #cs .cs-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  #cs .cs-prep-grid {
    grid-template-columns: 1fr;
  }
  #cs .cs-board {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  #cs .cs-shell {
    grid-template-columns: 1fr;
  }
  #cs .cs-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #cs .cs-sidebar section {
    min-width: 0;
  }
  #cs .cs-form-grid {
    grid-template-columns: 1fr;
  }
  #cs .cs-tabs {
    position: sticky;
    top: 70px;
    background: var(--cs-paper);
    z-index: 3;
  }
  #cs .cs-visual-head {
    flex-wrap: wrap;
  }
  #cs .cs-visual-head h3 {
    flex-basis: 60%;
  }
  #cs .cs-chart {
    height: 280px;
  }
}
@media (max-width: 440px) {
  #cs .cs-sidebar {
    grid-template-columns: 1fr;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  #cs,
  #cs .cs-main,
  #csDashboardView,
  #csDashboardView * {
    visibility: visible;
  }
  #cs .cs-sidebar,
  #cs .cs-toolbar,
  #cs .cs-tabs,
  #cs .cs-private,
  #csNotice,
  #cs .cs-visual-head button,
  #cs .cs-visual-footer button,
  #csAddChart {
    display: none !important;
  }
  #cs {
    position: absolute;
    inset: 0;
    padding: 15px;
    color: #222;
  }
  #cs .cs-shell {
    display: block;
  }
  #cs .cs-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #cs .cs-visual {
    break-inside: avoid;
    background: white;
    box-shadow: none;
  }
  #cs .cs-chart {
    height: 270px;
  }
  #cs .cs-board-head {
    display: block;
  }
  #cs dialog {
    display: none;
  }
}
#cs .cs-dialog-notice {
  padding: 10px 14px;
  border: 1px solid #e7ac91;
  background: #fff0e8;
  color: #943419;
  border-radius: 9px;
}

#cs .cs-visual-guide {
  padding: 14px 16px;
  border-inline-start: 3px solid #398b76;
  border-radius: 8px;
  background: #398b7612;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#cs #csChartDialog {
  width: min(900px, 95vw);
}
#cs #csVisualSearch {
  margin-bottom: 6px;
}
#cs [hidden] {
  display: none !important;
}
