body.ssp-body {
  margin: 0;
  color: #17344f;
  font-family: "Segoe UI", Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(78, 149, 217, 0.18), transparent 30%),
    linear-gradient(135deg, #eef5fb 0%, #f8fbff 55%, #e6f0f9 100%);
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.ssp-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.ssp-sidebar {
  padding: 28px 20px;
  background: linear-gradient(180deg, #0e3559 0%, #16456f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.ssp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ssp-brand strong,
.ssp-brand span {
  display: block;
}

.ssp-brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin-top: 4px;
}

.ssp-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #59a6f2 0%, #2d78d0 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.ssp-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ssp-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.84);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ssp-nav-link:hover,
.ssp-nav-link.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ssp-main {
  padding: 28px;
  min-width: 0;
}

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

.ssp-topbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ssp-topbar h1,
.ssp-hero h2,
.ssp-panel h3,
.ssp-page-head h2 {
  margin: 0;
}

.ssp-topbar h1,
.ssp-hero h2,
.ssp-page-head h2 {
  line-height: 1.15;
}

.ssp-topbar p,
.ssp-page-head p,
.ssp-hero p {
  margin: 6px 0 0;
  color: #57758f;
}

.ssp-ghost-link,
.ssp-button,
.ssp-button-secondary,
.ssp-table-action,
.ssp-inline-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.ssp-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(19, 52, 79, 0.06);
}

.ssp-hero,
.ssp-panel,
.ssp-table-wrap,
.ssp-form-card,
.ssp-detail-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(61, 106, 144, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(19, 52, 79, 0.08);
}

.ssp-hero {
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.ssp-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #2d78d0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ssp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ssp-button,
.ssp-button-secondary,
.ssp-inline-button,
.ssp-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
}

.ssp-button,
.ssp-inline-button,
.ssp-table-action {
  background: linear-gradient(135deg, #2d78d0 0%, #1f5da5 100%);
  color: #fff;
}

.ssp-button-secondary {
  background: linear-gradient(135deg, #dcebf9 0%, #c6dcf3 100%);
  color: #17344f;
}

.ssp-card-grid,
.ssp-dashboard-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.ssp-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ssp-dashboard-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.ssp-stat-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 248, 253, 0.98) 100%);
  border: 1px solid rgba(61, 106, 144, 0.14);
  box-shadow: 0 16px 40px rgba(19, 52, 79, 0.07);
  text-decoration: none;
}

.ssp-stat-card span,
.ssp-stat-card small {
  display: block;
}

.ssp-stat-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 34px;
  color: #0f406d;
  line-height: 1;
}

.ssp-stat-card small {
  color: #5c7891;
}

.ssp-panel {
  padding: 24px;
}

.ssp-panel,
.ssp-hero,
.ssp-form-card,
.ssp-detail-card,
.ssp-stat-card,
.ssp-quick-link,
.ssp-table-wrap {
  min-width: 0;
}

.ssp-panel-head {
  margin-bottom: 18px;
}

.ssp-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ssp-quick-link {
  min-height: 120px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f5da5 0%, #2d78d0 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.ssp-quick-link i {
  font-size: 24px;
}

.ssp-summary-list {
  margin: 0;
}

.ssp-summary-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(61, 106, 144, 0.12);
}

.ssp-summary-list div:last-child {
  border-bottom: 0;
}

.ssp-summary-list dt {
  color: #6d879d;
}

.ssp-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  min-width: 0;
}

.ssp-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ssp-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(19, 52, 79, 0.07);
  text-decoration: none;
}

.ssp-chip.is-active {
  background: #17344f;
  color: #fff;
}

.ssp-table-wrap {
  overflow: hidden;
  width: 100%;
}

.ssp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ssp-table th,
.ssp-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(61, 106, 144, 0.12);
}

.ssp-table tbody tr:last-child td {
  border-bottom: 0;
}

.ssp-table td::before {
  display: none;
  content: attr(data-label);
  font-size: 12px;
  font-weight: 700;
  color: #6d879d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.ssp-empty {
  padding: 26px;
  color: #57758f;
}

.ssp-form-grid,
.ssp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ssp-form-card,
.ssp-detail-card {
  padding: 24px;
}

