:root {
  --sfgz-cyan: #009ee0;
  --sfgz-bg: #ffffff;
  --sfgz-text: #000000;
  --sfgz-white: #ffffff;
}

html {
  height: 100%;
}

body {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  color: #000000;
  font-family: Arial, sans-serif;
}

.site-main {
  flex: 1 1 auto;
  min-height: auto;
  overflow: visible;
  padding-bottom: 96px;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: 0 !important;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 1030;
}

.print-stamp {
  display: none;
}

.error-main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.error-shell {
  display: grid;
  gap: 22px;
}

.error-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 24px;
  align-items: center;
  padding: 34px 38px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #009ee0 0%, #0b8bc2 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 119, 170, 0.18);
}

.error-code {
  margin: 0 0 10px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.94rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.error-title {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.error-text {
  margin: 14px 0 0;
  max-width: 680px;
  font-size: 1.04rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.error-hero__art {
  display: flex;
  justify-content: center;
}

.error-icon {
  width: min(100%, 220px);
  height: auto;
  display: block;
}

.error-panel {
  padding: 28px 30px;
  border: 1px solid rgba(0, 158, 224, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  box-shadow: 0 14px 34px rgba(15, 52, 67, 0.08);
}

.error-panel__title {
  margin: 0;
  color: #0d1f29;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.7rem;
  line-height: 1.06;
}

.error-panel__text,
.error-panel__support {
  margin: 12px 0 0;
  color: #48616f;
  font-size: 1rem;
  line-height: 1.55;
}

.error-panel__support a {
  color: #009ee0;
  font-family: "Arial Black", Arial, sans-serif;
  text-decoration: none;
}

.error-panel__support a:hover,
.error-panel__support a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.legal-shell {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.legal-page-header {
  margin-bottom: 18px;
}

.legal-page-home-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.legal-page-home-link:hover,
.legal-page-home-link:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.legal-page-shell {
  min-height: auto;
  width: min(1512px, 100%);
  min-width: 0;
  padding-bottom: 160px;
}

.legal-page .home-main {
  width: min(1512px, 100vw);
  min-height: auto;
}

.legal-page .home-shell {
  width: min(1512px, 100%);
  min-height: auto;
}

.legal-header {
  display: grid;
  gap: 10px;
  padding: 28px 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, #009ee0 0%, #0b8bc2 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(0, 89, 129, 0.16);
}

.legal-kicker {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-title {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.legal-lead {
  margin: 0;
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.legal-card {
  padding: 24px 28px;
  border: 1px solid rgba(0, 158, 224, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  box-shadow: 0 12px 28px rgba(15, 52, 67, 0.08);
}

.legal-card h2 {
  margin: 0 0 10px;
  color: #0d1f29;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.legal-card p {
  margin: 0;
  color: #35505f;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-card a {
  color: #009ee0;
  text-decoration: none;
}

.legal-card a:hover,
.legal-card a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.legal-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: #35505f;
}

.legal-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.home-figma-page {
  background: var(--sfgz-bg);
  color: var(--sfgz-text);
}

.home-main {
  width: min(1512px, 100vw);
  min-height: 1274px;
  margin: 0 auto;
  padding: 0;
}

.home-shell {
  position: relative;
  width: 1512px;
  min-height: 1274px;
  margin: 0 auto;
}

.home-toast-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: min(90vw, 520px);
  transform: translate(-50%, -50%);
}

.home-toast-message {
  margin: 0;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.home-header {
  position: relative;
  height: 176px;
}

.home-header-brand-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-header-brand-link:hover,
.home-header-brand-link:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.home-title-row {
  position: static;
}

.home-brand {
  position: absolute;
  left: 15px;
  top: 16px;
  margin: 0;
}

.home-brand-logo {
  width: 446px;
  height: 87px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.home-brand-title {
  position: absolute;
  left: 133px;
  top: 64px;
  width: 760px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  color: #000000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 50px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
}

.site-nav-brand__logo {
  width: 176px;
  height: auto;
  display: block;
  object-fit: contain;
}

.site-nav-brand__title {
  color: #000000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.site-page-header {
  width: min(1512px, 100vw);
  margin: 0 auto;
  padding: 18px 16px 6px;
}

.site-page-header__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.site-page-header__link:hover,
.site-page-header__link:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.site-page-header__logo {
  width: 220px;
  height: auto;
  display: block;
  object-fit: contain;
}

.site-page-header__title {
  color: #000000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.02;
  white-space: nowrap;
}

.home-search {
  position: absolute;
  top: 62px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 76px;
  z-index: 12;
}

.home-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.24s ease,
    visibility 0.24s ease;
  cursor: pointer;
}

.home-search-toggle:hover,
.home-search-toggle:focus-visible {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 10px 18px rgba(0, 158, 224, 0.2));
  outline: none;
}

.home-search-toggle-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.home-search.is-open .home-search-toggle {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.88);
  pointer-events: none;
}

.home-search-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px 0 30px;
  overflow: hidden;
  border: 3px solid #009ee0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 89, 129, 0.08);
  transform: scaleX(0.2);
  transform-origin: right center;
  opacity: 0;
  transition:
    max-height 0.32s ease,
    border-color 0.2s ease,
    opacity 0.24s ease,
    transform 0.32s ease,
    visibility 0.24s ease;
  pointer-events: none;
  max-height: 0;
  visibility: hidden;
}

.home-search.is-open .home-search-panel {
  max-height: 64px;
  transform: scaleX(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.home-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #46545d;
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  outline: none;
}

.home-search-input::placeholder {
  color: #c4c8cc;
  letter-spacing: 0.08em;
}

.home-search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-height: 880px;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid rgba(0, 158, 224, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 250, 253, 0.98) 100%);
  box-shadow: 0 20px 42px rgba(0, 89, 129, 0.14);
  z-index: 14;
  overflow: hidden;
}

.home-search-results-meta {
  margin: 0 0 10px;
  color: #275166;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 820px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 158, 224, 0.55) rgba(224, 241, 248, 0.8);
}

.home-search-results-list::-webkit-scrollbar {
  width: 10px;
}

.home-search-results-list::-webkit-scrollbar-track {
  background: rgba(224, 241, 248, 0.8);
  border-radius: 999px;
}

.home-search-results-list::-webkit-scrollbar-thumb {
  background: rgba(0, 158, 224, 0.55);
  border-radius: 999px;
  border: 2px solid rgba(224, 241, 248, 0.8);
}

.home-search-results-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 158, 224, 0.75);
}

.home-search-result {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  color: #102734;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(9, 72, 100, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-search-result:hover,
.home-search-result:focus-visible {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #ffffff 0%, #eef9fe 100%);
  box-shadow: 0 18px 36px rgba(9, 72, 100, 0.12);
  outline: none;
}

.home-search-result__title {
  color: #009ee0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.home-search-result__tile {
  color: #0e516f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-search-result__snippet {
  color: #45606f;
  font-size: 0.88rem;
  line-height: 1.4;
}

.home-search-highlight {
  color: #009ee0;
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 480px);
  justify-content: start;
  gap: 10px;
  margin-left: 22px;
}

.home-tile {
  position: relative;
  width: 480px;
  height: 310px;
  background: #fff;
  overflow: hidden;
}

.home-tile-link {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 310px;
  padding: 24px;
  text-align: center;
  color: var(--sfgz-white);
  text-decoration: none;
  background: #fff;
}

.home-tile-default {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: inherit;
  justify-content: inherit;
  background: var(--sfgz-cyan);
  opacity: 1;
  transition: opacity 0.12s linear;
}

.home-tile-link--v-top {
  justify-content: flex-start;
  padding-top: 28px;
}

.home-tile-link--v-center {
  justify-content: center;
}

.home-tile-link--v-bottom {
  justify-content: flex-end;
  padding-bottom: 28px;
}

.home-tile-link--h-left {
  align-items: flex-start;
  text-align: left;
}

.home-tile-link--h-center {
  align-items: center;
  text-align: center;
}

.home-tile-link--h-right {
  align-items: flex-end;
  text-align: right;
}

.home-empty-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 600;
}

.home-tile-title {
  margin: 0;
  width: 329px;
  color: var(--sfgz-white);
  text-align: center;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 45px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  position: relative;
  z-index: 2;
}

.home-tile-hover-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #009ee0;
  clip-path: polygon(
    0% 99.49%,
    10.13% 99.49%,
    76.16% 100%,
    100% 63.51%,
    100% 0%,
    89.70% 0%,
    23.98% 0%,
    0% 35.66%
  );
  opacity: 0;
  transition: opacity 0.12s linear;
  pointer-events: none;
}

.home-tile:hover .home-tile-hover-layer,
.home-tile:focus-within .home-tile-hover-layer {
  opacity: 1;
}

.home-tile:hover .home-tile-default,
.home-tile:focus-within .home-tile-default {
  opacity: 0;
}

