/* Планер (planner.php) по дизайн системата LXVNT: карти без сенки (радиус 12px), кремави карти със златна
   линия отгоре, заглавия Lora, текст Montserrat, бутони-хапчета мин. 44px. Цветовете са в style.css (:root). */
body[data-page='planner'] .workspace-heading,
body[data-page='planner'] #workspace-help,
body[data-page='planner'] #offers-list,
body[data-page='planner'] #requests-section,
body[data-page='planner'] #event-calendar,
body[data-page='planner'] #offer-search-bar {
  display: none !important;
}
#planner {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 48px;
}
#planner h1,
#planner h2,
#planner h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
}
#planner h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  margin: 0 0 12px;
}
#planner h3 {
  font-size: 17px;
  margin: 20px 0 8px;
}
#planner .button,
#planner button {
  border-radius: 35px;
  min-height: 44px;
  padding: 10px 20px;
  font-weight: 600;
  font-family: inherit;
}
#planner .primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
#planner .primary:hover {
  background: var(--ink);
}
#planner input,
#planner select,
#planner textarea {
  font-family: inherit;
  border-radius: 6px;
}
#planner small {
  display: block;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}
#planner a {
  color: var(--gold-deep);
}
#planner a.button {
  color: var(--ink);
  text-decoration: none;
}
#planner a.button.primary {
  color: #fff;
}
#pl-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pl-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pl-note {
  background: var(--cream);
  border: 1px solid var(--gold-line);
  padding: 16px;
  border-radius: 12px;
}
.pl-eyebrow {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.pl-gold-deep {
  color: var(--gold-deep);
}
.pl-gold {
  color: var(--gold);
}
.pl-link-button {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
  font-size: 14px;
}

/* Лента: превключвател на събитията и навигация (групи + раздели на групата) */
.pl-top {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pl-top:empty {
  display: none;
}
.pl-back {
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
}
.pl-switch {
  min-width: min(100%, 360px);
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.pl-switch select {
  border-radius: var(--radius-pill, 35px);
  padding-left: 16px;
  font-weight: 600;
  color: var(--ink);
}
#planner .pl-nav {
  display: block;
  margin: 0;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
#planner .pl-nav:first-child,
#planner .pl-top:empty + .pl-nav {
  margin-top: 16px;
}
.pl-groups {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pl-groups::-webkit-scrollbar {
  display: none;
}
#planner .pl-group {
  position: relative; /* скритият на телефон надпис (position: absolute) остава вътре в лентата */
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 35px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
#planner .pl-group svg {
  color: var(--ink-muted);
  flex: none;
}
#planner .pl-group:hover {
  background: var(--paper-sunk);
}
#planner .pl-group.active {
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 600;
}
#planner .pl-group.active svg {
  color: var(--gold-ink);
}
#planner .pl-new {
  flex: none;
  margin-left: auto;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 35px;
}
#planner .pl-new:hover {
  background: var(--cream);
  text-decoration: underline;
}
.pl-subtabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  overflow-x: auto;
  scrollbar-width: none;
}
.pl-subtabs::-webkit-scrollbar {
  display: none;
}
#planner .pl-subtabs button,
#planner .pl-subtabs a {
  flex: none;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -2px transparent;
  display: inline-flex;
  align-items: center;
}
#planner .pl-subtabs button:hover,
#planner .pl-subtabs a:hover {
  color: var(--ink);
  box-shadow: inset 0 -2px var(--gold-line);
}
#planner .pl-subtabs button.active {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px var(--gold);
}

/* Табло */
.pl-hero {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.pl-hero-text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-title {
  margin: 0;
  font-size: 44px;
  line-height: 52px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.pl-lead {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 28px;
  color: var(--ink-muted);
}
.pl-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  outline: 1px solid var(--gold-line);
  flex: none;
}
.pl-count {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-line);
  border-radius: 2px;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 200px;
}
.pl-count strong {
  font-family: 'Lora', Georgia, serif;
  font-size: 44px;
  line-height: 48px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
.pl-count-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-style: italic;
}
.pl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.pl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.pl-card-cream {
  background: var(--cream);
  border-color: var(--gold-line);
}
.pl-card-mint {
  background: var(--mint);
  border-color: var(--mint);
}
.pl-card-mint small,
.pl-card-mint .muted {
  color: var(--ink-on-blush);
}
.pl-wide {
  grid-column: span 2;
}
.pl-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.pl-figure strong {
  font-family: 'Lora', Georgia, serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}
.pl-figure span {
  color: var(--ink-muted);
  font-size: 15px;
}
/* Два линка в картата на таблото (напр. „Към сайта“ и „Отвори като гост“). */
.pl-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
/* Картата „Гости“ на таблото: поканени и потвърдили един до друг. */
.pl-figure-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.pl-figure-text {
  margin: 0;
  font-weight: 600;
}
.pl-bar {
  height: 6px;
  background: var(--paper-sunk);
  border-radius: 3px;
  overflow: hidden;
}
.pl-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--gold);
}
.pl-bar-fill.pl-safe {
  background: var(--success);
}
.pl-bar-fill.pl-near {
  background: var(--gold);
}
.pl-bar-fill.pl-over {
  background: var(--danger);
}
.pl-offer-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pl-offer-head span {
  font-size: 13px;
  color: var(--ink-muted);
}
.pl-price {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}
.pl-chip {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 35px;
  background: var(--paper-sunk);
  color: var(--ink);
}
.pl-chip-pending {
  background: var(--blush);
  color: var(--ink-on-blush);
}
.pl-chip-client_approved {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.pl-chip-approved {
  background: var(--mint);
  color: var(--success);
}
.pl-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.pl-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pl-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex: none;
}
.pl-card .pl-avatar {
  background: var(--gold-soft);
}
.pl-card-mint .pl-avatar {
  background: #fff;
}
.pl-avatar svg,
.pl-photo-empty svg,
.pl-checks svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-quick {
  display: flex;
  flex-direction: column;
  margin: 4px -8px -8px;
}
#planner .pl-quick > a,
#planner .pl-quick > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}
#planner .pl-quick > a + a,
#planner .pl-quick > a + button,
#planner .pl-quick > button + a,
#planner .pl-quick > button + button {
  box-shadow: 0 -1px var(--line);
}
#planner .pl-quick > a:hover,
#planner .pl-quick > button:hover {
  background: var(--cream);
  box-shadow: none;
}
#planner .pl-quick > a:hover + *,
#planner .pl-quick > button:hover + * {
  box-shadow: none;
}
.pl-qi {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pl-ql {
  flex: 1;
}
.pl-quick > * > svg {
  color: var(--ink-muted);
  flex: none;
}

/* Профил на събитието */
.pl-section {
  padding: 28px;
}
.pl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}
.pl-form-grid label {
  margin: 10px 0;
}
.pl-form-grid small {
  margin-top: 4px;
}
.pl-span {
  grid-column: 1 / -1;
}
.pl-photo-edit {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.pl-photo-edit p {
  margin: 4px 0 10px;
}
.pl-photo-large {
  width: 120px;
  height: 120px;
}
.pl-photo-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-sunk);
  color: var(--ink-muted);
}
.pl-photo-empty svg {
  width: 32px;
  height: 32px;
}
.pl-link {
  margin: 8px 0;
  font-size: 15px;
}
.pl-link small {
  display: inline !important;
}
.pl-members {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
}
.pl-members li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pl-members li > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pl-inline-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pl-inline-form label {
  flex: 1 1 260px;
  margin: 0;
}
.pl-inline-form button {
  margin-top: 26px;
}
.pl-copy {
  display: flex;
  gap: 8px;
}
.pl-copy input {
  margin: 0;
}
#pl-invite-result {
  margin-top: 12px;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
}
#pl-invite-result p {
  margin: 0 0 8px;
}
.pl-danger h2 {
  color: var(--danger);
}
#planner .pl-danger-button {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

/* Стил на събитието */
.pl-style {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.pl-palettes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
#planner .pl-palette,
#planner .pl-font {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  font-weight: 500;
  background: #fff;
}
#planner .pl-palette.active,
#planner .pl-font.active {
  border: 2px solid var(--gold);
  padding: 11px;
}
.pl-swatches {
  display: flex;
  gap: 4px;
}
.pl-swatches span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(41, 39, 37, 0.2);
}
.pl-colors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pl-color {
  margin: 0;
  font-size: 13px;
}
.pl-color input {
  height: 44px;
  padding: 4px;
  cursor: pointer;
}
.pl-fonts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.pl-font > span {
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.pl-checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.pl-checks li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pl-checks svg {
  flex: none;
  margin-top: 1px;
}
.pl-ok {
  color: var(--success);
}
.pl-warn {
  color: var(--danger);
}
.pl-preview-wrap {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Прегледът взима цветовете и шрифтовете от --ev-* (задават се от planner-style.js). */
.pl-preview {
  background: var(--ev-bg);
  color: var(--ev-text);
  font-family: var(--ev-body);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(41, 39, 37, 0.08), 0 10px 28px rgba(41, 39, 37, 0.14);
}
.pl-preview-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
}
#planner .pl-preview h3 {
  font-family: var(--ev-heading);
  color: var(--ev-primary);
  font-size: 36px;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}
.pl-preview p {
  margin: 0;
  line-height: 1.6;
}
.pl-preview-meta {
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid var(--ev-accent);
}
.pl-preview-button {
  background: var(--ev-primary);
  color: var(--ev-on-primary);
  border-radius: 35px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
}

/* Създаване */
.pl-create {
  max-width: 860px;
  gap: 16px;
}
.pl-create > label {
  max-width: 480px;
}
.pl-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
#planner .pl-suggest button {
  font-weight: 500;
  min-height: 40px;
  padding: 8px 16px;
}
#planner .pl-suggest button.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-ink);
}

/* Списък „Планери“ */
#planner .page-intro {
  padding-top: 8px;
  margin-bottom: 0;
}
#planner .page-filters {
  margin: 0;
}
#planner .page-filters .button {
  margin-left: auto;
}
.pl-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pl-row {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 1fr 0.8fr 0.7fr 0.9fr 0.8fr 1fr;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  align-items: center;
  color: var(--ink) !important;
  text-decoration: none;
  font-size: 14px;
}
a.pl-row:hover {
  background: var(--cream);
}
.pl-head {
  border-top: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted) !important;
}

@media (max-width: 900px) {
  .pl-grid {
    grid-template-columns: 1fr;
  }
  .pl-wide {
    grid-column: auto;
  }
  .pl-style {
    grid-template-columns: 1fr;
  }
  .pl-preview-wrap {
    position: static;
  }
  .pl-row {
    grid-template-columns: 1fr 1fr;
  }
  .pl-head {
    display: none;
  }
}
@media (max-width: 600px) {
  .pl-title {
    font-size: 32px;
    line-height: 40px;
  }
  .pl-count {
    width: 100%;
  }
  .pl-form-grid {
    grid-template-columns: 1fr;
  }
  .pl-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pl-section {
    padding: 20px 16px;
  }
  .pl-inline-form button {
    margin-top: 0;
    width: 100%;
  }
  #planner .pl-group {
    padding: 10px 14px;
  }
  #planner .pl-group:not(.active) span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* Табло: предстоящи задачи */
