/* Tokens */
:root{
  --bg:#0b1f55;
  --bg2:#0a1842;
  --text:#fff;
  --muted:rgba(255,255,255,.72);
  --accent:#7c5cff;
  --accent2:#5aa2ff;
  --card:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.18);
  --shadow:0 24px 80px rgba(4, 10, 34, .35);
}

/* Base */
*{box-sizing:border-box}

[hidden]{
  display:none !important;
}

html{
  min-height:100%;
  overflow-x:hidden;
  background:
    radial-gradient(180px 180px at 85% -10%, rgba(124,92,255,.25), transparent 70%),
    radial-gradient(220px 220px at 10% 0%, rgba(90,162,255,.22), transparent 60%),
    radial-gradient(260px 260px at 52% 16%, rgba(124,92,255,.10), transparent 72%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  scrollbar-gutter:stable;
}

body{
  min-height:100vh;
  margin:0;
  overflow-x:hidden;
  position:relative;
  isolation:isolate;
  font-family:"Manrope", "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(180px 180px at 85% -10%, rgba(124,92,255,.25), transparent 70%),
    radial-gradient(220px 220px at 10% 0%, rgba(90,162,255,.22), transparent 60%),
    radial-gradient(260px 260px at 52% 16%, rgba(124,92,255,.10), transparent 72%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(180px 180px at 85% -10%, rgba(124,92,255,.25), transparent 70%),
    radial-gradient(220px 220px at 10% 0%, rgba(90,162,255,.22), transparent 60%),
    radial-gradient(260px 260px at 52% 16%, rgba(124,92,255,.10), transparent 72%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{color:#cfe0ff}

/* Shared Components */
.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding: 5px;
}

#v-activities .card,
#v-feedback .card,
#v-profile .card{
  padding:16px;
}

#v-activities .card{
  padding:10px;
}

#v-feedback .card{
  padding:10px;
}

.activities-stack{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.activity-panel{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.activity-empty{
  text-align:center;
  color:var(--muted);
  padding:14px 16px !important;
}

.activity-panel-title{
  font-size:15px;
  line-height:1.3;
  font-weight:800;
  color:var(--text);
}

#v-moderator .card{
  padding:10px;
}

.input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  color:#fff;
  padding:12px 14px;
  outline:none;
  font:inherit;
}

.input::placeholder{color:rgba(255,255,255,.45)}

select.input option,
.moderator-select-wrap select option{
  background:#13245f;
  color:#fff;
}

.btn{
  border-radius:14px;
  border:1px solid var(--stroke);
  padding:12px 16px;
  color:#fff;
  background:rgba(255,255,255,.08);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.btn.primary{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  color:#0b1f55;
}

#btnSendQ,
#btnSendAnswer{
  color:#fff;
}

.page-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:18px 0 84px 0;
  opacity:.95;
}

.page-logo img{
  width:35vw;
  max-width: 200px;
  height:auto;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

.login-logo{
  width:35vw;
  max-width: 200px;
  height:auto;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* Site Login */
.site-body{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  min-height:100dvh;
  padding:0 18px;
}

.site-shell{
  width:min(1120px, 100%);
  min-height:100vh;
  min-height:100dvh;
}

.vote-dashboard-body{
  display:block;
  padding:0;
  overflow:hidden;
}

.vote-dashboard-shell{
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  width:100vw;
  max-width:none;
  min-height:100dvh;
  height:100dvh;
  padding:12px;
  box-sizing:border-box;
}

.vote-dashboard-card{
  width:100%;
  height:100%;
  display:block;
  padding:16px 18px;
  border-radius:24px;
  border:1px solid rgba(124,92,255,.16);
  background:
    radial-gradient(circle at top right, rgba(90,162,255,.18), transparent 34%),
    linear-gradient(180deg, rgba(18,26,54,.96), rgba(11,17,38,.96));
  box-shadow:0 30px 72px rgba(3,8,20,.34);
  overflow:hidden;
}

.vote-dashboard-main{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(420px, 44vw);
  gap:18px;
  height:100%;
  min-height:0;
}

.vote-dashboard-left{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  min-width:0;
  min-height:0;
}

.vote-dashboard-right{
  display:grid;
  grid-template-rows:minmax(0, 1fr) auto;
  gap:12px;
  min-width:0;
  min-height:0;
}

.vote-dashboard-head{
  display:flex;
  justify-content:flex-start;
  gap:10px;
  align-items:flex-start;
}

.vote-dashboard-head-copy{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.vote-dashboard-title{
  margin:0;
  font-size:clamp(34px, 4.4vw, 58px);
  line-height:1;
  font-weight:900;
}

.vote-dashboard-panel-name{
  font-size:20px;
  line-height:1.4;
  font-weight:800;
  color:#dfe7ff;
}

.vote-dashboard-description{
  max-width:900px;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
}

.vote-dashboard-logo{
  width:92px;
  height:auto;
  flex:0 0 auto;
  margin-top:8px;
}

.vote-dashboard-status-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.vote-dashboard-status,
.vote-dashboard-mode{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  font-size:14px;
  line-height:1;
  font-weight:800;
}

.vote-dashboard-status{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
}

.vote-dashboard-status[data-status="active"]{
  background:rgba(90,162,255,.18);
  border-color:rgba(90,162,255,.28);
}

.vote-dashboard-status[data-status="archived"]{
  background:rgba(124,92,255,.14);
  border-color:rgba(124,92,255,.24);
}

.vote-dashboard-mode{
  background:rgba(124,92,255,.12);
  border:1px solid rgba(124,92,255,.2);
  color:#eef2ff;
}

.vote-dashboard-countdown-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(90,162,255,.28);
  background:linear-gradient(135deg, rgba(90,162,255,.24), rgba(124,92,255,.18));
  box-shadow:0 18px 36px rgba(90,162,255,.18);
  text-align:center;
}

.vote-dashboard-countdown{
  font-size:clamp(34px, 6vw, 64px);
  line-height:.95;
  font-weight:900;
  letter-spacing:.04em;
  color:#0f172a;
  text-shadow:none;
}

.vote-dashboard-finish{
  color:var(--muted);
  font-size:14px;
  line-height:1.4;
  text-align:center;
}

.vote-dashboard-stat{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}

.vote-dashboard-stat-label{
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted);
}

.vote-dashboard-stat-value{
  font-size:17px;
  line-height:1.2;
  font-weight:800;
}

.vote-dashboard-section{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
  height:100%;
}

.vote-dashboard-section-head{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:baseline;
  justify-content:space-between;
}

.vote-dashboard-section-title{
  font-size:16px;
  line-height:1.2;
  font-weight:900;
}

.vote-dashboard-updated{
  font-size:12px;
  color:var(--muted);
}

.vote-dashboard-results-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:0;
  align-items:stretch;
  min-height:0;
  height:100%;
}

