/* 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);
  --bottom-nav-offset:calc(104px + env(safe-area-inset-bottom));
}

/* 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-news .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)}
.input:disabled{opacity:.45;cursor:default}

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-vbar-wrap{
  display:flex;
  align-items:stretch;
  gap:8px;
  flex:1;
  min-height:0;
  overflow-x:auto;
  overflow-y:visible;
  padding:0 2px;
}
.vote-dashboard-vbar-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
  min-width:36px;
  max-width:100px;
}
.vote-dashboard-vbar-value{
  font-size:15px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
  color:var(--text);
  font-variant-numeric:tabular-nums;
}
.vote-dashboard-vbar-pct{
  font-size:12px;
  font-weight:600;
  opacity:.65;
  white-space:nowrap;
  margin-bottom:6px;
  font-variant-numeric:tabular-nums;
}
.vote-dashboard-vbar-area{
  flex:1;
  width:100%;
  min-height:30px;
  display:flex;
  align-items:flex-end;
  background:rgba(255,255,255,.05);
  border-radius:8px;
}
.vote-dashboard-vbar-bar{
  width:100%;
  border-radius:8px 8px 0 0;
  min-height:3px;
  transition:height .4s ease;
}
.vote-dashboard-vbar-label-wrap{
  width:100%;
  height:130px;
  overflow:hidden;
  display:flex;
  justify-content:center;
  padding-top:6px;
  flex-shrink:0;
}
.vote-dashboard-vbar-label{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  white-space:pre-wrap;
  word-break:keep-all;
  hyphens:auto;
  font-size:14px;
  font-weight:600;
  opacity:1;
  overflow:hidden;
  max-height:124px;
  line-height:1.25;
}

.vote-dashboard-bar-visual{
  display:flex;
  flex-direction:column;
  gap:14px;
  width:min(100%, 760px);
  margin:0 auto;
}

.vote-dashboard-bar-row{
  display:grid;
  grid-template-columns:minmax(180px, 260px) minmax(0, 1fr);
  gap:14px;
  align-items:center;
}

.vote-dashboard-bar-label{
  min-width:0;
  font-size:18px;
  line-height:1.3;
  font-weight:800;
  color:var(--text);
}

.vote-dashboard-bar-track{
  position:relative;
  min-width:0;
  height:44px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}

.vote-dashboard-bar-fill{
  position:absolute;
  inset:0 auto 0 0;
  border-radius:14px;
}

.vote-dashboard-bar-meta{
  position:absolute;
  inset:0 14px 0 auto;
  display:flex;
  align-items:center;
  font-size:16px;
  line-height:1;
  font-weight:900;
  color:var(--text);
  font-variant-numeric:tabular-nums;
}

.vote-dashboard-bar-total{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  text-align:center;
}

.vote-dashboard-bar-total strong{
  font-size:34px;
  line-height:1;
  font-weight:900;
}

.vote-dashboard-bar-total span{
  font-size:14px;
  line-height:1.2;
  color:var(--muted);
  font-weight:700;
}

.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:flex;
  flex-direction:column;
  gap:10px;
  width:70%;
  max-width:100%;
  align-self:center;
  margin:0 auto;
}

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

.vote-dashboard-chart-marker{
  width:16px;
  height:16px;
  border-radius:999px;
  box-shadow:none;
}

.vote-dashboard-chart-legend-label{
  min-width:0;
  font-size:22px;
  line-height:1.3;
  font-weight:800;
  color:var(--text);
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

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

.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);
}

/* Fullbar mode */
.vote-dashboard-main--fullbar{
  grid-template-columns:1fr;
  grid-template-rows:auto minmax(0,1fr);
}
.vote-dashboard-main--fullbar .vote-dashboard-left{
  flex-direction:row;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  padding-bottom:16px;
  border-bottom:1px solid var(--stroke);
}
.vote-dashboard-main--fullbar .vote-dashboard-head{
  flex:1;
  min-width:0;
}
.vote-dashboard-main--fullbar .vote-dashboard-title{
  font-size:clamp(18px,2.2vw,32px);
}
.vote-dashboard-main--fullbar .vote-dashboard-panel-name{
  font-size:14px;
}
.vote-dashboard-main--fullbar .vote-dashboard-logo{
  width:52px;
  align-self:center;
}
.vote-dashboard-main--fullbar .vote-dashboard-vbar-col{
  max-width:140px;
}
.vote-dashboard-main--fullbar .vote-dashboard-vbar-value{
  font-size:clamp(15px,1.8vw,22px);
}
.vote-dashboard-main--fullbar .vote-dashboard-vbar-pct{
  font-size:clamp(11px,1.3vw,15px);
}
.vote-dashboard-main--fullbar .vote-dashboard-vbar-label{
  font-size:clamp(12px,1.3vw,16px) !important;
  writing-mode:horizontal-tb;
  transform:none;
  white-space:normal;
  text-align:center;
  word-break:break-word;
  hyphens:auto;
}
.vote-dashboard-main--fullbar .vote-dashboard-vbar-label-wrap{
  height:auto;
  min-height:0;
  flex-direction:column;
  justify-content:flex-start;
  padding-top:0;
  padding-bottom:0;
}
.vote-dashboard-main--fullbar .vote-dashboard-bar-total strong{
  font-size:clamp(28px,3.5vw,48px);
}

