/* ============================================
   Dreamers Assistant — Mini App
   ============================================ */

:root {
  --accent: #015c31;
  --accent-light: #0a8a4a;
  --accent-dark: #003d20;
  --bg: #17212b;
  --bg-card: #1f2b38;
  --bg-hover: #2a3a4a;
  --text: #ffffff;
  --text-muted: #8b9bb0;
  --border: #2a3a4a;
  --success: #4fd1c5;
  --warning: #f6ad55;
  --danger: #fc8181;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + 30px + var(--safe-bottom));
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--nav-height) + 80px + var(--safe-bottom));
  }
}

/* ВЕРХНЯЯ ПАНЕЛЬ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-card);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.app-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.app-user {
  font-size: 13px;
  color: var(--text-muted);
}

/* КОНТЕНТ */
.app-content {
  padding: 16px;
}

.page {
  display: none;
  animation: fadeIn 0.2s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page h2 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--text);
}

.page h3 {
  font-size: 15px;
  margin: 16px 0 10px;
  color: var(--text);
  font-weight: 600;
}

/* ПЛЕЙСХОЛДЕРЫ */
.placeholder-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.placeholder-emoji {
  font-size: 40px;
  margin-bottom: 10px;
}

/* ВКЛАДКИ */
.tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--accent);
  color: var(--text);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ПОЛЯ ОПРОСА */
.field {
  margin-bottom: 18px;
}

.field-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.options button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.options button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.options button:active {
  transform: scale(0.97);
}

/* ТЕКСТОВОЕ ПОЛЕ */
.text-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border 0.15s;
  margin-bottom: 8px;
}

.text-input:focus {
  border-color: var(--accent-light);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.plan-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

/* КНОПКА */
.submit-btn {
  width: 100%;
  background: var(--accent);
  color: var(--text);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 20px;
  transition: background 0.15s;
  font-family: inherit;
}

.submit-btn:disabled {
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: not-allowed;
}

.submit-btn:not(:disabled):active {
  background: var(--accent-dark);
}

#submitResult {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-card);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  color: var(--text);
}

#submitResult:empty { display: none; }

/* КОЛЬЦО */
.score-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 10px auto 12px;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--bg-card);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

.score-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.score-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ГРАФИК */
#chart {
  width: 100%;
  height: 180px;
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 8px;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* ИСТОРИЯ */
.history-row {
  background: var(--bg-card);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text);
}

.history-row b { color: var(--accent-light); }

/* ГЛАВНАЯ */
.home-hello {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 20px;
  color: var(--text);
}

.home-hi {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.home-streak {
  font-size: 14px;
  opacity: 0.95;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.quick-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-btn:active {
  transform: scale(0.97);
  background: var(--bg-hover);
}

.quick-emoji { font-size: 26px; line-height: 1; }

.quick-label {
  font-size: 12px;
  text-align: center;
  line-height: 1.3;
  color: var(--text-muted);
}

.today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.today-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px 6px;
  text-align: center;
  border: 1px solid var(--border);
}

.today-emoji { font-size: 22px; line-height: 1; margin-bottom: 6px; }

.today-text {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.today-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.today-status.done { color: var(--success); }
.today-status.empty { color: var(--text-muted); }

/* РЕЗУЛЬТАТ */
.content-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 60px;
}

.content-result-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.copy-btn {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.copy-btn:active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(0.98);
}

.copy-btn:disabled { opacity: 0.8; cursor: default; }

.error-text {
  background: rgba(252, 129, 129, 0.12);
  border: 1px solid var(--danger);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  color: var(--text);
  margin-top: 16px;
}

/* ЦЕЛИ */
.goals-hint {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  border-left: 3px solid var(--accent);
}

.loading-text {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-text {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.goal-card:active {
  transform: scale(0.98);
  background: var(--bg-hover);
}

.goal-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.goal-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 10px;
}

.goal-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.goal-progress-wrap { margin: 12px 0 18px; }

.goal-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--bg);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
}

.goal-progress-bar.small { height: 6px; margin-bottom: 0; }

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 5px;
  transition: width 0.4s ease;
}

.goal-progress-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.15s;
}

.back-btn:active {
  background: var(--bg-hover);
  transform: scale(0.97);
}

.goal-detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.goal-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.goal-step:active {
  background: var(--bg-hover);
  transform: scale(0.98);
}

.goal-step.done { opacity: 0.65; }

.goal-step.done .goal-step-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.goal-step-check { font-size: 18px; line-height: 1.2; flex-shrink: 0; }

.goal-step-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

#goalSteps { padding-bottom: 40px; }

@media (max-width: 768px) {
  #goalSteps { padding-bottom: 100px; }
}

/* ПРОГРЕСС */
.progress-streak-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text);
}