.vote-dashboard-chart{
  min-height:0;
  height:100%;
}

.vote-dashboard-chart-wrap{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  height:100%;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  box-sizing:border-box;
}

.vote-dashboard-timer-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.vote-dashboard-chart-visual{
  position:relative;
  width:min(100%, 300px);
  margin:0 auto;
}

.vote-dashboard-chart-svg{
  display:block;
  width:100%;
  height:auto;
}

.vote-dashboard-chart-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.vote-dashboard-chart-center strong{
  font-size:42px;
  line-height:1;
  font-weight:900;
}

.vote-dashboard-chart-center span{
  margin-top:4px;
  font-size:14px;
  line-height:1.2;
  color:var(--muted);
  font-weight:700;
}

.vote-dashboard-chart-legend{
  display:grid;
  grid-template-columns:16px minmax(0, 1fr) max-content max-content;
  column-gap:10px;
  row-gap:10px;
  align-items:center;
  width:70%;
  max-width:100%;
  align-self:center;
  margin:0 auto;
}

.vote-dashboard-chart-legend-row{
  display:contents;
}

.vote-dashboard-chart-marker{
  width:16px;
  height:16px;
  border-radius:999px;
  box-shadow:none;
  justify-self:start;
  grid-column:1;
}

.vote-dashboard-chart-legend-label{
  min-width:0;
  font-size:22px;
  line-height:1.3;
  font-weight:800;
  color:#0f172a;
  white-space:nowrap;
  grid-column:2;
}

.vote-dashboard-chart-legend-value{
  font-size:22px;
  line-height:1.2;
  color:#0f172a;
  font-weight:800;
  white-space:nowrap;
  text-align:right;
  justify-self:end;
  font-variant-numeric:tabular-nums;
}

.vote-dashboard-chart-legend-count{
  grid-column:3;
}

.vote-dashboard-chart-legend-percent{
  grid-column:4;
}

.vote-dashboard-empty{
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}

.hero-card{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  width:min(420px, 100%);
}

.login-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  width:100%;
  padding:16px 12px;
  border-radius:28px;
  background:rgba(255,255,255,.07);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
  text-align:center;
}

.login-card h2{
  margin:0;
  font-size:28px;
}

.login-form{
  display:flex;
  flex-direction:column;
  gap:14px;
  width:100%;
}

.field{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  font-size:14px;
  font-weight:700;
  text-align:left;
}

.form-error{
  padding:10px 12px;
  border:1px solid rgba(255, 120, 120, .45);
  border-radius:14px;
  background:rgba(255, 120, 120, .12);
  color:#ffd3d3;
  font-size:14px;
  font-weight:700;
  text-align:left;
}

/* Mini App Layout */
#app{min-height:100vh}

.topbar{
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  position:sticky;
  top:0;
  z-index:3;
  backdrop-filter:blur(8px);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-bottom:1px solid var(--stroke);
}

.t-brand{
  font-family:"Russo One", sans-serif;
  letter-spacing:.14em;
  color:#fff;
}

.t-user{
  font-weight:700;
  color:var(--muted);
  cursor:pointer;
  border-radius:10px;
  padding:4px 6px;
  transition:background .18s ease, color .18s ease;
}

.t-user:hover,
.t-user:focus-visible{
  background:rgba(255,255,255,.08);
  color:var(--text);
  outline:none;
}

.views{padding:12px 12px 80px}
.view{display:none;animation:fade .2s ease}
.view.active{display:block}

.h3{margin:6px 0 10px 4px;font-size:18px}

/* Schedule */
.day-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:6px 0 8px;
}

.pill{
  border:1px solid var(--stroke);
  background:var(--card);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
}

.day-title{
  font-weight:800;
  font-size:14px;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(124,92,255,.18), rgba(90,162,255,.18));
  border:1px solid var(--stroke);
}

.day-scroll{
  display:flex;
  gap:8px;
  width:100%;
  margin:4px 0 10px;
  padding:4px 2px 10px;
  scrollbar-width:none;
}

.day-scroll::-webkit-scrollbar{display:none}

.day-chip{
  flex:1 1 0;
  min-width:0;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(90,162,255,.22);
  background:rgba(90,162,255,.12);
  font-weight:700;
  font-size:13px;
  opacity:1;
  color:#dfe9ff;
  text-align:center;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.day-chip.active{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  border-color:transparent;
  color:#fff;
  box-shadow:0 8px 18px rgba(90,162,255,.22);
}

.timeline{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.event{
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
}

.event h4{
  margin:8px 0 4px;
  font-size:16px;
  line-height:1.45;
}

.event .time{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  width:fit-content;
  padding:8px 12px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(99,191,255,.34), rgba(90,162,255,.18));
  color:#eef7ff;
  font-weight:800;
}

.event .meta,
.miniapp-meta{
  font-size:12px;
  color:rgba(238,247,255,.82);
}

@media (orientation: landscape){
  .event{
    display:grid;
    grid-template-columns:minmax(132px, 168px) 1fr;
    gap:14px 18px;
    align-items:center;
  }

  .event .time{
    align-self:center;
    justify-self:center;
  }

  .event h4{
    margin:0;
    align-self:center;
  }
}

.list{list-style:none;margin:0;padding:0}
.list li{padding:10px 0;border-bottom:1px dashed var(--stroke)}

/* States And Admin */
.btn.voted{
  background:linear-gradient(90deg, rgba(124,92,255,.65), rgba(90,162,255,.65));
  color:#0a1540;
  border-color:rgba(255,255,255,.45);
}

.btn.vote-muted{
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.58);
  border-color:rgba(255,255,255,.12);
}

.btn.vote-picked{
  box-shadow:0 12px 28px rgba(90,162,255,.26);
  transform:translateY(-1px);
}