.home-tile-hover-text {
  position: absolute;
  top: 35px;
  left: 96px;
  width: 292px;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-tile-hover-line {
  margin: 0;
  display: inline-grid;
  grid-template-columns: 22px auto;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  color: #fff;
  text-align: center;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 27px;
  font-style: normal;
  font-weight: 900;
  line-height: 40px;
}

.home-tile-hover-lock-slot {
  width: 22px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-tile-hover-lock {
  width: 16px;
  height: auto;
  flex: 0 0 auto;
  display: block;
}

.home-tile-hover-line-text {
  display: inline-block;
}

/* Kachel 2: eigener Hover-Effekt laut Figma */
.home-tile-hover-layer--tile-2 {
  clip-path: none;
  background: transparent;
}

.home-tile-hover-shape-tile2 {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-tile-hover-shape-tile2__pill {
  position: absolute;
  left: 0;
  right: 0;
  height: 52%;
  border-radius: 999px;
  background: #009ee0;
}

.home-tile-hover-shape-tile2__pill--top {
  top: 0;
}

.home-tile-hover-shape-tile2__pill--bottom {
  bottom: 0;
}

.home-tile-hover-shape-tile2::before,
.home-tile-hover-shape-tile2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.home-tile-hover-shape-tile2::before {
  left: -28px;
}

.home-tile-hover-shape-tile2::after {
  right: -28px;
}

.home-tile-hover-text--tile-2 {
  width: 362px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Kachel 3: Prismaform laut Figma */
.home-tile-hover-layer--tile-3 {
  clip-path: none;
  background: #fff;
  box-sizing: border-box;
}

.home-tile-hover-shape-tile3 {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-tile-hover-shape-tile3__column {
  position: absolute;
  top: 0;
  width: 162px;
  height: 313px;
  background: #009ee0;
  clip-path: polygon(47.25% 0%, 0% 14.39%, 0% 86.03%, 52.75% 99.84%, 100% 86.03%, 100% 14.39%);
}

.home-tile-hover-shape-tile3__column:nth-child(1) {
  left: 0;
  clip-path: polygon(47.25% 0%, 0% 14.39%, 0% 88.40%, 52.75% 99.84%, 100% 85.78%, 100% 14.39%);
}

.home-tile-hover-shape-tile3__column:nth-child(2) {
  left: 159px;
}

.home-tile-hover-shape-tile3__column:nth-child(3) {
  left: 318px;
}

.home-tile-hover-text--tile-3 {
  top: 88px;
  left: 26px;
  width: 428px;
  height: 138px;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}

.home-tile-hover-line--tile-3 {
  display: flex;
  grid-template-columns: none;
  width: 100%;
  justify-content: center;
  column-gap: 0;
  justify-content: center;
}

.home-tile-hover-line-text--tile-3 {
  color: #fff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 2rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

/* Kachel 4: bleibt wie aktuell umgesetzt */
.home-tile-hover-layer--tile-4 {
  clip-path: none;
  background: transparent;
}

.home-tile-hover-shape-tile4 {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-tile-hover-shape-tile4__column {
  position: absolute;
  top: 0;
  width: 160px;
  height: 312px;
  background: #009ee0;
  border-radius: 80px;
}

.home-tile-hover-shape-tile4__column:nth-child(1) {
  left: 0;
}

.home-tile-hover-shape-tile4__column:nth-child(2) {
  left: 160px;
}

.home-tile-hover-shape-tile4__column:nth-child(3) {
  left: 320px;
}

.home-tile-hover-text--tile-4 {
  top: 99px;
  left: 54px;
  width: 374px;
  height: 120px;
  justify-content: flex-start;
  gap: 0;
  z-index: 2;
}

.home-tile-hover-layer--tile-5,
.home-tile-hover-layer--tile-6,
.home-tile-hover-layer--tile-7,
.home-tile-hover-layer--tile-9 {
  clip-path: none;
  background: transparent;
}

.home-tile-hover-layer--tile-8 {
  clip-path: none;
  background: #fff;
}

.home-tile-hover-shape-tile5,
.home-tile-hover-shape-tile6,
.home-tile-hover-shape-tile7,
.home-tile-hover-shape-tile8,
.home-tile-hover-shape-tile9 {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-tile-hover-shape-tile5 {
  position: absolute;
  inset: 0;
  background: #009ee0;
  border-radius: 0 156px 0 0;
  overflow: hidden;
}

.home-tile-hover-shape-tile5::before {
  content: "";
  position: absolute;
  left: -144px;
  bottom: -38px;
  width: 292px;
  height: 292px;
  border-radius: 50%;
  background: #fff;
}

.home-tile-hover-text--tile-5 {
  top: 72px;
  left: 118px;
  width: 246px;
  height: 164px;
  justify-content: flex-start;
  gap: 0;
  z-index: 2;
}

.home-tile--tile-9 .home-tile-hover-shape-tile5 {
  border-radius: 0 150px 0 0;
}

.home-tile--tile-9 .home-tile-hover-shape-tile5::before {
  left: -124px;
  bottom: -82px;
  width: 260px;
  height: 260px;
}

.home-tile--tile-9 .home-tile-hover-text--tile-5 {
  top: 86px;
  left: 132px;
  width: 220px;
  height: 126px;
  justify-content: center;
}

.home-tile-hover-shape-tile6__half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 155px;
  background: #009ee0;
}

.home-tile-hover-shape-tile6__half--top {
  top: 0;
  border-radius: 0 0 90px 0;
}

.home-tile-hover-shape-tile6__half--bottom {
  bottom: 0;
  border-radius: 90px 0 0 0;
}

.home-tile-hover-text--tile-6 {
  top: 54px;
  left: 105px;
  width: 275px;
  height: 160px;
  justify-content: flex-start;
  gap: 0;
  z-index: 2;
}

.home-tile-hover-shape-tile7 {
  background: #009ee0;
  border-radius: 0 150px 150px 150px;
}

.home-tile-hover-text--tile-7 {
  top: 54px;
  left: 96px;
  width: 288px;
  height: 160px;
  justify-content: flex-start;
  gap: 0;
  z-index: 2;
}

.home-tile-hover-shape-tile8__band {
  position: absolute;
  left: 0;
  width: 100%;
  background: #009ee0;
}

.home-tile-hover-shape-tile8__band--top {
  top: 0;
  height: 155.427px;
  border-radius: 100px 100px 0 100px;
}

.home-tile-hover-shape-tile8__band--bottom {
  bottom: 0;
  height: 154.573px;
  border-radius: 0 100px 100px 100px;
}

.home-tile-hover-shape-tile8::before,
.home-tile-hover-shape-tile8::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 72px;
  height: 72px;
  margin-top: -36px;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
}

.home-tile-hover-shape-tile8::before {
  left: 12px;
}

.home-tile-hover-shape-tile8::after {
  right: 12px;
}

.home-tile-hover-text--tile-8 {
  top: 54px;
  left: 117px;
  width: 249px;
  height: 160px;
  justify-content: flex-start;
  gap: 0;
  z-index: 3;
}

.home-tile-hover-shape-tile9__column {
  position: absolute;
  top: 0;
  width: 160px;
  height: 310px;
  background: #009ee0;
  border-radius: 30px;
}

.home-tile-hover-shape-tile9__column:nth-child(1) {
  left: 0;
}

.home-tile-hover-shape-tile9__column:nth-child(2) {
  left: 160px;
}

.home-tile-hover-shape-tile9__column:nth-child(3) {
  left: 320px;
}

.home-tile-hover-shape-tile9 {
  background: transparent;
  border-radius: 0;
}

.home-tile-hover-text--tile-9 {
  top: 38px;
  left: 104px;
  width: 276px;
  height: 184px;
  justify-content: flex-start;
  gap: 0;
  z-index: 2;
}


.home-footer {
  display: grid;
  grid-template-columns: repeat(3, 480px);
  justify-content: start;
  align-items: start;
  gap: 10px;
  margin-top: 29px;
  margin-left: 22px;
  padding: 0;
}

.home-footer section {
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

.home-footer-section--address {
  width: 480px;
  height: 343px;
  text-align: left;
}

.home-footer-section--address .home-footer-title,
.home-footer-section--address .home-footer-text {
  padding-left: 0;
}

.home-footer-section--support {
  width: 480px;
  height: 219px;
  text-align: left;
}

.home-footer-section--support .home-footer-title,
.home-footer-section--support .home-footer-text {
  padding-left: 0;
}

.home-footer-section--links {
  width: 480px;
  box-sizing: border-box;
  height: 110px;
  display: flex;
  align-items: flex-start;
}

.home-footer-title {
  margin: 0;
  padding: 0 19px 0 16px;
  color: #000000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.home-footer-text,
.home-footer-links {
  margin: 0;
}

.home-footer-text {
  margin: 0;
  padding: 0 19px 0 16px;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.home-footer-section--links .home-footer-links {
  width: 438px;
  height: 110px;
  margin: 0;
  padding: 0 19px 0 16px;
  color: #009ee0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.home-footer-auth-form {
  margin: 0;
}

.home-footer-section--links .home-footer-auth-link,
.home-footer-auth-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #009ee0;
  text-decoration: none;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.home-footer-section--links .home-footer-auth-link {
  margin-left: 0;
}

.home-footer-auth-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-footer-section--links .home-footer-auth-link:hover,
.home-footer-auth-button:hover {
  text-decoration: underline;
}

.home-footer-messages {
  margin-top: 12px;
  padding: 0 19px 0 16px;
}

.home-footer-messages .alert {
  font-size: 0.95rem;
}

.home-impressum-link {
  color: #009ee0;
  text-decoration: none;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.home-impressum-link:hover {
  text-decoration: underline;
}

.home-footer-lock {
  width: 14px;
  height: auto;
  margin-left: -1px;
  vertical-align: baseline;
  flex: 0 0 auto;
  display: block;
}

.hero-box,
.content-box,
.tile-card {
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
}

.hero-box {
  padding: 1.25rem;
}

.tile-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 52, 102, 0.12);
}

.tile-hover-topics {
  display: grid;
  gap: 0.35rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.tile-card:hover .tile-hover-topics,
.tile-card:focus-within .tile-hover-topics {
  max-height: 200px;
  opacity: 1;
}

.tile-topic-link {
  color: #212529;
  text-decoration: none;
  font-size: 0.95rem;
}

.tile-topic-link:hover {
  color: #0d6efd;
}

.topic-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.topic-path-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #212529;
  text-decoration: none;
  font-weight: 500;
}

.topic-path-link.active {
  color: #0d6efd;
}

.topic-lock-icon {
  width: 12px;
  height: auto;
}

.topic-lock-icon--heading {
  width: 14px;
  margin-right: 6px;
  vertical-align: baseline;
}

.topic-sep {
  color: #6c757d;
}

.richtext-content p:last-child {
  margin-bottom: 0;
}

.detail-page {
  background: #ffffff;
  color: #000000;
}

.detail-main {
  width: min(1512px, 100vw);
  min-height: auto;
  height: auto;
  margin: 0 auto;
  padding: 0;
}

.detail-shell {
  box-sizing: border-box;
  width: min(1512px, 100%);
  min-height: auto;
  height: auto;
  margin: 0;
  padding: 41px 0 160px;
  background: #ffffff;
  overflow: visible;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-left: 19px;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 37px;
  flex: 0 0 auto;
}

.detail-back-icon {
  width: 41px;
  height: auto;
  display: block;
  clip-path: inset(10% 0 0 0);
  transform: translateY(12px) scale(1.06);
  transform-origin: center;
}

.detail-header-copy {
  max-width: 1200px;
}

.detail-tile-title {
  margin: 0 0 2px;
  color: #009ee0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 45px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.detail-topic-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  max-width: 1180px;
}

.detail-topic-link,
.detail-topic-sep {
  color: #000000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 23.1px;
  font-style: normal;
  font-weight: 900;
  line-height: 30.8px;
  text-decoration: none;
}

.detail-topic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-topic-link--button {
  padding: 0;
  border: 0;
  background: transparent;
}

.detail-topic-link.is-active {
  color: #009ee0;
}

.detail-topic-lock {
  width: 13px;
  height: 17px;
  flex: 0 0 auto;
  display: block;
}

.detail-topic-lock--heading {
  margin-top: 5px;
}

.detail-content {
  width: 927px;
  margin-top: 34px;
  margin-left: 69px;
}

.detail-content--accordion {
  width: 1100px;
}

.detail-content--software {
  width: min(1040px, calc(100vw - 140px));
}

.detail-topic-title {
  margin: 0 0 22px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 35.67px;
  font-style: normal;
  font-weight: 900;
  line-height: 23.78px;
}

.detail-richtext {
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 19.817px;
  font-style: normal;
  font-weight: 400;
  line-height: 23.78px;
}

.detail-richtext h1,
.detail-richtext h2,
.detail-richtext h3,
.detail-richtext h4,
.detail-richtext h5,
.detail-richtext h6,
.detail-richtext strong,
.detail-richtext b {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
}

.detail-richtext p {
  margin: 0 0 18px;
}

.detail-richtext p:last-child {
  margin-bottom: 0;
}

.detail-topic-updated {
  margin: 18px 0 0;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.45;
}

.detail-richtext a {
  color: #000;
  text-decoration-line: underline;
}

.detail-accordion {
  display: grid;
  gap: 22px;
}

.detail-accordion--after-copy {
  margin-top: 34px;
}

.detail-accordion__item {
  border-top: 2px solid #000;
}

.detail-accordion__item--flat {
  border-top-width: 2px;
}

.detail-accordion__trigger {
  width: 100%;
  padding: 16px 0 12px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 23.1px;
  font-weight: 900;
  line-height: 30px;
  text-align: left;
  cursor: pointer;
}

.detail-accordion__panel {
  padding: 10px 0 0;
}

.detail-topic-lock--accordion {
  margin-top: 2px;
}

.detail-accordion__topic-list {
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  display: grid;
  gap: 0;
}

.detail-accordion__topic-item {
  border-bottom: 2px solid #000;
}

.detail-accordion__topic-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 8px;
  color: #000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 23.1px;
  font-weight: 900;
  line-height: 30px;
  text-decoration: none;
}

.detail-accordion__topic-link--flat {
  width: 100%;
}

.detail-accordion__topic-link.is-active {
  color: #009ee0;
}

.detail-accordion-topic {
  margin-top: 26px;
}

.detail-software-accordion {
  width: 100%;
  margin-top: 30px;
  background: #fff;
  border-top: 2px solid #000000;
}

.detail-software-accordion__list {
  display: grid;
  gap: 0;
}

.detail-software-accordion__item {
  border-bottom: 2px solid #000000;
}

.detail-software-accordion__title {
  width: 100%;
  padding: 12px 0 10px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease;
}

.detail-software-accordion__title:hover,
.detail-software-accordion__title:focus-visible {
  color: #009ee0;
}

.detail-software-accordion__title.is-active {
  color: #009ee0;
}

.detail-software-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.detail-software-accordion__content .detail-richtext {
  padding: 2px 0 20px;
}

.detail-software-accordion__locked {
  margin: 0;
  padding: 2px 0 20px;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 19.817px;
  line-height: 23.78px;
}

.detail-content--software .detail-richtext {
  max-width: 56rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.detail-content--software .detail-attachments {
  margin-top: 22px;
}

.detail-attachments {
  margin-top: 28px;
}

.detail-attachments-title {
  margin: 0 0 10px;
  color: #000;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 19.817px;
  font-style: normal;
  font-weight: 900;
  line-height: 23.78px;
}

.detail-attachments-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.detail-attachments-list a,
.detail-empty-text {
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 19.817px;
  font-style: normal;
  font-weight: 400;
  line-height: 23.78px;
}

.detail-attachment-card {
  padding: 16px 16px 18px;
  border: 1px solid rgba(0, 158, 224, 0.18);
  border-radius: 20px;
  background: #fff;
}

.detail-attachment-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-attachment-card__name {
  min-width: 0;
  word-break: break-word;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.detail-attachment-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.detail-attachment-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 132px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 158, 224, 0.25);
  border-radius: 999px;
  background: #fff;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
  text-decoration: none;
}

.detail-attachment-download:hover,
.detail-attachment-download:focus-visible {
  border-color: #009ee0;
  box-shadow: 0 0 0 4px rgba(0, 158, 224, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.detail-attachment-download--secondary {
  min-width: 122px;
}

.detail-attachment-download__icon {
  width: 17px;
  height: 17px;
  display: block;
}

.detail-attachment-download__label {
  color: #009ee0;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.detail-attachment-preview {
  display: block;
  width: 100%;
  border: 1px solid rgba(0, 158, 224, 0.12);
  border-radius: 16px;
  background: #fff;
}

.detail-attachment-preview-link {
  display: block;
  text-decoration: none;
}

.detail-attachment-preview-link--pdf {
  color: inherit;
}

.detail-attachment-preview--image {
  width: auto !important;
  max-width: min(100%, 820px) !important;
  height: auto !important;
  max-height: 62vh !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.detail-attachment-preview--pdf {
  width: 100% !important;
  height: 680px;
}

.detail-attachment-open {
  color: #009ee0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.detail-attachment-open:hover,
.detail-attachment-open:focus-visible {
  text-decoration: underline;
}

.detail-attachment-pdf-fallback {
  display: grid;
  place-items: center;
  min-height: 680px;
  padding: 24px;
  text-align: center;
  color: #183442;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  background: rgba(0, 158, 224, 0.05);
  border-radius: 16px;
}

.detail-attachment-pdf-fallback p {
  margin: 0;
}

.detail-shell--preview {
  gap: 22px;
}

.detail-content--preview {
  display: grid;
  gap: 18px;
}

.detail-preview-actions {
  display: flex;
  justify-content: flex-end;
}

.detail-preview-surface {
  display: block;
  width: 100%;
  border: 1px solid rgba(0, 158, 224, 0.16);
  border-radius: 20px;
  background: #fff;
}

.detail-preview-surface--image {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
}

.detail-preview-surface--pdf {
  min-height: 80vh;
}

@media (max-width: 900px) {
  .detail-attachment-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-attachment-card__actions {
    justify-content: flex-start;
  }
}

.login-page {
  background: #ffffff;
}

.login-main {
  width: min(1512px, 100vw);
  min-height: 982px;
  margin: 0 auto;
  padding: 0;
}

.login-shell {
  width: 1512px;
  min-height: 982px;
  margin: 0 auto;
  padding: 41px 25px 33px 26px;
  background: #ffffff;
}

.login-panel {
  position: relative;
  box-sizing: border-box;
  width: 1461px;
  height: 949px;
  background: #009ee0;
}

.login-panel--message {
  padding: 1px;
}

.login-message {
  position: absolute;
  top: 150px;
  left: 50%;
  width: 760px;
  transform: translateX(-50%);
  text-align: center;
}

.login-panel--message .login-title {
  margin-bottom: 42px;
}

.login-panel--message .login-copy {
  max-width: 980px;
  margin: 0 auto 34px;
}

.login-panel--message .login-submit-link {
  display: flex;
  width: 507px;
  margin: 0 auto;
}

.login-panel--onboarding {
  overflow: hidden;
}

.login-close {
  position: absolute;
  top: 32px;
  right: 33px;
  width: 39px;
  height: 39px;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.login-close__line {
  position: absolute;
  top: 18px;
  left: 0;
  width: 39px;
  height: 3px;
  background: #ffffff;
  transform-origin: center;
}

.login-close__line:first-child {
  transform: rotate(45deg);
}

.login-close__line:last-child {
  transform: rotate(-45deg);
}

.login-form {
  position: absolute;
  top: 281px;
  left: 475px;
  width: 511px;
}

.login-form--onboarding {
  top: 236px;
}

.login-title {
  margin: 0 0 35px;
  color: #fff;
  text-align: center;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 43.81px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.login-errors {
  margin: 0 0 18px;
  color: #000000 !important;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.login-errors p {
  margin: 0;
  color: #000000 !important;
}

.login-copy {
  margin: 0 0 28px;
  color: #ffffff;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

.login-copy--small {
  font-size: 15px;
  margin-bottom: 18px;
}

.login-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 37px;
  margin-bottom: 34px;
  border-bottom: 3px solid #fff;
}

.login-field--error {
  border-bottom-color: #b53a33;
}

.login-field--password {
  margin-bottom: 76px;
}

.login-label {
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
}

.login-input {
  flex: 1 1 auto;
  width: auto;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  outline: none;
  box-shadow: none;
}

.login-input--error {
  color: #fff;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #009ee0 inset;
}

.login-forgot {
  position: absolute;
  right: 0;
  bottom: -33px;
  color: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  text-decoration: none;
}

.login-submit {
  display: flex;
  width: 507px;
  height: 61px;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  border: 3px solid #fff;
  background: transparent;
  color: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 26.4px;
}

.login-submit:hover,
.login-submit:focus-visible {
  background: #fff;
  color: #009ee0;
  outline: none;
}

.login-submit-link {
  margin: 22px auto 0;
  text-decoration: none;
}

.dashboard-main {
  --dashboard-text: #123a63;
  --dashboard-muted: #50636f;
  --dashboard-accent: #009ee0;
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--dashboard-text);
  font-family: Arial, sans-serif;
}

.dashboard-shell {
  display: grid;
  gap: 22px;
  width: 100%;
  margin: 0 auto;
  color: var(--dashboard-text);
  font-family: Arial, sans-serif;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  width: 100%;
  padding: 34px 38px 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, #009ee0 0%, #0b8bc2 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 119, 170, 0.18);
}

.dashboard-hero__copy {
  max-width: 740px;
}

.dashboard-eyebrow {
  margin: 0 0 10px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.84;
}

.dashboard-title {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 0.98;
}

.dashboard-subtitle {
  margin: 14px 0 0;
  max-width: 640px;
  font-family: Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-hub-nav {
  display: grid;
  gap: 12px;
  justify-items: end;
  width: 100%;
}

.dashboard-hub-nav__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.dashboard-hub-nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  min-width: 180px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
}

.dashboard-hub-nav__button:hover,
.dashboard-hub-nav__button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #009ee0;
  outline: none;
  transform: translateY(-1px);
}

.dashboard-hub-nav__button--active {
  background: #fff;
  border-color: #fff;
  color: #009ee0;
}

.dashboard-hero--landing {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
}

.dashboard-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -6px;
}

.dashboard-subnav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1.08rem;
  border: 2px solid rgba(0, 158, 224, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #009ee0;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
}

.dashboard-subnav__link:hover,
.dashboard-subnav__link:focus-visible {
  background: #009ee0;
  border-color: #009ee0;
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.dashboard-subnav__link--active {
  background: #009ee0;
  border-color: #009ee0;
  color: #fff;
}

.dashboard-welcome__icon {
  width: min(100%, 480px);
  height: auto;
}

.dashboard-welcome__greeting,
.dashboard-welcome__name {
  margin: 0;
  color: var(--dashboard-text);
  font-family: Arial, sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
}

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

.dashboard-tile-selector__item {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 158, 224, 0.14);
  border-radius: 22px;
  background: #fff;
  color: var(--dashboard-text);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 52, 67, 0.05);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.dashboard-tile-selector__item:hover,
.dashboard-tile-selector__item:focus-visible {
  background: #f3fbff;
  border-color: rgba(0, 158, 224, 0.34);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 119, 170, 0.09);
}

.dashboard-tile-selector__item--active {
  background: linear-gradient(180deg, #ffffff 0%, #eef9ff 100%);
  border-color: #009ee0;
}

.dashboard-tile-selector__label {
  color: var(--dashboard-accent);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-tile-selector__title {
  color: var(--dashboard-text);
  font-family: Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.15;
}

.dashboard-nav-group__subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
}

.dashboard-nav__link:hover,
.dashboard-nav__link:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #009ee0;
  outline: none;
  transform: translateY(-1px);
}

.dashboard-nav__link--primary {
  background: #fff;
  color: #009ee0;
}

.dashboard-nav__link--secondary {
  min-height: 44px;
  padding: 0.68rem 1.08rem;
  font-size: 0.92rem;
}

.dashboard-panel {
  width: 100%;
  padding: 30px 32px;
  border: 1px solid rgba(0, 158, 224, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  box-shadow: 0 14px 34px rgba(15, 52, 67, 0.08);
  overflow: visible;
}

.dashboard-panel--form {
  max-width: 980px;
}

.dashboard-panel--full-width {
  max-width: 100%;
}

.dashboard-panel--invite {
  max-width: 100%;
}

.dashboard-panel--topic-form {
  max-width: 100%;
}

.dashboard-panel--welcome {
  display: grid;
  place-items: center;
  min-height: 320px;
  background:
    radial-gradient(circle at top left, rgba(0, 158, 224, 0.09), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
}

.dashboard-welcome {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.dashboard-welcome__eyebrow {
  margin: 0;
  color: var(--dashboard-accent);
  font-family: Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-panel__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-panel__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.dashboard-panel__title {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dashboard-text);
}

.dashboard-panel__meta {
  margin: 8px 0 0;
  color: var(--dashboard-muted);
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
}

.dashboard-panel__art {
  flex: 0 0 auto;
}

.dashboard-panel__art-icon {
  display: block;
  width: min(100%, 150px);
  max-width: 150px;
  height: auto;
}

.dashboard-panel__art-icon--loan-orders {
  width: min(100%, 126px);
  max-width: 126px;
}

.dashboard-panel__art-icon--loan-agreement {
  width: min(100%, 122px);
  max-width: 122px;
}

.dashboard-panel__header .dashboard-action {
  flex: 0 0 auto;
}

.dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border: 2px solid #009ee0;
  border-radius: 999px;
  background: #009ee0;
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.dashboard-action:hover,
.dashboard-action:focus-visible {
  background: #fff;
  color: #009ee0;
  outline: none;
  transform: translateY(-1px);
}

.dashboard-action--ghost {
  background: transparent;
  color: #009ee0;
}

.dashboard-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #f1b8b5;
  border-radius: 16px;
  background: #fff1f0;
  color: #8b2d24;
  font-family: Arial, sans-serif;
}

.active-users-trigger {
  display: inline-grid;
  grid-template-columns: 52px auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  min-height: 58px;
  padding: 0.7rem 1rem 0.7rem 0.8rem;
  border: 1px solid rgba(0, 158, 224, 0.18);
  border-radius: 20px;
  background: rgba(0, 158, 224, 0.05);
  text-align: left;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.active-users-trigger:hover,
.active-users-trigger:focus-visible {
  background: #fff;
  border-color: #009ee0;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 119, 170, 0.1);
}

.active-users-trigger__icon-wrap {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
}

.active-users-trigger__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.active-users-trigger__count {
  color: #009ee0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.active-users-trigger__label {
  color: #4a6675;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.active-users-panel {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(0, 158, 224, 0.05);
}

.active-users-panel__title {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.active-users-panel__meta {
  margin: 6px 0 0;
  color: #5f7682;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.active-users-list {
  display: grid;
  gap: 10px;
}

.active-users-table {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 158, 224, 0.12);
  color: #173748;
  font-family: Arial, sans-serif;
}

.active-users-table--head {
  padding: 0 16px;
  background: transparent;
  border: 0;
  color: #58707d;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 158, 224, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.user-search--toolbar {
  grid-template-columns: minmax(320px, 420px);
  justify-content: end;
  align-self: center;
  margin-bottom: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.user-search__copy {
  display: grid;
  gap: 6px;
}

.user-search__label {
  color: #0d1f29;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.user-search__hint {
  margin: 0;
  color: #58707d;
  font-family: Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.5;
}

.user-search__field {
  position: relative;
}

.user-search__input {
  padding-right: 3.2rem;
}

.user-search__suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 158, 224, 0.16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 52, 67, 0.12);
}

.user-search__suggestion {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(0, 158, 224, 0.1);
  border-radius: 16px;
  background: #f8fdff;
  color: #123241;
  text-align: left;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease;
}

.user-search__suggestion:hover,
.user-search__suggestion:focus-visible {
  border-color: rgba(0, 158, 224, 0.3);
  background: #eef9ff;
  outline: none;
  transform: translateY(-1px);
}

.user-grid-list {
  display: grid;
  gap: 12px;
}

.topic-card-list {
  display: grid;
  gap: 10px;
}

.topic-card-list--narrow {
  max-width: 100%;
}

.topic-card {
  display: grid;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 158, 224, 0.12);
}

.topic-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.topic-card__tile {
  color: #006f9e;
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topic-card__position {
  color: #64808f;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
}

.topic-card__body {
  display: grid;
  gap: 2px;
}

.topic-card__title {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.04;
}

.topic-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.topic-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(0, 158, 224, 0.08);
  color: #006f9e;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.topic-card__badge--secure {
  background: #e8f3fb;
  color: #005f87;
}

.topic-card__badge--open {
  background: #e7f7ee;
  color: #0f7a46;
}

.topic-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-end;
}

.topic-card__date {
  color: #6c808a;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  line-height: 1;
}

.topic-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.25fr 1fr 0.7fr 52px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 158, 224, 0.12);
}

.user-grid--head {
  margin-bottom: 12px;
  padding: 0 20px;
  color: #58707d;
  background: transparent;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-grid__cell {
  min-width: 0;
}

.user-grid__cell--action {
  display: flex;
  justify-content: flex-end;
}

.user-name {
  display: block;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.user-address {
  display: block;
  color: #163848;
  word-break: break-word;
  font-family: Arial, sans-serif;
}

.user-empty {
  color: #7b8d97;
  font-family: Arial, sans-serif;
}

.user-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 158, 224, 0.09);
  color: #006f9e;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.user-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.user-status--active {
  background: #e7f7ee;
  color: #0f7a46;
}

.user-status--pending {
  background: #fff4de;
  color: #a56600;
}

.user-status--first-login {
  background: #eef2ff;
  color: #4b57c0;
}

.user-status--locked {
  background: #fde9e8;
  color: #b03931;
}

.user-status--inactive {
  background: #eceff1;
  color: #60717c;
}

.user-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 158, 224, 0.08);
  transition:
    transform 0.16s ease,
    background-color 0.16s ease;
}

.user-edit-link:hover,
.user-edit-link:focus-visible {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(0, 158, 224, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.user-edit-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.dashboard-empty {
  padding: 28px;
  border-radius: 20px;
  background: rgba(0, 158, 224, 0.06);
  color: #58707d;
  text-align: center;
  font-family: Arial, sans-serif;
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
}

.invite-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  width: 100%;
}

.invite-card {
  height: 100%;
  padding: 26px 28px;
  border: 1px solid rgba(0, 158, 224, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 52, 67, 0.06);
}

.invite-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.invite-card__title {
  margin: 0;
  color: #0d1f29;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
}

.invite-card__icon {
  width: min(100%, 118px);
  max-width: 118px;
  height: auto;
  flex: 0 0 auto;
}

.invite-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.invite-form__grid--invite {
  grid-template-columns: minmax(0, 1fr);
}

.invite-form__grid--topic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invite-field {
  display: grid;
  gap: 10px;
}

.invite-field--wide {
  min-width: 0;
}

.invite-label {
  color: #183442;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.invite-input {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(0, 158, 224, 0.25);
  border-radius: 18px;
  background: #fff;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

input[type="file"].invite-input {
  padding: 0.75rem 1rem;
}

.invite-input:focus {
  border-color: #009ee0;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 158, 224, 0.12);
}

.invite-input--error {
  border-color: #d24b43;
}

.invite-error {
  color: #b53a33;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.invite-note {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(0, 158, 224, 0.07);
}

.invite-note--shared {
  margin-top: 22px;
}

.invite-note__title {
  margin: 0 0 4px;
  color: #006f9e;
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-note__text {
  margin: 0;
  color: #31505f;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.invite-footnote {
  margin: 0;
  color: #6f848f;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.invite-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
}

.invite-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 56px;
  padding: 0 1.2rem;
  border: 2px solid #009ee0;
  border-radius: 999px;
  background: #009ee0;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  appearance: none;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.invite-submit:hover,
.invite-submit:focus-visible {
  background: #fff;
  color: #009ee0;
  border-color: #009ee0;
  outline: none;
  transform: translateY(-1px);
}

.invite-form__grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-detail-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.topic-form-modern {
  display: grid;
  gap: 22px;
}

.topic-form-modern__check {
  gap: 8px;
}

.topic-form-modern__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #183442;
  font-family: Arial, sans-serif;
  font-size: 1rem;
}

.topic-form-modern__attachments-title {
  font-size: 1.2rem;
}

.topic-form-modern__attachments {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-form-modern__attachment-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(0, 158, 224, 0.12);
  border-radius: 18px;
  background: #fff;
}

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

.dashboard-action--danger {
  border-color: #d24b43;
  color: #d24b43;
}

.dashboard-action--danger:hover,
.dashboard-action--danger:focus-visible {
  background: #d24b43;
  color: #fff;
}

.rich-editor {
  min-height: 220px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}

.rich-editor--error {
  border-color: #d24b43;
  box-shadow: 0 0 0 4px rgba(210, 75, 67, 0.12);
}

.topic-form-modern__body-input {
  display: none;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

#id_tile,
#id_title,
#id_position,
#id_attachments,
#id_title_horizontal_align,
#id_login_required,
#id_title_vertical_align {
  border: 1px solid #d8deea;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
}

#id_tile,
#id_title,
#id_position,
#id_attachments,
#id_title_horizontal_align,
#id_title_vertical_align {
  width: 100%;
}

#id_title {
  min-height: 94px;
  resize: vertical;
}

@media (max-width: 1200px) {
  .site-nav-brand {
    gap: 10px;
  }

  .site-nav-brand__logo {
    width: 136px;
  }

  .site-nav-brand__title {
    font-size: 1.28rem;
  }

  .site-page-header {
    width: 100%;
    padding: 14px 14px 6px;
  }

  .site-page-header__logo {
    width: 170px;
  }

  .site-page-header__title {
    font-size: 2rem;
    white-space: normal;
  }

  .home-shell {
    width: 100%;
    min-height: auto;
  }

  .home-header {
    position: static;
    height: auto;
    padding: 12px 12px 10px;
  }

  .home-brand,
  .home-brand-title {
    position: static;
  }

  .home-title-row {
    position: static;
    margin-top: 106px;
  }

  .home-brand-title {
    width: auto;
    height: auto;
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    white-space: normal;
  }

  .home-search {
    min-width: 76px;
    width: auto;
    margin-top: 0;
  }

  .home-search-toggle,
  .home-search-toggle-icon {
    width: 58px;
    height: 58px;
  }

  .home-search-panel {
    right: 0;
    top: 0;
    height: 58px;
  }

  .home-search.is-open .home-search-panel {
    max-height: 58px;
    width: 300px;
    padding: 0 20px 0 24px;
  }

  .home-search-results {
    width: 300px;
    max-height: 720px;
  }

  .home-search-results-list {
    max-height: 664px;
  }

  .home-search-input {
    font-size: 1.2rem;
  }

  .home-search-results {
    width: auto;
    margin-right: 22px;
  }

  .home-search-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
    gap: 8px;
  }

  .home-footer {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-top: 18px;
    gap: 18px;
  }

  .home-footer section {
    width: 100%;
    min-height: auto;
  }

  .home-footer-section--address,
  .home-footer-section--support,
  .home-footer-section--links {
    height: auto;
  }

  .home-footer-title,
  .home-footer-text,
  .home-footer-section--links .home-footer-links {
    width: 100%;
    height: auto;
    padding: 0;
  }

  .detail-main,
  .detail-shell {
    width: 100%;
    height: auto;
  }

  .detail-shell {
    padding: 18px 14px 40px;
  }

  .detail-header {
    padding-left: 0;
    gap: 14px;
  }

  .detail-tile-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .detail-topic-link,
  .detail-topic-sep {
    font-size: 1rem;
    line-height: 1.45;
  }

  .detail-content {
    width: 100%;
    margin-left: 0;
    margin-top: 24px;
  }

  .detail-topic-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    line-height: 1.1;
  }

  .detail-richtext,
  .detail-attachments-title,
  .detail-attachments-list a,
  .detail-empty-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .login-main,
  .login-shell {
    width: 100%;
    min-height: auto;
  }

  .login-shell {
    padding: 16px;
  }

  .login-panel {
    width: 100%;
    height: auto;
    min-height: 78vh;
  }

  .login-form {
    position: static;
    width: min(511px, calc(100% - 48px));
    margin: 0 auto;
    padding: 180px 0 80px;
  }

  .login-panel--message {
    padding: 1px;
  }

  .login-message {
    top: 140px;
    width: min(760px, calc(100% - 64px));
  }

  .login-form--onboarding {
    padding-top: 148px;
  }

  .dashboard-main {
    width: min(100vw - 24px, 1240px);
  }

  .error-main {
    width: min(100vw - 24px, 1240px);
  }

  .dashboard-hero,
  .dashboard-panel,
  .error-hero,
  .error-panel {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dashboard-hero,
  .error-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    justify-content: flex-start;
  }

  .dashboard-hub-nav,
  .dashboard-hub-nav__row {
    justify-items: start;
    justify-content: flex-start;
  }

  .user-grid,
  .user-grid--head,
  .user-search,
  .invite-form__grid,
  .invite-layout,
  .active-users-table {
    grid-template-columns: 1fr;
  }

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

  .invite-form__grid--triple {
    grid-template-columns: 1fr;
  }

  .invite-form__grid--topic {
    grid-template-columns: 1fr;
  }

  .user-grid--head {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-nav-brand__logo {
    width: 108px;
  }

  .site-nav-brand__title {
    font-size: 1.02rem;
  }

  .site-page-header__link {
    gap: 10px;
  }

  .site-page-header__logo {
    width: 124px;
  }

  .site-page-header__title {
    font-size: 1.45rem;
  }

  .home-main {
    width: min(96vw, 740px);
  }

  .home-header {
    padding: 8px 0 10px;
  }

  .home-title-row {
    margin-top: 92px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .home-search {
    min-width: 0;
    width: auto;
  }

  .home-search-panel {
    position: relative;
    top: auto;
    right: auto;
    width: 220px;
    height: 54px;
    margin-top: 10px;
    transform: translateY(-10px);
  }

  .home-search.is-open .home-search-panel {
    max-height: 54px;
    width: 220px;
    padding: 0 18px 0 22px;
    transform: translateY(0);
  }

  .home-search-toggle,
  .home-search-toggle-icon {
    width: 54px;
    height: 54px;
  }

  .home-search-input {
    font-size: 1.15rem;
  }

  .home-search-results {
    margin: 0 0 18px;
    padding: 18px;
    border-radius: 24px;
  }

  .home-search-results-list {
    grid-template-columns: 1fr;
  }

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

  .home-tile,
  .home-tile-link {
    height: 250px;
  }

  .home-tile-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .home-tile-hover-text {
    top: 18px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 36px);
  }

  .home-footer-title {
    font-size: 1.3rem;
  }

  .home-footer-text,
  .home-footer-links {
    font-size: 1rem;
  }

  .detail-header {
    gap: 10px;
  }

  .detail-back-link {
    width: 32px;
    height: 32px;
  }

  .detail-back-icon {
    width: 32px;
    clip-path: inset(10% 0 0 0);
    transform: translateY(10px) scale(1.06);
  }

  .login-shell {
    padding: 10px;
  }

  .login-panel {
    min-height: calc(100vh - 20px);
  }

  .login-panel--message {
    padding: 1px;
  }

  .login-message {
    top: 120px;
    width: calc(100% - 32px);
    transform: translateX(-50%);
  }

  .login-panel--message .login-submit-link {
    width: 100%;
  }

  .login-close {
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
  }

  .login-close__line {
    top: 14px;
    width: 30px;
  }

  .login-form {
    width: calc(100% - 40px);
    padding: 150px 0 60px;
  }

  .login-form--onboarding {
    padding-top: 118px;
  }

  .login-title {
    font-size: clamp(2rem, 7vw, 2.7rem);
  }

  .login-label,
  .login-input,
  .login-submit {
    font-size: 1rem;
  }

  .login-field {
    gap: 10px;
  }

  .login-submit {
    width: 100%;
  }

  .dashboard-main {
    width: calc(100vw - 16px);
    padding-top: 10px;
    padding-bottom: 22px;
  }

  .error-main {
    width: calc(100vw - 16px);
    padding-top: 10px;
    padding-bottom: 22px;
  }

  .dashboard-hero,
  .dashboard-panel,
  .error-hero,
  .error-panel {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .dashboard-title {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .dashboard-welcome__icon {
    width: min(100%, 320px);
  }

  .dashboard-nav,
  .dashboard-hub-nav__row,
  .invite-actions,
  .dashboard-panel__tools {
    width: 100%;
  }

  .dashboard-panel__art {
    width: 100%;
  }

  .dashboard-panel__art-icon {
    width: min(100%, 120px);
    max-width: 120px;
  }

  .topic-card,
  .topic-card__footer,
  .topic-card__meta,
  .topic-card__actions {
    justify-content: flex-start;
  }

  .dashboard-hub-nav__row {
    flex-wrap: wrap;
  }

  .dashboard-nav__link,
  .dashboard-hub-nav__button,
  .dashboard-subnav__link,
  .dashboard-action {
    width: 100%;
  }

  .user-search {
    padding: 18px;
  }

  .user-search--toolbar {
    grid-template-columns: 1fr;
    margin-bottom: 0;
    padding: 0;
  }

  .user-search__suggestions {
    position: static;
    margin-top: 10px;
  }

  .error-actions .dashboard-action {
    width: 100%;
  }

  .dashboard-welcome__greeting,
  .dashboard-welcome__name {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .user-grid {
    gap: 10px;
    padding: 16px;
  }
}

@media print {
  .print-stamp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #bfc9d2;
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    z-index: 9999;
  }

  .print-stamp__item {
    display: inline-flex;
    gap: 6px;
    align-items: center;
  }

  body {
    padding-top: 54px;
  }
}

.loan-form {
  display: grid;
  gap: 28px;
}

.loan-form--detail {
  gap: 24px;
}

.dashboard-title--loan-shop {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.02;
}

.dashboard-subtitle--loan-order {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.02;
  color: #fff;
  font-weight: 800;
}

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

.loan-form__field {
  display: grid;
  gap: 8px;
}

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

.loan-form__delivery-block {
  display: grid;
  gap: 10px;
}

.loan-form__label--section {
  margin: 0;
}

.loan-form__field--compact {
  align-content: start;
}

.loan-form__label {
  font-size: 0.94rem;
  font-weight: 700;
  color: #000000;
}

.loan-form__error {
  margin: 0;
  color: #c33131;
  font-size: 0.88rem;
}

.loan-form__meta {
  margin: 0;
  color: #000000;
  font-size: 0.9rem;
}

.loan-agreement {
  display: grid;
  gap: 14px;
}

.loan-agreement__box {
  max-height: 190px;
  overflow-y: auto;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #009ee0;
  background: #ffffff;
}

.loan-agreement__content {
  color: #000000;
  font-size: 0.96rem;
  line-height: 1.55;
}

.loan-agreement__confirm {
  gap: 10px;
}

.loan-form__actions .dashboard-action[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.loan-shop-panel .dashboard-panel__title,
.loan-shop-panel .dashboard-panel__meta,
.loan-form--shop .loan-form__label--section,
.loan-form--shop .topic-form-modern__checkbox span {
  color: #000000;
}

.loan-form--shop .invite-input,
.loan-form--shop select,
.loan-form--shop textarea {
  border-color: #009ee0;
  background: #ffffff;
  color: #000000;
}

.loan-form--shop .invite-input:focus,
.loan-form--shop select:focus,
.loan-form--shop textarea:focus {
  border-color: #009ee0;
  box-shadow: none;
}

.loan-radio-group ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loan-radio-group li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.loan-radio-group--stacked {
  gap: 14px;
}

.loan-radio-group--stacked li {
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #009ee0;
}

.loan-radio-group--stacked label {
  color: #000000;
  font-weight: 600;
  line-height: 1.45;
}

.loan-combination-list {
  display: grid;
  gap: 10px;
}

.loan-combination-list__item {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #009ee0;
  color: #000000;
  font-weight: 600;
}

.loan-product-grid,
.loan-processing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.loan-catalog {
  display: grid;
  gap: 22px;
}

.loan-catalog-section {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid #009ee0;
  background: #ffffff;
  overflow: visible;
}

.loan-category-header--catalog {
  gap: 14px;
}

.loan-category-header__icon--catalog {
  width: 54px;
  height: 54px;
}

.loan-catalog-section__title {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 800;
  color: #000000;
}

.loan-catalog-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
}

.loan-catalog-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid #009ee0;
  background: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  z-index: 1;
}

.loan-catalog-card:hover,
.loan-catalog-card:focus-within {
  transform: translateY(-3px);
  border-color: #009ee0;
  z-index: 40;
}

.loan-catalog-card__media {
  position: relative;
  overflow: visible;
}

.loan-catalog-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #009ee0;
}

.loan-catalog-card__image--fallback {
  object-fit: contain;
  padding: 22px;
}

.loan-catalog-card__hover {
  position: absolute;
  left: calc(100% + 18px);
  top: 0;
  width: min(360px, 42vw);
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #009ee0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}

.loan-catalog-card:nth-child(3n) .loan-catalog-card__hover {
  left: auto;
  right: calc(100% + 18px);
}

.loan-catalog-card:hover .loan-catalog-card__hover,
.loan-catalog-card:focus-within .loan-catalog-card__hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.loan-catalog-card__hover-image {
  width: 100%;
  max-height: 240px;
  border-radius: 18px;
  object-fit: contain;
  background: #ffffff;
}

.loan-catalog-card__hover-image--fallback {
  padding: 18px;
}

.loan-catalog-card__hover-copy {
  display: grid;
  gap: 8px;
}

.loan-catalog-card__hover-title {
  margin: 0;
  color: #000000;
  font-size: 1.1rem;
  font-weight: 800;
}

.loan-catalog-card__hover-meta,
.loan-catalog-card__hover-description {
  margin: 0;
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.45;
}

.loan-catalog-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 14px;
  align-items: start;
}

.loan-catalog-card__title {
  margin: 0;
  color: #000000;
  font-size: 1.06rem;
  font-weight: 800;
}

.loan-catalog-card__meta {
  margin: 6px 0 0;
  color: #000000;
  font-size: 0.92rem;
}

.loan-catalog-card__availability-note {
  display: block;
  margin-top: 4px;
  color: #000000;
  font-weight: 700;
}

.loan-catalog-card--unavailable .loan-catalog-card__body select {
  opacity: 0.75;
  cursor: not-allowed;
}

.loan-product-card,
.loan-processing-card {
  border: 1px solid rgba(18, 58, 99, 0.12);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: 0 20px 40px rgba(18, 58, 99, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.loan-product-card:hover,
.loan-product-card:focus-within,
.loan-processing-card:hover,
.loan-processing-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(18, 58, 99, 0.12);
  border-color: rgba(18, 58, 99, 0.26);
}

.loan-product-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.loan-product-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #123a63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.loan-product-card__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.loan-product-card__icon--plain {
  width: 32px;
  height: 32px;
  filter: none;
}

.loan-product-card__title,
.loan-processing-card__title {
  margin: 0;
  font-size: 1.02rem;
  color: #123a63;
  font-weight: 700;
}

.loan-product-card__meta,
.loan-dashboard-grid__summary {
  margin: 4px 0 0;
  color: #4f6476;
  font-size: 0.9rem;
}

.loan-form__extras {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #009ee0;
}

.loan-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.loan-order-overview__card,
.loan-order-section {
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(18, 58, 99, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 14px 30px rgba(18, 58, 99, 0.06);
}

.loan-order-overview__card {
  display: grid;
  gap: 6px;
}

.loan-order-overview__card--scan {
  align-content: start;
}

.loan-order-overview__card--period {
  background: linear-gradient(135deg, #0a95d8 0%, #48b5e8 100%);
  border-color: rgba(10, 149, 216, 0.35);
}

.loan-order-overview__card--period .loan-order-overview__label,
.loan-order-overview__card--period .loan-order-overview__value,
.loan-order-overview__card--period .loan-order-overview__meta {
  color: #fff;
}

.loan-order-overview__card--period .loan-order-overview__value,
.loan-order-overview__card--period .loan-order-overview__meta {
  font-weight: 800;
}

.loan-order-overview__label {
  color: #6b7f91;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loan-order-overview__value {
  color: #123a63;
  font-size: 1.2rem;
  line-height: 1.15;
}

.loan-order-overview__meta {
  color: #4f6476;
  font-size: 0.94rem;
}

.loan-order-overview__scan-input {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
}

.loan-order-section {
  display: grid;
  gap: 18px;
}

.loan-order-section__header {
  display: grid;
  gap: 6px;
}

.loan-order-section__header--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.loan-order-section__title {
  margin: 0;
  color: #123a63;
  font-size: 1.35rem;
  font-weight: 800;
}

.loan-order-section__meta {
  margin: 0;
  color: #4f6476;
  font-size: 0.95rem;
}

.loan-order-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.loan-order-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(18, 58, 99, 0.08);
  background: #fff;
}

.loan-order-item__copy {
  display: grid;
  gap: 4px;
}

.loan-order-item__title {
  margin: 0;
  color: #123a63;
  font-size: 1rem;
  font-weight: 800;
}

.loan-order-item__meta {
  margin: 0;
  color: #4f6476;
  font-size: 0.92rem;
}

.loan-processing-card__top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.loan-order-title {
  display: grid;
  gap: 10px;
}

.loan-order-title__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  margin-left: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 2px solid rgba(18, 58, 99, 0.18);
  background: #fff;
}

.loan-order-table {
  display: grid;
  gap: 12px;
}

.loan-order-table__head,
.loan-order-table__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: center;
}

.loan-order-table__head {
  padding: 0 14px 6px;
  color: #6b7f91;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loan-order-table__body {
  display: grid;
  gap: 12px;
}

.loan-order-table__row {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(18, 58, 99, 0.08);
  background: #fff;
}

.loan-order-table__row--returned {
  border-color: rgba(0, 158, 224, 0.32);
  background: rgba(0, 158, 224, 0.04);
}

.loan-order-table__cell {
  color: #123a63;
  font-size: 0.96rem;
}

.loan-order-table__cell--image {
  display: flex;
  align-items: center;
}

.loan-order-table__image {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(0, 158, 224, 0.14);
  background: #eef7fd;
}

.loan-order-table__image--fallback {
  object-fit: contain;
  padding: 14px;
}

.loan-order-table__placeholder {
  color: #7d8f9e;
  font-size: 0.9rem;
}

.loan-order-scan-state {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.loan-order-scan-state--done {
  background: rgba(0, 158, 224, 0.12);
  color: #000;
}

.loan-order-scan-state--pending {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.loan-barcode-image {
  display: block;
  width: 168px;
  max-width: 100%;
  height: 42px;
  object-fit: contain;
}

.loan-order-barcode-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.loan-return-confirmation-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.loan-order-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
}

.loan-order-config-card {
  display: grid;
  gap: 12px;
}

.loan-order-config-card--small {
  align-content: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 58, 99, 0.1);
  background: #f7fbfe;
}

.loan-order-config-card__value {
  color: #123a63;
  font-size: 1.05rem;
  font-weight: 800;
}

.loan-order-note-grid {
  display: grid;
  gap: 18px;
}

.loan-order-note-grid__full {
  width: 100%;
}

.loan-order-display-box {
  min-height: 64px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(18, 58, 99, 0.1);
  background: #fff;
  color: #123a63;
  line-height: 1.55;
  white-space: pre-wrap;
}

.loan-order-inline-notes {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid #d8deea;
  border-radius: 16px;
  background: #fff;
  color: #123a63;
  resize: vertical;
}

.loan-order-scan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.loan-order-scan__field {
  display: grid;
  gap: 8px;
}

.loan-form__actions--split {
  justify-content: space-between;
  align-items: center;
}

.loan-form__actions--triple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.loan-form__actions--triple .dashboard-action--ghost:first-child {
  justify-self: start;
}

.loan-form__cancel-action {
  justify-self: center;
}

.loan-form__actions--triple .loan-form__actions--tight {
  justify-self: end;
}

.loan-form__actions--tight {
  justify-content: flex-end;
}

.dashboard-action--disabled,
.dashboard-action:disabled {
  background: #dce5ec;
  color: #7f93a4;
  border-color: #dce5ec;
  cursor: not-allowed;
  box-shadow: none;
}

.dashboard-action--disabled:hover,
.dashboard-action--disabled:focus-visible,
.dashboard-action:disabled:hover,
.dashboard-action:disabled:focus-visible {
  background: #dce5ec;
  color: #7f93a4;
  border-color: #dce5ec;
  transform: none;
  box-shadow: none;
}

.loan-form__meta--counter {
  margin-top: 8px;
  text-align: right;
}

.dashboard-action--secondary,
.dashboard-action--ghost {
  background: transparent;
  color: #123a63;
  border: 1px solid rgba(18, 58, 99, 0.18);
}

.dashboard-action--secondary:hover,
.dashboard-action--secondary:focus-visible,
.dashboard-action--ghost:hover,
.dashboard-action--ghost:focus-visible {
  background: #fff;
  color: #009ee0;
  border-color: #009ee0;
}

.loan-form .topic-form-modern__body-input {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 14px 16px;
  border: 1px solid #d8deea;
  border-radius: 16px;
  background: #fff;
  color: #123a63;
  resize: vertical;
}

.loan-agreement-editor {
  display: block;
  width: 100%;
  min-height: 320px;
  padding: 16px 18px;
  border: 1px solid #d8deea;
  border-radius: 18px;
  background: #fff;
  color: #123a63;
  resize: vertical;
}

.loan-device-photo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 220px);
  max-width: 220px;
  height: 148px;
  max-height: 148px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 158, 224, 0.16);
  background: linear-gradient(180deg, #eef7fd 0%, #e1f1fb 100%);
  overflow: hidden;
}

.loan-device-photo-preview__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loan-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 0.9fr 60px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(18, 58, 99, 0.08);
}

