:root {
  --bg: #eef1f6;
  --chrome: #e5e9f0;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --text: #111318;
  --muted: #687284;
  --line: #d8dee8;
  --line-strong: #c8d0dd;
  --black: #101114;
  --blue: #2868d9;
  --green: #188657;
  --red: #c83c3c;
  --blue-soft: rgba(40, 104, 217, 0.11);
  --green-soft: rgba(24, 134, 87, 0.12);
  --red-soft: rgba(200, 60, 60, 0.12);
  --sidebar: 252px;
  --topbar: 62px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px rgba(22, 28, 38, 0.08);
  --shadow-strong: 0 24px 80px rgba(22, 28, 38, 0.14);
  font-family: Manrope, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 0;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar);
  z-index: 50;
  height: var(--topbar);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 18px 10px 20px;
  border-bottom: 0;
  border-left: 0;
  border-bottom-left-radius: 0;
  background: linear-gradient(90deg, rgba(229, 233, 240, 0.96) 0, rgba(247, 249, 252, 0.91) 82px, rgba(247, 249, 252, 0.88) 100%);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 12px 34px rgba(22, 28, 38, 0.04);
}

.topbar::before {
  display: none;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0 8px 20px;
  color: #111318;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
}

.admin-brand:hover {
  color: #111318;
}

.admin-brand img {
  width: 138px;
  height: auto;
  max-height: 42px;
}

.admin-brand span {
  color: #4c5667;
  font-weight: 760;
}

.mobile-brand {
  display: none;
}

.site-switcher {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  scrollbar-width: none;
}

.site-switcher::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  display: none;
}

.site-switcher a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: #475063;
  font-size: 13px;
  font-weight: 760;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-switcher a.active,
.site-switcher a:hover {
  background: var(--black);
  color: #fff;
  transform: translateY(-1px);
}

.logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  transition: background 0.18s ease, color 0.18s ease;
}

.logout:hover {
  background: rgba(17, 19, 24, 0.06);
  color: var(--black);
}

.admin-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  height: 100vh;
  min-width: 0;
}

.admin-shell::before {
  content: "";
  position: fixed;
  top: var(--topbar);
  left: var(--sidebar);
  z-index: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(229, 233, 240, 0.96) 0%, rgba(247, 249, 252, 0.91) 62%, rgba(247, 249, 252, 0.88) 100%);
  pointer-events: none;
}