.vote-status{
  margin:10px 0 2px;
  padding:0;
  border-radius:0;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.88);
  font-size:14px;
  font-weight:800;
  box-shadow:none;
}

.feedback-status{
  margin:10px 0 2px;
  padding:0;
  border:none;
  border-radius:0;
  background:transparent;
  color:rgba(255,255,255,.88);
  font-size:14px;
  font-weight:800;
  box-shadow:none;
}

#voteBox{
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#voteBox .btn.primary{
  color:#fff;
}

#voteBox .btn.voted,
#voteBox .btn.vote-muted{
  color:#0b1220;
}

.vote-header{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:0;
  border-radius:0;
  border:none;
  background:transparent;
}

.vote-title{
  margin:0;
  position:relative;
  padding-left:14px;
  font-size:18px;
  line-height:1.25;
  font-weight:800;
  color:var(--text);
}

.vote-title::before{
  content:"";
  position:absolute;
  left:0;
  top:.1em;
  bottom:.1em;
  width:4px;
  height:auto;
  border-radius:999px;
  background:linear-gradient(180deg, var(--accent), var(--accent2));
}

.vote-desc{
  margin-top:10px;
  max-width:34ch;
  font-size:16px;
  line-height:1.65;
  color:rgba(255,255,255,.86);
}

.vote-prompt{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.35;
  color:var(--muted);
  font-weight:700;
}

#voteBox.is-success{
  border-color:rgba(90,162,255,.34);
  background:rgba(90,162,255,.10);
  box-shadow:0 18px 44px rgba(20, 56, 128, .28);
}

#feedbackCard{
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#feedbackCard.is-success{
  border-color:rgba(90,162,255,.34);
  background:rgba(90,162,255,.10);
  box-shadow:0 18px 44px rgba(20, 56, 128, .28);
}

#btnSendQ.is-sending{
  opacity:.82;
}

#answerBox{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.answer-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.vote-kind,
.answer-kind,
.answer-question{
  margin:0;
}

.vote-kind,
.answer-kind{
  text-align:center;
  font-size:13px;
  line-height:1.35;
  color:var(--muted);
  font-weight:700;
}

.vote-kind{
  margin-bottom:12px;
}

.answer-question{
  position:relative;
  padding-left:14px;
  font-size:18px;
  line-height:1.25;
  font-weight:800;
  color:var(--text);
}

.answer-question::before{
  content:"";
  position:absolute;
  left:0;
  top:.1em;
  bottom:.1em;
  width:4px;
  height:auto;
  border-radius:999px;
  background:linear-gradient(180deg, var(--accent), var(--accent2));
}

#btnSendQ.is-success{
  background:linear-gradient(90deg, rgba(124,92,255,.9), rgba(90,162,255,.9));
  color:#fff;
  border-color:rgba(255,255,255,.18);
}

.warn{border-color:#ffaaaa;background:rgba(255,80,80,.15)}

.miniapp-admin-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:8px;
}

#v-admin .card{
  padding:10px;
}

.admin-card{
  gap:14px;
}

.admin-card + .admin-card{
  margin-top:10px;
}

.admin-card-head{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  column-gap:12px;
  align-items:start;
  padding-right:6px;
}

.admin-card-head-main{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.admin-card-head.is-collapsible{
  cursor:pointer;
}

.admin-card-head.is-collapsible:focus-visible{
  outline:2px solid rgba(124,92,255,.34);
  outline-offset:4px;
  border-radius:12px;
}

.admin-card-caret{
  align-self:center;
  color:var(--muted);
  font-size:13px;
  line-height:1;
  font-weight:800;
  padding-right:4px;
  transform-origin:center;
  transition:transform .18s ease, color .18s ease;
}

.admin-card-head.is-collapsed .admin-card-caret{
  transform:rotate(0deg);
}

.admin-card-head:not(.is-collapsed) .admin-card-caret{
  transform:rotate(90deg);
}

.admin-card-body{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.admin-card-title{
  font-size:18px;
  font-weight:800;
  line-height:1.2;
}

.admin-card-subtitle{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.admin-submit-btn{
  width:100%;
}

.admin-select-wrap{
  position:relative;
}

.admin-select-wrap select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:none !important;
  padding-right:42px;
}

.admin-select-wrap select::-ms-expand{
  display:none;
}

.admin-select-caret{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  transform-origin:center;
  color:var(--muted);
  font-size:13px;
  line-height:1;
  font-weight:800;
  pointer-events:none;
  transition:transform .18s ease, color .18s ease;
}

.admin-select-wrap:focus-within .admin-select-caret{
  transform:translateY(-50%) rotate(90deg);
}

.admin-day-controls{
  margin-top:0;
  margin-bottom:0;
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:4px 8px;
}

.admin-toolbar{
  display:flex;
  gap:8px;
  justify-content:flex-start;
  flex-wrap:wrap;
}

.admin-toolbar .btn{
  flex:1 1 180px;
  min-width:140px;
  text-align:center;
}

.admin-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.admin-empty{
  color:var(--muted);
  padding:6px 0 2px;
}

.admin-question{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--stroke);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.admin-question-text{
  font-weight:700;
  line-height:1.45;
}

.admin-question-meta{
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

.admin-action-btn{
  align-self:flex-start;
  margin-top:2px;
}

.admin-vote-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.admin-vote-mode-wrap{
  flex:1 1 260px;
  max-width:420px;
}

.admin-vote-mode-wrap select{
  padding-right:42px;
}

.admin-vote-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.admin-vote-textarea{
  min-height:110px;
  resize:vertical;
  grid-column:1 / -1;
}

.admin-vote-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.admin-vote-actions .btn{
  flex:1 1 200px;
}

.admin-vote-panel{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:72px;
}

#adminActiveVoteBox{
  min-height:0;
}

.admin-vote-empty{
  color:var(--muted);
  padding:8px 0 2px;
}

.admin-vote-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.admin-vote-card.is-active{
  border-color:rgba(90,162,255,.26);
  background:linear-gradient(180deg, rgba(90,162,255,.12), rgba(124,92,255,.08));
}

.admin-vote-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.admin-vote-name{
  font-size:17px;
  line-height:1.3;
  font-weight:800;
}

.admin-vote-status-badge{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:800;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}

.admin-vote-desc{
  color:var(--muted);
  line-height:1.5;
}

.admin-vote-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:13px;
  color:var(--muted);
}

.admin-vote-card.is-active .admin-vote-meta{
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}

.admin-vote-launch{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(90,162,255,.18);
}

.admin-vote-launch-mode{
  font-size:13px;
  line-height:1.35;
  font-weight:800;
  color:#dfe7ff;
}

.admin-vote-countdown{
  font-size:28px;
  line-height:1;
  font-weight:900;
  letter-spacing:.03em;
  color:#ffffff;
}

.admin-vote-launch-finish{
  font-size:13px;
  line-height:1.4;
  color:var(--muted);
}

.admin-vote-results{
  display:grid;
  grid-template-columns:max-content minmax(0, 1fr) max-content max-content;
  column-gap:10px;
  row-gap:8px;
  align-items:center;
}

.admin-vote-result-row{
  display:contents;
}

.admin-vote-result-label{
  font-weight:800;
}

.admin-vote-result-track{
  position:relative;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
}

.admin-vote-result-fill{
  position:absolute;
  inset:0 auto 0 0;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(124,92,255,.85), rgba(90,162,255,.82));
}

