/* Детство.Дело — кабинет мастер-классов.
   Load after the existing style, agenda, photo, review and quick-start sheets.
   Every page rule is scoped to body.dd-mc-page. */

@font-face {
  font-family: DeloNunito;
  src: url('/russia-portal/assets/body.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: DeloNunito;
  src: url('/russia-portal/assets/body-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

body.dd-mc-page {
  --mc-ink: #172541;
  --mc-muted: #52627c;
  --mc-blue: #3154e8;
  --mc-blue-soft: #eef2ff;
  --mc-purple: #8155bb;
  --mc-purple-ink: #68419b;
  --mc-purple-soft: #f5effc;
  --mc-orange: #ff9a35;
  --mc-orange-soft: #fff3e2;
  --mc-line: #dce3f0;
  --mc-background: #f7f8fc;
  --green: var(--mc-blue);
  --dark: var(--mc-ink);
  --pale: var(--mc-blue-soft);
  --line: var(--mc-line);
  --muted: var(--mc-muted);
  --gold: var(--mc-orange);
  --red: #b74438;
  margin: 0;
  min-height: 100vh;
  background: var(--mc-background);
  color: var(--mc-ink);
  font: 400 16px/1.55 DeloNunito, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.dd-mc-page *,
body.dd-mc-page *::before,
body.dd-mc-page *::after {
  box-sizing: border-box;
}

body.dd-mc-page [hidden],
body.dd-mc-page .hidden {
  display: none !important;
}

body.dd-mc-page :is(button, input, select, textarea) {
  font: inherit;
  touch-action: manipulation;
}

body.dd-mc-page :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #ffaf55;
  outline-offset: 3px;
}

body.dd-mc-page a {
  color: #2646ba;
  text-underline-offset: 4px;
}

body.dd-mc-page :is(h1, h2, h3) {
  color: var(--mc-ink);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.dd-mc-page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.1vw, 40px);
  letter-spacing: -.8px;
}

body.dd-mc-page h2 {
  font-size: 25px;
  letter-spacing: -.4px;
}

body.dd-mc-page h3 {
  font-size: 20px;
  letter-spacing: -.2px;
}

body.dd-mc-page p {
  line-height: 1.6;
}

body.dd-mc-page .eyebrow {
  margin: 0 0 10px;
  color: #3154c5;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 1.1px;
}

body.dd-mc-page .muted,
body.dd-mc-page small {
  color: var(--mc-muted);
}

body.dd-mc-page .small {
  font-size: 14px;
  line-height: 1.6;
}

body.dd-mc-page .app-shell {
  width: 100%;
  min-width: 0;
}

body.dd-mc-page main.container {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0 auto;
  padding: 28px 28px 48px;
}

/* Brand and navigation stay at the top, in normal document flow. */
body.dd-mc-page .dd-mc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  height: auto;
  min-height: 88px;
  padding: 20px max(28px, calc((100% - 1224px) / 2));
  border-bottom: 1px solid var(--mc-line);
  background: #fff;
}

body.dd-mc-page .dd-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: var(--mc-blue);
  text-decoration: none;
  line-height: 1.3;
}

body.dd-mc-page .dd-brand-name,
body.dd-mc-page .dd-brand-title,
body.dd-mc-page .dd-brand > strong {
  color: var(--mc-blue);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.8px;
  white-space: nowrap;
}

body.dd-mc-page .dd-brand-name > span,
body.dd-mc-page .dd-brand-title > span,
body.dd-mc-page .dd-brand > strong > span {
  color: var(--mc-orange);
  padding: 0 2px;
}

body.dd-mc-page .dd-brand-subtitle,
body.dd-mc-page .dd-brand > small {
  color: var(--mc-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1px;
}

body.dd-mc-page .dd-brand img {
  display: block;
  max-width: 200px;
  height: auto;
}

body.dd-mc-page .dd-mc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 0 auto;
}

body.dd-mc-page .dd-mc-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--mc-line);
  border-radius: 10px;
  background: #fff;
  color: #354b7a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

body.dd-mc-page .dd-mc-nav a:hover {
  background: var(--mc-blue-soft);
  border-color: #b7c7f5;
}

body.dd-mc-page:has(.dd-mc-nav) #rd-navigation {
  display: none !important;
}

body.dd-mc-page .header-actions {
  gap: 8px;
  min-width: 0;
}

body.dd-mc-page .header-actions .chip {
  max-width: 240px;
  overflow-wrap: anywhere;
  border-color: var(--mc-line);
  color: var(--mc-muted);
}

