:root{
  --bg: #0b0f10;
  --card: #111618;
  --text: #ffffff;
  --textMuted: rgba(255, 255, 255, 0.62);
  --teal: #2356d9;
  --tealSoft: #5d86f3;
  --navActive: #4d82f7;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radiusXL: 30px;

  --safeTop: env(safe-area-inset-top);
  --safeRight: env(safe-area-inset-right);
  --safeBottom: env(safe-area-inset-bottom);
  --safeLeft: env(safe-area-inset-left);
}

*{ box-sizing: border-box; }
html, body { height: 100%; background: #0b0f10; }
html{
  color-scheme: dark;
}

body{
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  background: #0b0f10;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

input,
textarea,
select,
button{
  font: inherit;
  color: inherit;
}

input,
textarea,
select{
  -webkit-appearance: none;
  appearance: none;
}

.app-shell{
  min-height: 100dvh;
  position: relative;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(45, 107, 255, 0.18), transparent 62%),
    radial-gradient(900px 700px at 110% 15%, rgba(111, 160, 255, 0.12), transparent 62%),
    #0b0f10;
}

/* Evita fons blanc/groc d'autocomplete del navegador en formularis dark */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text) !important;
  box-shadow: 0 0 0 1000px rgba(8, 12, 18, 0.88) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(8, 12, 18, 0.88) inset !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

