:root {
  --purple: #212121;
  --purple-soft: #efeeec;
  --purple-deep: #111111;
  --page: #e8e9ec;
  --ink: #16181d;
  --muted: #8b909b;
  --line: #eef0f3;
  --line2: #e4e7ec;
  --green: #1aa46a;
  --green-bg: #e6f6ee;
  --red: #e24b4b;
}

* { box-sizing: border-box; }

body.dp-body {
  margin: 0;
  padding: 0;
  background: var(--page);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  box-sizing: border-box;
}

body.dp-body:has(.dp-login-page) {
  background: #fff;
  padding: 0;
  overflow-x: hidden;
}

.dp-body .site-header,
.dp-body .wp-site-blocks > header,
.dp-body .wp-block-template-part {
  display: none !important;
}

.app {
  max-width: none;
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 262px 1fr;
  box-shadow: none;
  min-height: 100vh;
  box-sizing: border-box;
}

.side {
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  align-self: stretch;
  background: #fff;
}

.logo {
  padding: 0 4px;
  margin-bottom: 18px;
}

.dp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dp-brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 11px;
  background: transparent;
  padding: 0;
  flex: none;
}

.dp-brand-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 40px;
}

.dp-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.dp-brand-meta small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.nav {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #3a3f4a;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
}

.nav a:hover,
.nav a:focus,
.nav a:visited,
.nav a:active {
  text-decoration: none !important;
}

.nav a:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.nav a svg {
  width: 21px;
  height: 21px;
  flex: none;
  stroke: #7a8090;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.nav a svg .dp-qdot {
  fill: #7a8090;
  stroke: none;
}

