


body.nx-auth { background: #F7F5F3; }

.nx-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: #F7F5F3;
}
.nx-login__box {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid #EAE6E2;
  border-radius: 16px; padding: 34px 30px 26px;
  box-shadow: 0 8px 32px rgba(28,26,25,.06); display: flex; flex-direction: column;
}
.nx-login__mark { width: 52px; height: 52px; border-radius: 12px; display: block; margin-bottom: 14px; }
.nx-login__brand { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #1C1A19; }
.nx-login__brand em { font-style: normal; color: #E8481F; }
.nx-login__sub { font-size: 12px; color: #857E7A; margin: 4px 0 24px; letter-spacing: .04em; }
.nx-login__label { font-size: 12px; color: #55504D; margin-bottom: 6px; font-weight: 600; }
.nx-login__input {
  height: 44px; border: 1px solid #E0DBD7; border-radius: 9px; padding: 0 13px;
  font-size: 14px; margin-bottom: 15px; background: #FCFBFA; color: #1C1A19;
  font-family: inherit; width: 100%;
}
.nx-login__input:focus { outline: none; border-color: #E8481F; background: #fff; }
.nx-login__btn {
  height: 46px; border: 0; border-radius: 9px; background: #E8481F; color: #fff;
  font-size: 14.5px; font-weight: 700; cursor: pointer; margin-top: 6px;
  font-family: inherit; width: 100%;
}
.nx-login__btn:hover { background: #D13D16; }
.nx-login__btn:disabled { background: #C9C2BD; cursor: default; }
.nx-login__err { font-size: 12.5px; color: #DC2626; min-height: 18px; line-height: 1.4; }
.nx-login__note { font-size: 11px; color: #A79F9A; text-align: center; margin-top: 14px; line-height: 1.5; }


.nx-splash {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: #857E7A; font-size: 13.5px; padding: 24px;
  text-align: center;
}
.nx-splash__dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid #EFE9E5; border-top-color: #E8481F;
  animation: nx-spin .7s linear infinite;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }


.nx-live { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nx-live__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #C9C2BD; flex: none;
}
.nx-live.is-on .nx-live__dot { background: #22C55E; animation: nx-pulse 2s ease-in-out infinite; }
.nx-live.is-loading .nx-live__dot { background: #E8481F; animation: nx-pulse .6s linear infinite; }
@keyframes nx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }


.nx-empty {
  padding: 34px 20px; text-align: center; color: #857E7A; font-size: 13px; line-height: 1.65;
}
.nx-empty b { display: block; color: #55504D; font-size: 14px; margin-bottom: 5px; font-weight: 700; }
.nx-empty code {
  background: #F4F1EF; border: 1px solid #EAE6E2; border-radius: 5px;
  padding: 1px 6px; font-size: 12px; color: #55504D;
}


.calg {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
  max-height: 620px; overflow-y: auto;
  border-top: 1px solid var(--line-soft);
}
.calg--day { grid-template-columns: 56px minmax(0, 1fr); }

.calg__time {
  min-height: 62px; font-size: 11px; color: var(--ink-30);
  text-align: right; padding: 6px 8px 0 0;
  border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line);
  background: var(--surface);
}

.calg__time .calg__cap {
  display: inline-block; margin-top: 3px; padding: 1px 5px;
  border-radius: 999px; font-size: 9.5px; font-weight: 700; line-height: 1.5;
  color: #9A928C; background: #F1EEEC; white-space: nowrap;
}
.calg__time .calg__cap.is-over { color: #fff; background: #E8481F; }
.calg__cell {
  min-height: 62px; padding: 4px;
  display: flex; flex-direction: column; gap: 3px;
  border-bottom: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft);
  min-width: 0;
}
.calg__cell.is-today { background: #FFFBFA; }
.calg__cell.is-blocked {
  background: repeating-linear-gradient(135deg, #F7F5F4, #F7F5F4 5px, #EFEDEB 5px, #EFEDEB 10px);
}

.calg .ev {
  font-size: 11px; line-height: 1.4; padding: 4px 6px;
  border-radius: 5px; border-left-width: 3px; min-width: 0;
}
.calg .ev b {
  display: block; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.calg .ev span {
  display: block; opacity: .75; font-size: 10.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.calg .ev__kind {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 14px; height: 14px; padding: 0 3px; border-radius: 3px; margin-right: 4px;
  font-size: 9px; font-weight: 800; font-style: normal; vertical-align: 1px;
  line-height: 1;   
}

.ev__kind { line-height: 1; }
.ev__kind--new { background: #E8481F; color: #fff; padding: 0 3px; letter-spacing: .2px; }
.ev__kind--old { background: #DDD8D4; color: #6B625D; }
.calg .ev--new { box-shadow: inset 3px 0 0 -1px #E8481F; }


.calg__stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 4px; align-content: start; padding: 4px; min-height: 44px;
}
.calg__stack--new { background: #FFF8F5; }
.calg__stack .ev { font-size: 10.5px; }

.calg__stack--empty {
  display: flex; align-items: center; justify-content: center;
  color: #CFC7C2; font-size: 11px; font-weight: 700; cursor: pointer;
}
.calg__stack--empty:hover { color: var(--brand); background: #FFF8F5; }

.ev-more {
  font-size: 10.5px; color: var(--ink-50); background: var(--surface-2);
  border: 1px dashed var(--line); border-radius: 5px; padding: 3px 6px;
  cursor: pointer; font-family: inherit; text-align: center;
}
.ev-more:hover { background: #F0EDEB; color: var(--ink); }

@media (max-width: 1280px) {
  .calg .ev span { display: none; }        
  .calg__cell { min-height: 54px; }
  .calg__time { min-height: 54px; }
}


.nx-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
  z-index: 400; max-width: min(92vw, 460px);
  background: #2A2523; color: #F5F1EE; border-radius: 10px;
  padding: 11px 16px; font-size: 13px; line-height: 1.45; text-align: center;
  box-shadow: 0 8px 28px rgba(28,26,25,.28);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.nx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
  .nx-toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
}


.nx-sheet-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid #F0EEEC;
}
.nx-sheet-row:last-child { border-bottom: 0; }
.nx-sheet-row__name { font-weight: 600; font-size: 13.5px; flex: 1; min-width: 0; }
.nx-dot-ok  { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex: none; }
.nx-dot-off { width: 8px; height: 8px; border-radius: 50%; background: #D8D2CE; flex: none; }


.nx-login__logo { display: block; width: 220px; max-width: 80%; height: auto; margin: 0 0 12px; }