.admin-shell::after {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 18px 14px;
  overflow: auto;
  border-right: 0;
  background: linear-gradient(180deg, var(--chrome) 0%, #e8ecf3 58%, #eef1f6 100%);
  scrollbar-width: none;
}

.sidebar a {
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 0 14px;
  border-radius: 999px;
  color: #444d5f;
  font-size: 13px;
  font-weight: 760;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar .admin-brand {
  min-height: 42px;
  padding: 0 8px;
  border-radius: 0;
}

.sidebar > a:not(.admin-brand).active,
.sidebar > a:not(.admin-brand):hover {
  background: var(--black);
  color: #fff;
  transform: translateX(2px);
}

.content {
  grid-column: 2;
  position: relative;
  z-index: 1;
  height: calc(100vh - var(--topbar));
  min-width: 0;
  margin-top: var(--topbar);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 30px clamp(20px, 3vw, 40px) 44px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-top-left-radius: 28px;
  background: var(--bg);
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-head p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0;
  color: #101318;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.04;
  letter-spacing: 0;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.button,
.lead-actions a,
.row-actions a,
.row-actions button,
.editor button,
.login-card button,
.panel button,
.media-import button,
.media-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.lead-actions a:hover,
.row-actions a:hover,
.row-actions button:hover,
.editor button:hover,
.login-card button:hover,
.panel button:hover,
.media-import button:hover,
.media-remove:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.12);
}

.button.ghost,
.lead-actions a,
.row-actions a,
.row-actions button,
.media-remove {
  border-color: var(--line);
  background: #fff;
  color: var(--black);
  box-shadow: none;
}

.button.ghost:hover,
.lead-actions a:hover,
.row-actions a:hover,
.row-actions button:hover,
.media-remove:hover {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.danger,
.row-actions button.danger {
  color: var(--red) !important;
}

.row-actions button.danger:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff !important;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font-weight: 400;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input,
select {
  min-height: 40px;
  padding: 9px 12px;
}

textarea {
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(17, 19, 24, 0.07);
}

.filters select {
  min-width: 160px;
}

.panel,
.content-card,
.metric-card,
.empty,
.login-card {
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel {
  padding: 20px;
}

.panel h2,
.content-card h2,
.metric-card h2 {
  margin: 0;
  color: #151922;
  font-size: 20px;
  line-height: 1.14;
}

.panel h2 + *,
.panel .muted + *,
.panel label:first-of-type,
.panel .grid-2:first-of-type,
.panel .list-editor:first-of-type,
.panel .program-editor:first-of-type,
.panel .media-editor:first-of-type {
  margin-top: 14px;
}

.muted,
.content-card p,
.metric-card p {
  color: var(--muted);
}

.grid-2,
.detail-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor,
.content-grid,
.detail-grid,
.analytics-grid,
.lead-list {
  display: grid;
  gap: 14px;
}

.editor label,
.login-card label,
.panel label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #303848;
  font-size: 13px;
  font-weight: 760;
}

.editor label + label,
.editor label + .grid-2,
.grid-2 + label,
.grid-2 + .grid-2,
.editor-subtitle + .list-editor {
  margin-top: 14px;
}

.color-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.color-field input {
  min-width: 0;
}

.color-field-picker {
  height: 40px;
  min-height: 40px;
  padding: 3px;
  cursor: pointer;
}

.editor-context {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.editor-context strong {
  color: #151922;
  font-size: 14px;
}

.editor-context span {
  color: var(--muted);
  font-size: 13px;
}

.content-grid {
  grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
}

.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.content-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-edit-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.content-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: #e7ebf1;
}

.content-card > div {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
  pointer-events: none;
}

.content-card > div > :not(.row-actions) {
  pointer-events: none;
}

.content-card h2 {
  margin-top: 8px;
  font-size: 18px;
}

.row-actions {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
}

.row-actions form {
  margin: 0;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-right: 5px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.badge {
  background: rgba(17, 19, 24, 0.06);
  color: #384153;
}

.status.is-new {
  background: rgba(40, 104, 217, 0.14);
  color: #1857c8;
}

.status.is-working {
  background: rgba(24, 134, 87, 0.15);
  color: #127346;
}

.status.is-not-working {
  background: rgba(200, 60, 60, 0.15);
  color: #af2e2e;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(248px, 1fr));
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.kanban-column {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(160px, auto);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 18px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.kanban-column.is-new {
  background: linear-gradient(180deg, rgba(40, 104, 217, 0.11), rgba(40, 104, 217, 0.045));
}

.kanban-column.is-working {
  background: linear-gradient(180deg, rgba(24, 134, 87, 0.12), rgba(24, 134, 87, 0.045));
}

.kanban-column.is-not-working {
  background: linear-gradient(180deg, rgba(200, 60, 60, 0.12), rgba(200, 60, 60, 0.045));
}

.kanban-column.is-over {
  border-color: var(--black);
  transform: translateY(-2px);
}

.kanban-column-head {
  padding: 2px 2px 0;
}

.kanban-column-head div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kanban-column-head p {
  margin: 0;
  color: #18202d;
  font-size: 13px;
  font-weight: 920;
}

.kanban-column-head span {
  min-width: 30px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #313a4b;
  font-size: 12px;
  font-weight: 900;
}

.kanban-list {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  min-height: 120px;
}

.lead-card {
  min-width: 0;
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lead-card.is-new {
  border-color: rgba(40, 104, 217, 0.24);
  box-shadow: inset 4px 0 0 rgba(40, 104, 217, 0.55);
}

.lead-card.is-working {
  border-color: rgba(24, 134, 87, 0.24);
  box-shadow: inset 4px 0 0 rgba(24, 134, 87, 0.58);
}

.lead-card.is-not-working {
  border-color: rgba(200, 60, 60, 0.24);
  box-shadow: inset 4px 0 0 rgba(200, 60, 60, 0.58);
}

.lead-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.lead-card.is-dragging {
  opacity: 0.68;
  cursor: grabbing;
}

.lead-card h2 {
  margin: 10px 0 0;
  color: #121722;
  font-size: 16px;
  line-height: 1.24;
}

.lead-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lead-card p a {
  color: #1d2634;
  font-weight: 760;
}

.lead-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lead-actions a {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.mobile-status-action {
  display: none;
}

.kanban-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  color: #18202d;
  font-weight: 850;
  backdrop-filter: blur(16px);
}

.kanban-toast[data-tone="error"] {
  color: var(--red);
}

.editor {
  position: relative;
  padding-bottom: 124px;
}

.publish-panel {
  position: fixed;
  right: clamp(18px, 3vw, 38px);
  bottom: 24px;
  z-index: 80;
  display: grid;
  width: min(318px, calc(100vw - var(--sidebar) - 72px));
  gap: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.91);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.publish-panel button {
  width: 100%;
}

.check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: #303848;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.check input {
  width: auto;
}

.list-editor,
.program-editor,
.media-editor {
  display: grid;
  gap: 14px;
}

[data-list-items],
[data-program-items] {
  display: grid;
  gap: 12px;
}

.structured-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 13px;
  background: var(--panel-soft);
}

.structured-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e9eef5;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.structured-item button,
.list-editor > button,
.program-editor > button {
  justify-self: start;
  margin-top: 0;
}

.structured-item button {
  border-color: rgba(200, 60, 60, 0.18);
  background: #fff;
  color: var(--red);
  box-shadow: none;
}

.structured-item button:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.program-block > div {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.program-block textarea {
  min-height: 92px;
}

.editor-subtitle {
  margin: 18px 0 10px;
  color: #18202d;
  font-size: 15px;
  line-height: 1.2;
}

.media-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 170px;
  padding: 22px;
  border: 1.5px dashed #c4ccd9;
  border-radius: 16px;
  background: var(--panel-soft);
  color: #202938;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.media-dropzone.is-over {
  border-color: var(--black);
  background: #fff;
  transform: translateY(-1px);
}

.media-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.media-dropzone span,
.media-status {
  color: var(--muted);
  font-size: 13px;
}

.media-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 12px;
  min-width: 0;
}

.media-thumb {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.media-thumb.is-hero {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.08);
}

.editor .media-thumb-preview {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.24;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #e7ebf1;
  cursor: pointer;
  box-shadow: none;
}

.editor .media-thumb-preview:hover {
  transform: none;
  box-shadow: none;
}

.editor .media-thumb-preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.editor .media-thumb-preview span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  max-width: calc(100% - 14px);
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.84);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-remove {
  width: 100%;
  border-color: rgba(200, 60, 60, 0.18);
  color: var(--red);
}

.media-remove:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.media-status[data-tone="error"] {
  color: var(--red);
}

dl {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
}

dt {
  color: var(--muted);
  font-weight: 850;
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #fff1f0;
  color: var(--red);
  font-weight: 850;
}

.alert.success {
  background: #edf8f2;
  color: var(--green);
}

.empty,
.chart-placeholder {
  padding: 24px;
  color: var(--muted);
}

.metric-card {
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 850;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 28px;
}

.login-card h1 {
  margin: 0;
  font-size: 34px;
}

.login-card p {
  margin: 0;
}

.login-card button {
  justify-self: start;
  margin-top: 2px;
}

@keyframes lead-pop {
  0% {
    transform: translateY(-8px);
    box-shadow: 0 0 0 4px rgba(40, 104, 217, 0.16);
  }
  100% {
    transform: translateY(0);
    box-shadow: none;
  }
}

.lead-card.is-new-card {
  animation: lead-pop 1.2s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1100px) {
  :root {
    --sidebar: 220px;
  }

  .kanban-board {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .topbar {
    position: sticky;
    top: 0;
    left: 0;
    height: auto;
    grid-template-columns: 1fr auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    border-bottom-left-radius: 0;
    background: rgba(247, 249, 252, 0.93);
    backdrop-filter: none;
    z-index: 80;
  }

  .topbar::before {
    display: none;
  }

  .mobile-brand {
    display: inline-flex;
    min-height: 38px;
    margin: 0;
    padding: 0;
  }

  .mobile-brand img {
    width: 126px;
    max-height: 34px;
  }

  .desktop-brand {
    display: none !important;
  }

  .site-switcher {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 12px;
    z-index: 95;
    width: max-content;
    max-width: calc(100% - 24px);
    justify-content: center;
    padding: 5px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 50px rgba(17, 19, 24, 0.16);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
  }

  .admin-shell {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }

  .admin-shell::after {
    display: none;
  }

  .admin-shell::before {
    display: none;
  }

  .sidebar {
    position: sticky;
    top: 59px;
    width: 100%;
    height: auto;
    z-index: 70;
    grid-auto-flow: column;
    align-items: center;
    overflow-x: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar a {
    justify-content: center;
    white-space: nowrap;
    text-align: center;
  }

  .content {
    grid-column: 1;
    height: auto;
    margin-top: 0;
    overflow: visible;
    padding: 22px 14px 112px;
    border: 0;
    border-radius: 0;
  }

  .page-head {
    display: grid;
    align-items: start;
  }

  .grid-2,
  .detail-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kanban-column {
    display: block;
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .kanban-column:not(:has(.lead-card)) {
    display: none;
  }

  .kanban-column-head {
    display: none;
  }

  .kanban-column + .kanban-column {
    margin-top: 12px;
  }

  .kanban-list {
    gap: 12px;
  }

  .lead-card {
    cursor: default;
  }

  .lead-card.is-new {
    background: rgba(40, 104, 217, 0.08);
  }

  .lead-card.is-working {
    background: rgba(24, 134, 87, 0.09);
  }

  .lead-card.is-not-working {
    background: rgba(200, 60, 60, 0.09);
  }

  .mobile-status-action {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }

  .media-import,
  .publish-panel {
    grid-template-columns: 1fr;
  }

  .structured-item,
  .program-block {
    grid-template-columns: 1fr;
  }

  .publish-panel {
    position: sticky;
    right: auto;
    bottom: 10px;
    width: auto;
  }

  dl {
    grid-template-columns: 1fr;
  }
}