/* Shared controls, fields and focus states. */
body.dd-mc-page button,
body.dd-mc-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #c4d0e8;
  border-radius: 12px;
  background: #fff;
  color: var(--mc-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

body.dd-mc-page button:hover:not(:disabled),
body.dd-mc-page .button:hover {
  transform: none;
  background: #edf2ff;
  border-color: #a1b5ef;
  text-decoration: none;
}

body.dd-mc-page button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

body.dd-mc-page .primary,
body.dd-mc-page .button.primary {
  background: var(--mc-blue);
  border-color: var(--mc-blue);
  color: #fff;
}

body.dd-mc-page .primary:hover:not(:disabled),
body.dd-mc-page .button.primary:hover {
  background: #2446cf;
  border-color: #2446cf;
  color: #fff;
}

body.dd-mc-page .secondary,
body.dd-mc-page .button.secondary {
  background: var(--mc-blue-soft);
  border-color: #c7d3f6;
  color: #2949b7;
}

body.dd-mc-page .ghost {
  background: transparent;
  border-color: transparent;
  color: var(--mc-muted);
  font-size: 14px;
}

body.dd-mc-page label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #465772;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

body.dd-mc-page input:not([type=checkbox]):not([type=hidden]),
body.dd-mc-page select,
body.dd-mc-page textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bdcae2;
  border-radius: 11px;
  background: #fff;
  color: var(--mc-ink);
  font-size: 16px;
  font-weight: 400;
}

body.dd-mc-page input:focus,
body.dd-mc-page select:focus,
body.dd-mc-page textarea:focus {
  border-color: #8ea6f2;
  box-shadow: 0 0 0 3px #3154e811;
}

body.dd-mc-page textarea {
  min-height: 110px;
  resize: vertical;
}

body.dd-mc-page input[readonly] {
  background: #f5f7fc;
  color: #4d6183;
}

body.dd-mc-page label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

body.dd-mc-page input[type=checkbox] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--mc-blue);
}

body.dd-mc-page .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.dd-mc-page .panel {
  min-width: 0;
  border: 1px solid var(--mc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 22px #17254106;
}

/* Compact workspace heading and counters. */
body.dd-mc-page .heading {
  align-items: center;
  gap: 24px;
  margin: 0 0 22px;
  padding: 26px;
  border: 1px solid var(--mc-line);
  border-left: 4px solid var(--mc-blue);
  border-radius: 20px;
  background: linear-gradient(112deg, #eef2ff, #fff 78%);
}

body.dd-mc-page .heading > div {
  min-width: 0;
}

body.dd-mc-page .heading .muted {
  max-width: 680px;
  margin: 10px 0 0;
  font-size: 15px;
}

body.dd-mc-page .dd-company-name {
  margin: 0;
  color: #3c507a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.dd-mc-page .heading-actions {
  flex: 0 1 320px;
  gap: 9px;
  min-width: 0;
}

body.dd-mc-page .heading-actions .button {
  font-size: 14px;
}

body.dd-mc-page .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

body.dd-mc-page .stat {
  --stat-color: var(--mc-blue);
  min-width: 0;
  padding: 16px 18px;
  gap: 8px;
  border-top: 3px solid var(--stat-color);
  border-radius: 15px;
  box-shadow: none;
}

body.dd-mc-page .stat span {
  color: var(--mc-muted);
  font-size: 13px;
  line-height: 1.4;
}

body.dd-mc-page .stat strong {
  color: var(--mc-ink);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}

body.dd-mc-page .stat--places { --stat-color: var(--mc-purple); }
body.dd-mc-page .stat--free { --stat-color: #2c8971; }
body.dd-mc-page .stat--leads { --stat-color: #b7c3d9; }
body.dd-mc-page .stat--leads.has-attention {
  --stat-color: var(--mc-orange);
  background: var(--mc-orange-soft);
}

/* Main sections and the distinct public / client / regular routes. */
body.dd-mc-page .tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  overflow: visible;
}

body.dd-mc-page .tabs .tab,
body.dd-mc-page .tabs [role=tab] {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d0d9ed;
  border-radius: 12px;
  background: #fff;
  color: #4b5e80;
  font-size: 16px;
  white-space: normal;
}

body.dd-mc-page .tabs .tab.active,
body.dd-mc-page .tabs [role=tab][aria-selected=true] {
  background: var(--mc-ink);
  border-color: var(--mc-ink);
  color: #fff;
}

body.dd-mc-page .dd-events-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}

body.dd-mc-page .dd-audience-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

body.dd-mc-page .dd-audience-switch button {
  background: #fff;
  border-color: var(--mc-line);
  color: #4b5e80;
}

body.dd-mc-page .dd-audience-switch button.active,
body.dd-mc-page .dd-audience-switch button[aria-pressed=true],
body.dd-mc-page .dd-audience-switch button[aria-selected=true] {
  border-color: #adc0fc;
  background: var(--mc-blue-soft);
  color: #2446b8;
}

body.dd-mc-page .dd-audience-switch :is([data-audience-view=client], [data-audience-view=clients]).active,
body.dd-mc-page .dd-audience-switch :is([data-audience-view=client], [data-audience-view=clients])[aria-pressed=true],
body.dd-mc-page .dd-audience-switch :is([data-audience-view=client], [data-audience-view=clients])[aria-selected=true] {
  border-color: #d2bde9;
  background: var(--mc-purple-soft);
  color: var(--mc-purple-ink);
}

body.dd-mc-page #regularScheduleLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  margin-left: auto;
  padding: 11px 16px;
  border: 1px solid #efd1a8;
  border-radius: 12px;
  background: var(--mc-orange-soft);
  color: #825315;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.dd-mc-page #regularScheduleLink:hover {
  background: #ffead0;
  border-color: #dfb271;
}

body.dd-mc-page .audience-section {
  --mc-section-color: var(--mc-blue);
  --mc-section-ink: #3154b5;
  --mc-section-soft: var(--mc-blue-soft);
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--mc-line);
  border-top: 4px solid var(--mc-section-color);
  border-radius: 19px;
  background: #fff;
}

