body {
  margin: 0;
  background: #f5f7fb;
  color: #18202f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #1858d6;
  text-decoration: none;
}

.topbar {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.topbar-shell,
.container,
.fill-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-shell {
  padding: 22px 0 18px;
}

.topbar-brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.topbar-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: #fff;
  opacity: 0.88;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
}

.nav a.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.topbar-user {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.topbar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.muted-light {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.container,
.fill-shell {
  padding: 24px 0 48px;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.card + .card,
.card-grid + .card,
.two-col + .card {
  margin-top: 20px;
}

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

.stat-card .label {
  color: #64748b;
  font-size: 14px;
}

.stat-card .value {
  margin-top: 10px;
  font-size: 40px;
  font-weight: 700;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.dashboard-hero-compact {
  padding: 18px 22px;
}

.dashboard-hero-minimal {
  padding: 18px 22px;
}

.dashboard-hero-copy {
  max-width: 760px;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8efff;
  color: #1858d6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero h2 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.15;
}

.dashboard-hero p {
  margin: 0;
  color: #52627c;
  line-height: 1.8;
}

.dashboard-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.dashboard-metric-grid .card + .card,
.dashboard-grid .card + .card {
  margin-top: 0;
}

.dashboard-metric-grid-compact {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.dashboard-metric-grid-minimal {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: minmax(192px, auto);
}

.dashboard-metric-grid-minimal .metric-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 192px;
}

.dashboard-metric-grid-minimal .metric-value-md {
  font-size: 18px;
  line-height: 1.3;
  min-height: 84px;
}

.dashboard-metric-grid-minimal .metric-value {
  min-height: 84px;
}

.dashboard-metric-grid-minimal .metric-footnote {
  margin-top: auto;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -32px -32px auto;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
}

.metric-card-primary {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
}

.metric-kicker {
  color: #7b8aa3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.metric-card-primary .metric-kicker,
.metric-card-primary .metric-footnote,
.metric-card-primary .metric-value {
  color: #fff;
}

.metric-value {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.metric-value-md {
  font-size: 22px;
}

.metric-value-lg {
  font-size: 28px;
}

.metric-footnote {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dashboard-grid-compact {
  margin-top: 24px;
}

.dashboard-grid-minimal {
  margin-top: 24px;
  align-items: stretch;
  grid-auto-rows: 560px;
}

.dashboard-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 540px;
}

.dashboard-grid-minimal .dashboard-panel {
  height: 560px;
  min-height: 560px;
}

.dashboard-panel .table-scroll {
  flex: 1;
  overflow: auto;
}

.settings-tabs-card {
  padding-top: 18px;
}

.settings-tab-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.settings-tab {
  padding: 10px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.settings-tab.active {
  background: #1858d6;
  color: #fff;
  box-shadow: 0 10px 22px rgba(24, 88, 214, 0.22);
}

.settings-split {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
}

.settings-password-form {
  max-width: 520px;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}

.cockpit-ring-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-ring {
  --progress: 0%;
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(#2563eb var(--progress), #dce8ff 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
}

.dashboard-ring-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.dashboard-ring-inner strong {
  font-size: 34px;
  line-height: 1;
}

.dashboard-ring-inner span {
  color: #64748b;
  font-size: 13px;
}

.cockpit-metrics {
  display: grid;
  gap: 12px;
}

.cockpit-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.cockpit-metric-row span {
  color: #64748b;
}

.cockpit-metric-row strong {
  font-size: 16px;
}

.progress-shell {
  margin-top: 18px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: #e8eefb;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.dashboard-bar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-bar-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dashboard-bar-head,
.dashboard-bar-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.dashboard-bar-head {
  margin-bottom: 10px;
}

.dashboard-bar-head span,
.dashboard-bar-foot {
  color: #64748b;
  font-size: 13px;
}

.dashboard-bar-track {
  height: 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #dbe7ff;
  overflow: hidden;
}

.dashboard-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.dashboard-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.dashboard-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border: 1px solid #dbe6f5;
}

.dashboard-chip strong {
  font-size: 24px;
}

.dashboard-chip span {
  color: #4f5f79;
  line-height: 1.5;
}

.dashboard-chip-list-soft .dashboard-chip-soft {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.two-col {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  background: #f8fafc;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select {
  min-height: 48px;
  height: 48px;
}

input[type="text"][inputmode="numeric"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

input.time-text-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px !important;
  height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid #d7dfeb !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  color: #18202f;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.actions form,
.row-actions form {
  margin: 0;
}

.backup-import-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.backup-import-form input[type="file"] {
  width: auto;
  max-width: 360px;
  padding: 10px 12px;
  background: #f8fafc;
}

button,
.secondary-button,
.primary {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
}

.primary {
  background: #1858d6;
  color: #fff;
}

.secondary-button {
  background: #e8eefb;
  color: #1858d6;
}

.danger-button {
  background: #fee2e2;
  color: #b42318;
}

.link-button {
  background: none;
  padding: 0;
  border: none;
  color: #b42318;
  font-size: 14px;
  cursor: pointer;
}

.alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.alert-success {
  background: #e8f9ef;
  color: #15603a;
}

.alert-error {
  background: #fdeaea;
  color: #9d1f1f;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 80%, #f8fbff 100%);
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e8eef5;
  padding: 12px 10px;
  vertical-align: top;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  color: #475569;
  font-size: 13px;
  background: #f8fafc;
}

.logs-card {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.logs-head {
  margin-bottom: 16px;
}

.logs-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.logs-summary-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border: 1px solid #dbe6f5;
}

.logs-summary-item span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
}

.logs-summary-item strong {
  font-size: 16px;
  line-height: 1.5;
}

.logs-table-shell {
  background: #fff;
}

.logs-table {
  min-width: 1040px;
  table-layout: fixed;
}

.logs-table tr:nth-child(even) td {
  background: #fcfdff;
}

.logs-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logs-col-time {
  width: 148px;
}

.logs-col-event {
  width: 280px;
}

.logs-col-source {
  width: 250px;
}

.logs-col-detail {
  width: auto;
}

.logs-time-cell,
.logs-event-cell,
.logs-source-cell,
.logs-detail-cell {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.logs-time-main {
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.logs-time-sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.logs-event-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #18202f;
  word-break: break-word;
}

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

.logs-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #35538f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.logs-tag-admin {
  background: #eaf1ff;
  color: #1d4ed8;
}

.logs-tag-system {
  background: #ecfeff;
  color: #0f766e;
}

.logs-tag-fill {
  background: #fff7ed;
  color: #c2410c;
}

.logs-tag-muted,
.logs-tag-default {
  background: #f1f5f9;
  color: #475569;
}

.logs-target-name,
.logs-ip {
  color: #52627c;
  line-height: 1.6;
}

.logs-actor-name {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #18202f;
}

.logs-ip {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.logs-detail-text {
  color: #334155;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.logs-path-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #dbe6f5;
}

.logs-path-label {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logs-path-text {
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-all;
}

.logs-empty {
  padding: 26px 18px !important;
  text-align: center !important;
  color: #64748b;
}

.overview-intro-card {
  padding-bottom: 18px;
}

.overview-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.overview-actions {
  justify-content: flex-end;
}

.overview-meta-item {
  min-width: 112px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe6f5;
}

.overview-meta-label {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

.overview-region-card {
  padding-bottom: 18px;
}

.overview-region-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #35538f;
  font-size: 13px;
  font-weight: 600;
}

.overview-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.overview-table {
  min-width: 980px;
  table-layout: fixed;
}

.overview-table th,
.overview-table td {
  box-sizing: border-box;
}

.overview-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 14px;
  padding-bottom: 14px;
}

.col-subject {
  width: 280px;
}

.col-owner {
  width: 120px;
}

.col-collab {
  width: 120px;
}

.col-week {
  width: 260px;
}

.sticky-col {
  position: sticky;
  z-index: 4;
  background: #f8fafc;
}

.sticky-body {
  background: #fff;
  z-index: 2;
}

.sticky-col-1 {
  left: 0;
}

.sticky-col-2 {
  left: 280px;
}

.sticky-col-3 {
  left: 400px;
}

.week-column,
.week-cell {
  min-width: 260px;
}

.week-column-current {
  background: #eaf1ff !important;
  color: #1d4ed8 !important;
}

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

.inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.inline-label {
  min-width: 320px;
}

.row-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.muted {
  color: #64748b;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.top-gap {
  margin-top: 12px;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-send-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fill-page {
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #dbeafe, #f8fafc 48%);
}

.login-shell {
  width: min(460px, calc(100% - 32px));
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fill-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.fill-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.subject-sidebar {
  align-self: start;
  position: sticky;
  top: 18px;
}

.subject-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subject-nav-btn {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #d7dfeb;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subject-nav-btn.active {
  border-color: #1858d6;
  background: #eaf1ff;
}

.subject-form {
  display: none;
}

.subject-form.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.subject-form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.save-indicator {
  color: #64748b;
  font-size: 13px;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: #eef2ff;
  color: #334155;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.reference-card {
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #f8fafc);
  padding: 16px;
}

.reference-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.reference-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.reference-label {
  color: #64748b;
  font-size: 12px;
}

.reference-body {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.reference-empty {
  color: #64748b;
  font-size: 14px;
}

.fill-footer {
  margin-top: 18px;
  border-top: 1px solid #e8eef5;
  padding-top: 18px;
}

.overview-section + .overview-section {
  margin-top: 18px;
}

.week-status {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.week-progress {
  white-space: pre-wrap;
  line-height: 1.6;
  color: #334155;
}

.week-cell {
  background: #fff;
}

.week-cell-current {
  background: #f8fbff;
}

.report-output {
  white-space: pre-wrap;
  line-height: 1.8;
  background: #f8fafc;
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  padding: 16px;
}

.report-rendered-view {
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 18px;
}

.report-html-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.report-kpi-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border: 1px solid #dbe6f5;
}

.report-kpi-card span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
}

.report-kpi-card strong {
  font-size: 15px;
  line-height: 1.5;
}

.report-summary-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe6f5;
}

.report-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
}

.report-summary-card strong {
  font-size: 15px;
  line-height: 1.5;
}

.report-html-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #1f2937;
}

.report-html-body section,
.report-html-body .report-section {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5edf8;
}

.report-html-body h3,
.report-html-body .report-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.report-html-body p,
.report-html-body li,
.report-html-body .report-section p,
.report-html-body .report-section li {
  line-height: 1.8;
  color: #334155;
}

.report-html-body ul,
.report-html-body .report-section ul {
  margin: 0;
  padding-left: 20px;
}

.report-html-body table,
.report-html-body .report-section table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.report-html-body th,
.report-html-body td,
.report-html-body .report-section th,
.report-html-body .report-section td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
}

.report-html-body th,
.report-html-body .report-section th {
  background: #f8fafc;
}

.report-empty {
  color: #64748b;
}

.loading-mask {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  z-index: 9999;
}

.loading-mask.is-visible {
  display: flex;
}

.loading-mask-card {
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 24px;
  text-align: center;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 999px;
  border: 4px solid #dbe7ff;
  border-top-color: #1858d6;
  animation: spin 0.9s linear infinite;
}

.loading-mask-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.loading-mask-text {
  color: #64748b;
  line-height: 1.7;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
  .card-grid,
  .two-col,
  .three-col,
  .report-send-grid,
  .dashboard-grid,
  .dashboard-grid-minimal,
  .dashboard-metric-grid,
  .dashboard-metric-grid-minimal,
  .settings-split,
  .report-summary-grid,
  .report-kpi-grid,
  .fill-layout,
  .fill-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar-nav-row,
  .topbar-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar h1 {
    font-size: 30px;
  }

  .topbar-user {
    justify-content: space-between;
  }

  .nav {
    justify-content: center;
  }

  .overview-section-head,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-col,
  .sticky-body {
    position: static;
  }

  .overview-table {
    min-width: 860px;
  }

  .subject-sidebar {
    position: static;
  }

  .reference-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-grid {
    grid-template-columns: 1fr;
  }

  .logs-summary {
    grid-template-columns: 1fr;
  }

  .logs-table {
    min-width: 780px;
  }
}