.admin-vote-result-value{
  font-size:13px;
  font-weight:700;
  color:var(--muted);
}

.admin-vote-result-count,
.admin-vote-result-percent{
  text-align:right;
}

.admin-vote-button-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.admin-vote-button-row .btn{
  flex:1 1 160px;
}

.admin-vote-columns{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.admin-vote-section-main{
  margin-bottom:2px;
}

.admin-vote-section{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.admin-vote-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.admin-vote-list-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  cursor:pointer;
  color:inherit;
  font:inherit;
  text-align:left;
}

.admin-vote-list-item-title{
  font-weight:800;
  line-height:1.35;
}

.admin-vote-list-item-meta{
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
  margin-top:4px;
}

.admin-vote-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.admin-vote-section-title{
  font-size:15px;
  font-weight:800;
  letter-spacing:.01em;
}

@media (max-width: 720px){
  .admin-vote-form{
    grid-template-columns:1fr;
  }
}

.moderator-toolbar{
  display:flex;
  justify-content:flex-start;
  margin:2px 0 0;
}

.moderator-toolbar-inline{
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.moderator-refresh-btn{
  padding:8px 12px;
  border-radius:12px;
  font-size:13px;
  line-height:1.2;
  background:linear-gradient(90deg, rgba(124,92,255,.22), rgba(90,162,255,.18));
  border-color:rgba(124,92,255,.34);
  color:#fff;
}

.moderator-filters{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:2px;
}

.moderator-select-wrap{
  position:relative;
}

.moderator-select-wrap select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:none !important;
  padding-right:42px;
  cursor:pointer;
}

.moderator-select-wrap select::-ms-expand{
  display:none;
}

.moderator-select-caret{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  transform-origin:center;
  color:var(--muted);
  font-size:13px;
  line-height:1;
  font-weight:800;
  pointer-events:none;
  transition:transform .18s ease, color .18s ease;
}

.moderator-select-wrap:focus-within .moderator-select-caret{
  transform:translateY(-50%) rotate(90deg);
}

.moderator-time-row{
  display:grid;
  grid-template-columns:1fr auto 1fr auto;
  gap:8px;
  align-items:center;
}

.moderator-time-sep{
  color:var(--muted);
  font-weight:700;
}

.moderator-reset-btn{
  padding:8px 10px;
  min-width:40px;
  justify-self:end;
}

.moderator-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.moderator-filter-card,
.moderator-inbox-card,
.moderator-answered-card{
  margin-top:10px;
}

.moderator-filter-toggle-caret{
  font-size:18px;
  line-height:1;
  color:var(--muted);
  transition:transform .18s ease;
  transform:rotate(90deg);
  flex:0 0 auto;
  margin-right:2px;
}

.moderator-filter-card{
  background:rgba(255,255,255,.04);
}

.moderator-filter-card .moderator-card-head{
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  padding-right:4px;
}

.moderator-filter-card .moderator-card-head:focus-visible{
  outline:none;
}

.moderator-filter-card .moderator-card-head.is-collapsed .moderator-filter-toggle-caret{
  transform:rotate(0deg);
}

.moderator-filters-body{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.moderator-filter-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.moderator-filter-label{
  font-size:12px;
  line-height:1.3;
  font-weight:800;
  color:#fff;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.moderator-card-head{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.moderator-card-title{
  font-size:18px;
  line-height:1.25;
  font-weight:800;
  color:var(--text);
}

.moderator-card-subtitle{
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
  max-width:34ch;
}

.moderator-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.moderator-list li{
  border-bottom:none;
}

.moderator-empty{
  padding:14px 0;
  color:var(--muted);
}

.moderator-list .moderator-question{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:8px 10px;
  border-radius:18px;
  border:1px solid rgba(124,92,255,.20);
  background:rgba(255,255,255,.04);
  box-shadow:inset 0 0 0 1px rgba(124,92,255,.34), 0 14px 32px rgba(4, 10, 34, .16);
}

.moderator-question-footer{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:stretch;
  gap:10px;
}

.moderator-question-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.moderator-question-text{
  font-weight:600;
  line-height:1.45;
  font-size:15px;
}

.moderator-question-meta{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.moderator-question-time{
  color:var(--muted);
}

.moderator-question-fio{
  color:#8f7cff;
  font-size:15px;
  font-weight:700;
}

.moderator-question-department{
  color:#f3f6ff;
  font-size:15px;
  font-weight:600;
}

.moderator-question .btn{
  min-width:90px;
  margin-top:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.moderator-question-footer .btn{
  align-self:stretch;
}

.moderator-action-btn{
  background:linear-gradient(90deg, rgba(124,92,255,.18), rgba(90,162,255,.14));
  border-color:rgba(90,162,255,.24);
  box-shadow:0 10px 24px rgba(90,162,255,.12);
}

.moderator-question.is-answered{
  background:rgba(255,255,255,.03);
  border-color:rgba(255,255,255,.08);
  box-shadow:none;
}

.profile-card{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:16px;
}

.profile-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}

.profile-avatar{
  width:76px;
  height:76px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(124,92,255,.95), rgba(90,162,255,.95));
  color:#fff;
  font-family:"Russo One", sans-serif;
  font-size:28px;
  letter-spacing:.06em;
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 16px 34px rgba(90,162,255,.24);
}

.profile-fio{
  font-size:22px;
  font-weight:800;
  line-height:1.35;
  max-width:12ch;
  text-wrap:balance;
}

.profile-role{
  font-size:16px;
  font-weight:700;
  color:var(--muted);
}

.profile-section{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.profile-team-title{
  font-size:16px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:.01em;
  text-align:center;
}

.profile-team-list{
  margin-top:4px;
}

.profile-team-list li{
  padding:12px 0;
  text-align:center;
}

.theme-switch{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.theme-btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.theme-btn-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:800;
  flex:0 0 auto;
  background:rgba(255,255,255,.10);
  color:#fff;
}

.theme-btn-text{
  display:flex;
  align-items:center;
  min-width:0;
}

.theme-btn-text strong{
  font-size:15px;
  line-height:1.2;
}

.theme-btn.active{
  background:linear-gradient(135deg, rgba(124,92,255,.20), rgba(90,162,255,.16));
  border-color:rgba(90,162,255,.24);
  box-shadow:0 14px 28px rgba(90,162,255,.16);
}

.theme-btn.active .theme-btn-icon{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow:0 12px 24px rgba(90,162,255,.24);
}

.profile-logout{
  width:100%;
}

/* Bottom Navigation */
.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(0, 1fr));
  gap:8px;
  z-index:4;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-top:1px solid var(--stroke);
  backdrop-filter:blur(8px);
}

.nav-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:8px 4px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  color:#fff;
  font-weight:700;
  min-width:0;
}

