:root {
  --khr-p-bg: #f2f4f3;
  --khr-p-surface: #fff;
  --khr-p-ink: #121816;
  --khr-p-muted: #5a6660;
  --khr-p-accent: #e30613;
  --khr-p-accent-dark: #b8050f;
  --khr-p-line: rgba(18, 24, 22, 0.1);
  --khr-p-max: 720px;
  --khr-appbar-h: 3.4rem;
  --khr-tabbar-h: 4.25rem;
  --khr-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

.khr-portal-body {
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 400;
  color: var(--khr-p-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(227, 6, 19, 0.08), transparent 55%),
    linear-gradient(180deg, #f8faf9 0%, var(--khr-p-bg) 40%);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

.khr-portal-body.has-app-nav {
  padding-bottom: calc(var(--khr-tabbar-h) + var(--khr-safe-bottom) + 0.5rem);
}

.khr-appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--khr-p-line);
  backdrop-filter: blur(12px);
}

.khr-appbar__inner,
.khr-topnav__inner,
.khr-portal-main {
  width: min(100% - 1.25rem, var(--khr-p-max));
  margin-inline: auto;
}

.khr-appbar__inner {
  min-height: var(--khr-appbar-h);
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
}

.khr-appbar__brand {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  text-decoration: none;
  color: inherit;
}

.khr-appbar__brand img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  display: block;
}

.khr-appbar__title {
  text-align: center;
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.khr-appbar__menu {
  position: relative;
  justify-self: end;
}

.khr-appbar__menu summary {
  list-style: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 400;
  cursor: pointer;
  background: #eef2f0;
}

.khr-appbar__menu summary::-webkit-details-marker {
  display: none;
}

.khr-appbar__menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(18, 24, 22, 0.12);
  padding: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.khr-appbar__menu-panel p {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: var(--khr-p-muted);
}

.khr-appbar__menu-panel a {
  text-decoration: none;
  color: var(--khr-p-ink);
  font-weight: 400;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
}

.khr-appbar__menu-panel a:hover {
  background: #f3f6f4;
}

.khr-appbar__menu-panel a.is-danger {
  color: var(--khr-p-accent);
}

.khr-topnav {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--khr-p-line);
}

.khr-topnav__inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.45rem 0;
}

.khr-topnav a {
  text-decoration: none;
  color: var(--khr-p-ink);
  font-weight: 400;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
  border-radius: 10px;
}

.khr-topnav a.is-active,
.khr-topnav a:hover {
  background: rgba(227, 6, 19, 0.08);
  color: var(--khr-p-accent);
}

.khr-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0.3rem;
  background: #e8ecea;
  border-radius: 14px;
}

.khr-segment__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  text-align: center;
  text-decoration: none;
  color: #4d5953;
  font-weight: 400;
  border-radius: 11px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.khr-segment__item.is-active {
  background: #fff;
  color: var(--khr-p-accent);
  box-shadow: 0 4px 14px rgba(18, 24, 22, 0.08);
  font-weight: 600;
}

.khr-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.35rem 0.35rem calc(0.35rem + var(--khr-safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--khr-p-line);
  backdrop-filter: blur(14px);
}

.khr-tabbar__item {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: #66736d;
  font-size: 0.68rem;
  font-weight: 400;
  padding: 0.35rem 0.15rem;
  border-radius: 12px;
}

.khr-tabbar__item.is-active {
  color: var(--khr-p-accent);
  background: rgba(227, 6, 19, 0.08);
}

.khr-portal-main {
  padding: 1rem 0 1.5rem;
}

.khr-portal-notice {
  margin-bottom: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
}

.khr-portal-notice.is-success {
  background: #edf8f0;
  color: #1e5b33;
}

.khr-portal-notice.is-error {
  background: #fdeceb;
  color: #8a1f1a;
}

.khr-portal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.khr-portal-header h1 {
  margin: 0.1rem 0 0.3rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
}

.khr-portal-header p,
.khr-portal-back {
  margin: 0;
  color: var(--khr-p-muted);
}

.khr-portal-back a {
  color: var(--khr-p-accent);
  text-decoration: none;
  font-weight: 400;
}

.khr-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  border: 0;
  border-radius: 14px;
  background: var(--khr-p-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
  font: inherit;
}

.khr-portal-btn:hover {
  background: var(--khr-p-accent-dark);
  color: #fff;
}

.khr-portal-btn.is-soft {
  background: #dfe8e3;
  color: #243830;
}

.khr-portal-btn.is-small {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.khr-portal-btn.is-block {
  width: 100%;
}

.khr-portal-link {
  color: var(--khr-p-accent);
  font-weight: 400;
  text-decoration: none;
}

.khr-portal-danger {
  color: #b32d2e;
  font-weight: 400;
  text-decoration: none;
}

/* Home / Dashboard */
.khr-home__hero {
  margin-bottom: 1rem;
}

.khr-home__eyebrow {
  margin: 0 0 0.2rem;
  color: var(--khr-p-accent);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.khr-home__hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.khr-home__hero p {
  margin: 0.35rem 0 0;
  color: var(--khr-p-muted);
  font-size: 0.95rem;
}

.khr-home__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.khr-home__stat {
  background: var(--khr-p-surface);
  border: 1px solid var(--khr-p-line);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(18, 24, 22, 0.04);
}

.khr-home__stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--khr-p-accent);
  letter-spacing: -0.03em;
}