.app-shell::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(45, 107, 255, 0.18), transparent 62%),
    radial-gradient(900px 700px at 110% 15%, rgba(111, 160, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #0b0f10 0%, #0b0f10 100%);
  z-index: -1;
  pointer-events: none;
}

.home{
  min-height: 100dvh;
  padding: 104px 18px 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home--inicio{
  padding-top: calc(56px + var(--safeTop));
}

.home-heading-switch{
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: rgba(7, 10, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.home-heading-switch__tabs{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.home-heading-switch__item{
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-heading-switch__item:hover{
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.home-heading-switch__item.is-active{
  color: #fff;
  border-color: rgba(100, 146, 255, 0.52);
  background: linear-gradient(180deg, rgba(26, 50, 99, 0.95), rgba(17, 34, 69, 0.95));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(134, 174, 255, 0.18);
}

.home-heading-switch__plus{
  position: absolute;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(16, 22, 28, 0.85);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-heading-switch__plus:hover{
  border-color: rgba(109, 152, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(76, 122, 231, 0.25) inset;
}

.home-heading-switch__plus[hidden]{
  display: none !important;
}

.thread-modal__plus{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(16, 22, 28, 0.85);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}

.thread-modal__plus:hover{
  border-color: rgba(109, 152, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(76, 122, 231, 0.25) inset;
}

#homeNewsSection[hidden],
#homeCommentsSection[hidden]{
  display: none !important;
}

.news{
  display: grid;
  gap: 14px;
}

.push-widget{
  display:grid;
  gap:10px;
  background:linear-gradient(180deg, rgba(10,16,27,.92), rgba(8,13,22,.82));
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  box-shadow:0 14px 28px rgba(0,0,0,.32);
}

.push-widget__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.push-widget__head h2{
  margin:0;
  font-size:16px;
  font-family:"Outfit","Nunito Sans",sans-serif;
}

.push-widget__status{
  font-size:12px;
  color:rgba(255,255,255,.85);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:4px 10px;
}

.push-widget__status[data-state="active"]{
  border-color:rgba(52,198,110,.55);
  color:#8ff2bc;
}

.push-widget__status[data-state="blocked"],
.push-widget__status[data-state="error"]{
  border-color:rgba(250,101,101,.55);
  color:#ffaeae;
}

.push-widget__status[data-state="unavailable"]{
  display:block;
  width:100%;
  max-width:420px;
  border-radius:12px;
  padding:8px 10px;
  border-color:rgba(245, 198, 66, 0.72);
  background:linear-gradient(180deg, rgba(56, 44, 14, 0.58), rgba(36, 29, 10, 0.48));
  color:#ffe6a6;
  line-height:1.35;
  font-size:12px;
  letter-spacing:.01em;
  box-shadow:inset 0 0 0 1px rgba(245, 198, 66, 0.18);
}

.push-widget__hint{
  margin:0;
  color:var(--textMuted);
  font-size:13px;
}

.push-widget__actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  width:100%;
  align-items:stretch;
}

.push-widget__action{
  width:100%;
  min-width:0;
  height:46px;
  min-height:46px;
  margin:0;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-sizing:border-box;
  line-height:1.15;
}

.push-widget__actions .form__submit.push-widget__action{
  box-shadow:0 10px 18px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.push-widget__actions .ghost-btn.push-widget__action{
  border:1px solid rgba(120,160,255,.26);
  background:linear-gradient(180deg, rgba(12,20,34,.82), rgba(8,14,24,.9));
}

.push-widget__actions .ghost-btn.push-widget__action:hover{
  border-color:rgba(120,160,255,.52);
  filter:brightness(1.05);
}

.news__head{
  display: grid;
  gap: 10px;
}

.news__head h2{
  margin: 0;
  font-size: 16px;
  font-family: "Outfit", "Nunito Sans", sans-serif;
}

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

.tab{
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.6);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab.is-active{
  border-color: rgba(35, 86, 217, 0.7);
  box-shadow: inset 0 0 0 1px rgba(35, 86, 217, 0.35);
}

.tab__badge{
  background: rgba(35, 86, 217, 0.9);
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
}

.news__list{
  display: grid;
  gap: 12px;
}

.comments{
  margin-top: 0;
  display: grid;
  gap: 10px;
}
.comments__intro{
  margin: 0;
  color: var(--textMuted);
  font-size: 13px;
}
.comments__head h2{
  margin: 0;
  font-size: 16px;
  font-family: "Outfit", "Nunito Sans", sans-serif;
}
.comments__head p{
  margin: 4px 0 0;
  color: var(--textMuted);
  font-size: 13px;
}
.comments__title{
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-plus{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16, 22, 28, 0.8);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.comments__tabs{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.comments__form{
  display: grid;
  gap: 10px;
}
.comments__form textarea{
  width: 100%;
  min-height: 90px;
  background: rgba(10, 14, 18, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  resize: vertical;
}
.comments__list{
  display: grid;
  gap: 12px;
}
.comment-card{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 10px 6px;
}
.thread-card{
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: center;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
}
.thread-card .comment-card__body{
  display: grid;
  gap: 4px;
  align-content: center;
}
.thread-card__title-row{
  display: flex;
  align-items: center;
  gap: 8px;
}
.thread-delete{
  border: none;
  background: transparent;
  color: #ff5b5b;
  font-size: 18px;
  line-height: 1;
}
.thread-card:last-child{
  border-bottom: none;
}
.thread-card__meta{
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 80px;
  text-align: right;
  align-content: center;
}
.thread-card__meta form{
  margin: 0;
}
.thread-card__count{
  background: rgba(40, 116, 255, 0.2);
  color: #a7c7ff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.thread-card__new{
  background: rgba(46, 196, 182, 0.2);
  color: #8de7dc;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.thread-card__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.thread-card__title{
  font-size: 15px;
  color: #fff;
}
.thread-card__sub{
  color: #9aa7bd;
  font-size: 12px;
  margin-top: 2px;
}
.comment-card__avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.comment-card__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comment-card__avatar .avatar-img{
  position: static;
  width: 100%;
  height: 100%;
  transform: none;
}
.comment-card__meta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--textMuted);
}
.comment-card__meta strong{
  color: #fff;
  font-size: 13px;
}
.comment-card__role{
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(40, 116, 255, 0.18);
  color: #a7c7ff;
  font-size: 11px;
}
.comment-card__time{
  margin-left: auto;
  font-size: 11px;
}
.comment-card__text{
  margin-top: 6px;
  font-size: 14px;
  color: #d7dde6;
}
.comment-card__preview{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comment-card__actions-row{
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.comment-icon-btn{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,22,36,.85);
  color: #cfe2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.comment-icon-btn svg{
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.comment-icon-btn:hover{
  border-color: rgba(127,157,255,.58);
  color: #ffffff;
}
.comment-icon-btn--danger{
  border-color: rgba(215,95,112,.5);
  color: #ffb8c1;
}
.comment-icon-btn--danger:hover{
  border-color: rgba(215,95,112,.9);
  color: #ffd1d9;
}
.comment-icon-btn--ok{
  border-color: rgba(69,182,128,.52);
  color: #bff6de;
}
.comment-icon-btn--ok:hover{
  border-color: rgba(69,182,128,.9);
}
.comment-icon-btn--save{
  border-color: rgba(69,182,128,.52);
  color: #bff6de;
}
.comment-icon-btn--save:hover{
  border-color: rgba(69,182,128,.9);
}
.like-btn{
  background: transparent;
  border: none;
  color: #7f8ca3;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.like-btn__icon{
  width: 18px;
  height: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}
.like-btn__icon--heart svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: transparent;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.like-btn.is-liked{
  color: #4b88ff;
}
.like-btn.is-liked .like-btn__icon{
  color: #4b88ff;
  text-shadow: 0 0 10px rgba(75, 136, 255, 0.6), 0 0 18px rgba(75, 136, 255, 0.4);
  transform: translateY(-1px) scale(1.05);
}
.like-btn.is-liked .like-btn__icon--heart svg{
  fill: currentColor;
}
.like-btn span{
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.reply-btn{
  background: transparent;
  border: none;
  color: #9fb7ff;
  font-size: 12px;
}
.comment-reply{
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.comment-reply textarea{
  width: 100%;
  min-height: 70px;
  background: rgba(10, 14, 18, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  resize: vertical;
}
.comment-replies{
  margin-left: 0;
  display: grid;
  gap: 8px;
}
.comment-card--reply{
  background: rgba(10, 14, 18, 0.65);
}

.thread-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.thread-modal.is-open{
  display: flex;
}
.thread-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.7);
}
.thread-modal__panel{
  position: relative;
  width: min(640px, 92vw);
  max-height: 80vh;
  overflow: auto;
  background: rgba(12, 16, 20, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px;
  display: grid;
  gap: 14px;
  z-index: 1;
}
.thread-modal__header{
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}
.thread-modal__avatar{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 20, 0.9);
}
.thread-modal__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thread-modal__title{
  font-size: 16px;
  color: #fff;
}
.thread-modal__author{
  font-size: 12px;
  color: var(--textMuted);
}
.thread-modal__date{
  font-size: 11px;
  color: var(--textMuted);
}
.thread-modal__list{
  display: grid;
  gap: 10px;
}
.news-likes-modal__list{
  max-height: min(56vh, 480px);
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.news-likes-user{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 72px;
  min-width: 72px;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.news-likes-user .comment-card__avatar{
  width: 34px;
  height: 34px;
}
.news-likes-user__meta{
  width: 100%;
  min-width: 0;
  text-align: center;
}
.news-likes-user__meta span{
  display: block;
  color: #eef5ff;
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}
@media (max-width: 640px){
  #newsLikesModal .thread-modal__panel{
    width: min(94vw, 420px);
    padding: 14px;
  }
  #newsLikesModal .thread-modal__header{
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }
  #newsLikesModal .thread-modal__avatar{
    width: 40px;
    height: 40px;
  }
  #newsLikesModal .news-likes-modal__list{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding-bottom: 6px;
    max-height: none;
    -webkit-overflow-scrolling: touch;
  }
  #newsLikesModal .news-likes-user{
    width: 64px;
    min-width: 64px;
    padding: 0;
  }
  #newsLikesModal .news-likes-user .comment-card__avatar{
    width: 32px;
    height: 32px;
  }
  #newsLikesModal .news-likes-user__meta span{
    font-size: 10px;
    line-height: 1.15;
  }
}
.thread-modal__desc{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid rgba(120, 170, 255, 0.25);
  color: #cfe2ff;
  font-size: 14px;
}
.thread-edit{
  margin-left: auto;
  background: rgba(20, 26, 34, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cfe2ff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.thread-modal__form{
  display: grid;
  gap: 10px;
}
.thread-modal__form input,
.thread-modal__form textarea{
  width: 100%;
  background: rgba(10, 14, 18, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
}
.thread-modal__form[data-inline-edit]{
  grid-template-columns: 1fr auto;
  align-items: end;
}
.thread-modal__form[data-inline-edit] textarea{
  margin: 0;
}
.thread-modal__close{
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
}

.confirm-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
}
.confirm-modal[hidden]{
  display: none !important;
}
.confirm-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.7);
}
.confirm-modal__panel{
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
  background: rgba(12, 16, 20, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: center;
}
.confirm-modal__title{
  color: #fff;
  font-weight: 700;
}
.confirm-modal__text{
  color: var(--textMuted);
  font-size: 13px;
}
.confirm-modal__actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.confirm-modal__actions .ghost-btn,
.confirm-modal__actions .form__submit{
  min-width: 120px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.confirm-modal__actions .form__submit{
  background: #d94444;
  border-color: #d94444;
  color: #fff;
}
.comment-card__actions{
  align-self: start;
}
.comments__empty{
  color: var(--textMuted);
  font-size: 13px;
}

.news-card{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.news-card__btn{
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.news-card__image{
  width: 86px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}

.news-card__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__placeholder{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(35, 86, 217, 0.4);
}

.news-card__content{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card__content h3{
  margin: 0;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title{
  display:flex !important;
  align-items:center;
  gap:8px;
}

.news-card__icon{
  width:24px;
  height:24px;
  border-radius:7px;
  object-fit:cover;
  flex:0 0 24px;
  border:1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}

.news-card__title span{
  min-width:0;
}

.news-card__category{
  font-size: 10px;
  color: #dbe6ff;
  background: rgba(35, 86, 217, 0.35);
  border: 1px solid rgba(35, 86, 217, 0.55);
  border-radius: 999px;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
}

.news-card__category[data-cat="Actualizaciones"]{
  background: rgba(35, 86, 217, 0.38);
  border-color: rgba(35, 86, 217, 0.7);
  color: #e8f0ff;
}

.news-card__category[data-cat="Próximo"],
.news-card__category[data-cat="Cursos"]{
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fff3d6;
}

.news-card__content p{
  margin: 0;
  font-size: 12px;
  color: var(--textMuted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__content p span,
.news-modal p span{
  color: inherit;
}

.news-card__detail{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .28s ease, opacity .2s ease;
}

.news-card__detail-inner{
  padding: 0 12px 12px;
  color: rgba(240, 246, 255, 0.9);
  font-size: 13px;
}

.news-card__meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding: 0 12px 8px;
  gap: 10px;
}

.news-card__like{
  font-size: 11px;
  color: rgba(185, 201, 228, 0.9);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 3px 10px 4px;
  background: rgba(8,12,18,.45);
}

.news-card__like .like-btn__icon{
  width: 16px;
  height: 16px;
}

.news-card__like .like-btn__icon--heart svg{
  width: 16px;
  height: 16px;
}

.news-card__comments-btn .like-btn__icon{
  text-shadow: none !important;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.like-btn__icon--comment svg{
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: currentColor;
}

.news-card__comments-btn span{
  color: inherit;
}

.news-card__detail-inner p{
  margin: 0 0 10px;
}

.news-card__detail-inner p:last-child{
  margin-bottom: 0;
}

.news-card.is-expanded{
  border-color: rgba(255, 255, 255, 0.06);
}

.news-card.is-expanded .news-card__detail{
  max-height: 460px;
  opacity: 1;
}

.news-card.is-expanded .news-card__content p{
  display: none;
}

.news-card__detail-comments{
  display: none;
}

.news-card.is-comments .news-card__detail-news{
  display: none;
}

.news-card.is-comments .news-card__detail-comments{
  display: block;
}

.news-item-comments__list{
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.news-item-comment{
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 12px;
}

.news-item-comment .comment-card__avatar{
  width: 17px;
  height: 17px;
}

.news-item-comment .comment-card__avatar img{
  width: 17px;
  height: 17px;
}

.news-item-comment .comment-card__text{
  margin-top: 3px;
}

.news-item-comment .comment-card__meta{
  margin-bottom: 0;
}

.news-item-comments__form{
  display: grid;
  gap: 8px;
}

.news-item-comments__form textarea{
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.65);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  resize: vertical;
  min-height: 58px;
}

.news-item-comments__form .form__submit{
  margin-top: 0;
  height: 42px;
  max-width: 180px;
}

.rt-field{
  display: grid;
  gap: 8px;
}

.rt-toolbar{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rt-toolbar button{
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.6);
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.rt-toolbar input[type="color"]{
  width: 32px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
}

.rt-editor{
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.65);
  color: #fff;
  font-size: 13px;
}

.rt-editor--long{
  min-height: 120px;
}

.news__empty{
  color: var(--textMuted);
  font-size: 12px;
}


.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  padding: calc(6px + var(--safeTop)) 18px 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.96), rgba(12, 18, 28, 0.75));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1200;
  pointer-events: auto;
}

.topbar__brand{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1240;
  pointer-events: none;
}

.topbar__logo-link{
  flex: 0 0 auto;
  pointer-events: auto;
}

.topbar__left{
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1250;
  pointer-events: auto;
}

.topbar__right{
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1250;
  pointer-events: auto;
}

.admin-menu{
  position: relative;
  display: flex;
  align-items: center;
  z-index: 8;
}

.admin-menu__btn{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.65);
  display: grid;
  place-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px;
}

.admin-menu__btn span{
  display: block;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.admin-menu__panel{
  position: absolute;
  top: 38px;
  left: 0;
  min-width: 180px;
  background: #0d1214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  display: none;
  z-index: 1400;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.admin-menu__panel a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.admin-menu__panel a:hover{
  background: rgba(255, 255, 255, 0.06);
}

.admin-menu__panel.is-open{
  display: block;
}

.topbar__alert{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.topbar__alert svg{
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar__alert:hover{
  border-color: rgba(140, 176, 255, 0.45);
}
.topbar__alert.is-new{
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 77, 77, 0.2) inset,
    0 0 14px rgba(255, 57, 57, 0.55),
    0 0 24px rgba(255, 34, 34, 0.35);
}
.monitor-module .topbar__alert--monitor{
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 77, 77, 0.18) inset,
    0 0 12px rgba(255, 57, 57, 0.45),
    0 0 22px rgba(255, 34, 34, 0.25);
}
.topbar__online{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(120,160,255,.32);
  background:linear-gradient(180deg, rgba(10,20,36,.88), rgba(8,14,26,.92));
  color:#dce9ff;
  box-shadow:0 6px 14px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.05);
}
.topbar__online-label{
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(187,211,255,.82);
}
.topbar__online strong{
  font-size:12px;
  letter-spacing:.02em;
  color:#ffffff;
}

.topbar__logo-link{
  display: inline-flex;
  align-items: center;
  width: min(62vw, 320px);
  height: 46px;
  overflow: hidden;
}

.topbar__logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(2.8);
  transform-origin: center center;
  margin-top: 0;
}

.topbar__user{display:flex;align-items:center;gap:10px}

.topbar__text{
  text-align: right;
  line-height: 1.05;
}

.topbar__hi{
  display: block;
  font-size: 12px;
  color: var(--textMuted);
}

.topbar__name{
  font-size: 14px;
}

.topbar__role{
  display: block;
  font-size: 11px;
  color: var(--tealSoft);
  margin-top: 2px;
}
.topbar__avatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2937, #0b0f14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.topbar__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 760px){
  .topbar__logo-link{
    width: 260px;
    height: 44px;
  }
  .topbar__left{
    gap: 6px;
    left: 12px;
  }
  .topbar__right{
    gap: 6px;
    right: 12px;
  }
  .topbar__online{
    min-height:28px;
    padding:0 8px;
    gap:5px;
  }
  .topbar__online-label{
    display:none;
  }
  .topbar__online strong{
    font-size:10px;
  }
  .topbar__text{
    display:block;
    max-width:62px;
    text-align:right;
    line-height:1.05;
  }
  .topbar__name{
    display:block;
    font-size:11px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .topbar__role{
    display:block;
    font-size:9px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .topbar__user{
    gap:7px;
  }
  .topbar__online{
    min-height:26px;
    padding:0 7px;
  }
}

.avatar-frame{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: rgba(8, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  touch-action: none;
}

.avatar-img,
#avatarPreview{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  transform: translate(-50%, -50%) translate(var(--ax, 0px), var(--ay, 0px)) scale(var(--ascale, 1));
  user-select: none;
  -webkit-user-drag: none;
}

.topbar__avatar .avatar-img{
  width: 120%;
  height: 120%;
}

.range{
  accent-color: var(--teal);
}

.icon-btn{ display: none; }

.home__empty{
  flex: 1;
}

.bottombar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(12px + var(--safeBottom));
  background: linear-gradient(180deg, rgba(11, 15, 16, 0.3), rgba(8, 11, 12, 0.95));
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  z-index: 5;
}

.bottombar__item{
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 11px;
}

.bottombar__icon{
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.bottombar__icon svg{
  width: 22px;
  height: 22px;
}

.bottombar__item.is-active{
  color: #fff;
}

.bottombar__item.is-active .bottombar__icon{
  color: var(--navActive);
  border-color: rgba(77, 130, 247, 0.45);
  background: rgba(77, 130, 247, 0.16);
  box-shadow: 0 0 0 1px rgba(77, 130, 247, 0.24) inset;
}

.bottombar__item.is-active .bottombar__label{
  color: var(--navActive);
}

.profile-page{
  min-height: 100dvh;
  padding: 118px 20px 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  box-sizing: border-box;
}

.subbar{
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  height: 28px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  padding: 0 18px;
  background: rgba(7, 10, 11, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 5;
}

.subbar__title{
  margin: 0;
  text-align: center;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* Titles should always stay white across sections/pages */
.subbar__title,
.home-heading-switch__item,
.tools-section-title,
.transit-card__title,
.admin-card h2,
.procedure-head h2,
.comments__head h2,
.news__head h2{
  color: #ffffff !important;
}

.subbar__spacer{
  height: 1px;
}

.subbar__action{
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #cfe0ff;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.subbar__action:hover{
  color: #e3ecff;
  text-shadow: 0 0 10px rgba(120, 160, 255, 0.6);
}

.subbar__back{
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.subbar__back svg{
  width: 14px;
  height: 14px;
}

.admin-page{
  min-height: 100dvh;
  padding: 118px 18px 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.admin-stats--compact .stat-group{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.stat-group__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-pill{
  background: rgba(66, 122, 255, 0.2);
  border: 1px solid rgba(66, 122, 255, 0.4);
  color: #cfe0ff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
}

.stat-group__grid{
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.stat-group__grid--two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-chip{
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-chip span{
  font-size: 10px;
  color: var(--textMuted);
}

.stat-chip strong{
  font-size: 16px;
}

.stat-chip.is-total{
  border-color: rgba(66, 122, 255, 0.35);
}

.stat-chip.is-admin{
  border-color: rgba(255, 214, 64, 0.4);
  background: rgba(255, 214, 64, 0.1);
  color: #ffe6a3;
}

.stat-chip.is-user{
  border-color: rgba(66, 122, 255, 0.35);
  background: rgba(66, 122, 255, 0.1);
  color: #d5e3ff;
}

.stat-chip.is-premium{
  border-color: rgba(72, 196, 167, 0.35);
  background: rgba(72, 196, 167, 0.1);
  color: #c7f3e8;
}

.stat-chip.is-info{
  border-color: rgba(255,255,255,0.12);
}

.stat-group__foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--textMuted);
}

.admin-chart{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.admin-chart h2{
  margin: 0;
  font-size: 12px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 150px;
  padding: 6px 4px 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 65%);
  border-radius: 14px;
}

.chart--year{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 120px;
}

.chart__bar{
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 4px;
  height: 100%;
}

.chart__bar span{
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(66, 122, 255, 0.95), rgba(24, 68, 184, 0.9));
  min-height: 6px;
  box-shadow: 0 8px 18px rgba(32, 92, 230, 0.25);
}

.chart__value{
  font-size: 11px;
  color: #fff;
}

.chart__bar em{
  font-size: 10px;
  color: var(--textMuted);
  font-style: normal;
}

.admin-card{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.admin-card h2{
  margin: 0;
  font-size: 14px;
  color: var(--tealSoft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-page--news .admin-card h2{
  color: #ffffff;
}

.admin-debug{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  background: rgba(255, 205, 110, 0.12);
  border: 1px solid rgba(255, 205, 110, 0.35);
  color: #f6d48a;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 8px 0 14px;
}

.admin-debug strong{
  color: #fff;
  font-weight: 700;
}

.news .tab.is-active{
  border-color: rgba(35, 86, 217, 0.7);
  box-shadow: inset 0 0 0 1px rgba(35, 86, 217, 0.35);
}

.admin-form{
  display: grid;
  gap: 10px;
}

.admin-news-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-news-grid .rt-field{
  grid-column: span 2;
}

.admin-news-grid .profile-save{
  grid-column: span 2;
}

.title-emoji{
  grid-column: span 2;
  display:grid;
  gap:8px;
  margin-top:-2px;
}

.title-emoji__label{
  font-size:11px;
  color: var(--textMuted);
}

.title-emoji__list{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width: thin;
}

.title-emoji__btn{
  width:28px;
  height:28px;
  flex: 0 0 28px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(10,16,26,.78);
  color:#fff;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.title-emoji__btn:hover{
  border-color: rgba(118,160,255,.4);
  background: rgba(12,20,34,.9);
}

.news-upload{
  min-height:44px;
  padding:0 10px;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.news-upload__name{
  font-size:12px;
  color:var(--textMuted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:58%;
}

.admin-search{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.admin-search__info{
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--textMuted);
}

.admin-pagination{
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-pagination__info{
  font-size: 12px;
  color: var(--textMuted);
}

.transit-page{
  min-height: 100dvh;
  padding: 106px 18px 110px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.transit-search{
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(12, 18, 28, 0.92), rgba(8, 13, 20, 0.88));
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(126, 158, 255, 0.2);
  display: grid;
  gap: 14px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.transit-tools{
  margin-top: 18px;
}

.transit-search h2{
  margin: 0;
  font-size: 13px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  text-shadow: none;
}

.transit-search__head p{
  margin: 5px 0 0;
  color: rgba(220, 232, 255, 0.74);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.transit-search__form{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.transit-search__field{
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 260px;
  gap: 12px;
  min-height: 54px;
  padding: 12px 15px;
  border-radius: 16px;
  border: 1px solid rgba(125, 159, 255, 0.28);
  background: rgba(6, 10, 18, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.transit-search__field::before{
  display: none;
}

.transit-search__field svg{
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(182, 206, 255, 0.95);
  stroke-width: 1.8;
  filter: none;
}

.transit-search__field input{
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  outline: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.transit-search__field input::placeholder{
  color: rgba(183, 201, 236, 0.52);
}

.transit-search__clear{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(160, 185, 243, 0.35);
  background: rgba(126, 158, 255, 0.12);
  color: rgba(220, 232, 255, 0.96);
  font-size: 14px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.transit-search__clear:hover{
  border-color: rgba(160, 185, 243, 0.58);
  background: rgba(126, 158, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(126, 158, 255, 0.16);
}

.transit-search__field:focus-within{
  border: 1px solid rgba(160, 185, 243, 0.82);
  box-shadow:
    0 0 0 3px rgba(126, 158, 255, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}

.transit-search__submit{
  width: auto;
  min-width: 148px;
  margin-top: 0;
}

@media (max-width: 640px){
  .transit-page{
    max-width: 100%;
  }

  .transit-search__form{
    display: grid;
    grid-template-columns: 1fr;
  }
  .transit-search__submit{
    width: 100%;
  }
  .transit-search{
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
    padding: 16px 18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

.transit-results{
  background: rgba(10, 14, 18, 0.85);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.seguretat-source{
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.spray-info{
  display: grid;
  gap: 10px;
}

.spray-info--secondary{
  border-color: rgba(120, 166, 255, 0.2);
}

.spray-info__title{
  margin: 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.spray-info__list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.spray-legal{
  display: grid;
  gap: 8px;
}

.spray-legal p{
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.spray-info__subtitle{
  margin: 6px 0 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.spray-toggle-btn{
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 16, 23, 0.86);
  color: #ffffff;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.spray-toggle-btn:hover{
  border-color: rgba(120, 166, 255, 0.45);
  background: rgba(15, 21, 30, 0.94);
}

.spray-search__submit{
  min-height: 46px;
  border-radius: 12px;
}

.spray-assistant-catalog{
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.spray-assistant-catalog .spray-list{
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.spray-list-panel{
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.spray-list{
  display: grid;
  gap: 10px;
}

.spray-card{
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 13, 19, 0.84);
  display: grid;
  gap: 10px;
}

.spray-card__name{
  margin: 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
}

.spray-card__meta{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spray-card__meta span{
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 3px;
}

.spray-card__meta strong{
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.spray-card__note{
  margin: 0;
  color: #dfe8ff;
  font-size: 12px;
}

.spray-mark{
  background: rgba(77, 130, 247, 0.26);
  color: #fff;
  border-radius: 6px;
  padding: 0 3px;
}

.spray-admin{
  display: grid;
  gap: 12px;
}

.spray-admin__title{
  margin: 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92b4ff;
}

.spray-admin__form{
  display: grid;
  gap: 10px;
}

.spray-admin__form--inline{
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.spray-admin__actions{
  display: flex;
  justify-content: flex-end;
}

.spray-admin__delete{
  margin-top: 4px;
}

@media (max-width: 680px){
  .spray-card__meta{
    grid-template-columns: 1fr;
  }
  .spray-admin__grid{
    grid-template-columns: 1fr;
  }
}

.transit-results.is-hidden{
  display: none;
}

.transit-create__form{
  display: grid;
  gap: 10px;
}

.transit-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 12;
}

.transit-modal.is-open{
  display: flex;
}

.transit-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(6px);
}

.transit-modal__panel{
  position: relative;
  width: min(92vw, 520px);
  max-height: 85vh;
  overflow: auto;
  background: linear-gradient(180deg, #121824, #0e131a);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 12px;
}

.transit-modal__close{
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.transit-results__list{
  display: grid;
  gap: 14px;
}

.transit-card{
  background: rgba(12, 16, 22, 0.9);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.transit-card__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.transit-card__reglamento{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7aa0ff;
}

.transit-card__title{
  margin: 6px 0 0;
  font-size: 16px;
  color: #fff;
}

.transit-card__meta{
  display: grid;
  gap: 6px;
  text-align: right;
  font-size: 12px;
  color: var(--textMuted);
}

.transit-card__meta span{
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.transit-card__desc{
  margin: 0;
  color: var(--textMuted);
  font-size: 13px;
  line-height: 1.5;
}

.transit-card__severity{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: #cfe0ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.transit-card__severity[data-level=\"lleu\"]{
  color: #9fd3ff;
  border-color: rgba(159, 211, 255, 0.35);
}

.transit-card__severity[data-level=\"greu\"]{
  color: #ffd27a;
  border-color: rgba(255, 210, 122, 0.35);
}

.transit-card__severity[data-level=\"molt greu\"]{
  color: #ff9aa2;
  border-color: rgba(255, 154, 162, 0.35);
}
.hl{
  background: transparent;
  color: #86a6ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(70, 128, 255, 0.8);
  text-underline-offset: 3px;
}

.transit-edit{
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.transit-delete{
  display: flex;
  justify-content: flex-end;
}

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

.field__input--area{
  resize: vertical;
  min-height: 88px;
}

@media (max-width: 640px){
  .transit-card__head{
    flex-direction: column;
    align-items: flex-start;
  }

  .transit-card__meta{
    grid-auto-flow: column;
    text-align: left;
  }

  .transit-edit__grid{
    grid-template-columns: 1fr;
  }
}

.transit-tools{
  display: grid;
  gap: 12px;
}

.tools-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px 14px;
}
.tools-grid--3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tools-section-title{
  display:none !important;
}
@media (max-width: 980px){
  .tools-grid--3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .tools-grid{
    grid-template-columns: repeat(2, minmax(0, 168px)) !important;
    justify-content: center;
    gap: 12px 10px;
  }
  .tools-grid--3{
    grid-template-columns: repeat(2, minmax(0, 168px)) !important;
    justify-content: center;
  }
  .tool-card{
    height: 214px;
    border-radius: 15px;
    padding: 9px 7px;
  }
  .tool-card__label{
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 7px 8px;
    font-size: 11px;
    letter-spacing: .08em;
  }
}

.admin-carousel{
  margin-bottom: 8px;
}

.tool-card{
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  height: 260px;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.95), rgba(10, 14, 20, 0.92));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 10px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  scroll-snap-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.tool-card.is-locked .tool-card__image{
  filter: grayscale(1) contrast(1.05) brightness(.72);
}
.tool-card.is-locked .tool-card__overlay{
  background:linear-gradient(180deg, rgba(6,10,16,.45), rgba(4,7,12,.72));
}

.tool-card__lock{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.tool-card__lock svg{
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.45));
}
.tool-card__label{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  z-index: 2;
}
.tool-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

.transit-page .tool-card{
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 210px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(15, 20, 24, 0.9);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.transit-page .tool-card__overlay{
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.12) 12%, rgba(8, 10, 14, 0.8) 78%);
}

.transit-page .tool-card__label{
  background: rgba(35, 86, 217, 0.34);
  border-color: rgba(35, 86, 217, 0.56);
  color: #e8f0ff;
  font-size: 10px;
  letter-spacing: 0.09em;
  bottom: 10px;
  left: 10px;
  right: 10px;
}
.tool-card__admin-meta{
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  z-index:3;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.tool-card__admin-state,
.tool-card__admin-only,
.tool-card__admin-date{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:4px 8px;
  font-size:10px;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(8,12,18,.7);
  color:#d7e6ff;
}
.tool-card__admin-state.is-ok{
  color:#9ff4ca;
  border-color:rgba(54,188,126,.52);
  background:rgba(20,78,57,.45);
}
.tool-card__admin-state.is-alert{
  color:#ffe6a6;
  border-color:rgba(255,191,62,.56);
  background:rgba(92,63,10,.45);
}
.tool-card__admin-only{
  color:#e8f0ff;
  border-color:rgba(74,126,255,.5);
  background:rgba(24,48,106,.45);
}
.tool-card__review-wrap{
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  z-index:4;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  pointer-events:none;
}
.tool-card__review-date,
.tool-card__review-admin{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:4px 8px;
  font-size:10px;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(8,12,18,.7);
  color:#d7e6ff;
}
.tool-card__review-admin{
  color:#e8f0ff;
  border-color:rgba(74,126,255,.5);
  background:rgba(24,48,106,.45);
}
.tool-card__review-chip{
  pointer-events:auto;
  border-radius:999px;
  padding:5px 10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.22);
  cursor:pointer;
  transition:transform .14s ease, filter .14s ease, box-shadow .14s ease;
}
.tool-card__review-chip:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}
.tool-card__review-chip.state--correcte{
  color:#9ff4ca;
  border-color:rgba(54,188,126,.58);
  background:rgba(20,78,57,.58);
}
.tool-card__review-chip.state--en_revisio{
  color:#ffe6a6;
  border-color:rgba(255,191,62,.62);
  background:rgba(98,66,8,.62);
}
.tool-card__review-chip.state--creant{
  color:#d6e1ff;
  border-color:rgba(104,136,242,.62);
  background:rgba(30,49,112,.62);
}
.tool-card__review-chip:disabled{
  opacity:.75;
  cursor:wait;
}

.transit-page .tool-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px){
  .transit-page .tool-card{
    aspect-ratio: 1 / 1;
    min-height: 160px;
  }
  .transit-page .tool-card__label{
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
}
.tool-card__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: #d7e3ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tool-card__icon svg{
  width: 22px;
  height: 22px;
}

.tool-card__text{
  display: grid;
  gap: 0;
  text-align: left;
}

.tool-card__title{
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tool-card__desc{
  display: none;
}

.tool-card__image{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.05);
}

.tool-card__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.15) 0%, rgba(8, 10, 14, 0.75) 70%);
}

.tool-card__content{
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.tool-card__badge{
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.7);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
}

.tool-card__badge svg{
  width: 18px;
  height: 18px;
}

.tool-card__title{
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.tool-card__desc{
  font-size: 12px;
}

@media (max-width: 640px){
  .tool-card{
    height: 240px;
  }
  .tool-card__label{
    font-size: 11px;
  }
}


.admin-card{
  background: rgba(12, 16, 22, 0.9);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.admin-card--hero{
  padding: 20px;
  gap: 16px;
}

.admin-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card__badge{
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfe0ff;
  border: 1px solid rgba(120, 160, 255, 0.4);
  background: rgba(12, 18, 28, 0.85);
}

.admin-card__hint{
  color: var(--textMuted);
  font-size: 12px;
  margin: 0;
}

.admin-media{
  display: grid;
  gap: 12px;
}

.admin-media--grid{
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-media__item{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

.admin-media__preview{
  width: 140px;
  height: 94px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-media__form{
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.admin-order{
  display: flex;
  justify-content: flex-end;
}

.media-card.is-dragging,
.admin-order__item.is-dragging{
  opacity: 0.6;
  border-color: rgba(120, 160, 255, 0.6);
}

.admin-order__list{
  display: grid;
  gap: 10px;
}

.admin-order__item{
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
}

.admin-order__handle{
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.admin-order__title{
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-card{
  background: rgba(8, 12, 18, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: grid;
  gap: 0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.media-card__preview{
  height: 160px;
  background-size: cover;
  background-position: center;
}

.media-card__preview--mini{
  height: 120px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.media-card__body{
  padding: 14px;
  display: grid;
  gap: 8px;
}

.media-card__title{
  font-size: 14px;
  color: #fff;
}

.media-card__meta{
  font-size: 12px;
  color: var(--textMuted);
}

.media-card__form{
  display: grid;
  gap: 8px;
}

.upload-pill{
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(8, 12, 18, 0.9);
  color: #cfe0ff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.upload-pill__input{
  display: none;
}

@media (max-width: 640px){
  .admin-media__item{
    grid-template-columns: 1fr;
  }

  .admin-media__preview{
    width: 100%;
    height: 140px;
  }
}

.admin-list{
  display: grid;
  gap: 12px;
}

.admin-user{
  background: rgba(10, 14, 18, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.admin-user summary{
  list-style: none;
  cursor: pointer;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.admin-user__summary{
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.admin-user__avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.admin-user__avatar{
  position: relative;
}

.admin-user__avatar .admin-user__avatar-img{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  transform: translate(-50%, -50%) translate(var(--ax, 0px), var(--ay, 0px)) scale(var(--ascale, 1));
}

.admin-user__info{
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--textMuted);
}

.admin-user__info strong{
  color: #fff;
  font-size: 14px;
}

.admin-user__lastlist{
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.admin-user__badge{
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(35, 86, 217, 0.18);
  color: var(--tealSoft);
  font-size: 11px;
}

.admin-user__badge.is-admin{
  background: rgba(255, 193, 7, 0.18);
  color: #ffd26a;
}

.admin-user__badge.is-online{
  background: rgba(51, 209, 122, 0.18);
  color: #7af0b0;
}

.admin-user__online{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #33d17a;
  box-shadow: 0 0 0 3px rgba(51, 209, 122, 0.2);
  margin-right: 6px;
}

.admin-user__delete{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.5);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.admin-user__body{
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
  background: rgba(9, 13, 17, 0.9);
}

.admin-user__meta{
  font-size: 11px;
  color: var(--textMuted);
  display: grid;
  gap: 4px;
}

.admin-user__actions{
  display: flex;
  justify-content: flex-end;
  gap:10px;
}

.admin-user__actions .form__submit,
.admin-user__actions .ghost-btn{
  width:160px;
  margin-top:0;
}

.monitor-page{
  gap: 18px;
  width: 100%;
  max-width: 100%;
  padding-top: 92px;
  padding-bottom: calc(180px + var(--safeBottom));
  overflow-x: hidden;
}

.monitor-page .form__submit,
.monitor-page .ghost-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.monitor-page .form__submit{
  border: 1px solid rgba(110,160,255,.18);
  background: linear-gradient(180deg, #121a27, #0a1018);
  color: #eef4ff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 18px rgba(63,103,210,0.12);
}

.monitor-page .ghost-btn{
  border: 1px solid rgba(110,160,255,.24);
  background: rgba(11, 17, 27, 0.78);
  color: #dbe7ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 20px rgba(0,0,0,.22);
}

.monitor-page .form__submit:hover,
.monitor-page .ghost-btn:hover,
.monitor-fab:hover{
  transform: translateY(-1px);
  border-color: rgba(130, 176, 255, 0.46);
  box-shadow: 0 16px 28px rgba(0,0,0,.3), 0 0 0 1px rgba(130,176,255,.14) inset, 0 0 22px rgba(63,103,210,0.16);
}

.monitor-page .ghost-btn--danger{
  border-color: rgba(255, 105, 105, 0.3);
  color: #ffc2c2;
  background: rgba(34, 12, 16, 0.82);
}

.monitor-page .monitor-card__actions form{
  margin: 0;
}

.monitor-page input,
.monitor-page textarea,
.monitor-page select{
  text-align: left;
}

.monitor-page textarea{
  vertical-align: top;
}

.monitor-form{
  display: grid;
  gap: 12px;
}

.monitor-form__field{
  display: grid;
  gap: 8px;
}

.monitor-form__label{
  font-size: 12px;
  color: #cfdcff;
  text-align: left;
}

.monitor-form__row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.monitor-form__row--triple{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.monitor-form__row--tirador{
  grid-template-columns: 64px minmax(0, 1fr);
}

.monitor-form__prefix{
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 12, 18, 0.68);
  color: #dce9ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.monitor-form__input{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 12, 18, 0.68);
  color: #ffffff;
  padding: 0 13px;
  font-size: 14px;
  outline: none;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.monitor-form__input::placeholder{
  color: #7f8faf;
}

.monitor-form__input:focus{
  border-color: rgba(122, 167, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(43, 107, 255, 0.16);
}

.monitor-form__select{
  appearance: none;
}

.monitor-form__select--small{
  min-width: 180px;
}

.monitor-user-search{
  position: relative;
  display: grid;
  gap: 8px;
}

.monitor-user-search--inline{
  min-width: min(100%, 260px);
  flex: 1 1 260px;
}

.monitor-user-search__status{
  min-height: 18px;
  color: #9fb2d9;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.monitor-user-search__status[hidden],
.monitor-user-search__results[hidden]{
  display: none !important;
}

.monitor-user-search__results{
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(110,160,255,.18);
  background: linear-gradient(180deg, rgba(14, 20, 31, 0.98), rgba(8, 12, 20, 0.98));
  box-shadow: 0 18px 34px rgba(0,0,0,.34);
}

.monitor-user-search__option{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #eff5ff;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 2px;
}

.monitor-user-search__option strong{
  font-size: 13px;
  font-weight: 700;
}

.monitor-user-search__option span{
  color: #94a8d4;
  font-size: 11px;
}

.monitor-user-search__option:hover{
  border-color: rgba(110,160,255,.34);
  background: rgba(38, 56, 96, 0.24);
}

.monitor-user-link-form{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.monitor-info-btn{
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #dce9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.monitor-info-btn svg{
  width: 18px;
  height: 18px;
}

.monitor-info-btn:hover{
  color: #ffffff;
}

.monitor-section__head--info{
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.monitor-section__head--info > div{
  flex: 1 1 auto;
  min-width: 0;
}

.monitor-form__submit{
  min-width: 124px;
  height: 44px;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

.monitor-stats__head{
  justify-content: flex-start;
}

.monitor-stats__head span{
  white-space: nowrap;
}

.monitor-stats .stat-group{
  gap: 8px;
}

.monitor-stats .stat-group__grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.monitor-stats .stat-chip{
  padding: 8px 6px;
  border-radius: 16px;
  justify-items: center;
  text-align: center;
}

.monitor-stats .stat-chip span{
  font-size: 9px;
  line-height: 1.1;
}

.monitor-stats .stat-chip strong{
  font-size: 15px;
  line-height: 1;
}

.monitor-stat-link{
  text-decoration: none;
  color: inherit;
}

.monitor-fab{
  position: fixed;
  right: 18px;
  bottom: calc(84px + var(--safeBottom));
  left: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  z-index: 40;
  margin-top: 0;
  min-width: 58px;
  border-radius: 50% !important;
  border: 1px solid rgba(112, 162, 255, 0.24) !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(99, 157, 255, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(16, 23, 36, 0.96), rgba(8, 12, 20, 0.98)) !important;
  color: #f4f8ff !important;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.30),
    0 0 0 1px rgba(110,160,255,0.10) inset,
    0 0 18px rgba(55, 108, 255, 0.18);
}

.monitor-fab span{
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(120, 170, 255, 0.18);
}

.monitor-fab:hover{
  transform: translateY(-1px);
  border-color: rgba(146, 188, 255, 0.68) !important;
  box-shadow:
    0 18px 32px rgba(0,0,0,0.34),
    0 0 0 1px rgba(146,188,255,0.14) inset,
    0 0 22px rgba(73, 126, 255, 0.24);
}

.monitor-hero,
.monitor-agent-hero{
  width: 100%;
  max-width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(80, 135, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15, 20, 24, 0.94), rgba(10, 14, 20, 0.9));
  box-shadow: 0 18px 36px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
}

.monitor-agent-hero{
  grid-template-columns: 88px 1fr;
}

.monitor-agent-hero__avatar{
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 12, 18, 0.65);
}

.monitor-agent-hero__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitor-hero__copy h2,
.monitor-agent-hero__copy h2{
  margin: 0;
  font-size: 24px;
  color: #fff;
}

.monitor-hero__copy,
.monitor-agent-hero__copy{
  width: 100%;
  min-width: 0;
}

.monitor-hero__media{
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
}

.monitor-hero__cover-form,
.monitor-hero__cover-delete-form{
  margin: 0;
}

.monitor-hero__cover-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.monitor-hero__cover{
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  position: relative;
  border: 1px solid rgba(117, 161, 255, 0.16);
  background:
    radial-gradient(circle at 30% 30%, rgba(77, 130, 247, 0.26), transparent 48%),
    linear-gradient(180deg, rgba(15, 25, 42, 0.98), rgba(8, 13, 22, 0.96));
  cursor: pointer;
}

.monitor-hero__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.monitor-hero__cover-action{
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 11, 18, 0.9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.monitor-hero__cover-action svg{
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monitor-hero__cover-action--edit{
  right: 8px;
  bottom: 8px;
}

.monitor-hero__cover-action--delete{
  top: 0;
  right: -6px;
  color: #ffd9d9;
  border-color: rgba(255, 97, 97, 0.28);
}

.monitor-hero__topline{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.monitor-hero__status{
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.monitor-subbar-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.monitor-hero__copy p,
.monitor-agent-hero__copy p,
.monitor-muted{
  margin: 0;
  color: #9fb2d9;
  font-size: 13px;
  line-height: 1.45;
}

.monitor-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(112, 160, 255, 0.32);
  background: rgba(36, 67, 136, 0.22);
  color: #dce9ff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.monitor-chip--alert{
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(122, 39, 39, 0.22);
  color: #ffd2d2;
}

.monitor-hero__actions,
.monitor-card__actions,
.monitor-inline-form,
.monitor-form--inline{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.monitor-hero__actions{
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.monitor-hero__title-form{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.monitor-hero__title-input{
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(110,160,255,.18);
  background: rgba(12, 18, 28, 0.76);
  color: #fff;
  padding: 0 14px;
  font-size: 22px;
  font-weight: 700;
}

.monitor-hero__save{
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(110,160,255,.22);
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.94), rgba(8, 12, 20, 0.98));
  color: #dce9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.24);
}

.monitor-hero__save svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monitor-icon-btn{
  display: flex;
  gap: 10px;
  padding: 18px 12px !important;
  min-height: 144px;
  font-size: 13px;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  border-radius: 16px !important;
  flex-direction: column;
  text-align: center;
}

.monitor-icon-btn svg{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.monitor-icon-btn span{
  display: block;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.monitor-modal__panel--calendar{
  width: min(92vw, 620px);
  max-width: 100%;
  max-height: min(84dvh, 760px);
  overflow: auto;
}

.monitor-calendar{
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 12, 18, 0.5);
}

.monitor-calendar__head{
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
}

.monitor-calendar__head strong{
  text-align: center;
  color: #ffffff;
  font-size: 15px;
  text-transform: capitalize;
}

.monitor-calendar__nav{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(110,160,255,.18);
  background: rgba(12, 18, 28, 0.82);
  color: #dce9ff;
  cursor: pointer;
  font-size: 20px;
}

.monitor-calendar__weekdays,
.monitor-calendar__grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.monitor-calendar__weekdays span{
  text-align: center;
  color: #89a1cf;
  font-size: 11px;
  text-transform: uppercase;
}

.monitor-calendar__day{
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

.monitor-calendar__day.is-selected{
  border-color: rgba(110,160,255,.55);
  background: linear-gradient(180deg, rgba(30, 56, 115, 0.78), rgba(16, 29, 59, 0.92));
  box-shadow: 0 10px 22px rgba(12, 34, 78, 0.28);
}

.monitor-calendar__day.is-disabled{
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}

.monitor-calendar__day.is-empty{
  min-height: 42px;
  border-radius: 12px;
  background: transparent;
  border: 0;
}

.monitor-calendar__selected{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monitor-calendar__chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110,160,255,.2);
  background: rgba(16, 26, 45, 0.78);
  color: #dce9ff;
  font-size: 12px;
}

.monitor-calendar__empty{
  color: #89a1cf;
  font-size: 12px;
}

.monitor-calendar__empty.is-error{
  color: #ffb6b6;
}

.monitor-stat-button{
  appearance: none;
  cursor: pointer;
  text-align: left;
}

.monitor-monitor-picker{
  display: grid;
  gap: 8px;
}

.monitor-monitor-picker__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #e8f0ff;
  cursor: pointer;
}

.monitor-monitor-picker__item input{
  margin: 0;
}

.monitor-monitor-assignments{
  display: grid;
  gap: 10px;
}

.monitor-assignment-row{
  display: grid;
  grid-template-columns: minmax(0, 150px) 1fr;
  gap: 12px;
  align-items: center;
}

.monitor-assignment-row__date{
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.monitor-assignment-row__select{
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(110,160,255,.18);
  background: rgba(12, 18, 28, 0.86);
  color: #e8f0ff;
  padding: 0 14px;
}

.monitor-exercise-days{
  display: grid;
  gap: 10px;
}

.monitor-day-calendar-list{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.monitor-static-calendar{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.monitor-static-calendar__head{
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
}

.monitor-static-calendar__weekdays,
.monitor-static-calendar__grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.monitor-static-calendar__weekdays span{
  text-align: center;
  color: #89a1cf;
  font-size: 11px;
  text-transform: uppercase;
}

.monitor-static-calendar__day{
  min-height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #cfe0ff;
  text-decoration: none;
}

.monitor-static-calendar__day.is-active{
  border-color: rgba(110,160,255,.55);
  background: linear-gradient(180deg, rgba(30, 56, 115, 0.78), rgba(16, 29, 59, 0.92));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(12, 34, 78, 0.28);
}

.monitor-static-calendar__day.is-active.is-warning{
  border-color: rgba(255, 211, 102, 0.52);
  background: linear-gradient(180deg, rgba(84, 61, 13, 0.9), rgba(54, 39, 8, 0.96));
  color: #fff6d9;
  box-shadow: 0 10px 22px rgba(79, 58, 12, 0.28), 0 0 18px rgba(255, 201, 81, 0.16);
}

.monitor-static-calendar__day.is-active.is-done{
  border-color: rgba(86, 205, 145, 0.48);
  background: linear-gradient(180deg, rgba(17, 75, 54, 0.88), rgba(10, 45, 32, 0.96));
  color: #eafff1;
  box-shadow: 0 10px 22px rgba(10, 57, 38, 0.28), 0 0 18px rgba(86, 205, 145, 0.14);
}

.monitor-static-calendar__day.is-active.is-danger{
  border-color: rgba(255, 118, 118, 0.5);
  background: linear-gradient(180deg, rgba(88, 25, 25, 0.9), rgba(55, 14, 14, 0.96));
  color: #ffe1e1;
  box-shadow: 0 10px 22px rgba(67, 16, 16, 0.28), 0 0 18px rgba(255, 103, 103, 0.14);
}

.monitor-static-calendar__day.is-empty{
  border: 0;
  background: transparent;
}

.monitor-modal-list{
  display: grid;
  gap: 10px;
}

.monitor-modal-list__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #e8f0ff;
}

.monitor-modal-list__item.is-danger{
  border-color: rgba(255, 104, 104, 0.22);
  background: rgba(84, 22, 22, 0.22);
  color: #ffd2d2;
}

.monitor-day-rows{
  display: grid;
  gap: 12px;
}

.monitor-day-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.monitor-day-row__tip strong{
  color: #ffffff;
  font-size: 15px;
}

.monitor-day-row__tip{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.monitor-day-row__remove-form{
  margin: 0;
  flex: 0 0 auto;
}

.monitor-day-row__uploads{
  display: flex;
  gap: 12px;
  width: max-content;
}

.monitor-day-row__scroller{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.monitor-day-row__upload-form{
  display: grid;
  gap: 0;
  justify-items: center;
  margin: 0;
}

.monitor-exercise-strip{
  width: 144px;
  min-width: 144px;
  max-width: 144px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(110,160,255,.12);
  background: linear-gradient(180deg, rgba(13, 19, 31, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  scroll-snap-align: start;
  align-content: start;
}

.monitor-exercise-strip__head{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.monitor-exercise-strip__head strong{
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.monitor-day-row__upload-btn{
  width: 56px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(110,160,255,.2);
  background: linear-gradient(180deg, rgba(16, 23, 36, 0.96), rgba(8, 12, 20, 0.98));
  color: #e8f0ff;
  display: grid;
  gap: 4px;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.monitor-day-row__upload-btn--wide{
  width: 116px;
  min-height: 116px;
  border-radius: 16px;
  gap: 5px;
  justify-self: center;
}

.monitor-day-row__upload-btn input{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.monitor-day-row__upload-btn svg{
  width: 18px;
  height: 18px;
}

.monitor-day-row__upload-btn span{
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

.monitor-day-row__upload-btn.is-locked{
  opacity: 0.45;
  cursor: default;
}

.monitor-day-row__upload-form small{
  color: #89a1cf;
  font-size: 11px;
}

.monitor-day-row__thumbs{
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: center;
}

.monitor-results-list{
  display: grid;
  gap: 10px;
}

.monitor-results-item{
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.monitor-results-item strong{
  color: #ffffff;
  font-size: 14px;
}

.monitor-results-item > span{
  color: #9fb2d9;
  font-size: 12px;
}

.monitor-results-preview{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(6, 10, 18, 0.92);
}

.monitor-results-preview img{
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.monitor-results-preview__layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.monitor-impact-marker{
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 36, 36, 0.92);
  border: 1px solid rgba(255, 214, 214, 0.72);
  color: #fff5f5;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,0.24);
}

.monitor-results-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid rgba(91, 126, 216, 0.14);
  color: #c8d8f8;
  font-size: 11px;
}

.monitor-results-meta strong{
  font-size: 12px;
}

.monitor-results-item ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.monitor-results-block{
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.78);
  border: 1px solid rgba(255,255,255,0.05);
}

.monitor-results-block h3{
  margin: 0;
  color: #eef5ff;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.monitor-results-block--coach strong{
  color: #ffffff;
  font-size: 13px;
}

.monitor-results-block--ok{
  border-color: rgba(68, 166, 115, 0.28);
}

.monitor-results-block--warning{
  border-color: rgba(190, 118, 46, 0.28);
}

.monitor-results-block--debug{
  border-color: rgba(91, 126, 216, 0.20);
}

.monitor-results-item li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(255,255,255,0.05);
}

.monitor-results-item li span{
  color: #b9caea;
  font-size: 11px;
}

.monitor-results-item li strong{
  font-size: 13px;
}

.monitor-day-row__thumb-card{
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.monitor-day-row__thumb{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 12, 18, 0.82);
  display: block;
}

.monitor-day-row__thumb--large{
  width: 116px;
  height: 116px;
  border-radius: 14px;
}

.monitor-day-row__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.monitor-day-row__thumb-label{
  font-size: 10px;
  color: #9fb2d9;
  font-weight: 700;
}

.monitor-day-row__thumb-delete{
  position: absolute;
  top: -6px;
  right: -6px;
  margin: 0;
}

.monitor-day-row__thumb-delete-btn{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 120, 0.4);
  background: rgba(48, 10, 14, 0.92);
  color: #ffd1d1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.monitor-modal__panel--image{
  width: min(94vw, 720px);
  max-width: 100%;
  padding: 14px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}

.monitor-review-image{
  width: 100%;
  max-height: 78dvh;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(4, 8, 14, 0.96);
  border: 1px solid rgba(255,255,255,0.06);
}

.monitor-modal__image-close{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(110,160,255,.32);
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.94), rgba(8, 12, 22, 0.98));
  color: #eef5ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 12px 26px rgba(0,0,0,.34), 0 0 18px rgba(71, 124, 255, 0.18);
  cursor: pointer;
}

.monitor-modal__image-close:hover{
  border-color: rgba(142, 181, 255, 0.46);
  box-shadow: 0 14px 28px rgba(0,0,0,.38), 0 0 22px rgba(71, 124, 255, 0.28);
}

.monitor-clean-silhouette__preview{
  display: block;
  width: min(100%, 260px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 12, 18, 0.9);
}

.monitor-clean-silhouette__preview--calibrated{
  position: relative;
}

.monitor-clean-silhouette__preview img{
  width: 100%;
  height: auto;
  display: block;
}

.monitor-calibration-ellipse{
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(255, 214, 102, 0.92);
  box-shadow: 0 0 0 999px rgba(255, 214, 102, 0.04), 0 0 22px rgba(255, 214, 102, 0.28);
  pointer-events: none;
}

.monitor-clean-silhouette__form{
  margin: 0;
  display: grid;
  gap: 12px;
}

.monitor-clean-silhouette__form--config{
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.monitor-checkbox{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce7fb;
  font-size: 13px;
}

.monitor-checkbox input{
  width: 18px;
  height: 18px;
}

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

.monitor-day-row__upload-btn--clean{
  width: 100%;
  min-height: 64px;
  justify-self: stretch;
}

.monitor-results-meta--single{
  margin-bottom: 10px;
}

.monitor-day-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.monitor-day-action-card{
  width: 100%;
  min-height: 92px;
  border-radius: 18px;
  border: 1px solid rgba(110,160,255,.18);
  background: linear-gradient(180deg, rgba(16, 23, 36, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.monitor-day-action-card.monitor-user-search--inline{
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
}

.monitor-day-action-card .monitor-form__input{
  min-height: 38px;
}

.monitor-day-action-card__btn{
  width: 100%;
  min-height: 40px;
}

.monitor-day-create-link{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: #bcd2ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 2px 0;
}

.monitor-day-create-link:hover{
  color: #e3eeff;
}

.monitor-day-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.monitor-day-create-link--button{
  border: 0;
  background: transparent;
  cursor: pointer;
}

.monitor-day-action-card--link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #e8f0ff;
  font-weight: 700;
}

.monitor-create-btn{
  margin-top: 0;
}

.monitor-section__head{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.monitor-grid,
.monitor-agent-grid,
.monitor-impact-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.monitor-grid{
  grid-template-columns: 1fr;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}

.monitor-news-card{
  overflow: hidden;
}

.monitor-news-card__btn{
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.monitor-news-card__btn,
.monitor-news-card__content,
.monitor-news-card__content h3,
.monitor-news-card__content p{
  text-decoration: none !important;
}

.monitor-news-card__cover-form{
  margin: 0;
}

.monitor-news-card__cover-input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.monitor-news-card__image{
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(77, 130, 247, 0.26), transparent 48%),
    linear-gradient(180deg, rgba(15, 25, 42, 0.98), rgba(8, 13, 22, 0.96));
  border: 1px solid rgba(117, 161, 255, 0.16);
  position: relative;
}

.monitor-news-card__image{
  cursor: pointer;
}

.monitor-news-card__image.is-locked{
  cursor: default;
}

.monitor-news-card__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitor-news-card__lock{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.18), rgba(7, 11, 18, 0.48));
  backdrop-filter: blur(1px);
  z-index: 2;
}

.monitor-news-card__lock svg{
  width: 26px;
  height: 26px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(66, 122, 255, 0.16);
  border: 1px solid rgba(66, 122, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 18px rgba(66, 122, 255, 0.28);
  fill: none;
  stroke: #b4ccff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monitor-news-card__image svg{
  width: 28px;
  height: 28px;
  stroke: #dce9ff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(91, 144, 255, 0.18));
}

.monitor-news-card__content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  color: inherit;
  height: auto;
  min-height: 68px;
  min-width: 0;
  gap: 8px;
}

.monitor-news-card__content h3{
  font-size: 16px;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  min-width: 0;
}

.monitor-news-card__title-link{
  display: block;
  color: #ffffff;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monitor-news-card__cover-wrap{
  position: relative;
  flex: 0 0 auto;
}

.monitor-news-card__image-link{
  display: block;
  text-decoration: none !important;
}

.monitor-news-card__cover-edit{
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 24, 0.92);
  border: 1px solid rgba(77, 132, 255, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(69, 117, 255, 0.16);
  color: #e8efff;
  cursor: pointer;
}

.monitor-news-card__cover-edit svg{
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monitor-news-card__content p{
  font-size: 12px;
}

.monitor-news-card__actions{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex-wrap: nowrap;
  gap: 8px;
  align-self: center;
}

.monitor-news-card__action-form{
  margin: 0;
}

.monitor-news-card__action-form,
.monitor-news-card__actions > a{
  flex: 0 0 auto;
}

.monitor-tirador-row{
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.monitor-tirador-row__tip{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.monitor-tirador-row__tip strong{
  font-size: 16px;
  color: #ffffff;
}

.monitor-tirador-row__avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 32px;
}

.monitor-tirador-row__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitor-tirador-row__actions{
  display: flex;
  justify-content: flex-end;
}

.monitor-tirador-row__actions form{
  margin: 0;
}

.monitor-news-card__action{
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.monitor-news-card__action .like-btn__icon{
  width: 16px;
  height: 16px;
}

.monitor-news-card__action .like-btn__icon svg{
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monitor-news-card__action--danger{
  color: #ffbcbc;
  border-color: rgba(255, 106, 106, 0.18);
}

.monitor-news-card__action--unlock{
  color: #ffd978;
  border-color: rgba(255, 211, 102, 0.24);
  background: rgba(40, 30, 8, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 20px rgba(0,0,0,.22), 0 0 18px rgba(255, 196, 74, 0.12);
}

.monitor-news-card__action--unlock:hover{
  color: #ffe7aa;
  border-color: rgba(255, 222, 133, 0.42);
}

.monitor-news-card__action--danger:hover{
  color: #ffd0d0;
  border-color: rgba(255, 120, 120, 0.35);
}

.monitor-news-card__action--whatsapp{
  color: #bff4d4;
  border-color: rgba(61, 202, 119, 0.26);
  background: rgba(9, 28, 18, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 20px rgba(0,0,0,.22), 0 0 18px rgba(32, 180, 94, 0.12);
}

.monitor-news-card__action--whatsapp .like-btn__icon{
  width: 18px;
  height: 18px;
}

.monitor-news-card__action--whatsapp .like-btn__icon svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.monitor-news-card__action--whatsapp:hover{
  color: #dbffe8;
  border-color: rgba(79, 222, 137, 0.46);
}

.monitor-card{
  gap: 14px;
}

.monitor-hero__meta-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 14, 25, 0.82);
  border: 1px solid rgba(110,160,255,.16);
  color: #c9d8f5;
  font-size: 12px;
  font-weight: 700;
}

.monitor-card h3,
.monitor-exercise-card h3{
  margin: 0;
  color: #fff;
}

.monitor-card__head,
.monitor-exercise-card__head,
.monitor-target-cell__head,
.monitor-impact-card__meta,
.monitor-section__head{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.monitor-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monitor-card__meta span,
.monitor-score-item span,
.monitor-impact-card__meta span{
  font-size: 12px;
  color: #9fb2d9;
}

.monitor-ranking-list,
.monitor-ranking-table,
.monitor-history-list,
.monitor-doc-list,
.monitor-exercise-list,
.monitor-score-list,
.monitor-observations{
  display: grid;
  gap: 10px;
}

.monitor-ranking-item,
.monitor-ranking-row,
.monitor-history-item,
.monitor-doc-item,
.monitor-score-item,
.monitor-observation{
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
}

.monitor-ranking-item:hover,
.monitor-ranking-row:hover,
.monitor-doc-item:hover,
.monitor-agent-card:hover{
  border-color: rgba(110,160,255,.36);
  transform: translateY(-1px);
}

.monitor-ranking-item__pos{
  font-size: 11px;
  color: #7fb0ff;
}

.monitor-day-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.monitor-day-tab{
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #dce9ff;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.monitor-day-tab.is-active{
  border-color: rgba(110,160,255,.55);
  box-shadow: 0 0 0 1px rgba(110,160,255,.2) inset, 0 12px 26px rgba(22,70,166,.18);
}

.monitor-agent-card{
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: #fff;
}

.monitor-agent-card__avatar{
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.monitor-agent-card__avatar img,
.monitor-target-thumb,
.monitor-impact-card__visual img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitor-exercise-card,
.monitor-impact-card,
.monitor-target-cell{
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.monitor-targets-grid{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.monitor-target-thumb-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.monitor-target-thumb{
  height: 92px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.monitor-target-empty{
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.12);
  color: #7e93bb;
  font-size: 12px;
}

.monitor-link{
  color: #86b6ff;
  text-decoration: none;
  font-size: 12px;
}

.monitor-modal{
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.monitor-modal[hidden]{
  display: none !important;
}

.monitor-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.74);
  backdrop-filter: blur(10px);
}

.monitor-modal__panel{
  position: relative;
  width: min(92vw, 520px);
  max-height: calc(100dvh - 36px);
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #121824, #0d141f);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 28px 60px rgba(0,0,0,0.45);
  display: grid;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.monitor-modal__panel h2{
  margin: 0;
  color: #fff;
}

.monitor-tip-textarea{
  min-height: 108px;
  resize: vertical;
}

.monitor-impact-card__visual{
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(6, 10, 18, 0.88);
}

.monitor-impact-dot{
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(255, 71, 71, 0.88);
  box-shadow: 0 0 16px rgba(255,71,71,0.5);
  transform: translate(-50%, -50%);
}

.monitor-flash--ok{
  background: rgba(62, 186, 120, 0.12);
  border-color: rgba(62, 186, 120, 0.3);
  color: #bdf0d0;
}

.ghost-btn--danger{
  border-color: rgba(255, 105, 105, 0.34);
  color: #ffb6b6;
}

@media (max-width: 760px){
  .monitor-grid{
    max-height: 520px;
  }
  .monitor-news-card__btn{
    grid-template-columns: 60px 1fr;
    gap: 10px;
    padding: 10px;
    align-items: stretch;
  }
  .monitor-news-card__image{
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .monitor-news-card__content h3{
    font-size: 14px;
  }
  .monitor-news-card__content{
    height: 60px;
    min-height: 60px;
  }
  .monitor-news-card__action{
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .monitor-news-card__actions{
    gap: 6px;
  }
  .monitor-section__head--info{
    flex-direction: row !important;
    align-items: center !important;
  }
  .monitor-tirador-row__actions{
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: center;
  }
  .monitor-page{
    padding-top: 88px;
  }
  .monitor-form__row{
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .monitor-form__row--tirador{
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .monitor-form__submit{
    min-width: 104px;
  }
  .monitor-stats .stat-group{
    padding: 12px 10px;
  }
  .monitor-stats .stat-group__head{
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .monitor-stats .stat-group__grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .monitor-stats .stat-chip{
    padding: 8px 4px;
    border-radius: 14px;
  }
  .monitor-stats .stat-chip span{
    font-size: 8px;
  }
  .monitor-stats .stat-chip strong{
    font-size: 13px;
  }
  .monitor-fab{
    right: 14px;
    left: auto;
    bottom: calc(84px + var(--safeBottom));
    transform: none;
    min-width: 56px;
    width: 56px;
    height: 56px;
  }
  .monitor-fab:hover{
    transform: translateY(-1px);
  }
  .monitor-hero,
  .monitor-agent-hero{
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
  }
  .monitor-hero__topline{
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }
  .monitor-hero__actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .monitor-subbar-actions{
    gap: 6px;
  }
  .monitor-section__head,
  .monitor-card__head,
  .monitor-exercise-card__head,
  .monitor-target-cell__head,
  .monitor-impact-card__meta{
    align-items: flex-start;
    flex-direction: column;
  }
  .monitor-target-thumb-list{
    grid-template-columns: repeat(2, 1fr);
  }
  .monitor-user-link-form{
    width: 100%;
  }
  .monitor-user-search--inline{
    min-width: 100%;
    flex-basis: 100%;
  }
  .monitor-day-row{
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .monitor-assignment-row{
    grid-template-columns: 1fr;
  }
  .monitor-modal__panel--calendar{
    width: min(96vw, 620px);
    max-height: 82dvh;
    padding-bottom: 18px;
  }
  .monitor-hero__media{
    width: 80px;
    height: 80px;
  }
  .monitor-hero__cover{
    width: 80px;
    height: 80px;
  }
  .monitor-hero__title-input{
    font-size: 18px;
  }
  .monitor-hero__save{
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }
  .monitor-day-action-card{
    width: 100%;
  }
  .monitor-icon-btn{
    min-height: 136px;
    padding: 16px 10px !important;
    font-size: 12px;
  }
  .monitor-modal-list__item{
    align-items: flex-start;
    flex-direction: column;
  }
}

.monitor-module{
  overflow-x: hidden;
}

.admin-delete{
  margin-top: -4px;
}

@media (min-width: 900px){
  .admin-page{
    max-width: 900px;
    margin: 0 auto;
  }

  .admin-stats{
    grid-template-columns: 1.4fr 1fr;
  }

  .admin-form{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user{
    grid-template-columns: 1fr;
  }
}

.profile-hero{
  background: rgba(15, 20, 24, 0.85);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.procedure-page{
  min-height: 100dvh;
  padding: 118px 18px 110px;
  display: grid;
  justify-items: center;
}

.procedure-card{
  width: min(980px, 100%);
  background: rgba(15, 20, 24, 0.92);
  border-radius: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
}

.procedure-head h2{
  margin: 6px 0 4px;
  font-family: "Outfit", sans-serif;
  font-size: 24px;
}

.procedure-eyebrow{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--textMuted);
}

.procedure-lead{
  color: var(--textMuted);
  margin: 0;
  font-size: 13px;
}

.procedure-steps{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.procedure-step{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.55);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.procedure-step.is-active{
  color: #fff;
  background: rgba(66, 122, 255, 0.18);
  border-color: rgba(66, 122, 255, 0.55);
  box-shadow: 0 12px 26px rgba(32, 92, 230, 0.25);
}

.procedure-step:disabled{
  opacity: 0.4;
  cursor: not-allowed;
}

.procedure-panels{
  display: grid;
  gap: 16px;
}

.procedure-panel{
  display: none;
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 16, 20, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  gap: 12px;
}

.procedure-panel.is-active{
  display: grid;
}

.procedure-panel h3{
  margin: 0;
  font-size: 17px;
}

.procedure-text{
  margin: 0;
  color: var(--textMuted);
  font-size: 13px;
}

.procedure-notice{
  margin-top: 10px;
  background: rgba(40, 180, 99, 0.18);
  border: 1px solid rgba(40, 180, 99, 0.4);
  color: #c7f3d9;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

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

.pill-btn{
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover{
  border-color: rgba(66, 122, 255, 0.6);
}

.pill-btn--accent{
  background: rgba(66, 122, 255, 0.28);
  border-color: rgba(66, 122, 255, 0.5);
}

.pill-btn.is-selected{
  border-color: rgba(66, 122, 255, 0.9);
  box-shadow: 0 8px 20px rgba(32, 92, 230, 0.3);
}

.procedure-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.procedure-field{
  display: grid;
  gap: 8px;
  color: var(--textMuted);
  font-size: 12px;
}

.procedure-input{
  background: rgba(8, 12, 16, 0.8);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 15px;
}

.procedure-input-row{
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(66, 122, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn--label{
  width: auto;
  height: auto;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
  letter-spacing: 0.02em;
}

.icon-btn:hover{
  border-color: rgba(66, 122, 255, 0.8);
  box-shadow: 0 8px 18px rgba(32, 92, 230, 0.3);
}

.icon-btn svg{
  width: 20px;
  height: 20px;
}

.procedure-result{
  padding: 20px;
  border-radius: 22px;
  background: rgba(10, 14, 18, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  gap: 14px;
}

.procedure-result--ok{
  background: rgba(40, 180, 99, 0.18);
  border-color: rgba(40, 180, 99, 0.35);
}

.procedure-result--warn{
  background: rgba(255, 204, 102, 0.12);
  border-color: rgba(255, 204, 102, 0.3);
}

.procedure-result--danger{
  background: rgba(255, 77, 79, 0.12);
  border-color: rgba(255, 77, 79, 0.3);
}

.procedure-result[hidden]{
  display: none !important;
}

.procedure-result__head h3{
  margin: 6px 0;
}

.procedure-result__meta{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.procedure-result__meta:empty{
  display: none;
}

.procedure-result__meta div{
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.procedure-result__meta span{
  font-size: 11px;
  color: var(--textMuted);
}

.procedure-result__meta strong{
  font-size: 14px;
}

.procedure-result__route{
  display: grid;
  gap: 8px;
}

@media (min-width: 1024px){
  .procedure-page--drogo{
    padding-top: 112px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .procedure-card--drogo{
    width: min(1120px, 100%);
    padding: 30px;
    gap: 22px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(15, 20, 24, 0.96), rgba(10, 14, 18, 0.94));
  }

  .procedure-card--drogo .procedure-head{
    max-width: 860px;
  }

  .procedure-card--drogo .procedure-head h2{
    font-size: 28px;
    line-height: 1.1;
    margin-top: 8px;
  }

  .procedure-card--drogo .procedure-lead{
    font-size: 14px;
  }

  .procedure-card--drogo .procedure-steps{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .procedure-card--drogo .procedure-step{
    width: 100%;
    text-align: center;
    font-weight: 600;
  }

  .procedure-card--drogo .procedure-panel{
    min-height: 220px;
    padding: 22px;
    border-radius: 22px;
  }

  .procedure-card--drogo .procedure-actions{
    gap: 12px;
  }

  .procedure-card--drogo .pill-btn{
    min-height: 44px;
  }

  .procedure-card--drogo .procedure-result{
    padding: 22px;
    border-radius: 24px;
  }

  .procedure-card--drogo .procedure-list{
    gap: 12px;
  }

  .procedure-card--drogo .procedure-act{
    padding: 14px 16px;
  }
}

.procedure-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #e5e9f0;
  font-size: 13px;
}

.procedure-act{
  background: rgba(66, 122, 255, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  touch-action: pan-y;
  position: relative;
  overflow: hidden;
}

.procedure-act::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 32px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.25));
  border-radius: 999px;
}

.procedure-act::before{
  content: "";
}

.procedure-list--penal .procedure-act{
  background: rgba(255, 77, 79, 0.12);
  border-color: rgba(255, 77, 79, 0.3);
}

.procedure-list--ok .procedure-act{
  background: rgba(40, 180, 99, 0.15);
  border-color: rgba(40, 180, 99, 0.34);
}

.procedure-list--admin .procedure-act{
  background: rgba(255, 204, 102, 0.2);
  border-color: rgba(255, 204, 102, 0.45);
}

.procedure-act__label{
  font-weight: 600;
}

.procedure-act__hint{
  font-size: 11px;
  color: var(--textMuted);
}

.procedure-act__swipe{
  margin-left: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.procedure-act.is-dragging{
  opacity: 0.8;
}

.procedure-act.is-dismissed{
  opacity: 0;
}

.procedure-act--notice{
  background: rgba(255, 204, 102, 0.18);
  border: 1px solid rgba(255, 204, 102, 0.4);
  color: #ffd38a;
  font-weight: 600;
}

.procedure-list--penal .procedure-act--notice{
  background: rgba(255, 204, 102, 0.2);
  border-color: rgba(255, 204, 102, 0.5);
  color: #ffe2a6;
}

.procedure-act--copy{
  background: rgba(93, 134, 243, 0.16);
  border: 1px solid rgba(93, 134, 243, 0.4);
  color: #dbe6ff;
  font-weight: 600;
}

.result-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.08);
}

.result-tag--ok{
  background: rgba(46, 204, 113, 0.18);
  color: #aef1c5;
}

.result-tag--warn{
  background: rgba(255, 187, 51, 0.18);
  color: #ffd494;
}

.result-tag--danger{
  background: rgba(255, 77, 79, 0.2);
  color: #ffb3b5;
}

.procedure-footer{
  display: flex;
  justify-content: flex-end;
}

.ghost-btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
}

@media (max-width: 720px){
  .procedure-page{
    padding: 106px 14px 110px;
  }

  .procedure-card{
    padding: 16px;
    border-radius: 22px;
    gap: 16px;
  }

  .procedure-head h2{
    font-size: 20px;
  }

  .procedure-steps{
    gap: 8px;
  }

  .procedure-step{
    flex: 1 1 0;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
  }

  .procedure-panel{
    padding: 14px;
  }

  .procedure-actions{
    width: 100%;
  }

  .pill-btn{
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 12px;
  }

  .procedure-input-row{
    flex-direction: column;
    align-items: stretch;
  }

  .icon-btn{
    width: 100%;
  }

  .procedure-result{
    padding: 16px;
  }

  .procedure-result--danger{
    background: rgba(116, 32, 44, 0.58);
    border-color: rgba(255, 97, 112, 0.62);
  }

  .procedure-result--ok{
    background: rgba(22, 92, 56, 0.56);
    border-color: rgba(76, 211, 138, 0.62);
  }

  .procedure-result__meta{
    grid-template-columns: 1fr;
  }

  .procedure-act{
    padding: 12px;
  }

  .procedure-result--danger .procedure-list .procedure-act,
  .procedure-list--penal .procedure-act{
    background: rgba(122, 34, 46, 0.7);
    border-color: rgba(255, 98, 113, 0.62);
  }

  .procedure-result--ok .procedure-list .procedure-act,
  .procedure-list--ok .procedure-act{
    background: rgba(23, 97, 59, 0.68);
    border-color: rgba(78, 214, 141, 0.62);
  }

  .procedure-result--danger .procedure-act__hint,
  .procedure-result--ok .procedure-act__hint{
    color: rgba(245, 248, 255, 0.72);
  }
}

.profile-hero__hint{
  color: var(--textMuted);
  font-size: 12px;
  display: flex;
  gap: 8px;
}

.profile-hero__avatar{
  position: relative;
  display: grid;
  place-items: center;
}

.avatar-frame--large{
  width: 140px;
  height: 140px;
}

.avatar-edit{
  position: absolute;
  right: calc(50% - 70px);
  bottom: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(242, 201, 92, 0.72);
  background: linear-gradient(180deg, rgba(44, 34, 12, 0.96), rgba(32, 25, 10, 0.96));
  color: #f2c95c;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}

.avatar-edit:hover{
  border-color: rgba(242, 201, 92, 0.95);
  color: #ffdf8a;
  filter: brightness(1.05);
}

.avatar-edit svg{
  width: 16px;
  height: 16px;
}

.profile-hero__controls{
  display: grid;
  gap: 10px;
}

.upload--ghost{
  background: rgba(8, 12, 18, 0.6);
}

.ghost-btn--small{
  height: 40px;
}

.profile-form{
  display: grid;
  gap: 14px;
}

.profile-form > .form__submit{
  width: 100%;
  min-height: 50px;
}

.profile-page .ghost-btn{
  width: 100%;
  min-height: 44px;
}

.profile-page .input-pill--compact{
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 6px;
  padding: 10px 12px;
  min-height: auto;
}

.profile-page .input-pill--compact .input-pill__label{
  min-width: 0;
}

.profile-page .input-pill--compact .input-pill__input{
  width: 100%;
  min-width: 0;
  text-align: left;
  flex: 1 1 auto;
}

.profile-page .input-pill--compact .input-pill__input[type="range"]{
  width: 100%;
}

.profile-page .push-widget__actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  width:100%;
  align-items:stretch;
}

.profile-page .push-widget__actions > .push-widget__action{
  width:100%;
  min-width:0;
  height:46px;
  min-height:46px;
  margin:0;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-sizing:border-box;
  line-height:1.15;
}

.profile-card{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
  min-width: 0;
}

.profile-card--personal{
  gap: 10px;
}

.profile-card--personal .input-pill{
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-content: stretch;
  gap: 6px;
  padding: 12px 14px;
  min-height: 76px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 14, 21, 0.88), rgba(7, 11, 17, 0.82));
}

.profile-card--personal .input-pill__label{
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.profile-card--personal .input-pill__input{
  text-align: left;
  height: 28px;
  line-height: 1.3;
  font-size: 16px;
  font-weight: 600;
}

.profile-card--compact{
  padding: 12px;
  gap: 8px;
}

.profile-card--compact .input-pill{
  min-height: 32px;
  padding: 4px 10px;
}

.profile-card h3{
  margin: 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.input-pill{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(8, 12, 18, 0.65);
  border-radius: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  min-height: 38px;
  min-width: 0;
}

.input-pill--compact{
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.input-pill__label{
  font-size: 10px;
  color: var(--textMuted);
  min-width: 110px;
}

.input-pill__input{
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  outline: none;
  height: 18px;
  line-height: 1.2;
  flex: 1;
  text-align: right;
  width: auto;
  min-width: 6ch;
  max-width: 100%;
}

.input-pill--compact .input-pill__input{
  flex: 0 1 auto;
}

.input-pill select.input-pill__input{
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--textMuted) 50%),
    linear-gradient(135deg, var(--textMuted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.input-pill__input[type="range"]{
  height: 22px;
  appearance: none;
  background: transparent;
}

.input-pill__input[type="range"]::-webkit-slider-runnable-track{
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.input-pill__input[type="range"]::-webkit-slider-thumb{
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f2c95c;
  border: 1px solid rgba(36, 28, 10, 0.9);
  margin-top: -5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.input-pill__input[type="range"]::-moz-range-track{
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.input-pill__input[type="range"]::-moz-range-thumb{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f2c95c;
  border: 1px solid rgba(36, 28, 10, 0.9);
}

.profile-note{
  margin: 0;
  font-size: 12px;
  color: var(--textMuted);
}

.profile-save{
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1f52d1, #1a46b3);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px){
  .profile-page{
    max-width: 720px;
    margin: 0 auto;
  }

  .profile-form{
    grid-template-columns: 1fr;
  }

  .profile-card{
    min-height: 220px;
  }

  .profile-card--personal{
    min-height: auto;
    align-content: start;
  }

  .profile-card--personal .input-pill{
    min-height: 82px;
  }
}

.profile{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  z-index: 10;
}

.profile.is-open{
  display: flex;
}

.profile__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(6px);
}

.profile__panel{
  position: relative;
  width: min(92vw, 380px);
  background: linear-gradient(180deg, #121824, #0e131a);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.profile__close{
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.profile__title{
  margin: 0;
  text-align: center;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 20px;
}

.profile__section{
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px;
  background: rgba(8, 12, 18, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile__section-title{
  margin: 0;
  font-size: 12px;
  color: var(--tealSoft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile__preview{
  width: 100%;
  display: grid;
  place-items: center;
}

.profile__preview img{ border: 0; }

.profile__hint{
  font-size: 12px;
  color: var(--textMuted);
  text-align: center;
}

.ghost-btn{
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.35);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.ghost-btn--danger{
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

.monitor-page .ghost-btn.monitor-icon-btn{
  display: flex !important;
  width: 100%;
  height: auto !important;
  min-height: 144px !important;
  padding: 18px 12px !important;
  border-radius: 16px !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.monitor-page .ghost-btn.monitor-icon-btn svg{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.monitor-page .ghost-btn.monitor-icon-btn span{
  display: block;
  line-height: 1.25;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.monitor-page .monitor-hero__actions{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.monitor-page .monitor-day-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.monitor-page .monitor-day-action-card{
  width: 100%;
  min-height: 92px;
}

@media (min-width: 1024px){
  .admin-page.monitor-page{
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }

  .monitor-page{
    padding-left: 24px;
    padding-right: 24px;
  }

  .monitor-page .monitor-day-action-card.monitor-user-search--inline{
    max-width: 720px;
  }

  .monitor-day-row{
    padding: 16px 18px;
  }

  .monitor-exercise-strip{
    width: 164px;
    min-width: 164px;
    max-width: 164px;
  }

  .monitor-day-row__upload-btn--wide,
  .monitor-day-row__thumb--large{
    width: 136px;
    min-height: 136px;
    height: 136px;
  }
}

@media (max-width: 760px){
  .monitor-page .ghost-btn.monitor-icon-btn{
    min-height: 136px !important;
    padding: 16px 10px !important;
    font-size: 12px;
  }
}

.upload{
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.8);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.upload__label{
  pointer-events: none;
}

.upload__input{
  display: none;
}

@media (max-width: 640px){
  .monitor-manual-grid{
    grid-template-columns: 1fr;
  }

  .admin-user summary{
    padding: 12px;
  }
  .admin-user__summary{
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }
  .admin-user__info{
    gap: 4px;
  }
  .admin-user__info strong{
    font-size: 15px;
    line-height: 1.2;
  }
  .admin-user__info span{
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .admin-user__online{
    display: none;
  }
  .admin-user__badge{
    grid-column: 2 / 4;
    justify-self: start;
    margin-left: 0;
  }
  .admin-user__body{
    padding: 0 12px 12px;
  }
  .admin-user__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .admin-user__actions .form__submit,
  .admin-user__actions .ghost-btn{
    width: 100%;
  }
  .profile{
    padding: 20px;
  }
}

@media (min-width: 768px){
  .profile__panel{
    width: min(88vw, 720px);
    padding: 28px 32px;
    max-height: calc(100dvh - 140px);
  }

  .profile__section{
    padding: 16px 18px;
  }

  .profile__preview img{
    width: 140px;
    height: 140px;
  }

  .login__panel{
    width: min(88vw, 420px);
    padding: 32px;
  }
}

@media (min-width: 1024px){
  .profile__panel{
    width: min(70vw, 820px);
  }
}

.splash{
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(45, 107, 255, 0.16), transparent 60%),
    radial-gradient(800px 500px at 110% 20%, rgba(111, 160, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
}

.splash__wrap{
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.splash__logo{
  width: min(70vw, 260px);
  height: auto;
  display: block;
}

.landing-page{
  height: 100dvh;
  min-height: 100dvh;
  padding: 10px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  justify-content: space-between;
  position: relative;
}

.landing-page::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(45, 107, 255, 0.18), transparent 62%),
    radial-gradient(900px 700px at 110% 15%, rgba(111, 160, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #0b0f10 0%, #0b0f10 100%);
  filter: none;
  opacity: 1;
  z-index: 0;
  animation: none;
}

.landing-page::after{
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  filter: none;
  opacity: 0;
  z-index: 0;
  animation: none;
}

@keyframes hazeShift{
  0% { transform: translate3d(-3%, -2%, 0) scale(1.04); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.14); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.04); }
}

@keyframes hazeDrift{
  0% { transform: translate3d(4%, -3%, 0) scale(1.08); }
  50% { transform: translate3d(-4%, 3%, 0) scale(1.16); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.landing-logo{
  width: auto;
  max-width: min(70vw, 320px);
  max-height: 22vh;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.landing-center{
  gap: 6px;
}

.landing-center{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(12px + var(--safeTop));
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.landing-beta{
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-top: -2px;
}

.lock-badge{
  align-self: center;
  justify-self: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 999px;
}

.lock-icon{
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(66, 122, 255, 0.14);
  display: grid;
  place-items: center;
  color: #b4ccff;
  border: 1px solid rgba(66, 122, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 18px rgba(66, 122, 255, 0.35);
}

.lock-icon svg{
  width: 36px;
  height: 36px;
}

.lock-center{
  min-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.live-toast{
  position: fixed;
  right: 18px;
  bottom: 90px;
  background: rgba(15, 20, 24, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 50;
  display: grid;
  gap: 4px;
  min-width: 220px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.live-toast[hidden]{
  display: none !important;
}

.live-toast__title{
  font-size: 11px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.live-toast__body{
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.live-toast.is-hide{
  opacity: 0;
  transform: translateY(8px);
}

.invite-page{
  display: grid;
  place-items: center;
  padding: 24px;
}

.invite-card{
  width: min(420px, 100%);
  background: rgba(15, 20, 24, 0.92);
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.invite-card h1{
  margin: 0;
  font-size: 18px;
}

.invite-card__copy{
  margin: -4px 0 2px;
  color: var(--textMuted);
  font-size: 13px;
  line-height: 1.45;
}

.invite-card__cta-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.invite-link{
  display: grid;
  gap: 6px;
  text-align: left;
}

.invite-link span{
  font-size: 11px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.invite-link input{
  background: rgba(8, 12, 16, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
}

.landing-cta{
  margin-top: 0;
  padding-bottom: calc(8px + var(--safeBottom));
  position: relative;
  z-index: 1;
}

@media (max-width: 640px){
  .landing-page{
    gap: 8px;
  }

  .landing-logo{
    width: min(76vw, 300px);
  }

  .news-card__content{
    gap: 2px;
  }
}

.art{
  margin: 0;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32vh;
}

.art img{
  width: min(82vw, 320px);
  max-height: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.gallery__text{
  text-align: center;
  min-height: 96px;
  margin-top: -8px;
  margin-bottom: 12px;
}

.headline{
  margin: 0;
  text-align: center;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: clamp(26px, 7.5vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.copy{
  margin: 8px 0 0;
  max-width: 280px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--textMuted);
}

.pager{
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot{
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.dot.is-active{
  background: var(--teal);
}

.dot:focus-visible{
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

.cta{
  margin-top: auto;
  width: 100%;
  height: 60px;
  min-height: 60px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #0c1112, #090d0e);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.12s ease, filter 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover{
  background: linear-gradient(180deg, #0f2a2a, #0b1f20);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(45, 107, 255, 0.35);
}

.cta:active{
  transform: translateY(1px) scale(0.99);
  background: linear-gradient(180deg, #0c1e1e, #0a1516);
}

@media (max-width: 640px){
  .profile-page .push-widget__actions{
    grid-template-columns:1fr;
  }

  .push-widget__actions{
    grid-template-columns: 1fr;
  }

  .profile-page{
    max-width: 100%;
    padding: 118px 18px 110px;
  }

  .wrap{
    padding: 0;
  }

  .device{
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding:
      calc(18px + var(--safeTop))
      calc(20px + var(--safeRight))
      calc(18px + var(--safeBottom))
      calc(20px + var(--safeLeft));
  }

  .art img{
    width: min(84vw, 300px);
  }

  .cta{
    height: 60px;
    min-height: 60px;
    margin-bottom: calc(10px + var(--safeBottom));
  }
}

.is-locked{
  overflow: hidden;
}

.login{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.login.is-open{
  display: flex;
}

.login__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(6px);
}

.login__panel{
  position: relative;
  width: min(92vw, 380px);
  background: linear-gradient(180deg, #121824, #0e131a);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 85vh;
  overflow: auto;
}

.login__close{
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.login__logo{
  width: min(54vw, 180px);
  height: auto;
  margin: 0 auto;
  display: block;
}

.login__title{
  margin: 0;
  text-align: center;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 22px;
}

.login__subtitle{
  margin: 0;
  text-align: center;
  color: var(--textMuted);
  font-size: 13px;
}

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

.form[hidden]{
  display: none !important;
}

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

.field--check{
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.field__check{
  width: 18px;
  height: 18px;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--teal);
  cursor: pointer;
  flex: 0 0 18px;
}

.field__text{
  font-size: 13px;
  color: var(--textMuted);
}

.field__label{
  font-size: 12px;
  color: var(--textMuted);
}

.field__input{
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.8);
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
}

.field__input:focus{
  outline: none;
  border-color: rgba(122, 167, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(43, 107, 255, 0.2);
}

.field__password{
  position: relative;
}

.field__password .field__input{
  padding-right: 86px;
}

.field__toggle{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--textMuted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.form__submit{
  margin-top: 6px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #0b0f14, #070a0e);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.form__link{
  margin: 4px auto 0;
  background: none;
  border: 0;
  color: var(--textMuted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.logout{
  margin-top: 6px;
}

.logout__btn{
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.form__error,
.form__success{
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
}

.form__error{
  background: rgba(225, 29, 72, 0.18);
  color: #fecdd3;
}

.form__success{
  background: rgba(16, 185, 129, 0.18);
  color: #bbf7d0;
}

@media (max-width: 640px){
  .login{
    padding: 24px;
  }

  .login__panel{
    width: min(92vw, 380px);
    border-radius: 28px;
    margin: 0;
    padding:
      24px
      calc(20px + var(--safeRight))
      calc(24px + var(--safeBottom))
      calc(20px + var(--safeLeft));
  }
}

@media (min-width: 900px){
  .device{
    min-height: 720px;
  }
}
.procedure-result__actions{
  display: flex;
  justify-content: flex-end;
}
