/* ============ TIME VIEW ============ */
.time-now {
  background: var(--carbon);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.time-now.active {
  border-color: #3a181c;
}

.bigclock {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.time-now.active .bigclock {
  color: var(--red);
}

.time-now .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.time-now .tk {
  font-weight: 600;
  font-size: 14px;
  margin-top: 2px;
}

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

.tbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tbar .nm {
  width: 150px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.tbar .track {
  flex: 1;
  height: 22px;
  background: var(--carbon);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.tbar .track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  opacity: 0.85;
}

.tbar .amt {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  width: 60px;
  text-align: right;
  flex: none;
}

/* ============ LEAVE ============ */
.leave-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .leave-grid {
    grid-template-columns: 1fr;
  }
}

.cal {
  background: var(--carbon);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-head h3 {
  font-size: 15px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-grid .dow {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faint);
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.08em;
}

.cell {
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  position: relative;
  background: var(--ink);
}

.cell.out {
  opacity: 0.3;
}

.cell.today {
  border-color: var(--red);
  color: var(--bone);
}

.cell .marks {
  position: absolute;
  bottom: 4px;
  left: 5px;
  right: 5px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.cell .marks i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.8;
}

.leave-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.lt-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex: none;
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.member {
  background: var(--carbon);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: 0.12s;
  cursor: pointer;
}

.member:hover {
  border-color: var(--line);
}

.member .mi {
  flex: 1;
  min-width: 0;
}

.member .mn {
  font-weight: 600;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member .mr {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 2px;
}

.member .mx {
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transition: 0.12s;
}

.member:hover .mx {
  opacity: 1;
}

/* ============ SUMMARY / STAND-UP ============ */
.summary-out {
  background: var(--carbon);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--bone);
  min-height: 200px;
  word-break: break-word;
}

.summary-out .h {
  color: var(--red);
  font-weight: 700;
}

.summary-out .dim {
  color: var(--faint);
}

/* ============ HISTORY ============ */
.hist-day {
  margin-bottom: 22px;
}

.hist-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hist-date .dn {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.hist-date .dd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.hist-date .line {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.hist-date .ct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--carbon);
  border: 1px solid var(--line-soft);
  padding: 2px 8px;
  border-radius: 20px;
}

.hist-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--carbon);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: 0.12s;
}

.hist-row:hover {
  border-color: var(--line);
}

.hist-row .ht {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-row .st-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.hist-row.todo .st-dot { background: var(--faint); }
.hist-row.inprogress .st-dot { background: var(--red); }
.hist-row.review .st-dot { background: #ff6b78; }
.hist-row.done .st-dot { background: var(--ok); }

/* ============ LOGIN ============ */
.login-scrim {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, #0a1a2e, var(--ink) 65%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-login);
  padding: 20px;
}

.login-wrap {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 860px;
}

.login-left {
  flex: 1;
  padding: 20px 0;
}

.login-feats {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

@media (max-width: 680px) {
  .login-left { display: none; }
  .login-wrap { justify-content: center; }
}

.login-scrim.open {
  display: flex;
}

.login-card {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  margin-bottom: 22px;
}

.login-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-glow);
}

.login-brand small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--faint);
  font-weight: 400;
}

.login-card h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.login-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
  line-height: 1.5;
}

.login-card .fg {
  margin-bottom: 14px;
}

.login-card .fg label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 6px;
  display: block;
}

.login-card .fg input,
.login-card .fg select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 11px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
}
.login-card .fg input:focus {
  outline: none;
  border-color: var(--red);
}

.login-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
}

.app.locked {
  filter: blur(6px) brightness(0.5);
  pointer-events: none;
}
