.plans-scroll { height: calc(100% - var(--nav-height) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; }
.plans-stack { display: flex; flex-direction: column; gap: var(--stack-gap); padding: max(20px, env(safe-area-inset-top)) var(--page-inset) 30px; }
.plans-stack > h1, .plans-header h1 { font-size: 25px; line-height: 34px; font-weight: 800; }
.plans-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plans-header h1 { flex: 1; min-width: 0; }
.plans-header:has(.event-icon-button) h1 { font-size: 21.5px; line-height: 29px; text-align: center; }
.plans-avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: transparent; }
.plans-avatar img { display: block; border-radius: inherit; object-fit: cover; }
.plans-example-note { margin-top: -12px; font-size: 11px; line-height: 16px; color: var(--color-text-muted); }
.plans-segments, .plans-view-toggle { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-radius: 24px; background: #efe6fb; }
.plans-segments button, .plans-view-toggle button, .plans-role-filter button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--button-height); padding: 10px 8px; border-radius: 24px; background: transparent; color: var(--color-secondary-text); font-size: 13.7px; line-height: 20px; font-weight: 700; }
.plans-segments button[aria-pressed="true"], .plans-role-filter button[aria-pressed="true"] { background: linear-gradient(155deg, #b77af2, #8543d8); color: white; }
.plans-view-toggle button[aria-pressed="true"] { color: #873fce; background: #f5ecff; box-shadow: 0 3px 10px rgb(133 67 216 / 12%); }
.plans-view-toggle .form-icon { width: 22px; height: 22px; flex-basis: 22px; }
.plans-role-filter { display: grid; grid-template-columns: .7fr 1.15fr 1fr; gap: 8px; }
.plans-role-filter button { font-size: 12px; line-height: 18px; padding: 9px 6px; background: #eee4fa; }
.plans-calendar { border: 1px solid white; border-radius: var(--radius-card); padding: 12px; background: linear-gradient(145deg, #fffdfd, #f8f3ff); box-shadow: var(--shadow-card); }
.plans-calendar > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.plans-calendar h2 { font-size: 18px; line-height: 25px; font-weight: 800; text-align: center; }
.plans-calendar > header button { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: #f0e7fb; }
.plans-calendar > header .form-icon { width: 19px; height: 19px; }
.plans-calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plans-calendar th { font-size: 11.5px; line-height: 16px; font-weight: 600; color: var(--color-text-muted); height: 28px; }
.plans-calendar td { padding: 2px 0; text-align: center; height: 40px; }
.plans-calendar td button { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 38px; height: 36px; margin: auto; border-radius: 18px; background: transparent; font-size: 14px; line-height: 20px; }
.plans-calendar .has-plans { font-weight: 800; background: #f0e5fd; }
.plans-calendar .has-plans i { position: absolute; bottom: 3px; width: 4px; height: 4px; background: #9b53df; border-radius: 50%; }
.plans-calendar .next-event-day, .plans-calendar [aria-pressed="true"] { color: white; background: linear-gradient(140deg, #b679ed, #8540d4); }
.plans-calendar .next-event-day i, .plans-calendar [aria-pressed="true"] i { background: white; }
.plans-calendar [aria-current="date"] { outline: 1px solid #ac83d6; outline-offset: -2px; }
.calendar-reset { display: block; background: transparent; color: #8e4bcb; padding: 8px 4px; min-height: 36px; font-size: 12px; margin-top: 6px; }
.plans-results, .plans-undated { display: flex; flex-direction: column; gap: 14px; }
.plans-results > h2, .plans-undated > h2 { font-size: 21.5px; line-height: 29px; font-weight: 800; }
.plans-cards { display: flex; flex-direction: column; gap: var(--stack-gap); }
.plan-overview-card { min-width: 0; }
.plan-overview-cover { position: relative; height: 120px; }
.plan-overview-cover > img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 26px 26px 0 0; }
.plan-role, .plan-category { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 5px; padding: 5px 9px; min-height: 28px; border-radius: 18px; font-size: 11px; line-height: 16px; font-weight: 700; background: #f1e5fd; color: #684098; }
.plan-role .form-icon, .plan-category .form-icon { width: 17px; height: 17px; flex-basis: 17px; }
.plan-role-owner { background: #ffe9dd; color: #984e2c; }
.plan-overview-body { position: relative; margin-top: -20px; padding: 13px 13px 14px; border-radius: 24px; background: #fffafd; box-shadow: var(--shadow-card); }
.plan-overview-body h3 { font-size: 18px; font-weight: 800; line-height: 25px; margin: 0; overflow-wrap: anywhere; }
.plan-overview-body h3 a { color: inherit; text-decoration: none; }
.plan-overview-meta { display: grid; grid-template-columns: 1.15fr 1fr; margin-top: 10px; gap: 8px; }
.plan-overview-meta > div { display: flex; align-items: flex-start; gap: 5px; min-width: 0; font-size: 11.5px; line-height: 17px; color: var(--color-secondary-text); }
.plan-overview-meta > div + div { border-left: 1px solid #e2d3ef; padding-left: 9px; }
.plan-overview-meta .form-icon { width: 18px; height: 18px; flex-basis: 18px; }
.plan-overview-meta span { overflow-wrap: anywhere; }
.plan-overview-meta small { display: block; font-size: 11px; line-height: 16px; }
.plan-overview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.plan-overview-actions .event-button { min-width: 0; font-size: 14px; line-height: 20px; padding-inline: 9px; gap: 5px; }
.plan-overview-actions .event-button .form-icon { width: 18px; height: 18px; flex-basis: 18px; }
.plan-owner-action, .plan-overview-actions:not(:has(.plan-joined)):not(:has(button)) { grid-template-columns: 1fr; }
.plan-joined { display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 23px; min-height: 45px; padding: 6px; background: #dff7ee; color: #1b956c; font-size: 11.5px; font-weight: 700; }
.plan-joined .form-icon { width: 18px; height: 18px; flex-basis: 18px; padding: 3px; color: white; border-radius: 50%; background: #2dbe92; }
.plan-card-detailed .plan-overview-cover, .plan-card-detailed .plan-overview-cover > img { height: 160px; }
.plan-card-detailed .plan-role { left: auto; right: 12px; background: #e0f6ed; color: #296859; }
.plan-category { background: #ffe9dc; color: #985439; }
.plan-card-detailed .plan-overview-body h3 { font-size: 21.5px; line-height: 29px; }
.plan-overview-attendees { display: flex; align-items: center; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #f2eafa; }
.plan-overview-attendees > div { display: flex; align-items: center; flex-shrink: 0; }
.plan-overview-attendees img { border-radius: 50%; object-fit: cover; border: 2px solid white; }
.plan-overview-attendees img + img { margin-left: -5px; }
.plan-overview-attendees > div > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #efe1fb; color: #794fb0; font-size: 13px; font-weight: 700; }
.plan-overview-attendees p { margin: 0; padding-left: 12px; border-left: 1px solid #dfd0ee; font-size: 12px; line-height: 18px; color: var(--color-secondary-text); }
.plan-status-cancelled, .plan-status-past { font-size: 12px; line-height: 18px; margin-top: 10px; color: #a44155; }
.plan-status-past { color: var(--color-text-muted); }
.undated-plan { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 10px; padding: 10px; background: #fffafd; border: 1px solid white; border-radius: 22px; box-shadow: var(--shadow-card); }
.undated-plan > img { display: block; width: 66px; height: 60px; object-fit: cover; border-radius: 14px; }
.undated-plan h3 { font-size: 15px; line-height: 21px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.undated-plan p { display: flex; gap: 5px; align-items: center; font-size: 11.5px; line-height: 17px; color: var(--color-text-muted); margin-top: 6px; }
.undated-plan p .form-icon { width: 18px; height: 18px; flex-basis: 18px; }
.undated-plan .event-button { grid-column: 1/-1; font-size: 13px; }
.plans-no-results { padding: 20px; border-radius: 24px; background: #f2eafa; text-align: center; }
.plans-no-results h3 { margin: 0; font-size: 15px; line-height: 21px; }
.plans-no-results p { margin-top: 7px; font-size: 13px; line-height: 20px; color: var(--color-text-muted); }
.plans-empty { display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1px solid white; border-radius: 28px; background: linear-gradient(145deg, #fffdfd, #f6efff); }
.plans-empty-art { display: block; width: 100%; height: auto; border-radius: 20px; }
.plans-empty h2 { font-size: 25px; line-height: 34px; font-weight: 800; text-align: center; }
.plans-empty > p { font-size: 15px; line-height: 23px; text-align: center; color: var(--color-secondary-text); margin-bottom: 7px; }
.plans-empty > .event-button { font-size: 15px; }
.empty-plans-hint { display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 76px; border-radius: 20px; background: #dff6ee; margin-top: 7px; }
.empty-plans-hint > .form-icon { width: 30px; height: 30px; flex-basis: 30px; color: #2bbd99; }
.empty-plans-hint strong { border-left: 1px solid #bce4d8; padding-left: 12px; font-size: 13.2px; line-height: 19px; }
.plans-notice { position: absolute; left: 20px; right: 20px; bottom: calc(100px + env(safe-area-inset-bottom)); padding: 14px; border-radius: 18px; z-index: 5; background: var(--color-text-primary); color: white; font-size: 13px; line-height: 19px; text-align: center; }
.plans-invite-error { color: #ad3d53 !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 374px) {
  .plans-header h1 { font-size: 23px; }
  .plans-header:has(.event-icon-button) h1 { font-size: 19px; }
  .plans-role-filter { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .plans-role-filter button { font-size: 11px; padding-inline: 4px; }
  .plans-calendar { padding: 10px; }
  .plans-calendar h2 { font-size: 16px; }
  .plans-calendar td button { max-width: 32px; }
  .plan-overview-meta { grid-template-columns: 1fr; gap: 7px; }
  .plan-overview-meta > div + div { border: 0; padding-left: 0; }
  .plan-overview-actions .event-button { padding-inline: 6px; }
  .plan-card-detailed .plan-category, .plan-card-detailed .plan-role { font-size: 10px; padding-inline: 7px; gap: 4px; }
  .plan-card-detailed .plan-category .form-icon, .plan-card-detailed .plan-role .form-icon { width: 15px; height: 15px; flex-basis: 15px; }
  .plans-empty > .event-button { font-size: 13.7px; }
}