.pl-main {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.pl-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.pl-card-head h2 {
  margin: 0 !important;
}
.pl-task-mini {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pl-task-mini li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pl-task-mini li > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.pl-task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
.pl-task-dot.pl-overdue {
  background: var(--danger);
}
.pl-task-dot.pl-soon {
  background: var(--gold);
}
.pl-task-dot.pl-later {
  background: var(--sage);
}

/* Раздел „Задачи“ */
.pl-tasks-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
.pl-task-tools label {
  flex: 1 1 220px;
}
.pl-task-tools .pl-inline-form {
  flex-basis: 100%;
  margin: 0;
}
.pl-task-group {
  padding: 18px 24px;
  gap: 6px;
}
.pl-task-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
#planner .pl-task-group-head h3 {
  margin: 0;
  flex: 1;
  font-size: 19px;
}
.pl-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pl-cat-icon svg,
.pl-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-cat-count {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-muted);
}
.pl-task .pl-chip,
.pl-task-mini .pl-chip {
  align-self: center;
  flex: none;
}
#planner .pl-icon-button {
  min-height: 36px;
  width: 36px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}
.pl-task-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.pl-task {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.pl-task input[type='checkbox'] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--sage);
  cursor: pointer;
}
#planner .pl-task-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 10px 8px;
  text-align: left;
  font-weight: 400;
}
.pl-task-main strong {
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
}
#planner .pl-task-main:hover {
  background: var(--cream);
}
/* На телефон заглавието на задачата взима целия ред, а чипът и „Редактирай“ слизат на втори ред (QA P1-1). */
@media (max-width: 600px) {
  .pl-task {
    flex-wrap: wrap;
    row-gap: 0;
  }
  #planner .pl-task-main {
    flex: 1 1 calc(100% - 34px);
  }
  .pl-task > .pl-chip {
    margin-left: 34px;
  }
  #planner .pl-task-edit {
    margin-left: auto;
    min-height: 40px;
  }
}
/* Бутонът „Редактирай“ вдясно на задачата (кликът върху самата задача я отмята). */
#planner .pl-task-edit {
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
}
#planner .pl-task-edit:hover,
#planner .pl-task-edit:focus-visible {
  border-color: var(--gold);
  color: var(--gold-ink);
}
.pl-task-done .pl-task-main strong {
  color: var(--ink-muted);
  text-decoration: line-through;
}
.pl-due-overdue {
  color: var(--danger);
  font-weight: 600;
}
.pl-due-soon {
  color: var(--gold-deep);
  font-weight: 600;
}

/* Диалог за задача */
.pl-dialog {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  color: var(--ink);
  background: #fff;
}
.pl-dialog::backdrop {
  background: rgba(41, 39, 37, 0.45);
}
.pl-dialog h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  margin: 0 0 12px;
}
.pl-dialog button {
  border-radius: 35px;
  min-height: 44px;
  padding: 10px 20px;
  font-weight: 600;
}
.pl-dialog .pl-actions {
  margin-top: 16px;
}
.pl-push-right {
  margin-left: auto;
}
.pl-dialog .pl-danger-button {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.pl-suggest-list {
  list-style: none;
  margin: -8px 0 8px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  max-height: 260px;
  overflow: auto;
  background: #fff;
}
.pl-dialog .pl-suggest-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  border: none;
  border-radius: 6px;
  min-height: 0;
  padding: 8px 10px;
  text-align: left;
  font-weight: 500;
}
.pl-suggest-list button:hover,
.pl-suggest-list button:focus-visible {
  background: var(--cream);
}
.pl-suggest-list small {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 12px;
}
@media (max-width: 700px) {
  .pl-tasks-head {
    grid-template-columns: 1fr;
  }
  .pl-main {
    grid-column: auto;
  }
  .pl-dialog {
    padding: 20px 16px;
  }
}
@media (max-width: 900px) {
  .pl-main {
    grid-column: auto;
  }
}

/* Раздел „Бюджет“ */
.pl-page-head {
  align-items: flex-end;
}
.pl-budget-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
}
.pl-budget-summary {
  align-items: center;
  padding: 28px;
  gap: 20px;
}
.pl-donut {
  position: relative;
  width: 200px;
  height: 200px;
}
.pl-donut svg {
  width: 200px;
  height: 200px;
}
.pl-donut circle {
  fill: none;
  stroke-width: 18;
}
.pl-donut-track {
  stroke: var(--paper-sunk);
}
.pl-donut-value {
  stroke: var(--line-strong);
  stroke-linecap: round;
}
.pl-donut-value.pl-safe {
  stroke: var(--success);
}
.pl-donut-value.pl-near {
  stroke: #c8a85e;
}
.pl-donut-value.pl-over {
  stroke: var(--danger);
}
.pl-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.pl-donut-center strong {
  font-family: 'Lora', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}
.pl-over {
  color: var(--danger);
}
.pl-budget-figures {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}
.pl-budget-figures strong {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
}
.pl-budget-figures .pl-eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
}
.pl-zones {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.pl-zones li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pl-zones span:not(.pl-zone-dot) {
  color: var(--ink-muted);
}
.pl-zones em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
}
.pl-zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.pl-to-pay {
  margin: 0;
  font-weight: 600;
}
.pl-budget-table {
  padding: 24px 28px;
  gap: 0;
}
.pl-budget-head,
.pl-budget-cat {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.pl-budget-head {
  padding: 10px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.pl-budget-head span:not(:first-child),
.pl-budget-cat > span:not(.pl-budget-name):not(.pl-cat-icon) {
  text-align: right;
}
.pl-budget-row {
  border-bottom: 1px solid var(--line);
}
#planner .pl-budget-cat {
  width: 100%;
  grid-template-columns: 40px minmax(0, 2.4fr) repeat(4, minmax(0, 1fr));
  background: none;
  border: none;
  border-radius: 0;
  padding: 12px 0;
  font-weight: 400;
  text-align: left;
  font-size: 14px;
}
#planner .pl-budget-cat:hover {
  background: var(--cream);
}
.pl-budget-head {
  grid-template-columns: 40px minmax(0, 2.4fr) repeat(4, minmax(0, 1fr));
}
.pl-budget-head span:first-child {
  grid-column: span 2;
}
.pl-budget-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pl-budget-name .pl-bar {
  height: 4px;
}
.pl-budget-lines {
  list-style: none;
  margin: 0 0 12px 52px;
  padding: 0;
}
.pl-budget-line {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.pl-budget-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.pl-budget-line > span {
  text-align: right;
}
.pl-muted-line {
  color: var(--ink-muted);
}
.pl-empty {
  padding: 16px 0;
}
.pl-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 20px;
}
.pl-plan-grid label {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.pl-plan-grid label > span {
  display: flex;
  flex-direction: column;
}
.pl-plan-grid small {
  display: block !important;
  font-weight: 400;
}
.pl-plan-grid input {
  margin-top: 0;
}
@media (max-width: 900px) {
  .pl-budget-grid {
    grid-template-columns: 1fr;
  }
  .pl-budget-head {
    display: none;
  }
  #planner .pl-budget-cat {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  #planner .pl-budget-cat > span:nth-child(3),
  #planner .pl-budget-cat > span:nth-child(5),
  #planner .pl-budget-cat > span:nth-child(6) {
    display: none;
  }
  .pl-budget-lines {
    margin-left: 0;
  }
  .pl-budget-line {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .pl-budget-line > span:nth-child(3) {
    display: none;
  }
}

/* Раздел „Гости“ */
.pl-bar-split {
  display: flex;
}
.pl-bar-split .pl-bar-fill {
  border-radius: 0;
}
.pl-guest-stats {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.pl-stat {
  gap: 6px;
  padding: 18px 20px;
}
.pl-stat-yes {
  background: var(--mint);
  border-color: var(--mint);
}
.pl-stat-yes small {
  color: var(--ink-on-blush);
}
.pl-menus,
.pl-invite-note {
  margin: 0;
}
div.pl-invite-note {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.pl-guest-tools label {
  flex: 1 1 160px;
}
.pl-guest-actions {
  gap: 10px;
}
.pl-bulk {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
  padding: 6px 6px 6px 14px;
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: 35px;
}
.pl-bulk[hidden] {
  display: none;
}
.pl-guest-table {
  padding: 8px 20px;
  gap: 0;
}
.pl-guest-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 3fr) 70px 140px 120px minmax(92px, auto);
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.pl-guest-row.pl-head {
  border-top: none;
  padding: 10px 0;
}
.pl-guest-row input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--gold);
}
#planner .pl-guest-name {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 8px;
  min-height: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 400;
  width: 100%;
}
#planner .pl-guest-name:hover {
  background: var(--cream);
}
.pl-guest-name strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
#planner .pl-guest-row [data-guest-share] {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}
.pl-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.pl-dialog a.button {
  border-radius: 35px;
  min-height: 44px;
  padding: 10px 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.pl-dialog .primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pl-dialog fieldset,
.pl-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0 0;
}
.pl-dialog legend,
.pl-fieldset legend {
  font-weight: 600;
  padding: 0 6px;
}
.pl-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.pl-history li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.pl-history p {
  margin: 4px 0 0;
  font-style: italic;
}
.pl-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0 12px;
}
.pl-cols .check {
  margin: 6px 0;
}
.pl-import-preview {
  overflow: auto;
  max-height: 200px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0;
}
.pl-import-preview table {
  border-collapse: collapse;
  font-size: 13px;
}
.pl-import-preview td {
  border-bottom: 1px solid var(--line);
  padding: 4px 8px;
  white-space: nowrap;
}