body.dd-mc-page .client-audience {
  --mc-section-color: var(--mc-purple);
  --mc-section-ink: var(--mc-purple-ink);
  --mc-section-soft: var(--mc-purple-soft);
  border-color: #e1d7ed;
  border-top-color: var(--mc-purple);
  background: #fdfbff;
}

body.dd-mc-page .audience-section .eyebrow {
  color: var(--mc-section-ink);
}

body.dd-mc-page .audience-section > p {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--mc-muted);
  font-size: 15px;
}

body.dd-mc-page .section-head {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 20px;
}

body.dd-mc-page .section-head > div {
  min-width: 0;
}

body.dd-mc-page .section-head h2 {
  margin: 0;
}

body.dd-mc-page .inline-actions {
  gap: 8px;
  min-width: 0;
}

body.dd-mc-page .section-head .inline-actions {
  margin-top: 0;
}

body.dd-mc-page .section-head .inline-actions > :is(button, a) {
  font-size: 14px;
}

body.dd-mc-page .section-head select {
  min-width: 0;
  width: auto;
  max-width: 100%;
}

body.dd-mc-page .dd-publish-options {
  margin: 0 0 22px;
  border: 1px solid #d3ddf3;
  border-radius: 13px;
  background: #f7f9ff;
}

body.dd-mc-page .dd-publish-options > summary {
  min-height: 48px;
  padding: 13px 17px;
  color: #3956a5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

body.dd-mc-page .dd-publish-options > summary::marker {
  color: var(--mc-blue);
}

body.dd-mc-page .dd-publish-options .agenda-permission {
  margin: 0;
  padding: 4px 18px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.dd-mc-page .agenda-permission .inline-actions > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}

body.dd-mc-page .client-link-box {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px dashed #cbb8df;
  border-radius: 13px;
  background: #fff;
}

body.dd-mc-page .client-link-box > button {
  justify-self: start;
  background: var(--mc-purple-soft);
  border-color: #d7c6e9;
  color: var(--mc-purple-ink);
  font-size: 15px;
}

body.dd-mc-page .client-link-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* Event cards keep dates, capacity and actions together. */
body.dd-mc-page .event-list {
  gap: 16px;
}

body.dd-mc-page .event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  align-items: start;
  gap: 22px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--mc-line);
  border-left: 4px solid var(--mc-section-color, var(--mc-blue));
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 12px #17254104;
}

body.dd-mc-page .event-card.has-photo {
  grid-template-columns: 120px minmax(0, 1fr) minmax(230px, 260px);
}

body.dd-mc-page .event-card .event-photo {
  display: block;
  width: 120px;
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: #f2f5fb;
}

