:root {
  --pg-bg: #f9fafd;
  --pg-surface: #ffffff;
  --pg-surface-soft: #f5f6fb;
  --pg-line: #e6e8ee;
  --pg-muted: rgba(38, 36, 76, 0.65);
  --pg-text: #26244c;
  --pg-accent: #615ced;
  --pg-accent-2: #9189fa;
  --pg-ok: #1f8f4f;
  --pg-warn: #b06a02;
  --pg-error: #cc2f2f;
  --pg-shadow:
    0 12px 24px -16px rgba(0, 0, 0, 0.06),
    0 8px 40px 0 rgba(0, 0, 0, 0.12),
    0 0 1px 0 rgba(0, 0, 0, 0.04);
  --pg-fonts: "Lato", "PingFang SC", "Noto Sans SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--pg-fonts);
  background: var(--pg-bg);
  color: var(--pg-text);
  line-height: 1.45;
}

a {
  color: var(--pg-accent);
}

a:hover,
a:focus-visible {
  color: var(--pg-accent-2);
}

.hidden {
  display: none !important;
}

.wrap {
  margin: 0;
  max-width: none;
  padding: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 12px;
  min-height: 100vh;
  padding: 12px;
}

.app-sidebar {
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  width: 248px;
  min-width: 248px;
  padding: 12px;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  background: var(--pg-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  overflow: auto;
}

.app-sidebar-brand {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pg-line);
  color: var(--pg-text);
  font-size: 16px;
  font-weight: 600;
}

.app-sidebar-desc {
  color: var(--pg-muted);
  font-size: 12px;
  margin: 0 0 12px;
  line-height: 1.45;
}

.app-sidebar-section {
  margin-top: 10px;
}

.app-sidebar-group {
  margin-bottom: 8px;
  border: 1px solid #f0f1f6;
  border-radius: 8px;
  padding: 8px 6px;
  background: #fff;
}

.app-sidebar-title {
  font-size: 13px;
  color: #57527a;
  margin: 0 0 6px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0 4px;
}

.app-sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  cursor: pointer;
  gap: 8px;
  padding: 0 4px 0 8px;
  border-radius: 6px;
}

.app-sidebar-section-title .app-sidebar-caret {
  font-size: 11px;
  line-height: 1;
  color: #938fb1;
}

.app-sidebar-title::before {
  content: none;
}

.app-sidebar-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 8px;
  margin-bottom: 3px;
  color: var(--pg-text);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-sidebar-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-sidebar-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(38, 36, 76, 0.65);
}

.app-sidebar-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-sidebar-label {
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-link small {
  color: rgba(38, 36, 76, 0.5);
  font-size: 12px;
  font-weight: 400;
  margin-left: 24px;
}

.app-sidebar-link:hover,
.app-sidebar-link:focus-visible {
  border-color: #e2deff;
  background: rgba(97, 92, 237, 0.06);
  color: #4a46b4;
}

.app-sidebar-link:hover .app-sidebar-icon,
.app-sidebar-link:focus-visible .app-sidebar-icon {
  color: #615ced;
}

.app-sidebar-link.active {
  border-color: #d9d4ff;
  background: rgba(97, 92, 237, 0.1);
  color: #4b45cf;
}

.app-sidebar-link.active small {
  color: rgba(75, 69, 207, 0.8);
}

.app-sidebar-link.active .app-sidebar-icon {
  color: #4b45cf;
}

.app-sidebar-sub {
  margin-left: 0;
  margin-top: 4px;
}

.app-sidebar-sub.collapsed {
  display: none;
}

.app-sidebar-sub .app-sidebar-link {
  padding-top: 6px;
  padding-bottom: 6px;
  color: rgba(38, 36, 76, 0.85);
}

.app-sidebar-sub .app-sidebar-link small {
  color: rgba(38, 36, 76, 0.45);
}

.app-sidebar-sub .app-sidebar-link.active {
  border-color: #d9d4ff;
  background: rgba(97, 92, 237, 0.1);
  color: #4b45cf;
}

.app-sidebar-sub .app-sidebar-link.active small {
  color: rgba(75, 69, 207, 0.8);
}

.app-main {
  min-width: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 44px;
}

.app-topbar-spacer {
  flex: 1 1 auto;
}

.app-account {
  position: relative;
  flex: 0 0 auto;
}

.app-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  color: var(--pg-text);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 40, 68, 0.06);
}

