/*
 * 4KC Design System Components
 *
 * Minimal technical foundation for shared KC UI building blocks.
 * Uses existing --kc-* tokens with fallbacks; no business-specific selectors.
 */

/* Registrar nameserver action */
.fi-modal:has(.kc-nameserver-modal) { position: fixed !important; inset: 0 !important; width: 100vw !important; z-index: 9999; }
.fi-modal.fi-modal-open:has(.kc-nameserver-modal) { display: block !important; }
.kc-nameserver-modal .fi-modal-content { padding-top: 0.5rem; }
.kc-nameserver-modal .kc-ns-layout { align-items: start; gap: 1.5rem; }
.kc-nameserver-modal .kc-ns-left { border: 0; box-shadow: none; background: transparent; }
.kc-nameserver-modal .kc-ns-left > .fi-section-content-ctn > .fi-section-content { padding: 0; }
.kc-nameserver-modal .kc-ns-step .fi-section-header { padding: 0 0 1rem; }
.kc-nameserver-modal .kc-ns-step .fi-section-header-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--kc-text, #0f172a);
}
.kc-nameserver-modal .kc-ns-step .fi-section-header-heading::first-letter { color: var(--kc-primary, #2563eb); }
.kc-nameserver-modal .kc-ns-step .fi-section-header-description { color: var(--kc-text-muted, #64748b); }
.kc-nameserver-modal .kc-ns-fields { gap: 0.7rem; margin-top: 0.35rem; }
.kc-nameserver-modal .kc-ns-fields .fi-fo-field { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.kc-nameserver-modal .kc-ns-fields .fi-fo-field-label { margin: 0; }
.kc-nameserver-modal .kc-ns-fields .fi-input-wrp { min-height: 2.65rem; }
.kc-ns-scope {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--kc-primary, #2563eb) 20%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 7%, var(--kc-surface, #fff));
  color: var(--kc-text-muted, #475569);
  font-size: 0.8125rem;
  line-height: 1.35rem;
}
.kc-ns-scope strong { color: var(--kc-primary, #1d4ed8); font-size: 0.875rem; }
.kc-ns-preview { display: grid; gap: 1rem; color: var(--kc-text, #0f172a); }
.kc-ns-preview section { border: 1px solid var(--kc-border-soft, #e2e8f0); border-radius: 0.8rem; padding: 1rem; background: var(--kc-surface, #fff); }
.kc-ns-preview h3, .kc-ns-preview h4, .kc-ns-preview p { margin: 0; }
.kc-ns-preview h3 { font-size: 1rem; font-weight: 700; }
.kc-ns-preview__compare { border-color: #fde68a !important; background: linear-gradient(135deg, #fffbeb, #fffdf5) !important; }
.kc-ns-preview__compare > header { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.kc-ns-preview__compare header p { margin-top: 0.2rem; color: #64748b; font-size: 0.8125rem; }
.kc-ns-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.55rem; background: #fef3c7; color: #1e3a8a; flex: none; }
.kc-ns-compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.kc-ns-compare-grid article { min-width: 0; min-height: 10.4rem; padding: 0.9rem; border: 1px solid #e2e8f0; border-radius: 0.7rem; background: #fff; }
.kc-ns-compare-grid article.kc-ns-new { border-color: #a7f3d0; background: #ecfdf5; }
.kc-ns-compare-grid h4 { font-size: 0.8125rem; font-weight: 700; }
.kc-ns-compare-grid ul { display: grid; gap: 0.28rem; margin: 0.7rem 0 0; padding: 0; list-style: none; color: #475569; font-size: 0.8125rem; overflow-wrap: anywhere; }
.kc-ns-new h4, .kc-ns-new ul { color: #047857; }
.kc-ns-arrow { color: #64748b; font-size: 1.6rem; }
.kc-ns-info h3, .kc-ns-flow h3 { margin-bottom: 0.75rem; }
.kc-ns-info dl { margin: 0; }
.kc-ns-info dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.52rem 0; border-top: 1px solid var(--kc-border-soft, #e2e8f0); font-size: 0.8125rem; }
.kc-ns-info dl > div:first-child { border-top: 0; }
.kc-ns-info dt { color: var(--kc-text-muted, #64748b); }
.kc-ns-info dd { margin: 0; text-align: right; font-weight: 600; }
.kc-ns-status-dot { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.45rem; border-radius: 999px; background: #10b981; }
.kc-ns-flow { border-color: #bfdbfe !important; background: color-mix(in srgb, #eff6ff 90%, var(--kc-surface, #fff)) !important; }
.kc-ns-flow h3 { color: #1d4ed8; }
.kc-ns-flow ol { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; color: #475569; font-size: 0.8125rem; }
.kc-ns-flow li { display: flex; align-items: center; gap: 0.65rem; }
.kc-ns-flow li span { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 999px; background: #3b82f6; color: #fff; font-size: 0.7rem; font-weight: 700; flex: none; }
.dark .kc-ns-preview__compare { border-color: #854d0e !important; background: linear-gradient(135deg, rgb(69 26 3 / 0.5), rgb(15 23 42 / 0.95)) !important; }
.dark .kc-ns-icon { background: rgb(133 77 14 / 0.55); color: #fde68a; }
.dark .kc-ns-compare-grid article { border-color: #334155; background: #111827; }
.dark .kc-ns-compare-grid article.kc-ns-new { border-color: #065f46; background: rgb(6 78 59 / 0.28); }
.dark .kc-ns-compare-grid ul { color: #cbd5e1; }
.dark .kc-ns-new h4, .dark .kc-ns-new ul { color: #6ee7b7; }
.dark .kc-ns-flow { border-color: #1e40af !important; background: rgb(30 58 138 / 0.2) !important; }
.dark .kc-ns-flow h3 { color: #93c5fd; }
.dark .kc-ns-flow ol { color: #cbd5e1; }
@media (max-width: 1023px) {
  .kc-nameserver-modal .kc-ns-fields .fi-fo-field { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (max-width: 640px) {
  .kc-nameserver-modal .fi-modal-header, .kc-nameserver-modal .fi-modal-content, .kc-nameserver-modal .fi-modal-footer { padding-inline: 1rem; }
  .kc-ns-compare-grid { grid-template-columns: 1fr; }
  .kc-ns-arrow { justify-self: center; transform: rotate(90deg); }
  .kc-ns-preview section { padding: 0.85rem; }
  .kc-ns-info dl > div { align-items: flex-start; }
}

.kc-card,
.kc-section {
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  color: var(--kc-text, #0f172a);
}

.kc-card {
  padding: var(--kc-space-5, 1.25rem);
}

.kc-section {
  padding: var(--kc-space-4, 1rem);
}

.kc-stack {
  display: flex;
  flex-direction: column;
  gap: var(--kc-space-4, 1rem);
  width: 100%;
  max-width: none;
  min-width: 0;
}

.kc-page-wide {
  inline-size: 100%;
  max-inline-size: none;
}

.kc-grid {
  display: grid;
  gap: var(--kc-space-4, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.kc-kpi-strip {
  display: grid;
  align-items: stretch;
  gap: 0.375rem;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .kc-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kc-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .kc-kpi-strip {
    grid-template-columns: 1fr;
  }
}

.kc-kpi-strip > .kc-kpi-card {
  height: 100%;
}

/* Billing stats keep Filament's native markup and add restrained 4KC accents. */
[data-billing-stat] {
  --billing-stat-accent: var(--kc-primary, #2563eb);
  border: 1px solid color-mix(in srgb, var(--billing-stat-accent) 38%, var(--kc-border-soft, #e2e8f0));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--billing-stat-accent) 11%, transparent), transparent 62%),
    var(--kc-surface, #ffffff);
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.07);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

[data-billing-stat]:hover {
  border-color: color-mix(in srgb, var(--billing-stat-accent) 68%, var(--kc-border, #cbd5e1));
  box-shadow: 0 14px 34px rgb(15 23 42 / 0.11);
  transform: translateY(-1px);
}

[data-billing-stat] .fi-icon {
  color: var(--billing-stat-accent);
}

[data-billing-stat="warning"] {
  --billing-stat-accent: var(--kc-warning, #b45309);
}

[data-billing-stat="info"] {
  --billing-stat-accent: #0284c7;
}

[data-billing-stat="danger"] {
  --billing-stat-accent: var(--kc-danger, #dc2626);
}

[data-billing-stat="success"] {
  --billing-stat-accent: var(--kc-success, #15803d);
}

[data-billing-stat="neutral"] {
  --billing-stat-accent: var(--kc-text-muted, #475569);
}

.dark [data-billing-stat="info"] {
  --billing-stat-accent: #38bdf8;
}

@media (prefers-reduced-motion: reduce) {
  [data-billing-stat] {
    transition: none;
  }

  [data-billing-stat]:hover {
    transform: none;
  }
}

.kc-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1.55fr) repeat(4, minmax(9rem, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.kc-dashboard-grid > * {
  min-width: 0;
  height: 100%;
}

.kc-dashboard-card .fi-section-content,
.kc-dashboard-card .fi-section-content-ctn {
  height: 100%;
}

.kc-dashboard-intro {
  color: var(--kc-text-muted, #475569);
  font-size: 0.8125rem;
  line-height: 1.35rem;
  margin-top: 0.4rem;
}

.kc-dashboard-title-row,
.kc-dashboard-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kc-dashboard-title {
  color: var(--kc-text, #0f172a);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.kc-dashboard-status-metrics,
.kc-dashboard-metrics {
  display: grid;
  gap: 0.625rem;
}

.kc-dashboard-status-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.kc-dashboard-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.kc-dashboard-metric__value {
  color: var(--kc-text, #0f172a);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.5rem;
}

.kc-dashboard-metric__label {
  color: var(--kc-text-muted, #475569);
  font-size: 0.72rem;
  line-height: 1rem;
  margin-top: 0.25rem;
}

.kc-dashboard-meta__label {
  color: var(--kc-text-muted, #475569);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.kc-dashboard-meta__value {
  color: var(--kc-text, #0f172a);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.kc-review-tabs-scroll,
.kc-data-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.kc-review-panel {
  margin-top: 1rem;
}

.kc-data-table {
  border-collapse: collapse;
  min-width: 44rem;
  width: 100%;
  color: var(--kc-text, #0f172a);
  font-size: 0.8125rem;
  text-align: left;
}

.kc-data-table th,
.kc-data-table td {
  border-bottom: 1px solid var(--kc-border-soft, #e2e8f0);
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.kc-data-table th {
  background: var(--kc-surface-soft, #f8fafc);
  color: var(--kc-text-muted, #475569);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

[data-kc-job-progress] {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--kc-primary, #2563eb) 20%, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-md, 0.75rem);
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 5%, var(--kc-surface, #fff));
}

[data-kc-job-progress] > div:first-child,
[data-kc-job-progress] > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

[data-kc-job-progress] [role="progressbar"] {
  display: block;
  height: 0.45rem;
  margin-top: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--kc-surface-soft, #e2e8f0);
}

[data-kc-job-progress] [role="progressbar"] > div {
  height: 100%;
  background: var(--kc-primary, #2563eb);
}

@media (max-width: 1200px) {
  .kc-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kc-dashboard-card--status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .kc-dashboard-grid,
  .kc-dashboard-status-metrics {
    grid-template-columns: 1fr;
  }

  .kc-dashboard-card--status {
    grid-column: auto;
  }
}

.kc-kpi-card--compact {
  min-height: 3.75rem;
  padding: 0.625rem 0.75rem;
}

.kc-kpi-card__value--sm {
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.kc-table-panel {
  display: flex;
  flex-direction: column;
  gap: var(--kc-space-3, 0.75rem);
}

.kc-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--kc-space-3, 0.75rem);
  padding: var(--kc-space-4, 1rem);
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
}

.kc-table-toolbar__title {
  color: var(--kc-text, #0f172a);
  font-size: 0.9375rem;
  font-weight: 700;
}

.kc-table-toolbar__hint {
  color: var(--kc-text-muted, #475569);
  font-size: 0.8125rem;
}

.kc-table-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kc-space-2, 0.5rem);
}

.kc-table-search,
.kc-table-filter,
.kc-table-filter-trigger,
.kc-table-settings,
.kc-table-export {
  min-height: 2.25rem;
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-md, 0.75rem);
  background: var(--kc-surface, #ffffff);
  color: var(--kc-text, #0f172a);
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.kc-table-search {
  min-width: min(16rem, 100%);
}

.kc-table-sort {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-transform: inherit;
}

.kc-table-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kc-space-3, 0.75rem);
  padding: var(--kc-space-3, 0.75rem) var(--kc-space-4, 1rem);
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 8%, var(--kc-surface, #ffffff));
  border: 1px solid color-mix(in srgb, var(--kc-primary, #2563eb) 18%, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
  color: var(--kc-text, #0f172a);
  font-size: 0.875rem;
  font-weight: 700;
}

.kc-table-filter-panel,
.kc-table-settings-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--kc-space-3, 0.75rem);
  padding: var(--kc-space-3, 0.75rem) var(--kc-space-4, 1rem);
  background: var(--kc-surface-soft, #f8fafc);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
}

.kc-table-filter-panel[hidden],
.kc-table-settings-panel[hidden] {
  display: none;
}

.kc-table-panel__label {
  color: var(--kc-text, #0f172a);
  font-size: 0.8125rem;
  font-weight: 800;
}

.kc-table-panel__hint {
  color: var(--kc-text-muted, #475569);
  font-size: 0.75rem;
  font-weight: 600;
}

.kc-table-filter-options,
.kc-table-settings-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--kc-space-2, 0.5rem);
}

.kc-table-filter-options label,
.kc-table-settings-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--kc-text-muted, #475569);
  font-size: 0.8125rem;
  font-weight: 600;
}

.kc-table-bulkbar[hidden] {
  display: none;
}

.kc-table-select {
  width: 2.75rem;
  text-align: center;
  vertical-align: middle;
}

.kc-table-actions,
.kc-table-actions-heading {
  text-align: right;
  white-space: nowrap;
}

.kc-kpi-card {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--kc-space-3, 0.75rem);
  padding: var(--kc-space-5, 1.25rem);
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-xl, 1.25rem);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.05);
}

.kc-kpi-card.kc-kpi-card--compact {
  min-height: 3.75rem;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
}

.kc-kpi-card__label,
.kc-value__label,
.kc-detail-header__subline {
  color: var(--kc-text-muted, #475569);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.kc-kpi-card__value {
  color: var(--kc-text, #0f172a);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.375rem;
}

.kc-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--kc-space-4, 1rem);
  padding: var(--kc-space-5, 1.25rem);
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
}

.kc-detail-header--hero {
  align-items: center;
  padding: var(--kc-space-6, 1.5rem);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kc-primary, #2563eb) 10%, transparent), transparent 42%),
    var(--kc-surface, #ffffff);
  border-color: color-mix(in srgb, var(--kc-primary, #2563eb) 16%, var(--kc-border, #e2e8f0));
  box-shadow: 0 14px 40px rgb(15 23 42 / 0.08);
}

.kc-detail-header__eyebrow {
  margin: 0 0 var(--kc-space-1, 0.25rem);
  color: var(--kc-primary, #2563eb);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1rem;
  text-transform: uppercase;
}

.kc-detail-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kc-space-2, 0.5rem);
  margin-top: var(--kc-space-2, 0.5rem);
  color: var(--kc-text-muted, #475569);
  font-size: 0.875rem;
}

.kc-detail-header__meta span:not(:last-child)::after {
  content: "·";
  margin-left: var(--kc-space-2, 0.5rem);
  color: var(--kc-text-subtle, #94a3b8);
}

.kc-detail-header__title {
  margin: 0;
  color: var(--kc-text, #0f172a);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.75rem;
}

.kc-detail-grid {
  display: grid;
  gap: var(--kc-space-3, 0.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.kc-detail-grid--product {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.kc-value {
  min-width: 0;
  padding: var(--kc-space-3, 0.75rem);
  background: var(--kc-surface-soft, #f8fafc);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-md, 0.75rem);
}

.kc-value__content {
  overflow-wrap: anywhere;
  color: var(--kc-text, #0f172a);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.kc-value__hint {
  margin-top: var(--kc-space-1, 0.25rem);
  color: var(--kc-text-muted, #64748b);
  font-size: 0.75rem;
  line-height: 1rem;
}

.kc-table-wrap {
  overflow-x: auto;
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
}

.kc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--kc-text, #0f172a);
  font-size: 0.875rem;
  text-align: left;
}

.kc-table th,
.kc-table td {
  border-bottom: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  padding: var(--kc-space-3, 0.75rem) var(--kc-space-4, 1rem);
  vertical-align: top;
}

.kc-table th {
  background: var(--kc-surface-soft, #f8fafc);
  color: var(--kc-text-muted, #475569);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kc-table tr:last-child td {
  border-bottom: 0;
}

.kc-record-type,
.kc-record-name,
.kc-record-value {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 0.8125rem;
}

.kc-record-type {
  color: var(--kc-text, #0f172a);
  font-weight: 700;
  white-space: nowrap;
}

.kc-record-name {
  color: var(--kc-text-muted, #475569);
  white-space: nowrap;
}

.kc-record-value {
  min-width: 0;
  max-width: 100%;
  color: var(--kc-text-muted, #475569);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  border-radius: var(--kc-radius-sm, 999px);
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.125rem;
  white-space: nowrap;
}

.kc-badge--success {
  background: color-mix(in srgb, var(--kc-success, #15803d) 12%, transparent);
  border-color: color-mix(in srgb, var(--kc-success, #15803d) 25%, transparent);
  color: var(--kc-success, #15803d);
}

.kc-badge--warning {
  background: color-mix(in srgb, var(--kc-warning, #b45309) 12%, transparent);
  border-color: color-mix(in srgb, var(--kc-warning, #b45309) 25%, transparent);
  color: var(--kc-warning, #b45309);
}

.kc-badge--danger {
  background: color-mix(in srgb, var(--kc-danger, #dc2626) 12%, transparent);
  border-color: color-mix(in srgb, var(--kc-danger, #dc2626) 25%, transparent);
  color: var(--kc-danger, #dc2626);
}

.kc-badge--info,
.kc-badge--primary {
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 12%, transparent);
  border-color: color-mix(in srgb, var(--kc-primary, #2563eb) 25%, transparent);
  color: var(--kc-primary, #2563eb);
}

.kc-badge--gray {
  background: var(--kc-surface-soft, #f8fafc);
  border-color: var(--kc-border-soft, #e2e8f0);
  color: var(--kc-text-muted, #475569);
}

.kc-notice {
  display: flex;
  gap: var(--kc-space-3, 0.75rem);
  padding: var(--kc-space-4, 1rem);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
  color: var(--kc-text, #0f172a);
}

.kc-notice--info {
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 8%, var(--kc-surface, #ffffff));
  border-color: color-mix(in srgb, var(--kc-primary, #2563eb) 18%, var(--kc-border, #e2e8f0));
}

.kc-notice--warning {
  background: color-mix(in srgb, var(--kc-warning, #b45309) 8%, var(--kc-surface, #ffffff));
  border-color: color-mix(in srgb, var(--kc-warning, #b45309) 18%, var(--kc-border, #e2e8f0));
}

.kc-notice--danger {
  background: color-mix(in srgb, var(--kc-danger, #dc2626) 8%, var(--kc-surface, #ffffff));
  border-color: color-mix(in srgb, var(--kc-danger, #dc2626) 18%, var(--kc-border, #e2e8f0));
}

.kc-empty-state {
  padding: var(--kc-space-6, 1.5rem);
  background: var(--kc-surface-soft, #f8fafc);
  border: 1px dashed var(--kc-border, #cbd5e1);
  border-radius: var(--kc-radius-lg, 1rem);
  color: var(--kc-text-muted, #475569);
  text-align: center;
}

.kc-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--kc-space-2, 0.5rem);
}

.kc-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--kc-space-3, 0.75rem);
}

.kc-timeline__item {
  padding: var(--kc-space-3, 0.75rem);
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-md, 0.75rem);
}

/* 4KC server overview generic card-pattern extension */
.kc-kpi-card__top {
  display: flex;
  align-items: center;
  gap: var(--kc-space-2, 0.5rem);
}

.kc-kpi-card__icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
}

.kc-kpi-card__icon--primary {
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 16%, transparent);
  color: var(--kc-primary, #2563eb);
}

.kc-kpi-card__icon--success {
  background: color-mix(in srgb, var(--kc-success, #15803d) 16%, transparent);
  color: var(--kc-success, #15803d);
}

.kc-kpi-card__icon--info {
  background: color-mix(in srgb, var(--kc-info, #0ea5e9) 16%, transparent);
  color: var(--kc-info, #0ea5e9);
}

.kc-kpi-card__icon--purple {
  background: color-mix(in srgb, #7c3aed 16%, transparent);
  color: #7c3aed;
}

.kc-kpi-card__hint {
  color: var(--kc-text-muted, #64748b);
  font-size: 0.75rem;
  font-weight: 600;
}

.kc-text-success {
  color: var(--kc-success, #15803d);
}

.kc-text-purple {
  color: #7c3aed;
}

.kc-card-panel {
  display: flex;
  flex-direction: column;
  gap: var(--kc-space-4, 1rem);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: var(--kc-space-4, 1rem);
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-xl, 1.25rem);
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.05);
}

.kc-panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--kc-space-3, 0.75rem);
}

.kc-panel-heading__title {
  margin: 0;
  color: var(--kc-text, #0f172a);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.375rem;
}

.kc-panel-heading__hint {
  margin: var(--kc-space-1, 0.25rem) 0 0;
  color: var(--kc-text-muted, #64748b);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.kc-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.1875rem;
  background: var(--kc-surface-soft, #f8fafc);
  border: 1px solid var(--kc-border-soft, #e2e8f0);
  border-radius: var(--kc-radius-md, 0.75rem);
}

.kc-view-toggle__item {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border-radius: calc(var(--kc-radius-md, 0.75rem) - 0.1875rem);
  color: var(--kc-text-muted, #64748b);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
}

.kc-view-toggle__item--active {
  background: var(--kc-primary, #2563eb);
  color: #ffffff;
  box-shadow: 0 8px 18px rgb(37 99 235 / 0.22);
}

.kc-resource-card-grid {
  display: grid;
  gap: var(--kc-space-4, 1rem);
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kc-resource-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--kc-space-3, 0.75rem);
  padding: var(--kc-space-4, 1rem);
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.04);
}

.kc-resource-card__header,
.kc-resource-card__title-row,
.kc-resource-card__actions {
  display: flex;
  align-items: center;
  gap: var(--kc-space-2, 0.5rem);
  flex-wrap: wrap;
}

.kc-resource-card__header {
  justify-content: space-between;
}

.kc-resource-card__title {
  margin: 0;
  color: var(--kc-text, #0f172a);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.25rem;
}

.kc-status-dot {
  width: 0.625rem;
  height: 0.625rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--kc-text-subtle, #94a3b8);
}

.kc-status-dot--success {
  background: var(--kc-success, #15803d);
}

.kc-status-dot--danger {
  background: var(--kc-danger, #dc2626);
}

.kc-status-dot--warning {
  background: var(--kc-warning, #b45309);
}

.kc-status-dot--gray {
  background: var(--kc-text-subtle, #94a3b8);
}

.kc-icon-metric-list {
  display: flex;
  flex-direction: column;
  gap: var(--kc-space-2, 0.5rem);
  margin: 0;
}

.kc-icon-metric {
  display: grid;
  align-items: center;
  gap: var(--kc-space-2, 0.5rem);
  grid-template-columns: minmax(5rem, 0.85fr) minmax(0, 1fr);
  color: var(--kc-text-muted, #64748b);
  font-size: 0.8125rem;
}

.kc-icon-metric dt,
.kc-icon-metric dd {
  margin: 0;
}

.kc-icon-metric dd {
  min-width: 0;
  color: var(--kc-text, #0f172a);
  font-weight: 650;
  text-align: right;
}

.kc-icon-metric code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 0.125rem 0.375rem;
  background: var(--kc-surface-soft, #f8fafc);
  border-radius: var(--kc-radius-sm, 0.5rem);
  color: inherit;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.kc-button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--kc-radius-md, 0.75rem);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.375rem 0.75rem;
}

.kc-button--primary-outline {
  flex: 1 1 auto;
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 8%, transparent);
  border-color: color-mix(in srgb, var(--kc-primary, #2563eb) 30%, transparent);
  color: var(--kc-primary, #2563eb);
}

.kc-button--icon {
  width: 2.25rem;
  padding-inline: 0;
  background: var(--kc-surface, #ffffff);
  border-color: var(--kc-border-soft, #e2e8f0);
  color: var(--kc-text-muted, #64748b);
}

.kc-notice__content {
  min-width: 0;
  flex: 1 1 auto;
}

.kc-notice__icon {
  color: var(--kc-primary, #2563eb);
  font-size: 1.5rem;
  line-height: 1;
}

.kc-notice__title {
  margin-bottom: var(--kc-space-2, 0.5rem);
  color: var(--kc-primary, #2563eb);
  font-weight: 800;
}

.kc-notice__grid {
  display: grid;
  gap: var(--kc-space-2, 0.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  color: var(--kc-text, #0f172a);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

@media (max-width: 640px) {
  .kc-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .kc-view-toggle,
  .kc-resource-card__actions {
    width: 100%;
  }

  .kc-view-toggle {
    overflow-x: auto;
  }

  .kc-view-toggle__item {
    flex: 1 0 auto;
    justify-content: center;
  }

  .kc-resource-card-grid {
    grid-template-columns: 1fr;
  }

  .kc-icon-metric {
    grid-template-columns: 1fr;
  }

  .kc-icon-metric dd {
    text-align: left;
  }
}

@media (max-width: 1279px) {
  .kc-resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kc-resource-card-grid {
    grid-template-columns: 1fr;
  }
}

/* 4KC server detail generic detail-pattern extension */
.kc-detail-shell {
  --kc-detail-panel-bg: color-mix(in srgb, var(--kc-surface, #ffffff) 92%, var(--kc-primary, #2563eb) 8%);
  width: 100%;
  max-width: none;
  min-width: 0;
}

.kc-detail-hero {
  display: grid;
  gap: var(--kc-space-6, 1.5rem);
  width: 100%;
}

.kc-detail-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--kc-space-6, 1.5rem);
}

.kc-detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--kc-space-2, 0.5rem);
  color: var(--kc-text-muted, #64748b);
  font-size: 0.875rem;
  font-weight: 650;
}

.kc-detail-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--kc-space-3, 0.75rem);
  margin-top: var(--kc-space-4, 1rem);
}

.kc-detail-title {
  margin: 0;
  color: var(--kc-text, #0f172a);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
}

.kc-detail-subtitle {
  margin: var(--kc-space-3, 0.75rem) 0 0;
  color: var(--kc-text-muted, #64748b);
  font-size: 1rem;
  font-weight: 650;
}

.kc-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--kc-space-3, 0.75rem);
}

.kc-button--primary {
  background: var(--kc-primary, #2563eb);
  border-color: var(--kc-primary, #2563eb);
  color: #ffffff;
  text-decoration: none;
}

.kc-button--secondary {
  background: var(--kc-surface, #ffffff);
  border-color: var(--kc-border-soft, #e2e8f0);
  color: var(--kc-text, #0f172a);
}

.kc-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.kc-status-strip {
  display: grid;
  gap: var(--kc-space-4, 1rem);
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: var(--kc-space-6, 1.5rem);
  background: var(--kc-detail-panel-bg);
  border: 1px solid var(--kc-border-soft, #e2e8f0);
  border-radius: var(--kc-radius-xl, 1.25rem);
  box-shadow: var(--kc-shadow-soft, 0 18px 60px rgba(15, 23, 42, 0.08));
}

.kc-status-metric {
  display: flex;
  align-items: center;
  gap: var(--kc-space-3, 0.75rem);
  min-width: 0;
}

.kc-status-metric__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.kc-status-metric__icon--success {
  background: color-mix(in srgb, var(--kc-success, #16a34a) 14%, transparent);
  color: var(--kc-success, #16a34a);
}

.kc-status-metric__icon--warning {
  background: color-mix(in srgb, var(--kc-warning, #f59e0b) 14%, transparent);
  color: var(--kc-warning, #f59e0b);
}

.kc-status-metric__icon--info {
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 14%, transparent);
  color: var(--kc-primary, #2563eb);
}

.kc-status-metric__icon--purple {
  background: color-mix(in srgb, #7c3aed 14%, transparent);
  color: #7c3aed;
}

.kc-status-metric__icon--gray {
  background: color-mix(in srgb, var(--kc-text-muted, #64748b) 14%, transparent);
  color: var(--kc-text-muted, #64748b);
}

.kc-status-metric__label,
.kc-status-metric small,
.kc-resource-meter small,
.kc-event-row small,
.kc-summary-list dt,
.kc-detail-list dt,
.kc-service-row small {
  display: block;
  color: var(--kc-text-muted, #64748b);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.kc-status-metric strong,
.kc-resource-meter strong,
.kc-event-row strong {
  display: block;
  color: var(--kc-text, #0f172a);
  font-size: 1rem;
  font-weight: 800;
}

.kc-detail-grid {
  display: grid;
  gap: var(--kc-space-5, 1.25rem);
  width: 100%;
  min-width: 0;
}

.kc-detail-grid--two {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.kc-detail-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kc-detail-panel {
  min-width: 0;
}

.kc-panel-heading--split {
  flex-direction: row;
  justify-content: space-between;
}

.kc-detail-list,
.kc-summary-list {
  display: grid;
  gap: var(--kc-space-3, 0.75rem);
  margin: 0;
}

.kc-detail-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kc-detail-list div,
.kc-summary-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--kc-space-4, 1rem);
  padding-block: 0.25rem;
}

.kc-detail-list dd,
.kc-summary-list dd {
  margin: 0;
  color: var(--kc-text, #0f172a);
  font-weight: 700;
  text-align: right;
}

.kc-panel-footer {
  margin-top: var(--kc-space-5, 1.25rem);
  padding-top: var(--kc-space-4, 1rem);
  border-top: 1px solid var(--kc-border-soft, #e2e8f0);
}

.kc-detail-tabs {
  display: flex;
  gap: var(--kc-space-5, 1.25rem);
  overflow-x: auto;
  border-bottom: 1px solid var(--kc-border-soft, #e2e8f0);
}

.kc-detail-tab {
  display: inline-flex;
  padding: 0 0 var(--kc-space-3, 0.75rem);
  border: 0;
  background: transparent;
  color: var(--kc-text-muted, #64748b);
  font-size: 0.875rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.kc-detail-tab--active {
  border-bottom: 2px solid var(--kc-primary, #2563eb);
  color: var(--kc-primary, #2563eb);
}

.kc-service-list,
.kc-resource-meter-list,
.kc-event-list {
  display: grid;
  gap: var(--kc-space-3, 0.75rem);
}

.kc-service-row,
.kc-resource-meter,
.kc-event-row {
  display: flex;
  align-items: center;
  gap: var(--kc-space-3, 0.75rem);
  justify-content: space-between;
  padding-bottom: var(--kc-space-3, 0.75rem);
  border-bottom: 1px solid var(--kc-border-subtle, #edf2f7);
}

.kc-service-row__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--kc-space-2, 0.5rem);
}

.kc-resource-meter,
.kc-event-row {
  justify-content: flex-start;
}

.kc-resource-meter__circle {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 4px solid currentColor;
  border-radius: 999px;
  color: var(--kc-primary, #2563eb);
  font-size: 0.8125rem;
  font-weight: 850;
}

.kc-resource-meter__circle--success {
  color: var(--kc-success, #16a34a);
}

.kc-resource-meter__circle--purple {
  color: #7c3aed;
}

.kc-event-row__dot {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--kc-primary, #2563eb);
}

.kc-event-row__dot--success {
  background: var(--kc-success, #16a34a);
}

.kc-event-row__dot--purple {
  background: #7c3aed;
}

.kc-link,
.kc-panel-link {
  color: var(--kc-primary, #2563eb);
  font-weight: 750;
  text-decoration: none;
}

.kc-panel-link {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--kc-space-5, 1.25rem);
}

.kc-badge--purple {
  background: color-mix(in srgb, #7c3aed 11%, transparent);
  color: #6d28d9;
}

.kc-text-success {
  color: var(--kc-success, #16a34a) !important;
}

.kc-text-warning {
  color: var(--kc-warning, #f59e0b) !important;
}

@media (max-width: 1280px) {
  .kc-status-strip,
  .kc-detail-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kc-detail-grid--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kc-detail-titlebar {
    align-items: stretch;
    flex-direction: column;
  }

  .kc-detail-actions,
  .kc-status-strip,
  .kc-detail-grid--four,
  .kc-detail-list--columns {
    grid-template-columns: 1fr;
  }

  .kc-detail-actions {
    justify-content: flex-start;
  }
}

/* 4KC standard table shell
 * Single source of truth for custom table views. Mirrors the customer table UX:
 * compact toolbar, right-aligned filter/column popovers, consistent actions,
 * pagination and responsive card layout.
 */
.kc-table-standard {
  position: relative;
  overflow: visible;
  max-width: 100%;
  min-width: 0;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.kc-table-panel.kc-table-standard {
  gap: 0;
}

.dark .kc-table-standard {
  background: #0b1422;
  color: #e5edf7;
  border-color: #1f2b3d;
  box-shadow: none;
}

.kc-table-standard *,
.kc-table-standard *::before,
.kc-table-standard *::after {
  box-sizing: border-box;
}

.kc-table-standard [hidden] {
  display: none !important;
}

.kc-table-standard .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kc-table-standard .kc-table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.kc-table-standard .kc-table-card-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.kc-table-standard .kc-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.kc-table-standard .kc-table-toolbar__spacer {
  flex: 1 1 auto;
  min-width: 1px;
}

.kc-table-standard .kc-table-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  position: relative;
  min-width: 0;
  flex: 0 1 min(100%, 520px);
}

.kc-table-standard .kc-table-search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 14rem;
  min-width: 10rem;
  max-width: 24rem;
  height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  padding: 0 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.kc-table-standard .kc-table-search-shell span {
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  transform: rotate(-20deg);
  font-weight: 300;
}

.kc-table-standard .kc-table-search {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  padding: 0;
  font-size: 15px;
  outline: none;
}

.kc-table-standard .kc-table-search::placeholder {
  color: #94a3b8;
}

.kc-table-standard .kc-table-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  padding: 0 12px;
  cursor: pointer;
}

.kc-table-standard .kc-table-icon-button__label {
  display: inline-flex;
  color: currentColor;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.kc-table-standard .kc-table-icon-button svg {
  width: 24px;
  height: 24px;
}

.kc-table-standard .kc-table-icon-button[aria-expanded="true"],
.kc-table-standard .kc-table-icon-button.is-open {
  box-shadow: 0 0 0 2px #2563eb inset;
  color: #1d4ed8;
  background: #eff6ff;
}

.kc-table-standard .kc-table-counter {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.kc-table-standard .kc-table-filter-panel,
.kc-table-standard .kc-table-settings-panel {
  position: absolute;
  right: 18px;
  top: 126px;
  z-index: 1200;
  width: min(22rem, calc(100% - 36px));
  max-width: calc(100vw - 48px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  padding: 0;
  color: #111827;
  text-align: left;
  overflow: hidden;
}

.kc-table-standard .kc-table-filter-panel {
  width: min(22rem, calc(100% - 36px), calc(100vw - 48px));
}

.kc-table-standard .kc-table-settings-panel {
  width: min(20rem, calc(100% - 36px), calc(100vw - 48px));
}

.kc-table-standard--manual .kc-table-toolbar__controls .kc-table-filter-panel,
.kc-table-standard--manual .kc-table-toolbar__controls .kc-table-settings-panel {
  top: calc(100% + 10px);
  right: 0;
}

.kc-table-standard .kc-table-popover-head,
.kc-table-standard .fi-ta-filters-header,
.kc-table-standard .fi-ta-col-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  padding: 14px 16px;
}

.kc-table-standard .kc-table-popover-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.kc-table-standard .kc-table-popover-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.kc-table-standard .kc-table-popover-head strong,
.kc-table-standard .fi-ta-filters-heading,
.kc-table-standard .fi-ta-col-manager-heading {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0;
}

.kc-table-standard .kc-table-popover-head small {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.kc-table-standard .kc-table-filter-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.kc-table-standard .kc-table-filter-field {
  display: grid;
  gap: 8px;
}

.kc-table-standard .kc-table-filter-field span,
.kc-table-standard .kc-table-filter-check {
  color: #374151;
  font-size: 13px;
  font-weight: 500;
}

.kc-table-standard .kc-table-filter-field select {
  width: 100%;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 34px 0 12px;
  font-size: 14px;
  outline: none;
}

.kc-table-standard .kc-table-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kc-table-standard .kc-table-filter-check input,
.kc-table-standard .kc-table-settings-grid input {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  accent-color: #2563eb;
}

.kc-table-standard .kc-table-settings-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.kc-table-standard .kc-table-settings-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.kc-table-standard .kc-table-popover-actions,
.kc-table-standard .fi-ta-filters-actions-ctn,
.kc-table-standard .fi-ta-col-manager-actions-ctn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  margin: 0;
  padding: 12px 16px;
}

.kc-table-standard .kc-table-settings-panel .kc-table-popover-actions {
  margin: 14px 0 0;
}

.kc-table-standard .kc-table-reset-button,
.kc-table-standard .kc-table-native-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dc2626;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.kc-table-standard .kc-table-reset-button--head {
  flex: 0 0 auto;
  margin-left: auto;
}

.kc-table-standard .kc-table-apply-button,
.kc-table-standard .kc-table-native-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}

.kc-table-standard .kc-table-bulkbar {
  margin: 0;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 10px 18px;
  font-size: 14px;
}

.kc-table-standard .kc-table-wrap {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: auto;
  background: #fff;
  overscroll-behavior-x: contain;
}

.kc-table-standard .kc-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  table-layout: fixed;
}

.kc-table-standard .kc-table th,
.kc-table-standard .kc-table td {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-align: left;
  padding: 12px 14px;
  vertical-align: middle;
  white-space: normal;
  min-width: 0;
}

.kc-table-standard .kc-table th {
  height: 52px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.kc-table-standard .kc-table td {
  height: auto;
  min-height: 58px;
  color: #0f172a;
  font-size: 14px;
}

.kc-table-standard .kc-table tbody tr:hover td {
  background: #f8fafc;
}

.kc-table-standard .kc-table-select {
  width: 44px;
  padding-right: 4px !important;
  text-align: center;
}

.kc-table-standard .kc-table-select input {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  accent-color: #2563eb;
}

.kc-table-standard .kc-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
  padding: 0;
  cursor: pointer;
  max-width: 100%;
}

.kc-table-standard .kc-table-sort span {
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.kc-table-standard .kc-table-actions,
.kc-table-standard .kc-table-actions-heading {
  text-align: right !important;
}

.kc-table-standard .kc-table-actions-heading {
  width: 118px;
}

.kc-table-standard .kc-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
  padding: 14px 18px;
  color: #475569;
  font-size: 13px;
  flex-wrap: wrap;
}

.kc-table-standard .kc-table-footer label,
.kc-table-standard .kc-table-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kc-table-standard .kc-table-footer select,
.kc-table-standard .kc-table-footer button {
  height: 36px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 0 11px;
  font-weight: 750;
}

.kc-table-standard .kc-table-pagination button[data-kc-page-indicator] {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.kc-table-standard .kc-empty-state {
  padding: 28px;
  text-align: center;
  color: #64748b;
}

.dark .kc-table-standard .kc-table-card-head,
.dark .kc-table-standard .kc-table-toolbar,
.dark .kc-table-standard .kc-table-wrap,
.dark .kc-table-standard .kc-table,
.dark .kc-table-standard .kc-table th,
.dark .kc-table-standard .kc-table td {
  background: #0b1422;
  border-color: #1f2b3d;
  color: #f8fafc;
}

.dark .kc-table-standard .kc-table-card-head h3 {
  color: #f8fafc;
}

.dark .kc-table-standard .kc-table th {
  background: #192233;
  color: #f8fafc;
}

.dark .kc-table-standard .kc-table tbody tr:hover td {
  background: #101a2b;
}

.dark .kc-table-standard .kc-table-search-shell,
.dark .kc-table-standard .kc-table-filter-field select,
.dark .kc-table-standard .kc-table-footer select,
.dark .kc-table-standard .kc-table-footer button {
  border-color: #3b465a;
  background: #192233;
  color: #f8fafc;
}

.dark .kc-table-standard .kc-table-search {
  color: #f8fafc;
}

.dark .kc-table-standard .kc-table-icon-button {
  color: #8ea0ba;
}

.dark .kc-table-standard .kc-table-icon-button[aria-expanded="true"],
.dark .kc-table-standard .kc-table-icon-button.is-open {
  box-shadow: 0 0 0 2px #2563eb inset;
  color: #c8d7ee;
  background: #172133;
}

.dark .kc-table-standard .kc-table-counter {
  background: #1f2937;
  border-color: #475569;
  color: #e5edf7;
}

.dark .kc-table-standard .kc-table-filter-panel,
.dark .kc-table-standard .kc-table-settings-panel {
  border-color: #26364b;
  background: #0b1422;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.42);
  color: #f8fafc;
}

.dark .kc-table-standard .kc-table-popover-head,
.dark .kc-table-standard .fi-ta-filters-header,
.dark .kc-table-standard .fi-ta-col-manager-header {
  border-color: #26364b;
  background: #0b1422;
}

.dark .kc-table-standard .kc-table-popover-head strong,
.dark .kc-table-standard .fi-ta-filters-heading,
.dark .kc-table-standard .fi-ta-col-manager-heading,
.dark .kc-table-standard .kc-table-filter-field span,
.dark .kc-table-standard .kc-table-filter-check,
.dark .kc-table-standard .kc-table-settings-grid label {
  color: #f8fafc;
}

.dark .kc-table-standard .kc-table-popover-head span,
.dark .kc-table-standard .kc-table-popover-head small {
  color: #8ea0ba;
}

.dark .kc-table-standard .kc-table-filter-field select {
  border-color: #334155;
  background: #111827;
  color: #f8fafc;
}

.dark .kc-table-standard .kc-table-reset-button,
.dark .kc-table-standard .kc-table-native-reset {
  background: transparent;
  color: #f87171;
}

.dark .kc-table-standard .kc-table-popover-actions,
.dark .kc-table-standard .fi-ta-filters-actions-ctn,
.dark .kc-table-standard .fi-ta-col-manager-actions-ctn {
  border-color: #26364b;
  background: #0b1422;
}

@media (max-width: 1100px) {
  .kc-table-standard .kc-table th,
  .kc-table-standard .kc-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .kc-table-standard .kc-table-actions-heading {
    width: 104px;
  }
}

@media (max-width: 900px) {
  .kc-table-standard .kc-table-card-head,
  .kc-table-standard .kc-table-toolbar {
    align-items: stretch;
    flex-direction: column;
    height: auto;
    padding: 16px;
  }

  .kc-table-standard .kc-table-toolbar__controls {
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-basis: auto;
    max-width: none;
    width: 100%;
  }

  .kc-table-standard .kc-table-search-shell {
    max-width: none;
    width: 100%;
  }

  .kc-table-standard .kc-table-filter-panel,
  .kc-table-standard .kc-table-settings-panel {
    position: absolute;
    right: 12px;
    top: 136px;
    width: min(520px, calc(100% - 24px), calc(100vw - 32px));
    padding: 0;
  }
}

@media (max-width: 760px) {
  .kc-table-standard .kc-table-wrap {
    overflow-x: visible;
    padding: 10px;
    background: #f8fafc;
  }

  .kc-table-standard .kc-table,
  .kc-table-standard .kc-table thead,
  .kc-table-standard .kc-table tbody,
  .kc-table-standard .kc-table tr,
  .kc-table-standard .kc-table td {
    display: block;
    width: 100%;
  }

  .kc-table-standard .kc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .kc-table-standard .kc-table tr {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    margin: 0 0 10px;
    overflow: hidden;
  }

  .kc-table-standard .kc-table td {
    display: grid;
    grid-template-columns: minmax(6rem, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left !important;
    min-height: 0;
  }

  .kc-table-standard .kc-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .kc-table-standard .kc-table td.kc-table-select {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 12px !important;
  }

  .kc-table-standard .kc-table td.kc-table-select::before {
    content: 'Auswahl';
    margin-right: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .kc-table-standard .kc-table td:last-child {
    border-bottom: 0;
  }

  .kc-table-standard .kc-table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .kc-table-standard .kc-table-filter-panel,
  .kc-table-standard .kc-table-settings-panel {
    top: 150px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }

  .dark .kc-table-standard .kc-table-wrap {
    background: #0f172a;
  }

  .dark .kc-table-standard .kc-table tr {
    border-color: #1f2b3d;
    background: #0b1422;
  }

  .dark .kc-table-standard .kc-table td::before,
  .dark .kc-table-standard .kc-table td.kc-table-select::before {
    color: #8ea0ba;
  }
}

@media (max-width: 520px) {
  .kc-table-standard .kc-table-card-head {
    gap: 10px;
  }

  .kc-table-standard .kc-table-toolbar__controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .kc-table-standard .kc-table-search-shell {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .kc-table-standard .kc-table td {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .kc-table-standard .kc-table-apply-button {
    width: 100%;
    min-width: 0;
  }
}

/* TLD selling-price calculation cards */
.kc-selling-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--kc-space-4, 1rem);
  align-items: stretch;
}

.kc-selling-price-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--kc-surface, #ffffff);
  border: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
  border-radius: var(--kc-radius-lg, 1rem);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.05);
  color: var(--kc-text, #0f172a);
}

.kc-selling-price-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kc-space-3, 0.75rem);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
}

.kc-selling-price-card__title {
  margin: 0;
  color: var(--kc-text, #0f172a);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.kc-selling-price-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.kc-selling-price-card__empty {
  padding: 1rem;
  color: var(--kc-text-muted, #475569);
  font-size: 0.875rem;
}

.kc-selling-price-breakdown {
  display: grid;
  gap: 0.625rem;
  margin: 0;
}

.kc-selling-price-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1fr) minmax(5.5rem, auto);
  align-items: start;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.kc-selling-price-row dt {
  color: var(--kc-text-muted, #475569);
}

.kc-selling-price-row dd {
  margin: 0;
  color: var(--kc-text, #0f172a);
  font-weight: 650;
  text-align: right;
}

.kc-selling-price-row dd strong,
.kc-selling-price-row dd span {
  display: block;
}

.kc-selling-price-row dd span {
  margin-top: 0.15rem;
  color: var(--kc-text-muted, #475569);
  font-size: 0.75rem;
  font-weight: 600;
}

.kc-selling-price-rule {
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--kc-border-soft, var(--kc-border, #e2e8f0));
}

.kc-selling-price-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--kc-border, #cbd5e1);
}

.kc-selling-price-total span {
  color: var(--kc-primary, #2563eb);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kc-selling-price-total strong {
  color: var(--kc-text, #0f172a);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

.dark .kc-selling-price-card {
  background: var(--kc-surface-soft, #0f172a);
  border-color: var(--kc-border, #334155);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.22);
  color: var(--kc-text, #e2e8f0);
}

.dark .kc-selling-price-card__header,
.dark .kc-selling-price-rule,
.dark .kc-selling-price-total {
  border-color: var(--kc-border, #334155);
}

.dark .kc-selling-price-card__body {
  background: transparent;
}

.dark .kc-selling-price-card__title,
.dark .kc-selling-price-row dd,
.dark .kc-selling-price-total strong {
  color: var(--kc-text, #e2e8f0);
}

.dark .kc-selling-price-row dt,
.dark .kc-selling-price-row dd span,
.dark .kc-selling-price-card__empty {
  color: var(--kc-text-muted, #cbd5e1);
}

.dark .kc-selling-price-total span {
  color: var(--kc-primary, #60a5fa);
}

@media (min-width: 1500px) {
  .kc-selling-price-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .kc-selling-price-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared service dialogs: contrast and spacing are scoped to the existing sections. */
.kc-service-dialog-section {
  --kc-service-panel: var(--kc-surface-soft, #f8fafc);
  --kc-service-field: var(--kc-surface, #fff);
  --kc-service-border: var(--kc-border, #cbd5e1);
  --kc-service-field-border: color-mix(in srgb, var(--kc-text-muted, #475569) 70%, var(--kc-surface, #fff));
  width: 100%;
  min-width: 0;
  align-items: stretch;
  align-self: start;
  text-align: start;
}
.dark .kc-service-dialog-section {
  --kc-service-panel: color-mix(in srgb, var(--kc-text, #e2e8f0) 8%, var(--kc-surface, #0b1220));
  --kc-service-field: color-mix(in srgb, var(--kc-text, #e2e8f0) 14%, var(--kc-surface, #0b1220));
  --kc-service-border: color-mix(in srgb, var(--kc-text-muted, #cbd5e1) 34%, var(--kc-surface, #0b1220));
  --kc-service-field-border: color-mix(in srgb, var(--kc-text-muted, #cbd5e1) 55%, var(--kc-surface, #0b1220));
}
.kc-service-dialog-section > .fi-section {
  width: 100%;
  min-width: 0;
  margin: 0;
  background: var(--kc-service-panel) !important;
  border: 1px solid var(--kc-service-border) !important;
  box-shadow: none;
}
.kc-service-dialog-section > .fi-section > .fi-section-header {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--kc-service-border);
  background: color-mix(in srgb, var(--kc-primary, #2563eb) 7%, var(--kc-service-panel));
}
.kc-service-dialog-section .fi-section-header-heading { font-size: .9375rem; font-weight: 700; }
.kc-service-dialog-section .fi-section-header .fi-icon { color: var(--kc-primary, #2563eb); }
.kc-service-dialog-section > .fi-section > .fi-section-content-ctn > .fi-section-content { padding: 1rem; }
.kc-service-dialog-section .fi-fo-field-label-content,
.kc-service-dialog-section .fi-in-entry-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--kc-text-muted, #475569);
}
.kc-service-dialog-section.fi-sc-section .fi-input-wrp,
.kc-service-dialog-section.fi-sc-section textarea {
  background: var(--kc-service-field) !important;
  border: 1px solid var(--kc-service-field-border) !important;
}
.kc-service-dialog-section.fi-sc-section .fi-input-wrp:focus-within {
  border-color: var(--kc-primary, #2563eb) !important;
  outline: 2px solid var(--kc-focus, #91c5ed);
  outline-offset: 1px;
}
.kc-service-dialog-section .fi-fo-toggle-buttons.fi-btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .375rem;
  max-width: 100%;
  min-width: 0;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.kc-service-dialog-section .fi-fo-toggle-buttons > label {
  background: var(--kc-service-field) !important;
  color: var(--kc-text, #0f172a) !important;
  border: 1px solid var(--kc-service-field-border) !important;
  border-radius: .5rem !important;
  padding: .5rem .75rem;
}
.kc-service-dialog-section .fi-fo-toggle-buttons > input:checked + label {
  background: #2563eb !important;
  border-color: #60a5fa !important;
  color: #fff !important;
}
.kc-service-dialog-section .fi-fo-toggle-buttons > input:checked + label .fi-icon { color: #fff !important; }
.kc-service-dialog-section .fi-fo-toggle-buttons > input:focus-visible + label {
  outline: 2px solid var(--kc-focus, #91c5ed);
  outline-offset: 2px;
}
.kc-service-price .fi-in-text-item { font-size: 1.625rem; font-weight: 750; line-height: 1.25; }

@media (max-width: 639px) {
  .kc-service-dialog-section > .fi-section > .fi-section-header { padding: .75rem; }
  .kc-service-dialog-section > .fi-section > .fi-section-content-ctn > .fi-section-content { padding: .75rem; }
  .kc-service-dialog-section .fi-fo-toggle-buttons > label { padding: .5rem .625rem; }
}


/* Shared order selection and authenticated order wizard. */
.kc-order {
    --ko-bg: var(--kc-page); --ko-panel: var(--kc-surface); --ko-soft: var(--kc-surface-soft); --ko-line: var(--kc-border);
    --ko-text: var(--kc-text); --ko-muted: var(--kc-text-muted); --ko-blue: var(--kc-primary); --ko-blue-soft: var(--kc-tile);
    --ko-green: #15803d; --ko-green-soft: #ecfdf3; --ko-amber: #9a6700; --ko-amber-soft: #fffbeb;
    color: var(--ko-text); background: var(--ko-bg); border: 1px solid var(--ko-line);
    border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.dark .kc-order, [data-theme="dark"] .kc-order {
    --ko-bg: #0f172a; --ko-panel: #111c2e; --ko-soft: #152238; --ko-line: #334155;
    --ko-text: #f1f5f9; --ko-muted: #a8b5c8; --ko-blue: #93c5fd; --ko-blue-soft: #172b4d;
    --ko-green: #86efac; --ko-green-soft: #12372f; --ko-amber: #fcd34d; --ko-amber-soft: #392c17;
}
.kc-order * { box-sizing: border-box; }
.kc-order :is(button, input, select, a):focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.kc-order-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 24px; background: var(--ko-panel); border-bottom: 1px solid var(--ko-line); }
.kc-order-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.kc-order-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: #fff; background: #172033; }
.dark .kc-order-mark { background: #243657; }
.kc-order-mark svg { width: 24px; height: 24px; }
.kc-order-overline { color: var(--ko-muted); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.kc-order-head h1 { margin: 1px 0 3px; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; }
.kc-order-head-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ko-muted); font-size: 12px; }
.kc-order-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 9px; color: var(--ko-blue); background: var(--ko-blue-soft); font-size: 11px; font-weight: 750; white-space: nowrap; }
.kc-order-badge svg { width: 12px; height: 12px; }
.kc-order-back { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--ko-line); border-radius: 9px; padding: 9px 12px; color: var(--ko-text); background: var(--ko-panel); font-size: 12px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.kc-order-back:hover { border-color: var(--ko-blue); color: var(--ko-blue); }
.kc-order-back svg { width: 16px; height: 16px; }
.kc-order-progress { height: 4px; background: var(--ko-line); }
.kc-order-progress span { display: block; height: 100%; background: #2563eb; transition: width .2s ease; }
.kc-order-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 294px; align-items: start; min-width: 0; }
.kc-order-rail { min-width: 0; padding: 22px 15px; border-right: 1px solid var(--ko-line); }
.kc-order-rail-title { margin: 0 8px 14px; color: var(--ko-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kc-order-steps { display: grid; gap: 5px; }
.kc-order-step { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid transparent; border-radius: 10px; padding: 11px 9px; color: var(--ko-muted); }
.kc-order-step.is-current { border-color: #bfdbfe; background: var(--ko-blue-soft); color: var(--ko-blue); }
.dark .kc-order-step.is-current { border-color: #315489; }
.kc-order-step.is-done { color: var(--ko-green); }
.kc-order-step-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--ko-line); border-radius: 9px; background: var(--ko-panel); }
.kc-order-step-icon svg { width: 17px; height: 17px; }
.kc-order-step strong { display: block; color: var(--ko-text); font-size: 12px; line-height: 1.3; }
.kc-order-step small { display: block; color: var(--ko-muted); font-size: 11px; }
.kc-order-state { margin-left: auto; font-size: 10px; font-weight: 800; white-space: nowrap; }
.kc-order-main { min-width: 0; padding: 25px 26px 30px; }
.kc-order-section-head { margin-bottom: 22px; }
.kc-order-section-head h2 { margin: 5px 0 6px; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; }
.kc-order-section-head p { max-width: 62ch; color: var(--ko-muted); font-size: 13px; line-height: 1.55; }
.kc-order-card { min-width: 0; border: 1px solid var(--ko-line); border-radius: 13px; background: var(--ko-panel); padding: 16px; }
.kc-order-card + .kc-order-card { margin-top: 12px; }
.kc-order-card-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.kc-order-card-head > div:nth-child(2) { min-width: 0; flex: 1; }
.kc-order-card-head h3 { margin: 0; font-size: 14px; font-weight: 760; line-height: 1.3; }
.kc-order-card-head p { margin: 4px 0 0; color: var(--ko-muted); font-size: 12px; line-height: 1.4; }
.kc-order-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; color: var(--ko-blue); background: var(--ko-blue-soft); }
.kc-order-icon svg { width: 19px; height: 19px; }
.kc-order-search { position: relative; margin-bottom: 13px; }
.kc-order-search svg { position: absolute; top: 50%; left: 12px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ko-muted); }
.kc-order-search input { padding-left: 39px; }
.kc-order-field { display: block; width: 100%; min-height: 39px; border: 1px solid var(--ko-line); border-radius: 9px; padding: 8px 11px; background: var(--ko-panel); color: var(--ko-text); font-size: 13px; }
.kc-order-field:read-only, .kc-order-field:disabled { background: var(--ko-soft); color: var(--ko-muted); }
.kc-order-field:not(:disabled):not(:read-only):hover { border-color: var(--ko-blue); }
.kc-order-product-list { display: grid; gap: 9px; }
.kc-order-product { display: flex; align-items: center; gap: 12px; min-width: 0; border: 1px solid var(--ko-line); border-radius: 11px; padding: 12px; background: var(--ko-panel); }
.kc-order-product:hover { border-color: var(--ko-blue); }
.kc-order-product-info { min-width: 0; flex: 1; }
.kc-order-product-info strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.kc-order-product-info span { display: block; margin-top: 2px; color: var(--ko-muted); font-size: 11px; }
.kc-order-product-price { color: var(--ko-text); font-size: 12px; font-weight: 800; white-space: nowrap; }
.kc-order-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border: 1px solid #2563eb; border-radius: 9px; padding: 9px 13px; color: #fff; background: #2563eb; font-size: 12px; font-weight: 750; line-height: 1.2; cursor: pointer; }
.kc-order-btn:hover:not(:disabled) { background: #1d4ed8; }
.kc-order-btn:disabled { opacity: .5; cursor: not-allowed; }
.kc-order-btn svg { width: 16px; height: 16px; }
.kc-order-btn.secondary { color: var(--ko-text); border-color: var(--ko-line); background: var(--ko-panel); }
.kc-order-btn.secondary:hover:not(:disabled) { color: var(--ko-blue); border-color: var(--ko-blue); background: var(--ko-blue-soft); }
.kc-order-btn.ghost { color: var(--ko-muted); border-color: transparent; background: transparent; }
.kc-order-btn.ghost:hover { color: #b42318; background: #fef3f2; }
.kc-order-hint { margin-top: 13px; color: var(--ko-muted); font-size: 12px; line-height: 1.5; }
.kc-order-hint a { color: var(--ko-blue); font-weight: 700; }
.kc-order-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 25px 0 10px; }
.kc-order-subhead h3 { font-size: 13px; font-weight: 750; }
.kc-order-empty { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--ko-line); border-radius: 11px; padding: 17px; color: var(--ko-muted); background: var(--ko-soft); font-size: 12px; }
.kc-order-empty svg { width: 21px; height: 21px; flex: none; }
.kc-order-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.kc-order-fields label { min-width: 0; color: var(--ko-text); font-size: 12px; font-weight: 700; }
.kc-order-fields label > span { display: block; margin-bottom: 5px; }
.kc-order-field-group { margin-top: 17px; border-top: 1px solid var(--ko-line); padding-top: 15px; }
.kc-order-field-group h4 { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--ko-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kc-order-field-group h4 svg { width: 15px; height: 15px; }
.kc-order-option { display: flex; align-items: flex-start; gap: 12px; width: 100%; border: 1px solid var(--ko-line); border-radius: 12px; padding: 15px; background: var(--ko-panel); color: var(--ko-text); }
.kc-order-option + .kc-order-option { margin-top: 10px; }
.kc-order-option.is-disabled { opacity: .72; background: var(--ko-soft); }
.kc-order-option input[type="checkbox"] { width: 16px; height: 16px; flex: none; margin-top: 2px; accent-color: #2563eb; }
.kc-order-option-content { flex: 1; min-width: 0; }
.kc-order-option strong { display: block; font-size: 13px; line-height: 1.35; }
.kc-order-option small { display: block; margin-top: 4px; color: var(--ko-muted); font-size: 12px; line-height: 1.45; }
.kc-order-alert { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #f7d68b; border-radius: 10px; padding: 12px; color: var(--ko-amber); background: var(--ko-amber-soft); font-size: 12px; line-height: 1.5; }
.kc-order-alert svg { width: 18px; height: 18px; flex: none; }
.kc-order-review-row { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--ko-line); padding: 11px 0; font-size: 12px; }
.kc-order-review-row strong { text-align: right; }
.kc-order-error { margin-top: 18px; border: 1px solid #fda29b; border-radius: 10px; padding: 12px; color: #b42318; background: #fef3f2; font-size: 12px; }
.kc-order-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; border-top: 1px solid var(--ko-line); padding-top: 18px; }
.kc-order-footer-actions { display: flex; gap: 10px; margin-left: auto; }
.kc-order-summary-wrap { min-width: 0; padding: 22px 16px; border-left: 1px solid var(--ko-line); }
.kc-order-summary { position: sticky; top: 20px; border: 1px solid var(--ko-line); border-radius: 13px; padding: 17px; background: var(--ko-panel); }
.kc-order-summary h2 { font-size: 14px; font-weight: 800; }
.kc-order-summary-meta { margin: 3px 0 15px; color: var(--ko-muted); font-size: 11px; }
.kc-order-summary-item { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--ko-line); font-size: 11px; }
.kc-order-summary-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-order-summary-item span { flex: none; color: var(--ko-muted); }
.kc-order-totals { margin-top: 15px; border-top: 1px solid var(--ko-line); padding-top: 13px; }
.kc-order-total-row { display: flex; justify-content: space-between; gap: 9px; margin: 7px 0; color: var(--ko-muted); font-size: 12px; }
.kc-order-total-row strong { color: var(--ko-text); font-weight: 750; }
.kc-order-grand { margin: 14px -8px -8px; border-radius: 10px; padding: 13px 9px; color: #1d4ed8; background: var(--ko-blue-soft); }
.dark .kc-order-grand { color: #bfdbfe; }
.kc-order-grand small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.kc-order-grand strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 850; }
.kc-order [x-cloak] { display: none !important; }
@media (max-width: 1160px) {
    .kc-order-layout { grid-template-columns: 1fr; }
    .kc-order-rail { border-right: 0; border-bottom: 1px solid var(--ko-line); padding: 13px 16px; }
    .kc-order-rail-title { display: none; }
    .kc-order-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .kc-order-step { padding: 8px; }
    .kc-order-step small { display: none; }
    .kc-order-main { padding: 20px 22px; }
    .kc-order-summary-wrap { border-left: 0; border-top: 1px solid var(--ko-line); padding: 16px 22px 22px; }
    .kc-order-summary { position: static; }
}
@media (max-width: 640px) {
    .kc-order-head { align-items: flex-start; flex-direction: column; padding: 16px; }
    .kc-order-back { width: 100%; }
    .kc-order-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kc-order-step { flex-direction: column; gap: 5px; text-align: center; }
    .kc-order-state { margin-left: 0; font-size: 9px; }
    .kc-order-step strong { font-size: 10px; }
    .kc-order-main { padding: 19px 15px; }
    .kc-order-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kc-order-product { flex-wrap: wrap; }
    .kc-order-product-info { min-width: calc(100% - 48px); }
    .kc-order-product-price { margin-left: 48px; }
    .kc-order-product .kc-order-btn { margin-left: auto; }
    .kc-order-summary-wrap { padding: 15px; }
    .kc-order-footer { align-items: stretch; flex-direction: column; }
    .kc-order-footer-actions, .kc-order-footer-actions .kc-order-btn { width: 100%; }
    .kc-order-footer-actions { flex-direction: column; }
}
@media (max-width: 420px) { .kc-order-fields { grid-template-columns: 1fr; } .kc-order-step-icon { width: 27px; height: 27px; } }

/* Public entry uses the shared order surface, cards and controls above. */
.kc-public-workspace { margin: 0; padding: clamp(12px, 3vw, 40px); background: var(--kc-page, #f4f7fa); color: var(--kc-text, #172033); font-family: system-ui, sans-serif; line-height: 1.5; }
.kc-public-workspace > .kc-order { max-width: 1180px; margin-inline: auto; }
.kc-order-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; margin-top: 20px; }
.kc-order-offer-grid > .kc-order-card + .kc-order-card { margin-top: 0; }
.kc-order-inline-fields { display: flex; gap: 12px; margin-top: 8px; align-items: center; }
.kc-order-inline-fields .kc-order-btn { flex: none; }
@media (max-width: 640px) { .kc-order-inline-fields { flex-direction: column; align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .kc-order * { transition: none !important; } }

/* Shared domain / hosting selection. Same markup in public, customer and admin workspaces. */
.kc-order:has(.kc-selection) { overflow: clip; }
.kc-selection-hero { position: relative; padding: clamp(24px, 5vw, 64px); color: #fff; background: linear-gradient(90deg, rgba(8,23,42,.94), rgba(8,23,42,.5)), url('/images/design-2.0/summer-header-desktop.webp') center/cover; }
.kc-selection-brand { display: inline-block; margin-bottom: 36px; color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.kc-selection-eyebrow { display: block; color: var(--ko-muted); font-size: .7rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.kc-selection-hero .kc-selection-eyebrow { color: #a4d5ff; }
.kc-selection-hero h1 { max-width: 16ch; margin: 12px 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; }
.kc-selection-hero > p { max-width: 58ch; color: #e2e8f0; font-size: 1rem; line-height: 1.7; }
.kc-selection-steps { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; color: #cbd5e1; font-size: .75rem; }
.kc-selection-steps [aria-current] { color: #fff; font-weight: 800; }
.kc-selection { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 24px; padding: clamp(16px, 3vw, 32px); text-align: left; }
.kc-selection-content { display: grid; gap: 24px; min-width: 0; }
.kc-selection-section { min-width: 0; border: 1px solid var(--ko-line); border-radius: var(--kc-radius-card); background: var(--ko-panel); padding: clamp(16px, 2vw, 26px); }
.kc-selection-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.kc-selection-number { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--ko-blue); background: var(--ko-blue-soft); font-size: .75rem; font-weight: 800; }
.kc-selection-section-head h2 { margin: 0; color: var(--ko-text); font-size: 1.2rem; line-height: 1.3; font-weight: 750; letter-spacing: -.02em; }
.kc-selection-section-head p { margin: 6px 0 0; color: var(--ko-muted); font-size: .8rem; line-height: 1.6; }
.kc-selection-modes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.kc-selection-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--ko-line); border-radius: 10px; background: var(--ko-panel); color: var(--ko-muted); text-align: left; font: inherit; font-size: .75rem; cursor: pointer; }
.kc-selection-mode svg { width: 22px; height: 22px; }
.kc-selection-mode.is-selected { border-color: var(--ko-blue); box-shadow: inset 0 0 0 1px var(--ko-blue); background: var(--ko-blue-soft); color: var(--ko-blue); font-weight: 750; }
.kc-selection-domain-form { margin-top: 24px; }
.kc-selection-domain-form > label { font-size: .8rem; font-weight: 700; }
.kc-selection-domain-form .kc-order-field { min-width: 0; min-height: 48px; font-size: .95rem; }
.kc-selection-domain-form .kc-order-btn { min-height: 48px; }
.kc-selection-result { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin-top: 18px; background: var(--ko-soft); border: 1px solid var(--ko-line); border-radius: 10px; font-size: .85rem; }
.kc-selection-result > svg { width: 22px; height: 22px; flex: none; }
.kc-selection-result.is-available { border-color: var(--kc-success); }
.kc-selection-result.is-available > svg { color: var(--kc-success); }
.kc-selection-result p { margin: 6px 0 12px; }
.kc-selection-search { position: relative; display: block; margin-bottom: 18px; }
.kc-selection-search > svg { position: absolute; top: 12px; left: 12px; width: 18px; height: 18px; color: var(--ko-muted); }
.kc-selection-search .kc-order-field { padding-left: 40px; min-height: 44px; }
.kc-selection-offers { display: grid; align-items: start; grid-template-columns: repeat(auto-fit,minmax(min(100%,215px),1fr)); gap: 14px; }
.kc-selection-offer { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 20px; border: 1px solid var(--ko-line); border-radius: 12px; background: var(--ko-panel); }
.kc-selection-offer.is-selected { border-color: var(--ko-blue); box-shadow: inset 0 0 0 1px var(--ko-blue); }
.kc-selection-offer-icon { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; color: var(--ko-blue); }
.kc-selection-offer-icon > svg { width: 28px; height: 28px; }
.kc-selection-offer h3 { margin: 10px 0 0; min-height: 4.2em; font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; line-height: 1.4; }
.kc-selection-description { color: var(--ko-muted); line-height: 1.65; font-size: .8rem; white-space: pre-line; margin: 0 0 22px; }
.kc-selection-price { display: grid; gap: 4px; margin-top: 0; padding-top: 12px; }
.kc-selection-price strong { font-size: 1.5rem; letter-spacing: -.035em; }
.kc-selection-price > span { color: var(--ko-muted); font-size: .7rem; }
.kc-selection-offer > .kc-order-btn { margin-top: 18px; min-height: 44px; white-space: normal; }
.kc-selection-summary { min-width: 0; position: sticky; top: 24px; border: 1px solid var(--ko-line); border-radius: 14px; overflow: hidden; background: var(--ko-panel); box-shadow: var(--kc-shadow-card); }
.kc-selection-summary summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; background: var(--ko-blue-soft); color: var(--ko-text); font-size: .95rem; font-weight: 750; cursor: pointer; list-style: none; }
.kc-selection-summary summary::-webkit-details-marker { display: none; }
.kc-selection-summary summary > span { display: flex; align-items: center; gap: 10px; }
.kc-selection-summary summary svg { width: 20px; height: 20px; }
.kc-selection-summary details[open] > summary > svg { transform: rotate(180deg); }
.kc-selection-summary-body { padding: 0 20px 20px; }
.kc-selection-summary-item { padding: 20px 0; border-bottom: 1px solid var(--ko-line); font-size: .85rem; }
.kc-selection-summary-item h3 { margin: 7px 0 9px; overflow-wrap: anywhere; font-weight: 750; font-size: .95rem; }
.kc-selection-summary-item p { line-height: 1.7; margin: 0; }
.kc-selection-remove { margin-top: 9px; border: 0; padding: 4px 0; background: transparent; color: var(--ko-muted); font: inherit; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.kc-selection-placeholder { display: flex; align-items: center; gap: 10px; margin: 0; padding: 22px 0; border-bottom: 1px dashed var(--ko-line); color: var(--ko-muted); font-size: .8rem; }
.kc-selection-placeholder svg { flex: none; width: 20px; height: 20px; }
.kc-selection-pending { color: var(--kc-warning); }
.kc-selection-summary-note { display: flex; gap: 10px; margin-top: 20px; color: var(--ko-muted); font-size: .7rem; line-height: 1.7; }
.kc-selection-summary-note svg { flex: none; width: 20px; height: 20px; color: var(--kc-success); }
.kc-selection-continue { display: flex; width: 100%; margin-top: 20px; min-height: 46px; text-decoration: none; }
.kc-selection-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kc-order-main:has(> .kc-selection) { padding: 0; }
.kc-order-layout:has(.kc-selection) { grid-template-columns: minmax(0,1fr); }
.kc-order-layout:has(.kc-selection) > .kc-order-rail,
.kc-order-layout:has(.kc-selection) > .kc-order-summary-wrap { display: none; }
@media (max-width: 1080px) { .kc-selection { grid-template-columns: minmax(0,1fr) 260px; gap: 16px; } }
@media (max-width: 850px) { .kc-selection { grid-template-columns: minmax(0,1fr); } .kc-selection-summary { position: static; } }
@media (max-width: 480px) { .kc-selection-mode { padding: 11px 9px; font-size: .7rem; } .kc-selection-mode svg { width: 20px; height: 20px; } .kc-selection-hero { background-image: linear-gradient(90deg,rgba(8,23,42,.94),rgba(8,23,42,.65)), url('/images/design-2.0/summer-header-mobile.webp'); } }

.kc-order summary:focus-visible { outline: 3px solid var(--kc-focus); outline-offset: -3px; }

.kc-selection-additional { margin: 0 24px 24px; border-top: 1px solid var(--ko-line); padding-top: 16px; }
.kc-selection-additional > summary { padding: 8px 0 16px; color: var(--ko-blue); font-size: .8rem; font-weight: 700; cursor: pointer; }

/* Technical features in the one shared hosting selection. */
.kc-selection-specs{list-style:none;padding:0;margin:12px 0;display:grid;gap:6px}
.kc-selection-specs li{display:flex;gap:10px;align-items:flex-start;font-size:.85rem;line-height:1.45}
.kc-selection-specs svg{width:20px;height:20px;flex:none;color:var(--kc-primary);margin-top:1px}
.kc-selection-specs span{min-width:0;overflow-wrap:anywhere}

/* Shared compact offer disclosure, identical in public/admin/customer selection. */
.kc-selection-offer-details { margin-top: 12px; border-top: 1px solid var(--ko-line); }
.kc-selection-offer-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 0; cursor: pointer; color: var(--ko-blue); font-size: .75rem; font-weight: 650; list-style: none; }
.kc-selection-offer-details > summary::-webkit-details-marker { display: none; }
.kc-selection-offer-details > summary svg { width: 16px; height: 16px; flex: none; }
.kc-selection-offer-details[open] > summary svg { transform: rotate(180deg); }
.kc-selection-offer-details > summary:focus-visible { outline: 2px solid var(--ko-blue); outline-offset: 4px; }

@media (max-width: 640px) { .kc-selection-offer h3 { min-height: 0; } }

/* Shared sales checkout, inside website or the common order selection. */
.kc-checkout { scroll-margin-top: 110px; }
.kc-checkout .kc-selection-modes { margin-bottom: 24px; }
.kc-checkout .kc-selection-mode small { display: block; font-size: .82rem; }
.kc-checkout-form { display: grid; gap: 18px; }
.kc-checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kc-checkout-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 600; }
.kc-checkout-form input, .kc-checkout-form select { width: 100%; min-width: 0; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #172033; padding: 12px; font: inherit; }
.kc-checkout-form input:focus, .kc-checkout-form select:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
.kc-checkout-form input[readonly], .kc-checkout-form select:disabled { background: #f1f5f9; }
.kc-checkout-form small { font-weight: 400; }
.kc-checkout-lines { list-style: none; padding: 0; margin: 20px 0; }
.kc-checkout-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid #dbe3ee; }
.kc-checkout-lines small { display: block; margin-top: 5px; }
.kc-checkout-lines strong, .kc-checkout-address { overflow-wrap: anywhere; }
.kc-checkout-totals { margin: 20px 0; }
.kc-checkout-totals div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.kc-checkout-totals div:last-child { font-weight: 700; border-top: 1px solid #cbd5e1; }
.kc-checkout-consent { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; }
.kc-checkout-consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; accent-color: #2563eb; }
.kc-checkout a:not(.kc-order-btn) { color: #2563eb; text-decoration: underline; }
.kc-checkout-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kc-checkout-receipt > svg { width: 40px; height: 40px; color: #16803d; }
.kc-checkout-receipt { display: grid; gap: 16px; }
.dark .kc-checkout-form input, .dark .kc-checkout-form select { background: #1e293b; color: #f1f5f9; border-color: #64748b; }
@media (max-width: 640px) { .kc-checkout-fields { grid-template-columns: 1fr; } .kc-checkout-actions > * { width: 100%; } .kc-checkout-lines li { flex-wrap: wrap; } }

/* Internal mail editor uses the native form and shared mail renderer. */
.kc-mail-editor { max-width:1440px; }
.kc-mail-editor-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; position:sticky; top:64px; z-index:5; padding:12px 0; background:var(--kc-bg, #fff); }
.kc-mail-editor-columns { display:grid; grid-template-columns:minmax(320px, 520px) minmax(0, 1fr); gap:24px; align-items:start; }
.kc-mail-editor-fields { min-width:0; }
.kc-mail-editor-fields textarea { max-height:260px; }
.kc-mail-editor-preview { position:sticky; top:134px; min-width:0; border-radius:12px; overflow:hidden; background:#f1f4f8; }
.kc-mail-editor-preview > p { margin:0; padding:10px 16px; color:#334155; font-size:12px; }
.kc-mail-editor-preview iframe { display:block; width:100%; height:calc(100vh - 190px); min-height:540px; border:0; background:#f1f4f8; }
.dark .kc-mail-editor-toolbar { background:var(--kc-bg, #0b1724); }
@media (max-width:1100px) { .kc-mail-editor-columns { grid-template-columns:1fr; } .kc-mail-editor-preview { position:static; } .kc-mail-editor-preview iframe { height:740px; } }
