* { box-sizing: border-box; }
:root { font-family: Arial, Helvetica, sans-serif; color: #171717; background: #f5f5f5; }
body { margin: 0; min-height: 100vh; background: #f5f5f5; }
.shell { width: min(100%, 520px); margin: 0 auto; padding: 24px 18px 32px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 24px; }
.logo { width: 78px; height: 78px; object-fit: contain; }
.brand-name { font-size: 30px; font-weight: 800; letter-spacing: 1px; line-height: .95; }
.brand-subtitle { font-size: 14px; letter-spacing: 2px; margin-top: 6px; }
.brand-country { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 4px; background: #a9002b; color: white; font-size: 11px; letter-spacing: 1px; }
.card { background: white; border-radius: 16px; padding: 26px 22px; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
h1 { margin: 0 0 8px; font-size: 28px; }
h2 { margin: 0 0 8px; font-size: 22px; }
.intro { margin: 0 0 24px; color: #555; line-height: 1.5; }
label { display: block; font-weight: 700; margin: 0 0 8px; }
input { width: 100%; min-height: 52px; border: 1px solid #bbb; border-radius: 10px; padding: 0 14px; font-size: 18px; margin-bottom: 14px; }
button { width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: #a9002b; color: white; font-size: 16px; font-weight: 700; padding: 12px 16px; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button.secondary { margin-top: 10px; background: #eee; color: #222; }
.hidden { display: none !important; }
.message { min-height: 24px; margin-top: 16px; line-height: 1.4; color: #7b001f; }
.success { text-align: center; padding-top: 6px; }
.success h2 { color: #237a35; }
.small { font-size: 14px; color: #666; line-height: 1.5; }
footer { text-align: center; color: #777; font-size: 12px; margin-top: 18px; }
@media (max-width: 380px) {
  .shell { padding-left: 12px; padding-right: 12px; }
  .brand-name { font-size: 26px; }
}

@media (max-width: 600px) {
  .card { position: relative; top: 10px; }
}


.install-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
}
.install-modal.hidden {
  display: none !important;
}
.install-modal-card {
  width: min(100%, 430px);
  padding: 30px 24px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.install-modal-icon {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 12px;
}
.install-modal-card h2 {
  margin-bottom: 10px;
  font-size: 25px;
}
.install-modal-card p {
  margin: 0 0 20px;
  color: #555;
  line-height: 1.45;
}
.install-modal-card button {
  width: 100%;
}
.install-modal-dismiss {
  margin-top: 10px;
  min-height: 44px;
  background: transparent !important;
  color: #666 !important;
  font-size: 14px;
}
.install-modal-ios-steps {
  margin: 0 0 20px;
  color: #444;
  line-height: 1.55;
  font-weight: 700;
}


.notification-wrapper {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.notification-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}

.notification-modal.hidden {
  display: none !important;
}

.notification-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.notification-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  max-height: 42vh;
  overflow-y: auto;
  margin: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
}

.notification-panel.hidden {
  display: none !important;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.notification-panel-header h2 {
  margin: 0;
  font-size: 16px;
  color: #4b4b4b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.notification-panel-close {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #171717 !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.notification-panel-content {
  padding: 0;
}

.notification-item {
  padding: 12px;
}

.notification-item-title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
}

.notification-item p {
  margin: 0 0 10px;
  color: #555;
  font-size: 13px;
  line-height: 1.3;
}

.notification-enable-button,
.notification-disable-button {
  width: 100%;
  min-height: 40px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.notification-disable-button {
  background: #a9002b;
}

.notification-status {
  padding: 12px;
}

.notification-status-title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
}

.notification-status p {
  margin: 0 0 10px;
  color: #555;
  font-size: 13px;
  line-height: 1.3;
}

.notification-status-on {
  color: #237a35;
}

.notification-status-off {
  color: #7b001f;
}

.notification-manage {
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #666;
  font-size: 11px;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .notification-modal {
    padding: max(84px, 10vh) 16px 16px;
  }

  .notification-panel {
    width: min(calc(100vw - 64px), 300px);
    max-height: 42vh;
    border-radius: 14px;
  }
}

/* Mobile-only attendance home compactness. */
@media (max-width: 600px) {
  .shell {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .brand {
    margin-top: 4px;
    margin-bottom: 14px;
  }

  .card {
    top: 0;
    padding: 18px 18px 14px;
  }

  .card h1 {
    margin-bottom: 5px;
  }

  .attendance-home {
    padding: 0.25rem 0 0.5rem;
  }

  .attendance-home h2,
  .first-time-home h2 {
    margin-bottom: 4px;
  }

  .attendance-home p,
  .first-time-home p {
    margin: 4px 0 10px;
  }

  .primary-attendance-button {
    min-height: 60px;
    padding: 9px 14px;
  }

  .first-time-home {
    padding-top: 0.55rem;
    padding-bottom: 0.15rem;
  }

  .first-time-home .secondary {
    min-height: 42px;
    margin-top: 6px;
    padding: 8px 14px;
  }

  .card {
    padding-bottom: 8px;
  }

  footer {
    margin-top: 10px;
  }
}