.nav-label {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-count {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav a.active {
  background: var(--purple);
  color: #fff;
  font-weight: 600;
}

.nav a.active:hover {
  background: var(--purple);
  color: #fff;
}

.nav a.active svg {
  stroke: #fff;
}

.nav a.active svg .dp-qdot {
  fill: #fff;
}

.nav a.active .nav-count {
  color: rgba(255, 255, 255, 0.72);
}

.dp-logout {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1.5px solid var(--line2);
  background: #f7f7f9;
  color: #6b7280 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.dp-logout:hover,
.dp-logout:focus {
  background: #eef0f3;
  border-color: #d7dae2;
  color: #4b5563 !important;
  text-decoration: none !important;
}

.dp-logout svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-help {
  max-width: 720px;
}

.dp-help-item {
  background: #fff;
  border: 1.5px solid var(--line2);
  border-radius: 14px;
  margin-top: 10px;
  overflow: hidden;
}

.dp-help-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dp-help-item summary::-webkit-details-marker {
  display: none;
}

.dp-help-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #8b8798;
  border-bottom: 2px solid #8b8798;
  transform: rotate(45deg);
  flex: none;
  margin-top: -4px;
  transition: transform .15s ease;
}

.dp-help-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.dp-help-body {
  padding: 0 18px 16px;
  color: #4a4f5c;
  font-size: 14px;
  line-height: 1.55;
}

.dp-help-body p {
  margin: 0;
}

.dp-help-body code {
  font-size: 12.5px;
  background: var(--purple-soft);
  color: var(--purple);
  padding: 2px 7px;
  border-radius: 6px;
}

.main { min-width: 0; }

/* Главная без скролла страницы — всё в высоту окна */
html[data-dp-section="home"] body.dp-body {
  height: 100vh;
  overflow: hidden;
}

html[data-dp-section="home"] .app {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

html[data-dp-section="home"] .main {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html[data-dp-section="home"] .topbar {
  flex: none;
}

html[data-dp-section="home"] .content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html[data-dp-section="home"] .tab-panel[data-dp-panel="home"] {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

html[data-dp-section="home"] .tab-panel[data-dp-panel="home"].on {
  display: flex;
}

html[data-dp-section="home"] .dp-home {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html[data-dp-section="home"] .dp-home-cols {
  flex: 1;
  height: 100%;
  min-height: 0;
}

.dp-nav-backdrop {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: none;
}

.dp-search {
  flex: none;
  width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.dp-search svg {
  position: absolute;
  left: 14px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #8b909b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.dp-search input {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px 0 40px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: #f2f3f5;
  box-sizing: border-box;
}

.dp-search input::placeholder {
  color: #9aa1ad;
  font-weight: 500;
}

.dp-search input:focus {
  outline: none;
  background: #ebecef;
  box-shadow: none;
}

.dp-search-empty {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.tr {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.dp-top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-create-icon {
  display: none;
  background: var(--purple);
  color: #fff;
}
.dp-create-icon:hover {
  background: var(--purple-deep);
  color: #fff;
}

.dp-icon-btn.dp-nav-toggle,
.dp-icon-btn.dp-create-icon {
  display: none;
}

.dp-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #f2f3f5;
  color: #5b616e;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transition: background .15s ease, color .15s ease;
}

.dp-icon-btn:hover {
  background: #e8eaee;
  border-color: transparent;
  box-shadow: none;
  color: var(--ink);
}

.dp-icon-btn:active {
  transform: none;
}

.tr > .btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dp-icon-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-notify-wrap {
  position: relative;
  z-index: 60;
}

.dp-notify-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(226, 75, 75, 0.35);
  pointer-events: none;
  z-index: 2;
}

.dp-notify-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: min(320px, calc(100vw - 48px));
  background: #fff;
  border: 1.5px solid var(--line2);
  border-radius: 16px;
  box-shadow: 0 18px 40px -24px rgba(20, 20, 40, 0.35);
  z-index: 70;
  overflow: hidden;
  box-sizing: border-box;
}

.dp-notify-panel[hidden] {
  display: none !important;
}

.dp-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.dp-notify-clear {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--purple);
  cursor: pointer;
}

.dp-notify-clear:hover {
  text-decoration: underline;
}

.dp-notify-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.dp-notify-list {
  max-height: 360px;
  overflow: auto;
}

.dp-notify-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px 36px 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #faf9ff;
}

.dp-notify-item.is-read {
  background: #fff;
}

.dp-notify-item:last-child {
  border-bottom: none;
}

.dp-notify-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.dp-notify-close:hover {
  background: var(--purple-soft);
  color: var(--ink);
}

.dp-notify-face {
  font-size: 22px;
  line-height: 1;
  flex: none;
  margin-top: 2px;
}

.dp-notify-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.dp-notify-text {
  margin-top: 3px;
  font-size: 13px;
  color: #4a4f5c;
  line-height: 1.35;
}

.dp-notify-time {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.dp-notify-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
}

.dp-notify-link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--purple);
  color: #fff !important;
  border: none;
  padding: 11px 17px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

.btn.g {
  background: #fff;
  color: var(--ink) !important;
  border: 1.5px solid var(--line2);
}

.btn.sm {
  padding: 6px 11px;
  font-size: 12.5px;
  border-radius: 9px;
}

.me {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  margin-left: 4px;
  padding-left: 16px;
}

.me::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: var(--line2);
}

.av {
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex: none;
  background: #e76f51;
}

.av.lg {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.av.sm {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.av-photo {
  background-size: cover !important;
  background-position: center !important;
  color: transparent !important;
}

.dp-avatar-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px -34px rgba(20, 20, 40, 0.28);
}

.dp-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e76f51, #f4a261);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 28px;
  overflow: hidden;
  flex: none;
}

.dp-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-avatar-meta {
  min-width: 0;
  flex: 1;
}

.dp-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dp-file-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dp-file-btn input[type="file"] {
  display: none;
}

.content {
  padding: 28px 32px 24px;
}

.tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 8px;
}

.tabs a,
.tabs button {
  font-size: 15px;
  font-weight: 500;
  color: #5a5f6b;
  padding: 13px 2px 15px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.tabs a.on,
.tabs button.on {
  color: var(--purple);
  font-weight: 700;
}

.tabs a.on::after,
.tabs button.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background: var(--purple);
  border-radius: 3px;
}

.tab-panel { display: none; }
.tab-panel.on { display: block; }

html[data-dp-section="home"] .tab-panel[data-dp-panel="home"],
html[data-dp-section="news"] .tab-panel[data-dp-panel="news"],
html[data-dp-section="projects"] .tab-panel[data-dp-panel="projects"],
html[data-dp-section="documents"] .tab-panel[data-dp-panel="documents"],
html[data-dp-section="trash"] .tab-panel[data-dp-panel="trash"],
html[data-dp-section="profile"] .tab-panel[data-dp-panel="profile"],
html[data-dp-section="settings"] .tab-panel[data-dp-panel="settings"],
html[data-dp-section="help"] .tab-panel[data-dp-panel="help"],
html[data-dp-section="create"] .tab-panel[data-dp-panel="create"],
html[data-dp-section="edit"] .tab-panel[data-dp-panel="edit"] {
  display: block;
}

html[data-dp-section="home"] .nav a[data-dp-nav="home"],
html[data-dp-section="news"] .nav a[data-dp-nav="news"],
html[data-dp-section="projects"] .nav a[data-dp-nav="projects"],
html[data-dp-section="documents"] .nav a[data-dp-nav="documents"],
html[data-dp-section="trash"] .nav a[data-dp-nav="trash"],
html[data-dp-section="profile"] .nav a[data-dp-nav="profile"],
html[data-dp-section="help"] .nav a[data-dp-nav="help"],
html[data-dp-section="create"] .nav a[data-dp-nav="projects"],
html[data-dp-section="edit"] .nav a[data-dp-nav="projects"] {
  background: var(--purple);
  color: #fff;
  font-weight: 600;
}

html[data-dp-section="home"] .nav a[data-dp-nav="home"]:hover,
html[data-dp-section="news"] .nav a[data-dp-nav="news"]:hover,
html[data-dp-section="projects"] .nav a[data-dp-nav="projects"]:hover,
html[data-dp-section="documents"] .nav a[data-dp-nav="documents"]:hover,
html[data-dp-section="trash"] .nav a[data-dp-nav="trash"]:hover,
html[data-dp-section="profile"] .nav a[data-dp-nav="profile"]:hover,
html[data-dp-section="help"] .nav a[data-dp-nav="help"]:hover,
html[data-dp-section="create"] .nav a[data-dp-nav="projects"]:hover,
html[data-dp-section="edit"] .nav a[data-dp-nav="projects"]:hover {
  background: var(--purple);
  color: #fff;
}

html[data-dp-section="home"] .nav a[data-dp-nav="home"] svg,
html[data-dp-section="news"] .nav a[data-dp-nav="news"] svg,
html[data-dp-section="projects"] .nav a[data-dp-nav="projects"] svg,
html[data-dp-section="documents"] .nav a[data-dp-nav="documents"] svg,
html[data-dp-section="trash"] .nav a[data-dp-nav="trash"] svg,
html[data-dp-section="profile"] .nav a[data-dp-nav="profile"] svg,
html[data-dp-section="help"] .nav a[data-dp-nav="help"] svg,
html[data-dp-section="create"] .nav a[data-dp-nav="projects"] svg,
html[data-dp-section="edit"] .nav a[data-dp-nav="projects"] svg {
  stroke: #fff;
}

html[data-dp-section="home"] .nav a[data-dp-nav="home"] svg .dp-qdot,
html[data-dp-section="help"] .nav a[data-dp-nav="help"] svg .dp-qdot {
  fill: #fff;
}

html[data-dp-section="home"] .nav a[data-dp-nav="home"] .nav-count,
html[data-dp-section="news"] .nav a[data-dp-nav="news"] .nav-count,
html[data-dp-section="projects"] .nav a[data-dp-nav="projects"] .nav-count,
html[data-dp-section="trash"] .nav a[data-dp-nav="trash"] .nav-count,
html[data-dp-section="create"] .nav a[data-dp-nav="projects"] .nav-count,
html[data-dp-section="edit"] .nav a[data-dp-nav="projects"] .nav-count {
  color: rgba(255, 255, 255, 0.72);
}

.thead,
.row {
  display: grid;
  grid-template-columns: 42px 2.1fr 1fr 1.05fr 2fr 92px;
  align-items: center;
  column-gap: 10px;
}

.thead-projects,
.row-projects:not(.dp-project-card) {
  grid-template-columns: 28px 2fr 1.6fr 0.9fr minmax(280px, 1.5fr);
  column-gap: 10px;
}

.dp-projects {
  --dp-proj-cols: 28px minmax(150px, 1.15fr) minmax(150px, 0.9fr) minmax(118px, 0.7fr) minmax(104px, 0.55fr) minmax(340px, 1.45fr);
  --dp-proj-gap: 14px;
  --dp-proj-pad-x: 14px;
}

.thead.thead-projects,
.row.dp-project-card,
.row-projects.dp-project-card {
  display: grid;
  grid-template-columns: var(--dp-proj-cols);
  column-gap: var(--dp-proj-gap);
  row-gap: 10px;
  align-items: center;
  padding-left: var(--dp-proj-pad-x);
  padding-right: var(--dp-proj-pad-x);
  box-sizing: border-box;
  width: 100%;
}

.row[hidden],
.row.dp-project-card[hidden],
.row-projects.dp-project-card[hidden],
.row-projects[hidden] {
  display: none !important;
}

.thead.thead-projects {
  margin: 0 0 10px;
  padding-top: 12px;
  padding-bottom: 12px;
  justify-content: start;
}

.thead.thead-projects > div,
.thead.thead-projects > span {
  text-align: left;
  justify-self: start;
}

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

.dp-projects-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dp-projects-top .dp-status-filters {
  margin: 0;
}

.dp-projects-bulk-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.dp-bulk-pill {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f2f3f5;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.dp-bulk-pill:hover {
  background: #e8eaee;
}

.dp-bulk-pill.is-danger {
  background: #fce8e6;
  color: #d64545;
}

.dp-bulk-pill.is-danger:hover:not(:disabled) {
  background: #f8d4d0;
  color: #c0392b;
}

.dp-bulk-pill:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.dp-bulk-pill.is-danger:disabled {
  background: #f7eceb;
  color: #e08a86;
}

.dp-bulk-form {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.row.dp-project-card,
.row-projects.dp-project-card {
  margin: 0;
  padding-top: 14px;
  padding-bottom: 14px;
  border-radius: 18px;
  transition: border-color .15s, box-shadow .15s;
}

.row.dp-project-card:hover,
.row-projects.dp-project-card:hover {
  border-color: #d7dbe3;
  box-shadow: 0 14px 30px -20px rgba(20, 20, 40, .45);
}

.dp-project-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dp-project-photo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #d8d4cd center/cover no-repeat;
  flex: none;
}

.dp-project-info {
  min-width: 0;
}

.dp-project-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dp-project-title-row b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.dp-project-card .dp-status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  box-sizing: border-box;
}

.dp-project-status-col {
  min-width: 0;
  justify-self: start;
  text-align: left;
}

.dp-project-status-col .dp-status {
  max-width: 100%;
  justify-self: start;
}

.dp-project-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.dp-project-srok {
  color: #5b616e;
  font-weight: 600;
}

.dp-project-srok-col {
  font-size: 13px;
  font-weight: 600;
  color: #5b616e;
  white-space: nowrap;
  justify-self: start;
  text-align: left;
}

.dp-project-link {
  color: #9aa1ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.dp-project-link-col {
  min-width: 0;
  flex-wrap: nowrap;
  justify-self: start;
  justify-content: flex-start;
}

.dp-project-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  justify-self: start;
  min-width: max-content;
}

