/*
 * KI catalog template shell styles.
 */

:root {
  --page-bg: #ffffff;
  --panel-bg: #f4f4f4;
  --panel-border: #e5e7eb;
  --text-main: #2f3439;
  --text-subtle: #68727d;
  --link: #ef4138;
  --link-hover: #c72d26;
  --backdrop: rgba(31, 31, 33, 0.72);
  --modal-bg: #ffffff;
  --modal-border: rgba(15, 23, 42, 0.1);
  --modal-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  --modal-shadow-dragging: 0 18px 42px rgba(15, 23, 42, 0.18);
  --radius: 0;
}

html[data-template-theme="ki"] {
  background: #ffffff;
}

html[data-template-theme="ki"] body {
  background: #ffffff;
  color: var(--text-main);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 48px 24px 64px;
}

html[data-template-theme="ki"] body .shell {
  width: min(560px, calc(100vw - 48px));
  max-width: 560px;
  gap: 0;
}

html[data-template-theme="ki"] body .intro {
  padding: 22px 28px;
  background: #2d2d2f;
  color: #ffffff;
  gap: 5px;
}

html[data-template-theme="ki"] body .eyebrow {
  color: #b8d6ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

html[data-template-theme="ki"] body h1 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

html[data-template-theme="ki"] body .lede {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

html[data-template-theme="ki"] body .panel {
  padding: 28px;
  border-radius: 2px;
  background: #f4f4f4;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-template-theme="ki"] body .panel-head {
  margin: 0 0 10px;
  padding: 0;
}

html[data-template-theme="ki"] body .panel-title {
  display: inline-flex;
  align-items: center;
  color: #465260;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

html[data-template-theme="ki"] body .panel-title::after {
  content: "1";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f0f1f2;
  color: #8a929b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

html[data-template-theme="ki"] body .panel-copy {
  margin: 4px 0 0;
  color: #4f5b66;
  font-size: 14px;
  line-height: 1.3;
}

html[data-template-theme="ki"] body .panel-version,
html[data-template-theme="ki"] body .modal-version {
  color: #8aaec6;
  font-weight: 800;
  letter-spacing: 0.08em;
}

html[data-template-theme="ki"] body .configurator-list {
  display: grid;
  gap: 10px;
}

html[data-template-theme="ki"] body .configurator-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 18px 22px;
  border: none;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

html[data-template-theme="ki"] body .configurator-name {
  margin: 0;
  color: #465260;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.12;
}

html[data-template-theme="ki"] body .configurator-meta {
  margin: 4px 0 0;
  color: #4f5b66;
  font-size: 12px;
  line-height: 1.3;
  word-break: break-all;
}

html[data-template-theme="ki"] body .configurator-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid #555b61;
  border-radius: 2px;
  background: #ffffff;
  color: #39424c;
  box-shadow: inset 0 0 0 1px #555b61;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

html[data-template-theme="ki"] body .configurator-link:hover,
html[data-template-theme="ki"] body .configurator-link:focus-visible {
  border-color: #2d2d2f;
  background: #f7f7f7;
  color: #2d2d2f;
  text-decoration: none;
}

html[data-template-theme="ki"] body .modal-window {
  border-radius: 2px;
}

html[data-template-theme="ki"] body .modal-header {
  background: #2d2d2f;
  border-bottom: none;
  color: #ffffff;
}

html[data-template-theme="ki"] body .modal-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

html[data-template-theme="ki"] body .modal-subtitle,
html[data-template-theme="ki"] body .modal-version {
  color: rgba(255, 255, 255, 0.72);
}

html[data-template-theme="ki"] body .modal-close,
html[data-template-theme="ki"] body .modal-theme-toggle {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

html[data-template-theme="ki"] body .modal-close:hover,
html[data-template-theme="ki"] body .modal-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
  html[data-template-theme="ki"] body {
    padding: 24px 18px 42px;
  }

  html[data-template-theme="ki"] body .shell {
    width: 100%;
  }

  html[data-template-theme="ki"] body .configurator-item {
    grid-template-columns: 1fr;
  }

  html[data-template-theme="ki"] body .configurator-link {
    width: 100%;
  }
}
