/* Painel do organizador e do administrador geral */
body { padding-bottom: 60px; }
main#app { max-width: 920px; }
h2.sec { font-size: 20px; margin: 26px 0 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.sp { justify-content: space-between; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 14px 0; }
.panel h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { border-color: var(--bad); color: var(--bad); background: transparent; }
.badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); }
.badge.on { color: var(--ok); border-color: var(--ok); }
.badge.off { color: var(--bad); border-color: var(--bad); }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-size: 13px; color: var(--mute); }
.stats b { font-size: 22px; font-family: var(--serif); font-weight: 400; display: block; color: var(--ink); }
.evcard { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.evcard .info { min-width: 220px; flex: 1; }
.evcard .info b { font-size: 17px; font-family: var(--serif); font-weight: 400; }
.evcard .info small { display: block; color: var(--mute); margin-top: 2px; }
.evcard .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tabsbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; border-bottom: 1px solid var(--line); }
.tabsbar button { font: inherit; background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabsbar button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.switch { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.switch input { width: 20px; height: 20px; accent-color: var(--ink); }
.warn { background: #fff6e0; border: 1px solid #f1d38a; color: #6b4e00; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.ok-box { background: #eef7f1; border: 1px solid #b6dcc4; border-radius: 12px; padding: 14px; margin: 14px 0; font-size: 14px; }
.ok-box code, code.k { font-family: ui-monospace, Menlo, Consolas, monospace; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; user-select: all; }
.qcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; background: var(--surface); }
.qcard .top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--mute); }
.choice-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.choice-row input[type=radio] { width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.choice-row input[type=text] { flex: 1; }
.iconbtn { background: none; border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; color: var(--mute); font-size: 15px; flex: none; }
.iconbtn:hover { color: var(--ink); border-color: var(--ink); }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.themecard { border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: var(--surface); text-align: left; font: inherit; color: var(--ink); }
.themecard.on { border-color: var(--ink); }
.themecard .sw { height: 54px; border-radius: 10px; margin-bottom: 8px; display: flex; gap: 6px; padding: 10px; align-items: flex-end; }
.themecard .sw i { flex: 1; height: 100%; border-radius: 6px; }
.themecard b { display: block; }
.themecard small { color: var(--mute); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 12px; }
.tile .im { aspect-ratio: 1; background: var(--thumb) center / cover no-repeat; position: relative; display: block; }
.tile .im .v { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 999px; }
.tile .in { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tile .in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile a, .tile button { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; padding: 0; }
.tile button { color: var(--bad); }
#qrbox { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.login { max-width: 340px; margin: 10vh auto 0; }
textarea { min-height: 70px; resize: vertical; }
input[type=date], input[type=number], input[type=password] {
  width: 100%; font: inherit; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--ink);
}
.evcard .info { flex: 1 1 320px; }