body.dd-mc-page .event-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.dd-mc-page .event-date {
  margin: 0 0 9px;
  color: var(--mc-section-ink, #3154b5);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

body.dd-mc-page .event-main h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

body.dd-mc-page .event-sub {
  margin: 10px 0 0;
  color: var(--mc-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.dd-mc-page .event-side {
  min-width: 0;
  gap: 9px;
}

body.dd-mc-page .event-side .count {
  color: var(--mc-ink);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.dd-mc-page .event-side > small {
  font-size: 13px;
}

body.dd-mc-page .event-side .inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 5px;
}

body.dd-mc-page .event-side button {
  min-height: 44px;
  padding: 10px;
  font-size: 14px;
}

body.dd-mc-page .event-side .inline-actions .primary {
  grid-column: 1 / -1;
}

body.dd-mc-page .badge {
  display: inline-flex;
  align-items: center;
  margin: 2px 0;
  padding: 5px 9px;
  border: 1px solid #b8dcc8;
  border-radius: 7px;
  background: #eaf6ef;
  color: #245d43;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

body.dd-mc-page .badge.closed {
  border-color: #e9cfaa;
  background: #fff2df;
  color: #825315;
}

body.dd-mc-page .badge.draft {
  border-color: #d6deea;
  background: #f0f3f8;
  color: #536580;
}

body.dd-mc-page .progress {
  width: 100%;
  height: 8px;
  accent-color: var(--mc-section-color, var(--mc-blue));
}

body.dd-mc-page .progress::-webkit-progress-bar {
  background: #e8edf7;
}

body.dd-mc-page .progress::-webkit-progress-value {
  background: var(--mc-section-color, var(--mc-blue));
}

body.dd-mc-page .progress::-moz-progress-bar {
  background: var(--mc-section-color, var(--mc-blue));
}

body.dd-mc-page .bar {
  background: #e8edf7;
}

body.dd-mc-page .bar > i {
  background: var(--mc-section-color, var(--mc-blue));
}

body.dd-mc-page .bar.full > i {
  background: #d68a2a;
}

body.dd-mc-page .empty {
  padding: 26px 22px;
  border-style: dashed;
  background: #f7f9fe;
  color: var(--mc-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Native dialogs are non-modal, inline editors controlled by [open]. */
body.dd-mc-page :is(#eventDialog, #bulkDialog, #bookingDialog).inline-editor {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  max-height: none;
  margin: 22px 0;
  padding: 26px;
  border: 1px solid #c7d5f4;
  border-top: 4px solid var(--mc-blue);
  border-radius: 18px;
  background: #fff;
  color: var(--mc-ink);
  box-shadow: 0 5px 22px #17254106;
  overflow: visible;
  scroll-margin-top: 20px;
}

body.dd-mc-page dialog.inline-editor[open] {
  display: block;
}

body.dd-mc-page dialog.inline-editor:not([open]) {
  display: none !important;
}

body.dd-mc-page dialog.inline-editor::backdrop {
  display: none;
  background: transparent;
  backdrop-filter: none;
}

body.dd-mc-page .inline-editor form {
  display: grid;
  gap: 19px;
  min-width: 0;
  margin: 0;
}

body.dd-mc-page #eventDialog.inline-editor:has(#eventAudience option[value=clients]:checked) {
  border-top-color: var(--mc-purple);
}

body.dd-mc-page #eventAudienceHint {
  margin: -5px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #adc0ef;
  border-radius: 8px;
  background: #f2f5fd;
  color: #4b6081;
  font-size: 14px;
}

body.dd-mc-page #eventForm:has(#eventAudience option[value=clients]:checked) #eventAudienceHint {
  border-left-color: #b69ad4;
  background: var(--mc-purple-soft);
  color: var(--mc-purple-ink);
}

body.dd-mc-page #manualBookingHint {
  margin: 0 0 16px;
  padding: 13px 16px;
  border-left: 3px solid #dc9c4d;
  border-radius: 8px;
  background: #fff5e8;
  color: #795015;
  font-size: 14px;
}

body.dd-mc-page #eventEditorMount,
body.dd-mc-page #bookingEditorMount {
  min-width: 0;
}

body.dd-mc-page .modal-head {
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 3px;
}

body.dd-mc-page .modal-head h2 {
  margin: 0;
  font-size: 25px;
}

body.dd-mc-page .modal-head .iconbtn {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 3px;
  border: 0;
  background: #edf2fb;
  color: #486084;
  font-size: 27px;
  line-height: 1;
}

body.dd-mc-page .inline-editor .inline-actions.end {
  justify-content: flex-start;
  gap: 10px;
  margin: 5px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--mc-line);
}

body.dd-mc-page .event-photo-editor {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 19px;
  border: 1px solid #d8e0f1;
  border-radius: 13px;
  background: #f6f8fd;
}

body.dd-mc-page .event-photo-editor input[type=file] {
  width: 100%;
  min-width: 0;
  padding: 8px;
  font-size: 16px;
  overflow: hidden;
}

body.dd-mc-page input[type=file]::file-selector-button {
  min-height: 44px;
  max-width: 100%;
  margin-right: 10px;
  padding: 9px 12px;
  border: 1px solid #c7d3f6;
  border-radius: 8px;
  background: var(--mc-blue-soft);
  color: #2949b7;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

body.dd-mc-page .event-photo-editor p {
  margin: 0;
  color: var(--mc-muted);
  font-size: 13px;
  line-height: 1.6;
}

body.dd-mc-page .event-photo-preview {
  max-width: 100%;
  max-height: 260px;
  margin: 6px auto;
  object-fit: contain;
  background: #edf1f9;
}

body.dd-mc-page .event-photo-editor > button {
  justify-self: start;
}

body.dd-mc-page .event-photo-editor .photo-error,
body.dd-mc-page .photo-error {
  color: #a33e35;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Participants and leads: a table on desktop, labelled cards on phones. */
body.dd-mc-page .list-scroll {
  min-width: 0;
  padding: 0 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

body.dd-mc-page .table {
  width: 100%;
  min-width: 650px;
  color: var(--mc-ink);
  font-size: 14px;
  line-height: 1.5;
}

body.dd-mc-page .table th {
  color: #526580;
  font-size: 12px;
  font-weight: 700;
}

body.dd-mc-page .table :is(th, td) {
  padding: 16px 12px;
  border-color: var(--mc-line);
  overflow-wrap: anywhere;
}

body.dd-mc-page .table td small {
  color: var(--mc-muted);
  font-size: 12px;
  line-height: 1.6;
}

body.dd-mc-page .table a {
  white-space: normal;
  overflow-wrap: anywhere;
}

body.dd-mc-page .table td select {
  min-width: 140px;
  min-height: 46px;
  font-size: 16px;
}

body.dd-mc-page .small-action {
  min-height: 44px;
  margin-top: 8px;
  padding: 9px 12px;
  border-color: #e5c4bd;
  background: #fff;
  color: #974538;
  font-size: 13px;
}

body.dd-mc-page #bookingsTab .section-head {
  align-items: flex-start;
}

body.dd-mc-page #bookingsTab .section-head h2 {
  flex-basis: 100%;
}

body.dd-mc-page #bookingsTab .section-head .inline-actions {
  width: 100%;
}

body.dd-mc-page #bookingsFilter {
  flex: 1 1 260px;
}