/* Раздел „Покана“ */
.pl-invite-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}
.pl-segment {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 35px;
  background: #fff;
  align-self: flex-start;
}
#planner .pl-segment button {
  border: none;
  min-height: 36px;
  padding: 6px 16px;
  background: none;
  font-weight: 500;
}
#planner .pl-segment button.active {
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 600;
}
.pl-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
#planner .pl-template {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 500;
  font-size: 13px;
}
#planner .pl-template.active {
  border: 2px solid var(--gold);
  padding: 7px;
}
.pl-template-thumb {
  display: block;
  height: 64px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--gold-line);
}
.pl-thumb-classic {
  outline: 1px solid var(--gold-line);
  outline-offset: -8px;
}
.pl-thumb-modern {
  background: linear-gradient(var(--gold-soft) 45%, var(--cream) 45%);
}
.pl-thumb-botanical {
  background: var(--mint);
  border-radius: 32px 32px 6px 6px;
}
.pl-thumb-minimal {
  background: #fff;
}
.pl-palettes-small {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.pl-decor {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.pl-inv-image {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.pl-inv-image > span {
  flex-basis: 100%;
  font-size: 14px;
  font-weight: 500;
}
.pl-inv-image img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}
.pl-invite-save {
  margin-top: 16px;
}
.pl-invite-preview-wrap {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.pl-device {
  width: 100%;
  max-height: calc(100vh - 120px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(41, 39, 37, 0.08), 0 10px 28px rgba(41, 39, 37, 0.14);
}
.pl-device-phone {
  max-width: 390px;
  border-radius: 28px;
  border: 8px solid #292725;
}
.pl-device-desktop {
  border-radius: 8px;
}
.pl-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.pl-template-row input[name='name'] {
  flex: 1 1 200px;
  width: auto;
  margin: 0;
}
.pl-template-row select {
  width: auto;
  margin: 0;
}
.pl-template-row .check {
  margin: 0;
}
.pl-sort {
  width: 80px !important;
  margin: 0 !important;
}
#pli-admin summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 900px) {
  .pl-invite-editor {
    grid-template-columns: 1fr;
  }
  .pl-invite-preview-wrap {
    position: static;
  }
  .pl-guest-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .pl-guest-row > span:nth-child(3),
  .pl-guest-row > span:nth-child(5) {
    display: none;
  }
  .pl-guest-row > span:nth-child(6) {
    grid-column: 2 / -1;
  }
  .pl-bulk {
    margin-left: 0;
  }
}

/* Раздел „Оферти“ */
.plo-offer {
  gap: 12px;
}
.plo-offer h2 {
  margin: 0 !important;
}
.plo-accepted {
  margin: 0;
  padding: 10px 14px;
  background: var(--mint);
  border-radius: 12px;
}
.plo-accepted small {
  display: inline !important;
}
.plo-plan,
.plo-plan-edit {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#planner .plo-plan h3,
#planner .plo-plan-edit h3 {
  margin: 0;
}
.plo-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plo-items li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.plo-items li > span:first-child {
  flex: 1;
  min-width: 160px;
}
.pl-chip-overdue {
  background: #f9e1de;
  color: var(--danger);
}
.plo-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: end;
}
.plo-row label {
  margin: 0;
}
@media (max-width: 700px) {
  .plo-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Раздел „Календар“ */
/* Календарът на планера е в planner-calendar.css; тук остава само формата за среща. */
.pl-ics {
  font-size: 12px;
  font-weight: 600;
}
.plc-colors {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.plc-colors input {
  position: absolute;
  opacity: 0;
}
.plc-colors span {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  outline: 1px solid var(--line);
}
.plc-colors input:checked + span {
  outline: 3px solid var(--ink);
}
.plc-colors input:focus-visible + span {
  outline: 3px solid var(--gold-deep);
}
.pl-dialog fieldset[disabled] {
  border: none;
  padding: 0;
  margin: 0;
}
/* Вдъхновение и традиции */
.pli-counter {
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 35px;
  background: var(--paper-sunk);
}
.pli-limit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}
.pli-limit input {
  width: 80px;
  margin: 0;
}
.pli-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#planner .pli-themes button {
  min-height: 36px;
  padding: 6px 16px;
  font-weight: 500;
}
#planner .pli-themes button.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
}
.pli-grid {
  columns: 3 260px;
  column-gap: 16px;
}
.pli-card {
  break-inside: avoid;
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.pli-card img {
  width: 100%;
  display: block;
}
.pli-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
#planner .pli-body h3 {
  margin: 0;
}
.pli-body p {
  margin: 0;
  overflow-wrap: anywhere;
}
.pli-body a {
  overflow-wrap: anywhere;
}
.pli-included {
  border-color: var(--sage);
}
.pli-comment {
  background: var(--cream);
  border-left: 3px solid var(--gold-line);
  padding: 8px 10px;
  font-size: 14px;
}
.pli-preview {
  max-width: 160px;
  border-radius: 6px;
}
.plt-chosen {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.plt-chosen li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  padding: 6px 6px 6px 12px;
}
.plt-chosen li > span {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.plt-card {
  gap: 8px;
}
#planner .plt-card h3 {
  margin: 0;
}
.plt-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}
.plt-chosen-card {
  border-color: var(--sage);
  background: #f7faf8;
}
.plt-add {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.plt-add .check {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}
.plt-admin-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.pl-mini-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

/* Съобщения, документи, въпросници */
.pl-quote {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}
.plm-chat {
  padding: 0;
  gap: 0;
}
.plm-thread {
  max-height: 60vh;
  min-height: 240px;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  border-radius: 12px 12px 0 0;
}
.plm-msg {
  max-width: min(560px, 85%);
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 2px;
  padding: 10px 14px;
}
.plm-team {
  background: var(--mint);
  border-color: var(--mint);
}
.plm-mine {
  align-self: flex-end;
  border-radius: 12px 12px 2px 12px;
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
.plm-msg p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.plm-meta small {
  display: inline !important;
}
.plm-thumb {
  max-width: 240px;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 6px;
  display: block;
}
.plm-file {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
}
.plm-file small {
  display: inline !important;
}
.plm-compose {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.plm-compose label.plm-text {
  margin: 0 0 10px;
}
.plm-attached {
  font-size: 13px;
}
.plm-docs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plm-docs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.plm-docs li > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.plf-options {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
}
.plf-options .check {
  margin: 6px 0;
  font-weight: 400;
}
.plf-current {
  display: block;
  margin-top: 6px;
}
.plf-admin-form {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.plf-q {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr) auto 40px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}
.plf-q select,
.plf-q input,
.plf-q textarea {
  margin: 0;
}
.plf-q .check {
  margin: 0;
  font-size: 13px;
}
@media (max-width: 800px) {
  .plf-q {
    grid-template-columns: 1fr 1fr;
  }
}

/* Раздел „Програма“ */
.plp-tools {
  margin-bottom: 8px;
}
.plp-head,
.plp-row {
  display: grid;
  grid-template-columns: 110px 80px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr) 40px;
  gap: 6px;
  align-items: center;
}
.plp-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 0;
}
.plp-row {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.plp-row input {
  margin: 0;
  padding: 8px;
}
.plp-row .plp-comments {
  grid-column: 3 / -1;
}
.plp-comments ul {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  font-size: 14px;
}
.plp-comments li {
  padding: 6px 10px;
  border-left: 3px solid var(--gold-line);
  background: var(--cream);
  margin-bottom: 4px;
}
.plp-comments li.plp-team {
  border-left-color: var(--sage);
  background: var(--mint);
}
.plp-comments small {
  display: inline !important;
}
.plp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plp-list > li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.plp-time {
  width: 72px;
  flex: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.plp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plp-main p {
  margin: 0;
}
.plp-vendors {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plp-vendors li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.plp-vendors li > div {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.plp-amount {
  font-weight: 600;
  text-align: right;
}
#planner .plp-call {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  min-height: 40px;
  padding: 6px 16px;
}
.plp-day {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plp-now {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
}
.plp-now .pl-eyebrow {
  color: var(--gold-line);
}
#planner .plp-now h2 {
  color: #fff;
  font-size: 28px;
  margin: 6px 0 !important;
}
.plp-now p {
  margin: 0;
  color: #e9e3d8;
}
.plp-next {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  color: var(--gold-line) !important;
}
.plp-preview {
  background: var(--gold-deep);
}
.plp-daylist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plp-daylist li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.plp-daylist li > span {
  width: 52px;
  flex: none;
  font-weight: 700;
  color: var(--gold);
}
.plp-daylist li > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plp-done {
  opacity: 0.5;
}
.plp-current {
  background: var(--blush);
  margin: 0 -12px;
  padding: 12px !important;
  border-radius: 8px;
}
.plp-current > span {
  color: var(--rose) !important;
}
@media (max-width: 900px) {
  .plp-head {
    display: none;
  }
  .plp-row {
    grid-template-columns: 100px 70px minmax(0, 1fr) 40px;
  }
  .plp-row [data-f='place'],
  .plp-row [data-f='owner'],
  .plp-row [data-f='note'] {
    grid-column: 1 / -2;
  }
  .plp-row .plp-comments {
    grid-column: 1 / -1;
  }
}

/* Раздел „Сайт“ */
.pls-slug {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}
.pls-slug > span {
  padding: 0 8px;
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.pls-slug input {
  border: none;
  margin: 0;
}
.pls-slug-state {
  margin: 4px 0 0;
  font-size: 13px;
}
.pls-share {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}
.pls-qr {
  width: 112px;
  flex: none;
}
.pls-qr svg,
.pls-qr img {
  width: 100%;
  height: auto;
}
.pls-sections {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pls-sec {
  border-top: 1px solid var(--line);
  padding: 6px 0;
}
.pls-off .pls-sec-head label {
  color: var(--ink-muted);
}
.pls-sec-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pls-sec-head .check {
  flex: 1;
  margin: 0;
}
.pls-sec-body {
  padding: 8px 0 8px 28px;
}
.pls-faq-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 40px;
  gap: 6px;
  margin-bottom: 6px;
}
.pls-faq-row input,
.pls-faq-row textarea {
  margin: 0;
}
.pls-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.pls-photos span {
  position: relative;
}
.pls-photos img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.pls-photos .pl-icon-button {
  position: absolute;
  top: -8px;
  right: -8px;
  min-height: 24px !important;
  width: 24px !important;
  background: #fff;
}
#pls-preview.site {
  min-height: 400px;
}
.invite-site {
  text-align: center;
}

/* Раздел „Спомени“ */
/* ZIP бутон след натискане: „Подготвя се…“, заключен за няколко секунди (planner-memories.js). */
a[data-zip].is-busy {
  opacity: 0.6;
  cursor: progress;
}
.plmem-settings {
  margin: 12px 0;
}
.plmem-settings .check {
  margin: 0;
}
.plmem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.plmem-photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.plmem-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.plmem-pending {
  border-color: var(--gold-line);
}
.plmem-hidden img {
  opacity: 0.4;
}
.plmem-photo figcaption {
  padding: 6px 8px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plmem-photo figcaption span,
.plmem-wishes span {
  display: flex;
  gap: 4px;
}
#planner .plmem-photo button,
#planner .plmem-wishes button {
  min-height: 30px;
  padding: 2px 10px;
  font-size: 12px;
}
.plmem-wishes,
.plmem-gifts {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.plmem-wishes li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plmem-wishes p {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
}
.plmem-wishes li.plmem-hidden {
  opacity: 0.5;
}
.plmem-gifts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.plmem-gifts .check {
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
}
.plmem-gifts li > span {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* AI помощник и седмичен обзор */
.plai-kinds {
  flex-wrap: wrap;
  margin: 8px 0;
}
.plai-tasks {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  max-height: 45vh;
  overflow: auto;
}
.plai-tasks li {
  border-top: 1px solid var(--line);
}
.plai-tasks .check {
  align-items: flex-start;
  margin: 8px 0;
}
.plai-tasks .check span {
  display: flex;
  flex-direction: column;
}
.plai-note {
  font-size: 12px;
  margin-top: 12px;
}
.pl-digest {
  grid-column: 1 / -1;
}
.pl-dialog .pl-segment {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 35px;
}
.pl-dialog .pl-segment button {
  border: none;
  min-height: 36px;
  padding: 6px 14px;
  background: none;
  font-weight: 500;
}
.pl-dialog .pl-segment button.active {
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 600;
}
@media (max-width: 480px) {
  .pl-budget-figures strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
  }
  .pl-budget-figures .pl-eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}
@media (max-width: 600px) {
  /* Малките статистики (гости и т.н.) — по две на ред. */
  .pl-cards.pl-guest-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .pl-guest-stats > * {
    padding: 16px;
  }
}
.pls-sec-head .pl-link-button {
  align-self: center;
  margin-left: 8px;
}

/* Прегледът на поканата и сайта в рамка на устройство (без картинки и лога):
   „Телефон“ — като iPhone (островче, странични бутони, лента за начало); „Десктоп“ — като iMac (тънка рамка,
   светла брадичка и стойка). Съдържанието се превърта в .pl-device-screen. */
.pl-device {
  position: relative;
  box-sizing: border-box;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  max-height: none;
}
.pl-device-hw {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.pl-device-screen {
  position: relative;
  height: 100%;
  overflow: auto;
  background: #fff;
  scrollbar-width: none;
}
.pl-device-screen::-webkit-scrollbar {
  display: none;
}
/* Телефон */
.pl-device-phone {
  width: auto;
  max-width: 100%;
  height: min(740px, calc(100vh - 150px));
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  border-radius: 56px;
  background: #1c1c1e;
  box-shadow:
    inset 0 0 0 2px #3a3a3c,
    0 0 0 2px #c9c3b8,
    0 0 0 3px #a8a195,
    0 30px 60px -12px rgba(41, 39, 37, 0.35),
    0 12px 24px -8px rgba(41, 39, 37, 0.2);
}
.pl-device-phone .pl-device-screen {
  border-radius: 44px;
}
/* островчето горе */
.pl-device-phone::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 50%;
  width: 30%;
  max-width: 110px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
}
/* бутон вдясно */
.pl-device-phone::after {
  content: '';
  position: absolute;
  top: 24%;
  right: -5px;
  width: 4px;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #a8a195, #d6d0c6);
}
/* бутони за звука вляво */
.pl-device-phone .pl-device-hw::before {
  content: '';
  position: absolute;
  top: 19%;
  left: -5px;
  width: 4px;
  height: 7%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #d6d0c6, #a8a195);
  box-shadow: 0 9vh 0 #bdb6aa;
}
/* лента за начало долу */
.pl-device-phone .pl-device-hw::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 34%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(41, 39, 37, 0.35);
}
/* Android: по-малко заоблени ъгли, тънка равномерна рамка, кръгла камера горе, бутони вдясно. */
.pl-device-android {
  width: auto;
  max-width: 100%;
  height: min(740px, calc(100vh - 150px));
  aspect-ratio: 9 / 19.8;
  padding: 9px;
  border-radius: 40px;
  background: #202124;
  box-shadow:
    inset 0 0 0 1.5px #3c4043,
    0 0 0 2px #5f6368,
    0 30px 60px -12px rgba(41, 39, 37, 0.35),
    0 12px 24px -8px rgba(41, 39, 37, 0.2);
}
.pl-device-android .pl-device-screen {
  border-radius: 32px;
}
.pl-device-android::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #3c4043 0 2px, #000 3px);
}
.pl-device-android::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -4px;
  width: 3px;
  height: 9%;
  border-radius: 0 3px 3px 0;
  background: #5f6368;
  box-shadow: 0 13vh 0 #5f6368;
}
.pl-device-android .pl-device-hw::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 28%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(41, 39, 37, 0.3);
}
/* MacBook: екран с тънка тъмна рамка и изрез горе; алуминиева основа, по-широка от екрана. */
.pl-device-desktop {
  width: 86%;
  max-width: 680px;
  margin: 0 auto 34px;
  padding: 14px 14px 16px;
  border-radius: 18px 18px 6px 6px;
  background: #1c1c1e;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3c,
    0 0 0 2px #c9c6c0,
    0 24px 40px -18px rgba(41, 39, 37, 0.35);
}
.pl-device-desktop .pl-device-screen {
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: calc(100vh - 280px);
  border-radius: 4px;
}
/* изрез за камерата */
.pl-device-desktop::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 50%;
  width: 12%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #1c1c1e;
}
/* основа (клавиатурната част, гледана отпред) */
.pl-device-desktop .pl-device-hw::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -7%;
  right: -7%;
  height: 16px;
  border-radius: 2px 2px 14px 14px / 2px 2px 12px 12px;
  background: linear-gradient(180deg, #e8e6e1 0%, #d4d1ca 55%, #b9b5ad 100%);
  box-shadow: 0 10px 18px -8px rgba(41, 39, 37, 0.4);
}
/* вдлъбнатина за отваряне */
.pl-device-desktop .pl-device-hw::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 16%;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #bdb9b1, #cfccc5);
}
.pli-guest-view {
  /* „Виж като гост“: иконка „нов раздел“ пред текста, като „Преглед на поканата“ до него. */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.pl-device-pick {
  /* Телефон / Android / Компютър — в средата, точно над прегледа (и в поканата, и в сайта). */
  align-self: center;
}
.pl-device-pick button {
  min-width: 92px;
}
@media (max-width: 900px) {
  .pl-device-phone,
  .pl-device-android {
    height: 620px;
  }
}

/* ---------- Редактор на поканата: стъпки, оформления, превключватели, снимки, лента за запис ---------- */
.pl-invite-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 0 !important;
}
.pli-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pli-step:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.pli-step > span {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 700;
}
#planner .pli-step h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.pli-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* Мини-прегледи на оформленията */
.pl-templates {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#planner .pl-template {
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
#planner .pl-template:hover {
  border-color: var(--gold-line);
}
#planner .pl-template.active {
  border: 1px solid var(--gold);
  padding: 10px;
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.pl-template-thumb {
  position: relative;
  height: 86px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbf8f1;
  overflow: hidden;
}
/* редове „текст“ в мини-прегледа */
.pl-template-thumb::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 26px;
  transform: translate(-50%, -30%);
  background:
    linear-gradient(var(--gold), var(--gold)) center 0 / 70% 5px no-repeat,
    linear-gradient(#c9c2b6, #c9c2b6) center 11px / 100% 2px no-repeat,
    linear-gradient(#c9c2b6, #c9c2b6) center 17px / 80% 2px no-repeat,
    linear-gradient(#c9c2b6, #c9c2b6) center 23px / 55% 2px no-repeat;
}
.pl-thumb-classic {
  outline: 1px solid var(--gold-line);
  outline-offset: -7px;
}
.pl-thumb-classic::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-line);
}
.pl-thumb-modern {
  background: linear-gradient(#e7dcc6 0 36%, #fbf8f1 36%);
}
.pl-thumb-modern::after {
  left: 12px;
  transform: translate(0, -10%);
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 80% 6px no-repeat,
    linear-gradient(#c9c2b6, #c9c2b6) 0 12px / 100% 2px no-repeat,
    linear-gradient(#c9c2b6, #c9c2b6) 0 18px / 70% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 25px / 40% 2px no-repeat;
}
.pl-thumb-botanical {
  background: var(--mint);
  border-radius: 8px;
}
.pl-thumb-botanical::before {
  content: '';
  position: absolute;
  inset: 8px 12px 6px;
  border-radius: 40px 40px 6px 6px;
  background: #fbf8f1;
}
.pl-thumb-botanical::after {
  z-index: 1;
  transform: translate(-50%, -20%);
}
.pl-thumb-minimal {
  background: #fff;
}
/* Декорации — превключватели с иконки */
.pl-decor {
  gap: 10px;
}
.pli-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 35px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.pli-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pli-toggle:hover {
  border-color: var(--gold-line);
}
.pli-toggle:has(input:checked) {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold-ink);
}
.pli-toggle:has(input:focus-visible) {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
/* Снимки — голямо поле с иконка, миниатюра след избора */
.pl-inv-image {
  display: block;
  margin: 0;
}
.pli-drop-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}
.pli-drop-row img {
  flex: none;
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.pli-drop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 92px;
  margin: 0;
  padding: 12px;
  border: 1.5px dashed var(--gold-line);
  border-radius: 12px;
  background: var(--cream);
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.pli-drop:hover {
  border-color: var(--gold);
  background: #f6f1e6;
}
.pli-drop-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.pli-drop strong {
  font-size: 14px;
}
.pli-drop small {
  font-size: 12px;
  color: var(--ink-muted);
}
#planner .pli-remove {
  align-self: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
}
/* Потвърждение (RSVP) */
.pli-rsvp {
  margin-top: 2px;
}
/* Лента за запис — остава видима долу, докато се превърта формата */
.pli-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px -28px 0;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pli-savebar .muted {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 280px;
}
.pli-savebar .pl-invite-save {
  margin: 0;
  flex: none;
}
/* Оформленията: по 2 в ред, когато колоната с настройките е тясна (имената да не излизат от картата). */
.pl-invite-controls {
  container-type: inline-size;
}
@container (max-width: 560px) {
  .pl-templates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#planner .pl-template,
#planner .pl-template.active {
  padding: 8px;
  font-size: 12.5px;
  overflow-wrap: break-word;
}
/* UT-17: името на оформлението на един ред („Минималистична“ не се пречупва по средата на думата); ако картата
   е по-тясна от думата — многоточие в самото име, не в бутона. */
#planner .pl-template {
  font-size: 12px;
  letter-spacing: -0.01em;
}
.pl-template-name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Прегледът: устройството никога не е по-широко от колоната */
.pl-invite-preview-wrap {
  min-width: 0;
  overflow: visible;
}
.pl-invite-preview-wrap .pl-device-phone,
.pl-invite-preview-wrap .pl-device-android {
  max-width: 100%;
}
@media (max-width: 1100px) {
  .pl-templates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pli-savebar {
    flex-direction: column;
    align-items: stretch;
  }
  .pli-savebar .muted {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .pli-savebar {
    margin: 18px -16px 0;
    padding: 12px 16px;
  }
}

/* ---------- Редактор на сайта (стъпки като при поканата) ---------- */
.pl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pls-access {
  margin-top: 14px;
  align-items: start;
}
/* Подсказка под поле във формите на планера (напр. „Бележки“ за гост — без здравна информация). */
.pl-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}
/* Статус на достъпа до „Публикувай“ (парола, търсачки) — винаги видим, и на телефон. */
.pls-savebar {
  flex-wrap: wrap;
  row-gap: 12px;
}
.pls-savebar-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
/* В един ред (широк екран) статусът расте, а бутоните са вдясно. Под 1100 px лентата е колона (flex-basis би
   станал височина), а бутоните са на цялата ширина. */
@media (min-width: 1101px) {
  .pls-savebar-info {
    flex: 1 1 260px;
  }
  .pls-savebar .pl-invite-save {
    margin-left: auto;
  }
}
.pls-access-state {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.4;
}
.pls-access-state li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pls-access-state svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.pls-state-ok {
  color: var(--success);
}
.pls-state-open {
  color: var(--ink-muted);
}
.pls-state-pending {
  color: var(--gold-deep);
  font-weight: 600;
}
/* Телефон: лентата за запис (покана, сайт) застава над долното меню, а не под него — иначе бутоните
   „Запази“ / „Публикувай“ и статусът на достъпа са скрити зад #lux-tabbar. */
@media (max-width: 760px) {
  body.has-lux-tabbar .pli-savebar {
    bottom: calc(68px + env(safe-area-inset-bottom));
  }
}
.pls-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 26px;
}
.pls-checks .check,
.pls-own {
  margin: 0;
}
.pls-own {
  margin-top: 16px;
}
.pls-share {
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-sunk);
}
.pls-qr {
  width: 104px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}