.thead.thead-projects > div:last-child {
  text-align: left;
  justify-self: start;
}

.dp-project-side .btn.g.sm {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line2);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  flex: none;
}

.dp-project-side .btn.g.sm:hover {
  background: #f7f8fb;
  border-color: #c8ced8;
}

.dp-more {
  position: relative;
}

.dp-more-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--line2);
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.dp-more-btn:hover,
.dp-more.is-open .dp-more-btn {
  border-color: #c8ced8;
  color: var(--ink);
  background: #f7f8fb;
}

.dp-more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(20, 20, 40, .45);
}

.dp-more.is-open .dp-more-menu {
  display: grid;
}

.dp-more-form {
  margin: 0;
  display: grid;
}

.dp-more-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none !important;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

.dp-more-item:hover {
  background: #f3f4f7;
  color: var(--ink);
}

.dp-more-item.is-danger {
  color: var(--red);
}

.dp-more-item.is-danger:hover {
  background: #fdf0ee;
  color: var(--red);
}

@media (min-width: 1201px) {
  .thead-projects,
  .row-projects:not(.dp-project-card) {
    grid-template-columns: 28px 1.35fr 1.35fr 0.7fr minmax(240px, 1.5fr);
    column-gap: 12px;
  }

  .row-projects > .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-content: flex-start;
  }

  .row-projects > .actions > .dp-delete-form {
    display: inline-flex;
    margin: 0;
  }
}

.dp-cb-wrap {
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}

.dp-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #cfd4dc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .12s ease, border-color .12s ease;
}

.dp-cb:checked {
  background: var(--green);
  border-color: var(--green);
}

.dp-cb:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.dp-cb:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.dp-bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #f6f7f9;
  border: 1px solid var(--line2);
  border-radius: 12px;
}

.dp-bulk-bar[hidden] {
  display: none !important;
}

.dp-bulk-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.dp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
  padding: 12px 14px;
  background: #f6f7f9;
  border: 1px solid var(--line2);
  border-radius: 12px;
}

.dp-pagination-meta {
  font-size: 13px;
  font-weight: 600;
}

.dp-pagination-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dp-page-num {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line2);
}

.dp-page-num:hover {
  border-color: #d7dbe3;
}

.dp-page-num.is-current {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.dp-page-gap {
  color: var(--muted);
  font-weight: 700;
  padding: 0 2px;
}

.btn.g.sm.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.thead.thead-trash,
.row.row-trash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  padding: 14px 16px;
  box-sizing: border-box;
  width: 100%;
}

.thead.thead-trash {
  margin: 14px 0 10px;
}

.thead.thead-trash > div:last-child {
  text-align: right;
}

.row.row-trash .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.row.row-trash .actions .dp-delete-form {
  display: inline-flex;
  margin: 0;
}

.dp-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.dp-status-active,
.dp-status-sent {
  background: var(--green-bg);
  color: var(--green);
}

.dp-status-paused {
  background: #fff4e5;
  color: #c47d00;
}

.dp-status-expired {
  background: #fdf0ee;
  color: #c0392b;
}

.dp-status-in_progress {
  background: var(--purple-soft);
  color: var(--purple);
}

.dp-status-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px;
  background: #f2f3f5;
  border-radius: 999px;
}

.dp-filter-chip {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  box-sizing: border-box;
}

.dp-filter-chip:hover {
  color: var(--ink);
}

.dp-filter-chip.is-on {
  background: #1a1f1c;
  border-color: transparent;
  color: #fff;
}

.dp-share-box {
  padding: 14px 16px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: #f7f8fb;
}

.dp-share-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.dp-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dp-share-row code {
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 6px 10px;
}