.nav-icon{
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.nav-icon svg{
  width:20px;
  height:20px;
  display:block;
}

.nav-btn.active{
  background:linear-gradient(180deg, rgba(124,92,255,.22), rgba(90,162,255,.12));
  border-color:var(--stroke);
}

.nav-btn small{
  font-size:11px;
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Responsive */
@media (max-width: 420px){
  .bottom-nav{gap:6px;padding-left:6px;padding-right:6px}
  .nav-btn{padding:7px 3px}
  .nav-btn small{font-size:10px}
}

@media (max-width: 390px){
  .topbar{
    height:54px;
    padding:0 12px;
  }

  .views{
    padding:10px 10px 76px;
  }

  .h3{
    font-size:17px;
    margin-left:2px;
  }

  .day-controls{
    gap:8px;
    margin:4px 0 6px;
  }

  .day-title{
    font-size:13px;
    padding:5px 8px;
  }

  .day-scroll{
    gap:6px;
    margin:2px 0 8px;
    padding:2px 0 8px;
    overflow-x:auto;
    flex-wrap:nowrap;
    -webkit-overflow-scrolling:touch;
  }

  .day-chip{
    flex:0 0 auto;
    min-width:74px;
    padding:7px 9px;
    font-size:12px;
  }

  .timeline{
    gap:10px;
  }

  .event{
    padding:12px 13px;
  }

  .event h4{
    margin:6px 0 2px;
    font-size:15px;
    line-height:1.38;
  }

  .event .time{
    font-size:14px;
  }

  #v-activities .card,
  #v-feedback .card,
  #v-moderator .card{
    padding:8px;
  }

  #v-profile .card{
    padding:14px;
  }

  .input{
    padding:11px 12px;
  }

  .btn{
    padding:11px 14px;
  }

  .page-logo img,
  .login-logo{
    width:40vw;
  }

  .vote-title,
  .answer-question{
    font-size:17px;
  }

  .vote-desc{
    font-size:15px;
    line-height:1.58;
  }

  .profile-card{
    gap:16px;
  }

  .profile-avatar{
    width:72px;
    height:72px;
    font-size:26px;
  }

  .profile-fio{
    font-size:20px;
  }

  .profile-role,
  .profile-team-title,
  .moderator-card-title{
    font-size:15px;
  }

  .moderator-card{
    gap:12px;
  }

  .moderator-list .moderator-question{ padding:8px 10px; }
}

@media (max-width: 360px){
  .topbar{
    height:52px;
    padding:0 10px;
  }

  .views{
    padding:8px 8px 74px;
  }

  .h3{
    font-size:16px;
  }

  .day-controls{
    gap:6px;
    margin:4px 0 6px;
  }

  .pill{
    padding:7px 10px;
  }

  .day-title{
    font-size:12px;
    padding:5px 8px;
  }

  .day-scroll{
    gap:6px;
    margin:2px 0 8px;
    padding:2px 0 8px;
    overflow-x:auto;
    flex-wrap:nowrap;
    -webkit-overflow-scrolling:touch;
  }

  .day-chip{
    flex:0 0 auto;
    min-width:70px;
    padding:7px 8px;
    font-size:12px;
  }

  .timeline{
    gap:8px;
  }

  .event{
    padding:10px 12px;
  }

  .event h4{
    margin:6px 0 2px;
    font-size:14px;
    line-height:1.35;
  }

  .event .time,
  .event .meta{
    font-size:12px;
  }

  #v-activities .card,
  #v-feedback .card,
  #v-moderator .card{
    padding:8px;
  }

  #v-profile .card{
    padding:12px;
  }

  .input{
    padding:10px 12px;
  }

  .btn{
    padding:10px 12px;
  }

  .page-logo img,
  .login-logo{
    width:44vw;
  }

  .vote-title,
  .answer-question{
    font-size:16px;
  }

  .vote-desc{
    font-size:14px;
    line-height:1.55;
  }

  .profile-card{
    gap:14px;
  }

  .profile-avatar{
    width:68px;
    height:68px;
    font-size:24px;
  }

  .profile-fio{
    font-size:18px;
  }

  .profile-role,
  .profile-team-title,
  .moderator-card-title{
    font-size:14px;
  }

  .moderator-card{
    gap:10px;
  }

  .moderator-list .moderator-question{ padding:8px; }

  .bottom-nav{gap:4px;padding-left:4px;padding-right:4px}
  .nav-btn{padding:6px 2px}
  .nav-btn small{font-size:9.5px}
}