.pls-share-main {
  flex: 1;
  min-width: 0;
}
.pls-share .pl-actions {
  margin-top: 10px;
  flex-wrap: wrap;
}
#planner .pls-stop {
  color: #9b3b32;
}
.pls-hint {
  margin: 6px 0 12px;
  font-size: 13px;
  line-height: 1.55;
}
/* Секции: превключвател, иконка и име (отваря съдържанието), стрелки */
.pls-sections {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.pls-sec {
  padding: 0;
  border-top: 1px solid var(--line);
}
.pls-sec:first-child {
  border-top: 0;
}
.pls-sec-head {
  gap: 10px;
  padding: 8px 10px 8px 14px;
}
.pls-open {
  background: var(--paper-sunk);
}
#planner .pls-sec-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
#planner .pls-sec-name:hover {
  color: var(--gold-ink);
}
#planner .pls-sec-name svg {
  flex: none;
  color: var(--gold);
}
.pls-sec-name > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#planner .pls-off .pls-sec-name {
  color: var(--ink-muted);
}
#planner .pls-off .pls-sec-name svg {
  color: var(--line-strong);
}
.pls-empty {
  flex: none;
  padding: 3px 9px;
  border-radius: 35px;
  background: #fbeee0;
  color: #8a4b12;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
.pls-move {
  display: flex;
  gap: 4px;
  flex: none;
}
#planner .pls-move .pl-icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
#planner .pls-move .pl-icon-button:disabled {
  opacity: 0.3;
}
.pls-sec-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 16px 18px 64px;
}
.pls-sec-body label,
.pls-sec-body .check,
.pls-sec-body p {
  margin: 0;
}
/* превключвател (чекбокс) */
.pls-switch {
  position: relative;
  flex: none;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}