.loan-dashboard-grid--head {
  background: transparent;
  border: 0;
  padding: 0 20px 10px;
  color: #6e7f90;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loan-dashboard-list {
  display: grid;
  gap: 12px;
}

.loan-db-grid,
.loan-device-list {
  display: grid;
  gap: 12px;
}

.loan-category-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.loan-category-header__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.loan-add-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef7fd;
  border: 1px solid rgba(39, 154, 230, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.loan-add-link:hover,
.loan-add-link:focus-visible {
  transform: translateY(-1px);
  background: #dff1fe;
  box-shadow: 0 10px 24px rgba(39, 154, 230, 0.14);
}

.loan-add-link__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.loan-db-card,
.loan-device-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(18, 58, 99, 0.08);
}

.loan-db-card__actions {
  display: flex;
  justify-content: flex-end;
}

.loan-db-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loan-db-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -6px;
}

.loan-db-topbar .dashboard-subnav {
  margin-top: 0;
}

.loan-db-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.loan-db-toolbar .dashboard-action,
.loan-db-toolbar .dashboard-action--ghost {
  min-height: 44px;
  padding: 0.68rem 1.08rem;
  font-size: 0.92rem;
  border-width: 2px;
}

.loan-db-layout {
  display: grid;
  gap: 24px;
}

