:root{--bg:#0d100b;--panel:#171c14;--panel2:#20271b;--line:#303a2b;--text:#f1f5eb;--muted:#9ba791;--lime:#c7f36a;--lime2:#a9d94e;--danger:#ff8d83}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -10%,#27351d 0,transparent 50%),var(--bg);color:var(--text);font:15px/1.5 Inter,system-ui,-apple-system,sans-serif}.shell{width:min(820px,100%);margin:auto;padding:24px 18px 40px}.topbar,.brand,.section-head,.dashboard-head,.stats,.person-row{display:flex;align-items:center}.topbar,.section-head,.dashboard-head,.person-row{justify-content:space-between}.brand{gap:12px}.mark{width:44px;height:44px;border-radius:13px;background:var(--lime);color:#18210e;display:grid;place-items:center;font-weight:950;font-size:25px}.brand b{display:block;letter-spacing:2px;font-size:18px}.brand small,.eyebrow,.demo,.pill{font-size:10px;letter-spacing:1.5px;color:var(--muted)}.demo,.pill{border:1px solid #596b3e;color:var(--lime);border-radius:999px;padding:5px 10px}.card{background:linear-gradient(145deg,var(--panel),#141911);border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 12px 30px #0003;margin-top:16px}.form-card{max-width:520px;margin:42px auto 0}.form-card h1,.legal-card h1,.dashboard-head h1{font-size:clamp(28px,6vw,42px);line-height:1.1;margin:10px 0}.muted,small{color:var(--muted)}.muted{font-size:13px}.field{display:block;margin:14px 0}.field span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.field input{width:100%;background:#0e120c;border:1px solid var(--line);border-radius:11px;padding:13px;color:var(--text);font:inherit;outline:none}.field input:focus{border-color:var(--lime)}button{border:0;border-radius:13px;padding:14px 18px;font-weight:800;font-size:14px;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--lime);color:#17200e}.secondary{background:#313a2b;color:var(--text)}.form-card>.primary,.create-form>.primary{width:100%;margin-top:8px}.notice{padding:12px;border-radius:10px;background:#26321b;color:var(--lime);font-size:13px}.error{padding:10px 12px;background:#3a211e;border:1px solid #75443d;border-radius:10px;color:#ffd1cb;font-size:13px}.dashboard-head{gap:16px;margin:38px 0 18px}.dashboard-head h1{margin-bottom:4px}.dashboard-head p{margin:0}.stats{gap:12px}.stats .card{flex:1;min-width:0;margin:0}.stats .card strong{display:block;font-size:25px;margin:8px 0 2px}.section-head h2,.card h2{font-size:23px;margin:5px 0}.task-card .target{display:flex;align-items:baseline;gap:12px;margin:22px 0}.target strong{font-size:64px;color:var(--lime);line-height:1}.target span{color:var(--muted)}.task-card button{width:100%;margin-top:10px}.legal-card{margin-top:38px}.document{border:1px solid var(--line);border-radius:13px;margin:14px 0;padding:14px}.document summary{cursor:pointer;font-weight:700}.document-body{white-space:pre-wrap;overflow:auto;max-height:280px;background:#0e120c;padding:14px;border-radius:10px;color:#dce5d2;font:12px/1.6 ui-monospace,monospace}.check-row{display:flex;gap:10px;align-items:flex-start;padding:12px 0 2px;font-size:13px}.check-row input{accent-color:var(--lime);width:18px;height:18px;flex:none}.legal-card>.primary{width:100%;margin-top:8px}.create-form{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.create-form .field:nth-child(3),.create-form button{grid-column:1/-1}.participant-list{margin-top:12px}.person-row{padding:12px 0;border-bottom:1px solid var(--line);gap:12px}.person-row b,.person-row small{display:block}.person-row small{font-size:12px}.status{font-size:11px;color:var(--lime)}.status.blocked{color:var(--danger)}footer{text-align:center;padding:28px 0 0;color:var(--muted);font-size:10px;letter-spacing:.5px}@media(max-width:540px){.shell{padding:16px 13px 30px}.card{padding:17px}.stats{gap:8px}.stats .card strong{font-size:20px}.dashboard-head{align-items:flex-start}.dashboard-head button{padding:10px}.create-form{display:block}}

.amount-positive{color:var(--lime)}.amount-negative{color:var(--danger)}
.invite-form{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.invite-form button{grid-column:1/-1;width:100%;margin-bottom:12px}.token-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:#0e120c;border:1px solid var(--line);border-radius:12px}.token-line code{overflow-wrap:anywhere;color:var(--lime);flex:1}.audit-row time{font-size:11px;color:var(--muted);white-space:nowrap}.roadmap{color:var(--muted);padding-left:20px}.roadmap li{padding:5px 0}.status{white-space:nowrap}@media(max-width:540px){.invite-form{display:block}.audit-row{align-items:flex-start;flex-direction:column}.audit-row time{white-space:normal}}

/* Управление участниками */
.participant-entry{padding:12px 0;border-bottom:1px solid var(--line)}
.participant-entry .person-row{padding:0;border:0}
.participant-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.participant-actions button,.participant-editor button{padding:10px 13px;font-size:12px}
.participant-editor{margin-top:12px;padding:14px;background:#10150e;border:1px solid var(--line);border-radius:12px}
.participant-editor[hidden]{display:none}
.participant-edit-form,.participant-reset-form{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.participant-edit-form button,.participant-reset-form button{margin-top:8px}
.participant-reset-form .field,.participant-reset-form button{grid-column:1/-1}
@media(max-width:540px){.participant-edit-form,.participant-reset-form{display:block}.participant-actions button{flex:1 1 130px}}

/* BEAST — cinematic bear login */
.shell:has(.bear-login),.shell:has(.beast-login-page){width:100%;max-width:none;padding:0}
.shell:has(.bear-login)>.topbar,
.shell:has(.bear-login)>footer,
.shell:has(.beast-login-page)>.topbar,
.shell:has(.beast-login-page)>footer{display:none}
.bear-login{
  position:relative;isolation:isolate;display:grid;place-items:center;
  min-height:100vh;min-height:100svh;width:100%;overflow:hidden;
  background:#050704;padding:24px;
}
.bear-login-video,.bear-login-shade{
  position:absolute;inset:0;width:100%;height:100%;
}
.bear-login-video{z-index:-2;object-fit:cover;background:#050704}
.bear-login-shade{
  z-index:-1;
  background:linear-gradient(90deg,#050704bb,#05070455 50%,#05070499),
  linear-gradient(0deg,#050704dd,transparent 65%);
  transition:background 1s ease;
}
.bear-video-missing .bear-login-shade,
.bear-video-paused .bear-login-shade{
  background:radial-gradient(ellipse at center,#202b17 0,#080b07 70%);
}
.bear-login-card{
  width:min(440px,100%);margin:0 auto;
  background:#0c100bd9;border:1px solid #71884a66;
  backdrop-filter:blur(12px);box-shadow:0 20px 80px #0009;
}
.bear-login-card h1{letter-spacing:-1.5px}
.bear-login-card .field input{background:#080b07dd}
.bear-login-card .primary{width:100%;margin-top:10px}
.bear-login .beast-claws{
  position:absolute;left:50%;top:17%;transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;gap:13px;
  width:130px;height:100px;pointer-events:none;
}
.bear-login .beast-claws[hidden],
.beast-loading[hidden]{display:none!important}
.claw-line{
  display:block;width:9px;height:68px;border-radius:99px;
  background:linear-gradient(180deg,#efffc1 0%,#c7f36a 35%,#72b52d 100%);
  box-shadow:0 0 9px #a9e94b,0 0 25px #8bdf35aa;
  transform:rotate(24deg);opacity:.95;
}
.claw-2{height:82px}
.claw-3{height:68px}
.beast-loading{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:15px 0 5px;
}
.beast-loading .beast-claws{
  position:static;width:auto;height:46px;transform:none;gap:9px;
}
.beast-loading .claw-line{width:6px;height:30px}
.beast-loading .claw-2{height:39px}
.loading-caption{
  color:var(--lime);font-size:9px;letter-spacing:2.5px;font-weight:800;
}
.beast-claws.is-loading .claw-line{
  animation:beast-claw-pulse 900ms ease-in-out infinite;
}
.beast-claws.is-loading .claw-2{animation-delay:150ms}
.beast-claws.is-loading .claw-3{animation-delay:300ms}
@keyframes beast-claw-pulse{
  0%,100%{opacity:.35;filter:brightness(.7);transform:rotate(24deg) scaleY(.78)}
  50%{opacity:1;filter:brightness(1.5);transform:rotate(24deg) scaleY(1)}
}
@media(max-width:600px){
  .bear-login{padding:16px;align-items:end}
  .bear-login-card{margin:0 0 5vh;padding:20px}
  .bear-login .beast-claws{top:22%}
}
@media(prefers-reduced-motion:reduce){
  .beast-claws.is-loading .claw-line{animation:none;opacity:1}
}



/* BEAST — обычная страница входа без фонового видео */
.beast-login-page{
  min-height:100vh;min-height:100svh;
  display:grid;place-items:center;
  padding:24px;background:#050704;
}
.beast-login-page .bear-login-card{margin:0 auto}

/* BEAST — видео после успешной авторизации */
.beast-entry-transition{
  position:fixed;inset:0;z-index:99999;
  display:grid;place-items:center;
  width:100vw;height:100vh;height:100dvh;
  overflow:hidden;isolation:isolate;background:#050704;
}
.beast-entry-video,.beast-entry-shade{
  position:absolute;inset:0;width:100%;height:100%;
}
.beast-entry-video{
  z-index:0;object-fit:cover;background:#050704;
}
.beast-entry-shade{
  z-index:1;pointer-events:none;
  background:linear-gradient(90deg,#05070466,#05070422 50%,#05070466),
  linear-gradient(0deg,#05070499,transparent 65%);
}
.beast-entry-claws{
  position:relative;z-index:2;
  display:flex;align-items:center;justify-content:center;
  gap:16px;width:150px;height:120px;
}
.beast-entry-claws[hidden]{display:none!important}
.beast-entry-claws .claw-line{
  width:10px;height:76px;
  animation:beast-claw-pulse 900ms ease-in-out infinite;
}
.beast-entry-claws .claw-2{height:94px;animation-delay:150ms}
.beast-entry-claws .claw-3{animation-delay:300ms}
@media(prefers-reduced-motion:reduce){
  .beast-entry-claws .claw-line{animation:none;opacity:1}
}

/* BEAST — заставка успешного входа */
.beast-entry-transition{
 position:fixed;inset:0;z-index:99999;display:grid;place-items:center;
 width:100vw;height:100vh;height:100dvh;background:#050704;
}
.beast-entry-claws{display:flex;align-items:center;justify-content:center;gap:16px;width:150px;height:120px}
.beast-entry-claws .claw-line{width:10px;height:76px;animation:beast-claw-pulse 900ms ease-in-out infinite}
.beast-entry-claws .claw-2{height:94px;animation-delay:150ms}
.beast-entry-claws .claw-3{animation-delay:300ms}
@media(prefers-reduced-motion:reduce){.beast-entry-claws .claw-line{animation:none;opacity:1}}

/* BEAST — универсальная загрузка кабинета */
.beast-dashboard-loader{
  position:fixed;
  inset:0;
  z-index:99998;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  background:#050704;
}
.beast-dashboard-loader .beast-claws{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  width:130px;
  height:100px;
}
.beast-dashboard-loader .claw-line{
  width:9px;
  height:68px;
}
.beast-dashboard-loader .claw-2{height:82px}
.beast-dashboard-loader .loading-caption{
  color:var(--lime);
  font-size:10px;
  letter-spacing:3px;
  font-weight:800;
}
@media(prefers-reduced-motion:reduce){
  .beast-dashboard-loader .claw-line{
    animation:none;
    opacity:1;
  }
}

.exercise-create-form,.exercise-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.exercise-create-form button,.exercise-edit-form button{grid-column:1/-1}
.exercise-create-form button,.exercise-edit-form button{margin-top:8px}
.exercise-list{margin-top:12px}
.exercise-entry{padding:12px 0;border-bottom:1px solid var(--line)}
.exercise-entry .person-row{padding:0;border:0}
.exercise-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.exercise-actions button{padding:10px 13px;font-size:12px}
@media(max-width:540px){.exercise-create-form,.exercise-edit-form{display:block}.exercise-actions button{flex:1 1 130px}}


/* BEAST administrative video archive */

.beast-admin-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.beast-admin-archive select,
.beast-admin-archive textarea {
  width: 100%;
  box-sizing: border-box;
  background: #151a12;
  color: #edf4e9;
  border: 1px solid #394633;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.beast-slot-group {
  margin-top: 22px;
}

.beast-video-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin: 12px 0;
  border: 1px solid #34412e;
  border-radius: 14px;
  background: rgba(0, 0, 0, .16);
  overflow-wrap: anywhere;
}

.beast-video-card p {
  margin: 0;
}

.beast-video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

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

.beast-video-actions button {
  flex: 1 1 140px;
}

.beast-player:empty {
  display: none;
}

.beast-player video {
  display: block;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 8px auto;
  border-radius: 16px;
  background: #000;
}

.beast-moderation-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #4c4436;
  border-radius: 12px;
}

.beast-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.beast-check-label input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: #8bff32;
}

.beast-danger {
  background: #40201f;
  border: 1px solid #874440;
  color: #ffd5d0;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  cursor: pointer;
}

.beast-danger:disabled {
  opacity: .5;
  cursor: default;
}

.beast-reason {
  color: #e8c49b;
}

.beast-credit {
  color: #9af75a;
}

.beast-rating-table {
  margin-top: 16px;
}

.beast-rating-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px solid #34412e;
  overflow-wrap: anywhere;
}

.beast-rating-row > :last-child {
  text-align: right;
}

.beast-rating-head {
  color: #a1ad99;
  font-size: .8rem;
}

@media (max-width: 520px) {
  .beast-admin-filters {
    grid-template-columns: 1fr;
  }

  .beast-video-card {
    padding: 12px;
  }

  .beast-video-actions {
    flex-direction: column;
  }

  .beast-video-actions button {
    flex: initial;
    width: 100%;
    min-height: 44px;
  }
}

/* BEAST TACTICAL — participant workspace */
.shell:has(.tactical){
  max-width:620px;
  padding:12px 14px 32px;
}
.shell:has(.tactical)>.topbar{display:none}
body:has(.tactical){background:#090a09}

.tactical{
  --tactical-green:#a8f52d;
  color:#f4f5f2;
  font-variant-numeric:tabular-nums;
}

.tactical-hero{
  min-height:138px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:radial-gradient(ellipse at center,#202b16,#090a09 72%);
}

.tactical-brand{
  font-size:44px;
  font-weight:950;
  font-style:italic;
  letter-spacing:8px;
  line-height:1.2;
}

.tactical-hero small{
  font-size:9px;
  letter-spacing:4px;
}

.tactical-claws{
  display:flex;
  gap:7px;
  height:37px;
  align-items:center;
}

.tactical-claws i{
  width:5px;
  height:28px;
  background:#a8f52d;
  transform:skew(-22deg);
  box-shadow:0 0 14px #a8f52677;
  border-radius:2px;
}

.tactical-claws i:nth-child(2){height:36px}

.tactical-content{display:grid;gap:12px}
.tactical-greeting h1{font-size:25px;margin:0}
.tactical-greeting small{color:#888e85}

.tactical-card{
  background:#141614;
  border:1px solid #2a3027;
  border-radius:16px;
  padding:16px;
  min-width:0;
}

.tactical-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.tactical-stats small,.tactical-label{
  font-size:10px;
  letter-spacing:1.5px;
  color:#a0a59c;
}

.tactical-stats strong{
  display:block;
  margin-top:7px;
  font-size:23px;
}

.tactical-balance,.tactical-green{
  color:var(--tactical-green);
}

.tactical-task h2{
  font-size:24px;
  margin:8px 0;
}

.tactical-reps{
  display:flex;
  gap:12px;
  align-items:baseline;
  margin:12px 0;
}

.tactical-reps strong{
  font-size:64px;
  line-height:1;
  color:var(--tactical-green);
}

.tactical-reps span{color:#a0a59c}

.tactical-status{
  text-align:center;
  margin:18px 0;
  padding:18px 10px;
  background:#0b0d0b;
  border:1px solid #272e23;
  border-radius:12px;
}

.tactical-status p{margin:5px 0}
.tactical-countdown{
  font-size:clamp(34px,10vw,52px);
  font-weight:850;
  letter-spacing:2px;
  color:var(--tactical-green);
  line-height:1.4;
}

.tactical-success{
  width:48px;
  height:48px;
  margin:auto;
  border-radius:50%;
  background:var(--tactical-green);
  color:#10160b;
  display:grid;
  place-items:center;
  font-size:30px;
  font-weight:900;
}

.tactical-record{
  width:100%;
  min-height:54px;
  background:var(--tactical-green);
  color:#10160b;
  font-weight:900;
  letter-spacing:.5px;
}

.tactical-record:disabled{
  opacity:1;
  background:#252925;
  color:#858c81;
}

.tactical-note{
  display:block;
  text-align:center;
  margin-top:10px;
}

.tactical-history summary{
  cursor:pointer;
  font-weight:700;
}

/* BEAST — circular camera */
.beast-camera-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  background:#090a09;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:20px;
  overflow:auto;
}
.beast-camera-overlay h2,
.beast-camera-overlay p{margin:0;text-align:center}
.beast-camera-overlay video{
  width:min(78vw,320px);
  aspect-ratio:1;
  object-fit:cover;
  border-radius:50%;
  border:3px solid #a8f52d;
  background:#000;
  transform:scaleX(-1);
}
.beast-camera-clock{
  font-size:26px;
  color:#a8f52d;
  font-variant-numeric:tabular-nums;
}
.beast-camera-overlay button{
  width:min(100%,340px);
  min-height:48px;
}


/* BEAST Tactical header actions */

.tactical-hero{
  position:relative;
  padding-top:52px;
  min-height:190px;
  box-sizing:border-box;
}

.beast-header-actions{
  position:absolute;
  top:8px;
  right:6px;
  display:flex;
  align-items:center;
  gap:18px;
}

.beast-header-icon{
  position:relative;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  padding:7px;
  min-height:0;
  border:1px solid #303b25;
  border-radius:12px;
  background:#11150f;
  color:#a8f52d;
  cursor:pointer;
}

.beast-header-icon svg{
  width:30px;
  height:30px;
}

.beast-header-icon:active{
  background:#26351a;
}

.beast-unread-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:20px;
  height:20px;
  padding:0 4px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#a8f52d;
  color:#101410;
  font-size:11px;
  font-weight:900;
  box-sizing:border-box;
}

.beast-unread-badge[hidden],
.beast-notification-panel[hidden]{
  display:none!important;
}

.beast-notification-panel{
  margin:8px 0 14px;
  padding:16px;
  background:#141614;
  border:1px solid #303b25;
  border-radius:16px;
}

.beast-notification-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0;
}

.beast-notification-items{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:420px;
  overflow-y:auto;
}

.beast-notification-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  width:100%;
  padding:12px;
  border:1px solid #292e27;
  border-left:3px solid transparent;
  border-radius:10px;
  background:#101210;
  color:#e8ebe5;
  text-align:left;
  overflow-wrap:anywhere;
}

.beast-notification-item.is-unread{
  border-left-color:#a8f52d;
  background:#1a2314;
}

.beast-notification-item small{
  color:#929b8b;
  font-size:11px;
}

.beast-notification-item strong{
  font-size:14px;
}

.beast-notification-item span{
  font-size:13px;
  font-weight:400;
}


/* BEAST ENERGY CLAWS */

.beast-claws,
.beast-entry-claws,
.tactical-claws{
  filter:drop-shadow(0 0 7px #77ff2977);
}

.beast-claws .claw-line,
.beast-entry-claws .claw-line,
.tactical-claws i{
  position:relative;
  display:block;
  flex-shrink:0;
  width:25px;
  height:76px;
  border-radius:0;
  transform:none;
  box-shadow:none;
  opacity:1;
  background:linear-gradient(
    100deg,
    #235c0b,
    #a8ff38 38%,
    #e1ffb4 52%,
    #56db13 72%,
    #123a08
  );
  clip-path:polygon(
    95% 0%, 76% 23%, 89% 16%,
    58% 51%, 68% 42%, 29% 81%,
    38% 65%, 0% 100%, 19% 68%,
    10% 75%, 45% 33%, 35% 40%,
    67% 5%
  );
}

.beast-claws .claw-line::after,
.beast-entry-claws .claw-line::after,
.tactical-claws i::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    transparent 30%,
    #e6ffc9 49%,
    transparent 62%
  );
  opacity:.65;
}

.beast-claws .claw-2,
.beast-entry-claws .claw-2{
  height:94px;
}

.beast-claws.is-loading .claw-line,
.beast-entry-claws .claw-line{
  background:linear-gradient(
    to top,
    #66ed16 0%,
    #c9ff8c 47%,
    #26351e 50%,
    #111b0d 100%
  );
  background-size:100% 220%;
  animation:beast-energy-fill 1.8s ease-in-out infinite;
}

.beast-claws.is-loading .claw-2,
.beast-entry-claws .claw-2{
  animation-delay:100ms;
}

.beast-claws.is-loading .claw-3,
.beast-entry-claws .claw-3{
  animation-delay:200ms;
}

@keyframes beast-energy-fill{
  0%{background-position:0 0;opacity:.65}
  80%{background-position:0 100%;opacity:1}
  100%{background-position:0 100%;opacity:.85}
}

.tactical-claws{
  height:42px;
  gap:3px;
}

.tactical-claws i{
  width:16px;
  height:34px;
}

.tactical-claws i:nth-child(2){
  height:42px;
}

.beast-network-indicator{
  position:fixed;
  left:50%;
  bottom:calc(18px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  z-index:99997;
  display:flex;
  align-items:center;
  gap:12px;
  width:max-content;
  max-width:calc(100vw - 32px);
  padding:10px 16px;
  background:#10150ff5;
  border:1px solid #456526;
  border-radius:14px;
  box-shadow:0 0 24px #0009;
  pointer-events:none;
  box-sizing:border-box;
}

.beast-network-indicator .beast-claws{
  display:flex;
  align-items:center;
  gap:2px;
  width:44px;
  height:36px;
  flex-shrink:0;
}

.beast-network-indicator .claw-line{
  width:12px;
  height:28px;
}

.beast-network-indicator .claw-2{
  height:34px;
}

.beast-network-text{
  color:#baff78;
  font-size:12px;
  line-height:1.4;
}

@media(prefers-reduced-motion:reduce){
  .beast-claws.is-loading .claw-line,
  .beast-entry-claws .claw-line{
    animation:none;
    background-position:0 100%;
  }
}


/* BEAST DIAGONAL CLAWS V2 */

.beast-entry-transition{
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  overflow:hidden;
  background:#020402;
}

.beast-entry-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:50% 50%;
  border:0;
  border-radius:0;
  margin:0;
  padding:0;
}

.beast-entry-shade{
  background:none;
}

.beast-entry-claws{
  width:230px;
  height:180px;
  gap:5px;
}

.beast-claws .claw-line,
.beast-entry-claws .claw-line,
.tactical-claws i{
  position:relative;
  display:block;
  flex-shrink:0;
  width:48px;
  height:108px;
  transform:rotate(37deg);
  border-radius:0;
  box-shadow:none;
  clip-path:polygon(
    54% 0%,
    63% 12%,
    52% 24%,
    78% 17%,
    65% 39%,
    86% 31%,
    69% 55%,
    80% 49%,
    56% 73%,
    66% 65%,
    28% 100%,
    39% 77%,
    18% 86%,
    34% 59%,
    12% 67%,
    33% 40%,
    22% 46%,
    43% 18%,
    36% 24%
  );
  background:linear-gradient(
    90deg,
    #123a08,
    #49d91b 28%,
    #adff72 45%,
    #eaffd4 51%,
    #65ff29 62%,
    #175b09 85%
  );
}

.beast-claws .claw-2,
.beast-entry-claws .claw-2{
  height:132px;
}

.beast-claws .claw-line::after,
.beast-entry-claws .claw-line::after,
.tactical-claws i::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    transparent 35%,
    #efffdd 50%,
    transparent 65%
  );
  opacity:.45;
}

.beast-claws.is-loading .claw-line,
.beast-entry-claws .claw-line{
  background:linear-gradient(
    90deg,
    #174407,
    #8dff37 38%,
    #eaffcc 50%,
    #4ee91a 66%,
    #154307
  );
  animation:beast-diagonal-charge 1.7s
    ease-in-out infinite;
}

@keyframes beast-diagonal-charge{
  0%{
    mask-image:linear-gradient(
      to top,#000 0%,transparent 5%
    );
    opacity:.65;
  }
  25%{
    mask-image:linear-gradient(
      to top,#000 25%,transparent 30%
    );
    opacity:.85;
  }
  50%{
    mask-image:linear-gradient(
      to top,#000 50%,transparent 55%
    );
    opacity:1;
  }
  75%{
    mask-image:linear-gradient(
      to top,#000 75%,transparent 80%
    );
    opacity:1;
  }
  90%,100%{
    mask-image:linear-gradient(#000,#000);
    opacity:1;
  }
}

.beast-claws.is-loading .claw-2,
.beast-entry-claws .claw-2{
  animation-delay:100ms;
}

.beast-claws.is-loading .claw-3,
.beast-entry-claws .claw-3{
  animation-delay:200ms;
}

.beast-claws,
.beast-entry-claws,
.tactical-claws{
  filter:
    drop-shadow(0 0 2px #9dff56)
    drop-shadow(0 0 8px #4cff16aa);
}

.beast-dashboard-loader .beast-claws{
  width:210px;
  height:160px;
  gap:5px;
}

.beast-dashboard-loader .claw-line{
  width:43px;
  height:108px;
}

.beast-dashboard-loader .claw-2{
  height:132px;
}

.tactical-claws{
  height:48px;
  gap:2px;
}

.tactical-claws i{
  width:17px;
  height:35px;
}

.tactical-claws i:nth-child(2){
  height:43px;
}

.beast-network-indicator .beast-claws{
  width:48px;
  height:40px;
  gap:1px;
}

.beast-network-indicator .claw-line{
  width:13px;
  height:28px;
}

.beast-network-indicator .claw-2{
  height:34px;
}

.beast-dashboard-loader .loading-caption{
  display:none;
}

@media(prefers-reduced-motion:reduce){
  .beast-claws.is-loading .claw-line,
  .beast-entry-claws .claw-line{
    animation:none;
    mask-image:none;
    opacity:1;
  }
}


/* BEAST DASHBOARD BEAR V1 */

.tactical{
  position:relative;
  isolation:isolate;
}

.tactical-hero{
  position:relative;
  height:clamp(240px,74vw,440px);
  min-height:0;
  padding:0;
  margin:0 -14px;
  background:none;
  overflow:visible;
}

.tactical-hero::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:calc(100% + 92px);
  background-image:url('/assets/media/beast-dashboard-bear.png?v=5c5c216b9275');
  background-repeat:no-repeat;
  background-size:100% auto;
  background-position:center top;
  mask-image:linear-gradient(
    to bottom,
    #000 0%,
    #000 78%,
    transparent 100%
  );
  pointer-events:none;
  z-index:1;
}

.tactical-hero .tactical-claws,
.tactical-hero .tactical-brand,
.tactical-hero > small{
  display:none;
}

.tactical-hero button{
  position:relative;
  z-index:20;
}

.tactical-content{
  position:relative;
  z-index:2;
}

.tactical-greeting{
  min-height:76px;
  text-shadow:0 2px 8px #000;
}

.tactical-greeting h1{
  position:relative;
  font-weight:850;
}

.tactical-stats .tactical-card{
  background:#141614ed;
  border-color:#35432a;
}

.tactical-stats .tactical-card:nth-child(2){
  border-top-color:#7ebd32;
}



/* BEAST PAWS OVERLAY V2 */

.tactical{
  position:relative;
  isolation:isolate;
}

.tactical-hero{
  height:clamp(220px,73vw,430px);
  margin-top:-12px;
  z-index:auto;
  isolation:auto;
  overflow:visible;
}

.tactical-hero::before{
  height:calc(100% + 100px);
  mask-image:linear-gradient(
    to bottom,
    #000 0%,
    #000 65%,
    transparent 85%
  );
  z-index:0;
}

/* Передний слой: лапы медведя */

.tactical-hero::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:calc(100% + 100px);

  background-image:url(
    '/assets/media/beast-dashboard-bear.png?v=5c5c216b9275'
  );

  background-repeat:no-repeat;
  background-size:100% auto;
  background-position:center top;

  aspect-ratio:1203 / 1280;
  height:auto;

  clip-path:polygon(
    100% 39%,
    100% 67%,
    96% 72%,
    89% 77%,
    83% 80%,
    79% 87%,
    75% 87%,
    76% 80%,
    71% 82%,
    67% 86%,
    65% 85%,
    66% 78%,
    60% 83%,
    59% 81%,
    60% 74%,
    55% 79%,
    53% 77%,
    54% 70%,
    59% 62%,
    65% 56%,
    72% 49%,
    84% 41%,
    94% 38%
  );

  pointer-events:none;
  z-index:10;
}

.tactical-content{
  position:relative;
  z-index:2;
}

.tactical-greeting{
  min-height:55px;
  margin-top:-8px;
}

.tactical-greeting h1{
  max-width:100%;
  overflow-wrap:anywhere;
}

.tactical-stats{
  margin-top:-8px;
}

.tactical-stats .tactical-card{
  background:#141614;
}

.tactical-hero button{
  z-index:30;
}



/* BEAST DEPTH V3 */

.tactical-hero{
  --bear-depth:0px;
}

.tactical-hero::before{
  transform:translate3d(0,var(--bear-depth),0);
  mask-image:linear-gradient(
    to bottom,
    #000 0%,
    #000 64%,
    transparent 76%
  );
}

.tactical-hero::after{
  clip-path:polygon(
    100% 39%,
    100% 66%,
    97% 70%,
    92% 74%,
    86% 77%,
    82% 79%,
    79% 83%,
    75.1% 86.4%,
    75.2% 84%,
    76% 80%,
    71% 79%,
    68% 82%,
    67.1% 85.5%,
    66.7% 83.8%,
    67% 79%,
    63% 77%,
    60% 80%,
    59.3% 83.5%,
    58.8% 81.5%,
    59% 77%,
    56% 75%,
    53.4% 78.5%,
    53.3% 76.3%,
    54% 70%,
    59% 62%,
    65% 56%,
    72% 49%,
    84% 41%,
    94% 38%
  );
}

.tactical-stats .tactical-card:nth-child(2){
  position:relative;
  box-shadow:
    inset 0 12px 18px -12px #000,
    0 4px 16px #0005;
}

.tactical-greeting h1{
  position:relative;
  text-shadow:0 2px 6px #000;
  overflow-wrap:anywhere;
}

@media(prefers-reduced-motion:reduce){
  .tactical-hero::before{
    transform:none!important;
  }
}



/* BEAST ORIGINAL CLAWS V4 */

.beast-entry-transition,
.beast-dashboard-loader.beast-original-loader{
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  margin:0;
  padding:0;
  background:#000;
  overflow:hidden;
}

.beast-entry-transition .beast-entry-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center;
}

.beast-entry-transition .beast-entry-shade{
  display:none;
}

.beast-original-claws{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background-color:#000;
  background-image:url(
    '/assets/media/beast-intro-claws.png?v=a7e3a59301c5'
  );
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  pointer-events:none;
}

.beast-original-claws[hidden]{
  display:none!important;
}

.beast-original-claws::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:inherit;
  background-size:inherit;
  background-position:inherit;
  background-repeat:no-repeat;
  filter:brightness(1.65) saturate(1.25);
  animation:beastOriginalEnergy 1.8s linear infinite;
}

@keyframes beastOriginalEnergy{
  0%{
    clip-path:inset(100% 0 0 0);
    opacity:0.65;
  }
  80%{
    clip-path:inset(0 0 0 0);
    opacity:1;
  }
  100%{
    clip-path:inset(0 0 0 0);
    opacity:0;
  }
}

@media(prefers-reduced-motion:reduce){
  .beast-original-claws::after{
    animation:none;
    opacity:0;
  }
}


/* BEAST TEAM DISCIPLINE V1 */

.beast-team-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 54px 54px;
  align-items:center;
  gap:8px;
  padding:10px 0;
  border-bottom:1px solid #ffffff12;
}

.beast-team-row > :first-child{
  overflow-wrap:anywhere;
}

.beast-team-row > :not(:first-child){
  text-align:center;
}

.beast-slot-mark{
  min-height:26px;
  color:#a8f52d;
  font-size:23px;
  font-weight:800;
}

.beast-rating-row{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid #ffffff12;
}

.beast-discipline-person{
  margin-top:12px;
  padding:14px;
  border:1px solid #35432a;
  border-radius:12px;
}

.beast-discipline-person summary{
  cursor:pointer;
  font-weight:700;
}

.beast-discipline select{
  width:100%;
  padding:12px;
  margin:10px 0;
  border-radius:10px;
  background:#141614;
  color:#fff;
  border:1px solid #35432a;
}


/* BEAST TEAM ARCHIVE V1 */

.beast-video-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:12px 0 20px;
}

.beast-video-tile{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  text-align:center;
  overflow-wrap:anywhere;
}

.beast-video-tile b{
  font-size:12px;
}

.beast-video-tile small{
  font-size:10px;
}

.beast-video-circle,
.beast-team-video{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  aspect-ratio:1;
  border-radius:50%;
  border:2px solid #a8f52d;
  background:#101710;
  color:#a8f52d;
  object-fit:cover;
  overflow:hidden;
  padding:0;
}

.beast-video-circle{
  font-size:26px;
}

.beast-video-expired{
  font-size:11px;
  color:#929b90;
  border-color:#454d42;
}

.beast-archive-dates{
  margin-top:18px;
}

.beast-archive-dates details{
  padding:12px 0;
  border-bottom:1px solid #ffffff15;
}

.beast-archive-dates summary{
  cursor:pointer;
}


/* BEAST FUNCTIONAL V2 */

.beast-daily-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 90px 90px;
  align-items:center;
  gap:6px;
  padding:12px 0;
  border-bottom:1px solid #ffffff15;
  font-size:12px;
}

.beast-daily-row > :not(:first-child){
  text-align:center;
}

.beast-admin-slot{
  text-align:center;
  font-size:11px;
}

.beast-state-completed{
  color:#a8f52d;
  font-size:22px;
  font-weight:800;
}

.beast-state-missed{
  color:#ff6666;
  font-size:22px;
  font-weight:800;
}

.beast-state-waiting,
.beast-state-retry,
.beast-state-processing{
  color:#ffbd65;
}

.beast-state-not_started,
.beast-state-not_required{
  color:#899287;
}

.beast-missed-summary{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:12px 0;
  padding:12px;
  background:#ff66660b;
  border:1px solid #ff666630;
  border-radius:10px;
}

.beast-daily-control input{
  width:100%;
  margin:12px 0;
  padding:12px;
  background:#141614;
  color:#fff;
  border:1px solid #35432a;
  border-radius:10px;
  color-scheme:dark;
}

.beast-has-navigation{
  padding-bottom:calc(90px + env(safe-area-inset-bottom));
}

.beast-has-navigation [hidden]{
  display:none!important;
}

.beast-bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:2px;
  padding:8px 4px calc(8px + env(safe-area-inset-bottom));
  background:#101410f5;
  border-top:1px solid #a8f52d40;
  backdrop-filter:blur(16px);
  z-index:1000;
}