.app-account-trigger:hover,
.app-account-trigger:focus-visible {
  border-color: #9ab8e6;
  background: #f8fbff;
}

.app-account-name {
  font-size: 13px;
  font-weight: 700;
}

.app-account-caret {
  color: var(--pg-muted);
  font-size: 12px;
}

.app-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--pg-shadow);
  z-index: 30;
}

.app-account.open .app-account-menu {
  display: grid;
  gap: 4px;
}

.app-account-link {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  background: transparent;
  color: var(--pg-text);
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.app-account-link:hover,
.app-account-link:focus-visible {
  background: #f3f7fd;
}

.app-account-link-button {
  font: inherit;
}

.app-main-inner {
  max-width: min(1840px, 100vw - 304px);
}

.panel,
.card,
.toolbar,
.status,
.table-wrap,
.modal-card,
.topbar,
.module-view,
.module-page {
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  color: var(--pg-text);
  border-radius: 12px;
}

.panel,
.card,
.module-view,
.topbar {
  box-shadow: var(--pg-shadow);
}

.panel,
.card {
  padding: 14px;
  margin-bottom: 12px;
}

.panel {
  background: var(--pg-surface);
}

.console-ref-page {
  --page-hero-shell-gap: 12px;
  --page-hero-card-min-height: 78px;
  --page-hero-card-pad-y: 18px;
  --page-hero-card-pad-x: 24px;
}

.console-ref-page .page-hero h1,
.console-ref-page .page-hero .page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2f3352;
}

.console-ref-page .page-hero > .muted,
.console-ref-page .page-hero > .status {
  display: none !important;
}

.status {
  border-radius: 10px;
  padding: 9px 10px;
  white-space: pre-wrap;
}

.status.ok {
  border-color: #8dd1a8;
  background: #eefaf1;
  color: #0e6d44;
}

.status.warn,
.status.warning {
  border-color: #e9cb87;
  background: #fff8ea;
  color: #8c5c00;
}

.status.error,
.status.bad {
  border-color: #f0b6af;
  background: #fff2f2;
  color: #c53030;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #26244c;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: #26244c;
}

p,
.small,
.meta,
.muted {
  color: var(--pg-muted);
}

.summary .stat,
.kv,
.workspaceSummary .stat,
.module-card-title,
.detail-title {
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--pg-text);
}

input,
select,
textarea,
button,
.link-btn {
  font: inherit;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--pg-text);
  background: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(38, 36, 76, 0.4);
}

button,
.link-btn {
  cursor: pointer;
  border: 1px solid #7b74f5;
  background: linear-gradient(180deg, #6d67f4 0%, #5a55dd 100%);
  color: #ffffff;
  font-weight: 600;
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
}

button:hover,
.link-btn:hover,
button:focus-visible,
.link-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(97, 92, 237, 0.2);
}

button.secondary {
  background: #f3f4f8;
  border-color: #d7dae6;
  color: rgba(38, 36, 76, 0.88);
}