.khr-home__stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--khr-p-muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.khr-home__stat.has-alert {
  border-color: rgba(227, 6, 19, 0.35);
  background: linear-gradient(180deg, #fff 0%, #fff6f6 100%);
}

.khr-home__primary {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #f01924 0%, #b8050f 100%);
  border-radius: 18px;
  padding: 1.05rem 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 12px 28px rgba(227, 6, 19, 0.22);
}

.khr-home__primary-title {
  font-weight: 400;
  font-size: 1.08rem;
}

.khr-home__primary-sub {
  opacity: 0.9;
  font-size: 0.88rem;
}

.khr-home__list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.khr-home__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  color: inherit;
  min-height: 64px;
}

.khr-home__row-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef3f0;
  color: #2f433b;
}

.khr-home__row-text {
  display: grid;
  gap: 0.1rem;
}

.khr-home__row-text strong {
  font-size: 0.98rem;
}

.khr-home__row-text small {
  color: var(--khr-p-muted);
  font-size: 0.82rem;
}

.khr-home__badge {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--khr-p-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 400;
}

.khr-install-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 0.85rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(227, 6, 19, 0.22);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.08);
}

.khr-install-card__copy strong {
  display: block;
  margin-bottom: 0.15rem;
}

.khr-install-card__copy p {
  margin: 0;
  color: var(--khr-p-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.khr-install-card__btn {
  min-width: 7.5rem;
}

.khr-install-card__dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--khr-p-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.khr-home__more,
.khr-home__help {
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 16px;
  padding: 0.15rem 0.85rem;
}

.khr-home__more + .khr-home__more,
.khr-home__help {
  margin-top: 0.55rem;
}

.khr-home__more summary,
.khr-home__help summary {
  cursor: pointer;
  font-weight: 400;
  padding: 0.85rem 0;
  list-style: none;
}

.khr-home__more summary::-webkit-details-marker,
.khr-home__help summary::-webkit-details-marker {
  display: none;
}

.khr-home__more-body {
  padding-bottom: 0.85rem;
}

.khr-portal-pwa__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.khr-portal-pwa__status {
  margin: 0 0 0.55rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: #1e5b33;
}

.khr-portal-pwa__status.is-error {
  color: #8a1f1a;
}

.khr-portal-pwa__list {
  margin: 0.2rem 0 0.7rem;
  padding-left: 1.1rem;
  color: var(--khr-p-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.khr-portal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.khr-portal-chips a {
  text-decoration: none;
  color: var(--khr-p-ink);
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 400;
  font-size: 0.9rem;
}

.khr-portal-chips a.is-active {
  background: var(--khr-p-accent);
  border-color: var(--khr-p-accent);
  color: #fff;
}

.khr-portal-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.khr-portal-card {
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 16px;
  overflow: hidden;
}

.khr-portal-card__media {
  aspect-ratio: 4 / 3;
  background: #1d2327;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #bbb;
}

.khr-portal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.khr-portal-card__body {
  padding: 0.9rem 1rem 1.05rem;
}

.khr-portal-card__body h2,
.khr-portal-list-item h2 {
  margin: 0.15rem 0 0.55rem;
  font-size: 1.05rem;
}

.khr-portal-card__meta {
  margin: 0;
  color: var(--khr-p-muted);
  font-size: 0.85rem;
}

.khr-portal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.khr-portal-panel {
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.15rem;
  margin-bottom: 0.85rem;
}

.khr-portal-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.khr-portal-form__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  position: sticky;
  bottom: calc(var(--khr-tabbar-h) + var(--khr-safe-bottom));
  background: rgba(242, 244, 243, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  z-index: 10;
}

.khr-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.khr-portal-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.khr-portal-field.is-full {
  grid-column: 1 / -1;
}

.khr-portal-field span {
  font-weight: 400;
  font-size: 0.92rem;
}

.khr-portal-editor .wp-editor-wrap,
.khr-portal-editor .mce-tinymce,
.khr-portal-editor .wp-editor-container {
  border-radius: 12px;
  overflow: hidden;
}

.khr-portal-editor .wp-media-buttons .button {
  min-height: 40px;
  border-radius: 10px !important;
  font-weight: 400;
}

.khr-portal-editor .wp-editor-tools {
  padding-top: 0.35rem;
}

.khr-portal-editor__hint {
  margin: 0.55rem 0 0;
  color: var(--khr-p-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.khr-portal-editor iframe {
  min-height: 260px !important;
}

.khr-portal-field input,
.khr-portal-field select,
.khr-portal-field textarea {
  width: 100%;
  border: 1px solid #8c8f94;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  font: inherit;
  background: #fff;
}

.khr-portal-media .khr-thumb-box__preview {
  aspect-ratio: 1;
  max-width: 220px;
  border: 1px dashed #c3c4c7;
  border-radius: 12px;
  background: #f6f7f7;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0.5rem 0;
}

.khr-portal-media .khr-thumb-box__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.khr-gallery__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.khr-gallery__item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.khr-portal-table-wrap {
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 16px;
  overflow: auto;
}

.khr-portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.khr-portal-table th,
.khr-portal-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--khr-p-line);
  vertical-align: top;
}

.khr-portal-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
}

.khr-portal-pill--neu {
  background: #fdeceb;
  color: #8a1f1a;
}

.khr-portal-pill--in_bearbeitung {
  background: #fff4df;
  color: #8a5a00;
}

.khr-portal-pill--vermittelt,
.khr-portal-pill--abgeschlossen,
.khr-portal-pill--erledigt {
  background: #edf8f0;
  color: #1e5b33;
}

.khr-portal-pill--abgelehnt {
  background: #f1f1f1;
  color: #5c5c5c;
}

.khr-inquiry-list {
  display: grid;
  gap: 0.7rem;
}

.khr-inquiry-card {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.8rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 16px;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 18px rgba(18, 24, 22, 0.04);
}

.khr-inquiry-card__media {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eee9;
  display: grid;
  place-items: center;
}

.khr-inquiry-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.khr-inquiry-card__placeholder {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #c5d2ca;
}

.khr-inquiry-card__body {
  min-width: 0;
}

.khr-inquiry-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

.khr-inquiry-card__top time {
  color: var(--khr-p-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.khr-inquiry-card__cat {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.15rem;
  overflow-wrap: anywhere;
}

.khr-inquiry-card__from,
.khr-inquiry-card__excerpt,
.khr-inquiry-card__reason {
  margin: 0.15rem 0 0;
  color: var(--khr-p-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.khr-inquiry-card__reason {
  font-weight: 400;
}

.khr-inquiry-card__reason.is-success {
  color: #1e5b33;
}

.khr-inquiry-card__reason.is-reject {
  color: #6b6b6b;
}

.khr-portal-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.35rem 0 0.85rem;
  font-weight: 400;
}

.khr-portal-field__hint {
  color: var(--khr-p-muted);
  font-size: 0.82rem;
}

.khr-portal-hub-badge {
  margin: 0.35rem 0 0;
  color: var(--khr-p-muted);
  font-size: 0.92rem;
}

.khr-inquiry-links {
  margin-top: 0.65rem;
}

.khr-reply-log {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.khr-reply-log h3 {
  margin: 0;
  font-size: 1rem;
}

.khr-reply-log__item {
  background: #f6f8f7;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}

.khr-reply-log__meta {
  margin: 0 0 0.35rem;
  color: var(--khr-p-muted);
  font-size: 0.82rem;
}

.khr-portal-message {
  background: #f6f7f7;
  border-radius: 12px;
  padding: 1rem;
  line-height: 1.6;
}

.khr-portal-list {
  display: grid;
  gap: 0.65rem;
}

.khr-portal-list-item {
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
}

.khr-portal-list-thumb {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.khr-portal-actions {
  display: grid;
  gap: 0.55rem;
}

.khr-portal-login {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.khr-portal-login__card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--khr-p-line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 18px 40px rgba(18, 24, 22, 0.08);
}

.khr-portal-login__card h1 {
  margin: 0 0 0.35rem;
}

.khr-portal-login__card form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.khr-portal-login__card label {
  display: grid;
  gap: 0.35rem;
  font-weight: 400;
}

.khr-portal-login__card input[type="text"],
.khr-portal-login__card input[type="password"] {
  border: 1px solid #8c8f94;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  font: inherit;
}

.khr-portal-login__remember {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400 !important;
}

.khr-portal-footer {
  text-align: center;
  color: var(--khr-p-muted);
  font-size: 0.82rem;
  padding: 0.35rem 1rem 1rem;
}

.khr-portal-footer a {
  color: inherit;
}

@media (min-width: 860px) {
  :root {
    --khr-p-max: 980px;
  }

  .khr-portal-body.has-app-nav {
    padding-bottom: 0;
  }

  .khr-tabbar {
    display: none;
  }

  .khr-topnav {
    display: block;
  }

  .khr-appbar__inner {
    grid-template-columns: auto 1fr auto;
  }

  .khr-appbar__brand {
    width: auto;
    justify-content: start;
  }

  .khr-appbar__brand img {
    width: auto;
    height: 2.4rem;
    max-width: 150px;
  }

  .khr-appbar__title {
    text-align: left;
    padding-left: 0.5rem;
  }

  .khr-home__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .khr-portal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .khr-portal-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .khr-portal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .khr-portal-form__footer {
    bottom: 0;
  }

  .khr-install-card {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 560px) {
  .khr-portal-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .khr-install-card {
    grid-template-columns: 1fr;
  }

  .khr-install-card__btn {
    width: 100%;
  }
}
