* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:'Montserrat',Segoe UI,sans-serif; color:#fff; background:#0B0714;
  background-image:radial-gradient(circle at 15% 12%, rgba(89,60,144,.42) 0%, transparent 55%),
                   radial-gradient(circle at 85% 88%, rgba(220,38,38,.24) 0%, transparent 55%);
  background-attachment:fixed; min-height:100vh; padding:22px 16px 60px; }

.wrap { max-width:1000px; margin:0 auto; }

header { display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin-bottom:24px; flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:#fff; }
.brand img { width:46px; height:46px; object-fit:contain; }
.brand .nm { font-size:19px; font-weight:800; }
.brand .nm span { color:#FFDE59; }
.brand .sb { font-size:11px; color:rgba(255,255,255,.45); }
.h-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.btn { padding:11px 18px; border-radius:12px; border:none; cursor:pointer; font-family:inherit;
  font-size:14px; font-weight:700; text-decoration:none; display:inline-flex; align-items:center;
  gap:8px; transition:filter .12s, transform .12s; }
.btn:active { transform:scale(.98); }
.btn.primary { background:linear-gradient(135deg,#FFDE59,#F2B705); color:#1a0b2e; }
.btn.ghost { background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.18); }
.btn.danger { background:rgba(220,38,38,.2); color:#ffb3b3; border:1px solid rgba(220,38,38,.4); }
.btn:hover { filter:brightness(1.08); }
.btn[disabled] { opacity:.55; cursor:default; }

.card { background:rgba(18,10,32,.72); border:1px solid rgba(255,222,89,.18);
  border-radius:20px; padding:22px; margin-bottom:18px; box-shadow:0 14px 44px rgba(0,0,0,.42); }
.card h2 { font-size:17px; margin-bottom:16px; }

.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.sess { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
  border-radius:16px; padding:16px; display:flex; flex-direction:column; gap:10px; }
.sess .top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.sess .nm { font-size:16px; font-weight:700; line-height:1.25; }
.sess .code { font-size:24px; font-weight:800; letter-spacing:5px; color:#FFDE59; }
.sess .meta { font-size:12px; color:rgba(255,255,255,.52); display:flex; gap:10px; flex-wrap:wrap; }
.sess .meta b { color:#fff; font-weight:600; }
.sess .acts { display:flex; gap:8px; flex-wrap:wrap; margin-top:2px; }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }
.dot.on { background:#4ade80; box-shadow:0 0 8px rgba(74,222,128,.8); }
.dot.off { background:rgba(255,255,255,.25); }

.fld { margin-bottom:14px; }
.fld label { display:block; font-size:12px; color:rgba(255,255,255,.6); margin-bottom:7px; }
.fld input[type=text], .fld input[type=number], .fld select {
  width:100%; padding:12px 13px; border-radius:12px; font-family:inherit; font-size:15px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.18); color:#fff; outline:none; }
.fld input:focus, .fld select:focus { border-color:rgba(255,222,89,.6); }
.fld select option { background:#1a0b2e; }
.row { display:flex; gap:12px; flex-wrap:wrap; }
.row .fld { flex:1; min-width:120px; }

.radio { display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.radio label { flex:1; min-width:140px; padding:12px; border-radius:12px; cursor:pointer;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14); font-size:13px;
  display:flex; align-items:center; gap:8px; }
.radio input { accent-color:#FFDE59; }
.radio label.sel { border-color:rgba(255,222,89,.6); background:rgba(255,222,89,.1); }

.msg { font-size:13px; min-height:18px; margin-top:8px; }
.msg.ok { color:#7ee2a8; }
.msg.bad { color:#ff9a9a; }
.empty { color:rgba(255,255,255,.45); font-size:14px; padding:14px 0; }
.hint { font-size:11px; color:rgba(255,255,255,.4); line-height:1.5; margin-top:6px; }

/* ---- История выступлений (песни + баллы) ---- */
.hist-table { display:flex; flex-direction:column; gap:6px; }
.hist-row { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); font-size:14px; }
.hist-time { flex:0 0 48px; color:rgba(255,255,255,.5); font-size:13px; font-variant-numeric:tabular-nums; }
.hist-song { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hist-song small { color:rgba(255,255,255,.45); font-size:12px; }
.hist-sc { flex:0 0 48px; text-align:right; font-weight:800; font-size:17px;
  color:rgba(255,255,255,.85); font-variant-numeric:tabular-nums; }
.hist-sc.top { color:#FFDE59; }
.hist-sc.none { color:rgba(255,255,255,.3); font-weight:600; }

/* ---- Вкладки кабинета (23.10.2026): сессии / песни / библиотека ---- */
.tabs { display:flex; gap:8px; margin:0 0 18px; padding:6px; border-radius:16px;
  background:rgba(18,10,32,.72); border:1px solid rgba(255,222,89,.14); }
.tab { flex:1; padding:11px 10px; border-radius:12px; border:none; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:700; color:rgba(255,255,255,.62);
  background:transparent; transition:background .12s,color .12s; }
.tab:hover { color:#fff; }
.tab.on { background:linear-gradient(135deg,#FFDE59,#F2B705); color:#1a0b2e; }
.tabpane { display:none; }
.tabpane.show { display:block; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.card-head h2 { margin:0; }
.btn.small { padding:8px 12px; font-size:13px; }
@media (max-width:560px) {
  body { padding:14px 12px 50px; }
  /* телефон: поля «Название» и «Исполнитель» — в столбик, иначе текст обрезан */
  .row { flex-direction:column; gap:0; }
  .row .fld { flex:1 1 100%; min-width:0; width:100%; }
  .tabs { position:sticky; top:8px; z-index:5; }
  .card { padding:18px 16px; border-radius:16px; }
}


/* ---- Карточка сессии: одно главное действие + компактное меню «⋯» (23.10.2026) ---- */
.sess .acts { display:flex; gap:8px; flex-wrap:nowrap; align-items:stretch; margin-top:4px; }
.sess .acts .js-pult { flex:1 1 auto; padding:10px 10px; font-size:14px; white-space:nowrap; }
.sess .acts > a.btn { padding:10px 12px; font-size:14px; white-space:nowrap; }
.sess details.more { position:relative; margin:0; }
.sess details.more > summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center;
  justify-content:center; width:44px; padding:10px 0; border-radius:12px; color:#fff; font-size:20px;
  line-height:1; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); }
.sess details.more > summary::-webkit-details-marker { display:none; }
.sess details.more[open] > summary { background:rgba(255,222,89,.18); border-color:rgba(255,222,89,.55); }
.sess details.more .more-menu { position:absolute; top:calc(100% + 8px); right:0; z-index:30; min-width:210px;
  padding:6px; border-radius:14px; background:#1b1030; border:1px solid rgba(255,255,255,.16);
  box-shadow:0 18px 40px rgba(0,0,0,.55); display:flex; flex-direction:column; }
.sess details.more.up .more-menu { top:auto; bottom:calc(100% + 8px); }
.sess details.more .more-menu .mi { display:block; width:100%; text-align:left; padding:10px 12px; border-radius:10px;
  background:none; border:none; color:#fff; font:inherit; font-size:14px; cursor:pointer; text-decoration:none; }
.sess details.more .more-menu .mi:hover { background:rgba(255,255,255,.08); }
.sess details.more .more-menu .mi.danger { color:#ffb3b3; }
@media (max-width:400px) {
  .sess .acts .js-pult { padding:10px 10px; font-size:14px; }
  .sess .acts > a.btn { padding:10px 10px; font-size:14px; }
}