button.warn,
button.warning {
  background: linear-gradient(180deg, #f5a623 0%, #de8a07 100%);
  border-color: #e2aa4f;
}

button.danger {
  background: linear-gradient(180deg, #ef4444 0%, #cd2f2f 100%);
  border-color: #df5b5b;
}

button:active,
.link-btn:active {
  transform: translateY(1px);
}

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

.date-range-field {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.date-range-field.range-span-2 {
  grid-column: span 2;
}

.date-range-field-label {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 0;
  color: var(--pg-muted, var(--muted, #5f7185));
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.date-range-control {
  position: relative;
  min-width: 0;
}

.date-range-editor {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d6d9df;
  border-radius: 6px;
  background: #f7f8fa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.date-range-editor:hover {
  border-color: #c6cbd3;
}

.date-range-field.open .date-range-editor,
.date-range-editor:focus-within {
  border-color: #615ced;
  box-shadow: 0 0 0 2px rgba(97, 92, 237, 0.12);
}

.date-range-editor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b9bdc5;
}

.date-range-editor-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-range-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  cursor: text;
  color: #606266;
  font-size: 15px;
  outline: none;
}

.date-range-display.is-placeholder {
  color: #c0c4cc;
}

.date-range-display.is-active {
  color: #303133;
}

.date-range-display-text {
  width: 100%;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-range-source-input {
  display: none !important;
}

.date-range-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 40;
  width: min(720px, calc(100vw - 80px));
  padding: 14px 0 0;
  border: 1px solid #e2e4ea;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.date-range-panel-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.date-range-month-pane {
  min-width: 0;
  padding: 0 28px 18px;
}

.date-range-month-pane + .date-range-month-pane {
  border-left: 1px solid #eceef3;
}

.date-range-month-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-bottom: 10px;
}

.date-range-month-nav {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.date-range-month-nav.is-left {
  left: 0;
}

.date-range-month-nav.is-right {
  right: 0;
}

.date-range-month-spacer {
  display: none;
}

.date-range-month-title {
  display: block;
  padding: 0 84px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #5f6368;
  white-space: nowrap;
}

.date-range-nav-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  color: #5f6368;
  box-shadow: none !important;
  font-size: 22px;
  line-height: 1;
}

.date-range-nav-btn:hover,
.date-range-nav-btn:focus-visible,
.date-range-day:hover,
.date-range-day:focus-visible {
  transform: none;
  background: #f5f6f8 !important;
  color: #606266;
  box-shadow: none !important;
}

.date-range-nav-btn:active,
.date-range-day:active {
  transform: none;
}

.date-range-weekdays,
.date-range-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-range-weekdays {
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecf2;
}

.date-range-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  color: #5f6368;
  font-size: 15px;
}

.date-range-day {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #5f6368;
  box-shadow: none !important;
  font-size: 17px;
  font-weight: 400;
}

.date-range-day.is-outside {
  color: #b9bdc5;
}

.date-range-day.is-selected {
  color: #409eff;
  font-weight: 600;
}

.date-range-day.is-in-range {
  background: rgba(64, 158, 255, 0.08) !important;
  color: #409eff;
}

.date-range-day.is-today {
  font-weight: 600;
}

.date-range-separator {
  color: #44474d;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.date-range-editor-clear {
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  color: #b9bdc5;
  box-shadow: none !important;
  line-height: 1;
  font-size: 16px;
  font-weight: 400;
}

.date-range-editor-clear:hover,
.date-range-editor-clear:focus-visible {
  transform: none;
  background: transparent !important;
  color: #909399;
  box-shadow: none !important;
}

.date-range-editor-clear:active {
  transform: none;
}

.topbar,
.module-view,
.table-wrap,
.module-page,
.status,
.toolbar {
  background: var(--pg-surface);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--pg-text);
  font-size: 13px;
  min-width: 100%;
}

th,
td {
  border-bottom: 1px solid #eceff5;
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  color: rgba(38, 36, 76, 0.65);
  position: sticky;
  top: 0;
  background: #f7f8fc;
  z-index: 1;
}

.module-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.module-sidebar .panel,
.module-page {
  background: transparent;
  border: none;
  box-shadow: none;
}

.module-sidebar {
  width: 250px;
  min-width: 250px;
}

.module-nav {
  position: sticky;
  top: 104px;
}

.module-tab {
  position: relative;
  z-index: 1;
  text-decoration: none;
  text-align: left;
  border: 1px solid var(--pg-line);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  background: #fff;
  color: rgba(38, 36, 76, 0.88);
  cursor: pointer;
  font-weight: 600;
  transition: all .16s ease;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  width: 100%;
  user-select: none;
}

.module-tab:hover {
  border-color: #ddd8ff;
  background: rgba(97, 92, 237, 0.06);
}

.module-tab.active {
  background: rgba(97, 92, 237, 0.1);
  border-color: #d9d4ff;
  color: #4b45cf;
  box-shadow: none;
}

.module-tab.active small {
  color: rgba(75, 69, 207, 0.8);
}

.module-tab small {
  opacity: .85;
  font-size: 12px;
  line-height: 1.3;
}

.console-ref-page .toolbar,
.console-ref-page .filters,
.console-ref-page .summary,
.console-ref-page .table-wrap,
.console-ref-page .panel {
  border: 1px solid #e5e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.console-ref-page .panel,
.console-ref-page .toolbar,
.console-ref-page .filters,
.console-ref-page .summary {
  padding: 18px 20px;
  margin-bottom: 12px;
}

.console-ref-page .panel.page-hero {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  min-height: calc(var(--page-hero-card-min-height) + (var(--page-hero-shell-gap) * 2));
  margin-bottom: 0;
  padding: calc(var(--page-hero-card-pad-y) + var(--page-hero-shell-gap)) var(--page-hero-card-pad-x);
  border: 0;
  border-radius: 0;
  background: var(--pg-bg);
  box-shadow: none;
  isolation: isolate;
}

.console-ref-page .panel.page-hero::before {
  content: "";
  position: absolute;
  inset: var(--page-hero-shell-gap) 0;
  border: 1px solid #e5e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  z-index: -1;
}

.console-ref-page .panel.page-hero > * {
  position: relative;
  z-index: 1;
}

.console-ref-page .toolbar,
.console-ref-page .filters {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.console-ref-page .toolbar .field,
.console-ref-page .filters .field {
  min-width: 0;
  width: 100%;
}

.console-ref-page .toolbar > .btn,
.console-ref-page .filters > .btn {
  width: auto;
  min-width: 88px;
  justify-self: start;
}

.console-ref-page .dimension-field {
  grid-column: 1 / -1;
}

.console-ref-page .dimension-header {
  align-items: center;
}

.console-ref-page .dimension-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 10px 12px;
  border: 1px solid #e2e5f0;
  border-radius: 10px;
  background: #fff;
}

.console-ref-page .dimension-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0;
  border: 0;
  color: #44506a;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.console-ref-page .field .dimension-item input {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  min-height: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c7d2e5;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.console-ref-page .field .dimension-item input:hover {
  border-color: #8fb8ff;
}

.console-ref-page .field .dimension-item input:focus-visible {
  outline: none;
  border-color: #4096ff;
  box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.14);
}