.pls-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.pls-switch > span[aria-hidden] {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #d8d3cb;
  transition: background 0.2s;
}
.pls-switch > span[aria-hidden]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(41, 39, 37, 0.3);
  transition: transform 0.2s;
}
.pls-switch input:checked + span {
  background: var(--gold);
}
.pls-switch input:checked + span::after {
  transform: translateX(16px);
}
.pls-switch input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* снимки в секция и „+ Снимки“ */
.pls-photos {
  margin-top: 0;
}
.pls-photos img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
}
.pls-photos .pl-icon-button {
  display: grid;
  place-items: center;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.pls-photos .pl-icon-button svg {
  width: 13px;
  height: 13px;
}
.pls-photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 76px;
  height: 76px;
  border: 1px dashed var(--gold-line, var(--line-strong));
  border-radius: 10px;
  background: var(--cream);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.pls-photo-add:hover {
  border-color: var(--gold);
}
#planner .pls-add {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.pls-faq-row {
  grid-template-columns: 1fr 1.4fr 36px;
  align-items: start;
}
.pls-faq-row .pl-icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
}
/* Съобщение до гостите — отделна карта под редактора */
.pls-broadcast {
  margin-top: 24px;
}
.pls-broadcast-head {
  margin-bottom: 14px;
}
#planner .pls-broadcast h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
}
.pls-broadcast-head p {
  margin: 0;
}
.pls-b-actions {
  align-self: end;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .pls-sec-body {
    padding-left: 16px;
  }
  .pls-checks {
    padding-top: 0;
  }
  .pls-share {
    flex-direction: column;
    align-items: flex-start;
  }
  .pls-faq-row {
    grid-template-columns: 1fr 36px;
  }
  .pls-faq-row textarea {
    grid-column: 1;
  }
}
/* Телефон: лентата за запис е ниска — двата бутона един до друг, без подсказката. */
@media (max-width: 600px) {
  .pli-savebar .muted {
    display: none;
  }
  .pli-savebar .pl-invite-save {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .pli-savebar .pl-invite-save button {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }
  .pls-b-actions {
    width: 100%;
  }
  .pls-b-actions button {
    flex: 1 1 100%;
  }
}
/* Доставчици от офертата на Luxevent */
.plp-vendors .plp-auto {
  background: linear-gradient(90deg, #fffaf0, #fff 60%);
}
.pl-chip.plp-offer-chip {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
/* ---------- Спомени → албум: избор, любими, сърца, предизвикателства ---------- */
.plmem-photo {
  position: relative;
}
.plmem-photo.is-sel {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.plmem-photo.is-fav {
  border-color: var(--gold-line, var(--gold));
}
.plmem-pick {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}
.plmem-pick input {
  width: 16px;
  height: 16px;
  margin: 0;
}
#planner .plmem-star {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-muted);
}
#planner .plmem-star svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#planner .plmem-star.is-on {
  background: var(--gold);
  color: #fff;
}
#planner .plmem-star.is-on svg {
  fill: currentColor;
}
.plmem-photo figcaption strong {
  font-weight: 600;
}
.plmem-photo figcaption em {
  color: #b0495a;
  font-style: normal;
}
.plmem-photo figcaption small {
  color: var(--ink-muted);
  line-height: 1.35;
}
.plmem-selbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 13px;
}
.plmem-selbar .button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.plmem-ch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  padding-left: 22px;
}
.plmem-ch-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.plmem-ch-list input {
  flex: 1;
  margin: 0;
}
#planner .plmem-ch-list .pl-icon-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

/* ---------- Спринт 3: палитрите по сезони (VIS-19) и формата на монограма (VIS-03) ---------- */
.pl-palette-group + .pl-palette-group {
  margin-top: 16px;
}
#planner .pl-palette-season {
  margin: 0 0 8px;
  font-size: 11px;
}
.pli-mono {
  margin-top: 12px;
}
.pli-mono[hidden] {
  display: none;
}
.pli-mono .pl-segment {
  flex-wrap: wrap;
  border-radius: 24px;
}
/* На телефон: по 3 мостри в ред, без сираци във всяка сезонна група (визуално ревю P2-10). */
@media (max-width: 560px) {
  #planner .pl-palette-group .pl-palettes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  /* Името: най-много два реда (визуално ревю P2) — по-малко вътрешно поле отстрани, лека разредка навътре и
     balance, за да се пречупва „Слонова кост / и мастило“, а не „Слонова кост и / мастило“ на три реда. */
  #planner .pl-palette-group .pl-palette {
    min-width: 0;
    padding: 8px 5px 8px 6px;
    font-size: min(12px, 3vw); /* 11,7px при 390, по-малко на 360–375, за да стои „Слонова кост“ на един ред */
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  #planner .pl-palette-group .pl-swatches {
    gap: 2px;
  }
  #planner .pl-palette-group .pl-swatches span {
    width: 18px;
    height: 18px;
  }
}
.pl-preview-mono .inv-mono {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

/* ---------- Спринт 3, кръг 2 (тест с персони) ---------- */
/* UT-03: „Преглед“ на телефон и таблет — плаващ бутон над лентата за запис; прегледът на цял екран. */
.pli-peek,
.pli-full-bar {
  display: none;
}
html.pl-noscroll {
  overflow: hidden;
}
#planner .pli-peek {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  background: var(--paper);
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
#planner .pli-peek:hover {
  background: var(--cream);
}
#planner .pli-peek:focus-visible,
#planner .pls-guest-open:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}
.pli-peek-short {
  display: none;
}
/* Преглед на цял екран — на всички ширини (на компютър: лента отгоре + устройство по средата) */
.pl-invite-editor.pli-full .pl-invite-preview-wrap {
  position: fixed;
  inset: 0;
  z-index: 900;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 12px calc(16px + env(safe-area-inset-bottom));
  overflow: auto;
  background: var(--bg);
}
.pli-full .pli-full-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  align-self: stretch;
  margin: 0 -12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pli-full-bar strong {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}
#planner .pli-full-bar button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  white-space: nowrap;
}
.pli-full .pl-device {
  max-height: none;
}
.pli-full .pl-device-desktop {
  width: min(94%, 1180px);
  max-width: none;
}
.pli-full .pl-device-desktop .pl-device-screen {
  max-height: calc(100vh - 230px);
}
@media (max-width: 900px) {
}
@media (max-width: 600px) {
  .pli-peek-long {
    display: none;
  }
  .pli-peek-short {
    display: inline;
  }
  #planner .pli-peek-bar {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
  }
  #planner .pli-peek-head {
    min-height: 44px;
  }
  .pli-peek-head .pli-peek-long {
    display: inline;
  }
  .pli-peek-head .pli-peek-short {
    display: none;
  }
  .pli-full-bar strong {
    display: none;
  }
  /* На телефона прегледът е самият екран: без рамката на iPhone/Android, на цялата ширина (MacBook остава в рамка). */
  .pli-full .pl-device-phone,
  .pli-full .pl-device-android {
    align-self: stretch;
    width: auto;
    max-width: none;
    height: calc(100dvh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    aspect-ratio: auto;
    margin: 0 -12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .pli-full .pl-device-phone::before,
  .pli-full .pl-device-phone::after,
  .pli-full .pl-device-android::before,
  .pli-full .pl-device-android::after,
  .pli-full .pl-device-hw {
    display: none;
  }
  .pli-full .pl-device-phone .pl-device-screen,
  .pli-full .pl-device-android .pl-device-screen {
    border-radius: 0;
  }
}
/* UT-08: включеният декор е запълнен и с отметка, изключеният — само контур с празен кръг. */
.pli-toggle-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
}
.pli-toggle-mark svg {
  width: 12px;
  height: 12px;
}
.pli-toggle:has(input:checked) .pli-toggle-mark {
  border-color: var(--gold-deep);
  background: var(--gold-deep);
  color: var(--paper);
}
.pli-toggle:not(:has(input:checked)) {
  background: transparent;
  color: var(--ink-muted);
}
/* UT-04: значката за поканата под името — само където колоната „Покана“ е скрита. */
@media (min-width: 901px) {
  .plg-chip-invite {
    display: none;
  }
  .plg-chips:not(:has(> :not(.plg-chip-invite))) {
    display: none;
  }
}
/* UT-17: отметките в списъка с гости (и „Избери всички“) — 24px. */
.pl-guest-row input[type='checkbox'] {
  width: 24px;
  height: 24px;
}
/* UT-21: плаващият „Преглед“ не покрива последните настройки (отстъп колкото бутона), а съобщенията при отворен
   преглед са под горната му лента, не върху „Публикувай“. */
html.pl-noscroll #portal-status:not(:empty) {
  top: calc(76px + env(safe-area-inset-top));
}

/* UT-12: „Покажи/Скрий“ до паролата на сайта */
.pls-pw {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 6px;
}
.pls-pw input {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}
.pls-pw-toggle {
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
}

/* Сайтът: „Отвори като гост“ горе до състоянието — същата височина като бутона за преглед */
#planner .pls-guest-open {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
/* Лентата за запис с трети бутон: подсказката не се свива в тясна колона, а отива на свой ред */
.pli-savebar {
  flex-wrap: wrap;
}
.pli-savebar .muted {
  flex: 1 1 200px;
}

/* „Оферти и документи“: секцията „Документи“ (отстъпите са в .plo-page / .plo-block по-долу) */
#plm-docs-host[data-embedded] {
  scroll-margin-top: 5rem;
}

/* „Гости“: домакини и служебни екипи (миграция 042) */
.plg-host-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}
.plg-host-row:first-of-type {
  border-top: none;
}
.plg-host-row .check {
  min-height: 44px;
  align-items: center;
}
.plg-host-row input:not([type='checkbox']) {
  min-height: 44px;
}
.plg-chip-kind {
  white-space: nowrap;
}
/* BUG-06: там, където значката под името („Домакин · не се кани“) е видима, видът не се повтаря в колоната. */
@media (max-width: 900px) {
  .plg-chip-kind {
    display: none;
  }
}
.pl-guest-breakdown {
  display: block;
  margin-top: 4px;
  color: var(--gold-ink);
}
@media (max-width: 520px) {
  .plg-host-row {
    grid-template-columns: 1fr;
  }
}

