* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Bitstream Vera Sans', 'DejaVu Sans', Verdana, Arial, sans-serif;
  color: #2b2b2b;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(80, 120, 180, 0.25), transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(60, 100, 165, 0.15), transparent 55%),
    linear-gradient(160deg, #0a3a86 0%, #002a5e 45%, #001e4a 100%);
  background-attachment: fixed;
}

.k-page {
  max-width: 1100px;
  margin: 24px auto 40px;
  background: #ffffff;
  border: 1px solid #7b9bc0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.k-header {
  position: relative;
  height: 102px;
  background: linear-gradient(to bottom, #7eb4e0 0%, #4a85c4 45%, #3067a6 100%);
  border-bottom: 1px solid #1f4373;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.k-header__art {
  position: absolute;
  top: 0;
  right: 0;
  width: 430px;
  height: 131px;
  background-image: url('./assets/top-right-konqueror.png');
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
}

.k-header__text {
  position: relative;
  z-index: 1;
  padding: 26px 0 0 28px;
  max-width: 480px;
}

.k-header__title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.k-header__tagline {
  font-size: 13px;
  font-style: italic;
  color: #e8f0fe;
  margin: 4px 0 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.k-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 24px 0;
  margin: 0;
  list-style: none;
  background: #eaf1fb;
  border-bottom: 1px solid #b7c9de;
}

.k-nav__tab {
  display: inline-block;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #eaf1fb;
  background: linear-gradient(to bottom, #6f97c2, #4c76a8);
  border: 1px solid #3a5f8c;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  top: 1px;
}

.k-nav__tab:hover {
  background: linear-gradient(to bottom, #7fa4cc, #5c85b6);
}

.k-nav__tab.active {
  background: rgb(223, 231, 243);
  color: #2b4d75;
  border-color: #b7c9de;
  border-bottom: 1px solid rgb(223, 231, 243);
}

.k-box {
  margin: 0 24px 24px;
  border: 1px solid #b7c9de;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background-color: rgb(223, 231, 243);
  background-image: url('./assets/box-centre-konqueror.png');
  background-repeat: repeat;
  padding: 24px 28px;
}

.k-box__header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #b7c9de;
}

.k-box__header h1 {
  margin: 0;
  font-size: 20px;
  color: #12295a;
}

.k-box__header p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5a7897;
}

.k-section {
  background: #12295a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  margin: 22px 0 0;
  border-radius: 3px 3px 0 0;
}

.k-section:first-child {
  margin-top: 0;
}

.k-panel {
  border: 1px solid #b7c9de;
  border-top: none;
  background: #ffffff;
}

.k-panel__header {
  background: #4c76a8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}

.k-panel__body {
  padding: 16px;
  font-size: 13px;
  color: #333333;
}

.k-panel__body a {
  color: #1a4fa0;
}

.k-kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.k-kv tr:nth-child(odd) {
  background: #fff4c9;
}

.k-kv tr:nth-child(even) {
  background: #ffffff;
}

.k-kv td {
  padding: 7px 12px;
  border-bottom: 1px solid #eaeaea;
}

.k-kv td:first-child {
  font-weight: 700;
  color: #12295a;
  width: 140px;
}

.k-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 12px;
  border: 1px solid;
  margin-bottom: 14px;
  border-radius: 3px;
}

.k-alert--error {
  background: #ffecec;
  border-color: #cc4444;
  color: #8a0000;
}

.k-alert--success {
  background: #e8ffe8;
  border-color: #44aa44;
  color: #005500;
}

.k-alert--tip {
  background: #fff4c9;
  border-color: #d8c060;
  color: #5a4a00;
}

.k-alert__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url('./assets/lightning.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.k-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 12px;
}

.k-form-group label {
  font-weight: 700;
  color: #12295a;
}

.k-input,
.k-textarea {
  border: 1px solid #7a97b9;
  padding: 7px 8px;
  font-size: 12px;
  font-family: inherit;
  background: #ffffff;
  color: #222222;
}

.k-input--wide {
  width: 100%;
}

.k-textarea {
  min-height: 70px;
  resize: vertical;
  width: 100%;
}

.k-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(to bottom, #6f97c2, #4c76a8);
  border: 1px solid #3a5f8c;
  border-radius: 4px;
  cursor: pointer;
}

.k-btn:hover {
  background: linear-gradient(to bottom, #7fa4cc, #5c85b6);
}

.k-btn:active {
  background: linear-gradient(to bottom, #4c76a8, #3a5f8c);
}

.k-btn--sm {
  padding: 5px 10px;
  font-size: 11px;
}

.k-btn--success {
  background: linear-gradient(to bottom, #6fbf73, #3f9a44);
  border-color: #2e7d32;
}

.k-btn--success:hover {
  background: linear-gradient(to bottom, #7fcf83, #4faa54);
}

.k-btn--danger {
  background: linear-gradient(to bottom, #e57373, #c62828);
  border-color: #8e0000;
}

.k-btn--danger:hover {
  background: linear-gradient(to bottom, #ef8383, #d63838);
}

.k-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.k-subtab {
  padding: 7px 16px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #b7c9de;
  border-bottom: 2px solid transparent;
  background: #eef3fb;
  color: #12295a;
  border-radius: 3px 3px 0 0;
}

.k-subtab.active {
  background: #ffffff;
  border-bottom-color: #4c76a8;
  font-weight: 700;
}

.k-footer {
  height: 18px;
  background: linear-gradient(to right, #d7e4f5, #ffffff);
  border-top: 1px solid #b7c9de;
}

.k-search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.k-search-row .k-input {
  flex: 1;
}

.k-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #b7c9de;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 10px;
}

.k-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #eaf1fb;
  border: 1px solid #b7c9de;
  font-size: 18px;
  color: #12295a;
}

.k-card__body {
  flex: 1;
  min-width: 0;
}

.k-card__name {
  font-size: 13px;
  font-weight: 700;
  color: #12295a;
}

.k-card__desc {
  font-size: 12px;
  color: #666666;
  margin-top: 2px;
}

.k-card__meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #888888;
  margin-top: 8px;
}

.k-card__actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.k-entry {
  padding: 12px 0;
  border-bottom: 1px solid #dfe7f2;
}

.k-entry:last-child {
  border-bottom: none;
}

.k-entry__line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.k-entry__name {
  font-size: 12px;
  font-weight: 700;
  color: #12295a;
}

.k-entry__date {
  font-size: 11px;
  color: #999999;
}

.k-entry__msg {
  font-size: 12px;
  color: #333333;
  line-height: 1.5;
}

.k-qa {
  padding: 12px 0;
  border-bottom: 1px solid #dfe7f2;
}

.k-qa:last-child {
  border-bottom: none;
}

.k-qa__q {
  font-size: 12px;
  font-weight: 700;
  color: #12295a;
}

.k-qa__meta {
  font-size: 11px;
  color: #999999;
  margin-top: 2px;
  margin-bottom: 8px;
}

.k-qa__ans {
  border-left: 3px solid #4c76a8;
  padding-left: 10px;
}

.k-qa__ans-label {
  font-size: 11px;
  font-weight: 700;
  color: #12295a;
  margin-bottom: 2px;
}

.k-qa__ans p {
  font-size: 12px;
  color: #333333;
  line-height: 1.5;
  margin: 0;
}

.k-muted {
  color: #666666;
  font-size: 12px;
}

@keyframes k-jitter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.jitter-text span {
  display: inline-block;
  animation: k-jitter 0.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

@media (max-width: 720px) {
  .k-page {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .k-header {
    height: 96px;
  }

  .k-header__art {
    width: 300px;
    height: 96px;
    background-size: contain;
  }

  .k-header__text {
    padding-top: 18px;
    padding-left: 16px;
  }

  .k-header__title {
    font-size: 20px;
  }

  .k-nav {
    padding: 8px 12px 0;
  }

  .k-box {
    margin: 0 12px 16px;
    padding: 16px;
  }

  .k-search-row {
    flex-direction: column;
  }
}