.console-ref-page .field .dimension-item input:checked {
  border-color: #4096ff;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7' fill='none'%3E%3Cpath d='M1.35 3.65L2.85 5L5.7 2.15' stroke='%234096ff' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 6px 6px;
}

.console-ref-page .dimension-item .dimension-text {
  display: inline-block;
  color: inherit;
}

.console-ref-page .dimension-item:hover .dimension-text {
  color: #2f3352;
}

.console-ref-page .field {
  gap: 8px;
}

.console-ref-page .field label {
  display: block;
  color: #6d7390;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.console-ref-page .field input,
.console-ref-page .field select,
.console-ref-page .field textarea,
.console-ref-page .tag-filter {
  min-height: 40px;
  border: 1px solid #d7dbea;
  border-radius: 10px;
  background: #fff;
}

.console-ref-page .field input,
.console-ref-page .field select,
.console-ref-page .field textarea {
  color: #2f3352;
  padding: 0 12px;
}

.console-ref-page .field input,
.console-ref-page .field select {
  height: 40px;
}

  .console-ref-page .field textarea {
    min-height: 96px;
    padding: 10px 12px;
  }

.console-ref-page .date-range-field-label {
  display: block;
  min-height: 0;
  color: #6d7390;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.console-ref-page .date-range-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.console-ref-page .date-range-editor {
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border-color: #d7dbea;
  background: #fff;
  border-radius: 10px;
}

.console-ref-page .date-range-panel {
  border-color: #d7dbea;
}

.console-ref-page .date-range-display {
  min-height: 38px;
  justify-content: flex-start;
  font-size: 14px;
}

.console-ref-page .date-range-display-text {
  text-align: left;
}

.console-ref-page .field input:focus-visible,
.console-ref-page .field select:focus-visible,
.console-ref-page .field textarea:focus-visible,
.console-ref-page .tag-filter:focus-within {
  outline: none;
  border-color: #33a68c;
  box-shadow: 0 0 0 3px rgba(51, 166, 140, 0.12);
}

.console-ref-page .tag-filter {
  position: relative;
  display: block;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  cursor: text;
  overflow: visible;
}

.console-ref-page .tag-filter:focus-within {
  border: 0;
  box-shadow: none !important;
}

.console-ref-page .tag-filter.open {
  border: 0;
  box-shadow: none !important;
}

.console-ref-page .tag-filter-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 52px;
  padding: 8px 44px 8px 8px;
  border: 1px solid #d7dbea;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.console-ref-page .tag-filter:focus-within .tag-filter-head,
.console-ref-page .tag-filter.open .tag-filter-head {
  border-color: #33a68c;
  box-shadow: 0 0 0 2px rgba(51, 166, 140, 0.12);
}

.console-ref-page .tag-filter-tags {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
}

.console-ref-page .tag-filter-editor {
  flex: 1 1 18px;
  min-width: 18px;
  height: 34px;
  border: 0;
  outline: none;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #2f3352;
  font-size: 14px;
  line-height: 34px;
}

.console-ref-page .tag-filter.has-value .tag-filter-editor:not(:focus) {
  flex: 0 0 1px;
  min-width: 1px;
  width: 1px;
  margin: 0;
  padding: 0;
  color: transparent;
  caret-color: #4c5268;
}

.console-ref-page .tag-filter:focus-within .tag-filter-editor,
.console-ref-page .tag-filter.open .tag-filter-editor {
  flex: 1 1 72px;
  min-width: 72px;
  margin: 0;
  color: #2f3352;
}

.console-ref-page .tag-filter-editor::placeholder {
  color: #a0a5b8;
}

.console-ref-page .tag-filter.has-value .tag-filter-editor::placeholder {
  color: transparent;
}

.console-ref-page .tag-filter-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a0a5b8;
  box-shadow: none !important;
  padding: 0;
}