.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;
}

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

.topbar{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:2px;
  padding:8px 14px 6px;
  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);
}

.topbar-main{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.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;
}

.topbar-session{
  text-align:center;
  font-size:14px;
  line-height:1.25;
  font-weight:900;
  color:#fff;
}

.topbar-session-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:5px 12px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:999px;
  background:transparent;
  box-shadow:none;
}

.topbar-session-logo{
  width:44px;
  height:44px;
  flex:0 0 44px;
  object-fit:contain;
}

.views{padding:12px 12px var(--bottom-nav-offset)}
.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;
  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%;
}

.edit-user-save-status{
  margin-top:8px;
  font-size:13px;
  font-weight:600;
  text-align:center;
}
.edit-user-save-status-ok{color:#2fc98e}
.edit-user-save-status-error{color:#f25c5c}

.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-announcement-instruction-link{
  flex:0 0 auto;
  white-space:nowrap;
  text-align:center;
}

.admin-tools-public-links{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--border-color, rgba(255,255,255,.1));
}
.admin-tools-public-links-label{
  font-size:12px;
  opacity:.55;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.admin-tools-public-links-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.profile-instruction-link{
  width:100%;
  text-align:center;
}

.app-toast{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%) translateY(12px);
  background:rgba(30,30,46,.96);
  color:#fff;
  font-size:14px;
  font-weight:500;
  padding:10px 20px;
  border-radius:12px;
  box-shadow:0 4px 20px rgba(0,0,0,.35);
  pointer-events:none;
  opacity:0;
  transition:opacity .2s ease, transform .2s ease;
  z-index:9999;
  white-space:nowrap;
  max-width:calc(100vw - 40px);
  text-align:center;
}
.app-toast--visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
html[data-theme="light"] .app-toast{
  background:rgba(15,23,42,.9);
}

.admin-section-footer-links{
  display:flex;
  gap:12px;
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid var(--border-color, rgba(255,255,255,.08));
}

.admin-section-footer-link{
  font-size:14px;
  color:rgba(255,255,255,.8);
  text-decoration:none;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  font-family:inherit;
  transition:color .15s;
}
.admin-section-footer-link:hover{
  color:rgba(255,255,255,.8);
}

html[data-theme="light"] .admin-section-footer-link{
  color:rgba(15,23,42,.8);
}
html[data-theme="light"] .admin-section-footer-link:hover{
  color:rgba(15,23,42,.75);
}
html[data-theme="light"] .admin-section-footer-links{
  border-top-color:rgba(15,23,42,.08);
}

.admin-announcement-footer-actions{
  margin-top:12px;
}

#coordinatorViewRoot > .admin-announcements-card[data-admin-card-key="coordinator-announcements"]{
  background:transparent;
  border:none;
  box-shadow:none;
  backdrop-filter:none;
  padding:0;
}

#coordinatorViewRoot > .admin-announcements-card[data-admin-card-key="coordinator-announcements"] .admin-card-head{
  padding-right:0;
}

.admin-field-block-wide{
  grid-column:1 / -1;
}

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

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

@media (orientation: landscape){
  .admin-announcements-card .admin-vote-toolbar{
    flex-wrap:nowrap;
    align-items:center;
  }

  .admin-announcements-card .admin-vote-mode-wrap{
    flex:1 1 auto;
    max-width:none;
  }
}

