/* Plan builder */
.slpb-sec { margin: clamp(48px, 7vw, 72px) 0 32px; padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid #DDE2DE; scroll-margin-top: 24px; }
.slpb { --ink: #1B2421; --muted: #5B6661; --accent: #0E7A5F; --soft: #E3F0EB; --line: #DDE2DE; color: var(--ink); scroll-margin-top: 24px; }
.slpb *, .slpb-overlay * { box-sizing: border-box; }
.slpb-label { display: block; margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5B6661); }

.slpb-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 20px; }
.slpb-tabs { display: inline-flex; padding: 4px; background: #eef1ef; border-radius: 12px; gap: 4px; }
.slpb-tab { border: 0; background: none; padding: 9px 16px; border-radius: 9px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted); cursor: pointer; }
.slpb-tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27,36,33,.12); }
.slpb-tab:disabled { opacity: .45; cursor: not-allowed; }
.slpb-total { margin: 0; color: var(--muted); }
.slpb-total strong { color: var(--ink); }

.slpb-opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; margin: 0 0 18px; }
.slpb-opt--days { margin: 0 0 18px; }
.slpb-seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.slpb-seg__b { border: 0; background: #fff; padding: 9px 14px; font: inherit; font-size: .93rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.slpb-seg__b + .slpb-seg__b { border-left: 1.5px solid var(--line); }
.slpb-seg__b.is-on { background: var(--accent); color: #fff; }
.slpb-select { font: inherit; font-size: .93rem; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.slpb-link { border: 0; background: none; padding: 8px 0; font: inherit; font-size: .9rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.slpb-link:hover { color: #b5472a; }

.slpb-daychips { display: flex; flex-wrap: wrap; gap: 6px; }
.slpb-chip { border: 1.5px solid var(--line, #DDE2DE); background: #fff; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted, #5B6661); cursor: pointer; }
.slpb-chip:hover { border-color: var(--accent, #0E7A5F); }
.slpb-chip.is-on { background: var(--accent, #0E7A5F); border-color: var(--accent, #0E7A5F); color: #fff; }

.slpb-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.slpb-days--one { grid-template-columns: minmax(0, 560px); }
.slpb-day { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; }
.slpb-day.is-empty { background: #fafbfa; }
.slpb-day.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.slpb-day.is-complete { background: #f1f8f3; border-color: #cbe5d4; }
.slpb-day__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 10px; }
.slpb-day__name { font-weight: 800; font-size: 1.02rem; display: inline-flex; align-items: center; gap: 8px; }
.slpb-day__total { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.slpb-today { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 5px; padding: 2px 6px; }
.slpb-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slpb-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid #eef1ef; border-radius: 10px; background: #fafbfa; }
.slpb-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.slpb-item__t { font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--ink) !important; text-decoration: none !important; }
a.slpb-item__t:hover { color: var(--accent) !important; text-decoration: underline !important; }
.slpb-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.slpb-item__sk { font-size: .8rem; color: var(--muted); }
.slpb-item__ctr { display: flex; gap: 2px; flex: none; }
.slpb-minwrap { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); }
.slpb-min { width: 58px; padding: 3px 6px; border: 1px solid var(--line, #DDE2DE); border-radius: 6px; font: inherit; font-size: .85rem; text-align: right; background: #fff; }
.slpb-icon { width: 26px; height: 26px; border: 0; background: none; border-radius: 6px; font-size: 1rem; line-height: 1; color: var(--muted, #5B6661); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.slpb-icon:hover:not(:disabled) { background: #eef1ef; color: var(--ink, #1B2421); }
.slpb-icon:disabled { opacity: .25; cursor: default; }
.slpb-icon--x { font-size: 1.25rem; }
.slpb-icon--x:hover:not(:disabled) { color: #b5472a; background: #fbeee9; }
.slpb-add { margin-top: 10px; width: 100%; padding: 9px; border: 1.5px dashed #c9d3ce; border-radius: 10px; background: none; font: inherit; font-weight: 700; font-size: .9rem; color: var(--accent); cursor: pointer; }
.slpb-add:hover { border-color: var(--accent); background: var(--soft); }

.slpb-balance { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: #f6f8f7; border: 1px solid var(--line); }
.slpb-skills { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slpb-skill { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px dashed #c9d3ce; display: flex; flex-direction: column; gap: 2px; }
.slpb-skill.is-on { border: 1px solid #cbe5d4; background: #f1f8f3; }
.slpb-skill__n { font-weight: 700; font-size: .92rem; }
.slpb-skill__m { font-size: .82rem; color: var(--muted); }
.slpb-skill.is-on .slpb-skill__m { color: #1d6a4e; }
.slpb-tip { margin: 0; font-size: .92rem; color: var(--muted); }

.slpb-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.slpb-btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 10px; border: 1.5px solid var(--accent, #0E7A5F); background: #fff; color: var(--accent, #0E7A5F); font: inherit; font-weight: 700; cursor: pointer; }
.slpb-btn:hover { background: var(--soft, #E3F0EB); }
.slpb-btn--main { background: var(--accent, #0E7A5F); color: #fff; }
.slpb-btn--main:hover { background: #0b6a52; }

.slpb-help { margin: -8px 0 16px; color: var(--muted); font-size: .93rem; }
.slpb-item--tick { align-items: flex-start; }
.slpb-check { flex: none; width: 18px; height: 18px; margin: 2px 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.slpb-item--tick label { cursor: pointer; }
.slpb-item.is-done .slpb-item__t { text-decoration: line-through !important; color: var(--muted) !important; }
.slpb-go { font-size: .84rem; font-weight: 700; color: var(--accent) !important; }
.slpb-rest { font-size: .88rem; color: var(--muted); padding: 4px 2px; }

/* Picker */
body.slpb-lock { overflow: hidden; }
.slpb-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(27,36,33,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; }
.slpb-overlay[hidden] { display: none; }
.slpb-modal { width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; background: #fff; border-radius: 16px; padding: 20px 22px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); color: #1B2421; }
.slpb-modal__head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; }
.slpb-modal__t { margin: 0; font-size: 1.25rem; }
.slpb-search { width: 100%; padding: 10px 14px; border: 1.5px solid #DDE2DE; border-radius: 10px; font: inherit; margin: 0 0 10px; }
.slpb-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.slpb-pick .slpb-label { margin-top: 14px; }
.slpb-picklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slpb-pickitem { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 10px 14px; border: 1px solid #DDE2DE; border-radius: 10px; background: #fff; font: inherit; color: #1B2421; cursor: pointer; }
.slpb-pickitem:hover { border-color: #0E7A5F; background: #f6faf8; }
.slpb-pickitem__t { font-weight: 700; }
.slpb-pickitem__d { grid-column: 1; font-size: .84rem; color: #5B6661; }
.slpb-pickitem__add { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 30px; height: 30px; border-radius: 50%; background: #E3F0EB; color: #0E7A5F; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.slpb-none { color: #5B6661; font-size: .9rem; padding: 6px 2px; }
.slpb-own { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slpb-own__name { flex: 1 1 220px; padding: 9px 12px; border: 1.5px solid #DDE2DE; border-radius: 10px; font: inherit; }

@media (max-width: 700px) {
  .slpb-skills { grid-template-columns: repeat(2, 1fr); }
  .slpb-bar { flex-direction: column; align-items: flex-start; }
}
@media print {
  .sltc, header, footer, .slpr > *:not(.slpb-sec), .slpb-sec > p, .slpb-tabs, .slpb-foot, .slpb-go, .slpb-help { display: none !important; }
  .slpb-sec { margin: 0; padding: 0; border: 0; }
  .slpb-days { grid-template-columns: repeat(2, 1fr); }
  .slpb-day { break-inside: avoid; }
}

/* Own activity skills */
.slpb-own__sk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: .92rem; }
.slpb-own__q { font-weight: 600; color: #5B6661; margin-right: 4px; }
.slpb-own__sk label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.slpb-own__sk input { width: 16px; height: 16px; accent-color: #0E7A5F; }
.slpb-own__note { margin: 6px 0 0; font-size: .82rem; color: #5B6661; }

/* One-page print version */
.slpb-print { display: none; }
@media print {
  @page { margin: 14mm; }
  .slpb > *:not(.slpb-print), .slpb-sec > h2 { display: none !important; }
  .slpb-print { display: block; color: #000; font-size: 10.5pt; line-height: 1.35; }
  .slpb-print__t { font-size: 16pt; margin: 0 0 2pt; }
  .slpb-print__sub { margin: 0 0 10pt; color: #444; }
  .slpb-print__days { columns: 2; column-gap: 24pt; }
  .slpb-print__day { break-inside: avoid; margin: 0 0 9pt; }
  .slpb-print__dn { margin: 0 0 2pt; font-weight: 700; }
  .slpb-print ul { margin: 0; padding-left: 14pt; }
  .slpb-print li { margin: 0 0 1pt; }
}

/* Sharing */
.slpb-bar__r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.slpb-btn--sm { padding: 8px 14px; font-size: .9rem; }
.slpb-top { margin: 0 0 20px; }
.slpb-top .slpb-bar { margin: 0; }
.slpb-share { margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: #f1f8f3; border: 1px solid #cbe5d4; }
.slpb-share__t { margin: 0 0 10px; font-size: .95rem; }
.slpb-share__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slpb-share__url { flex: 1 1 260px; min-width: 0; padding: 8px 12px; border: 1.5px solid #DDE2DE; border-radius: 10px; font: inherit; font-size: .85rem; color: #5B6661; background: #fff; }
.slpb-share__msg { font-size: .88rem; font-weight: 700; color: #1d6a4e; }
.slpb-share__note { margin: 8px 0 0; font-size: .82rem; color: #5B6661; }
.slpb-shared { margin: 0 0 22px; padding: 18px 20px; border-radius: 16px; background: #fef8e4; border: 1.5px solid #f2e0a6; }
.slpb-shared__t { margin: 0 0 10px; font-size: 1.02rem; }
.slpb-shared__days { columns: 2 220px; column-gap: 24px; margin: 0 0 10px; }
.slpb-shared__day { break-inside: avoid; margin: 0 0 10px; }
.slpb-shared__dn { margin: 0 0 2px; font-weight: 700; font-size: .92rem; }
.slpb-shared ul { margin: 0; padding-left: 18px; font-size: .9rem; color: #3d4744; }
.slpb-shared__warn { margin: 0 0 12px; font-size: .9rem; color: #946200; }
.slpb-shared__act { display: flex; gap: 10px; flex-wrap: wrap; }
/* Saved plans */
.slpb-saved { margin-top: 32px; padding-top: 24px; border-top: 1px solid #DDE2DE; }
.slpb-saved__h { margin: 0 0 12px; font-size: 1.15rem; }
.slpb-saved__new { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.slpb-saved__name { flex: 1 1 260px; min-width: 0; padding: 9px 12px; border: 1.5px solid #DDE2DE; border-radius: 10px; font: inherit; }
.slpb-saved__empty { margin: 0; color: #5B6661; font-size: .93rem; }
.slpb-saved__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slpb-saved__item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 14px; background: #fff; border: 1px solid #DDE2DE; border-radius: 12px; }
.slpb-saved__item.is-active { border-color: #cbe5d4; background: #f1f8f3; }
.slpb-saved__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slpb-saved__n { font-weight: 700; }
.slpb-saved__m { font-size: .85rem; color: #5B6661; }
.slpb-saved__msg { font-size: .82rem; font-weight: 700; color: #1d6a4e; }
.slpb-saved__act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.slpb-saved__act .slpb-btn:disabled { opacity: .55; cursor: default; background: #fff; }