.console-ref-page .tag-filter-caret svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.console-ref-page .tag-filter.open .tag-filter-caret {
  color: #7b818f;
  transform: rotate(180deg);
}

.console-ref-page .tag-filter-caret:hover,
.console-ref-page .tag-filter-caret:focus-visible {
  background: #f3f4f8 !important;
  color: #7b818f;
  transform: none;
  box-shadow: none !important;
}

.console-ref-page .tag-filter.open .tag-filter-caret:hover,
.console-ref-page .tag-filter.open .tag-filter-caret:focus-visible {
  transform: rotate(180deg);
}

.console-ref-page .tag-filter-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: 320px;
  overflow: auto;
  padding: 6px 0;
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  z-index: 30;
}

.console-ref-page .tag-filter-options::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 52px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #dfe4e8;
  border-top: 1px solid #dfe4e8;
  transform: rotate(45deg);
}

.console-ref-page .tag-filter-options.show {
  display: block;
}

.console-ref-page .tag-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 0 20px;
  cursor: pointer;
  color: #444a63;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none !important;
}

.console-ref-page .tag-filter-option-label {
  min-width: 0;
}

.console-ref-page .tag-filter-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: transparent;
  flex: 0 0 18px;
}

.console-ref-page .tag-filter-option-check svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.console-ref-page .top-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #6d7390;
  font-weight: 600;
}

.console-ref-page .top-grid input,
.console-ref-page .top-grid select {
  min-height: 40px;
  border: 1px solid #d7dbea;
  border-radius: 10px;
  background: #fff;
  color: #2f3352;
  padding: 0 12px;
}

.console-ref-page .summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: flex-start;
}

.console-ref-page .summary .metric,
.console-ref-page .summary .stat {
  min-width: 130px;
  border: 0;
  background: transparent;
  padding: 0;
}

.console-ref-page .summary .metric span,
.console-ref-page .summary .stat span {
  display: block;
  font-size: 13px;
  color: #9094ac;
}

.console-ref-page .summary .metric b,
.console-ref-page .summary .stat b {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #2f3352;
}

.console-data-table-page .summary .metric b,
.console-data-table-page .summary .stat b {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 700;
}

.console-ref-page .summary .summary-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.console-ref-page .toolbar-actions,
.console-ref-page .dimension-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.console-ref-page .summary #statusText,
.console-ref-page .summary .muted {
  color: #8a8fa8;
  font-size: 13px;
}

.console-ref-page .panel h1 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.console-ref-page .panel .muted {
  color: #8a8fa8;
}

.console-ref-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  min-width: 76px;
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 0 14px;
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.console-ref-page .btn.primary {
  border: 1px solid #615ced;
  background: #615ced;
  color: #fff;
}

.console-ref-page .btn.primary:hover,
.console-ref-page .btn.primary:focus-visible {
  border-color: #5752da;
  background: #5752da;
  transform: none;
  box-shadow: none;
}

.console-ref-page .btn.ghost {
  border: 1px solid #d5d9e8;
  background: #fff;
  color: #545a78;
}

.console-ref-page .btn.ghost:hover,
.console-ref-page .btn.ghost:focus-visible {
  border-color: #bcc2d6;
  background: #f7f8fc;
  color: #3d4465;
  transform: none;
  box-shadow: none;
}

.console-ref-page .btn.utility {
  border: 1px solid #d9d4ff;
  background: #f5f3ff;
  color: #4b45cf;
}

.console-ref-page .btn.utility:hover,
.console-ref-page .btn.utility:focus-visible {
  border-color: #cbc3ff;
  background: #eee9ff;
  color: #443dc2;
  transform: none;
  box-shadow: none;
}

.console-ref-page .btn.danger {
  border: 1px solid #f2c7cf;
  background: #fff4f6;
  color: #cc3f5d;
}