.ssp-form-stack,
.ssp-form-actions,
.ssp-comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ssp-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.ssp-field input[type="text"],
.ssp-field select,
.ssp-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(61, 106, 144, 0.18);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  color: #17344f;
}

.ssp-field textarea {
  min-height: 140px;
  resize: vertical;
}

.ssp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ssp-error,
.ssp-success {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.ssp-error {
  background: #fce7e7;
  color: #8a2323;
}

.ssp-success {
  background: #e5f6ea;
  color: #1f6b38;
}

.ssp-comment {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(240, 246, 252, 0.92);
  border: 1px solid rgba(61, 106, 144, 0.12);
}

.ssp-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #57758f;
  font-size: 13px;
}

.ssp-attachment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.ssp-attachment-link {
  width: fit-content;
  color: #2c7ac9;
  font-weight: 700;
  text-decoration: none;
}

.ssp-attachment-link:hover {
  text-decoration: underline;
}

.ssp-attachment-link span {
  color: #57758f;
  font-weight: 500;
}

.ssp-inline-image,
.inline-task-image {
  display: block;
  max-width: min(100%, 760px);
  max-height: 520px;
  margin: 10px 0;
  border: 1px solid rgba(61, 106, 144, 0.16);
  border-radius: 14px;
  background: #ffffff;
  object-fit: contain;
}
.task-checklist {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.task-checklist-item input[type="checkbox"] {
  margin: 2px 0 0;
  accent-color: #356f9d;
}
.task-checklist-item span {
  flex: 1;
}

.ssp-attachment-hint {
  display: block;
  color: #57758f;
  font-size: 12px;
}

.kb-tree-columns {
  columns: 2;
  column-gap: 18px;
}

.kb-tree-branch {
  break-inside: avoid;
  margin-bottom: 18px;
}

.kb-tree {
  list-style: none;
  margin: 10px 0 0 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(61, 106, 144, 0.18);
}

.kb-tree > li {
  margin-bottom: 10px;
}

.kb-node {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(61, 106, 144, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
}

.kb-node-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.kb-node-link,
.kb-breadcrumbs a,
.kb-markdown a {
  color: #2d78d0;
  text-decoration: underline;
}

.kb-node-link {
  font-weight: 600;
}

.kb-visibility-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #dff1e3;
  color: #2f7a41;
  white-space: nowrap;
}

.kb-markdown {
  line-height: 1.65;
}

.kb-markdown h1,
.kb-markdown h2,
.kb-markdown h3,
.kb-markdown h4,
.kb-markdown h5,
.kb-markdown h6 {
  margin: 1.1em 0 0.45em;
}

.kb-markdown p:first-child,
.kb-markdown h1:first-child,
.kb-markdown h2:first-child,
.kb-markdown h3:first-child {
  margin-top: 0;
}

.kb-markdown pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(19, 52, 79, 0.08);
}

.kb-markdown code {
  font-family: Consolas, monospace;
}

.kb-markdown blockquote {
  margin: 1em 0;
  padding: 8px 14px;
  border-left: 4px solid #b8d4ef;
  background: rgba(240, 246, 252, 0.92);
}

.kb-markdown ul,
.kb-markdown ol {
  padding-left: 24px;
}

.kb-spoiler {
  background: #3e3e3e;
  color: #3e3e3e;
  border-radius: 4px;
  padding: 0 4px;
}

.kb-spoiler:hover {
  color: #ffffff;
}