.dp-edit-feedback {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dp-edit-feedback h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.dp-fb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-fb-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  background: #f7f7fa;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button.dp-fb-row:hover {
  background: #f0eef9;
}

.dp-fb-face {
  font-size: 22px;
  line-height: 1;
  flex: none;
}

.dp-fb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dp-fb-meta strong {
  font-size: 13.5px;
  font-weight: 700;
}

.dp-fb-meta .muted,
.dp-fb-empty {
  font-size: 12.5px;
}

.dp-home-feedback {
  margin-top: 0;
  min-height: 0;
  padding: 14px 14px 12px;
}

.dp-home-feedback .dp-home-block-head h3 {
  font-size: 15px;
}

.dp-home-feedback .dp-fb-row {
  padding: 10px 12px;
  gap: 10px;
  background: #fff;
}

.dp-home-feedback .dp-fb-row:hover,
.dp-home-feedback button.dp-fb-row:hover {
  background: #fff;
  box-shadow: 0 10px 22px -18px rgba(20, 20, 40, 0.4);
}

.dp-home-feedback .dp-fb-face {
  font-size: 18px;
}

.dp-home-feedback .dp-fb-meta strong {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-home-feedback .dp-fb-meta .muted {
  font-size: 11.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-home-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.dp-home-news {
  margin-top: 18px;
  background: #f2f3f5;
  border-radius: 22px;
  padding: 18px 18px 16px;
}

.dp-home-news .dp-home-block-head {
  margin-bottom: 12px;
}

.dp-home-news .dp-home-block-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dp-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dp-news-grid-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dp-news-card {
  background: #f2f3f5;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dp-news-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  flex: none;
  background:
    linear-gradient(135deg, #d8dbe3, #eef0f3);
  background-size: cover;
  background-position: center;
}

.dp-news-card-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.dp-news-card-tag.is-factory,
.dp-news-card-tag.is-company,
.dp-news-card-tag.is-default {
  background: #fff;
  color: var(--ink);
}

.dp-news-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}

.dp-news-card-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex: none;
  margin-bottom: 2px;
}

.dp-news-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dp-news-card-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5a5f6b;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dp-news-card-more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none !important;
  flex: none;
}

.dp-news-card-more:hover {
  color: var(--purple-deep, #111111);
}

.dp-news-card-content {
  font-size: 14.5px;
  line-height: 1.6;
  color: #3c4049;
}

.dp-news-card-content p {
  margin: 0 0 12px;
}

.dp-news-card-content p:last-child {
  margin-bottom: 0;
}

.dp-news-card-link,
.dp-news-card-link:hover,
.dp-news-card-link:focus,
.dp-news-card-link:visited {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit !important;
  text-decoration: none !important;
  min-height: 100%;
  border-bottom: none !important;
  box-shadow: none !important;
}

.dp-news-card-link .dp-news-card-date,
.dp-news-card-link .dp-news-card-title,
.dp-news-card-link .dp-news-card-excerpt,
.dp-news-card-link .dp-news-card-more,
.dp-news-card-link h3,
.dp-news-card-link p,
.dp-news-card-link span {
  text-decoration: none !important;
  border-bottom: none !important;
}

.dp-news-card-link:hover .dp-news-card-more {
  color: var(--purple-deep, #111111);
}

.dp-news-single[hidden] {
  display: none !important;
}

.dp-news-single {
  max-width: 720px;
}

.dp-news-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}

.dp-news-single-meta .dp-news-card-tag {
  position: static;
  max-width: none;
  background: var(--purple-soft);
  color: var(--purple);
}

.dp-news-single-date {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.dp-news-single-title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.dp-news-single-content {
  font-size: 15.5px;
  line-height: 1.65;
  color: #3c4049;
}

.dp-news-single-content p {
  margin: 0 0 14px;
}

.dp-news-single-content p:last-child {
  margin-bottom: 0;
}

.dp-news-page .dp-news-card,
.dp-news-page .dp-news-card-link {
  display: flex;
  flex-direction: column;
}

.dp-news-page .dp-news-card-media {
  aspect-ratio: 16 / 10;
  min-height: 0;
  height: auto;
}

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

@media (max-width: 980px) {
  .dp-news-grid,
  .dp-news-grid-home {
    grid-template-columns: 1fr;
  }
  .dp-news-single-title {
    font-size: 22px;
  }
}

.dp-home-task {
  text-decoration: none !important;
  color: inherit;
  border-style: solid;
}

.dp-home-task.tone-warn .dp-home-task-dot { background: #c47d00; opacity: 1; }
.dp-home-task.tone-danger .dp-home-task-dot { background: #c0392b; opacity: 1; }
.dp-home-task.tone-ok .dp-home-task-dot { background: var(--green); opacity: 1; }

.dp-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 20, 40, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.dp-qr-modal[hidden] {
  display: none !important;
}

.dp-qr-dialog {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 20px;
  text-align: center;
  box-shadow: 0 24px 60px -28px rgba(20, 20, 40, 0.45);
}

.dp-qr-dialog h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.dp-qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.dp-qr-dialog img {
  width: 220px;
  height: 220px;
  margin: 12px auto;
  display: block;
  border-radius: 12px;
  background: #f7f7fa;
}

.dp-qr-url {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  margin: 0 0 12px;
}

.dp-copy-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 20, 40, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.dp-copy-modal[hidden] {
  display: none !important;
}

.dp-copy-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 20px;
  text-align: left;
  box-shadow: 0 24px 60px -28px rgba(20, 20, 40, 0.45);
}

.dp-copy-dialog h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.dp-copy-dialog > .muted {
  margin: 0 0 14px;
  font-size: 13px;
}

.dp-copy-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line2);
  border-radius: 12px;
  background: #f7f8fb;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.dp-copy-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
  background: #fff;
}

.dp-copy-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.dp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 10001;
  min-width: 200px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 14px;
  background: #1f2430;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 16px 40px -18px rgba(20, 20, 40, 0.55);
  pointer-events: none;
}

.dp-toast[hidden] {
  display: none !important;
}

.dp-toast.is-in {
  animation: dp-toast-in .22s ease;
}

@keyframes dp-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dp-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.dp-check input {
  width: auto;
  margin: 0;
}

.dp-profile-form {
  max-width: 560px;
}

.dp-settings {
  max-width: 520px;
}

