:root {
  --blue: #2563eb;
  --blue2: #3b82f6;
  --ink: #101828;
  --muted: #667085;
  --line: #e6eaf0;
  --bg: #f6f8fb;
  --card: #fff;
  --green: #16a34a;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 18px;
  --shadow: 0 10px 35px rgba(16, 24, 40, 0.06);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
.hidden {
  display: none !important;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: linear-gradient(145deg, #f8fbff, #eef5ff);
}
.login-card {
  width: min(420px, 100%);
  margin: auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #e7edf7;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.12);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
}
.brand b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.brand span {
  display: block;
  color: #98a2b3;
  font-size: 11px;
  margin-top: 2px;
}
.logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}
.admin-portal {
  width: max-content;
  margin: 12px auto -18px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.login-copy {
  margin: 42px 0 28px;
  text-align: center;
}
.login-card > .brand {
  justify-content: center;
}
.login-copy h1 {
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 0 0 14px;
}
.login-copy h1 span {
  color: var(--blue);
}
.login-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 340px;
}
.login-card form {
  display: grid;
  gap: 15px;
}
label {
  font-size: 12px;
  font-weight: 700;
  color: #344054;
  text-align: left;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 13px;
  margin-top: 7px;
  outline: none;
  color: var(--ink);
}
input:focus,
textarea:focus,
select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.primary {
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 750;
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.18);
}
.primary:hover {
  background: #1d4ed8;
}
.full {
  width: 100%;
}
.google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 18px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}
.google-login:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.google-mark {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.google-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-note {
  margin: 12px 0 0;
  text-align: center;
  color: #98a2b3;
  font-size: 11px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0;
  color: #98a2b3;
  font-size: 11px;
}
.login-divider:before,
.login-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e7edf4;
}
.email-login-toggle {
  padding: 12px 18px;
  border: 2px solid var(--blue);
  border-radius: 12px;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 750;
}
.email-login-toggle:hover {
  background: #eff6ff;
}
.password-login {
  margin-top: 14px;
  padding: 2px 0;
}
.mobile-bottom-nav {
  display: none;
}
.sidebar {
  width: 245px;
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 22px 15px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  padding: 0 8px 25px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-btn {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 11px;
  background: transparent;
  color: #667085;
  text-align: left;
  font-weight: 650;
  font-size: 13px;
}
.nav-btn:hover {
  background: #f5f7fa;
  color: var(--ink);
}
.nav-btn.active {
  background: #eff6ff;
  color: var(--blue);
}
.nav-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: none;
}
.sidebar-bottom {
  margin-top: auto;
}
.profile-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 7px 15px;
}
.profile-mini b {
  font-size: 12px;
  display: block;
}
.profile-mini span {
  font-size: 10px;
  color: #98a2b3;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0eaff, #c7d8ff);
  display: grid;
  place-items: center;
  font-size: 21px;
  line-height: 1;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 5px 12px rgba(37, 99, 235, 0.12);
}
.ghost {
  background: #f5f7fa;
  color: #475467;
  padding: 10px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 12px;
}
.main {
  margin-left: 245px;
  min-height: 100vh;
}
.topbar {
  height: 88px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #98a2b3;
  font-weight: 800;
}
.topbar h2 {
  margin: 3px 0 0;
  font-size: 23px;
  letter-spacing: -0.6px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.date-pill {
  font-size: 12px;
  color: #667085;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 10px;
}
.mobile-menu {
  display: none;
  background: #f5f7fa;
  border-radius: 10px;
  padding: 8px 10px;
}
.main > #content {
  padding: 30px 34px 50px;
  max-width: 1450px;
}
.grid {
  display: grid;
  gap: 18px;
}
.stats {
  grid-template-columns: repeat(5, 1fr);
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat .icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.stat b {
  font-size: 25px;
  letter-spacing: -1px;
  display: block;
}
.stat span {
  font-size: 11px;
  color: #98a2b3;
}
.layout-2 {
  grid-template-columns: 1.6fr 1fr;
  margin-top: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.card-head h3 {
  font-size: 14px;
  margin: 0;
}
.card-head span {
  font-size: 11px;
  color: var(--blue);
  font-weight: 750;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table th {
  text-align: left;
  color: #98a2b3;
  font-weight: 650;
  font-size: 10px;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f2f5;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.working {
  background: #eff6ff;
  color: #2563eb;
}
.status.late {
  background: #fff7ed;
  color: #ea580c;
}
.status.absent {
  background: #fef2f2;
  color: #dc2626;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.section-title {
  margin: 0 0 6px;
  font-size: 20px;
}
.section-sub {
  margin: 0 0 20px;
  color: #98a2b3;
  font-size: 12px;
}
.attendance-hero {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border: 1px solid #dff4e5;
  border-radius: 22px;
  padding: 25px;
  margin-bottom: 18px;
}
.attendance-hero .label {
  font-size: 11px;
  color: #667085;
}
.attendance-state {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.working-time {
  font-size: 42px;
  font-weight: 850;
  letter-spacing: -2px;
  margin: 8px 0;
}
.working-time small {
  font-size: 11px;
  color: #98a2b3;
  font-weight: 600;
  letter-spacing: 0;
}
.start-btn,
.end-btn {
  padding: 14px 25px;
  border-radius: 13px;
  font-weight: 850;
  min-width: 150px;
}
.start-btn {
  background: var(--blue);
  color: #fff;
}
.end-btn {
  background: #ef4444;
  color: #fff;
}
.session-list {
  display: grid;
  gap: 8px;
}
.session {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 11px;
}
.session b {
  font-size: 12px;
}
.notice-list,
.task-list {
  display: grid;
  gap: 12px;
}
.notice,
.task {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px;
  background: #fff;
}
.notice-top,
.task-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.notice h4,
.task h4 {
  margin: 0;
  font-size: 13px;
}
.notice p,
.task p {
  font-size: 11px;
  line-height: 1.6;
  color: #667085;
  margin: 7px 0 0;
}
.tag {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  background: #f2f4f7;
  color: #667085;
}
.tag.important {
  background: #fff1f2;
  color: #e11d48;
}
.tag.high {
  background: #fff7ed;
  color: #ea580c;
}
.tag.medium {
  background: #fffbeb;
  color: #b45309;
}
.tag.low {
  background: #eff6ff;
  color: #2563eb;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.toolbar .filters {
  display: flex;
  gap: 7px;
}
.filter {
  padding: 8px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  color: #667085;
}
.filter.active {
  background: #eff6ff;
  border-color: #dbeafe;
  color: var(--blue);
  font-weight: 750;
}
.btn-small {
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  font-size: 11px;
}
.btn-danger {
  background: #fff1f2;
  color: #dc2626;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.35);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 20px;
}
.modal-box {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.2);
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: #f2f4f7;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
}
.modal-box h3 {
  margin: 0 0 18px;
}
.empty {
  padding: 35px;
  text-align: center;
  color: #98a2b3;
  font-size: 12px;
}
.bar-chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 13px;
  padding: 15px 5px 0;
}
.bar {
  flex: 1;
  background: #dbeafe;
  border-radius: 7px 7px 2px 2px;
  min-height: 20px;
  position: relative;
}
.bar b {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #98a2b3;
}
.activity {
  display: grid;
  gap: 13px;
}
.activity-row {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #667085;
}
.dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  margin-top: 4px;
  flex: none;
}
.muted {
  color: #98a2b3;
}
#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #101828;
  color: #fff;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .layout-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  body {
    background: #f7f8fa;
  }
  .sidebar {
    width: min(88vw, 360px);
    padding: 24px 20px;
    transform: translateX(-100%);
    transition: 0.2s;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar .brand {
    padding: 0 8px 28px;
  }
  .sidebar nav {
    gap: 8px;
  }
  .nav-btn {
    min-height: 52px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 15px;
    gap: 16px;
  }
  .nav-icon {
    width: 22px;
    height: 22px;
  }
  .profile-mini {
    padding: 14px 6px 18px;
  }
  .profile-mini b {
    font-size: 15px;
  }
  .profile-mini span {
    font-size: 12px;
  }
  .avatar {
    width: 52px;
    height: 52px;
    font-size: 29px;
  }
  .ghost {
    padding: 14px;
    font-size: 14px;
    border-radius: 14px;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 70px;
    padding: 0 20px;
    background: transparent;
    border: 0;
  }
  .mobile-menu {
    display: none;
  }
  .topbar h2 {
    font-size: 20px;
  }
  .topbar > div:first-of-type {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .top-actions .date-pill {
    display: none;
  }
  .main > #content {
    padding: 10px 16px 104px;
  }
  .mobile-bottom-nav {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #edf0f4;
    z-index: 30;
    backdrop-filter: blur(14px);
  }
  .mobile-nav-btn {
    min-width: 0;
    flex: 1;
    height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border-radius: 14px;
    background: transparent;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
  }
  .mobile-nav-btn.active {
    color: var(--blue);
    background: #eff6ff;
  }
  .mobile-nav-btn svg {
    stroke-width: 2.2;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    padding: 16px;
    border-radius: 20px;
    box-shadow: none;
  }
  .stat b {
    font-size: 21px;
  }
  .stat .icon {
    margin-bottom: 11px;
  }
  .card {
    padding: 18px;
    border-radius: 20px;
    box-shadow: none;
  }
  .attendance-hero {
    padding: 20px;
    border-radius: 20px;
  }
  .section-title {
    font-size: 21px;
  }
  .section-sub {
    line-height: 1.55;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .attendance-state {
    align-items: stretch;
    flex-direction: column;
  }
  .start-btn,
  .end-btn {
    width: 100%;
    min-height: 52px;
  }
  .toolbar {
    align-items: flex-start;
  }
  .login-shell {
    padding: 20px 16px;
  }
  .login-card {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .login-copy {
    margin: 32px 0 25px;
  }
  .login-copy h1 {
    font-size: 32px;
    letter-spacing: -1.6px;
  }
  #toast {
    bottom: 96px;
    left: 16px;
    right: 16px;
    text-align: center;
  }
}

/* Admin session inspector */
.ranking-member-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1d2939;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.ranking-member-link:hover { color: #2563eb; text-decoration: underline; }
.admin-session-drawer { max-width: 640px; }
.admin-session-drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-right: 34px; }
.admin-session-drawer-head p { margin: 0 0 4px; color: #667085; font-size: 13px; font-weight: 700; }
.admin-session-drawer-head h3 { margin: 0 0 18px; }
.admin-session-date { display: grid; gap: 7px; color: #475467; font-size: 13px; font-weight: 800; }
.admin-session-date input { width: 100%; }
.admin-session-controls { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-session-controls .btn-small { white-space: nowrap; }
.admin-session-list { display: grid; gap: 10px; margin-top: 18px; }
.admin-session-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 15px; border: 1px solid #e4eaf2; border-radius: 14px; background: #f8fafc; }
.admin-session-row div { display: grid; gap: 4px; }
.admin-session-row span { color: #667085; font-size: 12px; font-weight: 700; }
.admin-session-row b { color: #1d2939; }
.admin-session-note { margin: 16px 0 0; font-size: 12px; }
.duplicate-session-note { margin: 14px 0 -2px; padding: 10px 12px; border-radius: 10px; background: #fff8e8; color: #9a6700; font-size: 12px; font-weight: 700; line-height: 1.45; }
.admin-session-edit-actions { display: flex; justify-content: space-between; gap: 10px; }
.admin-session-edit-actions .primary { margin-left: auto; }
.admin-attendance-date { display: grid; gap: 6px; min-width: 180px; color: #475467; font-size: 12px; font-weight: 800; }
.admin-attendance-date input { min-height: 40px; }
.today-fine-card { margin-top: 20px; }
.today-fine-card .card-head p, .fine-summary-table .card-head p { margin: 4px 0 0; color: #98a2b3; font-size: 12px; font-weight: 600; }
.fine-detail-row small { color: #667085; font-weight: 700; }
.fine-drawer-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.late-ranking-row { background: rgba(248, 250, 252, .7); }
.late-ranking-time { opacity: .5; }
.late-ranking-note { display: block; margin-top: 3px; color: #d64752; font-size: 10px; font-weight: 800; }
.late-rank-number { color: #98a2b3; background: #f1f3f6; }
.fine-history-tabs { display: flex; gap: 8px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #e7ecf2; }
.fine-history-tabs button { border: 1px solid #dbe4ef; border-radius: 10px; padding: 8px 12px; background: #fff; color: #607089; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.fine-history-tabs button.active { border-color: #2f6fed; background: #edf4ff; color: #1d5fd1; }
.fine-history-tabs span { margin-left: 4px; font-size: 12px; font-weight: 800; }
@media (max-width: 760px) {
  .admin-attendance-date { width: 100%; }
  .fine-drawer-actions { justify-content: start; }
  .fine-history-tabs { flex-wrap: wrap; }
}
.session-back { margin-bottom: 18px; }
.low-hours-alert { text-align: center; padding: 8px 4px; }
.low-hours-alert > span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff7e6; color: #b54708; font-size: 26px; font-weight: 900; }
.low-hours-alert h3 { margin: 14px 0 8px; }
.low-hours-alert p { margin: 0 0 20px; color: #475467; line-height: 1.65; }
.low-hours-alert.is-restricted > span { background: #fff1f2; color: #dc2626; }
@media (min-width: 761px) { .modal-box:has(.admin-session-drawer) { width: min(640px, 100%); } }
@media (max-width: 760px) {
  .admin-session-row { align-items: flex-start; }
  .admin-session-row b { font-size: 13px; }
}

/* Admin Office Clean management */
.office-clean-admin-card, .office-clean-fines-card { overflow: hidden; }
.office-clean-toolbar { margin-bottom: 18px; }
.office-clean-admin-card .card-head, .office-clean-fines-card .card-head { align-items: flex-start; }
.office-clean-admin-card .card-head p, .office-clean-fines-card .card-head p { margin: 4px 0 0; color: #7a8699; font-size: 13px; }
.office-clean-table td:first-child { min-width: 130px; }
.office-clean-table td:nth-child(2) { min-width: 118px; }
.office-clean-actions { display: flex; gap: 8px; justify-content: flex-end; }
.office-clean-actions .filter, .office-clean-actions .btn-small { min-height: 36px; padding: 7px 11px; white-space: nowrap; }
.clean-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.clean-status.pending { color: #9a6712; background: #fff4da; }
.clean-status.done { color: #267548; background: #eaf9ef; }
.clean-done { background: #fbfffc; }
.fine-pending { color: #c94a45; font-weight: 800; }
.office-clean-editor form { display: grid; gap: 14px; margin-top: 18px; }
.office-clean-editor label { display: grid; gap: 7px; color: #526176; font-weight: 700; font-size: 13px; }
.office-clean-editor input, .office-clean-editor select { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #d8e0ea; border-radius: 10px; background: #fff; color: #182235; font: inherit; }
.office-clean-editor .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.office-status.is-closed i { background: #df383b !important; }
@media (max-width: 760px) {
  .office-clean-toolbar { margin-bottom: 12px; }
  .office-clean-admin-card, .office-clean-fines-card { border-radius: 20px; }
  .office-clean-admin-card .card-head, .office-clean-fines-card .card-head { padding: 17px 16px; }
  .office-clean-table th, .office-clean-table td, .office-clean-fines-table th, .office-clean-fines-table td { padding: 13px 14px; }
  .office-clean-actions { justify-content: flex-start; }
}

/* Profile download chooser */
.download-popup { display: grid; gap: 10px; }
.download-popup h3 { margin-bottom: 4px; }
.download-popup .muted { margin: 0 0 4px; }
.download-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #e2e8f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f7faff);
  color: #172033;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.download-option:hover { transform: translateY(-1px); border-color: #b9d4ff; box-shadow: 0 8px 18px rgba(37, 99, 235, .09); }
.download-option > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eaf2ff; color: #1769e8; font-size: 20px; font-weight: 800; }
.download-option div { display: grid; gap: 2px; flex: 1; }
.download-option small { color: #758198; font-size: 12px; }
.download-option i { color: #1769e8; font-size: 22px; font-style: normal; }
@media (max-width: 430px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .working-time {
    font-size: 35px;
  }
}
.team-ranking-card {
  margin-top: 18px;
}
.team-ranking-card .card-head {
  align-items: flex-start;
}
.team-ranking-card .card-head p {
  margin: 4px 0 0;
  color: #98a2b3;
  font-size: 11px;
}
.rank-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  font-size: 10px;
  font-weight: 850;
}
.rank-number.rank-1 {
  background: #fef3c7;
  color: #a16207;
}
.rank-number.rank-2 {
  background: #eef2f6;
  color: #475467;
}
.rank-number.rank-3 {
  background: #ffedd5;
  color: #c2410c;
}
.mobile-team-ranking {
  display: none;
}
@media (max-width: 760px) {
  .mobile-team-ranking {
    display: block;
    margin-top: 0;
  }
  .desktop-team-ranking {
    display: none;
  }
}
.profile-trigger {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.profile-actions {
  display: grid;
  gap: 10px;
}
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.boot-card {
  width: min(420px, 90vw);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.boot-line {
  height: 16px;
  margin: 14px 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #edf1f6 25%, #f7f9fc 50%, #edf1f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite;
}
.boot-line.wide {
  width: 80%;
  height: 30px;
}
.boot-line.short {
  width: 45%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
body:not(.auth-ready) #loginView {
  visibility: hidden;
}
@media (max-width: 760px) {
  .topbar h2 {
    display: none;
  }
  .topbar .eyebrow {
    font-size: 20px;
    text-transform: none;
    letter-spacing: -0.6px;
    color: var(--ink);
    font-weight: 800;
  }
}

/* Mobile-first reference layout refinements */
.notification-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f3f6fa;
  display: grid;
  place-items: center;
  color: #101828;
}
.notification-bell {
  width: 24px;
  height: 24px;
}
.notification-badge {
  position: absolute;
  right: 1px;
  top: 0;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  line-height: 15px;
  font-weight: 800;
}
.home-intro {
  margin-bottom: 18px;
}
.home-intro > .section-sub:first-child {
  margin-bottom: 7px;
  color: #667085;
  font-size: 14px;
}
.home-intro .section-title {
  font-size: 29px;
  letter-spacing: -1.25px;
}
.attendance-hero {
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 22px;
  padding: 24px;
  margin: 24px 0 0;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.05);
}
.office-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #667085;
  font-size: 14px;
}
.office-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.office-status i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
}
.office-status.is-closed i {
  background: #ef4444;
}
.attendance-state {
  padding-top: 37px;
}
.working-time {
  margin: 0 0 5px;
}
.start-btn,
.end-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 25px;
  border-radius: 999px;
  font-size: 16px;
  min-width: 190px;
}
.start-btn {
  background: linear-gradient(180deg, #4e8bf8, #2563eb);
  box-shadow: 0 9px 18px rgba(37, 99, 235, 0.2);
}
.end-btn {
  background: #df383b;
}
.modal-box {
  max-height: min(700px, calc(100dvh - 40px));
  overflow: auto;
}
.notification-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-right: 30px;
}
.notification-modal-head h3 {
  margin-bottom: 5px;
}
.notification-modal-head p {
  font-size: 12px;
  margin: 0;
}
.notification-feed {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}
.notification-item {
  display: flex;
  gap: 12px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}
.notification-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  margin-top: 5px;
  flex: none;
}
.notification-item.important .notification-item-dot {
  background: #ef4444;
}
.notification-item b {
  font-size: 13px;
}
.notification-item p {
  font-size: 12px;
  line-height: 1.55;
  color: #667085;
  margin: 4px 0;
}
.notification-item time {
  font-size: 10px;
  color: #98a2b3;
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 20px;
  }
  .main > #content {
    padding: 10px 20px 104px;
  }
  .top-actions {
    gap: 10px;
  }
  .top-actions .avatar {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .notification-button {
    width: 42px;
    height: 42px;
  }
  .home-intro {
    padding-top: 3px;
  }
  .home-intro .section-title {
    font-size: 28px;
    line-height: 1.15;
  }
  .attendance-hero {
    padding: 22px 20px;
    border-radius: 20px;
  }
  .attendance-state {
    padding-top: 34px;
  }
  .working-time {
    font-size: 40px;
  }
  .start-btn,
  .end-btn {
    width: 100%;
    min-height: 60px;
  }
  .notification-modal-head {
    display: block;
  }
  .notification-modal-head .filter {
    margin-top: 10px;
  }
  .modal {
    padding: 16px;
  }
  .modal-box {
    padding: 20px;
  }
}

/* Reference-inspired UI layer: visual-only; no application behavior changes. */
:root {
  --ref-blue: #2f73ef;
  --ref-red: #dd393d;
  --ref-bg: #f3f5f7;
  --ref-line: #dde2e8;
  --ref-text: #121417;
}
body { color: var(--ref-text); background: var(--ref-bg); }
.login-shell { background: #f4f6f8; }
.login-card {
  width: min(430px, 100%); padding: 30px 26px 24px; border: 0; border-radius: 24px;
  box-shadow: 0 20px 45px rgba(20, 30, 42, .09); background: rgba(255,255,255,.96);
}
.login-card > .brand { justify-content: flex-start; margin: 0 0 54px; padding-left: 24px; }
.login-card .brand b { font-size: 18px; color: #101114; }
.login-card .brand span { color: #6e7176; font-size: 14px; }
.login-card .logo { width: 58px; height: 58px; border-radius: 14px; box-shadow: none; }
.login-copy { margin: 0 0 48px; text-align: center; }
.login-copy h1 { margin-bottom: 15px; color: #111216; font-size: 37px; letter-spacing: -2px; }
.login-copy h1 span { color: var(--ref-blue); }
.login-copy p { max-width: 330px; color: #64676b; font-size: 15px; line-height: 1.35; }
.google-login { min-height: 60px; border: 0; border-radius: 999px; background: #050505; box-shadow: none; font-size: 15px; }
.google-login:hover { background: #151515; }
.login-note, .login-time { color: #777a7f; font-size: 13px; }
.main { background: var(--ref-bg); }
.topbar { height: 82px; background: var(--ref-bg); border: 0; box-shadow: none; }
.topbar h2 { color: #121417; font-size: 19px; }
.eyebrow { color: #73777d; font-size: 12px; text-transform: none; letter-spacing: 0; }
.date-pill { background: #fff; border-color: var(--ref-line); }
.notification-button { width: 54px; height: 54px; background: #eceff2; border: 0; box-shadow: none; }
.top-actions .avatar { width: 46px; height: 46px; background: #e9edf1; box-shadow: none; }
.main > #content { max-width: 1220px; }
.home-intro .section-title { color: #111216; font-size: 31px; letter-spacing: -1.55px; }
.home-intro .section-sub { color: #676b71; font-size: 15px; }
.attendance-hero { border: 0; border-radius: 20px; background: #fff; box-shadow: 0 10px 24px rgba(34, 44, 56, .035); }
.office-status-row { color: #65686d; font-weight: 500; }
.office-status { padding: 0; color: #65686d; background: transparent; font-weight: 500; font-size: 14px; }
.office-status i { width: 12px; height: 12px; background: #21bf73; }
.office-status.is-closed { color: #65686d; background: transparent; }
.working-time { color: #090a0c; font-size: 44px; font-weight: 850; letter-spacing: -2px; }
.attendance-state .muted { color: #6d7075; }
.start-btn, .end-btn { min-height: 64px; border-radius: 999px; font-size: 18px; box-shadow: none; }
.start-btn { background: linear-gradient(180deg, #4f8cff, #2164e9); }
.end-btn { background: var(--ref-red); }
.card { border: 1px solid var(--ref-line); border-radius: 18px; box-shadow: none; background: #fff; }
.card-head { border-bottom: 1px solid var(--ref-line); }
.card-head h3 { color: #181a1e; }
.card-head span { color: var(--ref-blue); }
.session { background: transparent; border-bottom: 1px solid var(--ref-line); }
.session:last-child { border-bottom: 0; }
.time-split > span { border-color: #e2e6eb; background: #f8fafc; }
.time-split > span:last-child { background: #fff8eb; }
.time-split > .overtime-time { background: #fff8eb; border-color: #fce5b1; }
.time-split > .total-time { background: #edf4ff; border-color: #dce9ff; }
.time-split .total-time { background: #edf4ff; border-color: #dce9ff; }
.today-ranking { border-top: 0; }
.table th { color: #70747a; font-weight: 600; }
.table td { border-color: #edf0f3; }
.mobile-bottom-nav { border: 0; box-shadow: 0 -8px 28px rgba(21,31,42,.07); }
.mobile-nav-btn { color: #15171a; font-weight: 650; }
.mobile-nav-btn.active { color: #fff; background: #050505; border-radius: 999px; }
.mobile-nav-btn.active svg { stroke: #fff; }

@media (max-width: 760px) {
  body { background: var(--ref-bg); }
  .topbar { height: 142px; padding: 26px 22px 0 104px; align-items: flex-start; }
  .header-identity { min-height: 58px; padding-top: 4px; }
  .header-identity:before { content: "🧑‍💻"; display: grid; place-items: center; left: -82px; top: 0; width: 60px; height: 60px; border-radius: 50%; background: #e8ecef; }
  .topbar .eyebrow { font-size: 15px; color: #70747a; text-transform: none; letter-spacing: 0; }
  .topbar .eyebrow:before { content: var(--time-greeting, "Good Morning 👋"); font-size: 15px; }
  .topbar h2 { display: block; margin-top: 3px; font-size: 20px; color: #111216; }
  .top-actions { margin-top: -1px; }
  .top-actions .avatar, .date-pill { display: none; }
  .notification-button { width: 60px; height: 60px; }
  .main > #content { padding: 14px 20px 112px; }
  .home-intro > .section-sub:first-child { display: none; }
  .home-intro .section-title { font-size: 30px; line-height: 1.16; margin: 0 0 8px; }
  .home-intro .section-sub { font-size: 16px; line-height: 1.35; }
  .attendance-hero { margin-top: 25px; padding: 24px; border-radius: 18px; }
  .office-status-row { font-size: 17px; }
  .office-status { font-size: 17px; }
  .attendance-state { padding-top: 42px; }
  .working-time { font-size: 42px; text-align: center; }
  .attendance-state .muted { text-align: center; font-size: 16px; }
  .attendance-actions { margin-top: 42px; }
  .attendance-actions .start-btn, .attendance-actions .end-btn { min-height: 66px; font-size: 20px; }
  .home-data { gap: 25px; margin-top: 25px; }
  .home-two-column { gap: 25px; }
  .card { border-radius: 17px; }
  .today-sessions.card, .today-ranking.card, .my-session-history.card { overflow: hidden; }
  .card-head { min-height: 52px; padding: 0 20px; }
  .card-head h3 { font-size: 16px; }
  .session-summary { padding: 13px 20px; }
  .session { padding: 14px 20px; }
  .duty-card { border-radius: 17px; }
  .mobile-bottom-nav { left: 16px; right: 16px; bottom: max(10px, env(safe-area-inset-bottom)); height: 69px; padding: 6px; border-radius: 38px; background: #fff; }
  .mobile-nav-btn { height: 56px; font-size: 10px; }
  .mobile-nav-btn.active { min-width: 82px; }
  .mobile-nav-btn.active span { color: #fff; }
  .login-shell { padding: 20px; }
  .login-card { padding: 28px 18px 24px; border-radius: 23px; }
  .login-card > .brand { margin: 0 0 55px; padding-left: 26px; }
  .login-copy { margin-bottom: 52px; }
  .login-copy h1 { font-size: 37px; }
}

.boot-screen {
  gap: 13px;
  text-align: center;
  background: linear-gradient(145deg, #f8fbff, #eef5ff);
  align-content: center;
}
.loading-mark {
  width: 66px;
  height: 66px;
  margin: 0 auto 4px;
  position: relative;
}
.loading-mark img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}
.loading-mark i {
  position: absolute;
  inset: -4px;
  border: 3px solid rgba(37, 99, 235, 0.16);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.boot-screen strong {
  font-size: 27px;
  letter-spacing: -1px;
  color: var(--blue);
}
.boot-screen p {
  margin: 0;
  color: #98a2b3;
  font-size: 13px;
}
.loading-dots {
  display: inline-block;
  width: 24px;
  text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dots {
  0%,
  20% {
    width: 0;
  }
  100% {
    width: 24px;
  }
}

/* Screen-matched mobile workspace */
.login-time {
  margin: 8px 0 0;
  text-align: center;
  color: #667085;
  font-size: 14px;
}
.login-time b {
  color: var(--ink);
}
.reference-spinner {
  width: 38px;
  height: 38px;
  position: relative;
  margin: auto;
  animation: reference-spin 1.05s linear infinite;
}
.reference-spinner i {
  position: absolute;
  top: 16px;
  left: 17px;
  width: 4px;
  height: 10px;
  border-radius: 4px;
  background: #a9adb2;
  transform-origin: 2px 3px;
}
.reference-spinner i:nth-child(1) {
  transform: rotate(0deg) translateY(-15px);
  background: #111;
}
.reference-spinner i:nth-child(2) {
  transform: rotate(45deg) translateY(-15px);
  background: #444;
}
.reference-spinner i:nth-child(3) {
  transform: rotate(90deg) translateY(-15px);
}
.reference-spinner i:nth-child(4) {
  transform: rotate(135deg) translateY(-15px);
}
.reference-spinner i:nth-child(5) {
  transform: rotate(180deg) translateY(-15px);
}
.reference-spinner i:nth-child(6) {
  transform: rotate(225deg) translateY(-15px);
}
.reference-spinner i:nth-child(7) {
  transform: rotate(270deg) translateY(-15px);
}
.reference-spinner i:nth-child(8) {
  transform: rotate(315deg) translateY(-15px);
}
@keyframes reference-spin {
  to { transform: rotate(360deg); }
}

/* NexUX 2026 workspace system */
:root { --navy: #0b1f3a; --soft-blue: #edf4ff; --surface: #ffffff; --text-soft: #64748b; }
body { background: #f4f7fb; }
.sidebar { background: linear-gradient(180deg, #0b1f3a 0%, #112c52 100%); border: 0; padding: 26px 14px; }
.sidebar .brand b { color: #fff; font-size: 17px; }
.sidebar .brand span { color: #9db1ce; }
.sidebar .brand { padding-bottom: 28px; }
.nav-btn { color: #b8c8dd; border-radius: 13px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.nav-btn:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.nav-btn.active { background: linear-gradient(100deg, #2f76ec, #4a8cf5); color: #fff; box-shadow: 0 10px 20px rgba(4, 20, 46, .25); }
.profile-mini b { color: #fff; }
.profile-mini span { color: #aebfd4; }
.ghost { background: rgba(255,255,255,.09); color: #dce9fa; }
.main { background: radial-gradient(circle at 100% 0, #e9f2ff 0, transparent 26%), #f4f7fb; }
.topbar { height: 82px; background: rgba(255,255,255,.9); backdrop-filter: blur(18px); padding: 0 38px; }
.topbar h2 { font-size: 22px; }
.main > #content { max-width: 1400px; padding: 34px 38px 64px; }
.card { border: 1px solid #e5ebf3; border-radius: 20px; box-shadow: 0 12px 30px rgba(30, 58, 95, .045); }
.card-head { margin-bottom: 18px; }
.card-head h3 { font-size: 15px; letter-spacing: -.2px; }
.home-intro .section-title { color: var(--navy); }
.attendance-hero { background: linear-gradient(135deg, #fff 0%, #f3f8ff 100%); border: 1px solid #dce8f7; box-shadow: 0 16px 34px rgba(30, 74, 128, .06); }
.office-status-row { color: var(--navy); font-weight: 700; }
.office-status { padding: 7px 11px; background: #effcf4; border-radius: 999px; color: #168a4c; font-size: 12px; }
.office-status.is-closed { background: #fff1f2; color: #d23c4a; }
.start-btn { background: linear-gradient(135deg, #1f6ee8, #4d91ff); }
.end-btn { background: linear-gradient(135deg, #dc3c4b, #f05a62); }
.home-data { display: grid; gap: 20px; margin-top: 22px; }
.home-two-column { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr); gap: 20px; }
.duty-card { min-height: 100%; display: flex; gap: 15px; align-items: flex-start; padding: 24px; border-radius: 20px; color: #16335d; background: linear-gradient(135deg, #e9f3ff, #edfdf8); border: 1px solid #d8e9fa; }
.duty-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: #286ee5; color: #fff; font-size: 22px; box-shadow: 0 8px 16px rgba(40,110,229,.22); }
.duty-label { font-size: 11px; font-weight: 800; color: #4d78a9; letter-spacing: .6px; text-transform: uppercase; }
.duty-card h3 { margin: 5px 0 7px; font-size: 18px; letter-spacing: -.4px; }
.duty-card p { margin: 0; color: #54708f; font-size: 13px; line-height: 1.65; }
.duty-card p b { color: #1c5eab; }
.duty-card.is-done { background: linear-gradient(135deg, #eefbf2, #f8fffb); border-color: #c9ecd5; }
.duty-card.is-done .duty-icon { background: #1d9b51; box-shadow: 0 8px 16px rgba(29,155,81,.2); }
.duty-card.is-done p b { color: #187942; }
.duty-done { margin-top: 14px; padding: 9px 15px; border-radius: 10px; background: #1b7f48; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 6px 12px rgba(27,127,72,.18); }
.assigned-duty-action { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; border: 1px solid #cfe7d8; border-radius: 17px; background: linear-gradient(135deg, #f3fcf6, #fbfffc); color: #185638; }
.assigned-duty-action.is-overdue { border-color: #ffd7dc; background: #fff8f8; color: #9f3440; }
.assigned-duty-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: #1d9b51; color: #fff; font-size: 19px; font-weight: 900; }
.assigned-duty-action.is-overdue .assigned-duty-icon { background: #e44755; }
.assigned-duty-action div:nth-child(2) { min-width: 0; }
.assigned-duty-action span, .assigned-duty-action b, .assigned-duty-action p { display: block; }
.assigned-duty-action span { color: #4f8370; font-size: 11px; font-weight: 800; }
.assigned-duty-action b { margin-top: 2px; font-size: 15px; }
.assigned-duty-action p { margin: 3px 0 0; color: #638373; font-size: 12px; }
.assigned-duty-action.is-overdue span, .assigned-duty-action.is-overdue p { color: #a66b73; }
.assigned-duty-action .duty-done { margin: 0 0 0 auto; white-space: nowrap; }
.duty-complete { display: inline-block; margin-top: 14px; color: #1b7f48; font-size: 12px; font-weight: 800; }
.fine-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.fine-stats .stat .icon { font-size: 16px; font-weight: 900; }
.fine-date-controls { display: flex; align-items: end; gap: 10px; }
.fine-date-controls .filter { margin-bottom: 1px; }
.fine-table { padding: 20px; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fine-summary-table { margin-bottom: 18px; }
.fine-summary-table .card-head span { color: #667f9e; font-size: 12px; font-weight: 700; }
.fine-due { color: #d43c4a; }
.fine-share-card { margin-top: 18px; padding: 20px; }
.fine-share-card .card-head { align-items: flex-start; margin-bottom: 13px; }
.fine-share-card .card-head p { margin: 4px 0 0; color: #7a8699; font-size: 12px; font-weight: 600; }
.fine-share-text { min-height: 190px; margin: 0; padding: 15px; border-color: #d9e5f4; border-radius: 14px; background: #f8fbff; color: #23334a; font-size: 13px; font-weight: 600; line-height: 1.65; white-space: pre-wrap; }
.fine-share-text:focus { box-shadow: none; border-color: #9ec0ee; }
.today-ranking { border-top: 3px solid #4e8df2; }
.session-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px 16px; }
.time-split { display: contents; }
.time-split span { padding: 14px; border-radius: 14px; background: #f6f9fd; }
.time-split small, .time-split b { display: block; }
.time-split small { color: #7d91aa; font-size: 11px; }
.time-split b { margin-top: 4px; font-size: 16px; color: #14345d; }
.time-split .total-time { background: #eaf3ff; border: 1px solid #d7e7fc; }
.time-split .total-time b { color: #1d65c6; }
.home-notices .card-head button { margin-left: auto; }
.home-office-body { display: grid; gap: 14px; }
.home-duty-panel .notice-duty-header { padding: 15px 18px; }
.home-duty-panel .notice-duty-header h2 { font-size: 15px; }
.home-duty-panel .duty-notice-grid { gap: 10px; padding: 12px; }
.home-duty-panel .duty-notice { padding: 15px; border-radius: 14px; }
.home-duty-panel .duty-notice > span { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.home-attendance-update { overflow: hidden; border: 1px solid #ffd8dc; border-radius: 15px; background: #fff9f9; color: #8c3540; }
.home-attendance-update > b { display: block; padding: 12px 15px; color: #b52d3b; font-size: 13px; border-bottom: 1px solid #ffe1e4; }
.home-attendance-update > span { display: flex; gap: 6px; align-items: center; padding: 11px 15px; border-bottom: 1px solid #ffe8ea; font-size: 12px; font-weight: 700; }
.home-attendance-update > span:last-child { border-bottom: 0; }
.home-attendance-update small { color: #a66d75; font-weight: 600; }
.home-attendance-update strong { margin-left: auto; color: #e23d4c; white-space: nowrap; }
.home-notice-feed { display: grid; gap: 2px; }
.home-notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 2px; border-bottom: 1px solid #eef2f6; }
.home-notice:last-child { border-bottom: 0; }
.home-notice > span { width: 8px; height: 8px; flex: none; margin-top: 6px; border-radius: 50%; background: #4c8cf4; }
.home-notice.important > span { background: #ed5964; box-shadow: 0 0 0 4px #fff0f1; }
.home-notice.success > span { background: #20a461; box-shadow: 0 0 0 4px #e9faef; }
.home-notice.highlight > span { background: #377fe9; box-shadow: 0 0 0 4px #eaf3ff; }
.home-notice.danger { padding: 13px; border: 1px solid #ffd7dc; border-radius: 12px; background: #fff7f8; }
.home-notice.danger > span { background: #e44755; box-shadow: 0 0 0 4px #ffe7ea; }
.notice-card.success { border-color: #cdeed9; background: #f7fdf9; }
.notice-card.danger { border-color: #ffd2d8; background: #fff8f8; }
.notice-card.highlight { border-color: #d6e6ff; background: #f8fbff; }
.notice-stack { display: grid; gap: 20px; }
.notice-section { display: grid; }
.notice-duty-panel { overflow: hidden; border: 1px solid #dce4ef; border-radius: 18px; background: linear-gradient(180deg, #f6f9fe, #fbfcff); }
.notice-duty-header { padding: 20px 28px; border-bottom: 1px solid #dce4ef; background: rgba(238,245,255,.65); }
.notice-duty-header h2 { margin: 0; color: #173d69; font-size: 18px; letter-spacing: -.25px; }
.duty-notice-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 22px; }
.duty-notice { display: flex; gap: 15px; padding: 20px 22px; border: 1px solid #dce8f7; border-radius: 18px; background: #f8fbff; }
.duty-notice > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #367ee9; font-size: 20px; font-weight: 900; }
.duty-notice.success { border-color: #cbead6; background: #f5fcf7; }
.duty-notice.success > span { background: #1d9b51; }
.duty-notice.danger { border-color: #ffd2d8; background: #fff8f8; }
.duty-notice.danger > span { background: #e34755; }
.duty-notice small { color: #5b7ba5; font-weight: 800; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; }
.duty-notice h3 { display: none; }
.duty-notice p { margin: 0; color: #637992; font-size: 13px; line-height: 1.65; }
.attendance-alert { border: 1px solid #ffd2d8; border-radius: 18px; overflow: hidden; background: #fffafa; }
.attendance-alert > div { display: flex; gap: 13px; padding: 20px; border-bottom: 1px solid #ffe0e4; }
.alert-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: #e34755; color: #fff; font-size: 18px; font-weight: 900; }
.attendance-alert h3 { margin: 1px 0 4px; color: #9c2735; font-size: 16px; }
.attendance-alert p { margin: 0; color: #a05a63; font-size: 12px; }
.attendance-alert ol { margin: 0; padding: 0; list-style-position: inside; }
.attendance-alert li { display: flex; gap: 8px; align-items: center; padding: 15px 20px; border-bottom: 1px solid #ffe5e8; color: #7f3b43; font-size: 13px; }
.attendance-alert li:last-child { border: 0; }
.attendance-alert li span { color: #a66d75; }
.attendance-alert li strong { margin-left: auto; color: #d73b49; white-space: nowrap; }
.attendance-alert .all-clear { color: #237a49; }
.tag.success { background: #e8f9ee; color: #168644; }
.tag.danger { background: #fff0f2; color: #d83a4a; }
.tag.highlight { background: #eaf3ff; color: #286cd1; }
.home-notice b { font-size: 13px; color: #17345a; }
.home-notice p { margin: 3px 0 0; color: #74859b; font-size: 12px; line-height: 1.5; }
.notification-button { border: 1px solid #e7edf6; background: #fff; box-shadow: 0 6px 14px rgba(30,58,95,.05); transition: .2s; }
.notification-button:hover { transform: translateY(-1px); color: var(--blue); }
.notification-modal { padding: 2px; }
.notification-modal-head { display: block; padding: 4px 10px 20px; border-bottom: 1px solid #dfe4ea; }
.notification-modal-head h3 { margin: 0; color: #11161d; font-size: 29px; letter-spacing: -.7px; }
.notification-feed { display: grid; gap: 16px; margin-top: 20px; }
.notification-card { overflow: hidden; border: 1px solid #d9dfe6; border-radius: 18px; background: #fff; }
.notification-card header { display: flex; align-items: center; gap: 11px; padding: 14px 17px; border-bottom: 1px solid #d9dfe6; background: #edf3ff; color: #2f6feb; }
.notification-card header span { width: 12px; height: 12px; flex: none; border-radius: 50%; background: currentColor; }
.notification-card header b { font-size: 15px; font-weight: 800; }
.notification-card-body { padding: 18px; }
.notification-card-body p { margin: 0; color: #12171d; font-size: 17px; font-weight: 650; line-height: 1.5; }
.notification-card-body .notification-detail { margin-top: 9px; color: #61666d; font-weight: 500; }
.notification-card-body .ranking-notification-line { line-height: 1.55; }
.notification-card-body .ranking-notification-line + .ranking-notification-line { margin-top: 16px; }
.notification-card.success header { color: #599c67; background: #eff8f1; }
.notification-card.danger header { color: #d34b45; background: #fff1f0; }
.notification-card.important header { color: #d34b45; background: #fff1f0; }
.notification-card .mention-alert { display: inline-block; margin-top: 12px; padding: 6px 9px; border-radius: 8px; background: #fff2cc; color: #8a6611; font-size: 11px; font-style: normal; font-weight: 800; }
.attendance-notification-card .notification-card-body { display: grid; gap: 13px; }
.attendance-notification-card .notification-card-body p { padding-bottom: 13px; border-bottom: 1px solid #edf0f4; }
.attendance-notification-card .notification-card-body p:last-child { padding-bottom: 0; border-bottom: 0; }
.notice-list { display: grid; gap: 16px; }
.notice-card { overflow: hidden; border: 1px solid #d9dfe6; border-radius: 18px; background: #fff; }
.notice-card > header { display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-bottom: 1px solid #d9dfe6; color: #2f6feb; background: #edf3ff; }
.notice-card > header span { width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.notice-card > header b { font-size: 15px; }
.notice-card > div { padding: 17px; }
.notice-card p { margin: 0; color: #17202a; font-size: 15px; font-weight: 650; line-height: 1.55; }
.notice-card.success > header { color: #599c67; background: #eff8f1; }
.notice-card.danger > header, .notice-card.important > header { color: #d34b45; background: #fff1f0; }
.notice-card .filter { margin-top: 14px; }
@media (min-width: 761px) { .modal-box:has(.notification-modal) { width: min(700px, 100%); } }
@media (max-width: 760px) {
  .notification-modal-head { padding: 2px 4px 16px; }
  .notification-modal-head h3 { font-size: 25px; }
  .notification-feed { gap: 12px; margin-top: 14px; }
  .notification-card { border-radius: 15px; }
  .notification-card header { padding: 13px 14px; }
  .notification-card header b { font-size: 14px; }
  .notification-card-body { padding: 15px; }
  .notification-card-body p { font-size: 15px; }
}
.member-email { color: #8290a5; font-size: 12px; }
.table-action { display: flex; align-items: center; gap: 8px; }
.icon-edit, .icon-danger { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #e3eaf3; border-radius: 10px; background: #fff; cursor: pointer; }
.icon-edit { color: #2872d7; }
.icon-edit:hover { background: #edf5ff; border-color: #bcd6fb; }
.icon-danger:hover { background: #fff3f4; }
.office-clean-popup { display: grid; gap: 12px; min-width: min(680px, 78vw); }
.office-clean-popup h3 { margin-bottom: 0; }
.office-clean-popup .muted { margin: 0; }
.clean-schedule-table td:first-child { min-width: 190px; }
.clean-status { display: inline-flex; margin-left: 8px; padding: 3px 7px; border-radius: 999px; background: #e8f9ee; color: #168644; font-size: 10px; font-weight: 800; }
.clean-done td { background: #fbfffc; }
.reset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reset-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 112px; padding: 20px; }
.reset-card h3, .reset-other h3 { margin: 0 0 7px; font-size: 15px; }
.reset-card p { margin: 0; color: #738198; font-size: 12px; line-height: 1.55; }
.reset-card .filter { flex: 0 0 auto; }
.reset-other { margin-top: 16px; }
.reset-other p { margin: 0; line-height: 1.65; font-size: 12px; }
@media (max-width: 760px) { .reset-grid { grid-template-columns: 1fr; } .reset-card { align-items: flex-start; flex-direction: column; } }

/* Final mobile home polish — compact, calm and reference-aligned. */
@media (max-width: 760px) {
  .assigned-duty-action { align-items: flex-start; flex-wrap: wrap; padding: 15px; }
  .assigned-duty-action .duty-done { width: 100%; margin: 2px 0 0 52px; }
  :root { --mobile-page-padding: 20px; }
  .main > #content { padding-left: var(--mobile-page-padding); padding-right: var(--mobile-page-padding); }
  .attendance-hero { background: #fff; border-color: #edf0f4; box-shadow: 0 10px 30px rgba(16, 24, 40, .045); }
  .office-status-row { letter-spacing: -.15px; }
  .working-time { font-variant-numeric: tabular-nums; letter-spacing: -1.8px; }
  .attendance-actions .start-btn, .attendance-actions .end-btn { width: 100%; transition: transform .18s ease, box-shadow .18s ease; }
  .attendance-actions .start-btn:active, .attendance-actions .end-btn:active { transform: scale(.985); }
  .today-sessions, .today-ranking, .my-session-history, .home-notices { background: #fff; }
  .today-sessions .card-head, .today-ranking .card-head { background: #fff; }
  .today-sessions .session-row { min-height: 66px; }
  .mobile-bottom-nav { padding-bottom: max(3px, env(safe-area-inset-bottom)); }
}
.mention-note, .mention-alert { display: inline-flex; width: max-content; margin-top: 4px; padding: 4px 8px; border-radius: 999px; background: #eaf3ff; color: #2568c8; font-size: 11px; font-style: normal; font-weight: 700; }
.mention-help { display: block; margin-top: 6px; color: #758198; font-size: 11px; line-height: 1.55; }

/* Apple-inspired liquid glass navigation and notification alert */
.notification-button { overflow: visible; }
.notification-button.has-alert { color: #101828; background: #fff; border-color: #e7edf6; box-shadow: 0 6px 14px rgba(30,58,95,.05); animation: none; }
.notification-button.has-alert .notification-bell { filter: none; }
.notification-button.has-alert .notification-badge { border: 2px solid #fff; box-shadow: 0 3px 8px rgba(211, 37, 59, .28); }
@keyframes notification-alert-pulse { 50% { box-shadow: 0 7px 18px rgba(221, 51, 72, .15), 0 0 0 5px rgba(239, 68, 83, .07); } }
.sidebar { background: linear-gradient(155deg, rgba(21, 57, 98, .88), rgba(8, 27, 53, .8)); border-right: 1px solid rgba(207, 226, 255, .18); box-shadow: 12px 0 38px rgba(10, 29, 55, .12); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
.sidebar:before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 8% 0, rgba(142, 194, 255, .22), transparent 28%), linear-gradient(110deg, rgba(255,255,255,.08), transparent 32%); }
.sidebar > * { position: relative; z-index: 1; }
.nav-btn { border: 1px solid transparent; }
.nav-btn.active { background: linear-gradient(135deg, rgba(107, 170, 255, .4), rgba(46, 111, 222, .6)); border-color: rgba(220, 238, 255, .28); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 9px 22px rgba(0, 26, 71, .25); }
@media (max-width: 760px) {
  .mobile-bottom-nav { background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(233,243,255,.62)); border: 1px solid rgba(255,255,255,.78); box-shadow: 0 14px 34px rgba(39, 78, 123, .18), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(24px) saturate(175%); -webkit-backdrop-filter: blur(24px) saturate(175%); }
  .mobile-nav-btn.active { color: #113963; background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(196,222,255,.72)); border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 5px 12px rgba(53, 99, 151, .16); }
  .mobile-nav-btn.active span, .mobile-nav-btn.active svg { color: #113963; stroke: #113963; }

  /* Keep the mobile profile bar compact, while retaining enough space for its avatar. */
  .topbar {
    height: 108px;
    padding-top: 29px;
  }
  .main > #content { padding-top: 8px; }
  .attendance-history-card,
  .my-fines-card { padding: 14px; }
  .attendance-history-card .table-wrap,
  .my-fines-card .table-wrap {
    margin: 0;
    border: 1px solid #e7ecf2;
    border-radius: 12px;
  }
  .my-fines-card .card-head { margin-bottom: 7px; }
}

/* One continuous mobile surface: no separate-colour header and no wasted top space. */
@media (max-width: 760px) {
  html, body, #appView, .main { background: #f7f7f7; }
  .topbar {
    height: 76px;
    padding-top: 7px;
    background: #f7f7f7 !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-identity { min-height: 54px; }
  .header-identity:before,
  .top-actions .avatar,
  .notification-button { background: #e2e2e2; }
  .header-identity:before { width: 54px; height: 54px; font-size: 27px; }
  .notification-button { width: 54px; height: 54px; }
  .main > #content { padding-top: 2px; }
  .home-intro .section-title { margin-top: 0; }
}

/* Compact, consistent session tables across Home. */
.today-sessions, .today-ranking, .my-session-history { overflow: hidden; }
.today-sessions .card-head, .today-ranking .card-head, .my-session-history .card-head {
  min-height: 58px;
  margin: 0;
  padding: 0 24px;
}
.today-sessions .session-summary { padding: 18px 24px; }
.today-sessions .session-row { min-height: 78px; padding: 16px 24px; }
.today-ranking .table-wrap, .my-session-history .table-wrap { padding: 0; }
.today-ranking-table thead th, .session-history-table thead th {
  padding: 13px 24px;
  background: #fafbfc;
  color: #656b73;
  font-size: 12px;
  font-weight: 750;
}
.today-ranking-table td, .session-history-table td {
  padding: 15px 24px;
  color: #15171a;
  font-weight: 550;
}
.today-ranking-table tbody tr, .session-history-table tbody tr { background: #fff; }
.home-data > .card { content-visibility: auto; contain-intrinsic-size: auto 260px; }

@media (max-width: 760px) {
  .home-intro { margin-bottom: 10px; }
  .home-intro .attendance-hero { margin-top: 18px; padding: 21px 20px; }
  .home-intro .attendance-state { padding-top: 31px; }
  .home-intro .attendance-actions { margin-top: 31px; }
  .home-data { gap: 14px; margin-top: 16px; }
  .today-sessions .card-head, .today-ranking .card-head, .my-session-history .card-head { min-height: 51px; padding: 0 20px; }
  .today-sessions .session-summary { padding: 12px 14px; }
  .today-sessions .session-row { min-height: 70px; padding: 13px 14px; }
  .today-ranking-table thead th, .session-history-table thead th { padding: 11px 14px; font-size: 10px; }
  .today-ranking-table td, .session-history-table td { padding: 13px 14px; font-size: 12px; }
}

/* Lighter boot state: a small animated ring and a calm loading label. */
.boot-screen { background: #f7f7f7; }
.reference-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e2e8f2;
  border-top-color: #2f73ef;
  border-radius: 50%;
  animation: nexux-loader .78s linear infinite;
}
.reference-spinner i { display: none; }
.boot-screen strong {
  color: #15223a;
  font-size: 18px;
  letter-spacing: -.35px;
  animation: nexux-loading-copy 1.25s ease-in-out infinite;
}
@keyframes nexux-loader { to { transform: rotate(360deg); } }
@keyframes nexux-loading-copy { 50% { opacity: .42; transform: translateY(2px); } }

/* Final mobile quality pass: compact header, correct status colour, and readable cards. */
.attendance-mobile-list { display: none; }
@media (max-width: 760px) {
  .topbar {
    height: 66px !important;
    padding: 2px 16px 0 96px !important;
    background: #f7f7f7 !important;
  }
  .header-identity { min-height: 50px !important; padding-top: 0 !important; }
  .header-identity:before { left: -78px !important; width: 50px !important; height: 50px !important; background: #e2e2e2 !important; font-size: 25px !important; }
  .topbar .eyebrow:before { font-size: 14px !important; }
  .topbar h2 { margin-top: 2px !important; font-size: 18px !important; }
  .notification-button { width: 50px !important; height: 50px !important; background: #e2e2e2 !important; }
  .main > #content { padding: 0 16px 106px !important; }
  .home-intro, .toolbar { margin-top: 0 !important; }
  .home-intro .section-title { margin-top: 0 !important; }
  .home-intro .office-status.is-closed { color: #cf3f49; background: #fff0f2; }
  .home-intro .office-status.is-closed i { background: #e34a55 !important; }

  .toolbar { padding-top: 3px; margin-bottom: 17px; }
  .toolbar .section-title { font-size: 28px; letter-spacing: -1.2px; }
  .toolbar .section-sub { margin: 5px 0 0; color: #7a8492; font-size: 14px; line-height: 1.45; }
  .attendance-history-card, .my-fines-card { padding: 0 !important; overflow: hidden; border-color: #dce2e9; border-radius: 20px; }
  .attendance-history-card .attendance-desktop-table, .my-fines-card .attendance-desktop-table { display: none; }
  .attendance-mobile-list { display: grid; }
  .attendance-mobile-item { padding: 15px 16px; border-bottom: 1px solid #e7ecf1; background: #fff; }
  .attendance-mobile-item:last-child { border-bottom: 0; }
  .attendance-mobile-item > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .attendance-mobile-item > div:first-child > b { color: #18212c; font-size: 15px; }
  .attendance-mobile-item dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; margin: 13px 0 0; }
  .attendance-mobile-item dl div { display: grid; gap: 3px; }
  .attendance-mobile-item dt { color: #788393; font-size: 10px; font-weight: 750; }
  .attendance-mobile-item dd { margin: 0; color: #17202a; font-size: 12px; font-weight: 750; }
  .fine-table .card-head { min-height: 56px; padding: 0 16px; margin: 0; }
  .fine-table > .muted { padding: 12px 16px; margin: 0 !important; background: #f8fafc; border-bottom: 1px solid #e7ecf1; font-size: 13px; }
  .fine-mobile-item p { margin: 10px 0 6px; color: #4d5969; font-size: 13px; line-height: 1.5; }
  .fine-mobile-item strong { color: #cf3f49; font-size: 16px; }

  .notice-stack { gap: 14px; }
  .notice-duty-panel, .notice-section { border-radius: 20px; overflow: hidden; }
  .notice-duty-header { padding: 16px 18px; background: #eef4ff; }
  .notice-duty-header h2 { margin: 0; color: #234d82; font-size: 16px; line-height: 1.35; }
  .duty-notice-grid { gap: 10px; padding: 12px; background: #fff; }
  .duty-notice { gap: 12px; padding: 14px; border-radius: 15px; }
  .duty-notice > span { width: 38px; height: 38px; border-radius: 12px; }
  .duty-notice p { color: #263548; font-size: 13px; font-weight: 650; line-height: 1.55; }
  .notice-section .home-update-section { border-radius: 20px; overflow: hidden; }
  .notice-section .home-update-section h3 { padding: 16px 18px; font-size: 16px; }
  .notice-section .empty { padding: 24px 18px; }

  .mobile-bottom-nav {
    left: 16px !important;
    right: 16px !important;
    height: 66px !important;
    padding: 4px !important;
    border: 1px solid rgba(255,255,255,.95) !important;
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 12px 30px rgba(16,24,40,.16), inset 0 1px 0 #fff !important;
  }
  .mobile-nav-btn { height: 56px !important; color: #15171a !important; font-size: 11px !important; font-weight: 750 !important; }
  .mobile-nav-btn svg { width: 20px !important; height: 20px !important; stroke: currentColor !important; }
  .mobile-nav-btn.active { min-width: 0 !important; color: #fff !important; background: #050607 !important; border: 0 !important; border-radius: 30px !important; box-shadow: none !important; }
  .mobile-nav-btn.active span, .mobile-nav-btn.active svg { color: #fff !important; stroke: #fff !important; }
}

/* Final desktop home layout override. */
@media (min-width: 761px) {
  .main > #content { max-width: 1320px; padding-top: 28px; }
  .home-intro { margin-bottom: 12px; }
  .home-intro .section-title { font-size: 28px; }
  .attendance-hero { margin-top: 18px; padding: 24px 28px; border-radius: 20px; }
  .attendance-state { align-items: center; padding-top: 26px; }
  .working-time { font-size: 40px; }
  .attendance-actions { flex: 0 0 178px; margin-top: 0 !important; }
  .attendance-actions .start-btn, .attendance-actions .end-btn { flex: 0 0 100%; min-height: 52px; font-size: 16px; }
  .home-data { gap: 18px; margin-top: 18px; }
  .today-sessions .session-row { padding-top: 15px; padding-bottom: 15px; }
}

@media (min-width: 761px) {
  .main > #content { max-width: 1320px; padding-top: 28px; }
  .home-intro { margin-bottom: 12px; }
  .home-intro .section-title { font-size: 28px; }
  .attendance-hero { margin-top: 18px; padding: 24px 28px; border-radius: 20px; }
  .attendance-state { align-items: center; padding-top: 26px; }
  .working-time { font-size: 40px; }
  .attendance-actions { flex: 0 0 178px; margin-top: 0; }
  .attendance-actions .start-btn, .attendance-actions .end-btn { flex: 0 0 100%; min-height: 52px; font-size: 16px; }
  .home-data { gap: 18px; margin-top: 18px; }
  .today-sessions .session-row { padding-top: 15px; padding-bottom: 15px; }
}

/* Today sessions: compact summary tiles and readable three-column rows. */
.today-sessions .session-summary { padding: 18px 20px; }
.today-sessions .session-summary .time-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.today-sessions .session-summary .time-split > span { min-width: 0; padding: 13px 14px; border-radius: 16px; }
.today-sessions .session-row { display: grid; grid-template-columns: minmax(150px, 1.35fr) minmax(95px, .75fr) minmax(95px, .75fr); align-items: center; gap: 18px; padding: 17px 20px; }
.today-sessions .session-period { display: grid; gap: 4px; color: #59616b; }
.today-sessions .session-period b { margin-left: 3px; }
.today-sessions .session-metric { display: grid; gap: 4px; color: #59616b; }
.today-sessions .session-metric small { font-size: 12px; color: #59616b; }
.today-sessions .session-metric b { font-size: 16px; }
.notification-button::before, .notification-button::after, .notification-bell::before, .notification-bell::after { content: none !important; display: none !important; }
.late-start { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #c42d3d; background: #fff0f2; border: 1px solid #ffd3d9; font-size: 10px; font-weight: 800; white-space: nowrap; }
.award-popup { text-align: center; padding: 8px 3px; }
.award-popup > span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 22px; background: linear-gradient(135deg, #fff3c7, #ffe08a); font-size: 32px; box-shadow: 0 10px 24px rgba(214, 156, 35, .18); }
.award-popup > p { margin: 6px 0; color: #61718a; font-size: 13px; line-height: 1.6; }
.award-popup h3 { margin: 5px 0 10px; color: #17365c; font-size: 20px; line-height: 1.35; }
.award-popup strong { display: inline-block; margin: 3px 0 10px; padding: 8px 13px; border-radius: 999px; color: #94630b; background: #fff6d9; font-size: 15px; }
.award-notice-header { border: 1px solid #f4df9b; border-radius: 15px; background: linear-gradient(135deg, #fffdf5, #fff7db); }
.award-notice-header h2 { color: #805b10; font-size: 16px; }

/* Home desktop: reduce empty space and keep the primary session controls focused. */
@media (min-width: 761px) {
  .main > #content { max-width: 1320px; padding-top: 28px; }
  .home-intro { margin-bottom: 12px; }
  .home-intro .section-title { font-size: 28px; }
  .attendance-hero { margin-top: 18px; padding: 24px 28px; border-radius: 20px; }
  .attendance-state { align-items: center; padding-top: 26px; }
  .working-time { font-size: 40px; }
  .attendance-actions { flex: 0 0 178px; margin-top: 0; }
  .attendance-actions .start-btn, .attendance-actions .end-btn { flex: 0 0 100%; min-height: 52px; font-size: 16px; }
  .home-data { gap: 18px; margin-top: 18px; }
  .today-sessions .session-row { padding-top: 15px; padding-bottom: 15px; }
}
.notification-button { display: inline-grid; place-items: center; line-height: 0; }
.notification-button .notification-bell { display: block; width: 23px; height: 23px; }
.today-sessions .card-head .today-session-date { color: #2d72e8; font-size: 16px; font-weight: 800; }
.today-sessions .session-summary { padding: 22px 32px 24px; border-bottom: 1px solid #dce4ee; }
.today-sessions .session-list { gap: 0; padding: 0 20px 10px; }
.today-sessions .session-row { margin: 0; padding: 20px 12px; border: 0; border-bottom: 1px solid #e3e9f0; border-radius: 0; background: transparent; }
.today-sessions .session-row:last-child { border-bottom: 0; }

/* Home refresh: the same quiet white / charcoal / blue system as the mobile reference. */
.main:has(.home-intro) {
  background:
    radial-gradient(circle at 82% 7%, rgba(236, 243, 255, .72), transparent 30%),
    #f6f7f8;
}
.home-intro { max-width: 100%; }
.home-intro .section-title {
  margin-top: 4px;
  color: #101114;
  font-weight: 820;
  letter-spacing: -1.6px;
}
.home-intro .section-sub { color: #62666b; }
.home-intro .attendance-hero {
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(34, 42, 54, .055);
}
.home-intro .office-status-row { color: #555b62; font-size: 16px; font-weight: 550; }
.home-intro .office-status { color: #4d555c; font-size: 15px; }
.home-intro .office-status i { width: 13px; height: 13px; background: #55bf75; }
.home-intro .working-time { color: #090a0c; font-weight: 850; }
.home-intro .attendance-state .muted { color: #6a6e74; }
.home-intro .start-btn,
.home-intro .end-btn {
  border: 0;
  box-shadow: none;
  font-weight: 800;
}
.home-intro .start-btn { background: linear-gradient(135deg, #1d68e9, #4a8df9); }
.home-intro .end-btn { background: linear-gradient(135deg, #d7403d, #dc4c45); }
.home-data > .card {
  border-color: #dfe3e7;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(31, 38, 49, .035);
}
.home-data > .card .card-head { background: rgba(255, 255, 255, .95); }
.today-sessions .card-head .today-session-date,
.today-ranking .card-head > span,
.session-day-count { color: #2f68dc; }

@media (max-width: 760px) {
  .main:has(.home-intro) { background: #f7f7f7; }
  .home-intro .section-title { font-size: 29px; letter-spacing: -1.35px; }
  .home-intro .section-sub { font-size: 16px; }
  .home-intro .attendance-hero { margin-top: 23px; padding: 25px 24px 24px; border-radius: 20px; }
  .home-intro .office-status-row { font-size: 16px; }
  .home-intro .office-status { font-size: 16px; }
  .home-intro .attendance-state { padding-top: 38px; }
  .home-intro .working-time { font-size: 43px; letter-spacing: -2.4px; }
  .home-intro .attendance-actions { margin-top: 40px; }
  .home-intro .attendance-actions .start-btn,
  .home-intro .attendance-actions .end-btn { min-height: 65px; border-radius: 999px; font-size: 19px; }
  .home-data { gap: 18px; margin-top: 24px; }
  .home-data > .card { border-radius: 18px; }
  .today-sessions .card-head, .today-ranking .card-head, .my-session-history .card-head { min-height: 49px; }
  .today-sessions .card-head h3, .today-ranking .card-head h3, .my-session-history .card-head h3 { font-size: 16px; }
  .today-sessions .card-head .today-session-date, .today-ranking .card-head > span, .session-day-count { font-size: 15px; }
}

/* Home table and updates polish. */
.today-ranking { border-top: 3px solid #4d8bf3; }
.today-ranking .card-head, .my-session-history .card-head { min-height: 58px; padding: 0 22px; }
.today-ranking .card-head h3, .my-session-history .card-head h3 { font-size: 17px; }
.today-ranking .card-head > span, .session-day-count { color: #2d72e8; font-size: 16px; font-weight: 800; }
.today-ranking .table-wrap, .my-session-history .table-wrap { padding: 2px 20px 16px; }
.today-ranking-table, .session-history-table { border-collapse: separate; border-spacing: 0; }
.today-ranking-table thead th, .session-history-table thead th { padding: 14px 16px; color: #758195; background: #f8fafc; font-size: 12px; font-weight: 800; letter-spacing: .1px; }
.today-ranking-table thead th:first-child, .session-history-table thead th:first-child { border-radius: 11px 0 0 11px; }
.today-ranking-table thead th:last-child, .session-history-table thead th:last-child { border-radius: 0 11px 11px 0; }
.today-ranking-table td, .session-history-table td { padding: 16px; border-bottom: 1px solid #edf1f5; color: #273548; font-size: 13px; }
.today-ranking-table tbody tr:last-child td, .session-history-table tbody tr:last-child td { border-bottom: 0; }
.today-ranking-table tbody tr:hover, .session-history-table tbody tr:hover { background: #fbfdff; }
.today-ranking-table .rank-number { width: 30px; height: 30px; margin-right: 9px; font-size: 12px; }
.my-session-history { margin-top: 0; }
.my-session-history .card-head { margin-bottom: 0; }
.home-notices .card-head { min-height: 62px; padding: 0 24px; margin-bottom: 0; }
.home-notices .card-head h3 { font-size: 17px; }
.office-updates-view-all { min-height: 36px; padding: 8px 14px; border: 1px solid #dce5f1; border-radius: 10px; color: #3d6599; background: #fff; font-size: 13px; font-weight: 750; }
.home-office-body { padding: 18px 20px 20px; gap: 14px; }
.home-update-section { overflow: hidden; border: 1px solid #dce4ef; border-radius: 16px; background: #fff; }
.home-update-section h3 { margin: 0; padding: 15px 18px; color: #445261; background: #f2f5f7; font-size: 15px; font-weight: 750; }
.home-update-row { display: flex; gap: 13px; align-items: flex-start; padding: 17px 18px; border-top: 1px solid #e5eaf0; }
.home-update-row > span, .attendance-update-row > span { width: 12px; height: 12px; flex: none; margin-top: 5px; border-radius: 50%; background: #2f6feb; }
.home-update-row.success > span { background: #56a66a; }
.home-update-row.danger > span { background: #d84c45; }
.home-update-row small { display: block; margin-bottom: 5px; color: #2f6feb; font-size: 12px; font-weight: 800; }
.home-update-row.danger small { color: #d84c45; }
.home-update-row.success small { color: #49945b; }
.home-update-row b { display: block; color: #18212d; font-size: 15px; line-height: 1.45; }
.attendance-update-section { border-color: #d9e0e7; }
.attendance-update-row { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-top: 1px solid #e5eaf0; }
.attendance-update-row > b { color: #18212d; font-size: 15px; }
.attendance-update-row small { color: #6d7783; font-size: 13px; font-weight: 500; }
.attendance-update-row strong { margin-left: auto; color: #d84c45; font-size: 14px; white-space: nowrap; }
.attendance-update-row.fine > span { background: #d84c45; }
.attendance-update-row.ok > span { background: #5b9e68; }
.attendance-update-row.ok strong { color: #5b9e68; }
@media (max-width: 760px) {
  .home-update-section h3 { padding: 14px 15px; }
  .home-update-row, .attendance-update-row { padding: 14px 15px; }
  .home-update-row b, .attendance-update-row > b { font-size: 14px; }
  .attendance-update-row { align-items: flex-start; flex-wrap: wrap; }
  .attendance-update-row strong { width: calc(100% - 24px); margin: -4px 0 0 24px; }
}
.home-duty-panel { background: #fff; border-color: #dce6f2; box-shadow: none; }
.home-duty-panel .notice-duty-header { background: #fff; }
.home-duty-panel .duty-notice-grid { padding-top: 10px; }
.home-notice-feed { gap: 8px; }
.home-notice { padding: 12px 4px; border-bottom: 0; border-radius: 10px; }
.home-notice:not(.danger) { background: #f9fbfe; }
@media (max-width: 760px) {
  .today-ranking .table-wrap, .my-session-history .table-wrap { padding: 0; }
  .today-ranking-table thead th, .session-history-table thead th { padding: 12px 14px; }
  .today-ranking-table td, .session-history-table td { padding: 13px 14px; }
  .today-ranking .card-head, .my-session-history .card-head, .home-notices .card-head { min-height: 54px; padding: 0 18px; }
  .home-office-body { padding: 14px; }
}
@media (max-width: 760px) {
  .today-sessions .session-summary { padding: 16px; }
  .today-sessions .session-summary .time-split { gap: 7px; }
  .today-sessions .session-summary .time-split > span { min-width: 0; padding: 10px 9px; border-radius: 13px; }
  .today-sessions .session-summary .time-split small { font-size: 9px; }
  .today-sessions .session-summary .time-split b { font-size: 14px; }
  .today-sessions .session-list { padding: 0 14px 8px; }
  .today-sessions .session-row { grid-template-columns: minmax(108px, 1.25fr) minmax(64px, .7fr) minmax(64px, .7fr); gap: 8px; padding: 16px 2px; font-size: 12px; }
  .today-sessions .session-period { gap: 3px; }
  .today-sessions .session-period b, .today-sessions .session-metric b { font-size: 12px; }
  .today-sessions .session-metric { gap: 3px; }
  .today-sessions .session-metric small { font-size: 10px; }
}
.research-hero { position: relative; overflow: hidden; padding: 34px; border-radius: 24px; color: #fff; background: linear-gradient(115deg, #102a4d, #1e5fc7); box-shadow: 0 18px 36px rgba(24,70,139,.17); }
.research-hero:after { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; top: -145px; border: 38px solid rgba(255,255,255,.1); border-radius: 50%; }
.research-kicker { color: #b7d5ff; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.research-hero h1 { margin: 9px 0 8px; font-size: 30px; letter-spacing: -1px; }
.research-hero p { max-width: 620px; margin: 0; color: #dceaff; font-size: 14px; line-height: 1.65; }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.research-card { min-height: 228px; display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid #e4eaf2; border-radius: 18px; box-shadow: 0 10px 25px rgba(30,58,95,.04); transition: transform .2s, box-shadow .2s; }
.research-card:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(30,58,95,.1); }
.research-tag { width: max-content; padding: 5px 9px; border-radius: 999px; color: #2467c8; background: #eaf3ff; font-size: 10px; font-weight: 800; }
.research-card h3 { margin: 16px 0 8px; color: #14345d; font-size: 16px; line-height: 1.4; }
.research-card p { margin: 0; color: #6d7f94; font-size: 12px; line-height: 1.7; }
.research-card a { margin-top: auto; padding-top: 15px; color: #2369d0; font-size: 12px; font-weight: 800; text-decoration: none; }
.research-card a span { margin-left: 5px; font-size: 15px; }
.research-note { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 16px 20px; border: 1px solid #dcebdc; border-radius: 16px; background: #f4fcf5; color: #4c6a54; font-size: 13px; }
.research-note b { color: #19713a; }
@media (max-width: 1000px) { .research-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .sidebar { background: linear-gradient(180deg, #0b1f3a, #112c52); }
  .topbar { height: 74px; background: transparent; padding: 0 20px; }
  .main > #content { padding: 12px 18px 106px; }
  .home-two-column, .research-grid { grid-template-columns: 1fr; }
  .duty-notice-grid { grid-template-columns: 1fr; }
  .session-summary { grid-template-columns: 1fr; }
  .fine-stats { grid-template-columns: 1fr 1fr; }
  .duty-card { padding: 20px; min-height: auto; }
  .research-hero { padding: 26px 22px; border-radius: 20px; }
  .research-hero h1 { font-size: 27px; }
  .research-card { min-height: 0; }
  .research-note { align-items: flex-start; flex-direction: column; gap: 5px; }
  .home-notice-feed { padding: 0 18px 12px; }
}
@media (max-width: 760px) {
  .boot-screen {
    background: #f5f7f9;
  }
  .boot-screen strong {
    font-size: 31px;
  }
  .login-shell {
    min-height: 100svh;
    padding: 20px;
    background: #f5f7f9;
  }
  .login-card {
    width: min(400px, 100%);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 18px 35px rgba(16, 24, 40, 0.06);
  }
  .login-card > .brand {
    justify-content: flex-start;
    margin: 0 70px;
  }
  .login-card .brand b {
    font-size: 21px;
  }
  .login-card .brand span {
    font-size: 16px;
    margin-top: 3px;
    color: #667085;
  }
  .login-card .logo {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }
  .login-copy {
    margin: 54px 0 48px;
  }
  .login-copy h1 {
    font-size: 34px;
    line-height: 1.3;
    letter-spacing: -1.8px;
  }
  .login-copy p {
    font-size: 16px;
    line-height: 1.25;
  }
  .google-login {
    min-height: 57px;
    border-radius: 30px;
    background: #000;
    border-color: #000;
    font-size: 16px;
    box-shadow: none;
  }
  .google-login:hover {
    background: #111;
    border-color: #111;
  }
  .google-mark {
    background: transparent;
    width: 23px;
    height: 23px;
    padding: 0;
  }
  .login-note {
    font-size: 14px;
    margin-top: 16px;
  }
  .login-time {
    font-size: 14px;
    margin-top: 8px;
  }
  .topbar {
    height: 136px;
    padding: 53px 20px 0;
    align-items: flex-start;
  }
  .topbar .eyebrow {
    font-size: 16px;
    line-height: 1.2;
    color: #667085;
    font-weight: 500;
    letter-spacing: 0;
  }
  .topbar .eyebrow::first-line {
    font-size: 16px;
  }
  .topbar > div:first-of-type {
    display: block;
  }
  .topbar .eyebrow {
    font-size: 0;
  }
  .topbar .eyebrow:before {
    content: var(--time-greeting, "Good Morning 👋");
    font-size: 16px;
  }
  .topbar h2 {
    display: block;
    margin: 4px 0 0;
    font-size: 19px;
    line-height: 1.2;
  }
  .top-actions {
    gap: 0;
  }
  .top-actions .avatar {
    display: none;
  }
  .notification-button {
    width: 56px;
    height: 56px;
    background: #edf0f3;
    border-radius: 50%;
  }
  .main > #content {
    padding: 11px 20px 108px;
  }
  .home-intro > .section-sub:first-child {
    display: none;
  }
  .home-intro .section-title {
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -1.4px;
    margin: 0 0 7px;
  }
  .home-intro .section-sub {
    font-size: 16px;
    line-height: 1.3;
    color: #5f6368;
    margin: 0;
  }
  .attendance-hero {
    padding: 24px;
    border-radius: 17px;
    margin: 24px 0 0;
    box-shadow: none;
  }
  .office-status-row {
    font-size: 17px;
  }
  .office-status {
    font-size: 17px;
    font-weight: 500;
  }
  .office-status i {
    width: 13px;
    height: 13px;
  }
  .attendance-state {
    padding-top: 41px;
  }
  .working-time {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 8px;
    text-align: center;
  }
  .attendance-state .muted {
    text-align: center;
    font-size: 16px;
    color: #60646a;
  }
  .start-btn,
  .end-btn {
    margin-top: 42px;
    min-height: 65px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 36px;
  }
  .start-btn {
    box-shadow: none;
  }
  .home-data {
    display: grid;
    gap: 24px;
    margin-top: 24px;
  }
  .card {
    padding: 0;
    border-radius: 17px;
    border-color: #d9dee5;
    box-shadow: none;
    overflow: hidden;
  }
  .card-head {
    height: 48px;
    padding: 0 20px;
    margin: 0;
    border-bottom: 1px solid #d9dee5;
  }
  .card-head h3 {
    font-size: 16px;
  }
  .card-head span {
    font-size: 16px;
  }
  .session-list {
    gap: 0;
  }
  .session {
    padding: 13px 20px;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #d9dee5;
    font-size: 16px;
    line-height: 1.45;
    color: #565b62;
  }
  .session:last-child {
    border: 0;
  }
  .session b {
    font-size: 16px;
    color: #17191c;
  }
  .today-ranking-table {
    font-size: 14px;
  }
  .today-ranking-table th {
    font-size: 14px;
    padding: 12px 20px;
    color: #656a71;
    font-weight: 500;
  }
  .today-ranking-table td {
    padding: 12px 20px;
  }
  .today-ranking-table th,
  .today-ranking-table td {
    white-space: nowrap;
  }
  .today-ranking-table th:first-child,
  .today-ranking-table td:first-child {
    padding-left: 20px;
  }
  .rank-number {
    width: 25px;
    height: 25px;
    margin-right: 6px;
    background: #fff3dc;
  }
  .rank-number.rank-1 {
    background: #fff3dc;
    color: #e5a820;
  }
  .mobile-bottom-nav {
    left: 20px;
    right: 20px;
    bottom: 17px;
    height: 60px;
    padding: 3px;
    background: #fff;
    border: 0;
    border-radius: 34px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.11);
    justify-content: space-around;
  }
  .mobile-nav-btn {
    height: 54px;
    gap: 1px;
    font-size: 12px;
    color: #15171a;
  }
  .mobile-nav-btn.active {
    min-width: 100px;
    color: #fff;
    background: #000;
    border-radius: 30px;
  }
  .mobile-nav-btn.active svg {
    stroke: #fff;
  }
  .mobile-nav-btn svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.8;
  }
  .mobile-nav-btn span {
    line-height: 1;
  }
  .sidebar {
    display: none;
  }
}
.header-identity {
  position: relative;
  padding-left: 58px;
  cursor: pointer;
}
.header-identity:before {
  content: "🧑‍💻";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #edf0f3;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.attendance-actions {
  display: flex;
  gap: 8px;
  margin-top: 42px;
}
.attendance-actions .start-btn,
.attendance-actions .end-btn {
  width: auto;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.attendance-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  font-size: 25px;
  color: #fff;
  font-weight: 800;
}
.start-icon {
  background: linear-gradient(180deg, #4e8bf8, #2563eb);
}
.end-icon {
  background: #df383b;
  font-size: 20px;
  letter-spacing: 2px;
}

/* Attendance time split: regular office work versus time outside office hours. */
.time-split {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.time-split > span {
  display: grid;
  gap: 2px;
  min-width: 78px;
  padding: 7px 9px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #f8fafc;
  text-align: right;
}
.time-split > span:last-child {
  background: #fff8eb;
  border-color: #fce5b1;
}
.time-split small {
  color: #667085;
  font-size: 10px;
  font-weight: 700;
}
.time-split b { font-size: 12px; color: #1d2939; }
.session-summary {
  padding: 14px 20px;
  border-bottom: 1px solid #d9dee5;
}
.session-summary .time-split { justify-content: stretch; }
.session-summary .time-split > span { flex: 1; text-align: left; }
.my-session-history { margin-top: 24px; }
.my-session-history .card-head p {
  margin: 3px 0 0;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 500;
}
@media (max-width: 760px) {
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table th, .table td { white-space: nowrap; }
  .session { align-items: center; gap: 12px; }
  .session .time-split { flex-direction: column; gap: 4px; }
  .session .time-split > span { min-width: 87px; padding: 5px 7px; }
  .session .time-split small { font-size: 9px; }
  .session .time-split b { font-size: 11px; }
  .team-table .filter { min-height: 36px; }
}
@media (max-width: 760px) {
  .topbar {
    padding-left: 104px;
    padding-right: 16px;
  }
  .main > #content { padding-left: 16px; padding-right: 16px; }
  .mobile-bottom-nav { left: 16px; right: 16px; }
  .header-identity {
    padding-left: 0;
  }
  .header-identity:before {
    left: -84px;
    width: 62px;
    height: 62px;
    font-size: 31px;
  }
}

/* Final liquid-glass override for the mobile navigation after responsive rules. */
@media (max-width: 760px) {
  .mobile-bottom-nav {
    background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(233,243,255,.62));
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: 0 14px 34px rgba(39, 78, 123, .18), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(24px) saturate(175%);
    -webkit-backdrop-filter: blur(24px) saturate(175%);
  }
  .mobile-nav-btn.active {
    color: #113963;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(196,222,255,.72));
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 5px 12px rgba(53, 99, 151, .16);
  }
  .mobile-nav-btn.active span, .mobile-nav-btn.active svg { color: #113963; stroke: #113963; }
}
