/* Administrator-only live draft editor, modelled on the proven Artway-TM release workflow. */
:root.kt-site-editor-mode { --kt-editor-toolbar-height: 78px; background: #dfe6f2; }
.kt-site-editor-mode body { padding-top: var(--kt-editor-toolbar-height) !important; transition: background .2s; }
.kt-site-editor-mode body::before {
  position: fixed;
  z-index: 1190;
  inset: var(--kt-editor-toolbar-height) 0 0;
  background: #dfe6f2;
  content: "";
  pointer-events: none;
}
.kt-site-editor-mode body > *:not(.kt-site-editor-toolbar):not(#ktSiteEditorDrawerRoot):not(script) { position: relative; z-index: 1191; }
.kt-site-editor-toolbar {
  position: fixed;
  z-index: 1800;
  inset: 0 0 auto;
  display: grid;
  min-height: var(--kt-editor-toolbar-height);
  grid-template-columns: minmax(265px, 1fr) auto auto minmax(520px, auto);
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  border-bottom: 3px solid #20d17c;
  background: linear-gradient(110deg, #14224a 0%, #172655 56%, #272064 100%);
  color: #fff;
  box-shadow: 0 9px 28px rgba(7, 15, 36, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.kt-site-editor-brand { display: flex; min-width: 0; align-items: center; gap: 9px; }
.kt-site-editor-brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 13px;
  background: linear-gradient(135deg, #5777ff, #7646f5);
  box-shadow: 0 9px 20px rgba(44,51,149,.4);
  font-size: 18px;
}
.kt-site-editor-brand div { display: grid; min-width: 0; gap: 2px; }
.kt-site-editor-brand strong { font-size: 12px; letter-spacing: .02em; }
.kt-site-editor-brand small { overflow: hidden; color: #cbd5f5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.kt-site-editor-change-count {
  display: grid;
  grid-template-columns: 36px auto;
  align-items: center;
  gap: 9px;
  min-width: 196px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-align: left;
}
.kt-site-editor-change-count > b { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #ffd91c; color: #121827; font-size: 18px; }
.kt-site-editor-change-count span { display: grid; gap: 1px; }
.kt-site-editor-change-count strong { font-size: 9px; }
.kt-site-editor-change-count small { color: #cbd5f5; font-size: 7px; }
.kt-site-editor-viewport { display: flex; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(4,9,28,.25); }
.kt-site-editor-viewport button,
.kt-site-editor-actions a,
.kt-site-editor-actions button,
.kt-site-editor-drawer button,
.kt-site-editor-drawer a { font: inherit; }
.kt-site-editor-viewport button { width: 31px; height: 31px; border: 0; border-radius: 8px; background: transparent; color: #aebce5; cursor: pointer; }
.kt-site-editor-viewport button.active { background: #fff; color: #293a73; }
.kt-site-editor-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 5px; }
.kt-site-editor-actions a,
.kt-site-editor-actions button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: #f8faff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.kt-site-editor-actions .primary { border-color: #316dff; background: linear-gradient(90deg, #2672f3, #6f42ef); box-shadow: 0 8px 24px rgba(38,95,234,.34); }

.kt-site-editor-backdrop { position: fixed; z-index: 1830; inset: var(--kt-editor-toolbar-height) 0 0; border: 0; background: rgba(7,16,36,.52); backdrop-filter: blur(1px); }
.kt-site-editor-drawer {
  position: fixed;
  z-index: 1840;
  top: var(--kt-editor-toolbar-height);
  right: 0;
  bottom: 0;
  display: grid;
  width: min(470px, 100vw);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-left: 1px solid #d3daeb;
  background: #f7f9fe;
  color: #111b35;
  box-shadow: -20px 0 60px rgba(13,27,62,.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.kt-site-editor-drawer.wide { width: min(1120px, 68vw); }
.kt-site-editor-drawer:has(.kt-site-editor-module-shell) { width: min(1380px, 82vw); }
.kt-site-editor-drawer:has(.kt-site-editor-settings-home),
.kt-site-editor-drawer:has(.kt-site-editor-settings-subpage) { width: min(1480px, calc(100vw - 28px)); }
.kt-site-editor-drawer > header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #dce2ef; background: linear-gradient(100deg, #f8faff, #eef2ff); }
.kt-site-editor-drawer > header > div:first-child { display: grid; gap: 3px; }
.kt-site-editor-drawer > header small { color: #5b4fe8; font-size: 8px; font-weight: 950; letter-spacing: .11em; }
.kt-site-editor-drawer > header h2 { margin: 0; color: #131c36; font-size: 20px; letter-spacing: -.03em; }
.kt-site-editor-drawer > header > div:last-child { display: flex; align-items: center; gap: 7px; }
.kt-site-editor-drawer > header button { min-height: 36px; padding: 8px 11px; border: 1px solid #cfd6e8; border-radius: 10px; background: #fff; color: #18213c; cursor: pointer; font-size: 9px; font-weight: 850; }
.kt-site-editor-drawer-content { min-height: 0; padding: 15px; overflow-y: auto; }
.kt-site-editor-drawer > footer { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 17px; border-top: 1px solid #dce2ef; background: #eef2ff; color: #473b9b; font-size: 8px; font-weight: 800; }
.kt-site-editor-elements { display: grid; gap: 8px; }
.kt-site-editor-elements > button {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #dce2ee;
  border-radius: 13px;
  background: #fff;
  color: #15203c;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.kt-site-editor-elements > button:hover { border-color: #8878f5; box-shadow: 0 10px 25px rgba(62,61,145,.1); transform: translateY(-1px); }
.kt-site-editor-elements > button > span:first-child { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #eef1ff, #e3e7ff); color: #5a4fe3; font-size: 17px; font-weight: 900; }
.kt-site-editor-elements > button > span:nth-child(2) { display: grid; gap: 3px; }
.kt-site-editor-elements strong { font-size: 12px; }
.kt-site-editor-elements small { color: #667089; font-size: 9px; }
.kt-site-editor-elements b { color: #79849d; font-size: 18px; }
.kt-site-editor-settings-home { display: grid; gap: 18px; }
.kt-site-editor-settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 20px;
  background: linear-gradient(115deg, #142244, #252061 62%, #4f31c9);
  color: #fff;
  box-shadow: 0 14px 36px rgba(30,35,105,.18);
}
.kt-site-editor-settings-hero > div:first-child { display: grid; gap: 7px; }
.kt-site-editor-settings-hero > div:first-child > span { color: #f4d847; font-size: 11px; font-weight: 950; letter-spacing: .11em; }
.kt-site-editor-settings-hero h3 { margin: 0; font-size: 31px; letter-spacing: -.045em; }
.kt-site-editor-settings-hero p { max-width: 720px; margin: 0; color: #dbe3ff; font-size: 14px; line-height: 1.55; }
.kt-site-editor-settings-stats { display: grid; grid-template-columns: repeat(2, minmax(128px, 1fr)); gap: 10px; }
.kt-site-editor-settings-stats > span { display: grid; min-height: 88px; place-items: center; align-content: center; padding: 13px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 16px; background: rgba(255,255,255,.08); }
.kt-site-editor-settings-stats > span.clean { border-color: rgba(91,226,155,.5); background: rgba(43,190,113,.13); }
.kt-site-editor-settings-stats > span.draft { border-color: rgba(249,216,71,.58); background: rgba(249,216,71,.12); }
.kt-site-editor-settings-stats b { font-size: 31px; line-height: 1; }
.kt-site-editor-settings-stats small { margin-top: 5px; color: #dbe3ff; font-size: 11px; font-weight: 800; }
.kt-site-editor-settings-search { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #ccd5e8; border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(23,35,76,.06); }
.kt-site-editor-settings-search > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #edf0ff; color: #584bd5; font-size: 22px; }
.kt-site-editor-settings-search input { min-width: 0; min-height: 42px; border: 0; outline: 0; background: transparent; color: #17213b; font: inherit; font-size: 14px; }
.kt-site-editor-settings-search small { color: #6c7690; font-size: 11px; font-weight: 800; white-space: nowrap; }
.kt-site-editor-settings-search:focus-within { border-color: #7465e5; box-shadow: 0 0 0 4px rgba(116,101,229,.12); }
.kt-site-editor-settings-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; }
.kt-site-editor-settings-group { overflow: hidden; border: 1px solid #d5ddeb; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(27,40,79,.07); }
.kt-site-editor-settings-group[hidden],
.kt-site-editor-settings-group button[hidden] { display: none !important; }
.kt-site-editor-settings-group > header { display: grid; min-height: 122px; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 18px; border-bottom: 1px solid #e1e6f0; background: linear-gradient(130deg, #f8faff, #eef2ff); }
.kt-site-editor-settings-group > header > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #e5e9ff; color: #5749d9; font-size: 20px; font-weight: 900; }
.kt-site-editor-settings-group > header > div { display: grid; gap: 5px; }
.kt-site-editor-settings-group h3 { margin: 0; color: #15203c; font-size: 16px; line-height: 1.3; }
.kt-site-editor-settings-group p { margin: 0; color: #69748b; font-size: 11px; line-height: 1.5; }
.kt-site-editor-settings-group > header > b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #fff; color: #6659dc; font-size: 11px; }
.kt-site-editor-settings-group > div { display: grid; padding: 8px; }
.kt-site-editor-settings-group > div > button { display: grid; min-height: 78px; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 12px; border: 0; border-bottom: 1px solid #edf0f6; background: #fff; color: #17213b; cursor: pointer; text-align: left; transition: background .15s, transform .15s; }
.kt-site-editor-settings-group > div > button:last-child { border-bottom: 0; }
.kt-site-editor-settings-group > div > button:hover { border-radius: 12px; background: #f2f4ff; transform: translateX(2px); }
.kt-site-editor-settings-group > div > button:focus-visible { outline: 3px solid rgba(100,86,223,.3); outline-offset: -3px; }
.kt-site-editor-settings-group > div > button > span:first-child { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #eef1ff; color: #5d51d9; font-size: 17px; }
.kt-site-editor-settings-group > div > button > span:nth-child(2) { display: grid; gap: 3px; }
.kt-site-editor-settings-group > div > button strong { font-size: 13px; }
.kt-site-editor-settings-group > div > button small { color: #707a91; font-size: 10px; line-height: 1.4; }
.kt-site-editor-settings-group > div > button > b { color: #5a4ed2; font-size: 20px; white-space: nowrap; }
.kt-site-editor-settings-empty { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 5px; border: 1px dashed #cbd3e4; border-radius: 16px; background: #fff; color: #17213b; text-align: center; }
.kt-site-editor-settings-empty[hidden] { display: none; }
.kt-site-editor-settings-empty strong { font-size: 16px; }
.kt-site-editor-settings-empty small { color: #6b758c; font-size: 12px; }
.kt-site-editor-settings-back { color: #5145c8 !important; }
.kt-site-editor-settings-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #788298; font-size: 11px; }
.kt-site-editor-settings-breadcrumb button { padding: 0; border: 0; background: transparent; color: #5145c8; cursor: pointer; font-weight: 900; }
.kt-site-editor-settings-breadcrumb strong { color: #17213b; }
.kt-site-editor-settings-subpage { display: grid; min-height: 100%; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 16px; }
.kt-site-editor-settings-nav { position: sticky; top: 0; display: grid; gap: 11px; padding: 11px; border: 1px solid #d5ddeb; border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(27,40,79,.06); }
.kt-site-editor-settings-nav button { width: 100%; border: 0; cursor: pointer; text-align: left; }
.kt-site-editor-settings-nav > .all { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: linear-gradient(120deg, #20265d, #5940c5); color: #fff; }
.kt-site-editor-settings-nav > .all > span:first-child { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 16px; }
.kt-site-editor-settings-nav > .all > span:last-child { display: grid; gap: 2px; }
.kt-site-editor-settings-nav > .all strong { font-size: 12px; }
.kt-site-editor-settings-nav > .all small { color: #dfe3ff; font-size: 9px; }
.kt-site-editor-settings-nav section { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid #e5e9f2; }
.kt-site-editor-settings-nav section h3 { display: flex; align-items: center; gap: 7px; margin: 0; padding: 5px 8px; color: #737e95; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.kt-site-editor-settings-nav section button { display: grid; min-height: 44px; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: transparent; color: #4e5870; }
.kt-site-editor-settings-nav section button:hover { background: #f2f4fb; }
.kt-site-editor-settings-nav section button.active { background: #e9ebff; color: #4c40c8; box-shadow: inset 3px 0 #6456df; }
.kt-site-editor-settings-nav section button > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; background: #f0f2f8; font-size: 12px; }
.kt-site-editor-settings-nav section button.active > span { background: #fff; }
.kt-site-editor-settings-nav section button strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.kt-site-editor-related { display: grid; gap: 7px; margin-bottom: 14px; padding: 12px; border: 1px solid #dce2ee; border-radius: 12px; background: #fff; }
.kt-site-editor-related > small { color: #707a92; font-size: 7px; font-weight: 950; letter-spacing: .09em; }
.kt-site-editor-related > div { display: flex; flex-wrap: wrap; gap: 6px; }
.kt-site-editor-related a,
.kt-site-editor-related button { padding: 7px 9px; border: 1px solid #d7ddec; border-radius: 8px; background: #f7f9fe; color: #3f35a6; cursor: pointer; font-size: 8px; font-weight: 850; text-decoration: none; }
.kt-site-editor-form { display: grid; gap: 12px; }
.kt-site-editor-form label,
.kt-site-editor-publish-form label { display: grid; gap: 6px; color: #4e5872; font-size: 9px; font-weight: 800; }
.kt-site-editor-form input,
.kt-site-editor-form textarea,
.kt-site-editor-publish-form input[type="text"],
.kt-site-editor-publish-form input:not([type]) { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #ccd4e5; border-radius: 10px; outline: 0; background: #fff; color: #121b35; font: inherit; font-size: 11px; }
.kt-site-editor-form textarea { min-height: 94px; resize: vertical; }
.kt-site-editor-form input:focus,
.kt-site-editor-form textarea:focus,
.kt-site-editor-publish-form input:focus { border-color: #6e5bef; box-shadow: 0 0 0 3px rgba(110,91,239,.12); }
.kt-site-editor-form .primary,
.kt-site-editor-focus-card .primary,
.kt-site-editor-publish-form .primary { display: grid; min-height: 46px; place-items: center; padding: 11px 14px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #286ef0, #7542ed); color: #fff; cursor: pointer; font-size: 10px; font-weight: 900; text-decoration: none; }
.kt-site-editor-form [role="status"],
.kt-site-editor-publish-form [role="status"] { min-height: 18px; margin: 0; color: #68728a; font-size: 9px; }
.kt-site-editor-form [role="status"].success,
.kt-site-editor-publish-form [role="status"].success { color: #087c4b; }
.kt-site-editor-form [role="status"].error,
.kt-site-editor-publish-form [role="status"].error { color: #b4232c; }
.kt-site-editor-focus-card { display: grid; gap: 13px; padding: 20px; border: 1px solid #d7deed; border-radius: 16px; background: linear-gradient(145deg, #fff, #f0f3ff); }
.kt-site-editor-focus-card > span { color: #6256dd; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.kt-site-editor-focus-card h3 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.kt-site-editor-focus-card p { margin: 0; color: #657088; font-size: 11px; line-height: 1.65; }
.kt-site-editor-focus-card > small { color: #68728a; font-size: 8px; }
.kt-site-editor-focus-card > a:not(.primary) { color: #4f42d2; font-size: 9px; font-weight: 850; }
.kt-site-editor-module-shell { display: grid; min-height: 100%; grid-template-rows: auto minmax(720px, 1fr); gap: 12px; }
.kt-site-editor-module-note { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 9px 12px; padding: 11px 14px; border: 1px solid #cfd8ee; border-radius: 13px; background: linear-gradient(100deg, #eef2ff, #f8faff); }
.kt-site-editor-module-note > span { padding: 5px 7px; border-radius: 7px; background: #e3e7ff; color: #5145c8; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.kt-site-editor-module-note > strong { color: #16203b; font-size: 13px; }
.kt-site-editor-module-note > small { color: #657088; font-size: 11px; text-align: right; }
.kt-site-editor-module-frame { width: 100%; min-height: 720px; height: 100%; border: 1px solid #d4dbea; border-radius: 16px; background: #0b1322; }

.kt-site-editor-release-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 20px; border-radius: 18px; background: linear-gradient(110deg, #122040, #272164 62%, #4c2edd); color: #fff; }
.kt-site-editor-release-hero div { display: grid; gap: 5px; }
.kt-site-editor-release-hero small { color: #f6d84d; font-size: 8px; font-weight: 950; letter-spacing: .09em; }
.kt-site-editor-release-hero h3 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.kt-site-editor-release-hero p { max-width: 690px; margin: 0; color: #dce3ff; font-size: 10px; line-height: 1.55; }
.kt-site-editor-release-hero a { flex: 0 0 auto; padding: 10px 14px; border: 1px solid rgba(255,255,255,.36); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 9px; font-weight: 850; text-decoration: none; }
.kt-site-editor-release-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 12px; }
.kt-site-editor-release-status article { display: grid; min-height: 84px; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #bdc8f8; border-radius: 15px; background: #fff; }
.kt-site-editor-release-status article.published { border-color: #93e2ba; box-shadow: inset 0 0 0 1px rgba(39,190,112,.08); }
.kt-site-editor-release-status article > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: #edf1ff; font-size: 18px; }
.kt-site-editor-release-status article > div { display: grid; gap: 2px; }
.kt-site-editor-release-status small { color: #667089; font-size: 7px; font-weight: 950; letter-spacing: .1em; }
.kt-site-editor-release-status strong { font-size: 12px; }
.kt-site-editor-release-status em { color: #717b92; font-size: 8px; font-style: normal; }
.kt-site-editor-release-status article > b { align-self: start; padding: 5px 7px; border-radius: 7px; background: #ecebff; color: #5145c8; font-size: 7px; letter-spacing: .06em; }
.kt-site-editor-release-status article.published > b { background: #dff8e9; color: #087743; }
.kt-site-editor-release-status > i { color: #667089; font-size: 20px; font-style: normal; }
.kt-site-editor-release-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 12px; padding: 5px; border: 1px solid #d8dfed; border-radius: 13px; background: #fff; }
.kt-site-editor-release-tabs button { min-height: 38px; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: #515b73; cursor: pointer; font-size: 8px; font-weight: 850; }
.kt-site-editor-release-tabs button.active { background: linear-gradient(90deg, #286ef0, #7542ed); color: #fff; box-shadow: 0 7px 18px rgba(75,68,210,.23); }
.kt-site-editor-release-section { margin-bottom: 13px; padding: 16px; border: 1px solid #d8dfed; border-radius: 16px; background: #fff; }
.kt-site-editor-release-section .section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.kt-site-editor-release-section .section-head > div { display: grid; gap: 4px; }
.kt-site-editor-release-section .section-head small,
.kt-site-editor-publish-form > div small { color: #7468e5; font-size: 7px; font-weight: 950; letter-spacing: .1em; }
.kt-site-editor-release-section h3,
.kt-site-editor-publish-form h3 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.kt-site-editor-release-section p,
.kt-site-editor-publish-form p { margin: 0; color: #69738a; font-size: 9px; line-height: 1.5; }
.kt-site-editor-release-section .section-head button { min-height: 36px; padding: 8px 11px; border: 1px solid #d3daea; border-radius: 9px; background: #f7f9fe; color: #303b56; cursor: pointer; font-size: 8px; font-weight: 850; }
.kt-site-editor-release-section .section-head button.danger { border-color: #f1b9be; color: #a61f2b; }
.kt-site-editor-table-wrap { width: 100%; overflow-x: auto; }
.kt-site-editor-table-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.kt-site-editor-table-wrap th { padding: 9px 10px; border-bottom: 1px solid #dce2ef; color: #707991; font-size: 7px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.kt-site-editor-table-wrap td { padding: 11px 10px; border-bottom: 1px solid #e5e9f2; color: #566077; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; vertical-align: top; }
.kt-site-editor-table-wrap th:nth-child(1), .kt-site-editor-table-wrap td:nth-child(1) { width: 82px; }
.kt-site-editor-table-wrap th:nth-child(5), .kt-site-editor-table-wrap td:nth-child(5) { width: 65px; }
.kt-site-editor-table-wrap td strong,
.kt-site-editor-table-wrap td b { color: #17213b; }
.kt-site-editor-table-wrap td a,
.kt-site-editor-table-wrap td button { border: 0; background: none; color: #5043cc; cursor: pointer; font-size: 8px; font-weight: 900; text-decoration: none; }
.kt-site-editor-table-wrap .type { display: inline-flex; padding: 5px 7px; border-radius: 7px; background: #eef1f7; color: #5b657a; font-size: 6px; font-weight: 950; letter-spacing: .07em; }
.kt-site-editor-table-wrap .type.exercise { background: #e6f7ee; color: #087348; }
.kt-site-editor-table-wrap .type.category { background: #e8f1ff; color: #225ca6; }
.kt-site-editor-table-wrap .active-release { display: inline-flex; padding: 5px 7px; border-radius: 7px; background: #dff8e9; color: #087743; font-size: 7px; font-weight: 950; }
.kt-site-editor-table-wrap.history th:first-child,
.kt-site-editor-table-wrap.history td:first-child { width: auto; }
.kt-site-editor-empty { display: grid; place-items: center; min-height: 130px; padding: 20px; border: 1px dashed #cbd3e4; border-radius: 12px; color: #5f697f; text-align: center; }
.kt-site-editor-empty p { margin: 4px 0 0; }
.kt-site-editor-publish-form { display: grid; grid-template-columns: minmax(240px, 1.3fr) minmax(210px, .8fr) minmax(240px, 1fr) auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid #aca4ef; border-radius: 16px; background: linear-gradient(135deg, #fbfbff, #f0efff); }
.kt-site-editor-publish-form > div { display: grid; gap: 4px; }
.kt-site-editor-publish-form .confirm { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px; color: #313b54; line-height: 1.45; }
.kt-site-editor-publish-form .confirm input { margin-top: 2px; }
.kt-site-editor-publish-form > [role="status"] { grid-column: 1 / -1; }

.kt-site-editor-mode[data-editor-device="tablet"] body > *:not(.kt-site-editor-toolbar):not(#ktSiteEditorDrawerRoot):not(script),
.kt-site-editor-mode[data-editor-device="phone"] body > *:not(.kt-site-editor-toolbar):not(#ktSiteEditorDrawerRoot):not(script) { margin-right: auto !important; margin-left: auto !important; box-shadow: 0 20px 55px rgba(12,25,57,.28); }
.kt-site-editor-mode[data-editor-device="tablet"] body > *:not(.kt-site-editor-toolbar):not(#ktSiteEditorDrawerRoot):not(script) { width: min(900px, 100%) !important; }
.kt-site-editor-mode[data-editor-device="phone"] body > *:not(.kt-site-editor-toolbar):not(#ktSiteEditorDrawerRoot):not(script) { width: min(430px, 100%) !important; }

@media (max-width: 1260px) {
  :root.kt-site-editor-mode { --kt-editor-toolbar-height: 118px; }
  .kt-site-editor-toolbar { grid-template-columns: 1fr auto auto; }
  .kt-site-editor-actions { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
  .kt-site-editor-drawer.wide { width: min(1000px, 88vw); }
  .kt-site-editor-drawer:has(.kt-site-editor-settings-home),
  .kt-site-editor-drawer:has(.kt-site-editor-settings-subpage) { width: calc(100vw - 28px); }
  .kt-site-editor-publish-form { grid-template-columns: 1fr 1fr; }
  .kt-site-editor-publish-form > div,
  .kt-site-editor-publish-form > [role="status"] { grid-column: 1 / -1; }
}
@media (max-width: 1050px) {
  .kt-site-editor-settings-groups { grid-template-columns: 1fr 1fr; }
  .kt-site-editor-settings-group:last-child { grid-column: 1 / -1; }
  .kt-site-editor-settings-subpage { grid-template-columns: 235px minmax(0, 1fr); }
  .kt-site-editor-module-note { grid-template-columns: auto minmax(0, 1fr); }
  .kt-site-editor-module-note > small { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 760px) {
  :root.kt-site-editor-mode { --kt-editor-toolbar-height: 138px; }
  .kt-site-editor-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 7px 9px; }
  .kt-site-editor-brand small { max-width: 58vw; }
  .kt-site-editor-change-count { min-width: 0; grid-template-columns: 31px auto; }
  .kt-site-editor-change-count > b { width: 31px; height: 31px; }
  .kt-site-editor-viewport { display: none; }
  .kt-site-editor-actions { grid-column: 1 / -1; }
  .kt-site-editor-actions a,
  .kt-site-editor-actions button { min-height: 32px; padding: 7px 9px; }
  .kt-site-editor-drawer,
  .kt-site-editor-drawer.wide { width: 100vw; }
  .kt-site-editor-drawer:has(.kt-site-editor-module-shell) { width: 100vw; }
  .kt-site-editor-module-shell { grid-template-rows: auto minmax(620px, 1fr); }
  .kt-site-editor-module-frame { min-height: 620px; }
  .kt-site-editor-drawer > header { padding: 12px; }
  .kt-site-editor-drawer > header h2 { font-size: 17px; }
  .kt-site-editor-drawer > header [data-editor-open="assistant"] { display: none; }
  .kt-site-editor-settings-back { padding: 7px !important; font-size: 0 !important; }
  .kt-site-editor-settings-back::before { font-size: 16px; content: "←"; }
  .kt-site-editor-settings-hero { grid-template-columns: 1fr; padding: 18px; }
  .kt-site-editor-settings-hero h3 { font-size: 24px; }
  .kt-site-editor-settings-hero p { font-size: 12px; }
  .kt-site-editor-settings-stats { grid-template-columns: 1fr 1fr; }
  .kt-site-editor-settings-stats > span { min-height: 70px; }
  .kt-site-editor-settings-stats b { font-size: 25px; }
  .kt-site-editor-settings-search { grid-template-columns: 36px minmax(0, 1fr); }
  .kt-site-editor-settings-search > span { width: 34px; height: 34px; }
  .kt-site-editor-settings-search input { font-size: 12px; }
  .kt-site-editor-settings-search small { grid-column: 1 / -1; padding: 0 4px 3px; }
  .kt-site-editor-settings-groups { grid-template-columns: 1fr; }
  .kt-site-editor-settings-group:last-child { grid-column: auto; }
  .kt-site-editor-settings-breadcrumb { overflow-x: auto; white-space: nowrap; }
  .kt-site-editor-settings-subpage { grid-template-columns: 1fr; }
  .kt-site-editor-settings-nav { position: static; display: flex; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; }
  .kt-site-editor-settings-nav > .all { min-width: 172px; flex: 0 0 auto; }
  .kt-site-editor-settings-nav section { display: flex; flex: 0 0 auto; gap: 7px; padding: 0; border: 0; }
  .kt-site-editor-settings-nav section h3 { display: none; }
  .kt-site-editor-settings-nav section button { width: auto; min-width: 148px; flex: 0 0 auto; }
  .kt-site-editor-settings-nav section button.active { box-shadow: inset 0 -3px #6456df; }
  .kt-site-editor-module-note { grid-template-columns: 1fr; }
  .kt-site-editor-module-note > small { grid-column: auto; }
  .kt-site-editor-drawer > footer { align-items: flex-start; flex-direction: column; gap: 3px; }
  .kt-site-editor-release-hero { align-items: flex-start; flex-direction: column; padding: 15px; }
  .kt-site-editor-release-hero h3 { font-size: 20px; }
  .kt-site-editor-release-status { grid-template-columns: 1fr; }
  .kt-site-editor-release-status > i { transform: rotate(90deg); text-align: center; }
  .kt-site-editor-release-tabs { display: flex; overflow-x: auto; }
  .kt-site-editor-release-tabs button { min-width: 125px; flex: 0 0 auto; }
  .kt-site-editor-release-section { padding: 11px; }
  .kt-site-editor-release-section .section-head { align-items: flex-start; flex-direction: column; }
  .kt-site-editor-table-wrap table,
  .kt-site-editor-table-wrap tbody,
  .kt-site-editor-table-wrap tr,
  .kt-site-editor-table-wrap td { display: block; width: 100% !important; }
  .kt-site-editor-table-wrap thead { display: none; }
  .kt-site-editor-table-wrap tr { margin-bottom: 9px; border: 1px solid #dce2ef; border-radius: 11px; overflow: hidden; }
  .kt-site-editor-table-wrap td { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 8px; border-bottom: 1px solid #e7eaf2; }
  .kt-site-editor-table-wrap td::before { color: #7a8398; content: attr(data-label); font-size: 7px; font-weight: 950; text-transform: uppercase; }
  .kt-site-editor-publish-form { grid-template-columns: 1fr; }
  .kt-site-editor-publish-form > * { grid-column: auto !important; }
}