body.dd-mc-page #exportFormat {
  flex: 0 1 150px;
}

/* Settings and onboarding stay available without dominating the workspace. */
body.dd-mc-page .dd-settings-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 22px;
}

body.dd-mc-page .dd-settings-links > :is(a, article, section, div) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--mc-line);
  border-top: 3px solid var(--mc-blue);
  border-radius: 16px;
  background: #fff;
  color: var(--mc-ink);
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.dd-mc-page .dd-settings-links > :nth-child(2) {
  border-top-color: var(--mc-purple);
}

body.dd-mc-page .dd-settings-links > :nth-child(3) {
  border-top-color: var(--mc-orange);
}

body.dd-mc-page .dd-settings-links :is(h3, strong) {
  margin: 0;
  color: var(--mc-ink);
  font-size: 20px;
  font-weight: 700;
}

body.dd-mc-page .dd-settings-links :is(p, small) {
  margin: 0;
  color: var(--mc-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

body.dd-mc-page .dd-settings-links .button {
  margin-top: auto;
  font-size: 14px;
}

body.dd-mc-page .settings-panel {
  max-width: none;
  margin: 0 0 22px;
  padding: 26px;
}

body.dd-mc-page .settings-panel form {
  max-width: 820px;
  gap: 18px;
}

body.dd-mc-page .settings-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

body.dd-mc-page .settings-panel p {
  max-width: 860px;
}

body.dd-mc-page .soft-divider {
  margin: 26px 0;
  border-top-color: var(--mc-line);
}

body.dd-mc-page .quick-start {
  margin: 28px 0 0;
  border-color: #d7dfef;
  background: #fff;
}

body.dd-mc-page .quick-start > summary {
  min-height: 54px;
  padding: 20px 22px;
  color: #304b85;
}

body.dd-mc-page .quick-start > summary strong {
  font-size: 17px;
  line-height: 1.4;
}

body.dd-mc-page .quick-start-caption {
  color: var(--mc-muted);
  font-size: 13px;
  line-height: 1.5;
}

body.dd-mc-page .quick-start-toggle {
  color: #3154b5;
  font-size: 13px;
}

body.dd-mc-page .quick-start-grid {
  gap: 24px;
  padding: 0 22px 22px;
}

body.dd-mc-page .quick-start h2 {
  color: var(--mc-ink);
  font-size: 22px;
}

body.dd-mc-page .quick-start li {
  font-size: 15px;
  line-height: 1.7;
}

body.dd-mc-page .quick-start li::marker {
  color: var(--mc-blue);
}

body.dd-mc-page .quick-start a,
body.dd-mc-page .quick-start .guide-text-action {
  color: #2646ba;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.dd-mc-page .quick-start .guide-text-action {
  display: inline-flex;
  min-height: 44px;
  padding: 0 3px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: left;
  vertical-align: baseline;
}

body.dd-mc-page .quick-start-extra {
  border-color: var(--mc-line);
}

body.dd-mc-page .quick-start-help {
  padding: 17px 22px;
  background: #f0f4ff;
  color: #4b6081;
  font-size: 14px;
}

/* Messages are ordinary page content; they never cover a form or keyboard. */
body.dd-mc-page .toast {
  position: static;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
  padding: 15px 18px;
  border: 1px solid #c6d4f6;
  border-left: 4px solid var(--mc-blue);
  border-radius: 12px;
  background: #eef2ff;
  color: #35518d;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.dd-mc-page .toast.error,
body.dd-mc-page .notice.danger {
  border-color: #edb9b3;
  border-left-color: #bd493c;
  background: #fff1ef;
  color: #89352b;
}

body.dd-mc-page .notice {
  padding: 15px 18px;
  border: 1px solid #efd0a5;
  border-left: 4px solid #dc8a30;
  border-radius: 12px;
  background: #fff4e6;
  color: #795015;
  font-size: 14px;
  line-height: 1.6;
}

body.dd-mc-page .secret-text {
  background: #f1f5fc;
  color: #40587d;
  font-size: 14px;
}

body.dd-mc-page #kd-review-panel {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid #cbd7f2;
  border-radius: 16px;
  background: #f0f4ff;
  color: var(--mc-ink);
  font: inherit;
}

body.dd-mc-page #kd-review-panel.kd-has-applications {
  border-color: #edcba0;
  background: #fff5e8;
}

body.dd-mc-page #kd-review-panel a {
  color: #2646ba;
}