.console-ref-page .btn.danger:hover,
.console-ref-page .btn.danger:focus-visible {
  border-color: #e8aab6;
  background: #ffecef;
  color: #b83252;
  transform: none;
  box-shadow: none;
}

.console-ref-page .btn.compact {
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}

.console-ref-page .btn.active {
  border: 1px solid #d9d4ff;
  background: rgba(97, 92, 237, 0.1);
  color: #4b45cf;
}

.console-ref-page .mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #d5d9e8;
  background: #fff;
  color: #545a78;
  line-height: 1;
  box-shadow: none;
}

.console-ref-page .mini-btn:hover {
  border-color: #bcc2d6;
  background: #f7f8fc;
  color: #3d4465;
  transform: none;
  box-shadow: none;
}

.console-ref-page .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #4c5268;
  padding: 0 10px 0 12px;
  font-size: 14px;
  line-height: 1;
}

.console-ref-page .tag-chip-text {
  white-space: nowrap;
}

.console-ref-page .tag-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: #dcdee4;
  color: #7f8496;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.console-ref-page .tag-chip-remove:hover {
  background: #cfd3dd;
  color: #5b6175;
}

.console-ref-page .tag-filter-option:hover {
  background: #f7f8fc;
  color: #28a17f;
  transform: none;
}

.console-ref-page .tag-filter-option:focus-visible {
  background: #f7f8fc;
  color: #28a17f;
  transform: none;
  box-shadow: none !important;
}

.console-ref-page .tag-filter-option.is-selected {
  color: #28a17f;
  font-weight: 600;
}

.console-ref-page .tag-filter-option.is-selected .tag-filter-option-check {
  color: #28a17f;
}

.console-ref-page .tag-filter-caret:active,
.console-ref-page .tag-filter-option:active {
  transform: none;
}

.console-ref-page .tag-select {
  position: relative;
  display: block;
}

.console-ref-page .tag-select-head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 38px 4px 6px;
  border: 1px solid #d9dee6;
  border-radius: 10px;
  background: #fff;
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.console-ref-page .tag-select.open .tag-select-head,
.console-ref-page .tag-select:focus-within .tag-select-head {
  border-color: #25a184 !important;
  box-shadow: 0 0 0 1px rgba(37, 161, 132, 0.18);
}

.console-ref-page .tag-select-values {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 6px;
  min-width: 0;
  min-height: 28px;
}

.console-ref-page .tag-select-editor {
  flex: 1 1 18px;
  min-width: 18px;
  height: 28px;
  border: 0 !important;
  outline: none;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  color: #2f3352;
  font-size: 13px;
  line-height: 28px;
  box-shadow: none !important;
}

.console-ref-page .field .tag-select-editor:focus-visible,
.console-ref-page .tag-select-editor:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.console-ref-page .tag-select.has-value .tag-select-editor {
  flex: 0 0 12px;
  min-width: 12px;
  width: 12px;
  color: transparent;
  caret-color: #4c5268;
}

.console-ref-page .tag-select.has-value.is-typing .tag-select-editor,
.console-ref-page .tag-select:not(.has-value) .tag-select-editor {
  flex: 1 1 72px;
  min-width: 72px;
  width: auto;
  color: #2f3352;
}

.console-ref-page .tag-select-editor::placeholder {
  color: #acb2c0;
}

.console-ref-page .tag-select.has-value .tag-select-editor::placeholder {
  color: transparent;
}

.console-ref-page .tag-select-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: #b0b5c2;
  padding: 0;
  transform: translateY(-50%);
  box-shadow: none !important;
}

.console-ref-page .tag-select-caret svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.console-ref-page .tag-select.open .tag-select-caret {
  transform: translateY(-50%) rotate(180deg);
  color: #9298a8;
}

.console-ref-page .tag-select-caret:hover,
.console-ref-page .tag-select-caret:focus-visible,
.console-ref-page .tag-select-caret:active {
  background: transparent !important;
  color: #9298a8;
  box-shadow: none !important;
}

.console-ref-page .tag-select.open .tag-select-caret:hover,
.console-ref-page .tag-select.open .tag-select-caret:focus-visible,
.console-ref-page .tag-select.open .tag-select-caret:active {
  transform: translateY(-50%) rotate(180deg);
}

.console-ref-page .tag-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  max-height: 320px;
  overflow: auto;
  padding: 6px 0;
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  z-index: 30;
}