/* Менюта на поканата: карти с име и описание */
#planner .pli-menus {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#planner .pli-menus-title {
  font-weight: 600;
}
/* С 047 — само четене: списъкът и линк към раздел „Меню“. */
#planner .pli-menus-read {
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--cream);
}
#planner .pli-menus-read p {
  margin: 0;
}
#planner .pli-menus-read .pli-menus-live {
  margin-top: 4px;
  font-size: 13px;
}
#planner .pli-menu-name {
  white-space: nowrap;
}
#planner .pli-menus-read .plmn-badge {
  font-size: 10px;
  vertical-align: 1px;
}
#planner .pli-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#planner .pli-menu-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}
#planner .pli-menu-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
#planner .pli-menu-name {
  flex: 1;
  min-width: 0;
}
#planner .pli-menu-label {
  font-size: 13px;
  color: var(--ink-muted);
}
#planner .pli-menu-desc {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
/* .pl-link-button е с min-height: 0 !important – тук зоната за докосване трябва да е 44px (QA BUG-07). */
#planner .pli-menu-add {
  align-self: flex-start;
  min-height: 44px !important;
}
#planner .pli-menu-head .pl-link-button {
  min-width: 44px;
  min-height: 44px !important;
}
#planner .pli-menu-warn {
  display: block;
  color: var(--danger);
}
#planner .pli-menu-warn[hidden] {
  display: none;
}
#planner .pli-menus button[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* „Въпросници“ (1.10.2026): първа част „Въпроси към доставчиците“, втора „За екипа“. Колона до 880px (текстът не е
   на цял екран), превключвател-сегмент, групите — карти с пръстен за прогреса около иконата, кръгли отметки,
   бележката се разгръща след отметката; вторичните действия — текстови бутони с икони. Без сенки, радиус 12px. */
#planner .plq-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 880px;
  min-width: 0;
}
.plq-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#planner .plq-lead {
  margin: 8px 0 0;
  max-width: 58ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 26px;
  color: var(--ink-muted);
}
/* Превключвател на частите: две равни половини, активната — бяла с тънка златиста рамка. */
.plq-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  /* На цялата ширина на колоната (до 880px), двете половини еднакви. */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
#planner .plq-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
#planner .plq-switch button:hover {
  color: var(--ink);
  background: none;
}
#planner .plq-switch button.active {
  background: var(--paper);
  border-color: var(--gold-line);
  color: var(--ink);
}
.plq-switch svg {
  flex: none;
  color: var(--ink-muted);
}
.plq-switch .active svg {
  color: var(--gold);
}
.plq-part-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
#planner .plq-intro {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 24px;
}
.plq-status {
  font-size: 13px;
  color: var(--success);
}
#planner .plq-ro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-card);
  font-size: 14px;
  line-height: 22px;
}
.plq-ro svg {
  flex: none;
  margin-top: 2px;
  color: var(--gold-deep);
}

/* Групи с въпроси към доставчиците */
.plq-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plq-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-width: 0;
  transition: border-color 0.2s;
}
.plq-group[open],
.plq-group.is-done {
  border-color: var(--gold-line);
}
.plq-group > summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 16px 20px;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-card);
}
.plq-group > summary::-webkit-details-marker {
  display: none;
}
.plq-group > summary:hover .plq-chev {
  color: var(--ink);
}
.plq-medal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-deep);
}
.plq-medal > svg:not(.plq-ring) {
  width: 20px;
  height: 20px;
}
.plq-ring {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.plq-ring .plq-ring-fg {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.4s ease;
}
.plq-group.is-done .plq-medal {
  background: var(--gold-soft);
}
.plq-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.plq-name strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}
#planner .plq-name small {
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
#planner .plq-vendor {
  color: var(--gold-deep);
  font-weight: 600;
}
#planner .plq-count {
  color: var(--ink-muted);
}
#planner .plq-group.is-done .plq-count {
  color: var(--success);
  font-weight: 600;
}
.plq-chev {
  display: inline-flex;
  color: var(--ink-muted);
  transition: transform 0.25s ease, color 0.15s;
}
.plq-group[open] .plq-chev {
  transform: rotate(180deg);
}
.plq-body {
  padding: 0 20px 12px;
  border-top: 1px solid var(--line);
}

/* Въпросите: кръгла отметка, текстът — спокоен ред; бележката се разгръща (grid 0fr → 1fr). */
.plq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plq-q {
  position: relative;
  padding: 6px 0;
  border-bottom: 1px solid var(--paper-sunk);
}
.plq-q:last-child {
  border-bottom: none;
}
.plq-ask {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  padding: 10px 0;
  box-sizing: border-box;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
#planner .plq-ask .plq-tick {
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.plq-dot {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.plq-dot svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}
.plq-tick:checked + .plq-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}
.plq-tick:focus-visible + .plq-dot {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
.plq-ask:hover .plq-tick:not(:disabled):not(:checked) + .plq-dot {
  border-color: var(--gold);
}
.plq-tick:disabled,
.plq-ask:has(.plq-tick:disabled) {
  cursor: default;
}
.plq-text {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
#planner .plq-yours {
  margin-top: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold-deep);
}
.plq-custom .plq-ask {
  padding-right: 44px;
}
#planner .plq-del {
  position: absolute;
  top: 6px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-muted);
}
#planner .plq-del:hover {
  color: var(--danger);
  background: none;
}
.plq-note {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.plq-note > div {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.3s;
}
.plq-q.is-open .plq-note {
  grid-template-rows: 1fr;
}
.plq-q.is-open .plq-note > div {
  visibility: visible;
  transition-delay: 0s;
}
#planner .plq-note textarea {
  display: block;
  width: calc(100% - 38px);
  margin: 2px 0 10px 38px;
  padding: 10px 14px;
  box-sizing: border-box;
  min-height: 44px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  font-size: 14px;
  line-height: 21px;
  resize: vertical;
}
#planner .plq-note textarea:focus {
  background: var(--paper);
  border-color: var(--gold);
}
#planner .plq-note-ro {
  margin: 0 0 10px 38px;
  padding: 8px 12px;
  background: var(--cream);
  border-left: 2px solid var(--gold-line);
  border-radius: 0 var(--radius-field) var(--radius-field) 0;
  font-size: 14px;
  line-height: 21px;
  overflow-wrap: anywhere;
}

/* Свой въпрос и вторичните действия */
.plq-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
}
.plq-add[hidden] {
  display: none;
}
#planner .plq-add input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
}
#planner .plq-add-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-muted);
}
.plq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--paper-sunk);
}
#planner .plq-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 2px;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
}
#planner .plq-tool[hidden] {
  display: none;
}
#planner .plq-tool:hover {
  background: none;
  color: var(--ink);
}
.plq-tool svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* „За екипа“: карти на въпросниците със статус и ясно основно действие. */
.plq-forms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.plq-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.plq-form-asked {
  border-color: var(--blush-line);
}
.plq-form-done {
  background: var(--cream);
}
.plq-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.plq-form .plq-medal {
  width: 44px;
  height: 44px;
}
#planner .plq-form h3 {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  overflow-wrap: anywhere;
}
.plq-form p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
}
.plq-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 12px;
}
.plq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper-sunk);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.plq-chip svg {
  width: 14px;
  height: 14px;
}
.plq-chip-draft {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.plq-chip-asked {
  background: var(--blush);
  color: var(--ink-on-blush);
}
.plq-chip-done {
  background: var(--mint);
  color: var(--success);
}

/* Празно състояние */
.plq-empty {
  padding: 32px 24px;
  text-align: center;
  background: var(--cream);
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius-card);
}
#planner .plq-empty p {
  margin: 0 auto;
  max-width: 46ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
}
.plq-ornament {
  display: block;
  width: 64px;
  height: 12px;
  margin: 0 auto 12px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

@media (max-width: 560px) {
  .plq-switch {
    width: 100%;
    border-radius: 16px;
  }
  #planner .plq-switch button {
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    font-size: 13px;
    white-space: normal;
  }
  .plq-group > summary {
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 14px 16px;
  }
  .plq-group .plq-medal,
  .plq-ring {
    width: 44px;
    height: 44px;
  }
  .plq-body {
    padding: 0 16px 8px;
  }
  #planner .plq-note textarea,
  #planner .plq-add input {
    font-size: 16px;
  }
  #planner .plq-note textarea {
    width: 100%;
    margin-left: 0;
  }
  #planner .plq-note-ro {
    margin-left: 0;
  }
  .plq-tools {
    gap: 0 16px;
  }
  .plq-form {
    padding: 18px 18px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plq-note,
  .plq-note > div,
  .plq-chev,
  .plq-ring .plq-ring-fg,
  .plq-dot {
    transition: none;
  }
}
#plq-print {
  display: none;
}
@media print {
  body.plq-printing > *:not(#plq-print) {
    display: none !important;
  }
  body.plq-printing #plq-print {
    display: block;
    color: #000;
    font: 14px/1.5 Montserrat, sans-serif;
  }
  #plq-print h1 {
    font: 600 24px Lora, serif;
    margin: 0 0 4px;
  }
  #plq-print ol {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
  }
  #plq-print li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #bbb;
    break-inside: avoid;
  }
  #plq-print .plq-box {
    flex: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #000;
    text-align: center;
    line-height: 16px;
  }
  #plq-print em {
    display: block;
    font-style: normal;
  }
  #plq-print .plq-line {
    display: block;
    height: 28px;
  }
}

/* „Гости“: хората към госта (миграция 044) — всеки е отделен ред под госта (1.10.2026), с отстъп и по-лека линия;
   в диалога — редактор по редове. */
.pl-guest-row.plg-person-row {
  border-top: 1px dashed var(--line);
}
#planner .plg-person-row .pl-guest-name {
  padding-left: 24px;
}
.plg-person-row .pl-guest-name strong {
  font-weight: 500;
}
.pl-cols label[hidden] {
  display: none;
}
.plg-party-edit {
  margin-top: 12px;
}
.plg-party-title {
  margin: 0 0 8px;
}
.plg-party-title small {
  display: block;
  margin-top: 2px;
}
.plg-party-row {
  display: grid;
  /* Името на цял ред (дълги имена), под него вид, меню и „Махни“. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 8px 12px;
  align-items: end;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.plg-party-row:first-child {
  border-top: none;
}
.plg-party-row input,
.plg-party-row select {
  min-height: 44px;
}
.plg-party-row .pl-link-button {
  min-height: 44px !important;
  align-self: end;
}
.plg-party-row label:first-child {
  grid-column: 1 / -1;
}
/* Броячите, сметнати от списъка с хората, не изглеждат като поле за писане. */
.pl-response input[readonly] {
  background: var(--cream);
  color: var(--ink-muted);
}
/* Телефон (BUG-09): името на цял ред, под него вид и „Махни“, менюто на отделен ред в цялата ширина (не се реже). */
@media (max-width: 600px) {
  .plg-party-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'name name' 'type remove' 'menu menu';
  }
  .plg-party-row label:nth-child(1) {
    grid-area: name;
  }
  .plg-party-row label:nth-child(2) {
    grid-area: type;
  }
  .plg-party-row label:nth-child(3) {
    grid-area: menu;
  }
  .plg-party-row .pl-link-button {
    grid-area: remove;
    justify-self: end;
  }
}
/* Грешка в диалога на госта (над бутоните, role="alert"), при 409 — с бутон „Презареди госта“. */
.pl-dialog .plg-dialog-err {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-color: var(--danger);
}
.pl-dialog .plg-dialog-err[hidden] {
  display: none;
}
.pl-dialog .plg-dialog-err p {
  flex: 1 1 240px;
  margin: 0;
  color: var(--danger);
}