body.dd-mc-page #kd-review-panel .kd-review-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mc-blue);
  color: #fff;
}

body.dd-mc-page #kd-review-panel .kd-review-count {
  background: var(--mc-blue);
  color: #fff;
}

body.dd-mc-page .login-card,
body.dd-mc-page .setup-panel {
  max-width: 560px;
  margin: 34px auto;
  padding: 30px;
}

body.dd-mc-page .login-card p:has(> .button) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.dd-mc-page .dd-login-actions {
  display: grid;
  gap: 10px;
  margin: 24px 0 18px;
}

body.dd-mc-page .dd-login-actions > :is(a, button) {
  width: 100%;
}

body.dd-mc-page .dd-login-alternatives {
  margin: 18px 0;
  padding: 0 16px;
  border: 1px solid var(--mc-line);
  border-radius: 12px;
  background: #f8faff;
}

body.dd-mc-page .dd-login-alternatives > summary {
  min-height: 48px;
  padding: 13px 0;
  color: #3956a5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.dd-mc-page .dd-login-alternatives form {
  margin: 18px 0;
}

body.dd-mc-page .dd-login-create {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--mc-line);
}

/* Footer rules account for platform CSS injected after this stylesheet. */
body.dd-mc-page footer.kd-site-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 26px 24px;
  border: 0 !important;
  background: #172541 !important;
  color: #d7e2f6;
  font-size: 14px;
}

body.dd-mc-page footer.kd-site-legal-footer a[href] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: #d7e2f6 !important;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

body.dd-mc-page footer.kd-site-legal-footer a[href]:hover {
  color: #fff !important;
}

body.dd-mc-page footer.kd-site-legal-footer a[href]:focus-visible {
  color: #fff !important;
  outline: 3px solid #ffaf55 !important;
  outline-offset: 3px;
  border-radius: 4px;
}

body.dd-mc-page #rd-cookie-footer,
body.dd-mc-page .rd-cookie-footer {
  position: static !important;
  margin: 0 !important;
  padding: 14px 24px 24px !important;
  border: 0 !important;
  background: #172541 !important;
  color: #d7e2f6 !important;
  font-size: 14px !important;
}

body.dd-mc-page #rd-cookie-footer a,
body.dd-mc-page .rd-cookie-footer a {
  color: #d7e2f6 !important;
  font-size: 14px !important;
  text-underline-offset: 4px;
}

body.dd-mc-page #rd-cookie-footer button,
body.dd-mc-page .rd-cookie-footer button {
  min-height: 44px;
  padding: 10px 14px !important;
  border: 1px solid #526587 !important;
  border-radius: 10px !important;
  background: #273a5b !important;
  color: #fff !important;
  font-size: 14px !important;
}