.console-ref-page .tag-select-panel.show {
  display: block;
}

.console-ref-page .tag-select-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 54px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #dfe4e8;
  border-top: 1px solid #dfe4e8;
  transform: rotate(45deg);
}

.console-ref-page .tag-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 0 20px;
  cursor: pointer;
  color: #4c5268;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none !important;
}

.console-ref-page .tag-select-option:hover,
.console-ref-page .tag-select-option:focus-visible,
.console-ref-page .tag-select-option:active {
  background: #fafbfc;
  color: #29a57f;
  transform: none;
  box-shadow: none !important;
}

.console-ref-page .tag-select-option-label {
  min-width: 0;
}

.console-ref-page .tag-select-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: transparent;
  flex: 0 0 18px;
}

.console-ref-page .tag-select-option-check svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.console-ref-page .tag-select-option.is-selected {
  color: #29a57f;
  font-weight: 600;
}

.console-ref-page .tag-select-option.is-selected .tag-select-option-check {
  color: #29a57f;
}

.console-ref-page .tag-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px 0 10px;
  border: 1px solid #eceff2;
  border-radius: 7px;
  background: linear-gradient(180deg, #fafafb 0%, #f3f4f6 100%);
  color: #52576c;
  font-size: 13px;
  line-height: 1;
}

.console-ref-page .tag-select-chip-text {
  white-space: nowrap;
}

.console-ref-page .tag-select-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: #d7dae1;
  color: #7e8496;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

.console-ref-page .tag-select-chip-remove:hover,
.console-ref-page .tag-select-chip-remove:focus-visible,
.console-ref-page .tag-select-chip-remove:active {
  background: #caced9 !important;
  color: #666c7e;
  transform: none;
  box-shadow: none !important;
}

.console-ref-page .bill-open-btn,
.console-ref-page .note-toggle {
  color: #615ced;
}

.console-ref-page .bill-link-btn {
  border-color: #d5d9e8;
  background: #fff;
  color: #545a78;
}

.console-ref-page .bill-link-btn:hover {
  border-color: #bcc2d6;
  background: #f7f8fc;
  color: #3d4465;
}

.console-ref-page .summary .summary-actions .btn {
  min-width: 0;
}

.console-ref-page .table-wrap {
  border-radius: 10px;
  overflow: auto;
}

.console-ref-page .table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.console-ref-page .table-wrap th,
.console-ref-page .split-result-board th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 48px;
  padding: 0 14px;
  background: #f7f8fc;
  color: #767b98;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #e7eaf2;
}

.console-ref-page .table-wrap td,
.console-ref-page .split-result-board td {
  padding: 12px 14px;
  color: #2f3352;
  border-bottom: 1px solid #eceff5;
  background: #fff;
}

.console-ref-page .table-wrap tbody tr:hover td,
.console-ref-page .split-result-board tbody tr:hover td {
  background: #fbfbfe;
}

.console-ref-page .pager {
  border-top: 1px solid #eceff5;
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #fbfcff;
  justify-content: flex-end;
  align-items: end;
  gap: 8px;
}

.console-ref-page .pager > .field,
.console-source-page .pager-meta {
  display: grid;
  gap: 5px;
  align-items: end;
  min-width: 0;
  margin: 0;
}

.console-ref-page .pager > .field {
  width: auto;
}

.console-ref-page .pager > .field label,
.console-source-page .pager-meta span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #8a8fa8;
}

.console-ref-page .pager > .field input,
.console-ref-page .pager > .field select,
.console-source-page .pager-meta input {
  min-width: 88px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
}

.console-source-page .pager-meta input {
  width: 96px;
}

.console-ref-page .pager .btn {
  min-width: 82px;
  height: 34px;
  padding: 0 12px;
}

.console-ref-page .pager .muted {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e3e7f0;
  border-radius: 999px;
  background: #fff;
  color: #7a809a;
  font-size: 13px;
  line-height: 1;
}

.console-ref-page .row-action-btn {
  min-width: 0;
}

.console-ref-page .filters > .btn,
.console-ref-page .toolbar-actions > .btn,
.console-ref-page .summary .summary-actions > .btn,
.console-ref-page .dimension-actions > .mini-btn {
  justify-self: start;
  flex: 0 0 auto;
}

.console-ref-page .filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.console-ref-page .field-wide {
  grid-column: 1 / -1;
}

