.site.in-planning {
  --paper: #fffdfa;
  --page: #fff7e8;
  --pitch: #243b32;
  --action: #245b49;
  --soft: #e7f3e9;
  --line: #e9dfcc;
  --banner: #ffdf9d;
  --highlight: #fff0ca;
  --wash: var(--page);
  --ink: var(--action);
  --accent: var(--soft);
  color: var(--pitch);
}
.site.in-planning[data-theme="foret"] {
  --page: #eff7ef;
  --banner: #cee8c7;
  --highlight: #eaf4de;
  --line: #dce8d9;
}
.site.in-planning[data-theme="nuit"] {
  --page: #f1f2fb;
  --banner: #d9dcfa;
  --highlight: #eeebff;
  --line: #dddff0;
  --action: #374782;
  --soft: #e9ebfa;
}
.in-planning :focus-visible { outline-color: var(--action); }
.in-planning .hero { background: var(--paper); border-color: var(--line); }
.in-planning .top { min-height: 68px; }
.in-planning .brand { letter-spacing: -.02em; }
.in-planning .mark { background: var(--banner); color: var(--pitch); border-radius: 50%; }
.in-planning .top-actions button { border-color: var(--line); }
.in-planning #share-status:empty { display: none; }
.in-planning .weekbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 31%);
  gap: 24px;
  align-items: stretch;
  padding: 12px;
  background: var(--banner);
  border-radius: 25px;
  overflow: hidden;
  min-height: 222px;
}
.week-intro { padding: clamp(9px, 3vw, 29px); align-self: center; min-width: 0; }
.in-planning .weekbar h1 {
  color: var(--pitch);
  font-size: clamp(2.15rem, 5.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.067em;
}
.week-intro > p { margin: 10px 0 17px; line-height: 1.35; font-weight: 550; }
.week-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.week-date { background: #ffffffb8; border-radius: 12px; padding: 8px 12px; }
.in-planning .week-date span { color: #465950; margin-top: 1px; }
.week-actions button { min-height: 40px; border-color: #fff9; background: #fffc; border-radius: 12px; }
.week-actions button:hover { background: #fff; }
.week-photo { width: 100%; height: 100%; min-height: 198px; max-height: 255px; object-fit: cover; object-position: center 43%; border-radius: 18px; }
.in-planning #planning .card { background: var(--paper); border-color: var(--line); box-shadow: 0 8px 25px #47351809; border-radius: 22px; }
.in-planning .board-head { gap: 12px; margin-bottom: 16px; }
.in-planning #planning .board-head h2 { font-size: clamp(1.22rem, 3.5vw, 1.75rem); }
.in-planning #new-subject, .in-planning .submit {
  background: var(--action); border-color: var(--action); color: #fff;
  border-radius: 13px;
}
.in-planning #new-subject:hover, .in-planning .submit:hover { filter: brightness(.9); }
.in-planning .weekly-sheet { border-color: var(--line); border-radius: 15px; background: #fff; }
.in-planning .weekly-sheet :is(th,td) { border-color: var(--line); }
.in-planning .weekly-sheet thead { background: var(--pitch); }
.in-planning .weekly-sheet tbody th { background: var(--highlight); }
.in-planning .weekly-sheet tbody[data-active="true"] .sheet-day { color: var(--pitch); background: var(--banner); }
.in-planning .sheet-day { min-height: 39px; padding-inline: 12px; }
.in-planning .sheet-day .day-date { color: var(--pitch); }
.in-planning .sheet-empty { background: var(--paper); }
.in-planning .week-time { color: var(--action); font-size: .95rem; font-weight: 750; }
.in-planning .week-title { font-size: .98rem; }
.in-planning .week-join:not(.withdraw) { color: var(--action); background: var(--soft); border-color: #143b3227; }
.in-planning .week-join { min-height: 33px; border-radius: 9px; padding-inline: 8px; }
.in-planning .participant-name {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px;
  color: var(--action); text-decoration: none;
}
.in-planning .participant-name > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.participant-initials {
  flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%;
  padding: 0 3px; background: var(--soft); color: var(--action); font-size: .68rem; font-weight: 800;
}
.in-planning .candidate-list > li, .in-planning .day-card { border-color: var(--line); border-radius: 14px; background: #fff; }
.in-planning .day-pick { border-color: var(--line); background: var(--highlight); }
.in-planning .period { background: var(--highlight); }
.in-planning form :is(input, select) { border-color: var(--line); background-color: #fff; }
.in-planning .registration-context { background: var(--soft); border-color: var(--line); }
.in-planning .mobile-nav { border-radius: 12px; background: var(--page); }
.in-planning .mobile-nav a { color: var(--action); text-decoration: none; }

@media (max-width: 600px) {
  .in-planning .workspace { margin-top: 15px; }
  .in-planning .weekbar { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; position: relative; }
  .week-intro { padding: 8px; position: relative; z-index: 1; }
  .in-planning .weekbar h1, .week-intro > p { max-width: calc(100% - 78px); }
  .in-planning .weekbar h1 { font-size: clamp(1.95rem, 6.8vw, 2.55rem); }
  .week-intro > p { margin: 7px 0 11px; font-size: .94rem; }
  .week-photo { width: 72px; height: 72px; min-height: 0; position: absolute; top: 12px; right: 12px; border-radius: 13px; }
  .week-tools { gap: 6px; }
  .week-date { font-size: .88rem; padding: 5px 7px; }
  .in-planning .week-date span { font-size: .8rem; }
  .week-actions { gap: 4px; }
  .week-actions button { font-size: .85rem; min-height: 36px; padding: 5px 8px; }
  .in-planning #planning .card { padding: 12px; }
  .in-planning #new-subject { font-size: .84rem; padding: 5px 8px; flex-shrink: 0; }
  .in-planning .week-time, .in-planning .week-title, .in-planning .participant-name { font-size: .81rem; }
  .participant-initials { min-width: 18px; height: 18px; font-size: .6rem; }
}

@media (max-width: 600px) {
  .in-planning .weekly-sheet thead th:first-child { width: 27%; white-space: nowrap; }
  .in-planning .weekly-sheet thead th:nth-child(2) { width: 41%; }
  .in-planning .weekly-sheet thead th { font-size: .86rem; }
  .in-planning .weekly-sheet .week-time { overflow-wrap: normal; }
  .in-planning #new-subject { display: none; }
}

.poster-page { min-height: 100vh; margin: 0; background: #fff7e8; color: #243b32; font-family: "Avenir Next", Avenir, system-ui, sans-serif; }
.poster-page main { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: clamp(22px, 5vw, 60px) 0; }
.poster-page h1 { margin: 0 0 16px; font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: -.045em; }
.poster-link { display: block; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 28px #4735181a; }
.poster-link:hover { box-shadow: 0 8px 30px #47351830; }
.poster-link:focus-visible { outline: 3px solid #245b49; outline-offset: 5px; }
.poster-link img { display: block; width: 100%; height: auto; }

.profile-session { display: grid; gap: 5px; padding-block: 7px; }
.profile-session > button { justify-self: start; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.access-landing { background: #fff7e8; color: #243b32; }
.access-landing .hero { background: #fffdfa; color: #243b32; border-bottom: 1px solid #e9dfcc; }
.access-landing .intro { display: none; }
.access-landing .workspace { margin-top: 22px; }
.access-landing #missing { max-width: 760px; margin-inline: auto; border-color: #e9dfcc; }
.access-banner { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; align-items: center; padding: 14px; border-radius: 15px; background: #ffdf9d; }
.access-banner h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.access-banner p { margin: 7px 0 0; }
.access-banner img { width: 100%; height: 100%; max-height: 112px; object-fit: cover; border-radius: 11px; }
@media (max-width: 450px) { .access-banner { grid-template-columns: minmax(0, 1fr) 58px; } }

.board-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
#join-existing, #join-mobile { color: var(--action); border-color: #143b3240; background: var(--soft); }
.join-dialog { width: min(540px, calc(100% - 36px)); max-height: min(75vh, 660px); overflow: auto; }
.join-day h3 { margin: 12px 0 6px; }
.join-day ul { padding: 0; margin: 0; list-style: none; }
.join-day li { padding: 8px 0; border-top: 1px solid #dce7e1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.join-day li div { display: grid; gap: 2px; overflow-wrap: anywhere; }
.join-day li .week-join { flex-shrink: 0; }
@media (max-width: 900px) {
  #join-mobile { flex: 1; border: 0; min-width: 0; font-size: .875rem; padding: 5px; }
  .in-planning .mobile-nav a { min-width: 0; }
}
@media (max-width: 600px) {
  .board-actions { display: none; }
  .in-planning .mobile-nav a, #join-mobile { font-size: .79rem; }
}

.day-picker { color: var(--pitch); font-weight: 650; font-size: .83rem; display: grid; gap: 3px; }
.day-picker select { min-height: 38px; background-color: #fffc; border-color: #fff9; padding-block: 5px; font-size: .9rem; }
