/* ---------- Início (painel) ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: 2rem; }
.dash-head p { margin: 4px 0 0; text-transform: none; }
.dash-head p::first-letter { text-transform: uppercase; }
.dash-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-shortcuts svg { width: 15px; height: 15px; }
.dash-people { display: none; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 20px; min-width: 0; }
.dash-box { display: grid; gap: 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.dash-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash-box-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; }
.dash-box-head h2 svg { width: 18px; height: 18px; color: var(--primary); }
.dash-ok { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--success, #15803d); font-weight: 600; }
.dash-ok svg { width: 20px; height: 20px; }

/* Para fazer agora */
.dash-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-todo-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.dash-todo-item p { margin: 0; line-height: 1.45; }
.dash-todo-item p a { color: inherit; }
.dash-todo-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.dash-todo-icon svg { width: 18px; height: 18px; }
.tone-amber .dash-todo-icon { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
.tone-teal .dash-todo-icon { background: color-mix(in srgb, #14b8a6 18%, transparent); color: #0f766e; }
.tone-red .dash-todo-icon { background: color-mix(in srgb, #dc2626 15%, transparent); color: #b91c1c; }
.dash-rsvp { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Ciclos */
.dash-cycles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dash-cycle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--border); color: inherit; text-decoration: none; }
.dash-cycle:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.dash-cycle .cover { width: 52px; height: 72px; }
.dash-cycle .cover.cover-square { height: 52px; }
.dash-cycle-wheel { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#7c3aed, #db2777, #f59e0b, #14b8a6, #7c3aed); color: #fff; }
.dash-cycle-wheel svg { width: 22px; height: 22px; }
.dash-cycle-text { display: grid; gap: 2px; min-width: 0; }
.dash-cycle-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-cycle-text .progress { margin: 4px 0 0; }
.dash-chev { width: 18px; height: 18px; color: var(--text-3, var(--text-2)); }

/* Encontros */
.dash-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dash-event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-md); color: inherit; text-decoration: none; }
.dash-event:hover { background: var(--surface-2); }
.dash-date { width: 46px; height: 50px; border-radius: 10px; display: grid; place-content: center; text-align: center; background: var(--primary-soft); color: var(--primary); line-height: 1.05; }
.dash-date b { font-size: 1.25rem; }
.dash-date small { font-size: .7rem; text-transform: uppercase; font-weight: 700; }
.dash-event-text { display: grid; min-width: 0; }
.dash-event-text strong, .dash-event-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-event-text small:first-of-type::first-letter { text-transform: uppercase; }
.dash-event-text svg { width: 12px; height: 12px; vertical-align: -1px; }
.dash-going { display: grid; justify-items: end; font-size: .78rem; font-weight: 700; color: var(--text-2); }
.dash-going small { font-weight: 500; color: var(--text-2); }
.dash-going.is-yes { color: var(--success, #15803d); }
.dash-going.is-waitlist, .dash-going.is-maybe { color: #b45309; }
.dash-going:not([class*='is-']) { color: var(--primary); }

/* Novidades */
.dash-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dash-news a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px; border-radius: var(--r-md); color: inherit; text-decoration: none; line-height: 1.4; }
.dash-news a:hover { background: var(--surface-2); }
.dash-news svg { width: 17px; height: 17px; color: var(--primary); margin-top: 2px; }

/* Em andamento */
.dash-doing { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dash-doing button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; text-align: left; border: 1px solid var(--border); border-radius: var(--r-md); background: none; color: inherit; font: inherit; cursor: pointer; }
.dash-doing button:hover { border-color: var(--primary); }
.dash-doing .cover { width: 44px; height: 62px; }
.dash-doing .cover.cover-square { height: 44px; }
.dash-doing-text { display: grid; gap: 2px; min-width: 0; }
.dash-doing-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-update { color: var(--primary); font-weight: 600; }

/* Para quem organiza */
.dash-org { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dash-org > li { display: grid; gap: 6px; }
.dash-org header { display: flex; align-items: center; gap: 8px; }
.dash-org header .link-btn { margin-left: auto; }
.dash-org-icon { width: 24px; height: 24px; border-radius: 7px; }
.dash-org ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dash-org ul li { font-size: .88rem; padding: 4px 0 4px 10px; border-left: 3px solid var(--border); line-height: 1.4; }
.dash-org ul li a { color: inherit; text-decoration: none; }
.dash-org ul li a:hover { text-decoration: underline; }
.dash-org ul li.is-high { border-left-color: var(--danger, #dc2626); }
.dash-org ul li.is-mid { border-left-color: #f59e0b; }

/* Sem clubes */
.dash-welcome { display: grid; gap: 10px; justify-items: start; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--primary-soft), var(--surface)); border: 1px solid var(--border); }
.dash-welcome > svg { width: 30px; height: 30px; color: var(--primary); }
.dash-welcome h2, .dash-welcome p { margin: 0; }
.dash-welcome p { max-width: 60ch; color: var(--text-2); }

@media (max-width: 1080px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-main, .dash-side { display: contents; }
  .dash-todo-box { order: 1; }
  .dash-side > .dash-box:nth-child(1) { order: 2; }
  .dash-main > .dash-box:nth-child(2) { order: 3; }
  .dash-side > .dash-box:nth-child(2) { order: 4; }
  .dash-main > .dash-box:nth-child(3) { order: 5; }
  .dash-side > .dash-box:nth-child(3) { order: 6; }
}
@media (max-width: 860px) {
  .dash-people { display: inline-flex; }
  .dash-head h1 { font-size: 1.6rem; }
  .dash-box { padding: 14px; }
  .dash-todo-item { grid-template-columns: auto minmax(0, 1fr); }
  .dash-todo-item > :last-child { grid-column: 2; justify-self: start; }
  .dash-rsvp { justify-content: flex-start; }
}