.progress-streak-emoji { font-size: 36px; line-height: 1; margin-bottom: 6px; }

.progress-streak-value {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.progress-streak-label {
  font-size: 13px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.progress-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 6px;
  text-align: center;
}

.progress-stat-emoji { font-size: 22px; line-height: 1; margin-bottom: 6px; }

.progress-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.progress-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

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

.achievement-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  border-left: 3px solid var(--accent);
}

/* ПРОФИЛЬ */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 0; }

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-username {
  font-size: 13px;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.profile-id { font-size: 12px; color: var(--text-muted); }

.profile-sub {
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.profile-sub.sub-active {
  background: rgba(79, 209, 197, 0.08);
  border-color: var(--success);
}

.profile-sub.sub-inactive {
  background: rgba(252, 129, 129, 0.08);
  border-color: var(--danger);
}

.profile-sub-status {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-sub-detail { font-size: 13px; color: var(--text-muted); }

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}

.profile-row-label { color: var(--text-muted); }
.profile-row-value { color: var(--text); font-weight: 600; }

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 6px;
  text-align: center;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.profile-hint {
  padding: 12px;
  background: var(--bg-card);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  margin-bottom: 20px;
}

/* ============================================
   МОИ ПЛАНЫ
   ============================================ */

.plan-textarea {
  min-height: 100px;
  resize: vertical;
}

.plan-parsed-card {
  background: rgba(79, 209, 197, 0.08);
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.plan-parsed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-parsed-icon { font-size: 20px; }

.plan-parsed-label {
  font-size: 11px;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.plan-parsed-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.plan-parsed-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

.plan-parsed-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.plan-meta-item {
  color: var(--accent-light);
  font-weight: 500;
}

.plans-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.plans-stats-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.plans-stats-text b { color: var(--accent-light); }

.plans-stats-bar {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.plans-stats-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.15s;
}

.plan-card.done { opacity: 0.6; }

.plan-card.done .plan-card-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.plan-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-check {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  font-family: inherit;
  color: var(--text);
}

.plan-check:active {
  transform: scale(0.9);
}

.plan-card-content { flex: 1; min-width: 0; }

.plan-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
}

.plan-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.plan-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
}

.plan-meta-tag {
  color: var(--accent-light);
  font-weight: 500;
}

.plan-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
  flex-shrink: 0;
}

.plan-delete-btn:active {
  background: rgba(252, 129, 129, 0.2);
  color: var(--danger);
}

/* НИЖНЯЯ НАВИГАЦИЯ (7 кнопок) */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 8px 0 calc(12px + var(--safe-bottom)) 0;
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  pointer-events: auto;
}

.nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
  min-height: 48px;
  min-width: 40px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 10000;
}