@media (min-width: 768px){
  .topbar{
    height:60px;
    padding:0 18px;
  }

  .views{
    padding:16px 16px 92px;
  }

  .h3{
    font-size:20px;
  }

  .day-controls{
    gap:12px;
    margin:8px 0 10px;
  }

  .day-title{
    font-size:15px;
    padding:7px 12px;
  }

  .day-scroll{
    gap:10px;
    margin:6px 0 12px;
    padding:4px 2px 12px;
  }

  .day-chip{
    padding:9px 12px;
    font-size:14px;
  }

  .timeline{
    gap:14px;
  }

  .event{
    padding:16px 18px;
  }

  .event h4{
    font-size:17px;
    line-height:1.48;
  }

  .event .time{
    font-size:15px;
  }

  #v-activities .card,
  #v-feedback .card,
  #v-moderator .card{
    padding:14px;
  }

  #v-profile .card{
    padding:18px;
  }

  .input{
    padding:13px 16px;
  }

  .btn{
    padding:13px 18px;
  }

  .page-logo img,
  .login-logo{
    width:24vw;
    max-width:220px;
  }

  .vote-title,
  .answer-question{
    font-size:20px;
  }

  .vote-desc{
    font-size:17px;
  }

  .profile-avatar{
    width:84px;
    height:84px;
    font-size:30px;
  }

  .profile-fio{
    font-size:24px;
  }

  .profile-role{
    font-size:17px;
  }
}

/* Motion */
@keyframes fade{
  from{opacity:0;transform:translateY(4px)}
  to{opacity:1;transform:none}
}

/* Light Theme */
:root[data-theme="light"]{
  --bg:#f8fafc;
  --bg2:#eef2f7;
  --text:#0f172a;
  --muted:rgba(15,23,42,.68);
  --card:rgba(255,255,255,.92);
  --stroke:rgba(15,23,42,.08);
  --shadow:0 20px 48px rgba(15,23,42,.10);
}