@media (max-width: 1050px) {
  body.dd-mc-page .dd-mc-header {
    gap: 14px;
  }

  body.dd-mc-page .event-card.has-photo {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  body.dd-mc-page .event-card .event-photo {
    width: 100px;
    height: 100px;
  }

  body.dd-mc-page .event-card.has-photo .event-side {
    grid-column: 2;
  }

  body.dd-mc-page .dd-settings-links {
    gap: 12px;
  }

  body.dd-mc-page .dd-settings-links > :is(a, article, section, div) {
    padding: 18px;
  }
}

@media (max-width: 850px) {
  body.dd-mc-page main.container {
    padding: 22px 20px 40px;
  }

  body.dd-mc-page .dd-mc-header {
    padding: 18px 20px;
  }

  body.dd-mc-page .heading {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 23px;
  }

  body.dd-mc-page .heading-actions {
    flex-basis: auto;
    justify-content: flex-start;
  }

  body.dd-mc-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dd-mc-page .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  body.dd-mc-page .section-head .inline-actions {
    align-items: stretch;
  }

  body.dd-mc-page .dd-audience-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dd-mc-page .dd-events-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.dd-mc-page #regularScheduleLink {
    grid-column: 1 / -1;
    margin: 0;
  }

  body.dd-mc-page .dd-settings-links {
    grid-template-columns: 1fr;
  }

  body.dd-mc-page .dd-settings-links > :is(a, article, section, div) {
    padding: 22px;
  }

  body.dd-mc-page #bookingsTab .section-head .inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.dd-mc-page #bookingsFilter {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.dd-mc-page #exportFormat {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.dd-mc-page .event-card,
  body.dd-mc-page .event-card.has-photo {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body.dd-mc-page .event-card.has-photo .event-side {
    grid-column: 1;
  }

  body.dd-mc-page .event-card .event-photo {
    width: 100%;
    height: auto;
    max-height: 220px;
  }

  body.dd-mc-page .event-side {
    padding-top: 15px;
    border-top: 1px solid var(--mc-line);
  }

  body.dd-mc-page .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dd-mc-page .list-scroll {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  body.dd-mc-page .table {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  body.dd-mc-page .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.dd-mc-page .table tbody {
    display: grid;
    gap: 16px;
    min-width: 0;
  }

  body.dd-mc-page .table tbody tr {
    display: block;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--mc-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 12px #17254104;
  }

  body.dd-mc-page .table tbody td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid #e7ecf5;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  body.dd-mc-page .table tbody td:first-child {
    padding-top: 0;
  }

  body.dd-mc-page .table tbody td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.dd-mc-page .table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin: 0 0 5px;
    color: #677995;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
  }

  body.dd-mc-page .table tbody td[data-label='']::before {
    display: none;
  }

  body.dd-mc-page .table tbody td:first-child > strong {
    color: var(--mc-ink);
    font-size: 19px;
    line-height: 1.4;
  }

  body.dd-mc-page .table td small {
    margin-top: 6px;
    font-size: 13px;
  }

  body.dd-mc-page .table td select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  body.dd-mc-page .table td :is(button, .button) {
    min-height: 44px;
  }

  body.dd-mc-page .quick-start-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dd-mc-page .quick-start-grid > section + section {
    border-color: var(--mc-line);
  }
}

@media (max-width: 600px) {
  body.dd-mc-page main.container {
    padding: 18px 16px 34px;
  }

  body.dd-mc-page .dd-mc-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 8px;
    padding: 16px;
  }

  body.dd-mc-page .dd-brand-name,
  body.dd-mc-page .dd-brand-title,
  body.dd-mc-page .dd-brand > strong {
    font-size: 26px;
  }

  body.dd-mc-page .dd-brand-subtitle,
  body.dd-mc-page .dd-brand > small {
    font-size: 10px;
  }

  body.dd-mc-page .dd-mc-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 6px;
    margin: 0;
  }

  body.dd-mc-page .dd-mc-nav a {
    min-width: 0;
    padding: 10px 6px;
    font-size: 13px;
  }

  body.dd-mc-page .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  body.dd-mc-page .header-actions .chip {
    display: none;
  }

  body.dd-mc-page .header-actions button {
    min-height: 44px;
    padding: 8px;
    font-size: 13px;
  }

  body.dd-mc-page .heading {
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 16px;
  }

  body.dd-mc-page h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.6px;
  }

  body.dd-mc-page .dd-company-name {
    font-size: 17px;
    line-height: 1.45;
  }

  body.dd-mc-page .heading .muted {
    margin-top: 9px;
    font-size: 14px;
  }

  body.dd-mc-page .heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body.dd-mc-page .heading-actions .button {
    width: 100%;
    min-height: 46px;
    padding: 10px;
    font-size: 14px;
  }

  body.dd-mc-page .stats {
    gap: 8px;
    margin-bottom: 18px;
  }

  body.dd-mc-page .stat {
    gap: 8px;
    padding: 13px 14px;
    border-radius: 13px;
  }

  body.dd-mc-page .stat span {
    min-height: 36px;
    font-size: 12px;
    line-height: 1.45;
  }

  body.dd-mc-page .stat strong {
    font-size: 26px;
  }

  body.dd-mc-page .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 20px;
  }

  body.dd-mc-page .tabs .tab,
  body.dd-mc-page .tabs [role=tab] {
    min-height: 48px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 16px;
  }

  body.dd-mc-page .dd-audience-switch {
    gap: 8px;
    margin: 0;
  }

  body.dd-mc-page .dd-events-toolbar {
    margin-bottom: 16px;
  }

  body.dd-mc-page .dd-audience-switch button {
    min-height: 50px;
    padding: 10px 8px;
    font-size: 14px;
  }

  body.dd-mc-page #regularScheduleLink {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }

  body.dd-mc-page .audience-section {
    margin-bottom: 20px;
    padding: 20px 15px;
    border-radius: 16px;
  }

  body.dd-mc-page .audience-section .section-head {
    margin-bottom: 18px;
  }

  body.dd-mc-page h2,
  body.dd-mc-page .section-head h2 {
    font-size: 23px;
  }

  body.dd-mc-page .section-head .inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 0;
  }

  body.dd-mc-page .section-head .inline-actions > :is(button, a) {
    width: 100%;
    font-size: 15px;
  }

  body.dd-mc-page .section-head .inline-actions > .primary {
    order: -1;
  }

  body.dd-mc-page .dd-publish-options > summary {
    padding: 13px;
    font-size: 14px;
  }

  body.dd-mc-page .dd-publish-options .agenda-permission {
    padding: 3px 13px 15px;
  }

  body.dd-mc-page .client-link-box {
    gap: 12px;
    padding: 15px;
  }

  body.dd-mc-page .client-link-box > button {
    width: 100%;
    font-size: 14px;
  }

  body.dd-mc-page .event-card {
    padding: 17px 15px;
    border-radius: 13px;
  }

  body.dd-mc-page .event-main h3 {
    font-size: 21px;
  }

  body.dd-mc-page .event-side .inline-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dd-mc-page .empty {
    padding: 23px 17px;
    font-size: 15px;
  }

  body.dd-mc-page :is(#eventDialog, #bulkDialog, #bookingDialog).inline-editor {
    margin: 18px 0;
    padding: 20px 16px;
    border-radius: 15px;
  }

  body.dd-mc-page .modal-head {
    gap: 10px;
  }

  body.dd-mc-page .modal-head h2 {
    font-size: 23px;
  }

  body.dd-mc-page .inline-editor .inline-actions.end {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  body.dd-mc-page .inline-editor .inline-actions.end > .primary {
    order: -1;
  }

  body.dd-mc-page .event-photo-editor {
    padding: 14px;
  }

  body.dd-mc-page .event-photo-editor input[type=file] {
    padding: 6px;
  }

  body.dd-mc-page input[type=file]::file-selector-button {
    display: block;
    margin: 0 0 7px;
  }

  body.dd-mc-page .settings-panel {
    padding: 22px 18px;
    border-radius: 16px;
  }

  body.dd-mc-page .settings-panel .inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.dd-mc-page .settings-panel h3 {
    font-size: 21px;
  }

  body.dd-mc-page .dd-settings-links > :is(a, article, section, div) {
    padding: 20px;
  }

  body.dd-mc-page #bookingsTab .section-head .inline-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dd-mc-page #bookingsFilter {
    grid-column: 1;
  }

  body.dd-mc-page .quick-start > summary {
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
  }

  body.dd-mc-page .quick-start-grid {
    gap: 22px;
    padding: 0 18px 18px;
  }

  body.dd-mc-page .quick-start-toggle {
    font-size: 12px;
  }

  body.dd-mc-page .quick-start-help {
    padding: 16px 18px;
  }

  body.dd-mc-page .login-card,
  body.dd-mc-page .setup-panel {
    margin: 18px auto;
    padding: 24px 20px;
  }

  body.dd-mc-page .login-card p:has(> .button) {
    display: grid;
  }

  body.dd-mc-page footer.kd-site-legal-footer {
    display: grid;
    gap: 10px;
    justify-content: start;
    padding: 24px 20px;
  }

  body.dd-mc-page #rd-cookie-footer,
  body.dd-mc-page .rd-cookie-footer {
    padding: 12px 20px 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dd-mc-page *,
  body.dd-mc-page *::before,
  body.dd-mc-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  body.dd-mc-page .dd-mc-header,
  body.dd-mc-page .tabs,
  body.dd-mc-page .dd-audience-switch,
  body.dd-mc-page .section-head .inline-actions,
  body.dd-mc-page .event-side .inline-actions,
  body.dd-mc-page .dd-publish-options,
  body.dd-mc-page .quick-start,
  body.dd-mc-page dialog.inline-editor,
  body.dd-mc-page footer.kd-site-legal-footer,
  body.dd-mc-page #rd-cookie-footer {
    display: none !important;
  }

  body.dd-mc-page {
    background: #fff;
  }

  body.dd-mc-page main.container {
    max-width: none;
    padding: 0;
  }

  body.dd-mc-page .event-card,
  body.dd-mc-page .panel {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media screen {
body.dd-mc-page #rd-cookie-footer,body.dd-mc-page .rd-cookie-footer{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 20px;}
}