.console-ref-page .btn:hover,
.console-ref-page .btn:focus-visible,
.console-ref-page .btn:active,
.console-ref-page .mini-btn:hover,
.console-ref-page .mini-btn:focus-visible,
.console-ref-page .mini-btn:active {
  transform: none;
  box-shadow: none;
}

.console-ref-page .btn:active,
.console-ref-page .mini-btn:active {
  filter: brightness(0.98);
}

.console-ref-page .btn:disabled,
.console-ref-page .mini-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.console-ref-page .btn:disabled:hover,
.console-ref-page .mini-btn:disabled:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

.console-source-page .toolbar-actions .detail-tab {
  width: auto;
  max-width: none;
}

.console-source-page .toolbar-actions > .btn {
  width: auto;
  max-width: none;
}

.console-source-page .detail-tab {
  border-color: #d5d9e8;
  background: #fff;
  color: #545a78;
}

.console-source-page .detail-tab.active {
  border-color: #d9d4ff;
  background: rgba(97, 92, 237, 0.1);
  color: #4b45cf;
}

@media (max-width: 1180px) {
  .console-ref-page .toolbar,
  .console-ref-page .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .date-range-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .date-range-field-label {
    min-height: auto;
  }

  .date-range-field.range-span-2 {
    grid-column: auto;
  }

  .date-range-editor {
    gap: 6px;
    padding: 0 8px;
  }

  .date-range-panel {
    width: min(100vw - 32px, 680px);
    padding: 10px;
  }

  .date-range-panel-months {
    grid-template-columns: minmax(0, 1fr);
  }

  .date-range-month-pane {
    padding: 0 6px 8px;
  }

  .date-range-month-pane + .date-range-month-pane {
    border-left: 0;
    border-top: 1px solid #ebeef5;
    padding-top: 12px;
  }

  .console-ref-page .panel,
  .console-ref-page .toolbar,
  .console-ref-page .filters,
  .console-ref-page .summary {
    padding: 14px;
  }

  .console-ref-page .toolbar,
  .console-ref-page .filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .console-ref-page {
    --page-hero-shell-gap: 8px;
    --page-hero-card-min-height: 64px;
    --page-hero-card-pad-y: 14px;
    --page-hero-card-pad-x: 16px;
  }

  .console-ref-page .page-hero h1,
  .console-ref-page .page-hero .page-title {
    font-size: 20px;
  }

  .console-ref-page .toolbar > .btn,
  .console-ref-page .filters > .btn {
    width: 100%;
    justify-self: stretch;
  }

  .console-ref-page .summary .metric,
  .console-ref-page .summary .stat {
    min-width: calc(50% - 8px);
  }

  .console-ref-page .summary .summary-actions {
    margin-left: 0;
    width: 100%;
  }

  .console-ref-page .summary .summary-actions .btn {
    width: 100%;
  }

  .console-ref-page .pager {
    justify-content: stretch;
    align-items: stretch;
  }

  .console-ref-page .pager > .field,
  .console-source-page .pager-meta {
    width: 100%;
  }

  .console-ref-page .pager > .field input,
  .console-ref-page .pager > .field select,
  .console-source-page .pager-meta input,
  .console-ref-page .pager .btn,
  .console-ref-page .pager .muted {
    width: 100%;
  }

  .console-ref-page .pager .muted {
    justify-content: center;
  }

  .console-ref-page .table-wrap th,
  .console-ref-page .split-result-board th,
  .console-ref-page .table-wrap td,
  .console-ref-page .split-result-board td {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tab {
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--pg-text);
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(180deg, #2f78f0 0%, #1a58c0 100%);
  border-color: #4d7de0;
  color: #fff;
}

.module-page {
  min-height: 76vh;
  background: transparent;
  display: grid;
  gap: 12px;
}

.module-view {
  display: none;
}

.module-view.active {
  display: block;
}

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

.topbar {
  background: transparent;
  border: none;
  box-shadow: none;
  position: sticky;
  top: 8px;
  z-index: 3;
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.split,
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.link-btn {
  width: auto;
  text-decoration: none;
  border-radius: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 23, 46, 0.28);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(1120px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 12px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .app-sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .app-main-inner {
    max-width: none;
  }

  .app-sidebar-sub {
    margin-left: 0;
  }

  .split,
  .split-panels {
    grid-template-columns: 1fr;
  }

  .module-layout {
    grid-template-columns: 1fr;
  }

  .module-sidebar {
    width: auto;
    min-width: 0;
    position: static;
    top: auto;
  }

  .module-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