html[data-theme="light"]{
  background:
    radial-gradient(220px 220px at 84% -8%, rgba(124,92,255,.16), transparent 72%),
    radial-gradient(280px 280px at 12% 2%, rgba(90,162,255,.14), transparent 64%),
    radial-gradient(220px 220px at 50% 12%, rgba(124,92,255,.06), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

html[data-theme="light"] body{
  color:var(--text);
  background:
    radial-gradient(220px 220px at 84% -8%, rgba(124,92,255,.16), transparent 72%),
    radial-gradient(280px 280px at 12% 2%, rgba(90,162,255,.14), transparent 64%),
    radial-gradient(220px 220px at 50% 12%, rgba(124,92,255,.06), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

html[data-theme="light"] body::before{
  background:
    radial-gradient(220px 220px at 84% -8%, rgba(124,92,255,.16), transparent 72%),
    radial-gradient(280px 280px at 12% 2%, rgba(90,162,255,.14), transparent 64%),
    radial-gradient(220px 220px at 50% 12%, rgba(124,92,255,.06), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

html[data-theme="light"] a{
  color:#4338ca;
}

html[data-theme="light"] .h3{
  color:#0f172a;
}

html[data-theme="light"] .vote-title,
html[data-theme="light"] .answer-question,
html[data-theme="light"] .moderator-card-title,
html[data-theme="light"] .admin-card-title,
html[data-theme="light"] .profile-team-title{
  color:#4338ca;
}

html[data-theme="light"] .admin-card-caret{
  color:#4338ca;
}

html[data-theme="light"] .card{
  background:rgba(255,255,255,.94);
  border-color:rgba(90,162,255,.16);
  box-shadow:
    0 16px 36px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,.75);
}

html[data-theme="light"] .input{
  background:rgba(255,255,255,.88);
  color:var(--text);
}

html[data-theme="light"] select.input option,
html[data-theme="light"] .moderator-select-wrap select option{
  background:#ffffff;
  color:var(--text);
}

html[data-theme="light"] .input::placeholder{
  color:rgba(15,23,42,.42);
}

html[data-theme="light"] .btn{
  background:rgba(255,255,255,.82);
  color:var(--text);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

html[data-theme="light"] .moderator-refresh-btn{
  background:rgba(67,56,202,.10);
  border-color:rgba(67,56,202,.22);
  color:#4338ca;
  box-shadow:0 8px 18px rgba(67,56,202,.08);
}

html[data-theme="light"] .btn.primary,
html[data-theme="light"] #btnSendQ,
html[data-theme="light"] #btnSendAnswer{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  color:#fff;
  border-color:transparent;
  box-shadow:0 14px 30px rgba(90,162,255,.22);
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .bottom-nav{
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.84));
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}

html[data-theme="light"] .t-brand{
  color:#4338ca;
}

html[data-theme="light"] .pill{
  color:var(--text);
}

html[data-theme="light"] .day-title{
  color:#4338ca;
  background:linear-gradient(90deg, rgba(124,92,255,.10), rgba(90,162,255,.10));
  box-shadow:0 8px 18px rgba(124,92,255,.08);
}

html[data-theme="light"] .day-chip{
  border-color:rgba(15,23,42,.08);
  background:rgba(255,255,255,.86);
  color:#334155;
}

html[data-theme="light"] .day-chip.active{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  color:#fff;
  box-shadow:0 10px 22px rgba(90,162,255,.20);
}

html[data-theme="light"] .event{
  background:rgba(255,255,255,.96);
  border-color:rgba(90,162,255,.18);
  box-shadow:0 18px 42px rgba(15,23,42,.08);
}

html[data-theme="light"] .event .time{
  background:linear-gradient(135deg, rgba(124,92,255,.14), rgba(90,162,255,.14));
  color:#4338ca;
  box-shadow:inset 0 0 0 1px rgba(124,92,255,.14);
}

html[data-theme="light"] .event h4,
html[data-theme="light"] .profile-role{
  color:#0f172a;
}

html[data-theme="light"] .list li{
  border-bottom-color:rgba(15,23,42,.10);
}

html[data-theme="light"] .btn.voted{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  color:#fff;
  border-color:rgba(124,92,255,.18);
  box-shadow:0 12px 28px rgba(124,92,255,.18);
}

html[data-theme="light"] .btn.vote-muted{
  background:rgba(15,23,42,.04);
  color:rgba(15,23,42,.48);
  border-color:rgba(15,23,42,.08);
  box-shadow:none;
}

html[data-theme="light"] .vote-status,
html[data-theme="light"] .feedback-status{
  background:linear-gradient(90deg, rgba(124,92,255,.08), rgba(90,162,255,.06));
  color:#4338ca;
  box-shadow:0 10px 24px rgba(90,162,255,.08);
}

html[data-theme="light"] .vote-status{
  background:transparent;
  color:#4338ca;
  box-shadow:none;
}

html[data-theme="light"] .feedback-status{
  background:transparent;
  color:#4338ca;
  box-shadow:none;
}

html[data-theme="light"] .vote-header{
  background:transparent;
  box-shadow:none;
}

html[data-theme="light"] .vote-desc{
  color:rgba(15,23,42,.78);
}

html[data-theme="light"] .vote-prompt{
  color:rgba(15,23,42,.58);
}

html[data-theme="light"] #voteBox.is-success,
html[data-theme="light"] #feedbackCard.is-success{
  border-color:rgba(124,92,255,.18);
  background:rgba(124,92,255,.05);
  box-shadow:0 18px 42px rgba(15,23,42,.08);
}

html[data-theme="light"] .moderator-card-subtitle{
  color:rgba(15,23,42,.62);
}

html[data-theme="light"] .moderator-filter-card{
  background:rgba(255,255,255,.86);
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

html[data-theme="light"] .moderator-filter-label{
  color:#0f172a;
}

html[data-theme="light"] .moderator-select-wrap select{
  color:#0f172a;
}

html[data-theme="light"] #moderatorDaySelect,
html[data-theme="light"] #moderatorEventSelect{
  background:linear-gradient(180deg, rgba(124,92,255,.08), rgba(90,162,255,.05));
  border-color:rgba(124,92,255,.20);
  box-shadow:0 8px 20px rgba(124,92,255,.06);
}

html[data-theme="light"] .moderator-select-caret{
  color:#0f172a;
}

html[data-theme="light"] .moderator-time-row .input,
html[data-theme="light"] .moderator-time-sep{
  color:#0f172a;
}

html[data-theme="light"] .moderator-question{
  background:rgba(255,255,255,.86);
  border-color:rgba(67,56,202,.14);
  box-shadow:inset 0 0 0 1px rgba(67,56,202,.26), 0 12px 28px rgba(15,23,42,.06);
}

html[data-theme="light"] .moderator-question-event{
  color:#4338ca;
}

html[data-theme="light"] .moderator-question-fio{
  color:#4338ca;
}

html[data-theme="light"] .moderator-question-department{
  color:#0f172a;
}

html[data-theme="light"] .moderator-action-btn{
  background:linear-gradient(90deg, rgba(124,92,255,.10), rgba(90,162,255,.08));
  border-color:rgba(90,162,255,.18);
  color:#4338ca;
  box-shadow:0 10px 24px rgba(90,162,255,.08);
}

html[data-theme="light"] .moderator-question.is-answered{
  background:rgba(15,23,42,.03);
  border-color:rgba(15,23,42,.08);
}

html[data-theme="light"] .admin-card-subtitle,
html[data-theme="light"] .admin-question-meta,
html[data-theme="light"] .admin-empty{
  color:rgba(15,23,42,.62);
}

html[data-theme="light"] .admin-vote-empty,
html[data-theme="light"] .admin-vote-desc,
html[data-theme="light"] .admin-vote-meta,
html[data-theme="light"] .admin-vote-result-value{
  color:rgba(15,23,42,.62);
}

html[data-theme="light"] .admin-select-caret{
  color:rgba(67,56,202,.72);
}

html[data-theme="light"] .admin-day-controls{
  border-color:rgba(15,23,42,.10);
}

html[data-theme="light"] .admin-question{
  background:rgba(255,255,255,.86);
  border-color:rgba(15,23,42,.08);
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

html[data-theme="light"] .admin-vote-card{
  background:rgba(255,255,255,.9);
  border-color:rgba(15,23,42,.08);
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

html[data-theme="light"] .vote-dashboard-card{
  border-color:rgba(67,56,202,.12);
  background:
    radial-gradient(circle at top right, rgba(90,162,255,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.98));
  box-shadow:0 24px 60px rgba(15,23,42,.08);
}

html[data-theme="light"] .vote-dashboard-panel-name,
html[data-theme="light"] .vote-dashboard-description,
html[data-theme="light"] .vote-dashboard-finish,
html[data-theme="light"] .vote-dashboard-stat-label,
html[data-theme="light"] .vote-dashboard-updated,
html[data-theme="light"] .vote-dashboard-empty{
  color:rgba(15,23,42,.62);
}

html[data-theme="light"] .vote-dashboard-mode{
  color:#4338ca;
  background:rgba(67,56,202,.08);
  border-color:rgba(67,56,202,.14);
}

html[data-theme="light"] .vote-dashboard-status{
  color:#0f172a;
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.08);
}

html[data-theme="light"] .vote-dashboard-status[data-status="active"]{
  background:rgba(90,162,255,.12);
  border-color:rgba(90,162,255,.2);
}

html[data-theme="light"] .vote-dashboard-status[data-status="archived"]{
  background:rgba(67,56,202,.08);
  border-color:rgba(67,56,202,.16);
}

html[data-theme="light"] .vote-dashboard-countdown-wrap{
  background:linear-gradient(135deg, rgba(90,162,255,.18), rgba(124,92,255,.14));
  border-color:rgba(67,56,202,.18);
  box-shadow:0 18px 32px rgba(67,56,202,.10);
}

html[data-theme="light"] .vote-dashboard-stat{
  border-color:rgba(15,23,42,.08);
  background:rgba(255,255,255,.82);
}

html[data-theme="light"] .vote-dashboard-chart-wrap{
  border-color:rgba(15,23,42,.08);
  background:rgba(255,255,255,.82);
}

html[data-theme="light"] .vote-dashboard-empty{
  border-color:rgba(15,23,42,.08);
  background:rgba(255,255,255,.82);
}

html[data-theme="light"] .admin-vote-list-item{
  background:rgba(255,255,255,.9);
  border-color:rgba(15,23,42,.08);
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

html[data-theme="light"] .admin-vote-card.is-active{
  background:linear-gradient(180deg, rgba(124,92,255,.08), rgba(90,162,255,.06));
  border-color:rgba(90,162,255,.20);
}

html[data-theme="light"] .admin-vote-status-badge{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.08);
  color:#4338ca;
}

html[data-theme="light"] .admin-vote-launch{
  background:rgba(67,56,202,.06);
  border-color:rgba(67,56,202,.14);
}

html[data-theme="light"] .admin-vote-launch-mode{
  color:#4338ca;
}

html[data-theme="light"] .admin-vote-countdown{
  color:#0f172a;
}

html[data-theme="light"] .admin-vote-result-track{
  background:rgba(15,23,42,.06);
}

html[data-theme="light"] .admin-action-btn{
  background:linear-gradient(90deg, rgba(124,92,255,.10), rgba(90,162,255,.08));
  border-color:rgba(90,162,255,.18);
  color:#4338ca;
  box-shadow:0 10px 24px rgba(90,162,255,.08);
}

html[data-theme="light"] .nav-btn{
  color:var(--text);
}

html[data-theme="light"] .nav-btn.active{
  color:#4338ca;
  background:linear-gradient(180deg, rgba(124,92,255,.10), rgba(90,162,255,.08));
  box-shadow:0 10px 24px rgba(90,162,255,.08);
}

html[data-theme="light"] .nav-btn[data-view="program"].active{
  color:#0f172a;
}

html[data-theme="light"] .login-card{
  background:rgba(255,255,255,.92);
  box-shadow:0 24px 54px rgba(15,23,42,.10);
}

html[data-theme="light"] .profile-avatar{
  border-color:rgba(255,255,255,.7);
  box-shadow:0 18px 36px rgba(90,162,255,.20);
}

html[data-theme="light"] .theme-btn{
  background:rgba(255,255,255,.86);
  border-color:rgba(15,23,42,.08);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

html[data-theme="light"] .theme-btn-icon{
  background:rgba(15,23,42,.06);
  color:#4338ca;
}

html[data-theme="light"] .theme-btn.active{
  background:linear-gradient(135deg, rgba(124,92,255,.10), rgba(90,162,255,.08));
  border-color:rgba(90,162,255,.20);
  box-shadow:
    0 12px 24px rgba(15,23,42,.06),
    inset 0 0 0 1px rgba(124,92,255,.06);
}

html[data-theme="light"] .login-card h2,
html[data-theme="light"] .field{
  color:var(--text);
}

html[data-theme="light"] .form-error{
  background:rgba(255, 120, 120, .10);
  color:#9f1239;
}

html[data-theme="light"] .warn{
  border-color:rgba(239,68,68,.24);
  background:rgba(239,68,68,.08);
  color:#991b1b;
}

html[data-theme="light"] #btnSendQ.is-success{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  color:#fff;
  border-color:transparent;
  box-shadow:0 14px 30px rgba(90,162,255,.20);
}

/* ── Викторины / Квесты (admin) ── */

.admin-quiz-question-card{
  padding:14px 16px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:10px;
}

.admin-quiz-question-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:6px;
}

.admin-quiz-question-num{
  font-weight:700;
  font-size:15px;
  color:var(--accent2, #5aa2ff);
}

.admin-quiz-question-text{
  font-size:14px;
  line-height:1.45;
  color:var(--text);
  margin-bottom:6px;
}

.is-active-badge{
  background:linear-gradient(90deg, rgba(34,197,94,.16), rgba(34,197,94,.08)) !important;
  color:#22c55e !important;
  border-color:rgba(34,197,94,.20) !important;
}

.admin-quiz-results-popup{
  margin-bottom:14px;
  padding:16px;
  border:1px solid var(--accent2, #5aa2ff);
  border-radius:14px;
}

.admin-quiz-results-table{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.admin-quiz-results-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:8px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.04);
}

.admin-quiz-results-pos{
  font-weight:700;
  min-width:28px;
  color:var(--accent2, #5aa2ff);
  font-size:14px;
}

.admin-quiz-results-name{
  flex:1;
  font-size:14px;
  color:var(--text);
}

.admin-quiz-results-value{
  font-size:13px;
  color:rgba(255,255,255,.60);
  white-space:nowrap;
}

html[data-theme="light"] .admin-quiz-question-card{
  background:rgba(15,23,42,.02);
  border-color:rgba(15,23,42,.06);
}

html[data-theme="light"] .admin-quiz-results-row{
  background:rgba(15,23,42,.02);
  border-color:rgba(15,23,42,.06);
}

html[data-theme="light"] .admin-quiz-results-value{
  color:rgba(15,23,42,.55);
}

html[data-theme="light"] .admin-quiz-results-pos{
  color:#4338ca;
}

html[data-theme="light"] .admin-quiz-question-num{
  color:#4338ca;
}

html[data-theme="light"] .is-active-badge{
  background:linear-gradient(90deg, rgba(34,197,94,.12), rgba(34,197,94,.06)) !important;
  color:#16a34a !important;
  border-color:rgba(34,197,94,.18) !important;
}

@media (orientation: landscape){
  .event{
    display:grid;
    grid-template-columns:minmax(104px, 128px) 1fr;
    gap:14px 18px;
    align-items:center;
  }

  .event .time{
    align-self:center;
    justify-self:center;
  }

  .event h4{
    margin:0;
    align-self:center;
  }
}

@media (max-width: 720px){
  .vote-dashboard-main{
    grid-template-columns:minmax(0, 1fr) minmax(340px, 48vw);
  }
}

@media (max-width: 640px){
  .vote-dashboard-body{
    overflow:auto;
  }

  .vote-dashboard-card{
    height:auto;
    min-height:100%;
    padding:16px 14px;
    border-radius:24px;
    overflow:visible;
  }

  .vote-dashboard-main{
    grid-template-columns:1fr;
    height:auto;
  }

  .vote-dashboard-left{
    justify-content:flex-start;
  }

  .vote-dashboard-right{
    grid-template-rows:auto auto;
  }

  .vote-dashboard-head{
    flex-direction:column;
  }

  .vote-dashboard-logo{
    width:68px;
  }

  .vote-dashboard-results-layout{
    grid-template-columns:1fr;
    height:auto;
  }

  .vote-dashboard-chart{
    height:auto;
  }
}