.loan-db-section {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(18, 58, 99, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.loan-db-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.loan-db-section__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.05;
  font-weight: 800;
  color: #123a63;
}

.loan-db-product-list {
  display: grid;
  gap: 12px;
}

.loan-category-toggle-form {
  margin: 0;
}

.loan-category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(18, 58, 99, 0.14);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.loan-category-toggle__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.loan-category-toggle:hover,
.loan-category-toggle:focus-visible {
  background: #eef7fd;
  border-color: rgba(0, 158, 224, 0.28);
  transform: translateY(-1px);
}

.loan-category-toggle:hover .loan-category-toggle__icon,
.loan-category-toggle:focus-visible .loan-category-toggle__icon {
  opacity: 0.9;
}

.loan-db-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(18, 58, 99, 0.08);
  box-shadow: 0 12px 28px rgba(18, 58, 99, 0.05);
}

.loan-db-product-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #123a63;
}

.loan-db-product-card__meta {
  margin: 6px 0 0;
  color: #4f6476;
  font-size: 0.92rem;
}

.loan-db-product-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.loan-db-product-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.loan-db-product-delete:hover,
.loan-db-product-delete:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
  outline: none;
}

.loan-db-product-delete__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.loan-device-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 1.05fr) 64px;
}

.loan-device-grid--head {
  background: transparent;
  border: 0;
  padding: 0 20px 10px;
  color: #6e7f90;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loan-device-grid--removed {
  background: #f7fafc;
}