.dp-settings-card {
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: #fff;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 40px -34px rgba(20, 20, 40, 0.28);
}

.dp-settings-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.dp-settings-lead {
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.dp-settings-form label {
  margin-bottom: 14px;
}

.dp-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .dp-name-row {
    grid-template-columns: 1fr;
  }
}

.dp-salon-card {
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px -34px rgba(20, 20, 40, 0.28);
  overflow: hidden;
}

.dp-salon-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fbfbff 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.dp-salon-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex: none;
  overflow: hidden;
}

.dp-salon-mark-photo {
  background-color: #eceef3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 40, 0.06);
}

.dp-salon-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dp-salon-name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.dp-salon-grid {
  display: grid;
  gap: 0;
  padding: 6px 0;
}

.dp-salon-item {
  display: grid;
  gap: 4px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.dp-salon-item:last-child {
  border-bottom: none;
}

.dp-salon-item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.dp-salon-item strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.dp-salon-note {
  margin: 0;
  padding: 12px 20px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--purple-soft);
  border-top: 1px solid var(--line);
}

.dp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dp-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #54595f;
}

.dp-select {
  position: relative;
}

.dp-select.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.dp-select-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--line2);
  border-radius: 11px;
  padding: 11px 17px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.dp-select.is-placeholder .dp-select-trigger {
  color: var(--muted, #8b8798);
  font-weight: 500;
}

.dp-select-trigger svg {
  color: var(--purple);
  flex: none;
  transition: transform .15s ease;
}

.dp-select.is-open .dp-select-trigger {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.dp-select.is-open .dp-select-trigger svg {
  transform: rotate(180deg);
}

.dp-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  background: #fff;
  border: 1.5px solid var(--purple);
  border-radius: 14px;
  box-shadow:
    0 0 0 3px var(--purple-soft),
    0 18px 40px -24px rgba(20, 20, 40, 0.35);
  padding: 8px;
  max-height: 260px;
  overflow: auto;
}

.dp-select-option {
  width: 100%;
  display: block;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.dp-select-option:hover {
  background: var(--purple-soft);
  color: var(--purple);
}

.dp-select-option.is-active {
  background: var(--purple);
  color: #fff;
}

.dp-profile-form select[name="salon_id"],
.dp-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--line2);
  border-radius: 11px;
  padding: 11px 44px 11px 17px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  background-color: #fff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
  box-sizing: border-box;
}

.dp-profile-form select[name="salon_id"]:hover,
.dp-form select:hover {
  border-color: #c8c4bc;
}

.dp-profile-form select[name="salon_id"]:focus,
.dp-form select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.dp-delete-form {
  margin: 0;
  display: inline;
}

.btn-danger {
  color: #c0392b !important;
  border-color: #f0c4bf !important;
}

.btn-danger:hover {
  background: #fdf0ee;
}

.dp-notice-error {
  background: #fdf0ee;
  border-color: #f0c4bf;
  color: #c0392b;
}

.thead {
  background: #f6f7f9;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0 10px;
  font-size: 13px;
  color: #727884;
  font-weight: 600;
}

.row {
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  margin-bottom: 11px;
}

.cb {
  width: 22px;
  height: 22px;
  border: 2px solid #cfd4dc;
  border-radius: 7px;
}

.proj {
  display: flex;
  align-items: center;
  gap: 13px;
}

.th {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex: none;
  background: #d8d4cd;
}

.proj b {
  font-weight: 600;
  display: block;
}

.proj small {
  color: var(--muted);
  font-weight: 500;
}

.muted { color: #54595f; }
.tot { font-weight: 700; }

.lc {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lc code {
  font-size: 11.5px;
  color: #6a6f7a;
  background: #f1f2f5;
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.open { text-align: center; }

.dp-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.dp-form:has(.dp-spec) {
  max-width: 860px;
}

.dp-spec {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp-spec-label {
  font-size: 13px;
  font-weight: 600;
  color: #54595f;
}

.dp-spec-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.dp-spec-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-spec-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: #fafafa;
}

.dp-spec-group-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.dp-spec-group-name-input {
  font-size: 16px;
  font-weight: 800;
}

.dp-spec-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 118px 36px;
  gap: 8px;
  align-items: center;
}

.dp-spec-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-spec-group input,
.dp-spec-item input {
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--line2);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  background: #fff;
}

.dp-spec-group-name-input {
  font-weight: 800;
}

.dp-spec-group input:focus,
.dp-spec-item input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.dp-spec-del {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dp-spec-del:hover {
  background: #ececef;
  color: #111;
}

.dp-spec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .dp-spec-item {
    grid-template-columns: 1fr 1fr auto;
  }
  .dp-spec-item input[data-spec-item-title] {
    grid-column: 1 / 3;
  }
}

.dp-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #54595f;
}

.dp-price-preview {
  margin: -2px 0 8px;
  font-size: 13px;
  line-height: 1.45;
}

.dp-price-preview b {
  color: var(--ink);
  font-weight: 800;
}

.dp-form input,
.dp-form textarea {
  border: 1.5px solid var(--line2);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.dp-form input:focus,
.dp-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.dp-notice {
  padding: 12px 40px 12px 14px;
  background: var(--green-bg);
  border: 1px solid #bfe8d2;
  border-radius: 12px;
  color: var(--green);
  font-weight: 600;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  transition: opacity .25s ease, transform .25s ease;
}

.dp-notice.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}

.dp-flash-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: .7;
}

.dp-empty {
  color: var(--muted);
  padding: 24px 0;
}

.dp-login-page {
  min-height: 100vh;
  padding: 0;
  display: block;
  background: #fff;
}

body.page-login.dp-body,
body.page-template-default.dp-body:has(.dp-login-page) {
  background: #fff;
}

.dp-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  background: #fff;
}

.dp-login-form-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(28px, 6vw, 72px);
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.dp-brand-login {
  margin-bottom: 36px;
}

.dp-login-box {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.dp-login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f4f7;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 600;
}

.dp-login-box h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.dp-login-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 34ch;
}

.dp-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
}

#dp-loginform p {
  margin: 0 0 16px;
}

#dp-loginform label {
  display: block;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

#dp-loginform .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

#dp-loginform .login-remember label {
  display: inline;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
}

#dp-loginform input[type="text"],
#dp-loginform input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--line2);
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 8px;
  min-height: 48px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#dp-loginform input[type="text"]:focus,
#dp-loginform input[type="password"]:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

