/* Objectifs + Médias + Idées + Planning + Logs */
body.goals-page,
body.media-page,
body.ideas-page,
body.planning-page,
body.logs-page,
body.soutien-page {
  display: block;
}

body.soutien-page .soutien-wrap {
  max-width: 980px;
}
.soutien-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.soutien-kpis span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}
.top-board {
  margin-top: 18px;
}
.top-board h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.top-board p {
  margin: 0 0 8px;
}
.top-lots {
  white-space: pre-wrap;
}
.top-board ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
}
.top-board li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.soutien-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.soutien-stack[hidden] {
  display: none !important;
}
.soutien-card h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 550;
}
.soutien-card .lead {
  margin: 0 0 14px;
}
.soutien-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.soutien-actions .do {
  display: inline-flex;
  align-items: center;
}
.reward-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 130px 100px minmax(120px, 1fr);
  gap: 8px;
}
@media (max-width: 720px) {
  .reward-row { grid-template-columns: 1fr; }
}

body.logs-page .logs-wrap {
  max-width: 1240px;
}

.logs-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.logs-status strong {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logs-status span {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.4;
}
.logs-status code {
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 6px;
  background: #e9ebf3;
}
.logs-status.is-warn {
  border-color: #e2c48a;
  background: #fff8e8;
}
.logs-status.is-warn strong { color: #8a6a22; }
.logs-status.is-ok {
  border-color: #b7d4c2;
  background: #eef7f1;
}
.logs-status.is-ok strong { color: #2a6b45; }

.logs-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .logs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .logs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.logs-kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  border-top: 3px solid #c4cada;
}
.logs-kpi small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logs-kpi b {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.logs-kpi.tone-bridge { border-top-color: #3d9a6a; }
.logs-kpi.tone-discord { border-top-color: #5865f2; }
.logs-kpi.tone-bot { border-top-color: #c9a227; }
.logs-kpi.tone-staff { border-top-color: #c45c5c; }
.logs-kpi.tone-ink { border-top-color: #1e2433; }

.logs-alerts {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e2c48a;
  border-radius: 14px;
  background: #fff8e8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.logs-alerts-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.logs-alerts-head strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a6a22;
}
.logs-alerts-head span { font-size: 12px; color: #8a6a22; }
.logs-alert-item {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  border-top: 1px solid rgba(138, 106, 34, 0.15);
}
.logs-alert-item b { font-size: 12px; color: #8a6a22; }
.logs-alert-item span { font-size: 13px; color: #5a4314; }

.logs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 980px) {
  .logs-layout { grid-template-columns: 1fr; }
  .logs-side { order: 2; position: static; }
}

.logs-main { min-width: 0; }

.logs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.logs-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.logs-views {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef0f5;
}
.logs-chip {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.logs-chip:hover { color: var(--ink); }
.logs-chip.is-on {
  background: #1e2433;
  color: #fff;
}

.logs-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 1fr) repeat(3, minmax(100px, 0.9fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
@media (max-width: 900px) {
  .logs-toolbar { grid-template-columns: 1fr 1fr; }
}
.logs-toolbar .field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: #f7f8fb;
}
.logs-toolbar .field input:focus {
  outline: none;
  border-color: #9aa3b8;
  background: #fff;
}
.logs-search {
  position: relative;
  display: flex;
  align-items: center;
}
.logs-search-ico {
  position: absolute;
  left: 12px;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.logs-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 10px 34px;
  font: inherit;
  font-size: 14px;
  background: #f7f8fb;
}
.logs-search input:focus {
  outline: none;
  border-color: #9aa3b8;
  background: #fff;
}
.logs-toolbar .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.logs-toolbar .field span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.logs-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 8px;
}
.logs-feed-head h2 {
  margin: 0;
  font-family: var(--sans, inherit);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.logs-count {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.logs-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  background: #f7f8fb;
}
.logs-empty strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.logs-empty span {
  color: var(--muted);
  font-size: 13.5px;
}

.log-card {
  border: 1px solid var(--line);
  border-left: 4px solid #8b93a7;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.log-card:hover { border-color: #c4cada; }
.log-card.source-bridge { border-left-color: #3d9a6a; }
.log-card.source-discord { border-left-color: #5865f2; }
.log-card.source-bot { border-left-color: #c9a227; }
.log-card.is-alert {
  background: #fffdf6;
  box-shadow: inset 0 0 0 1px rgba(226, 196, 138, 0.55);
}
.log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.log-head strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.log-head time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.log-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9ebf3;
  color: #3a4154;
}
.log-badge.src-bridge { background: #e3f3ea; color: #216344; }
.log-badge.src-discord { background: #e8eaff; color: #3b46b0; }
.log-badge.src-bot { background: #fff3d1; color: #7a5a14; }
.log-badge.src-other { background: #eceef4; color: #4a5163; }
.log-badge.cat { background: #f0eef8; color: #4a4570; }
.log-badge.script { background: #eef2f7; color: #334155; }
.log-badge.kind { background: #f3f4f7; color: #64748b; }
.log-badge.alert { background: #ffe8c8; color: #8a4b12; }
.log-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  color: #2a3142;
}
.log-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.log-fields div {
  background: #f3f5f9;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.log-fields span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.log-fields b { font-size: 12.5px; font-weight: 650; }

.logs-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 12px;
}
.logs-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.logs-panel h2 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.logs-help {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.logs-staff-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.logs-staff-item {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #f7f8fb;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: inherit;
}
.logs-staff-item:hover { background: #fff; border-color: #c4cada; }
.logs-staff-item strong { font-size: 13px; }
.logs-staff-item small { color: var(--muted); font-size: 11px; }

.logs-settings summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logs-settings summary::-webkit-details-marker { display: none; }
.logs-settings summary span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.logs-settings summary small {
  color: var(--muted);
  font-size: 12px;
}
.logs-settings[open] summary { margin-bottom: 12px; }
.logs-settings-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.logs-settings-block h3 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
}
.logs-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.logs-checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
}
.logs-check,
.logs-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.logs-toggle { margin-bottom: 6px; }
.logs-check input:disabled,
.logs-toggle input:disabled { opacity: 0.5; }
#save-cfg.is-dirty {
  box-shadow: 0 0 0 2px #c9a227;
}

.gx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 16px 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f1f2f7, var(--card));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.gx-toolbar .do {
  margin-left: auto;
}

.gx-toolbar .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  flex: 1 1 120px;
}

.gx-toolbar .field span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.gx-toolbar input,
.gx-toolbar select,
.gx-toolbar textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e9ebf3;
  padding: 9px 11px;
}

.gx-toolbar textarea {
  min-height: 64px;
  resize: vertical;
  flex: 1 1 100%;
}

.gx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 14px;
}

.gx-chip {
  border: 0;
  background: #dde1ec;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.gx-chip.on {
  background: var(--brown);
  color: #f4f2ff;
  box-shadow: 0 4px 12px rgba(106, 91, 216, 0.22);
}

.gx-chip.soft {
  background: rgba(106, 91, 216, 0.12);
  color: var(--brown-2);
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.goal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #f1f2f7 0%, var(--card) 42%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.goal-card:hover {
  border-color: #c4cada;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 32, 48, 0.07);
}

.goal-card.done {
  opacity: 0.78;
  background: #e8eaef;
}

.goal-card.pinned {
  border-color: #c7c0e8;
  background: linear-gradient(180deg, #e8e6f8 0%, #eceef4 50%);
}

.goal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.goal-top h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.goal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  max-width: 46%;
}

.goal-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dde1ec;
  color: var(--brown-2);
  white-space: nowrap;
}

.goal-badge.high { background: rgba(161, 75, 58, 0.14); color: #a14b3a; }
.goal-badge.paused { background: rgba(201, 134, 45, 0.16); color: #8a5a1f; }
.goal-badge.done { background: rgba(47, 157, 87, 0.16); color: #2f9d57; }

.goal-detail {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.goal-progress {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(231, 233, 241, 0.85);
  border: 1px solid #d8dce8;
}

.goal-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.goal-progress-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.goal-pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 8px 4px 6px;
}

.goal-pct input[type="number"] {
  width: 52px;
  border: 0;
  background: transparent;
  padding: 2px 0;
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}

.goal-pct input[type="number"]:focus {
  outline: none;
}

.goal-pct em {
  font-style: normal;
  color: var(--brown-2);
  font-size: 12px;
  font-weight: 750;
}

.goal-progress .bar {
  height: 9px;
  border-radius: 999px;
  background: #d0d5e2;
  overflow: hidden;
}

.goal-progress .bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brown), #8b84d4);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.goal-progress input[type="range"] {
  width: 100%;
  accent-color: var(--brown);
  margin: 0;
  cursor: pointer;
}

.goal-steps {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}

.goal-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink);
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.goal-step:hover {
  background: rgba(106, 91, 216, 0.08);
  border-color: rgba(106, 91, 216, 0.16);
}

.goal-step.done {
  color: var(--muted);
  text-decoration: line-through;
}

.goal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(212, 216, 228, 0.85);
}

.goal-actions .staff-btn {
  border-radius: 10px;
  padding: 7px 11px;
}

.media-albums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 4px;
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.media-tags span {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(107, 99, 201, 0.12);
  color: var(--brown-2);
}

.media-drop {
  border: 1.5px dashed #c4cada;
  border-radius: 18px;
  background: linear-gradient(180deg, #e9ecf4, rgba(232, 235, 242, 0.95));
  padding: 26px 18px;
  text-align: center;
  margin: 14px 0;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.media-drop.over {
  border-color: var(--brown);
  background: rgba(106, 91, 216, 0.12);
  transform: translateY(-1px);
}

.media-drop strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.media-drop p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.media-drop input[type="file"] { display: none; }

.media-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.media-tools input[type="search"],
.media-tools select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e9ebf3;
  padding: 9px 11px;
  min-width: 140px;
  font-weight: 600;
}

.media-tools #count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f1f2f7, var(--card));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: #c4cada;
  box-shadow: 0 12px 28px rgba(28, 32, 48, 0.08);
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #d5d9e6;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb .kind {
  position: absolute;
  top: 9px;
  left: 9px;
  background: rgba(28, 32, 48, 0.72);
  color: #f4f2ff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-body {
  padding: 12px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.media-body strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-body small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.media-actions .staff-btn,
.media-actions a.staff-btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11.5px;
}

.media-preview {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 32, 48, 0.5);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.media-preview[hidden] { display: none; }

.media-preview-card {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px;
  box-shadow: 0 20px 50px rgba(21, 24, 33, 0.2);
}

.media-preview-card img,
.media-preview-card video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  background: #1c2030;
}

.media-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

body.planning-page .board-wrap {
  max-width: none;
  width: 100%;
  padding: 16px 20px 20px;
  box-sizing: border-box;
}
body.planning-page .board-head h1 {
  margin: 2px 0 4px;
}
body.planning-page .board-head .lead {
  margin: 0;
  max-width: 46ch;
}
body.planning-page .board-top {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.plan-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.plan-week {
  margin: 0 4px;
  min-width: 168px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}
.plan-today {
  height: calc(100vh - 148px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #d5dae6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(28, 32, 48, 0.06);
}
.plan-today h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 550;
}
.plan-today-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.plan-today-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid #3d3688;
  border-radius: 12px;
  background: #f4f2fc;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.plan-today-item[data-color="blue"] { background: #eef3fc; border-left-color: #3d6fd4; }
.plan-today-item[data-color="teal"] { background: #e8f6f8; border-left-color: #218e9c; }
.plan-today-item[data-color="green"] { background: #eaf6ef; border-left-color: #2f8d58; }
.plan-today-item[data-color="amber"] { background: #fbf4e6; border-left-color: #c4841d; }
.plan-today-item[data-color="rose"] { background: #fbecef; border-left-color: #c4526c; }
.plan-today-item[data-color="ink"] { background: #f1f2f5; border-left-color: #4e5568; }
.plan-today-item span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.plan-today-item small {
  color: var(--muted);
  white-space: pre-wrap;
}
.cal-scroll {
  margin-top: 0;
  height: calc(100vh - 148px);
  overflow: auto;
  border: 1px solid #d5dae6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(28, 32, 48, 0.06);
}
.cal-sheet { min-width: 860px; }
.cal-head,
.cal-body {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
}
.cal-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid #e4e8f1;
}
.cal-corner,
.cal-gutter {
  position: sticky;
  left: 0;
  background: #fff;
}
.cal-corner { z-index: 5; }
.cal-gutter {
  z-index: 3;
  border-right: 1px solid #e4e8f1;
}
.cal-head-days,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-dayhead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px 10px;
  border-left: 1px solid #e4e8f1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cal-dayhead b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.cal-dayhead.is-weekend span,
.cal-dayhead.is-weekend b {
  color: #8b90a0;
}
.cal-dayhead.is-today {
  color: var(--brown-2);
}
.cal-dayhead.is-today b {
  background: var(--brown);
  color: #fff;
  box-shadow: 0 6px 14px rgba(107, 99, 201, 0.28);
}
.cal-gutter,
.cal-col {
  height: calc(24 * 52px);
}
.cal-hour {
  height: 52px;
  padding-right: 10px;
  text-align: right;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #8b90a0;
  transform: translateY(-8px);
}
.cal-hour:first-child {
  transform: none;
  padding-top: 6px;
}
.cal-col {
  position: relative;
  border-left: 1px solid #c5cad6;
  background-color: #fff;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 25px,
      rgba(110, 118, 138, 0.45) 25px,
      rgba(110, 118, 138, 0.45) 26px,
      transparent 26px,
      transparent 52px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 50px,
      #7f889c 50px,
      #7f889c 52px
    );
  cursor: pointer;
}
.cal-col.is-weekend {
  background-color: #f7f8fb;
}
.cal-col.is-today {
  background-color: rgba(107, 99, 201, 0.045);
}
.cal-col:hover {
  background-color: rgba(107, 99, 201, 0.06);
}
.cal-hover {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 1;
  height: 52px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(107, 99, 201, 0.16);
  color: var(--brown-2);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.cal-event.is-drag {
  opacity: 0.55;
  cursor: grabbing;
}
.cal-now {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 2px;
  background: #d4536a;
  pointer-events: none;
}
.cal-now::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4536a;
}
.cal-event {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-left: 3px solid #3d3688;
  border-radius: 10px;
  background: linear-gradient(180deg, #7d75d6, #625bc0);
  color: #fff;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 16px rgba(87, 80, 176, 0.2);
  cursor: pointer;
}
.cal-event[data-color="blue"] { background: linear-gradient(180deg, #5b8def, #3d6fd4); border-left-color: #244e9e; box-shadow: 0 8px 16px rgba(61, 111, 212, 0.22); }
.cal-event[data-color="teal"] { background: linear-gradient(180deg, #3aabb8, #218e9c); border-left-color: #14616b; box-shadow: 0 8px 16px rgba(33, 142, 156, 0.22); }
.cal-event[data-color="green"] { background: linear-gradient(180deg, #4caf78, #2f8d58); border-left-color: #1d5e39; box-shadow: 0 8px 16px rgba(47, 141, 88, 0.22); }
.cal-event[data-color="amber"] { background: linear-gradient(180deg, #e0a43a, #c4841d); border-left-color: #8a5a0e; box-shadow: 0 8px 16px rgba(196, 132, 29, 0.22); }
.cal-event[data-color="rose"] { background: linear-gradient(180deg, #e07a90, #c4526c); border-left-color: #8d3148; box-shadow: 0 8px 16px rgba(196, 82, 108, 0.22); }
.cal-event[data-color="ink"] { background: linear-gradient(180deg, #6d7384, #4e5568); border-left-color: #2e3340; box-shadow: 0 8px 16px rgba(46, 51, 64, 0.22); }
.cal-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px;
}
.cal-swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #d5dae6;
  cursor: pointer;
}
.cal-swatch.on {
  box-shadow: 0 0 0 2px var(--brown);
}
.cal-swatch[data-color="violet"] { background: #6b63c9; }
.cal-swatch[data-color="blue"] { background: #3d6fd4; }
.cal-swatch[data-color="teal"] { background: #218e9c; }
.cal-swatch[data-color="green"] { background: #2f8d58; }
.cal-swatch[data-color="amber"] { background: #c4841d; }
.cal-swatch[data-color="rose"] { background: #c4526c; }
.cal-swatch[data-color="ink"] { background: #4e5568; }
.cal-repeat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e4e8f1;
  border-radius: 16px;
  background: #f7f8fb;
}
.cal-repeat .check-row {
  border: 0;
  background: transparent;
  padding: 2px 4px;
}
.cal-days-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cal-days-pick[hidden] { display: none !important; }
.cal-days-pick label {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.cal-days-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cal-days-pick span {
  min-width: 42px;
  padding: 7px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5dae6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.cal-days-pick label:has(input:checked) span {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}
.cal-times input[type="time"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}
.cal-times input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
}
.cal-event:hover {
  filter: brightness(1.06);
}
.cal-event .when {
  display: block;
  margin-bottom: 1px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  opacity: 0.86;
}
.cal-event small {
  display: block;
  margin-top: 3px;
  font-weight: 500;
  white-space: pre-wrap;
  opacity: 0.92;
}
.cal-editor {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 32, 48, 0.45);
}
.cal-editor[hidden] { display: none; }
.cal-editor-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e4e8f1;
  box-shadow: 0 24px 60px rgba(21, 24, 33, 0.28);
}
.cal-editor-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.03em;
}
.cal-editor-card textarea { min-height: 96px; background: #fff; }
.cal-editor-card .field input { background: #fff; }
.cal-editor-card .field[hidden] { display: none !important; }
.cal-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cal-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #e4e8f1;
}
.cal-editor-danger,
.cal-editor-save {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.media-upload-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
  text-align: left;
}
.media-upload-bar .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  flex: 1 1 140px;
}
.media-upload-bar .field span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.media-upload-bar input,
.media-upload-bar select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e9ebf3;
  padding: 9px 11px;
  font: inherit;
}
.goal-badge.late {
  background: rgba(196, 92, 92, 0.16);
  color: #9a3d3d;
}
.goal-badge.soon {
  background: rgba(201, 162, 39, 0.18);
  color: #8a6a12;
}
.pa-search-list a.on {
  background: #dde1ec;
}

/* Idées */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.idea-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #f1f2f7 0%, var(--card) 42%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.idea-top { display: flex; gap: 12px; align-items: flex-start; }
.idea-vote {
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e9ebf3;
  padding: 8px 6px;
  cursor: pointer;
}
.idea-vote b { font-size: 16px; }
.idea-vote span { font-size: 11px; color: var(--muted); }
.idea-vote.on {
  background: rgba(106, 91, 216, 0.14);
  border-color: rgba(106, 91, 216, 0.35);
  color: var(--brown-2);
}
.idea-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.idea-body strong { font-size: 15px; font-weight: 700; }
.idea-body p { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.4; }
.idea-body small { color: var(--muted); font-size: 11.5px; }
.idea-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.idea-card.status-done { opacity: 0.72; }
.idea-card.status-rejected { opacity: 0.55; }

/* Médias sélection / ZIP */
.media-select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #e9ebf3;
}
.media-select-bar[hidden] { display: none; }
.media-card.selected { outline: 2px solid var(--brown); outline-offset: 1px; }
.media-pick {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  width: 20px;
  height: 20px;
  accent-color: var(--brown);
}


.pa-search {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 32, 48, 0.45);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: start center;
  padding: 12vh 16px 16px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.pa-search.in { opacity: 1; }
.pa-search[hidden] { display: none; }
.pa-search-card {
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(21, 24, 33, 0.22);
}
.pa-search-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #e9ebf3;
}
.pa-search-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 50vh;
  overflow: auto;
}
.pa-search-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.pa-search-list a:hover { background: #e9ebf3; }
.pa-search-list strong { font-size: 14px; }
.pa-search-list small { color: var(--muted); font-size: 11.5px; }
.pa-search-hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.team-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e9ebf3;
}
.team-row span { color: var(--muted); font-size: 12.5px; }

.disc-offline-banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8ece8;
  border: 1px solid #e5cfc6;
  color: #8a4b35;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.disc-offline-banner[hidden] { display: none; }
.disc-offline-banner strong { font-size: 14px; }
.disc-offline-banner span { font-size: 12.5px; line-height: 1.4; }
.disc-status.warn {
  background: #fff6e8;
  color: #8a6a12;
  border-color: #ead7a8;
}

body.todo-focus aside,
body.todo-focus #list,
body.todo-focus .stats,
body.todo-focus .new-task,
body.todo-focus #nav,
body.todo-focus .spaces,
body.todo-focus .side-progress,
body.todo-focus .search,
body.todo-focus .new-folder {
  display: none !important;
}
body.todo-focus main {
  max-width: 720px;
  margin: 0 auto;
}
body.todo-focus #hero .hero {
  min-height: 40vh;
}

@media (max-width: 1100px) {
  body.planning-page .board-wrap { padding: 14px 12px 16px; }
  .plan-layout { grid-template-columns: 1fr; }
  .cal-scroll,
  .plan-today { height: auto; max-height: calc(100vh - 220px); }
  .plan-week { min-width: 0; }
}
@media (max-width: 720px) {
  .goal-grid,
  .media-grid,
  .idea-grid { grid-template-columns: 1fr; }
}

.publish-page .board-wrap { max-width: 1080px; }
.pub-accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px;
}
.pub-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: inherit;
  font: inherit;
  font-size: 13px;
}
button.pub-account { cursor: pointer; }
.pub-account strong { font-weight: 700; }
.pub-account span { color: var(--muted); }
.pub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5cad6;
}
.pub-account.on .pub-dot { background: #2f9e62; }
.pub-note {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.pub-days {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
}
.pub-day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.pub-day.on {
  border-color: transparent;
  background: var(--brown);
  color: #fff;
}
.pub-day b {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.pub-day:not(.on) b {
  background: var(--paper);
  color: var(--ink, #1c2030);
}
.pub-quota {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.pub-quota > div { display: inline-flex; align-items: center; gap: 8px; }
.pub-pips { display: inline-flex; gap: 4px; }
.pub-pips i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5d9e4;
}
.pub-pips i.on { background: var(--brown); }
.pub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.82fr);
  gap: 16px;
  align-items: start;
}
.pub-layout:has(.pub-form[hidden]) { grid-template-columns: 1fr; }
.pub-board,
.pub-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.pub-board { padding: 6px 8px 10px; min-height: 280px; }
.publish-page #list {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.pub-board-head,
.pub-form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 4px;
}
.pub-board-head h2,
.pub-form-head h2 {
  margin: 0;
  font-size: 22px;
}
.pub-board-head span,
.pub-form-head span { color: var(--muted); font-size: 13px; font-weight: 700; }
.pub-empty {
  margin: 28px 12px;
  color: var(--muted);
}
.pub-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px;
  border-radius: 14px;
}
.pub-item + .pub-item { box-shadow: inset 0 1px 0 var(--line); }
.pub-item time {
  padding-top: 2px;
  color: var(--brown-2);
  font-weight: 700;
}
.pub-item.done time,
.pub-item.done h3 { opacity: 0.72; }
.pub-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pub-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.pub-item-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.pub-nets,
.pub-item-actions,
.pub-actions,
.pub-hours,
.pub-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-nets { margin-top: 6px; }
.pub-net {
  display: inline-flex;
  align-items: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.pub-net.published { background: #d9f2e3; }
.pub-net.failed { background: #fde2e1; }
.pub-net.publishing { background: #efe7ff; }
.pub-problem {
  margin: 6px 0 0;
  color: #9b2c2c;
  font-size: 12.5px;
}
.pub-item-actions { margin-top: 8px; }
.pub-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 800;
}
.pub-badge.done { background: #d9f2e3; }
.pub-badge.failed,
.pub-badge.partial { background: #fde2e1; }
.pub-badge.publishing { background: #efe7ff; }
.pub-form {
  display: grid;
  gap: 12px;
  padding: 6px 14px 14px;
}
.pub-form[hidden] { display: none; }
.pub-form .field span { letter-spacing: 0; text-transform: none; }
.pub-when {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}
.pub-hours { margin-top: -4px; }
.pub-hours button,
.pub-picks button,
.pub-picks label {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e9ebf3;
  font-size: 13px;
  font-weight: 700;
}
.pub-hours button.on,
.pub-picks button.on,
.pub-picks label:has(input:checked) {
  border-color: transparent;
  background: var(--brown);
  color: #fff;
}
.pub-picks input { position: absolute; opacity: 0; pointer-events: none; }
.pub-picks label { position: relative; cursor: pointer; }
.pub-short {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.pub-file {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px dashed #b7bdd0;
  border-radius: 14px;
  background: #e9ebf3;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.pub-file strong {
  color: var(--ink);
  font-size: 14px;
}
.pub-file[hidden] { display: none; }
.pub-form .pub-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.pub-preview {
  display: grid;
  gap: 8px;
}
.pub-preview[hidden] { display: none; }
.pub-preview video {
  width: 100%;
  max-height: 280px;
  border-radius: 14px;
  background: #12141c;
  object-fit: contain;
}
.pub-preview .staff-btn { justify-self: start; }
.pub-actions { justify-content: flex-end; align-items: center; }
.pub-watch {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 20, 28, 0.55);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.pub-watch.in { opacity: 1; }
.pub-watch[hidden] { display: none; }
.pub-watch-card {
  width: min(720px, 100%);
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pub-watch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pub-watch-head h3 { margin: 0; font-size: 16px; }
.pub-watch video {
  width: 100%;
  max-height: min(70vh, 520px);
  border-radius: 12px;
  background: #12141c;
}
@media (max-width: 860px) {
  .pub-layout { grid-template-columns: 1fr; }
  .pub-when { grid-template-columns: 1fr; }
}