.loan-device-grid__action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.loan-device-grid__action--stack {
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.loan-device-grid__image-cell {
  position: relative;
}

.loan-device-image {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(18, 58, 99, 0.1);
  background: #f4f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loan-device-image--empty {
  color: #7f8d99;
  font-weight: 700;
}

.loan-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(0, 158, 224, 0.2);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.loan-print-button:hover,
.loan-print-button:focus-visible {
  border-color: #009ee0;
  box-shadow: 0 10px 18px rgba(0, 158, 224, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.loan-print-button__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.loan-device-image__thumb {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.loan-device-image__thumb--fallback {
  object-fit: contain;
  padding: 12px;
}

.loan-device-image__zoom {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  width: 280px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 58, 99, 0.12);
  box-shadow: 0 24px 56px rgba(18, 58, 99, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.loan-device-image:hover .loan-device-image__zoom,
.loan-device-image:focus-within .loan-device-image__zoom {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.loan-device-image__large {
  width: 100%;
  max-height: 260px;
  border-radius: 16px;
  object-fit: contain;
  background: #eef7fd;
}

.loan-icon-button {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(18, 58, 99, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #123a63;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.loan-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.loan-icon-link:hover,
.loan-icon-link:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
  outline: none;
}

.loan-icon-button__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.loan-icon-button:hover,
.loan-icon-button:focus-visible {
  background: #123a63;
  color: #fff;
  border-color: #123a63;
}

.loan-icon-button--danger {
  color: #b12323;
  border-color: rgba(177, 35, 35, 0.24);
}

.loan-icon-button--danger:hover,
.loan-icon-button--danger:focus-visible {
  background: #b12323;
  color: #fff;
  border-color: #b12323;
}

.loan-dashboard-grid--overdue {
  background: #fff1f1;
  border-color: rgba(195, 49, 49, 0.26);
}

.loan-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.loan-status--open {
  background: rgba(33, 151, 83, 0.14);
  color: #167041;
}

.loan-status--borrowed {
  background: rgba(220, 177, 30, 0.18);
  color: #8d6800;
}

.loan-status--closed {
  background: rgba(18, 58, 99, 0.14);
  color: #123a63;
}

.loan-status--canceled {
  background: rgba(166, 35, 35, 0.14);
  color: #a62323;
}

.loan-status--overdue {
  background: rgba(195, 49, 49, 0.18);
  color: #a62323;
}

.detail-shell--sitemap {
  height: auto;
  min-height: 100%;
  padding-bottom: 120px;
  overflow: visible;
}

.detail-shell--tile9 {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.detail-header--tile9 {
  margin-bottom: 3rem;
}

.tile9-hub {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 260px));
  gap: 2rem;
  justify-content: center;
  align-content: center;
  padding: 1rem 0 4rem;
}

.tile9-hub__card {
  min-height: 260px;
  border: 1px solid rgba(0, 158, 224, 0.2);
  border-radius: 2rem;
  background: #fff;
  display: grid;
  justify-items: center;
  align-content: center;
  box-shadow: 0 18px 40px rgba(0, 158, 224, 0.08);
}

.tile9-hub__card--link {
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.tile9-hub__card--link:hover,
.tile9-hub__card--link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 158, 224, 0.14);
  border-color: rgba(0, 158, 224, 0.42);
  outline: none;
}

.tile9-hub__icon {
  width: 216px;
  height: 216px;
  object-fit: contain;
}

.detail-shell--placeholder-app {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.placeholder-app-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1rem 0 4rem;
}

.placeholder-app-stage__image {
  width: min(420px, 74vw);
  height: auto;
  object-fit: contain;
}

.detail-content--sitemap {
  width: 1380px;
}

.sitemap-tree {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 28px 32px 40px;
  border-radius: 36px;
  background: #f7fcff;
  border: 1px solid #cfe9fb;
  box-shadow: 0 18px 40px rgba(0, 80, 150, 0.08);
}

.sitemap-tree__root {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
}

.sitemap-tree__root::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 180px;
  width: 54px;
  height: 2px;
  background: #78c8f0;
}

.sitemap-tree__children {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
  padding-left: 48px;
}

.sitemap-tree__children::before {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 18px;
  width: 2px;
  background: #78c8f0;
}

.sitemap-tree__branch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sitemap-tree__branch::before {
  content: "";
  position: absolute;
  top: 31px;
  left: -30px;
  width: 30px;
  height: 2px;
  background: #78c8f0;
}

.sitemap-tree__branch-head {
  position: relative;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding-bottom: 0;
}

.sitemap-tree__branch-head::after {
  display: none;
}

.sitemap-tree__leaf-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  min-height: 62px;
}

.sitemap-tree__leaf-list::before {
  content: "";
  position: absolute;
  top: 31px;
  left: -20px;
  width: 20px;
  height: 2px;
  background: #78c8f0;
}

.sitemap-tree__leaf-item {
  position: relative;
  display: flex;
  justify-content: flex-start;
}

.sitemap-tree__leaf-item::before {
  display: none;
}

.sitemap-tree__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  padding: 16px 22px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.sitemap-tree__node:hover {
  transform: translateY(-2px);
}

.sitemap-tree__node--root {
  min-width: 180px;
  background: #123a63;
  color: #fff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(4, 40, 92, 0.28);
}

.sitemap-tree__node--tile {
  width: min(100%, 320px);
  background: #009ee0;
  color: #fff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 10px 22px rgba(3, 66, 122, 0.22);
}

.sitemap-tree__node--topic {
  width: min(100%, 300px);
  justify-content: flex-start;
  background: #fff;
  color: #123a63;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid #b7ddf4;
  box-shadow: 0 8px 18px rgba(3, 66, 122, 0.1);
}

.sitemap-tree__node--topic:hover,
.sitemap-tree__node--tile:hover {
  box-shadow: 0 10px 22px rgba(3, 66, 122, 0.16);
}

.sitemap-tree__node--tile:hover {
  background: #12a9e9;
  color: #fff;
}

.sitemap-tree__node--topic:hover {
  background: #f3fbff;
  color: #0a4b87;
}

.sitemap-tree__lock {
  width: 13px;
  height: 17px;
  flex: 0 0 auto;
}

@media (max-width: 991px) {
  .detail-content--sitemap {
    width: auto;
  }

  .tile9-hub {
    grid-template-columns: minmax(220px, 320px);
    align-content: start;
  }

  .sitemap-tree {
    grid-template-columns: 1fr;
    padding: 22px 20px 30px;
  }

  .sitemap-tree__root {
    justify-content: center;
    padding-top: 0;
  }

  .sitemap-tree__root::after {
    top: auto;
    left: 50%;
    bottom: -18px;
    width: 2px;
    height: 18px;
    transform: translateX(-50%);
  }

  .sitemap-tree__children {
    padding-left: 0;
  }

  .sitemap-tree__children::before {
    display: none;
  }

  .sitemap-tree__branch {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sitemap-tree__branch::before {
    display: none;
  }

  .sitemap-tree__branch-head {
    justify-content: center;
  }

  .sitemap-tree__leaf-list {
    justify-content: center;
  }

  .sitemap-tree__leaf-list::before {
    display: none;
  }

  .loan-form__identity,
  .loan-form__range,
  .loan-form__delivery-grid,
  .loan-order-overview,
  .loan-order-config-grid,
  .loan-order-items,
  .loan-product-grid,
  .loan-catalog-grid,
  .loan-processing-grid,
  .loan-dashboard-grid,
  .loan-device-grid,
  .loan-db-card {
    grid-template-columns: 1fr;
  }

  .loan-category-header {
    align-items: flex-start;
  }

  .loan-dashboard-grid--head,
  .loan-device-grid--head {
    display: none;
  }

  .loan-db-section__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .loan-db-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .loan-db-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .loan-db-product-card {
    grid-template-columns: 1fr;
  }

  .loan-catalog-card__body {
    grid-template-columns: 1fr;
  }

  .loan-catalog-card__hover {
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(100% + 12px);
    width: auto;
  }

  .loan-catalog-card:nth-child(3n) .loan-catalog-card__hover {
    right: 0;
  }

  .loan-order-table__head {
    display: none;
  }

  .loan-order-table__row {
    grid-template-columns: 1fr;
  }

  .loan-order-scan {
    grid-template-columns: 1fr;
  }
}
