:root {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Tahoma,
    Arial,
    sans-serif;
  color: #172321;
  background: #eef2f0;
  font-synthesis: none;
  --green: #0f4f49;
  --green-dark: #0a3834;
  --mint: #dcece7;
  --rose: #b76e79;
  --rose-dark: #8f4f59;
  --ink: #172321;
  --muted: #71807d;
  --line: #dbe2df;
  --paper: #ffffff;
  --danger: #b3261e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(183, 110, 121, 0.12),
      transparent 26rem
    ),
    radial-gradient(
      circle at 95% 25%,
      rgba(15, 79, 73, 0.12),
      transparent 30rem
    ),
    #eef2f0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 79, 73, 0.22);
  outline-offset: 2px;
}
.app-shell {
  min-height: 100dvh;
}
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 28px 18px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
  direction: ltr;
}
.auth-brand strong,
.auth-brand small {
  display: block;
  line-height: 1.05;
  letter-spacing: 0.13em;
}
.auth-brand strong {
  font:
    800 18px Manrope,
    sans-serif;
}
.auth-brand small {
  font:
    600 9px Manrope,
    sans-serif;
  margin-top: 4px;
  color: var(--rose);
}
.auth-card {
  width: min(100%, 440px);
  padding: 30px;
  background: #fffffff5;
  border: 1px solid rgba(15, 79, 73, 0.1);
  border-radius: 28px;
  box-shadow: 0 28px 80px #1c393324;
}
.auth-card .eyebrow {
  color: var(--rose-dark);
  font:
    800 10px Manrope,
    sans-serif;
  letter-spacing: 0.16em;
}
.auth-card h1 {
  margin: 7px 0;
  color: var(--green-dark);
  font-size: 26px;
}
.auth-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.auth-form label {
  display: block;
  margin: 13px 2px 6px;
  color: #53615e;
  font-size: 12px;
  font-weight: 800;
}
.auth-form input[readonly] {
  color: var(--green);
  background: #edf4f1;
  direction: ltr;
  text-align: left;
}
.auth-form .form-error {
  margin-top: 7px;
}
.auth-submit {
  width: 100%;
  margin-top: 4px;
}
.loading-card {
  width: min(100%, 330px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffffe6;
  color: var(--muted);
  box-shadow: 0 16px 50px #1c39331a;
}
.loading-card p {
  margin: 0;
  font-weight: 700;
}
.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 #0f4f4959;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px #0f4f4900;
  }
  to {
    box-shadow: 0 0 #0f4f4900;
  }
}
.topbar {
  height: 76px;
  padding: 0 max(20px, env(safe-area-inset-right)) 0
    max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffffe6;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 79, 73, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  padding: 0;
  text-align: left;
  direction: ltr;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px 13px 13px 4px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font:
    800 22px Manrope,
    sans-serif;
  box-shadow: 0 8px 20px #0f4f4933;
}
.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
  letter-spacing: 0.13em;
}
.brand strong {
  font:
    800 16px Manrope,
    sans-serif;
}
.brand small {
  font:
    600 8px Manrope,
    sans-serif;
  margin-top: 4px;
  color: var(--rose);
}
.admin-button {
  border: 0;
  background: #edf4f1;
  color: var(--green);
  border-radius: 14px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.admin-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.account-chip {
  max-width: 265px;
  border: 1px solid var(--line);
  background: #f7faf9;
  border-radius: 14px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-align: left;
  direction: ltr;
}
.account-chip strong,
.account-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chip strong {
  color: var(--green-dark);
  font-size: 11px;
}
.account-chip small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 1px;
}
.account-chip svg {
  width: 20px;
  height: 20px;
  fill: var(--rose-dark);
  flex: 0 0 auto;
}
main {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 18px 50px;
}
.attendance-view {
  width: min(100%, 560px);
  margin: 0 auto;
}
.clock-card {
  text-align: center;
  padding: 20px 16px 18px;
}
.clock-card p {
  color: var(--muted);
  margin: 0 0 4px;
  font-weight: 600;
}
.clock-card strong {
  font:
    800 clamp(38px, 10vw, 58px) "Manrope",
    sans-serif;
  letter-spacing: -0.045em;
  color: var(--green-dark);
  display: block;
  direction: ltr;
}
.clock-card span {
  font:
    700 10px Manrope,
    sans-serif;
  letter-spacing: 0.16em;
  color: var(--rose);
  text-transform: uppercase;
}
.location-banner {
  margin: 0 auto 12px;
  padding: 11px 15px;
  border-radius: 15px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.location-banner span {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 700;
}
.location-banner strong {
  font:
    800 13px Manrope,
    sans-serif;
  direction: ltr;
}
.location-banner small {
  padding: 4px 7px;
  border-radius: 8px;
  background: #ffffff1f;
  font-size: 9px;
  font-weight: 800;
}
.location-banner {
  flex-wrap: wrap;
}
.form-card,
.admin-card {
  background: #fffffff2;
  border: 1px solid rgba(15, 79, 73, 0.09);
  box-shadow: 0 22px 60px #273a3617;
  border-radius: 26px;
}
.form-card {
  padding: 23px;
}
.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #53615e;
  margin: 0 3px 7px;
}
.form-card label:not(:first-child) {
  margin-top: 17px;
}
.select-wrap {
  position: relative;
}
.select-wrap:after {
  content: "⌄";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-56%);
  color: var(--green);
  font-size: 20px;
  pointer-events: none;
}
select,
input {
  width: 100%;
  min-height: 51px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f9fbfa;
  color: var(--ink);
  padding: 0 14px;
}
select {
  appearance: none;
  padding-right: 42px;
  font-weight: 700;
}
select:disabled {
  opacity: 0.55;
}
.empty-inline {
  border-radius: 12px;
  color: #7a615f;
  background: #fbf1f0;
  padding: 12px;
  margin-top: 13px;
  font-size: 13px;
  font-weight: 600;
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  direction: ltr;
}
.action-button {
  min-height: 126px;
  border: 0;
  border-radius: 19px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 14px 28px #1e322e2b;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    opacity 0.14s ease;
}
.action-button:active:not(:disabled) {
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 7px 14px #1e322e24;
}
.action-button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.action-button span {
  font:
    800 21px Manrope,
    sans-serif;
}
.action-button small {
  display: block;
  font:
    600 12px system-ui,
    sans-serif;
  margin-top: 3px;
  opacity: 0.84;
}
.check-in {
  background: linear-gradient(145deg, #176e64, var(--green));
}
.check-out {
  background: linear-gradient(145deg, #c27d87, var(--rose-dark));
}
.action-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75);
  opacity: 0.27;
  box-shadow: none;
}
.status-card {
  margin-top: 14px;
  background: #ffffffbd;
  border: 1px solid rgba(15, 79, 73, 0.09);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #aeb8b5;
  box-shadow: 0 0 0 5px #aeb8b529;
}
.status-card.is-in .status-dot {
  background: #1e8b71;
  box-shadow: 0 0 0 5px #1e8b7124;
}
.status-card.is-out .status-dot {
  background: var(--rose);
  box-shadow: 0 0 0 5px #b76e7924;
}
.status-card small,
.status-card strong,
.status-card p {
  display: block;
}
.status-card small {
  color: var(--muted);
  font-size: 11px;
}
.status-card strong {
  margin-top: 2px;
}
.status-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font:
    600 11px Manrope,
    sans-serif;
  direction: ltr;
  text-align: left;
}
.server-status {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.server-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e8b71;
  box-shadow: 0 0 0 4px #1e8b711f;
}
.admin-view {
  padding-top: 10px;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-heading small {
  color: var(--rose);
  font-weight: 800;
}
.page-heading h1 {
  margin: 2px 0 0;
  font-size: clamp(25px, 6vw, 38px);
  color: var(--green-dark);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.summary-card {
  min-height: 100px;
  border-radius: 19px;
  color: #fff;
  background: #243c38;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.summary-card.green {
  background: var(--green);
}
.summary-card.rose {
  background: var(--rose-dark);
}
.summary-card span {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
}
.summary-card strong {
  font:
    800 29px Manrope,
    sans-serif;
}
.admin-card {
  overflow: hidden;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f4f7f6;
  border-bottom: 1px solid var(--line);
}
.tabs.four-tabs {
  grid-template-columns: repeat(4, 1fr);
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 16px 8px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: #fff;
}
.tab-content {
  padding: 20px;
}
.add-form,
.record-tools {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.employee-add-form {
  grid-template-columns: 1.2fr 1fr 1fr auto;
}
.primary-button,
.secondary-button,
.danger-button {
  min-height: 43px;
  border-radius: 12px;
  border: 0;
  padding: 0 17px;
  font-weight: 800;
  white-space: nowrap;
}
.primary-button {
  background: var(--green);
  color: #fff;
}
.secondary-button {
  background: #e9f1ee;
  color: var(--green);
}
.danger-button {
  background: #f9e5e3;
  color: var(--danger);
}
.department-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.department-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
}
.group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 10px;
}
.group-title h3 {
  margin: 0;
  font:
    800 14px Manrope,
    sans-serif;
  color: var(--green-dark);
}
.group-title span {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--green);
  font:
    800 11px Manrope,
    sans-serif;
}
.employee-row {
  display: grid;
  grid-template-columns: 37px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 2px;
  border-top: 1px solid #edf1ef;
}
.employee-row.inactive {
  opacity: 0.5;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font:
    800 14px Manrope,
    sans-serif;
}
.employee-row strong,
.employee-row small {
  display: block;
}
.employee-row strong {
  font-size: 13px;
}
.employee-row small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}
.text-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--rose-dark);
  font-weight: 800;
  font-size: 11px;
}
.text-button.delete-employee {
  color: var(--danger);
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px;
}
.section-intro {
  margin-bottom: 17px;
}
.section-intro strong,
.section-intro span {
  display: block;
}
.section-intro strong {
  color: var(--green-dark);
}
.section-intro span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.account-list {
  display: grid;
  gap: 10px;
}
.account-row {
  display: grid;
  grid-template-columns:
    62px minmax(130px, 0.75fr) minmax(170px, 1fr) minmax(170px, 1fr)
    auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px;
}
.account-status {
  min-height: 29px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.account-status.active {
  background: #dcefe8;
  color: #176e64;
}
.account-status.pending {
  background: #fae8e7;
  color: var(--danger);
}
.account-title strong,
.account-title small {
  display: block;
}
.account-title strong {
  color: var(--green-dark);
  font:
    800 12px Manrope,
    sans-serif;
}
.account-title small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.account-row input {
  min-height: 43px;
  font-size: 12px;
  direction: ltr;
  text-align: left;
}
.empty-row {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 2px;
}
.records-list {
  display: grid;
  gap: 8px;
}
.record-row {
  display: grid;
  grid-template-columns: 47px 1fr auto 30px;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.record-badge {
  width: 43px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font:
    800 10px Manrope,
    sans-serif;
}
.record-badge.in {
  background: var(--green);
}
.record-badge.out {
  background: var(--rose-dark);
}
.record-row strong,
.record-row small {
  display: block;
}
.record-row small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.record-row .extended-shift-reason {
  margin-top: 5px;
  color: var(--rose-dark);
  font-weight: 700;
  line-height: 1.4;
}
.record-row time {
  text-align: left;
  direction: ltr;
}
.record-row time strong {
  font:
    800 12px Manrope,
    sans-serif;
}
.icon-button.delete {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 19px;
  color: var(--danger);
}
.empty-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}
.empty-state strong {
  color: var(--ink);
}
.empty-state span {
  font-size: 12px;
  margin-top: 5px;
}
.settings-list {
  padding-block: 8px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border-bottom: 0;
}
.setting-row strong,
.setting-row small {
  display: block;
}
.setting-row small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
.inline-form {
  display: flex;
  gap: 8px;
}
.inline-form input {
  width: 130px;
}
.upload-row {
  cursor: pointer;
}
.danger-zone strong {
  color: var(--danger);
}
.online-badge {
  padding: 7px 12px;
  border-radius: 10px;
  background: #dcefe8;
  color: #176e64;
  font:
    800 10px Manrope,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pin-dialog {
  width: min(calc(100% - 36px), 390px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 30px 100px #081d1a4d;
}
.pin-dialog::backdrop {
  background: #091f1c94;
  backdrop-filter: blur(5px);
}
.pin-dialog form {
  position: relative;
  padding: 29px;
  text-align: center;
}
.pin-dialog h2 {
  color: var(--green-dark);
  margin: 8px 0 2px;
}
.pin-dialog p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 13px;
}
.pin-dialog input {
  text-align: center;
  direction: ltr;
  font:
    800 24px Manrope,
    sans-serif;
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}
.pin-dialog .primary-button {
  width: 100%;
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 12px;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  border: 0;
  background: #edf2f0;
  color: var(--muted);
  font-size: 20px;
}
.lock-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 20px #0f4f4933;
}
.lock-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}
.pin-dialog .form-error {
  text-align: left;
  margin-bottom: 4px;
}
.form-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 12px;
  display: block;
}
.toast {
  position: fixed;
  z-index: 50;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  background: #263834;
  box-shadow: 0 12px 35px #081e1a40;
  font-weight: 700;
  font-size: 13px;
  transition: 0.25s ease;
}
.toast.visible {
  transform: translate(-50%);
  opacity: 1;
}
.toast.success {
  background: var(--green);
}
.toast.error {
  background: var(--danger);
}
@media (max-width: 680px) {
  main {
    padding-inline: 14px;
  }
  .topbar {
    height: 68px;
  }
  .admin-button {
    padding-inline: 10px;
  }
  .admin-button span {
    font-size: 11px;
  }
  .account-chip {
    max-width: 155px;
  }
  .account-chip small {
    display: none;
  }
  .action-button {
    min-height: 116px;
  }
  .department-list,
  .add-form,
  .record-tools,
  .employee-add-form {
    grid-template-columns: 1fr;
  }
  .account-row {
    grid-template-columns: 58px 1fr;
  }
  .account-row input,
  .account-row .secondary-button {
    grid-column: 1 / -1;
  }
  .summary-card {
    min-height: 88px;
    padding: 14px;
  }
  .summary-card strong {
    font-size: 25px;
  }
  .tab-content {
    padding: 14px;
  }
  .record-row {
    grid-template-columns: 43px 1fr 30px;
  }
  .record-row time {
    grid-column: 2 / 3;
    margin-top: -5px;
    text-align: left;
  }
  .record-row .delete {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .setting-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }
  .inline-form,
  .inline-form input {
    width: 100%;
  }
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.pair-auth-form #pairingCode {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font:
    800 20px Manrope,
    sans-serif;
}
.pair-code-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #9fc5b9;
  border-radius: 17px;
  background: #edf7f3;
}
.pair-code-panel small,
.pair-code-panel strong,
.pair-code-panel span {
  display: block;
}
.pair-code-panel small {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.pair-code-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.pair-code {
  margin-top: 4px;
  color: var(--green-dark);
  font:
    900 27px Manrope,
    sans-serif;
  letter-spacing: 0.12em;
}
.pair-code-actions {
  display: flex;
  gap: 8px;
}
.paired-device-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.paired-device-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.paired-device-heading strong,
.paired-device-heading span {
  display: block;
}
.paired-device-heading > div > strong {
  color: var(--green-dark);
}
.paired-device-heading > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.paired-device-heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.paired-device-heading-actions > span {
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}
.paired-device-list {
  display: grid;
  gap: 8px;
}
.paired-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.paired-device-row strong,
.paired-device-row small {
  display: block;
}
.paired-device-row strong {
  color: var(--ink);
  font-size: 13px;
}
.paired-device-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.device-status {
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.device-status.active {
  background: #dcefe8;
  color: #176e64;
}
.device-status.revoked,
.device-status.expired {
  background: #f4e9e8;
  color: var(--danger);
}
.empty-device-row {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
@media (max-width: 680px) {
  .pair-code-panel,
  .pair-code-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .pair-code-actions button {
    width: 100%;
  }
  .paired-device-row {
    grid-template-columns: 1fr auto;
  }
  .paired-device-row .danger-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.account-row {
  grid-template-columns: 62px minmax(130px, 0.7fr) minmax(0, 2.4fr) auto;
  align-items: start;
}
.account-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: 8px;
}
.account-fields > input[name="email"],
.account-fields > input[name="password"] {
  grid-column: span 2;
}
.account-fields input {
  min-width: 0;
}
.location-toggle {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.location-toggle input {
  width: 17px;
  min-height: auto;
  margin: 0;
}
.location-capture {
  min-height: 43px;
  border: 1px dashed #b9ccc5;
  border-radius: 12px;
  color: var(--green);
}
.location-not-used {
  grid-column: 1 / -1;
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: #f4f7f6;
  color: var(--muted);
  font-size: 11px;
}
.account-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.employee-search-wrap {
  margin: -8px 0 18px;
}
.employee-search-wrap input {
  width: 100%;
  min-height: 45px;
}
.attendance-employee-search {
  margin-bottom: 9px;
}
.statement-tools {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) minmax(210px, 1fr) 150px auto;
  gap: 10px;
  align-items: center;
  margin: -7px 0 22px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8faf9;
}
.statement-tools strong,
.statement-tools small {
  display: block;
}
.statement-tools strong {
  color: var(--green-dark);
  font-size: 13px;
}
.statement-tools small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .account-row {
    grid-template-columns: 62px 1fr;
  }
  .account-fields,
  .account-row-actions {
    grid-column: 1 / -1;
  }
  .account-row-actions {
    flex-direction: row;
  }
  .statement-tools {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .account-fields,
  .statement-tools {
    grid-template-columns: 1fr;
  }
  .account-fields > input[name="email"],
  .account-fields > input[name="password"] {
    grid-column: auto;
  }
  .account-row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 390px) {
  .auth-card {
    padding: 23px 19px;
  }
  .account-chip {
    max-width: 128px;
  }
  .account-chip svg {
    width: 18px;
  }
  .tabs button {
    font-size: 11px;
  }
  .form-card {
    padding: 18px;
  }
  .action-grid {
    gap: 9px;
  }
  .action-button span {
    font-size: 18px;
  }
  .summary-grid {
    gap: 7px;
  }
  .summary-card {
    padding: 11px;
    border-radius: 15px;
  }
  .summary-card span {
    font-size: 10px;
  }
}
@media (display-mode: standalone) {
  .topbar {
    padding-top: env(safe-area-inset-top);
    height: calc(68px + env(safe-area-inset-top));
  }
}
.account-add-form {
  grid-template-columns: 1.1fr 1fr 1fr auto;
}
.protected-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 12px;
  border-radius: 12px;
  background: #eef3f1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.record-tools {
  grid-template-columns: 1.2fr 1fr 1fr auto;
}
@media (max-width: 680px) {
  .account-add-form,
  .record-tools {
    grid-template-columns: 1fr;
  }
  .account-row {
    grid-template-columns: 58px 1fr;
  }
  .account-row input,
  .account-row .secondary-button,
  .account-row .danger-button,
  .account-row .protected-account {
    grid-column: 1 / -1;
  }
}