.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-groups-wrap{
  grid-column:1 / -1;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,255,255,.04);
}

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

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

.admin-vote-group-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  cursor:pointer;
}

.admin-vote-group-item input{
  margin:0;
}

.admin-vote-group-text{
  font-size:13px;
  line-height:1.2;
}

.admin-groups-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.admin-groups-kind-select-wrap{
  flex:1 1 260px;
  max-width:420px;
}

.admin-groups-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr);
  gap:12px;
}

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

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

.admin-groups-section-title{
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}

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

.admin-groups-textarea{
  min-height:88px;
  resize:vertical;
}

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

.admin-groups-list-item{
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,255,255,.04);
}

.admin-groups-list-name{
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}

.admin-groups-list-meta{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.admin-groups-empty{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  padding:8px 0 2px;
}

.admin-groups-user-select-wrap{
  max-width:none;
}

.admin-user-groups-editor{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.admin-user-group-kind{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.04);
}

.admin-user-group-kind-title{
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}

.admin-user-group-kind-subtitle{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

.admin-user-group-items{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.admin-user-group-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  cursor:pointer;
  font-size:13px;
  line-height:1.2;
}

.admin-user-group-item input{
  margin:0;
}

.admin-edit-user-search-row{
  display:flex;
  gap:8px;
  margin-bottom:10px;
}

.admin-edit-user-search-row .input{
  flex:1;
}

.admin-edit-user-results{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

.admin-edit-user-result-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  cursor:pointer;
  transition:background .15s;
}

.admin-edit-user-result-item:hover{
  background:rgba(255,255,255,.09);
}

.admin-edit-user-result-fio{
  font-size:14px;
  font-weight:500;
}

.admin-edit-user-result-meta{
  font-size:12px;
  color:var(--muted);
  margin-left:4px;
}

.admin-edit-user-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

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

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

.news-empty{
  color:var(--muted);
}

.news-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 16px;
  border-radius:20px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
}

.news-card.is-unread{
  border-color:rgba(90,162,255,.35);
  box-shadow:0 10px 24px rgba(15,23,42,.14);
}

.news-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.news-kind{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(124,92,255,.16);
  color:#d9d4ff;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.news-meta{
  color:var(--muted);
  font-size:12px;
  line-height:1.2;
}

.news-title{
  font-size:18px;
  font-weight:800;
  line-height:1.3;
}

.news-body{
  white-space:pre-wrap;
  line-height:1.6;
}

.news-unread-badge{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(90,162,255,.16);
  color:#d6ebff;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.registration-card{
  border-color:rgba(90,162,255,.2);
}

.registration-kind{
  background:rgba(34,197,94,.15);
  color:#d8ffe8;
}

.registration-meta-list{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.registration-status{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.registration-status[data-state="registered"]{
  background:rgba(34,197,94,.16);
  color:#d8ffe8;
}

.registration-status[data-state="closed"]{
  background:rgba(251,191,36,.16);
  color:#ffe7a3;
}

.registration-status[data-state="full"]{
  background:rgba(239,68,68,.16);
  color:#ffd2d2;
}

.registration-status[data-state="open"]{
  background:rgba(90,162,255,.16);
  color:#d6ebff;
}

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

.registration-actions .btn{
  min-width:160px;
}

.admin-announcement-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.admin-announcement-inline-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.admin-field-block{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.admin-field-label{
  font-size:12px;
  font-weight:600;
  color:var(--muted);
}

.admin-announcement-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,255,255,.04);
}

.admin-announcement-check input{
  margin:0;
}

.admin-announcement-targets{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

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

.admin-target-search{
  width:100%;
}

.admin-announcement-target-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:220px;
  overflow:auto;
  padding:8px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}

.admin-announcement-target-item{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  font-size:13px;
  line-height:1.35;
}

.admin-announcement-target-item input{
  margin:2px 0 0;
}

.admin-announcement-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-announcement-card-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.admin-announcement-kind{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(124,92,255,.28);
  background:rgba(124,92,255,.15);
  color:#f3f1ff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  margin-bottom:8px;
}

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

.admin-announcement-body{
  white-space:pre-wrap;
  line-height:1.55;
  color:var(--text);
}

.admin-announcement-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

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

@media (max-width: 720px){
  .admin-announcement-inline-grid,
  .admin-announcement-targets{
    grid-template-columns:1fr;
  }
}

.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-announcement-card .news-kind{
  margin-bottom:8px;
}

.admin-registration-kind{
  background:rgba(34,197,94,.15);
  color:#d8ffe8;
}

.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-chart-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin:12px 0;
  width:100%;
}
.admin-vote-chart-bar-wrap{
  align-items:flex-start;
  overflow-x:auto;
}
.admin-vote-chart-legend{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.admin-vote-chart-legend-row{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}
.admin-vote-chart-legend-dot{
  flex-shrink:0;
  width:10px;
  height:10px;
  border-radius:50%;
}
.admin-vote-chart-legend-label{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.admin-vote-chart-legend-val{
  flex-shrink:0;
  opacity:.7;
  font-size:12px;
  white-space:nowrap;
}

.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-feed-sections{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.admin-feed-section{
  border:1px solid var(--stroke);
  border-radius:20px;
  background:rgba(255,255,255,.05);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  overflow:hidden;
  padding:10px;
  padding-right: 16px;
  gap:8px;
}

.admin-feed-summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0;
  min-height:28px;
  cursor:pointer;
  font-weight:800;
  user-select:none;
}

.admin-feed-summary::-webkit-details-marker{
  display:none;
}

.admin-feed-title{
  font-size:15px;
  line-height:1.2;
  color:rgba(124,92,255,.95);
}

.admin-feed-caret{
  color:rgba(124,92,255,.95);
  font-size:13px;
  line-height:1;
  font-weight:800;
  transform-origin:center;
  transition:transform .18s ease, color .18s ease;
}

.admin-feed-section[open] > .admin-feed-summary .admin-feed-caret{
  transform:rotate(90deg);
}

.admin-feed-section > .admin-vote-list{
  padding:8px 0 0;
}

.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-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

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

@media (max-width: 720px){
  .admin-vote-form{
    grid-template-columns:1fr;
  }
  .admin-announcement-inline-grid,
  .admin-announcement-targets{
    grid-template-columns:1fr;
  }
  .admin-groups-grid{
    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;
  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;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
}

.profile-fio-line{
  display:block;
  white-space:nowrap;
}

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

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

.profile-section + .profile-section{
  margin-top:14px;
}

.profile-push-status{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
}

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

.profile-push-status-hint{
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
}

.profile-push-status[data-state="success"]{
  border-color:rgba(34,197,94,.28);
  background:rgba(34,197,94,.10);
}

.profile-push-status[data-state="warning"]{
  border-color:rgba(245,158,11,.28);
  background:rgba(245,158,11,.10);
}

.profile-push-status[data-state="danger"]{
  border-color:rgba(239,68,68,.28);
  background:rgba(239,68,68,.10);
}

.profile-push-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.profile-push-actions .btn{
  flex:1 1 220px;
}

.profile-role-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.profile-role-actions .btn{
  flex:1 1 220px;
}

.profile-team-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  cursor:pointer;
  user-select:none;
  padding:4px 0;
}

.profile-team-head:focus-visible{
  outline:2px solid rgba(124,92,255,.34);
  outline-offset:4px;
  border-radius:8px;
}

.profile-team-caret{
  transition:transform .2s ease;
  flex-shrink:0;
}

.profile-team-head[aria-expanded="true"] .profile-team-caret{
  transform:rotate(90deg);
}

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

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


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

.theme-switch{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 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%;
  margin-top:14px;
}

/* 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{
    padding:8px 12px 6px;
  }

  .topbar-main{
    min-height:38px;
  }

  .topbar-session{
    font-size:13px;
  }

  .topbar-session-wrap{
    gap:7px;
    padding:5px 10px;
  }

  .topbar-session-logo{
    width:36px;
    height:36px;
    flex-basis:36px;
  }

  .views{
    padding:10px 10px var(--bottom-nav-offset);
  }

  .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{
    padding:8px 10px 6px;
  }

  .topbar-main{
    min-height:36px;
  }

  .topbar-session{
    font-size:12px;
  }

  .topbar-session-wrap{
    gap:6px;
    padding:4px 9px;
  }

  .topbar-session-logo{
    width:32px;
    height:32px;
    flex-basis:32px;
  }

  .views{
    padding:8px 8px var(--bottom-nav-offset);
  }

  .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{
    padding:10px 18px 8px;
  }

  .topbar-main{
    min-height:42px;
  }

  .topbar-session{
    font-size:15px;
  }

  .topbar-session-logo{
    width:48px;
    height:48px;
    flex-basis:48px;
  }

  .views{
    padding:16px 16px var(--bottom-nav-offset);
  }

  .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"] .topbar-session{
  color:#000;
}

html[data-theme="light"] .topbar-session-wrap{
  border-color:rgba(17, 56, 133, .3);
  background:rgba(255,255,255,.72);
  box-shadow:0 2px 8px rgba(9, 24, 56, .08);
}

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"] .news-kind{
  background:rgba(67,56,202,.10);
  border-color:rgba(67,56,202,.18);
  color:#4338ca;
}

html[data-theme="light"] .admin-announcement-kind{
  background:rgba(67,56,202,.12);
  border-color:rgba(67,56,202,.24);
  color:#312e81;
}

html[data-theme="light"] .registration-kind{
  background:rgba(34,197,94,.12);
  color:#166534;
}

html[data-theme="light"] .news-meta,
html[data-theme="light"] .news-empty{
  color:rgba(15,23,42,.56);
}

html[data-theme="light"] .news-title,
html[data-theme="light"] .news-body{
  color:#0f172a;
}

html[data-theme="light"] .news-unread-badge{
  background:rgba(67,56,202,.10);
  color:#4338ca;
}

html[data-theme="light"] .registration-status{
  background:rgba(148,163,184,.14);
  color:#334155;
}

html[data-theme="light"] .registration-status[data-state="registered"]{
  background:rgba(34,197,94,.14);
  color:#166534;
}

html[data-theme="light"] .registration-status[data-state="closed"]{
  background:rgba(251,191,36,.18);
  color:#92400e;
}

html[data-theme="light"] .registration-status[data-state="full"]{
  background:rgba(239,68,68,.14);
  color:#991b1b;
}

html[data-theme="light"] .registration-status[data-state="open"]{
  background:rgba(90,162,255,.16);
  color:#1d4ed8;
}

html[data-theme="light"] .admin-announcement-check{
  background:rgba(255,255,255,.88);
  color:#0f172a;
}

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,
html[data-theme="light"] .admin-groups-empty,
html[data-theme="light"] .admin-groups-list-meta,
html[data-theme="light"] .admin-user-group-kind-subtitle{
  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"] .admin-groups-list-item,
html[data-theme="light"] .admin-user-group-kind{
  background:rgba(255,255,255,.9);
  border-color:rgba(15,23,42,.08);
  box-shadow:0 12px 28px rgba(15,23,42,.04);
}

html[data-theme="light"] .admin-user-group-item{
  background:rgba(124,92,255,.05);
  border-color:rgba(67,56,202,.12);
  color:#0f172a;
}

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-bar-track{
  border-color:rgba(15,23,42,.08);
  background:rgba(67,56,202,.08);
}

html[data-theme="light"] .vote-dashboard-vbar-area{
  background:rgba(15,23,42,.05);
}
html[data-theme="light"] .vote-dashboard-vbar-value,
html[data-theme="light"] .vote-dashboard-vbar-label{
  color:var(--text);
}

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-feed-section{
  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-feed-title,
html[data-theme="light"] .admin-feed-caret{
  color:#4338ca;
}

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"] .profile-push-status{
  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"] .profile-push-status-title{
  color:#0f172a;
}

html[data-theme="light"] .profile-push-status[data-state="success"]{
  background:rgba(34,197,94,.08);
  border-color:rgba(34,197,94,.18);
}

html[data-theme="light"] .profile-push-status[data-state="warning"]{
  background:rgba(245,158,11,.08);
  border-color:rgba(245,158,11,.18);
}

html[data-theme="light"] .profile-push-status[data-state="danger"]{
  background:rgba(239,68,68,.08);
  border-color:rgba(239,68,68,.18);
}

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-groups-popup-overlay{
  position:fixed;
  inset:0;
  z-index:1200;
  background:rgba(15, 23, 42, .48);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.admin-quiz-groups-popup{
  width:min(680px, 100%);
  max-height:min(80vh, 720px);
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.admin-quiz-groups-popup-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.admin-quiz-groups-popup-item{
  max-width:100%;
}

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

.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-shell{
    height: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;
  }

  .vote-dashboard-chart-legend{
    width:100%;
  }

  .vote-dashboard-chart-legend-row{
    grid-template-columns:16px minmax(0, 1fr) minmax(28px, max-content) minmax(64px, max-content);
  }

  .vote-dashboard-chart-legend-label,
  .vote-dashboard-chart-legend-value{
    font-size:18px;
  }

  .vote-dashboard-bar-row{
    grid-template-columns:1fr;
    gap:8px;
  }

  .vote-dashboard-bar-label{
    font-size:16px;
  }

  .vote-dashboard-bar-track{
    height:40px;
  }

  .vote-dashboard-description{
    font-size:14px;
    line-height:1.35;
  }

  /* fullbar on portrait */
  .vote-dashboard-main--fullbar{
    grid-template-rows:auto auto;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-left{
    flex-direction:column;
    align-items:flex-start;
    padding-bottom:10px;
    gap:6px;
    border-bottom:1px solid var(--stroke);
  }
  .vote-dashboard-main--fullbar .vote-dashboard-head{
    flex:none;
    width:100%;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-title{
    font-size:clamp(16px,5vw,26px);
    margin:0;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-panel-name{
    font-size:12px;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-logo{
    display:none;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-vbar-wrap{
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .vote-dashboard-vbar-row-wrap{
    display:flex;
    justify-content:center;
    gap:6px;
  }
  .vote-dashboard-vbar-row-wrap .vote-dashboard-vbar-col{
    flex:0 0 calc((100% - 6px * (var(--fb-max-cols, 2) - 1)) / var(--fb-max-cols, 2));
    max-width:calc((100% - 6px * (var(--fb-max-cols, 2) - 1)) / var(--fb-max-cols, 2));
    min-width:0;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-vbar-col{
    max-width:none;
    min-width:0;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-vbar-area{
    height:90px;
    flex:none;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-vbar-label{
    font-size:clamp(10px,2.5vw,13px) !important;
  }
}

@media (max-width: 420px){
  .vote-dashboard-main--fullbar .vote-dashboard-logo{
    display:none;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-vbar-area{
    height:70px;
  }
  .vote-dashboard-main--fullbar .vote-dashboard-vbar-value{
    font-size:clamp(10px,2.8vw,13px);
  }
  .vote-dashboard-main--fullbar .vote-dashboard-vbar-pct{
    font-size:clamp(8px,2.2vw,11px);
  }
  .vote-dashboard-main--fullbar .vote-dashboard-vbar-label{
    font-size:clamp(9px,2.2vw,12px) !important;
  }
}

/* ─── Admin Publish Banner ───────────────────────────── */
.admin-publish-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  border-radius:14px;
  background:linear-gradient(90deg, rgba(124,92,255,.22), rgba(90,162,255,.18));
  border:1.5px solid rgba(124,92,255,.55);
  box-shadow:0 0 0 3px rgba(124,92,255,.12), 0 4px 24px rgba(124,92,255,.18);
  margin-bottom:10px;
  animation:admin-banner-pulse 2.4s ease-in-out infinite;
}

@keyframes admin-banner-pulse{
  0%,100%{ box-shadow:0 0 0 3px rgba(124,92,255,.12), 0 4px 24px rgba(124,92,255,.18); }
  50%{ box-shadow:0 0 0 5px rgba(124,92,255,.22), 0 4px 32px rgba(124,92,255,.32); }
}

.admin-publish-banner-info{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1 1 260px;
  min-width:0;
}

.admin-publish-banner-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:2px;
}

.admin-publish-banner-label{
  font-size:13px;
  font-weight:700;
  color:#e2d9ff;
  letter-spacing:.02em;
  line-height:1.2;
}

.admin-publish-banner-name{
  font-size:13px;
  font-weight:800;
  color:#fff;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1.2;
}

.admin-publish-banner-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.admin-publish-banner-btn{
  font-size:12px;
  padding:5px 14px;
  border-radius:8px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  cursor:pointer;
}

.admin-publish-banner-btn:hover{
  background:rgba(255,255,255,.2);
}

.admin-publish-banner-link{
  flex-shrink:0;
  font-size:12px;
  padding:5px 14px;
  border-radius:8px;
  background:rgba(124,92,255,.35);
  border:1px solid rgba(124,92,255,.5);
  color:#e2d9ff;
  text-decoration:none;
  cursor:pointer;
}

.admin-publish-banner-link:hover{
  background:rgba(124,92,255,.55);
  color:#fff;
}

.admin-vote-btn-publish{
  background:linear-gradient(90deg, rgba(124,92,255,.18), rgba(90,162,255,.14));
  border-color:rgba(124,92,255,.35);
  color:#c4b5fd;
}

.admin-vote-btn-publish:hover{
  background:linear-gradient(90deg, rgba(124,92,255,.32), rgba(90,162,255,.26));
  color:#fff;
}

.admin-vote-btn-unpublish{
  background:rgba(244,63,94,.12);
  border-color:rgba(244,63,94,.3);
  color:#fca5a5;
}

.admin-vote-btn-unpublish:hover{
  background:rgba(244,63,94,.22);
  color:#fff;
}

html[data-theme="light"] .admin-publish-banner{
  background:linear-gradient(90deg, rgba(124,92,255,.1), rgba(90,162,255,.08));
  border-color:rgba(124,92,255,.3);
}

html[data-theme="light"] .admin-publish-banner-label{
  color:#4c1d95;
}

html[data-theme="light"] .admin-publish-banner-name{
  color:#1e1b4b;
}

html[data-theme="light"] .admin-publish-banner-btn{
  background:rgba(0,0,0,.06);
  border-color:rgba(0,0,0,.14);
  color:#1e1b4b;
}

html[data-theme="light"] .admin-publish-banner-link{
  background:rgba(124,92,255,.12);
  border-color:rgba(124,92,255,.3);
  color:#4c1d95;
}

@media (max-width: 560px){
  .admin-publish-banner{
    flex-direction:row;
    align-items:flex-start;
    gap:8px;
    padding:10px 12px;
  }

  .admin-publish-banner-info{
    flex:1 1 auto;
    width:auto;
    min-width:0;
  }

  .admin-publish-banner-actions{
    width:auto;
    flex:0 0 132px;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }

  .admin-publish-banner-btn,
  .admin-publish-banner-link{
    text-align:center;
    width:100%;
    padding:3px 10px;
  }

  .admin-publish-banner-label{
    white-space:nowrap;
  }

  .admin-publish-banner-name{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:anywhere;
  }
}

/* ─── Word Cloud ─────────────────────────────────────── */
.word-cloud-body{
  display:block;
  padding:0;
  overflow:hidden;
}

.word-cloud-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;
}

.word-cloud-card{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  padding:16px 20px 14px;
  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;
}

.word-cloud-header{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.07);
  margin-bottom:4px;
}

.word-cloud-logo{
  width:46px;
  height:46px;
  object-fit:contain;
  flex-shrink:0;
}

.word-cloud-header-copy{
  display:flex;
  flex-direction:column;
  gap:1px;
}

.word-cloud-panel-name{
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.42);
}

.word-cloud-title{
  font-family:"Russo One", sans-serif;
  font-size:22px;
  font-weight:400;
  margin:0;
  color:#fff;
  line-height:1.15;
}

.word-cloud-canvas{
  flex:1;
  position:relative;
  overflow:hidden;
  min-height:0;
}

.word-cloud-empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  color:rgba(255,255,255,.38);
  text-align:center;
  padding:24px;
}

.word-cloud-word{
  position:absolute;
  white-space:nowrap;
  cursor:default;
  user-select:none;
  line-height:1.1;
  padding:3px 6px;
  opacity:0;
  transform:scale(.55);
  animation:word-cloud-pop .45s cubic-bezier(.34,1.56,.64,1) forwards;
  transition:transform .18s ease, text-shadow .18s ease;
}

.word-cloud-word:hover{
  transform:scale(1.14) !important;
  z-index:10;
  text-shadow:0 0 22px currentColor;
}

@keyframes word-cloud-pop{
  to{ opacity:1; transform:scale(1); }
}

/* Light theme overrides */
html[data-theme="light"] .word-cloud-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"] .word-cloud-panel-name{
  color:rgba(15,23,42,.42);
}

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

html[data-theme="light"] .word-cloud-header{
  border-bottom-color:rgba(15,23,42,.08);
}

@media (max-width: 640px){
  .word-cloud-shell{
    padding:8px;
  }
  .word-cloud-card{
    padding:12px 14px 10px;
    border-radius:16px;
  }
  .word-cloud-logo{
    width:34px;
    height:34px;
  }
  .word-cloud-title{
    font-size:17px;
  }
}
