body.km-app-shell {
  font-size: 15px;
  zoom: 0.85;
  background:
    radial-gradient(circle at top left, rgba(16, 148, 215, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(11, 103, 160, 0.09), transparent 24%),
    linear-gradient(180deg, #f9fcff 0%, #eef5fb 100%);
  color: #1c2838;
}

.w-sidebar-width {
  width: 15.5rem !important;
}

.ml-sidebar-width {
  margin-left: 15.5rem !important;
}

.px-container-padding {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.px-gutter {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

.py-gutter {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.px-unit {
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

.space-y-card-gap > * + * {
  margin-top: 1.1rem;
}

.km-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 20px 0 60px rgba(15, 23, 42, 0.08);
}

.km-brand h1 {
  margin: 0;
  color: #101720;
  font-size: 1.68rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.km-brand-logo {
  display: block;
  width: 100%;
  max-width: 10.75rem;
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.08));
}

.km-brand p {
  margin: 0;
  color: #607084;
  font-size: 0.84rem;
}

.km-sudo {
  margin-bottom: 0.85rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
}

.km-sudo-card {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

.km-sudo-group {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.km-sudo-group-label {
  color: #5f6f82;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.km-sudo-label,
.km-sudo-status-label {
  color: #5f6f82;
  font-size: 0.78rem;
  font-weight: 700;
}

.km-sudo-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.95rem;
  background: rgba(248, 251, 255, 0.86);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
}

.km-sudo-search-wrap .material-symbols-outlined {
  font-size: 1.1rem;
  color: #0b6ea6;
}

.km-sudo-search {
  width: 100%;
  border: 0;
  background: transparent;
  color: #17324c;
  font-size: 0.88rem;
  font-weight: 600;
  box-sizing: border-box;
  padding: 0;
}

.km-sudo-search:focus {
  outline: none;
}

.km-domain-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 1rem;
  background: rgba(248, 251, 255, 0.86);
  box-sizing: border-box;
}

.km-domain-filtergroup {
  display: grid;
  gap: 0.35rem;
  min-width: min(18rem, 100%);
  flex: 1 1 18rem;
}

.km-domain-filterlabel {
  color: #5f6f82;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.km-domain-filterinput,
.km-domain-filterselect {
  min-height: 2.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.85rem;
  background: #fff;
  color: #17324c;
  font-size: 0.88rem;
  font-weight: 600;
  box-sizing: border-box;
}

.km-domain-filterinput:focus,
.km-domain-filterselect:focus {
  outline: 2px solid rgba(20, 149, 219, 0.18);
  outline-offset: 1px;
}

.km-sudo-autocomplete {
  position: relative;
}

.km-sudo-results {
  display: none;
  position: absolute;
  inset: calc(100% + 0.25rem) 0 auto 0;
  z-index: 40;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.km-sudo-results.is-open {
  display: grid;
  gap: 0.15rem;
}

.km-sudo-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #17324c;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.km-sudo-option:hover,
.km-sudo-option.is-active {
  background: rgba(16, 148, 215, 0.1);
}
.km-sudo-option.is-disabled,
.km-sudo-option.is-disabled:hover {
  color: #9aa7b5;
  background: #f4f6f8;
  cursor: not-allowed;
  opacity: .72;
}
.km-sudo-option.is-disabled .km-sudo-disabled-label { color: #b54832; font-size: .68rem; font-weight: 700; }

.km-sudo-empty {
  padding: 0.5rem 0.6rem;
  color: #8394a6;
  font-size: 0.84rem;
}

.km-sudo-current,
.km-sudo-status-value {
  color: #17324c;
  font-size: 0.84rem;
}

.km-sudo-submit,
.km-sudo-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.6rem 0.9rem;
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #1495db, #0d79b6);
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.km-sudo-back {
  background: rgba(16, 148, 215, 0.1);
  color: #0b4c72 !important;
}

.km-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
  padding-right: 0.2rem;
  overflow-y: auto;
}

.km-nav-link {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.74rem 0.9rem !important;
  border-radius: 0.9rem;
  color: #405264;
  font-size: 0.92rem;
  font-weight: 600;
}

.km-nav-link .material-symbols-outlined {
  font-size: 1.18rem;
  color: #0b6ea6;
}

.km-nav-link:hover {
  background: rgba(16, 148, 215, 0.08);
  color: #0b4263;
}

.km-nav-link-active {
  background: linear-gradient(135deg, rgba(16, 148, 215, 0.18), rgba(10, 119, 178, 0.08));
  color: #0b4c72 !important;
  box-shadow: inset 0 0 0 1px rgba(16, 148, 215, 0.14);
}

.km-nav-link-active::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 0.22rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, #1294da, #0a77b2);
}

.km-subnav {
  margin: 0.15rem 0 0.45rem 0.85rem !important;
  padding: 0.1rem 0 0.1rem 0.85rem !important;
  border-left: 1px solid rgba(191, 203, 217, 0.88);
}

.km-subnav-link {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 1.9rem;
  color: #6a7b8f;
  font-size: 0.84rem;
  font-weight: 600;
}

.km-subnav-link:hover {
  color: #0a77b2;
}

.km-subnav-link-active {
  color: #0a77b2 !important;
}

.km-subnav-link-active span:first-child {
  background: #1294da !important;
}

.km-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.7rem;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.km-topbar-title {
  color: #111a23;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.km-topbar-meta {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.km-topbar-block {
  padding: 0.45rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(244, 250, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(211, 230, 244, 0.95);
}

.km-topbar-block p:first-child {
  margin: 0;
  color: #6c7a8a;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.km-topbar-block p:last-child {
  margin: 0.2rem 0 0;
  color: #11324f;
  font-size: 0.9rem;
  font-weight: 700;
}

.km-topbar-sep {
  display: none;
}

.km-main {
  min-height: calc(100vh - 4.7rem);
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
}

.km-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.15rem;
  padding: 1.45rem;
  border: 1px solid rgba(202, 222, 238, 0.9);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(17, 149, 218, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 254, 0.98));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.km-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -42% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(8, 140, 208, 0.16), transparent 68%);
  pointer-events: none;
}

.km-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.km-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.38rem 0.72rem;
  border-radius: 9999px;
  background: rgba(16, 148, 215, 0.1);
  color: #0a77b2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.km-hero-title {
  margin: 0;
  color: #17293f;
  font-size: clamp(1.72rem, 2.3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.km-hero-subtitle {
  margin: 0.65rem 0 0;
  max-width: 40rem;
  color: #536579;
  font-size: 0.92rem;
  line-height: 1.62;
}

.km-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.km-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(211, 230, 244, 0.95);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  color: #18415f;
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.km-content {
  display: block;
}

.km-page-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.km-footer {
  position: fixed;
  left: 15.5rem;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.7rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #6b7c90;
  font-size: 0.76rem;
}

.km-main {
  padding-bottom: 5.4rem !important;
}

.km-content > table[width="100%"] {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0 0.95rem;
}

.km-content > table[width="100%"] > tbody > tr > td[width="10%"] {
  display: none;
}

.km-content > table[width="100%"] > tbody > tr > td[width="80%"] {
  width: 100% !important;
}

.km-btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(13, 121, 182, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, #1495db, #0d79b6);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(13, 121, 182, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.km-btn-add:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(13, 121, 182, 0.18);
  filter: brightness(1.02);
}

html[lang="de"] .km-content a.km-legacy-add-button,
html[lang="de"] .km-content a:has(> img[src*="images/button.jpg"]),
html[lang="en"] .km-content a.km-legacy-add-button,
html[lang="en"] .km-content a:has(> img[src*="images/button.jpg"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  min-width: 3.6rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(13, 121, 182, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, #1495db, #0d79b6);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(13, 121, 182, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

html[lang="de"] .km-content a.km-legacy-add-button::before,
html[lang="de"] .km-content a:has(> img[src*="images/button.jpg"])::before {
  content: "Neu";
}

html[lang="en"] .km-content a.km-legacy-add-button::before,
html[lang="en"] .km-content a:has(> img[src*="images/button.jpg"])::before {
  content: "New";
}

html[lang="de"] .km-content a.km-legacy-add-button > img,
html[lang="de"] .km-content a:has(> img[src*="images/button.jpg"]) > img,
html[lang="en"] .km-content a.km-legacy-add-button > img,
html[lang="en"] .km-content a:has(> img[src*="images/button.jpg"]) > img {
  display: none;
}

html[lang="de"] .km-content a.km-legacy-add-button:hover,
html[lang="de"] .km-content a:has(> img[src*="images/button.jpg"]):hover,
html[lang="en"] .km-content a.km-legacy-add-button:hover,
html[lang="en"] .km-content a:has(> img[src*="images/button.jpg"]):hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(13, 121, 182, 0.18);
  filter: brightness(1.02);
}

.km-content table.box1,
.km-content table.box,
.km-content #dvListingTable > table,
.km-content table[class="box1"],
.km-content table[class="box"] {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(210, 226, 239, 0.9);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.06);
}

.km-content .headHeavy {
  padding: 0.95rem 1.15rem;
  border: 0;
  background:
    linear-gradient(135deg, rgba(16, 148, 215, 0.14), rgba(16, 148, 215, 0.03));
  color: #163550;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.km-content .headLight,
.km-content .tblListingTd {
  padding: 0.75rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(219, 228, 238, 0.92);
  background: #edf6fc;
  color: #345774;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.km-content .tblListingTdList,
.km-content .box td,
.km-content .box1 td {
  padding: 0.82rem 0.88rem;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  color: #1f354e;
  font-size: 0.87rem;
  line-height: 1.48;
  vertical-align: top;
}

.km-content .box tr:first-child td,
.km-content .box1 tr:first-child td,
.km-content #dvListingTable > table tr:first-child .tblListingTdList {
  border-top: 0;
}

.km-content .news {
  padding: 1.1rem 1rem 1.2rem;
  color: #44586e;
  line-height: 1.66;
}

.km-content a {
  color: #0b7dbb;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.km-content a:hover {
  color: #095e8d;
}

.km-domain-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(193, 214, 235, 0.95);
  border-radius: 0.8rem;
  background: rgba(244, 250, 255, 0.98);
  color: #0a77b2 !important;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.km-domain-history-btn .material-symbols-outlined {
  font-size: 1.05rem;
  line-height: 1;
}

.km-domain-history-btn:hover {
  background: #fff;
  border-color: rgba(127, 181, 232, 0.95);
  color: #095e8d !important;
  box-shadow: 0 14px 24px rgba(36, 115, 221, 0.12);
  transform: translateY(-1px);
}

.km-dns-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  width: 100%;
}

.km-dns-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(193, 214, 235, 0.95);
  border-radius: 0.7rem;
  background: rgba(244, 250, 255, 0.98);
  color: #0a77b2 !important;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.km-dns-action-btn .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

.km-dns-action-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.km-btn-add .material-symbols-outlined {
  margin-right: 0.28rem;
  font-size: 1rem;
  line-height: 1;
}

.km-reseller-news {
  width: 100%;
}

.km-reseller-news .km-domain-filterbar {
  justify-content: space-between;
}

.km-reseller-news .km-table-actions-heading {
  width: 6.25rem;
  text-align: center;
}

.km-reseller-news .km-news-state {
  text-align: center;
}

.km-reseller-news .km-news-state .material-symbols-outlined { font-size: 1.1rem; vertical-align: middle; }
.km-state-on { color: #0d8a56; }
.km-state-off { color: #9baabb; }

/* Shared action controls: stable contrast even when a legacy table supplies its own button styles. */
.km-dns-actions .km-dns-action-btn {
  background: #f4faff !important;
  color: #087db9 !important;
  border-color: #b9d9f2 !important;
}
.km-dns-actions .km-dns-action-btn .material-symbols-outlined {
  display: block;
  font-size: 1.15rem;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}
.km-dns-actions .km-dns-action-btn:hover { background: #e4f4ff !important; }
.km-dns-actions .km-action-danger { color: #bd2626 !important; border-color: #f0c1c1 !important; background: #fff6f6 !important; }
.km-dns-actions .km-action-danger:hover { background: #ffe9e9 !important; }

.km-empty-state {
  padding: 2.25rem !important;
  color: #657892 !important;
  text-align: center;
}

.km-inline-form {
  width: min(46rem, calc(100vw - 3rem));
  padding: 1.45rem;
}

.km-reseller-news-modal-panel { width: min(52rem, calc(100vw - 2rem)); }
.km-reseller-news-modal-panel .km-reseller-news-form { width: 100%; max-width: none; box-sizing: border-box; }
.km-reseller-package-modal-panel { width: min(58rem, calc(100vw - 2rem)); }
.km-package-filterbar { margin-bottom: 1rem; }
.km-package-table tr[style*="display: none"] { display: none !important; }
.km-overview-dashboard { display: grid; gap: 1.2rem; width: 100%; }
.km-hero-dashboard-hidden { display: none; }
.km-overview-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.7rem; border: 1px solid rgba(198,219,235,.95); border-radius: 1.25rem; background: linear-gradient(135deg, #fff 0%, #eef8ff 100%); }
.km-overview-welcome h2 { margin: .35rem 0 .25rem; color: #142b47; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.05em; }
.km-overview-welcome p { margin: 0; color: #59708a; }
.km-overview-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
.km-overview-actions .material-symbols-outlined { margin-right: .3rem; font-size: 1rem; vertical-align: -0.15em; }
.km-btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.35rem; padding: .45rem .9rem; border: 1px solid #bfd9ee; border-radius: .72rem; background: #f6fbff; color: #1f587f !important; font-size: .78rem; font-weight: 800; text-decoration: none; }
.km-btn-secondary:hover { background: #e8f5ff; border-color: #82b9e5; }
.km-overview-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .85rem; }
.km-overview-kpi { position: relative; display: grid; align-content: start; gap: .35rem; min-height: 9.8rem; padding: 1.1rem; border: 1px solid rgba(198,219,235,.95); border-radius: 1rem; background: rgba(255,255,255,.95); color: #17324c !important; text-decoration: none; box-shadow: 0 12px 28px rgba(15,23,42,.045); }
.km-overview-kpi:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15,23,42,.08); }
.km-overview-icon, .km-overview-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem; background: #e7f4ff; color: #087db9; }
.km-overview-kpi small { color: #536b83; font-size: .78rem; font-weight: 700; }
.km-overview-kpi strong { color: #13253a; font-size: 2rem; letter-spacing: -.05em; }
.km-overview-link { display: inline-flex; align-items: center; gap: .2rem; margin-top: auto; color: #087db9; font-size: .72rem; font-weight: 800; }
.km-overview-link .material-symbols-outlined, .km-overview-panel-head a .material-symbols-outlined { font-size: 1rem; vertical-align: middle; }
.km-overview-kpi-status { background: linear-gradient(145deg, #fff, #f2fbf7); }
.km-overview-kpi-status strong { color: #087b50; font-size: 1.25rem; }
.km-overview-status-dot { position: absolute; top: 1.3rem; right: 1.2rem; width: .65rem; height: .65rem; border-radius: 50%; background: #14a56b; box-shadow: 0 0 0 .28rem #dff7eb; }
.km-overview-muted { color: #698097; font-size: .75rem; }
.km-overview-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(20rem, .7fr); gap: 1.2rem; }
.km-overview-panel { min-width: 0; padding: 1.2rem; border: 1px solid rgba(198,219,235,.95); border-radius: 1.1rem; background: rgba(255,255,255,.95); box-shadow: 0 12px 28px rgba(15,23,42,.045); }
.km-overview-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: .95rem; border-bottom: 1px solid #e1ebf3; }
.km-overview-panel-head h3 { margin: .25rem 0 0; color: #17324c; font-size: 1.3rem; letter-spacing: -.035em; }
.km-overview-panel-head a { display: inline-flex; align-items: center; gap: .25rem; color: #087db9; font-size: .75rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.km-overview-domain-list, .km-overview-service-list { display: grid; }
.km-overview-domain-list a, .km-overview-service-list a { display: flex; align-items: center; gap: .75rem; padding: .8rem .2rem; border-bottom: 1px solid #e5edf4; color: #17324c !important; text-decoration: none; }
.km-overview-domain-list a:last-child, .km-overview-service-list a:last-child { border-bottom: 0; }
.km-overview-domain-list > a > .material-symbols-outlined:first-child { color: #087db9; }
.km-overview-domain-list a > span:nth-child(2), .km-overview-service-list a > span:nth-child(2) { display: grid; gap: .18rem; flex: 1; }
.km-overview-domain-list small, .km-overview-service-list small { color: #6a8197; font-size: .73rem; }
.km-overview-domain-list a > .material-symbols-outlined:last-child, .km-overview-service-list a > .material-symbols-outlined:last-child { color: #91a6b9; font-size: 1.15rem; }
.km-overview-service-icon { width: 2.2rem; height: 2.2rem; border-radius: .65rem; }
.km-overview-empty { display: flex; align-items: center; gap: .6rem; padding: 2rem .2rem; color: #6a8197; }
@media (max-width: 900px) { .km-overview-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .km-overview-columns { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .km-overview-welcome { display: grid; align-items: start; padding: 1.15rem; } .km-overview-actions { justify-content: flex-start; } .km-overview-kpis { grid-template-columns: 1fr; } }
.km-btn-back, .km-package-submit { display: inline-flex !important; align-items: center; justify-content: center; min-height: 2.35rem; box-sizing: border-box; margin: 0 0.3rem; padding: 0.45rem 0.95rem; border-radius: 0.72rem; font-size: 0.78rem; font-weight: 800; line-height: 1; text-decoration: none; vertical-align: middle; cursor: pointer; }
.km-btn-back { border: 1px solid #bfd9ee; background: #f5faff; color: #1f587f !important; }
.km-btn-back:hover { border-color: #82b9e5; background: #e8f5ff; }
.km-package-submit { border: 1px solid rgba(13, 121, 182, 0.14); }
.km-content a:has(> img[src*="zurueck_button.jpg"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  margin: 0 0.3rem;
  padding: 0.45rem 0.95rem;
  box-sizing: border-box;
  border: 1px solid #bfd9ee;
  border-radius: 0.72rem;
  background: #f5faff;
  color: #1f587f !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}
.km-content a:has(> img[src*="zurueck_button.jpg"]):hover { border-color: #82b9e5; background: #e8f5ff; }
.km-content a:has(> img[src*="zurueck_button.jpg"]) > img { display: none; }
.km-content input[type="image"][src*="speichern_button.jpg"] {
  appearance: none;
  min-width: 5rem;
  height: 2.35rem;
  margin: 0 0.3rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(13, 121, 182, 0.14);
  border-radius: 0.72rem;
  background: linear-gradient(135deg, #1495db, #0d79b6);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  content: "Weiter";
}
.km-content input[type="image"][src*="speichern_button.jpg"]::after { content: "Weiter"; font-size: 0.78rem; font-weight: 800; }

.km-inline-form h2 {
  margin: 0.38rem 0 1.25rem;
  color: #152d4a;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
}

.km-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.1rem;
}

.km-inline-form label {
  display: grid;
  gap: 0.38rem;
  color: #506681;
  font-size: 0.76rem;
  font-weight: 800;
}

.km-inline-form input:not([type="checkbox"]),
.km-inline-form select,
.km-inline-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid #c7ddf2;
  border-radius: 0.75rem;
  background: #fff;
  color: #1c3857;
  font: inherit;
  font-weight: 500;
}

.km-inline-form select[multiple] { min-height: 8.6rem; }
.km-inline-form textarea { min-height: 9.5rem; resize: vertical; }
.km-inline-form input:focus, .km-inline-form select:focus, .km-inline-form textarea:focus { outline: 2px solid rgba(20, 149, 219, 0.2); border-color: #1495db; }
.km-form-full { margin-top: 1rem; }

.km-date-fields { display: grid; grid-template-columns: 3.5rem 3.5rem 1fr; gap: 0.35rem; }
.km-date-fields input { min-width: 0; text-align: center; }

.km-check-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.km-check-row label { display: flex; align-items: center; gap: 0.42rem; }
.km-check-row input { width: 1rem; height: 1rem; accent-color: #0d79b6; }

.km-inline-form-actions { display: flex; justify-content: flex-end; gap: 0.65rem; margin-top: 1.35rem; }
.km-btn-secondary, .km-btn-danger { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; padding: 0.45rem 0.95rem; border-radius: 0.75rem; font: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.km-btn-secondary { border: 1px solid #c7ddf2; background: #fff; color: #1b5176; }
.km-btn-danger { gap: 0.3rem; border: 1px solid #f4c6c6; background: #fff4f4; color: #be2828; }
.km-btn-danger:hover { background: #ffe8e8; }
.km-action-danger:hover { border-color: #f2b8b8; color: #bd2626 !important; }
.km-form-error, .km-form-success { margin: 0 0 1rem; padding: 0.75rem 0.9rem; border-radius: 0.75rem; font-weight: 700; }
.km-form-error { color: #b42318; background: #fff2f0; border: 1px solid #ffd0ca; }
.km-form-success { color: #087b43; background: #ecfdf3; border: 1px solid #b5ebcc; }

@media (max-width: 640px) {
  .km-inline-form { width: min(100%, calc(100vw - 2rem)); padding: 1.05rem; }
  .km-form-grid { grid-template-columns: 1fr; }
  .km-inline-form-actions { justify-content: stretch; }
  .km-inline-form-actions > * { flex: 1; }
}

.km-ftp-inline-card {
  width: min(36rem, calc(100vw - 2rem));
}

.km-mysql-inline-card {
  width: min(38rem, calc(100vw - 2rem));
}

.km-vhost-inline-card {
  width: min(42rem, calc(100vw - 2rem));
}

.km-mail-inline-card {
  width: min(42rem, calc(100vw - 2rem));
}

.km-mailw-inline-card {
  width: min(42rem, calc(100vw - 2rem));
}

.km-mailab-inline-card {
  width: min(44rem, calc(100vw - 2rem));
}

.km-adm-dashboard {
  width: min(58rem, 100%);
  display: grid;
  gap: 1.2rem;
}

.km-reseller-dashboard {
  width: 100%;
}

.km-admin-dashboard {
  width: 100%;
}

.km-adm-profile {
  width: min(58rem, 100%);
  display: grid;
  gap: 1.2rem;
}

.km-reseller-settings { width: 100%; display: grid; gap: 1.1rem; }
.km-reseller-settings-card { display: grid; gap: 1.25rem; padding: 1.25rem; border: 1px solid rgba(198,219,235,.95); border-radius: 1rem; background: rgba(255,255,255,.92); }
.km-reseller-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem 1rem; }
.km-reseller-settings-card .km-history-btn { text-decoration: none; }.km-reseller-settings-card .material-symbols-outlined { font-size: 1rem; vertical-align: -0.15em; margin-right: .3rem; }
.km-reseller-customer-actions { display: grid; grid-template-columns: repeat(5, 2rem); justify-content: center; gap: .35rem; min-width: 11.4rem; }.km-reseller-customer-actions .material-symbols-outlined { font-size: 1rem; vertical-align: -0.15em; margin-right: .3rem; }
.km-reseller-customer-actions .km-dns-action-placeholder { width: 2rem; height: 2rem; display: block; }
.km-reseller-customer-actions .km-reseller-note-action { color: #866500 !important; border-color: #e8d89c !important; background: #fffdf1 !important; }
.km-reseller-customer-actions .km-reseller-note-action { position: relative; overflow: visible; }
.km-note-badge { position: absolute; top: -.42rem; right: -.42rem; min-width: 1rem; height: 1rem; padding: 0 .18rem; border: 2px solid #f4faff; border-radius: 999px; background: #d54b35; color: #fff; font-size: .62rem; line-height: .72rem; text-align: center; font-weight: 800; }
.km-reseller-notes { width: min(42rem, calc(100vw - 2rem)); }
.km-reseller-notes-heading h2 { margin: .35rem 0 .2rem; }
.km-reseller-notes-heading p { margin: 0 0 1rem; color: #657892; }
.km-reseller-notes form { display: grid; gap: .8rem; }
.km-reseller-notes label { display: grid; gap: .35rem; color: #49617b; font-weight: 700; }
.km-reseller-notes-list { display: grid; gap: .7rem; margin-top: 1rem; }
.km-reseller-notes-list article { padding: .8rem 1rem; border: 1px solid #c6ddec; border-radius: .8rem; background: #f7fbff; }
.km-note-card-heading { display: flex; justify-content: space-between; gap: .6rem; }
.km-reseller-notes-list time { color: #7890a8; font-size: .78rem; }
.km-reseller-notes-list p { margin: .45rem 0 0; white-space: normal; }
.km-note-card-actions { display: flex; gap: .45rem; margin-top: .65rem; }
.km-note-card-actions button { min-height: 2rem; padding: .4rem .7rem; border-radius: .6rem; font-size: .78rem; }
.km-note-card-actions .km-note-delete { background: #fff4f4; color: #a63232; box-shadow: none; }
.km-toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 10000; max-width: min(24rem, calc(100vw - 2rem)); padding: .85rem 1.1rem; border: 1px solid #8ed2b0; border-radius: .8rem; background: #effcf5; color: #11643d; box-shadow: 0 14px 30px rgba(15, 35, 55, .18); font-weight: 700; opacity: 0; transform: translateY(1rem); transition: opacity .2s ease, transform .2s ease; }
.km-toast.is-visible { opacity: 1; transform: translateY(0); }
.km-reseller-su-action { color: #6d4cba; border-color: rgba(151, 125, 215, .55); }.km-reseller-su-action:hover { background: #f7f3ff; }

.km-adm-log { width: min(76rem, 100%); display: grid; gap: 1.1rem; }
.km-adm-log-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.km-adm-log-summary > div { display: grid; grid-template-columns: auto 1fr; column-gap: 0.65rem; align-items: center; padding: 0.9rem 1rem; border: 1px solid rgba(198, 219, 235, 0.95); border-radius: 0.9rem; background: rgba(255, 255, 255, 0.92); }
.km-adm-log-summary .material-symbols-outlined { grid-row: span 2; color: #087db9; }
.km-adm-log-summary strong { color: #17324c; font-size: 1.25rem; }.km-adm-log-summary small { color: #667d95; }
.km-adm-log-table-wrap { overflow: auto; border: 1px solid rgba(198, 219, 235, 0.95); border-radius: 1rem; background: rgba(255,255,255,.92); }
.km-adm-log-table { width: 100%; min-width: 48rem; border-collapse: collapse; }.km-adm-log-table th { padding: .85rem 1rem; background: #eaf6fd; color: #173d61; font-size: .75rem; letter-spacing: .05em; text-align: left; text-transform: uppercase; }.km-adm-log-table td { padding: .8rem 1rem; border-top: 1px solid rgba(216,229,239,.9); vertical-align: top; color: #294967; font-size: .88rem; }.km-adm-log-table td small { display:block; max-width:22rem; margin-top:.2rem; overflow:hidden; color:#71859a; text-overflow:ellipsis; white-space:nowrap; }.km-adm-log-type { display:inline-flex; padding:.28rem .5rem; border-radius:999px; background:#e6f5ff; color:#087db9; font-size:.72rem; font-weight:800; }.km-adm-log-type-mail { background:#eef8ea; color:#317646; }
.km-adm-section-title { margin-top: .25rem; }.km-adm-section-title h3 { margin: .25rem 0 0; color: #17324c; font-size: 1.2rem; }
.km-adm-action-confirm { color: #197344; border-color: rgba(101, 196, 139, .55); }.km-adm-action-confirm:hover { background: #f1fbf4; }

.km-adm-profile-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.km-adm-profile-card > div {
  display: grid;
  gap: 0.28rem;
  min-height: 5rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(216, 229, 239, 0.9);
}

.km-adm-profile-card > div:nth-child(odd) {
  border-right: 1px solid rgba(216, 229, 239, 0.9);
}

.km-adm-profile-card span {
  color: #627892;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.km-adm-profile-card strong {
  color: #17324c;
  overflow-wrap: anywhere;
}

.km-adm-intro {
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 1.15rem;
  background: linear-gradient(115deg, #ffffff 12%, #eef8ff 100%);
}

.km-adm-intro h2 {
  margin: 0.35rem 0;
  color: #13253a;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.km-adm-intro p {
  max-width: 40rem;
  margin: 0;
  color: #536b86;
}

.km-adm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.km-adm-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 7.5rem;
  padding: 1.15rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #17324c;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(26, 75, 112, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.km-adm-card > .material-symbols-outlined:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: #e4f4ff;
  color: #087db9;
}

.km-adm-card strong,
.km-adm-card small {
  display: block;
}

.km-adm-card small {
  margin-top: 0.25rem;
  color: #657b94;
  line-height: 1.4;
}

.km-adm-card-arrow {
  color: #0a77b2;
}

.km-adm-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 174, 225, 0.9);
  box-shadow: 0 18px 34px rgba(26, 75, 112, 0.12);
}

.km-adm-documents .km-domain-filterbar {
  align-items: stretch;
}

.km-adm-doc-upload {
  width: min(76rem, 100%);
  margin-bottom: 1rem;
}

.km-adm-doc-upload-card {
  grid-template-columns: 1fr;
}

.km-adm-doc-upload-panel {
  display: grid;
  gap: 0.8rem;
}

.km-adm-doc-upload-panel h3 {
  margin: 0;
  color: #17324c;
  font-size: 1.25rem;
}

.km-adm-doc-upload-panel p {
  margin: 0;
  color: #617891;
}

.km-adm-doc-table td {
  min-width: 8rem;
}

.km-adm-doc-file {
  display: inline-flex;
  max-width: 19rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: #eef8ff;
  color: #0a6ea7;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.km-adm-doc-file:hover {
  background: #dff1ff;
  color: #095e8d;
}

.km-customer-lookup {
  position: relative;
}

.km-customer-lookup-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 0.35rem;
  max-height: 18rem;
  padding: 0.5rem;
  overflow-y: auto;
  border: 1px solid #c7ddf2;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 40px rgba(17, 56, 88, 0.18);
}

.km-customer-lookup-option,
.km-customer-lookup-empty {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
}

.km-customer-lookup-option {
  display: grid;
  gap: 0.18rem;
  border: 1px solid transparent;
  background: #f7fbff;
  color: #1b3655;
  text-align: left;
  cursor: pointer;
}

.km-customer-lookup-option strong {
  font-size: 0.82rem;
}

.km-customer-lookup-option span,
.km-customer-lookup-empty {
  color: #617891;
  font-size: 0.78rem;
}

.km-customer-lookup-option small {
  color: #0f77b4;
  font-size: 0.74rem;
  font-weight: 700;
}

.km-customer-lookup-option:hover {
  border-color: #bdddf4;
  background: #eef7ff;
}

.km-customer-lookup-empty {
  border: 1px dashed #c7ddf2;
  background: #fbfdff;
  text-align: center;
}

.km-table-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: #eef7ff;
  color: #0b7aba;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.km-inline-hint {
  margin: 0.8rem 0 0;
  color: #617891;
  font-size: 0.8rem;
}

.km-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.km-pagination-link,
.km-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #c7ddf2;
  border-radius: 0.8rem;
  background: #fff;
  color: #1b5176;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.km-pagination-link:hover {
  border-color: #98c8eb;
  background: #f4faff;
}

.km-pagination-link.is-active {
  border-color: #1495db;
  background: linear-gradient(135deg, #1495db, #0d79b6);
  color: #fff;
}

.km-pagination-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.km-pagination-ellipsis {
  border-style: dashed;
  color: #7890a9;
}

.km-reseller-group-row td {
  padding: 0.72rem 0.9rem;
  background: linear-gradient(135deg, rgba(20, 149, 219, 0.12), rgba(13, 121, 182, 0.06));
  color: #145177;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.km-reseller-parent-row td {
  background: rgba(247, 251, 255, 0.92);
}

.km-reseller-child-row td {
  background: #fff;
}

.km-reseller-customer-name-cell.is-nested {
  position: relative;
  padding-left: 1.4rem;
}

.km-reseller-customer-name-cell.is-nested::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 50%;
  width: 0.65rem;
  height: 1px;
  background: #9fc9e8;
}

@media (max-width: 640px) {
  .km-adm-grid { grid-template-columns: 1fr; }
  .km-adm-profile-card { grid-template-columns: 1fr; }
  .km-adm-profile-card > div:nth-child(odd) { border-right: 0; }
  .km-reseller-settings-grid { grid-template-columns: 1fr; }
  .km-adm-log-summary { grid-template-columns: 1fr; }
}

.km-mailw-destinations {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.9rem;
  background: #f8fbff;
}

.km-mailw-destination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(216, 229, 239, 0.9);
  color: #17324c;
  font-size: 0.9rem;
}

.km-mailw-destination:last-child {
  border-bottom: 0;
}

.km-mailw-destination form {
  margin: 0;
}

.km-mail-delete-warning {
  margin: 0;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
}

.km-vhost-host-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.km-vhost-host-input input {
  min-width: 0;
  flex: 1;
}

.km-vhost-host-input strong {
  color: #36506d;
  font-size: 0.88rem;
  white-space: nowrap;
}

.km-vhost-ssl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #1f354e;
  font-size: 0.88rem;
  font-weight: 700;
}

.km-vhost-ssl-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #0d79b6;
}

.km-mysql-actions-cell,
.km-mysql-action-head {
  width: 8.5rem;
  text-align: center;
}

.km-mysql-action-external {
  color: #51657c !important;
}

.km-mysql-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(193, 214, 235, 0.95);
  border-radius: 0.9rem;
  background: rgba(244, 250, 255, 0.72);
}

.km-mysql-credentials div {
  display: grid;
  gap: 0.15rem;
}

.km-mysql-credentials span {
  color: #6b7c90;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.km-mysql-credentials strong {
  color: #1f354e;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.km-mysql-delete-warning {
  margin: 0;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
}

.km-dns-form-field small {
  color: #6b7c90;
  font-size: 0.76rem;
  line-height: 1.35;
}

.km-ftp-delete-confirm {
  background: #c6382f;
  color: #fff;
  box-shadow: 0 18px 36px rgba(180, 35, 24, 0.18);
}

.km-dns-action-edit:hover {
  border-color: rgba(127, 181, 232, 0.95);
  color: #095e8d !important;
  box-shadow: 0 12px 20px rgba(36, 115, 221, 0.10);
}

.km-dns-action-delete:hover {
  border-color: rgba(247, 173, 164, 0.95);
  color: #b42318 !important;
  box-shadow: 0 12px 20px rgba(180, 35, 24, 0.10);
}

body.km-modal-lock {
  overflow: hidden;
}

body.km-inline-shell {
  background: #fff;
}

.km-inline-main {
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.km-inline-content {
  min-height: calc(100vh - 2rem);
}

.km-dns-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.km-dns-modal-overlay.is-open {
  display: flex;
}

.km-dns-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(16px);
}

.km-dns-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 2rem));
  max-height: min(86vh, 920px);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.km-dns-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.km-dns-modal-kicker {
  margin: 0 0 0.2rem;
  color: #0a77b2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.km-dns-modal-title {
  margin: 0;
  color: #13253a;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.km-dns-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(193, 214, 235, 0.95);
  border-radius: 999px;
  background: #f4faff;
  color: #0a77b2;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.km-dns-modal-content {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding-right: 0.2rem;
}

.km-dns-inline-card {
  width: min(42rem, calc(100vw - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.km-dns-inline-card .km-history-header {
  align-items: flex-start;
}

.km-dns-inline-card .km-history-subtitle {
  margin-top: 0.35rem;
}

.km-dns-inline-result,
.km-dns-inline-form {
  display: grid;
  gap: 1rem;
}

.km-dns-form-grid {
  display: grid;
  gap: 0.9rem;
}

.km-dns-form-field {
  display: grid;
  gap: 0.35rem;
}

.km-dns-form-label {
  color: #5f6f82;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.km-dns-form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #42546a;
  font-size: 0.82rem;
  font-weight: 600;
}

.km-dns-form-check input {
  margin: 0;
}

.km-dns-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.km-dns-inline-host-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.km-dns-inline-host-row strong {
  color: #17324c;
}

.km-dns-inline-readonly {
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.78rem;
  background: #f8fbff;
  color: #17324c;
}

.km-dns-inline-success {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(22, 163, 74, 0.07) !important;
  color: #137a35 !important;
}

.km-dns-inline-error {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.06) !important;
  color: #b42318 !important;
}

.km-dkim-shell {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(241, 247, 252, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.km-dkim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.km-dkim-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  cursor: pointer;
}

.km-dkim-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.km-dkim-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.km-dkim-switch-track {
  position: relative;
  width: 3.1rem;
  height: 1.8rem;
  border: 1px solid rgba(160, 181, 206, 0.95);
  border-radius: 999px;
  background: #dbe7f2;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.km-dkim-switch-track::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 10px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease;
}

.km-dkim-switch input:checked + .km-dkim-switch-track {
  background: linear-gradient(135deg, #1495db, #0d79b6);
  border-color: rgba(13, 121, 182, 0.52);
}

.km-dkim-switch input:checked + .km-dkim-switch-track::after {
  transform: translateX(1.28rem);
}

.km-dkim-toggle-copy {
  display: grid;
  gap: 0.2rem;
}

.km-dkim-toggle-title {
  color: #18334d;
  font-size: 0.95rem;
  font-weight: 800;
}

.km-dkim-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.km-dkim-status.is-ok {
  background: rgba(22, 163, 74, 0.1);
  color: #137a35;
}

.km-dkim-status.is-warn {
  background: rgba(185, 28, 28, 0.08);
  color: #b42318;
}

.km-dkim-submit {
  min-height: 2.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.km-dkim-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.94);
}

.km-dkim-panel.is-hidden {
  display: none;
}

.km-dkim-modebar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.km-dkim-mode-label {
  color: #5f6f82;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.km-dkim-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 999px;
  background: #f8fbff;
  color: #17324c;
  font-size: 0.84rem;
  font-weight: 700;
}

.km-dkim-mode-option input {
  margin: 0;
}

.km-dkim-subpanel {
  display: grid;
  gap: 0.75rem;
}

.km-dkim-subpanel.is-hidden {
  display: none;
}

.km-dkim-field {
  display: grid;
  gap: 0.35rem;
  color: #17324c;
  font-size: 0.84rem;
  font-weight: 700;
}

.km-dkim-field input,
.km-dkim-field textarea {
  width: 100%;
  max-width: none;
}

.km-dkim-field textarea {
  min-height: 7rem;
}

.km-dkim-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #42546a;
  font-size: 0.82rem;
  font-weight: 600;
}

.km-dkim-check input {
  margin: 0;
}

.km-dkim-help {
  margin: 0;
  color: #708299;
  font-size: 0.78rem;
  line-height: 1.45;
}

.km-content input[type="text"],
.km-content input[type="password"],
.km-content input[type="email"],
.km-content select,
.km-content textarea {
  width: 100%;
  max-width: 28rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.78rem;
  background: #fff;
  padding: 0.68rem 0.82rem;
  color: #1a2b3d;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.km-content textarea {
  min-height: 7rem;
}

.km-content input[type="submit"],
.km-content input[type="button"],
.km-content button,
.km-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.62rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #1495db, #0d79b6);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(13, 121, 182, 0.22);
}

/* Table actions are utility controls, not primary form buttons. */
.km-content .km-dns-actions > .km-dns-action-btn {
  box-sizing: border-box;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 1px solid #b9d9f2;
  border-radius: 0.7rem;
  background: #f4faff;
  color: #087db9 !important;
  box-shadow: none;
}

.km-content .km-dns-actions > .km-dns-action-btn:hover {
  border-color: #7db5e8;
  background: #e4f4ff;
  box-shadow: 0 6px 12px rgba(13, 121, 182, 0.1);
}

.km-content .km-dns-actions > .km-dns-action-btn.km-action-danger:hover {
  border-color: #f0b0b0;
  background: #fff0f0;
  color: #bd2626 !important;
}

.km-content .km-pwchange-submit {
  min-width: 11rem;
  border-radius: 9999px;
  padding-inline: 1.4rem;
}

.km-content .blue {
  color: #0a77b2;
  font-weight: 700;
}

.km-content hr {
  border: 0;
  border-top: 1px solid rgba(203, 213, 225, 0.75);
}

.km-content img {
  max-width: 100%;
  height: auto;
}

body.km-login-page {
  font-size: 15px;
  zoom: 0.85;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, sans-serif;
  background:
    radial-gradient(circle at 18% 28%, rgba(47, 123, 222, 0.13), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(94, 160, 255, 0.12), transparent 24%),
    radial-gradient(circle at 55% 72%, rgba(197, 220, 255, 0.2), transparent 36%),
    linear-gradient(180deg, #f7fbff 0%, #edf4fd 100%);
  color: #1b2d40;
}

body.km-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.78), transparent 22%);
  opacity: 0.95;
  pointer-events: none;
  filter: blur(6px);
}

.km-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-login-layout {
  width: min(1440px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(25rem, 0.85fr);
  gap: 3.6rem;
  align-items: center;
}

.km-login-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 38rem;
  padding: 2rem 1rem 2rem 0;
}

.km-login-brand {
  padding: 0;
}

.km-login-logo {
  width: min(100%, 47rem);
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 18px 38px rgba(15, 23, 42, 0.08));
}

.km-login-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0.38rem 0.74rem;
  border-radius: 9999px;
  background: rgba(20, 149, 219, 0.08);
  color: #0a77b2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.km-login-title {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.55rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #17293f;
}

.km-login-subtitle {
  margin: 0;
  max-width: 36rem;
  color: #6881a3;
  font-size: 1.1rem;
  line-height: 1.72;
}

.km-login-divider {
  width: min(100%, 48rem);
  height: 1px;
  margin: 3rem 0 3.15rem;
  background: linear-gradient(90deg, rgba(177, 197, 225, 0), rgba(177, 197, 225, 0.92) 12%, rgba(177, 197, 225, 0.92) 88%, rgba(177, 197, 225, 0));
}

.km-login-feature-grid {
  display: grid;
  width: min(100%, 48rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.km-login-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 6.4rem;
  padding: 0.35rem 0.9rem;
  text-align: center;
  border-right: 1px solid rgba(188, 204, 230, 0.88);
}

.km-login-feature:last-child {
  border-right: 0;
}

.km-login-icon {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  flex-shrink: 0;
}

.km-login-feature .km-login-icon {
  width: 3.15rem;
  height: 3.15rem;
  color: #2473dd;
}

.km-login-feature strong {
  color: #264668;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.km-login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.2rem;
}

.km-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.58rem 0.92rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  color: #18415f;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.km-login-card {
  width: min(100%, 40.75rem);
  margin-left: auto;
  padding: 3rem 2.9rem 2.35rem;
  border: 1px solid rgba(223, 233, 247, 0.98);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(40, 88, 157, 0.14);
}

.km-login-card h2 {
  margin: 0;
  font-size: clamp(2.45rem, 3vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #173a71;
}

.km-login-card p {
  margin: 1rem 0 0;
  max-width: 29rem;
  color: #728aae;
  font-size: 1rem;
  line-height: 1.65;
}

.km-login-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.8rem 0 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(248, 169, 164, 0.72);
  border-radius: 1.15rem;
  background: rgba(254, 242, 242, 0.95);
  color: #b42318;
  font-weight: 700;
}

.km-login-alert .km-login-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #d92d20;
  stroke-width: 2.05;
}

.km-login-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.km-login-field label,
.km-login-static-label {
  display: block;
  margin-bottom: 0.65rem;
  color: #17324c;
  font-size: 0.92rem;
  font-weight: 800;
}

.km-login-static-value {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  background: rgba(248, 251, 255, 0.98);
  color: #17324c;
  font-weight: 600;
}

.km-login-input-wrap,
.km-login-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.95rem;
  padding: 0 1rem;
  border: 1px solid rgba(201, 220, 244, 0.92);
  border-radius: 1rem;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.km-login-input-wrap .km-login-icon,
.km-login-select-wrap .km-login-icon {
  color: #153965;
  stroke-width: 1.95;
}

.km-login-input,
.km-login-select {
  width: 100%;
  min-height: 2.95rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.76rem 0.88rem;
  color: #1b2d40;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.km-login-input-wrap .km-login-input,
.km-login-select-wrap .km-login-select {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 0 0.95rem;
  color: #17324c;
  font-size: 0.98rem;
  font-weight: 500;
}

.km-login-input-wrap .km-login-input:focus,
.km-login-select-wrap .km-login-select:focus {
  outline: none;
}

.km-login-select-wrap .km-login-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
}

.km-login-select-arrow {
  margin-left: auto;
  pointer-events: none;
  width: 1.45rem;
  height: 1.45rem;
  stroke-width: 2.2;
}

.km-login-inline-meta {
  margin-top: -0.2rem;
  color: #8295b1;
  font-size: 0.78rem;
  line-height: 1.5;
}

.km-login-inline-meta a {
  color: #7f95b8;
}

.km-login-language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: -0.1rem;
}

.km-language-option {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 2.7rem;
  padding: 0.4rem 0.78rem;
  border: 1px solid rgba(198, 219, 235, 0.9);
  border-radius: 9999px;
  background: rgba(248, 251, 255, 0.96);
  color: #4b6078;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.km-language-option:hover {
  color: #153965;
  border-color: rgba(120, 172, 232, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(36, 115, 221, 0.1);
  transform: translateY(-1px);
}

.km-language-option.is-active {
  border-color: rgba(66, 133, 244, 0.34);
  background: linear-gradient(135deg, rgba(36, 115, 221, 0.14), rgba(36, 115, 221, 0.05));
  color: #153965;
  box-shadow: 0 14px 28px rgba(36, 115, 221, 0.12);
}

.km-language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(209, 223, 240, 0.95);
  flex-shrink: 0;
}

.km-language-flag .fi {
  height: 100%;
  border-radius: 9999px;
  background-size: cover;
}

.km-language-flag .fi.fis {
  width: 100%;
}

.km-language-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.km-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.75rem;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2473dd, #1468d4);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 36px rgba(23, 104, 212, 0.22);
}

.km-login-meta {
  margin-top: 1.2rem;
  color: #7b91b0;
  font-size: 0.76rem;
  line-height: 1.65;
}

.km-login-footer {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 1.6rem;
  color: #76869a;
  font-size: 0.76rem;
  text-align: center;
}

body.km-history-page {
  font-size: 15px;
  zoom: 0.9;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, sans-serif;
  background:
    radial-gradient(circle at 18% 28%, rgba(47, 123, 222, 0.13), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(94, 160, 255, 0.12), transparent 24%),
    radial-gradient(circle at 55% 72%, rgba(197, 220, 255, 0.2), transparent 36%),
    linear-gradient(180deg, #f7fbff 0%, #edf4fd 100%);
  color: #1b2d40;
}

body.km-modal-lock {
  overflow: hidden;
}

body.km-history-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.78), transparent 22%);
  opacity: 0.95;
  pointer-events: none;
  filter: blur(6px);
}

.km-history-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-history-card {
  width: min(54rem, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(211, 230, 244, 0.95);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.km-history-card-inline {
  width: min(58rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

.km-history-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.km-history-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.74rem;
  border-radius: 9999px;
  background: rgba(20, 149, 219, 0.08);
  color: #0a77b2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.km-history-title {
  margin: 0;
  color: #17293f;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.km-history-subtitle {
  margin: 0.7rem 0 0;
  color: #62758c;
  line-height: 1.55;
}

.km-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.km-history-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(211, 230, 244, 0.95);
  border-radius: 9999px;
  background: rgba(244, 250, 255, 0.98);
  color: #18415f;
  font-size: 0.8rem;
  font-weight: 600;
}

.km-history-list {
  display: grid;
  gap: 0.75rem;
  max-height: calc(100vh - 18rem);
  overflow: auto;
  padding-right: 0.2rem;
}

.km-history-entry {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(215, 228, 240, 0.95);
  border-radius: 1rem;
  background: rgba(251, 253, 255, 0.98);
}

.km-history-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.km-history-entry-title {
  color: #17293f;
  font-weight: 800;
}

.km-history-entry-meta {
  color: #6b7c90;
  font-size: 0.82rem;
  white-space: nowrap;
}

.km-history-entry-message {
  color: #1f354e;
  line-height: 1.6;
  word-break: break-word;
}

.km-history-empty {
  padding: 1rem 1.05rem;
  border: 1px dashed rgba(180, 198, 216, 0.95);
  border-radius: 1rem;
  background: rgba(244, 250, 255, 0.72);
  color: #6b7c90;
  text-align: center;
}

.km-history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.km-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.km-history-btn-primary {
  background: linear-gradient(135deg, #2473dd, #1468d4);
  color: #fff;
  box-shadow: 0 18px 36px rgba(23, 104, 212, 0.22);
}

.km-history-btn-secondary {
  background: rgba(20, 149, 219, 0.08);
  color: #0a77b2;
}

.km-history-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}

.km-history-overlay.is-open {
  display: block;
}

.km-history-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 23, 39, 0.34);
  backdrop-filter: blur(12px);
}

.km-history-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-history-loading {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(211, 230, 244, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: #62758c;
  font-weight: 600;
}

.km-reset-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.km-reset-overlay.is-open {
  display: block;
}

.km-reset-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 23, 39, 0.34);
  backdrop-filter: blur(10px);
}

.km-reset-modal {
  position: relative;
  z-index: 1;
  width: min(31rem, calc(100vw - 2rem));
  margin: 5vh auto 0;
  padding: 1.35rem;
  border: 1px solid rgba(211, 230, 244, 0.94);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.km-reset-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(20, 149, 219, 0.08);
  color: #0a77b2;
  font-size: 1.35rem;
  line-height: 1;
}

.km-reset-header h2 {
  margin: 0;
  color: #17293f;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.km-reset-header p {
  margin: 0.65rem 0 0;
  color: #61758b;
  line-height: 1.55;
}

.km-reset-note {
  margin-top: -0.05rem;
  color: #6c7d91;
  font-size: 0.8rem;
  line-height: 1.5;
}

.km-reset-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  border: 1px solid rgba(198, 219, 235, 0.95);
  border-radius: 0.85rem;
  background: #fff;
  color: #18415f;
  font-weight: 700;
}

.km-login-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.km-login-footer a {
  color: #4e6177;
}

.km-topbar-language-switch {
  justify-content: flex-end;
}

.km-topbar-language-switch .km-language-option {
  min-height: 2.1rem;
  padding: 0.34rem 0.62rem;
  background: rgba(244, 250, 255, 0.98);
}

@media (max-width: 1024px) {
  .w-sidebar-width,
  body.km-app-shell .km-sidebar {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
  }

  .ml-sidebar-width,
  body.km-app-shell .km-topbar,
  body.km-app-shell .km-main,
  body.km-app-shell .km-footer {
    margin-left: 0 !important;
  }

  body.km-app-shell .km-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
  }

  .km-topbar,
  .km-footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .km-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .km-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .km-hero-meta {
    justify-content: flex-start;
  }

  .km-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .km-login-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .km-history-shell {
    padding: 0.75rem;
  }

  .km-history-card {
    padding: 1rem;
  }

  .km-history-header {
    flex-direction: column;
  }

  .km-history-actions-top,
  .km-history-actions {
    width: 100%;
  }

  .km-history-btn {
    width: 100%;
  }

  .km-history-list {
    max-height: none;
  }

  .km-login-showcase {
    min-height: auto;
    padding-right: 0;
  }

  .km-login-feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .km-reset-modal {
    margin-top: 4vh;
  }
}

@media (max-width: 720px) {
  .km-main {
    padding: 1rem;
  }

  .km-sidebar {
    padding-top: 1rem !important;
  }

  .km-hero,
  .km-login-card {
    padding: 1.35rem;
    border-radius: 1.35rem;
  }

  .km-login-showcase {
    padding: 0;
  }

  .km-login-shell {
    padding: 1.25rem 1rem 2rem;
  }

  .km-reset-modal {
    width: calc(100vw - 1.2rem);
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .km-login-title {
    font-size: 2.35rem;
  }

  .km-login-logo,
  .km-login-divider,
  .km-login-feature-grid {
    width: 100%;
  }

  .km-login-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .km-login-feature {
    min-height: 5.2rem;
    border-right: 0;
    border: 1px solid rgba(188, 204, 230, 0.75);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.54);
  }

  .km-login-language-switch {
    gap: 0.55rem;
  }

  .km-language-option {
    flex: 1 1 calc(50% - 0.3rem);
    justify-content: center;
  }

  .km-content .headHeavy {
    font-size: 1rem;
  }

  .km-content td,
  .km-content th,
  .km-content .tblListingTdList {
    padding: 0.85rem 0.8rem;
  }

  .km-topbar-meta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}