#dp-loginform .login-submit {
  margin: 8px 0 0;
}

#dp-loginform .button-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 52px !important;
  height: auto !important;
  background: var(--purple) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 0 18px !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  box-shadow: 0 10px 24px -12px rgba(17, 17, 17, 0.35) !important;
  text-shadow: none !important;
  box-sizing: border-box !important;
}

#dp-loginform .button-primary:hover {
  background: var(--purple-deep) !important;
}

.dp-login-visual {
  padding: 18px;
  box-sizing: border-box;
}

.dp-login-visual-inner {
  height: 100%;
  min-height: calc(100vh - 36px);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: #ececec;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  box-sizing: border-box;
}

.dp-login-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dp-login-quote {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px -28px rgba(20, 20, 40, 0.45);
}

.dp-login-quote p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.dp-login-sign {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.dp-login-sign strong {
  color: var(--ink);
  font-weight: 700;
}

.dp-login-quote-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dp-login-quote .dp-brand {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .dp-login-shell {
    grid-template-columns: 1fr;
  }

  .dp-login-visual {
    order: -1;
    padding: 16px 16px 0;
  }

  .dp-login-visual-inner {
    min-height: 240px;
    border-radius: 22px;
    padding: 16px;
  }

  .dp-login-form-col {
    padding: 28px 22px 40px;
    max-width: none;
  }

  .dp-brand-login {
    margin-bottom: 28px;
  }

  .dp-login-quote p {
    font-size: 14px;
  }
}
.dp-back {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 16px;
  color: var(--muted);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}

.dp-back:hover {
  color: var(--purple);
}

.dp-page-card {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 18px 40px -34px rgba(20, 20, 40, 0.3);
}

.dp-page-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dp-image-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp-image-label {
  font-size: 13px;
  font-weight: 600;
  color: #54595f;
}

.dp-current-image {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: #f7f8fb;
}

.dp-current-image img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #ddd;
}

.dp-current-image-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 14px;
}

.dp-file-label {
  margin: 0 !important;
}

.dp-export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 12px 14px;
  background: var(--purple-soft);
  border-radius: 12px;
}

.dp-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

a.btn {
  text-decoration: none !important;
}

/* Client project page */
.pvwrap {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 16px 40px;
}

.pv {
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -45px rgba(20, 20, 40, 0.35);
}