/* ---------- „Оферти и документи“ (planner-offers.js, planner-communication.js, my-requests.js) ----------
   Ред: Запитвания → Оферти → Документи. Секциите имат еднакво заглавие (h2 + брояч + действия вдясно),
   картите — радиус 12px, отстъпи по скалата 4/8 (12/16/20/24), без цветни леви рамки и без сенки. */
#planner .plo-page {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
#planner .plo-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
#planner .plo-page-head .pl-title {
  margin-top: 4px;
}
#planner .plo-lead {
  margin: 8px 0 0;
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 24px;
}
#planner .plo-page-head .button svg,
#planner .plo-small-button svg {
  width: 16px;
  height: 16px;
  flex: none;
}
#planner .plo-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
#planner .plo-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
#planner .plo-sec-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  line-height: 32px;
}
#planner .plo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#planner .plo-count:empty {
  display: none;
}
#planner .plo-sec-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#planner .plo-small-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 13px;
}
#planner .plo-text-button {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#planner .plo-text-button:hover {
  background: none;
  color: var(--ink);
}
#planner a.plo-text-button {
  display: inline-flex;
  align-items: center;
}
#planner a.plo-text-button[hidden] {
  display: none;
}

/* Празно състояние: орнамент (диамант между две линии) и кратък текст в курсив. */
#planner .plo-empty,
#planner #plr-host .mine-empty {
  padding: 32px 24px;
  text-align: center;
  background: var(--cream);
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius-card);
  color: var(--ink-muted);
}
#planner .plo-empty p,
#planner #plr-host .mine-empty p {
  margin: 0 auto;
  max-width: 46ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
}
#planner #plr-host .mine-empty .button {
  margin-top: 16px;
}
.plo-ornament {
  display: block;
  width: 64px;
  height: 12px;
  margin: 0 auto 12px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

/* Карти на офертите: две колони на широк екран. */
#planner .plo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 16px;
  align-items: start;
}
#planner .plo-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
/* Чернова (вижда я само екипът) — пунктир и кремав фон. */
#planner .plo-card.plo-stage-draft {
  background: var(--cream);
  border-style: dashed;
  border-color: var(--line-strong);
}
#planner .plo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
#planner .plo-card-title {
  min-width: 0;
}
#planner .plo-card-title small {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
}
#planner .plo-card-title h3 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 28px;
  overflow-wrap: anywhere;
}
#planner .plo-card-head .pl-chip {
  flex: none;
  white-space: nowrap;
}
#planner .plo-chip-muted {
  background: var(--paper-sunk);
  color: var(--ink-muted);
}
#planner .plo-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#planner .plo-fig {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#planner .plo-fig span {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
#planner .plo-fig strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#planner .plo-fig-main strong {
  font-size: 22px;
  color: var(--gold-ink);
}
#planner .plo-bar {
  height: 4px;
  margin-top: -4px;
}
#planner .plo-next {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
}
#planner .plo-next-label {
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
#planner .plo-next-text {
  min-width: 0;
  font-size: 14px;
}
#planner .plo-next-text small {
  font-size: 12px;
  line-height: 18px;
}
#planner .plo-next .pl-chip {
  align-self: center;
}
#planner .plo-next-done {
  display: flex;
  gap: 8px;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}
#planner .plo-next-done svg,
#planner .plo-accepted svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--success);
}
#planner .plo-accepted {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: none;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}
#planner .plo-accepted b {
  color: var(--ink);
  font-weight: 600;
}
#planner .plo-accepted small {
  display: inline;
  font-size: 12px;
}
/* План за плащанията — сгънат (details); отваря се сам при просрочена вноска. */
#planner details.plo-plan {
  display: block;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
#planner .plo-plan summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
#planner .plo-plan summary::-webkit-details-marker {
  display: none;
}
#planner .plo-plan summary small {
  display: inline;
  font-size: 12px;
  font-weight: 500;
}
#planner .plo-plan summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-muted);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#planner .plo-plan[open] summary svg {
  transform: rotate(90deg);
}
#planner .plo-plan summary:hover span {
  color: var(--gold-deep);
}
#planner .plo-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 0;
}
#planner .plo-items li > .plo-small-button {
  grid-column: 1 / -1;
  justify-self: start;
}
#planner .plo-item-text strong {
  font-size: 14px;
  font-weight: 600;
}
#planner .plo-item-text small {
  font-size: 12px;
  line-height: 18px;
}
#planner .plo-item-sum {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-ink);
  white-space: nowrap;
}
#planner .plo-items .pl-chip {
  align-self: center;
  justify-self: end;
}
#planner .plo-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
}
#planner .plo-card-actions .button {
  padding: 10px 20px;
  font-size: 13px;
}
#planner .plo-card-actions .plo-text-button {
  margin-right: auto;
  order: -1;
}

/* „Запитвания“ (my-requests.js във вградения изглед) — по-компактни карти в стила на секцията. */
#planner #plr-host .mine-toolbar {
  margin: 0;
}
#planner #plr-host #mine-list {
  gap: 12px;
}
#planner #plr-host .mine-card {
  gap: 16px 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
#planner #plr-host .mine-card.is-rejected {
  opacity: 1;
  background: var(--cream);
}
#planner #plr-host .mine-head small {
  display: inline;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
#planner #plr-host .mine-card h3 {
  margin: 4px 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 28px;
}
#planner #plr-host .mine-status {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--paper-sunk);
  color: var(--ink);
}
#planner #plr-host .mine-status.waiting,
#planner #plr-host .mine-status.offer {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
#planner #plr-host .mine-status.accepted,
#planner #plr-host .mine-status.approved {
  background: var(--mint);
  color: var(--success);
}
#planner #plr-host .mine-status.rejected {
  background: var(--paper-sunk);
  color: var(--ink-muted);
}
#planner #plr-host .mine-alert {
  background: var(--cream);
  border: 1px solid var(--gold-line);
  color: var(--gold-ink);
}
#planner #plr-host .mine-steps li small {
  font-size: 11px;
  line-height: 16px;
}
#planner #plr-host .mine-steps li.done > span {
  background: var(--success);
  border-color: var(--success);
}
#planner #plr-host .mine-actions {
  min-width: 200px;
  gap: 4px;
}
#planner #plr-host .mine-actions .button,
#planner #plr-host .mine-actions button {
  font-size: 13px;
}
#planner #plr-host .mine-archive {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Документи: категориите — малки карти в мрежа; всеки файл — ред с иконка по вид, име, данни и действия. */
#planner .plm-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 16px;
  align-items: start;
}
#planner .plm-cat {
  min-width: 0;
  padding: 4px 20px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
#planner .plm-cat h3 {
  margin: 0;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
#planner .plm-cat h3 span {
  color: var(--gold-ink);
  letter-spacing: 0.04em;
}
#planner .plm-docs li.plm-doc {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
#planner .plm-type {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-field);
  background: var(--paper-sunk);
  color: var(--gold-ink);
  overflow: hidden;
}
#planner .plm-type svg {
  width: 22px;
  height: 22px;
}
#planner .plm-type img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}
#planner .plm-doc-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Целият ред е връзка към файла (цел ≥ 44px); бутоните вдясно са над нея. */
#planner .plm-doc-name {
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#planner .plm-doc-name::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-field);
}
#planner .plm-doc:hover .plm-doc-name {
  color: var(--gold-deep);
  text-decoration: underline;
}
#planner .plm-doc-text small {
  font-size: 12px;
  line-height: 18px;
}
#planner .plm-chip-team {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 10px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  color: var(--ink-muted);
  white-space: nowrap;
}
#planner .plm-doc-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
#planner .plm-icon-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-muted);
  transition:
    background-color 0.2s,
    color 0.2s;
}
#planner .plm-icon-link svg {
  width: 18px;
  height: 18px;
}
#planner .plm-icon-link:hover {
  background: var(--paper-sunk);
  color: var(--ink);
}
#planner .plm-doc-del:hover {
  color: var(--danger);
}
#planner .plm-doc-del.plm-doc-del-confirm {
  width: auto;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
}
/* Качване: компактен ред под списъка. */
#planner .plm-upload {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px 16px;
  margin-top: 8px;
  padding: 16px 20px;
  background: var(--cream);
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius-card);
}
#planner .plm-upload-title {
  grid-column: 1 / -1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 24px;
}
#planner .plm-upload-title svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
#planner .plm-up-cat {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
#planner .plm-up-cat select {
  margin: 4px 0 0;
  min-height: 44px;
}
#planner .plm-up-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  cursor: pointer;
}
#planner .plm-up-file:hover {
  border-color: var(--ink-muted);
}
#planner .plm-up-file:focus-within {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}
#planner .plm-up-label,
#planner .plm-up-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
#planner .plm-file-btn {
  flex: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper-sunk);
  font-size: 13px;
  font-weight: 600;
}
#planner .plm-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink-muted);
}
#planner .plm-up-check {
  margin: 0;
  min-height: 44px;
  font-size: 13px;
}
#planner .plm-upload > .primary {
  min-height: 44px;
}
#planner .plm-up-types {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 18px;
}

@media (max-width: 600px) {
  #planner .plo-page {
    gap: 32px;
  }
  #planner .plo-sec-head h2 {
    font-size: 22px;
    line-height: 28px;
  }
  #planner .plo-card,
  #planner #plr-host .mine-card {
    padding: 16px;
  }
  #planner .plo-figs {
    gap: 8px;
  }
  #planner .plo-fig strong {
    font-size: 16px;
  }
  #planner .plo-fig-main strong {
    font-size: 18px;
  }
  #planner .plo-card-actions .button {
    flex: 1 1 140px;
    padding: 10px 12px;
  }
  #planner .plo-card-actions .plo-text-button {
    flex-basis: 100%;
    text-align: left;
  }
  #planner .plm-cat {
    padding: 4px 16px 8px;
  }
  /* „Запитвания“ на телефон: ходът без пояснителните редове, двата бутона един до друг. */
  #planner #plr-host .mine-steps {
    row-gap: 8px;
  }
  #planner #plr-host .mine-steps li small {
    display: none;
  }
  #planner #plr-host .mine-card h3 {
    margin-bottom: 8px;
  }
  #planner #plr-host .mine-actions {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }
  #planner #plr-host .mine-actions .button,
  #planner #plr-host .mine-actions button {
    padding: 8px 12px;
    font-size: 12px;
  }
  #planner #plr-host .mine-actions .mine-archive {
    grid-column: 1 / -1;
  }
  #planner .plm-docs li.plm-doc {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }
  #planner .plm-chip-team {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  #planner .plm-doc-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  /* На телефон целият ред отваря файла — отделната иконка „Отвори“ не е нужна. */
  #planner .plm-doc-actions a.plm-icon-link {
    display: none;
  }
  #planner .plm-upload {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  #planner .plm-upload > .primary {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  #planner .plo-plan summary svg {
    transition: none;
  }
}