.nav-emoji {
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.nav-label {
  font-size: 9px;
  font-weight: 500;
  pointer-events: none;
}

.nav-btn.active { color: var(--accent-light); }

.nav-btn:active {
  transform: scale(0.92);
  opacity: 0.85;
}

/* СКРОЛЛБАР */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}/* Кнопки действий в карточке плана */
.plan-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.plan-delete-action {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.plan-delete-action:active {
  background: rgba(252, 129, 129, 0.15);
  border-color: var(--danger);
  color: var(--danger);
  transform: scale(0.97);
}
/* ============================================
   МОИ ПЛАНЫ — Предпросмотр
   ============================================ */

.plan-preview-card {
  background: linear-gradient(135deg, rgba(1, 92, 49, 0.15), rgba(10, 138, 74, 0.08));
  border: 1px solid var(--accent-light);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.plan-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.plan-preview-icon { font-size: 20px; }

.plan-preview-label {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-preview-body {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.plan-preview-type {
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.plan-preview-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.plan-preview-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.plan-preview-meta {
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 500;
  margin-top: 6px;
}

.plan-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-action-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.plan-save-btn {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.plan-save-btn:active {
  background: var(--accent-dark);
  transform: scale(0.98);
}

.plan-edit-btn {
  background: var(--bg-card);
  color: var(--text);
}

.plan-edit-btn:active {
  background: var(--bg-hover);
  transform: scale(0.98);
}

.plan-cancel-btn {
  background: transparent;
  color: var(--text-muted);
}

.plan-cancel-btn:active {
  background: rgba(252, 129, 129, 0.15);
  color: var(--danger);
  border-color: var(--danger);
  transform: scale(0.98);
}

/* Успех */
.plan-success-card {
  background: rgba(79, 209, 197, 0.12);
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  color: var(--text);
}

.plan-success-card b {
  color: var(--success);
}

/* Подсказка при "Изменить" */
.plan-edit-hint {
  background: rgba(246, 173, 85, 0.12);
  border: 1px solid var(--warning);
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
/* ============================================
   МОИ ПЛАНЫ — Выбор напоминания
   ============================================ */

.plan-reminder-section {
  margin: 14px 0;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.plan-reminder-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-reminder-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reminder-opt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.reminder-opt:active {
  transform: scale(0.96);
}

.reminder-opt.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}
/* ============================================
   МОИ ПЛАНЫ — Задачи внутри плана
   ============================================ */

/* Задачи в предпросмотре */
.plan-preview-items {
  margin: 12px 0;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.plan-preview-items-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-preview-item {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  line-height: 1.4;
}

/* Прогресс по задачам в карточке */
.plan-items-progress {
  margin-top: 10px;
}

.plan-items-progress-text {
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.plan-items-progress-bar {
  width: 100%;
  height: 5px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.plan-items-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Кнопка "Показать задачи" */
.plan-expand-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s;
}

.plan-expand-btn:active {
  background: var(--bg-hover);
  color: var(--text);
  transform: scale(0.98);
}

/* Контейнер с задачами */
.plan-items-container {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* Отдельная задача */
.plan-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: all 0.15s;
}

.plan-item:active {
  background: var(--bg-hover);
}

.plan-item.done {
  opacity: 0.6;
}

.plan-item.done .plan-item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.plan-item-check {
  background: transparent;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  font-family: inherit;
  color: var(--text);
  flex-shrink: 0;
}

.plan-item-check:active {
  transform: scale(0.9);
}

.plan-item-title {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.plan-item-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
  flex-shrink: 0;
}

.plan-item-delete:active {
  background: rgba(252, 129, 129, 0.2);
  color: var(--danger);
}
/* ============================================
   РАСПИСАНИЕ
   ============================================ */

/* Переключатель: Список / Расписание */
.plans-mode-switch {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.mode-btn.active {
  background: var(--accent);
  color: var(--text);
}

.mode-btn:active {
  transform: scale(0.97);
}

/* Навигация по дням */
.schedule-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.schedule-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.schedule-nav-btn:active {
  background: var(--bg-hover);
  transform: scale(0.95);
}

.schedule-nav-date {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-nav-date:active {
  background: var(--bg-hover);
  transform: scale(0.98);
}

/* Быстрые даты */
.schedule-quick-dates {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.quick-date-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-date-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.quick-date-btn:active {
  transform: scale(0.96);
}

/* Событие в расписании */
.schedule-event {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.schedule-event:active {
  background: var(--bg-hover);
  transform: scale(0.99);
}

.schedule-event.done {
  opacity: 0.6;
}

.schedule-event.done .schedule-event-title span {
  text-decoration: line-through;
  color: var(--text-muted);
}

.schedule-event-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  min-width: 50px;
  flex-shrink: 0;
  line-height: 1.4;
}

.schedule-event-body {
  flex: 1;
  min-width: 0;
}

.schedule-event-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.schedule-event-title .plan-check {
  font-size: 16px;
  padding: 0;
  margin-top: -1px;
}

.schedule-event-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 4px;
  word-break: break-word;
}

.schedule-event-items-count {
  font-size: 11px;
  color: var(--accent-light);
  font-weight: 500;
}

/* Задачи внутри события в расписании */
.schedule-event + .plan-items-container {
  margin-top: -8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--border);
  border-top: none;
}
/* ============================================
   РАСПИСАНИЕ — Переключатель День / Неделя
   ============================================ */

.schedule-view-switch {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.schedule-view-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.schedule-view-btn.active {
  background: var(--accent);
  color: var(--text);
}

.schedule-view-btn:active {
  transform: scale(0.97);
}

/* Быстрые недели */
.quick-week-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-week-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.quick-week-btn:active {
  transform: scale(0.96);
}

/* ============================================
   НЕДЕЛЬНЫЙ ВИД
   ============================================ */

.schedule-week-day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.schedule-week-day.today {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(1, 92, 49, 0.15), rgba(10, 138, 74, 0.05));
}

.schedule-week-day-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.schedule-week-day.today .schedule-week-day-title {
  color: var(--accent-light);
}

.schedule-week-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}

.schedule-week-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.schedule-week-event:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.schedule-week-event.done {
  opacity: 0.55;
}

.schedule-week-event.done .schedule-week-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.schedule-week-time {
  font-weight: 700;
  color: var(--accent-light);
  min-width: 44px;
  flex-shrink: 0;
  font-size: 12px;
}

.schedule-week-event .plan-check {
  font-size: 15px;
  padding: 0;
  flex-shrink: 0;
}

.schedule-week-title {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.schedule-week-items {
  font-size: 11px;
  color: var(--accent-light);
  font-weight: 500;
  flex-shrink: 0;
}
/* ============================================
   ЛЮДИ / КЛИЕНТЫ
   ============================================ */

/* Карточка в списке */
.person-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.person-list-item:active {
  background: var(--bg-hover);
  transform: scale(0.99);
}

.person-list-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.person-list-info {
  flex: 1;
  min-width: 0;
}

.person-list-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-list-phone {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.person-list-next {
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-list-next.muted {
  color: var(--text-muted);
  font-weight: 400;
}

.person-list-arrow {
  font-size: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Заголовок карточки человека */
.person-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.person-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.person-card-info {
  flex: 1;
  min-width: 0;
}

.person-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card-phone {
  font-size: 13px;
  color: var(--text-muted);
}

/* Общая заметка */
.person-general-note {
  background: rgba(246, 173, 85, 0.1);
  border: 1px solid var(--warning);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* Кнопки действий */
.person-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.person-action-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.person-action-btn:active {
  background: var(--bg-hover);
  transform: scale(0.97);
}

.person-action-btn.person-action-danger:active {
  background: rgba(252, 129, 129, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

/* Заметки о человеке */
.person-note-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.person-note-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.person-note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.person-note-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
}

.person-note-delete:active {
  background: rgba(252, 129, 129, 0.2);
  color: var(--danger);
}

/* Встречи человека */
.person-plan-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.15s;
}

.person-plan-item.done {
  opacity: 0.6;
}

.person-plan-item.done .person-plan-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.person-plan-title {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.person-plan-meta {
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 500;
}
/* ============================================
   ЧТО МНЕ СЕГОДНЯ?
   ============================================ */

/* Кнопка на главной */
.today-plan-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(1, 92, 49, 0.3);
}

.today-plan-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(1, 92, 49, 0.4);
}

.today-plan-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.today-plan-text {
  font-size: 18px;
  font-weight: 700;
}

.today-plan-hint {
  font-size: 13px;
  opacity: 0.9;
}

/* Резюме дня */
.today-summary {
  background: rgba(1, 92, 49, 0.12);
  border-left: 3px solid var(--accent-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* Карточка действия */
.today-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 0.25s;
}

.today-action-card.done {
  opacity: 0.55;
  background: rgba(79, 209, 197, 0.08);
  border-color: var(--success);
}

.today-action-card.done .today-action-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.today-action-card.skipped {
  opacity: 0;
  transform: translateX(-20px);
}

.today-action-top {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.today-action-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.today-action-content {
  flex: 1;
  min-width: 0;
}

.today-action-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
}

.today-action-time {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 2px;
}

.today-action-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Кнопки действий */
.today-action-buttons {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.today-action-btn {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.today-action-btn:active {
  transform: scale(0.97);
}

.today-action-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.today-action-done {
  background: rgba(1, 92, 49, 0.15);
  border-color: var(--accent);
  color: var(--text);
}

.today-action-skip {
  color: var(--text-muted);
}
/* ============================================
   ЗАМЕТКИ
   ============================================ */

/* Контейнер заметок */
#notesMode {
  padding-top: 4px;
}

#notesMode h3 {
  margin-top: 8px;
  margin-bottom: 12px;
}

/* Поле ввода заметки */
#noteInput {
  min-height: 80px;
}

/* Список заметок */
#notesList {
  margin-top: 16px;
}

/* Карточка заметки */
.note-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: all 0.15s;
}

.note-item:active {
  background: var(--bg-hover);
  transform: scale(0.99);
}

.note-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.note-actions {
  display: flex;
  gap: 4px;
}

.note-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.15s;
}

.note-action:active {
  background: var(--bg-hover);
}

.note-edit:active {
  color: var(--accent-light);
}

.note-delete:active {
  background: rgba(252, 129, 129, 0.2);
  color: var(--danger);
}

/* Кнопка сохранения заметки */
#noteSaveBtn {
  margin-bottom: 12px;
}

/* Поле поиска */
#notesSearchInput {
  margin-top: 8px;
}/* ============================================
   МОИ ПЛАНЫ — Повторы (дни недели)
   ============================================ */

.plan-recurrence-section {
  margin: 14px 0;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.plan-recurrence-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-recurrence-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Кнопки: Не повторять / Каждый день / По будням / Каждую неделю / Выбрать дни */
.recurrence-opt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.recurrence-opt:active {
  transform: scale(0.96);
}

.recurrence-opt.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

/* Дни недели */
.recurrence-weekdays {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.rec-day {
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rec-day:active {
  transform: scale(0.9);
}

.rec-day.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(1, 92, 49, 0.4);
}

/* ============================================
   МОИ ПЛАНЫ — Персона в превью
   ============================================ */

.plan-preview-person {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
}

.person-hint-exists {
  font-size: 11px;
  color: var(--success);
  background: rgba(79, 209, 197, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.person-hint-new {
  font-size: 11px;
  color: var(--warning);
  background: rgba(246, 173, 85, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}