.pv .hero {
  height: 280px;
  background: linear-gradient(120deg, #d8d4cd, #efeeec);
  background-size: cover;
  background-position: center;
}

.pv .body { padding: 30px 34px; }

.badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12.5px;
  color: var(--green);
  background: var(--green-bg);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.price {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.pv h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.desc {
  color: #3c4049;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 60ch;
}

.salon {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 30px;
  max-width: 540px;
}

.salon .nm {
  grid-column: 1 / -1;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.salon .lbl {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.salon .val {
  font-size: 15px;
  margin-bottom: 12px;
}

.excl {
  margin-top: 22px;
  border: 2px dashed #ef473a;
  border-radius: 14px;
  padding: 18px 20px;
  color: #5a5f6b;
  font-size: 14px;
  line-height: 1.5;
}

.excl strong { color: #ef473a; }

/* —— Главная / дашборд —— */
.dp-home {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dp-home-hello {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dp-home-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.dp-home-sub {
  margin: 0;
  max-width: 52ch;
}

.dp-home-bento {
  display: none;
}

.dp-home-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 16px;
  align-items: stretch;
}

.dp-home-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.dp-home-col-news {
  background: #f2f3f5;
  border-radius: 22px;
  padding: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* Высота колонки = правый блок (топ продаж), а не сумма новостей */
  height: 0;
  min-height: 100%;
  align-self: stretch;
}

.dp-home-col-news .dp-home-block-head {
  margin-bottom: 0;
  flex: none;
}

.dp-home-col-news .dp-home-news-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  /* Тень нижней карточки рисуется в нижнем padding блока (18px) */
  overflow: visible;
  margin-top: 12px;
  padding: 0;
  box-sizing: border-box;
}

.dp-home-col-news .dp-home-news-item {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  position: relative;
  z-index: 0;
}

.dp-home-col-news .dp-home-news-item:hover {
  z-index: 3;
}

.dp-home-col-news .dp-home-news-link {
  flex: 1;
  min-height: 0;
  padding: 10px;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  overflow: hidden;
  border: none;
  transition: box-shadow .15s ease;
}

.dp-home-col-news .dp-home-news-link:hover {
  box-shadow: 0 10px 22px -18px rgba(20, 20, 40, 0.45);
  background: #fff;
}

.dp-home-col-news .dp-home-news-photo {
  width: 120px;
  height: 90px;
  max-height: 100%;
  align-self: center;
  border-radius: 12px;
  flex: none;
}

.dp-home-col-news .dp-home-news-body {
  min-height: 0;
  overflow: hidden;
}

.dp-home-col-news .dp-home-news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-home-col-news .dp-home-news-more {
  flex: none;
}

.dp-home-squares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: visible;
}

/* Пауза / Недавние — те же внутренние отступы, что у новостей */
.dp-home-squares .dp-home-tile {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  box-sizing: border-box;
}

.dp-home-squares .dp-home-tile > .dp-home-block-head,
.dp-home-squares .dp-home-tile > .dp-home-metric-top {
  flex: none;
  margin: 0;
  margin-bottom: 0;
}

/* Топ продаж — остаток высоты, те же 18px */
.dp-home-squares .dp-home-tile.dp-home-lb-tile {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.dp-home-squares .dp-home-lb-tile .dp-home-lb,
.dp-home-squares .dp-home-lb-tile .dp-lb {
  width: 100%;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dp-home-squares .dp-home-lb-tile .dp-lb {
  padding: 18px;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-head {
  margin-bottom: 12px;
  align-items: center;
  flex: none;
  gap: 12px;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-icon {
  width: 42px;
  height: 42px;
  font-size: 0;
  background: var(--purple);
  color: #fff;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-family: inherit;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-sub {
  font-size: 12px;
  color: var(--muted);
}

.dp-home-squares .dp-home-lb-tile .dp-lb-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-grid {
  flex: 1;
  gap: 8px;
  width: 100%;
  min-height: 0;
  align-items: stretch;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-photo {
  flex: 1;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
}

/* Зафиксированный светлый: background var(--purple-soft), name #0f172a, salon #111, amount #0f172a */
.dp-home-squares .dp-home-lb-tile .dp-lb-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
  min-height: 0;
  box-sizing: border-box;
  background: #212121;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-name {
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-salon {
  min-height: 0;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-home-squares .dp-home-lb-tile .dp-lb-amount {
  margin-top: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.dp-home-squares .dp-home-bars {
  flex: 1;
  min-height: 40px;
  margin-top: auto;
}

.dp-home-squares .dp-home-mini-list,
.dp-home-squares .dp-home-act-list,
.dp-home-squares .dp-home-note-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.dp-home-squares .dp-home-recent {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.dp-home-squares .dp-home-tile:has(.dp-home-recent) {
  overflow: hidden;
}

.dp-home-squares .dp-home-recent .dp-home-recent-row {
  flex: none;
  min-height: 0;
  align-self: stretch;
  padding: 10px 12px;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
}

.dp-home-squares .dp-home-recent .dp-home-recent-row:hover {
  z-index: 3;
}

.dp-home-squares .dp-home-mini-list .dp-home-mini,
.dp-home-squares .dp-home-mini-list .dp-home-empty-card {
  flex: 1 1 0;
  min-height: 0;
  box-sizing: border-box;
}

.dp-home-empty-card {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
}

.dp-home-news-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp-home-news-item {
  margin: 0;
  min-width: 0;
}

.dp-home-news-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  transition: box-shadow .15s ease;
  width: 100%;
  box-sizing: border-box;
}

.dp-home-news-link:hover {
  box-shadow: 0 12px 28px -18px rgba(20, 20, 40, .4);
}

.dp-home-news-photo {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  background: #d8dbe3 center/cover no-repeat;
  flex: none;
}

.dp-home-news-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dp-home-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dp-home-news-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.dp-home-news-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.dp-home-news-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-home-news-excerpt {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-home-news-more {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--purple);
}

.dp-home-note-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-home-note {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

.dp-home-note-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
}

.dp-home-note.is-read .dp-home-note-dot {
  background: #c5c9d1;
}

.dp-home-note strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.dp-home-note .muted {
  font-size: 12px;
  line-height: 1.4;
}

.dp-home-col-mid .dp-home-tile,
.dp-home-col-side .dp-home-tile {
  flex: 1;
}

.dp-home-pill {
  text-decoration: none !important;
}

.dp-home-tile {
  background: #f2f3f5;
  border-radius: 22px;
  padding: 18px;
  min-width: 0;
}

.dp-home-tile-metric {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dp-home-metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dp-home-metric-n {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.dp-home-metric-l {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.dp-home-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  flex: none;
  background: #fff;
  color: var(--muted);
}

.dp-home-pill.ok {
  background: var(--green-bg);
  color: var(--green);
}

.dp-home-pill.warn {
  background: #fff4e5;
  color: #c47a12;
}

.dp-home-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  margin-top: auto;
}

.dp-home-bars span {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: var(--purple);
  min-height: 18%;
}

.dp-home-bars span:nth-child(even) {
  background: repeating-linear-gradient(
    -45deg,
    var(--purple),
    var(--purple) 3px,
    #9b87f5 3px,
    #9b87f5 6px
  );
}

.dp-home-tile-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none !important;
}

.dp-home-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-home-act-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.dp-home-act {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  box-sizing: border-box;
}

.dp-home-act-share {
  background: #f7f8fb;
}

.dp-home-act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8ced8;
  flex: none;
}

.dp-home-act-dot.tone-view { background: #6b8afd; }
.dp-home-act-dot.tone-booking { background: #c47d00; }
.dp-home-act-dot.tone-feedback { background: var(--purple); }
.dp-home-act-dot.tone-share { background: #7a8494; }

.dp-home-act-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dp-home-act-body strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-home-act-body .muted {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-home-act-time {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.dp-home-squares .dp-home-act-list .dp-home-empty-card {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 72px;
}

.dp-home-mini {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  box-sizing: border-box;
}

.dp-home-mini-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dp-home-mini strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-home-mini .muted {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.dp-home-mini-photo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #d5d7dc;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  flex: none;
}

.dp-home-stats {
  display: none;
}

.dp-home-grid {
  display: none;
}

.dp-home-block {
  background: #f2f3f5;
  border: none;
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: none;
  min-height: 0;
}

.dp-home-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dp-home-block-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.dp-home-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  background: #fff;
  padding: 4px 8px;
  border-radius: 999px;
}

.dp-home-link,
.dp-home-link:hover,
.dp-home-link:focus,
.dp-home-sub a,
.dp-home-sub a:hover {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none !important;
}

.dp-home-sub a {
  font-size: inherit;
}

.dp-home-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-home-task {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: none;
  text-decoration: none !important;
  color: inherit;
}

.dp-home-task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  opacity: 1;
  margin-top: 0;
}

.dp-home-task-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 0;
  line-height: 1.3;
}

.dp-home-recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-home-recent-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: box-shadow 0.12s ease;
}

.dp-home-recent .dp-status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  box-sizing: border-box;
  white-space: nowrap;
}

.dp-home-recent-row:hover {
  background: #fff;
  box-shadow: 0 10px 22px -18px rgba(20, 20, 40, 0.45);
}

.dp-home-recent-row .th {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.dp-home-recent-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dp-home-recent-meta strong {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-home-recent-meta .muted {
  font-size: 12px;
}

@media (max-width: 1440px) {
  .dp-projects {
    --dp-proj-cols: 28px minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.55fr) minmax(0, 0.5fr) minmax(0, 1.2fr);
    --dp-proj-gap: 10px;
  }
  .dp-project-side,
  .dp-project-link-col {
    min-width: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 1200px) {
  body.dp-body {
    padding: 0;
  }
  .app {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    margin: 0;
    border-radius: 0;
    min-height: 0;
    box-shadow: none;
  }
  .dp-icon-btn.dp-nav-toggle {
    display: grid;
  }
  .dp-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    background: rgba(20, 20, 40, 0.4);
    cursor: pointer;
  }
  body.dp-nav-open .dp-nav-backdrop {
    display: block;
  }
  .side {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    z-index: 100;
    margin: 0;
    padding: 22px 16px 20px;
    background: #fff;
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 40px -28px rgba(20, 20, 40, 0.35);
    transform: translateX(-105%);
    transition: transform .2s ease;
    overflow-y: auto;
  }
  body.dp-nav-open .side {
    transform: translateX(0);
  }
  .side .logo {
    display: block;
    margin-bottom: 16px;
  }
  .side .nav {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 3px;
    width: auto;
  }
  .side .nav a {
    width: 100%;
    white-space: nowrap;
  }
  .side .dp-logout {
    display: flex !important;
    margin-top: auto;
  }
  .main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
  }
  .topbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 14px;
  }
  .topbar h1 {
    font-size: 18px;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tr {
    display: contents;
  }
  .dp-top-tools {
    margin-left: auto;
  }
  .dp-icon-btn.dp-create-icon {
    display: grid;
  }
  .tr > .btn {
    display: none;
  }
  .dp-search {
    order: 6;
    width: 100%;
    flex: 1 1 100%;
  }
  .me {
    margin-left: 0;
    padding-left: 0;
  }
  .me::before {
    display: none;
  }
  .me-name {
    display: none;
  }
  .content {
    padding: 20px 16px 28px;
  }
  .dp-tabbar {
    display: none !important;
  }
  html[data-dp-section="home"] body.dp-body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  html[data-dp-section="home"] .app {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  html[data-dp-section="home"] .main,
  html[data-dp-section="home"] .content,
  html[data-dp-section="home"] .tab-panel[data-dp-panel="home"],
  html[data-dp-section="home"] .dp-home {
    height: auto;
    overflow: visible;
    display: block;
  }
  html[data-dp-section="home"] .tab-panel[data-dp-panel="home"].on {
    display: block;
  }
  html[data-dp-section="home"] .dp-home-cols {
    height: auto;
  }
  .thead, .row, .thead-projects, .row-projects {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .row.dp-project-card,
  .row-projects.dp-project-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px 14px;
  }
  .dp-project-link-col,
  .dp-project-status-col,
  .dp-project-srok-col,
  .dp-project-side {
    grid-column: 2;
    justify-content: flex-start;
  }
  .thead, .thead-projects { display: none; }
  .thead.thead-trash {
    display: none;
  }
  .row-projects, .row-trash {
    padding: 14px;
    border: 1px solid var(--line2);
    border-radius: 14px;
    margin-bottom: 10px;
  }
  .row.row-trash {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .row.row-trash .actions {
    justify-content: flex-start;
  }
  .row-projects.dp-project-card {
    margin-bottom: 0;
    border-radius: 18px;
  }
  .row-projects .dp-cb-wrap {
    justify-self: start;
  }
  .row-projects > .actions,
  .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }
  .row-projects > .actions > .dp-delete-form,
  .actions > .dp-delete-form {
    display: inline-flex;
    margin: 0;
  }
  .row-projects > .actions .btn,
  .actions .btn {
    flex: 0 0 auto;
  }
  .lc {
    flex-wrap: wrap;
  }
  .salon { grid-template-columns: 1fr; }
  .dp-home-cols { grid-template-columns: 1fr; }
  .dp-home-col-news {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .dp-home-squares {
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 12px;
  }
  .dp-home-metric-n {
    font-size: 28px;
  }
  .dp-home-squares .dp-home-tile {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .dp-home-squares .dp-home-tile.dp-home-lb-tile {
    aspect-ratio: auto;
    height: auto;
    grid-column: 1 / -1;
  }
  .dp-home-squares .dp-home-lb-tile .dp-lb-photo {
    flex: none;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }
  .dp-home-col-news .dp-home-news-item {
    flex: none;
    height: auto;
  }
  .dp-home-col-news .dp-home-news-link {
    overflow: visible;
    height: auto;
    min-height: 0;
  }
  .dp-home-bottom { grid-template-columns: 1fr; }
  .dp-home-news-link { grid-template-columns: 100px minmax(0, 1fr); }
  .dp-home-news-photo,
  .dp-home-col-news .dp-home-news-photo {
    width: 100px;
    height: 75px;
  }
  .dp-page-card {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }
  .topbar h1 {
    font-size: 17px;
  }
  .dp-icon-btn {
    width: 38px;
    height: 38px;
  }
  .av.lg {
    width: 36px;
    height: 36px;
  }
  .content {
    padding: 14px 12px 24px;
  }
  .dp-home-squares {
    grid-template-columns: 1fr;
  }
  .dp-home-squares .dp-home-tile.dp-home-lb-tile {
    grid-column: auto;
  }
  .dp-home-news-link,
  .dp-home-col-news .dp-home-news-link {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 10px;
    gap: 10px;
  }
  .dp-home-news-photo,
  .dp-home-col-news .dp-home-news-photo {
    width: 100%;
    height: 160px;
    max-height: none;
  }
  .dp-home-news-title {
    -webkit-line-clamp: 3;
    white-space: normal;
  }
  .dp-home-recent-row,
  .dp-home-squares .dp-home-recent .dp-home-recent-row {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }
  .dp-home-recent-row .dp-status,
  .dp-home-recent .dp-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
  .dp-home-recent-meta strong {
    white-space: normal;
  }
  .dp-home-act {
    grid-template-columns: 8px minmax(0, 1fr);
  }
  .dp-home-act-time {
    grid-column: 2;
  }
  .dp-home-act-body strong,
  .dp-home-act-body .muted {
    white-space: normal;
  }
  .dp-home-lb .dp-lb-head {
    flex-wrap: wrap;
  }
}

.dp-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: stretch;
  gap: 0;
}
.dp-tabbar a,
.dp-tabbar button {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px 4px;
  border: 0;
  background: transparent;
  color: #7a8090;
  text-decoration: none !important;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.dp-tabbar a svg,
.dp-tabbar button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dp-tabbar button svg {
  fill: currentColor;
  stroke: none;
}
.dp-tabbar a.active,
.dp-tabbar button.active {
  color: var(--ink);
}
.dp-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.dp-more-sheet[hidden] {
  display: none !important;
}
.dp-more-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 20, 40, 0.4);
  cursor: pointer;
}
.dp-more-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dp-more-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d8dbe3;
  margin: 4px auto 10px;
}
.dp-more-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 4px;
  color: var(--ink);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.dp-more-panel a.dp-logout {
  border-bottom: 0;
  color: #6b7280;
  margin-top: 6px;
}
.dp-salon-status {
  margin: -8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.dp-salon-status.is-error {
  color: var(--red);
}

@media (max-width: 1200px) {
  .dp-tabbar {
    display: none !important;
  }
  html:not([data-dp-section="projects"]):not([data-dp-section="trash"]) .dp-search {
    display: none;
  }
}