/* Падащо меню с „Друго…“ в диалозите на гост, домакин и екип (plgPickHtml): менюто, под него полето за свободен
   текст (само при „Друго…“) и подсказката – в една клетка на формата, без двойни отстъпи. */
.plg-pick {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.plg-pick select,
.plg-pick input {
  min-height: 44px;
}
.plg-pick .plg-pick-other {
  margin-top: 0;
}
.plg-pick-other[hidden] {
  display: none;
}
.plg-pick .pl-field-hint {
  margin-top: -6px;
}
/* Без менюта в поканата: етикетът „Меню“ и бележка вместо поле. */
.plg-pick-label {
  display: block;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.plg-pick-note {
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.45;
}
/* ---------- Раздел „Меню“ (planner-menu.js, docs/spec/event-menus.md) ----------
   Горе бележките (без миграция, непубликувани менюта от черновата), после картите с менютата вляво и бройките и
   „За ресторанта“ вдясно; на телефон — едно под друго (менютата, бройките, „За ресторанта“). Само токените от style.css. */
#planner .plmn {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#planner .plmn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}
#planner .plmn-layout-one {
  grid-template-columns: minmax(0, 720px);
}
#planner .plmn-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 16px;
}
#planner .plmn-muted,
#planner .plmn-hint {
  color: var(--ink-muted);
  margin: 0;
  font-size: 14px;
}
#planner .plmn-hint {
  font-size: 13px;
}
#planner .plmn-skeleton {
  min-height: 140px;
  background: linear-gradient(90deg, var(--paper-sunk), var(--cream), var(--paper-sunk));
  border-color: var(--paper-sunk);
}
#planner .plmn-note p,
#planner .plmn-off p,
#planner .plmn-draft p,
#planner .plmn-error p {
  margin: 0 0 12px;
}
#planner .plmn-draft {
  background: var(--gold-soft);
  border-color: var(--gold-line);
}
/* Празно */
#planner .plmn-empty {
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--cream);
  border-color: var(--gold-line);
  max-width: 720px;
}
#planner .plmn-empty h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 36px;
  margin: 0;
}
#planner .plmn-empty p {
  margin: 0;
  max-width: 460px;
}
#planner .plmn-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--paper);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#planner .plmn-empty-icon svg {
  width: 26px;
  height: 26px;
}
#planner .plmn-empty-actions {
  justify-content: center;
  align-items: flex-start;
  margin-top: 8px;
}
#planner .plmn-add-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* „Започни с примерните“ и под него кои са (UX P2-2). */
#planner .plmn-samples {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
#planner .plmn-samples small {
  font-size: 12px;
}
/* Картите с менютата */
#planner .plmn-list-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
#planner .plmn-list-head h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0;
}
#planner .plmn-grid {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
#planner .plmn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  transition:
    border-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
}
#planner .plmn-card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 6px 18px rgba(41, 39, 37, 0.06);
}
#planner .plmn-card-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 18px 18px 10px;
  min-height: 0;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
#planner .plmn-card-open:hover {
  background: none;
}
#planner .plmn-card-open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
/* Видът е надслов над името (визуално P2-3): редовете с имената са на една височина и в картите без значка. */
#planner .plmn-card-head {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-height: 50px;
}
#planner .plmn-card-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
/* „Какво включва“ — първите 2 реда (по редове, както в поканата). */
#planner .plmn-card-details {
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-muted);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
/* Без описание — покана за действие, не липса (UX P2-3). */
#planner .plmn-card-details.is-empty {
  color: var(--gold-deep);
  font-weight: 600;
}
#planner .plmn-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px 10px 18px;
  margin-top: auto;
}
/* Децата на отделен ред (визуално P2-2). */
#planner .plmn-card-n {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-ink);
}
#planner .plmn-card-n small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
}
#planner .plmn-move {
  display: inline-flex;
  gap: 2px;
}
#planner .plmn-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}
#planner .plmn-icon:hover:not(:disabled) {
  background: var(--cream);
  color: var(--ink);
}
#planner .plmn-icon:disabled {
  opacity: 0.3;
}
#planner .plmn-card-add {
  border: 1px dashed var(--line-strong);
  background: var(--cream);
}
#planner .plmn-add {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  background: none;
  border: none;
  border-radius: 12px;
  color: var(--gold-deep);
  font-weight: 600;
}
#planner .plmn-add:hover {
  background: var(--gold-soft);
}
/* Значките на вида: без емоджи, само текст с цвят от токените. */
.plmn-badge {
  display: inline-block;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 35px;
  background: var(--paper-sunk);
  color: var(--ink);
  white-space: nowrap;
}
.plmn-badge-kid {
  background: var(--blush);
  color: var(--ink-on-blush);
}
.plmn-badge-special {
  background: var(--mint);
  color: var(--success);
}
/* Бройките */
#planner .plmn-counts {
  list-style: none;
  margin: 0;
  padding: 0;
}
#planner .plmn-count {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
#planner .plmn-count-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
#planner .plmn-count-n {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}
#planner .plmn-count-n strong {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  font-variant-numeric: lining-nums tabular-nums;
}
#planner .plmn-count-n small {
  color: var(--ink-muted);
  font-size: 12px;
}
#planner .plmn-count.is-zero .plmn-count-n strong {
  color: var(--ink-muted);
}
#planner .plmn-count-none .plmn-count-name {
  color: var(--ink-muted);
  font-style: italic;
}
/* Изборите с меню, което го няма: бележка за подреждане, не авария — топъл тон (UX P1-2, визуално P2-12). */
#planner .plmn-sub {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}
#planner .plmn-orphan .plmn-count-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#planner .plmn-orphan-guest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
#planner .plmn-fix {
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}
#planner .plmn-later {
  margin-top: 4px;
}
#planner .plmn-live a {
  color: var(--gold-deep);
  font-weight: 600;
  margin-left: 4px;
}
#planner .plmn-orphans .plmn-hint {
  margin-top: 8px;
}
#planner .plmn-total {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}
#planner .plmn-total strong {
  color: var(--ink);
}
/* „За ресторанта“ */
#planner .plmn-restaurant {
  background: var(--cream);
  border-color: var(--gold-line);
}
#planner .plmn-rest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Двата бутона по цялата ширина, един под друг (визуално P2-14). */
#planner .plmn-rest-actions .button {
  min-height: 44px;
  flex: 1 1 100%;
}
#planner .plmn-rest-people,
#planner .plmn-file {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 14px;
}
#planner .plmn-rest-people a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
  font-weight: 600;
  min-height: 44px;
}
#planner .plmn-rest-people small {
  color: var(--ink-muted);
  flex-basis: 100%;
  margin-top: -8px;
  padding-left: 26px;
}
#planner .plmn-file {
  flex-wrap: nowrap;
  align-items: flex-start;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px solid var(--gold-line);
}
#planner .plmn-file svg {
  flex: none;
  margin-top: 2px;
}
#planner .plmn-file .pl-link-button {
  display: inline;
  font-size: 14px;
}
/* Диалогът за меню (извън #planner — споделеният <dialog>) */
.plmn-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 14px;
}
.plmn-dialog input[type='text'],
.plmn-dialog input:not([type]),
.plmn-dialog textarea,
.plmn-dialog select {
  font: inherit;
  font-weight: 400;
}
.plmn-dialog textarea {
  resize: vertical;
  min-height: 120px;
}
.plmn-dialog .plmn-kinds {
  border: none;
  padding: 0;
  margin: 0 0 12px;
}
.plmn-dialog .plmn-kinds legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0;
  margin-bottom: 6px;
}
.plmn-kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plmn-dialog label.plmn-kind {
  margin: 0;
  flex-direction: row;
}
.plmn-kind input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.plmn-kind span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 35px;
  font-weight: 500;
  cursor: pointer;
  background: var(--paper);
}
.plmn-kind input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.plmn-kind input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.plmn-dialog .plmn-note {
  margin: -6px 0 14px;
  font-size: 13px;
  color: var(--gold-ink);
}
.plmn-special {
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 14px;
}
.plmn-special .plmn-note {
  margin: 0 0 10px;
  color: var(--ink);
}
.plmn-ready {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
}
.pl-dialog .plmn-chip {
  min-height: 36px;
  padding: 6px 14px;
  font-weight: 500;
  font-size: 13px;
  background: var(--paper);
  border: 1px solid var(--gold-line);
}
.plmn-special .plmn-warn {
  margin: 0;
  font-size: 13px;
  color: var(--ink-on-blush);
}
.plmn-dialog .plmn-hint,
.plmn-dialog .plmn-muted {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.plmn-dialog .plmn-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 14px;
}
.pl-dialog .plmn-delete {
  background: none;
  border-color: transparent;
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pl-dialog .plmn-delete:hover {
  background: var(--blush);
  border-color: transparent;
}
.plmn-confirm h2 {
  font-size: 22px;
  line-height: 30px;
  text-wrap: balance;
}
.plmn-choices {
  border: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plmn-dialog label.plmn-choice {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 44px;
  font-weight: 500;
}
.plmn-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}
.plmn-choices select {
  margin: 0 0 6px 30px;
  min-height: 44px;
  max-width: calc(100% - 30px);
}
.plmn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 900px) {
  /* Една колона (UX P1-1): менютата, после бройките, после „За ресторанта“ — булката идва най-често да промени меню. */
  #planner .plmn-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #planner .plmn-main,
  #planner .plmn-side {
    display: contents;
  }
  #planner .plmn-list-wrap {
    order: 1;
  }
  #planner .plmn-counts-card,
  #planner .plmn-side > .plmn-later {
    order: 2;
  }
  #planner .plmn-restaurant {
    order: 3;
  }
}
@media (max-width: 600px) {
  #planner .plmn-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #planner .plmn-add {
    min-height: 64px;
  }
  #planner .plmn-empty {
    padding: 28px 18px;
  }
  #planner .plmn-empty h2 {
    font-size: 24px;
    line-height: 32px;
  }
  #planner .plmn-empty-actions button {
    width: 100%;
  }
  #planner .plmn-empty-actions .plmn-samples {
    width: 100%;
  }
  /* Една колона: картите не се подравняват една до друга, затова без празния ред над името. */
  #planner .plmn-card-head {
    min-height: 0;
  }
  .plmn-dialog .pl-actions button {
    flex: 1 1 auto;
  }
  /* Бутоните на диалога — закрепени долу, „Запази“ се вижда и над клавиатурата (UX P2-8). Отстъпите следват .pl-dialog. */
  .plmn-dialog > .pl-actions {
    position: sticky;
    bottom: -20px;
    z-index: 1;
    margin: 16px -16px -20px;
    padding: 12px 16px 20px;
    background: var(--paper);
    box-shadow: 0 -1px 0 var(--line);
  }
  /* Трите вида в един ред на телефона. */
  .plmn-kind-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .plmn-kind span {
    justify-content: center;
    padding: 0 6px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
  }
}
/* „Гости“: линкът „Виж в „Меню““ след реда с менютата. */
#planner .pl-menus-open {
  display: inline;
  margin-left: 6px;
  white-space: nowrap;
}