.beast-bottom-nav button{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:5px 0;
  min-width:0;
  background:transparent;
  border:0;
  color:#90998c;
  box-shadow:none;
}

.beast-bottom-nav button strong{
  font-size:25px;
  line-height:1;
}

.beast-bottom-nav button small{
  font-size:10px;
  color:inherit;
}

.beast-bottom-nav button.active{
  color:#a8f52d;
}


/* BEAST COMPACT ADMIN V1 */

.beast-admin-accordion{
  margin:10px 0;
  border:1px solid #a8f52d35;
  border-radius:14px;
  background:#141a13;
  overflow:hidden;
}

.beast-admin-accordion > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 16px;
  cursor:pointer;
  list-style:none;
  font-size:15px;
  font-weight:700;
  color:#e7eee3;
  -webkit-tap-highlight-color:transparent;
}

.beast-admin-accordion > summary::-webkit-details-marker{
  display:none;
}

.beast-admin-chevron{
  color:#a8f52d;
  font-size:24px;
  line-height:1;
  transition:transform .2s ease;
}

.beast-admin-accordion[open] > summary{
  border-bottom:1px solid #a8f52d25;
  color:#a8f52d;
}

.beast-admin-accordion[open] > summary .beast-admin-chevron{
  transform:rotate(180deg);
}

.beast-admin-accordion-body{
  padding:8px;
}

.beast-admin-accordion-body > .card{
  margin:0;
  box-shadow:none;
  border:0;
}

.beast-admin-original-heading{
  display:none!important;
}