.kb-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.news-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-card {
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(61, 106, 144, 0.12);
}
.news-card h3 {
  margin: 8px 0 6px;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.news-card-body {
  line-height: 1.55;
}
.news-banner-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.news-banner {
  padding: 12px 18px;
  text-align: center;
  font-family: "Segoe UI", Verdana, sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.news-major-outage {
  background: #f3c9c9;
  color: #6d1f1f;
}
.news-outage {
  background: #f7d9b5;
  color: #784718;
}
.news-maintenance {
  background: #cfe0f6;
  color: #254b77;
}
.news-general {
  background: #e3e3e3;
  color: #414141;
}

@media (max-width: 1200px) {
  .ssp-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssp-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ssp-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .ssp-shell {
    grid-template-columns: 220px 1fr;
  }

  .ssp-sidebar {
    padding: 22px 14px;
    gap: 18px;
  }

  .ssp-main {
    padding: 20px;
  }

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

  .ssp-topbar,
  .ssp-hero,
  .ssp-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .kb-tree-columns {
    columns: 1;
  }
}

@media (max-width: 760px) {
  .ssp-shell {
    grid-template-columns: 1fr;
  }

  .ssp-sidebar {
    padding: 14px 12px 12px;
    gap: 12px;
  }

  .ssp-main {
    padding: 16px;
  }

  .ssp-brand {
    gap: 10px;
  }

  .ssp-brand strong {
    font-size: 16px;
  }

  .ssp-brand span {
    font-size: 12px;
  }

  .ssp-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  .ssp-card-grid,
  .ssp-dashboard-grid,
  .ssp-quick-actions {
    grid-template-columns: 1fr;
  }

  .ssp-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 6px;
    gap: 6px;
    scrollbar-width: thin;
  }

  .ssp-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    gap: 8px;
  }

  .ssp-nav-link span {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .ssp-main {
    padding: 12px;
  }

  .ssp-hero,
  .ssp-panel,
  .ssp-form-card,
  .ssp-detail-card,
  .ssp-stat-card {
    padding: 14px;
    border-radius: 16px;
  }

  .ssp-topbar {
    gap: 10px;
    margin-bottom: 16px;
  }

  .ssp-topbar h1,
  .ssp-hero h2,
  .ssp-page-head h2 {
    font-size: 24px;
  }

  .ssp-summary-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ssp-comment-meta,
  .news-card-meta,
  .kb-node-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ssp-page-head {
    align-items: stretch;
  }

  .ssp-page-head .ssp-button,
  .ssp-page-head .ssp-button-secondary,
  .ssp-topbar-actions .ssp-ghost-link,
  .ssp-hero-actions .ssp-button,
  .ssp-hero-actions .ssp-button-secondary {
    width: 100%;
    box-sizing: border-box;
  }

  .ssp-hero-actions,
  .ssp-form-actions,
  .ssp-topbar-actions {
    width: 100%;
  }

  .ssp-button,
  .ssp-button-secondary,
  .ssp-ghost-link,
  .ssp-inline-button,
  .ssp-table-action {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
  }

  .ssp-stat-card {
    padding: 16px;
  }

  .ssp-stat-card strong {
    font-size: 28px;
    margin: 8px 0 6px;
  }

  .ssp-quick-link {
    min-height: 96px;
    padding: 14px;
    border-radius: 16px;
  }

  .ssp-quick-link i {
    font-size: 20px;
  }

  .ssp-filter-bar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .ssp-chip {
    padding: 8px 12px;
    font-size: 13px;
  }

  .ssp-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .ssp-table,
  .ssp-table thead,
  .ssp-table tbody,
  .ssp-table tr,
  .ssp-table th,
  .ssp-table td {
    display: block;
  }

  .ssp-table {
    font-size: 14px;
  }

  .ssp-table thead {
    display: none;
  }

  .ssp-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .ssp-table tr {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(61, 106, 144, 0.12);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(19, 52, 79, 0.06);
    padding: 12px 14px;
  }

  .ssp-table td {
    padding: 0;
    border: 0;
    margin-bottom: 10px;
  }

  .ssp-table td:last-child {
    margin-bottom: 0;
  }

  .ssp-table td::before {
    display: block;
  }

  .ssp-table-action {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 520px) {
  .ssp-main {
    padding: 10px;
  }

  .ssp-topbar h1,
  .ssp-hero h2,
  .ssp-page-head h2 {
    font-size: 21px;
  }

  .ssp-hero,
  .ssp-panel,
  .ssp-form-card,
  .ssp-detail-card,
  .ssp-stat-card,
  .ssp-quick-link {
    padding: 12px;
  }

  .ssp-field input[type="text"],
  .ssp-field select,
  .ssp-field textarea {
    padding: 10px 11px;
    border-radius: 12px;
  }

  .ssp-nav-link {
    padding: 9px 11px;
    font-size: 13px;
  }

  .ssp-nav-link span {
    font-size: 13px;
  }

  .ssp-stat-card strong {
    font-size: 24px;
  }
}
